我是内容
我是内容
@@ -84,8 +74,3 @@ export default Vue.extend({
},
});
-
diff --git a/examples/dialog/demos/custom/bottom.vue b/examples/dialog/demos/custom/bottom.vue
index 4f41a9082..2d0795198 100644
--- a/examples/dialog/demos/custom/bottom.vue
+++ b/examples/dialog/demos/custom/bottom.vue
@@ -2,19 +2,18 @@
底部按钮有两个控制属性:confirmBtn 和 cancelBtn。属性类型有多种:string/function/object/boolean。
-
自定义底部按钮(文字)
-
自定义底部按钮(任何按钮属性)
-
自定义底部按钮(自定义组件)
-
+
+ 自定义底部按钮(文字)
+ 自定义底部按钮(任何按钮属性)
+ 自定义底部按钮(自定义组件)
+
-
-
+ />
-
-
+ />
-
+ />
-
diff --git a/examples/dialog/demos/drag.vue b/examples/dialog/demos/drag.vue
index de4e77ef8..f6d1ede9e 100644
--- a/examples/dialog/demos/drag.vue
+++ b/examples/dialog/demos/drag.vue
@@ -1,16 +1,18 @@
-
非模态对话框-可拖拽
-
非模态对话框-不可拖拽
-
模态对话框-不支持拖拽
-
+
+ 非模态对话框-可拖拽
+ 非模态对话框-不可拖拽
+ 模态对话框-不支持拖拽
+
+
默认点击蒙层或按ESC可关闭
@@ -23,7 +25,7 @@
:visible.sync="visibleModelessDrag"
mode="modeless"
draggable
- :onConfirm="()=>this.visibleModelessDrag = false"
+ :onConfirm="() => (this.visibleModelessDrag = false)"
>
对话框内容
@@ -34,13 +36,12 @@
header="非模态对话框-不可拖拽"
:visible.sync="visibleModeless"
mode="modeless"
- :onConfirm="()=>this.visibleModeless = false"
+ :onConfirm="() => (this.visibleModeless = false)"
>
-
-
diff --git a/examples/dialog/demos/icon.vue b/examples/dialog/demos/icon.vue
index 09a8b49fc..4a74f3332 100644
--- a/examples/dialog/demos/icon.vue
+++ b/examples/dialog/demos/icon.vue
@@ -8,7 +8,7 @@
theme="info"
:onConfirm="close1"
/>
-
+
-
+
-
+
-
-
theme: info
-
theme: warning
-
theme: danger
-
theme: success
+
+
+ theme: info
+ theme: warning
+ theme: danger
+ theme: success
+
-
diff --git a/examples/dialog/demos/modal.vue b/examples/dialog/demos/modal.vue
index df92f88e5..3af73c300 100644
--- a/examples/dialog/demos/modal.vue
+++ b/examples/dialog/demos/modal.vue
@@ -1,9 +1,11 @@
-
模态对话框
-
非模态对话框
-
模态对话框-不可拖拽
-
普通对话框-不可拖拽
+
+ 模态对话框
+ 非模态对话框
+ 模态对话框-不可拖拽
+ 普通对话框-不可拖拽
+
-
diff --git a/examples/dialog/demos/plugin.vue b/examples/dialog/demos/plugin.vue
index c7fb9d48e..128ff3808 100644
--- a/examples/dialog/demos/plugin.vue
+++ b/examples/dialog/demos/plugin.vue
@@ -1,11 +1,11 @@
-
+
dialog
handleDialogNode
confirm
alert
DialogPlugin.confirm
-
+
diff --git a/examples/dialog/demos/warning.vue b/examples/dialog/demos/warning.vue
index 5a35bd601..0112e49bd 100644
--- a/examples/dialog/demos/warning.vue
+++ b/examples/dialog/demos/warning.vue
@@ -1,6 +1,12 @@
-
提示反馈
+
+ 提示反馈
+ 成功反馈
+ 警示反馈
+ 错误反馈
+ 自定义图标
+
-
-
-
成功反馈
+ />
-
-
-
警示反馈
+ />
-
-
-
错误反馈
+ />
-
-
-
自定义图标
+ />
@@ -58,9 +52,11 @@
-
diff --git a/test/unit/dialog/__snapshots__/demo.test.js.snap b/test/unit/dialog/__snapshots__/demo.test.js.snap
index e42924ac5..6402b3e61 100644
--- a/test/unit/dialog/__snapshots__/demo.test.js.snap
+++ b/test/unit/dialog/__snapshots__/demo.test.js.snap
@@ -123,49 +123,67 @@ exports[`Dialog Dialog attachVue demo works fine 1`] = `
-
-
-
+
+
- 挂载特定元素
-
-
-
-
+
+
- 挂载函数返回节点
-
-
-
-
+
+
- 展示在挂载元素区域
-
-
+
+
+
-
-
-
+
+
- 渲染函数定义内容
-
-
-
-
+
+
- 插槽方式定义内容
-
-
+
+
+
-
-
-
+
+
- 按钮属性
-
-
-
-
+
+
- 渲染函数按钮
-
-
-
-
+
+
- 隐藏底部
-
-
+
+
+
-
-
-
+
+
- 渲染函数定义内容
-
-
-
-
+
+
- 插槽方式定义内容
-
-
+
+
+