diff --git a/admin/data/document.json b/admin/data/document.json new file mode 100644 index 0000000..e69de29 diff --git a/component/pear/module/common.js b/component/pear/module/common.js new file mode 100644 index 0000000..e69de29 diff --git a/component/pear/module/drawer.js b/component/pear/module/drawer.js index 5062ce3..85c48bd 100644 --- a/component/pear/module/drawer.js +++ b/component/pear/module/drawer.js @@ -13,8 +13,9 @@ layui.define(['jquery', 'element'], function(exports) { dom: option.dom, direction: option.direction, distance: option.distance, - time:option.time, - maskClose:option.maskClose + time:option.time?option.time:0, + maskClose:option.maskClose, + callback:option.success }); _right.open(); diff --git a/view/document/drawer.html b/view/document/drawer.html index 847d44b..2d9d065 100644 --- a/view/document/drawer.html +++ b/view/document/drawer.html @@ -22,7 +22,7 @@
-
更多
+
进阶
@@ -30,37 +30,56 @@
+
+
扩展
+
+ + +
+ +
+
+

左侧弹层内容...

+

右侧弹层内容...

+

上侧弹层内容...

+

下侧弹层内容...

-

点击右侧灰色区域 -

+
+

点击右侧灰色区域

+ +
+
+

打开 2秒 后自动关闭...

+