Skip to content

Commit

Permalink
增加getDialog方法
Browse files Browse the repository at this point in the history
  • Loading branch information
tlzzu committed Dec 5, 2018
1 parent 03b3256 commit 4bd6d85
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 45 deletions.
35 changes: 0 additions & 35 deletions README.md.bak

This file was deleted.

28 changes: 28 additions & 0 deletions doc/sde.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,34 @@ sde.off('ready',ready);//移除之前绑定的事件

销毁当前SDE的实例,如果是在vue中使用可以在vue生命周期中的destroyed中使用。

## getDialog(opt)

获取弹窗对象,使用示例如下:
```js
var dialog = sde.getDialog({
title: '测试弹窗',
name: 'test-dialogs',
url: 'https://www.baidu.com/',//如果不带有http,则为相对路径比如 'text/index.html'//这个就是文本控件维护
style: 'width:400px;height:300px',
buttons: [{
className: 'edui-okbutton',
label: '确定',
onclick: function () {
dialog.close(true)
}
},
{
className: 'edui-cancelbutton',
label: '取消',
onclick: function () {
dialog.close(false)
}
}
]
});
dialog.open();//打开弹窗
```

## insertHTML(html)

在光标处插入html代码片段。
Expand Down
10 changes: 5 additions & 5 deletions js/sde-ie8-design.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions js/sde-ie8-editor.js

Large diffs are not rendered by default.

0 comments on commit 4bd6d85

Please sign in to comment.