From e02e5393b38099e9555a3c09123d253dde9548c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Fri, 17 Jul 2020 17:02:35 +0800 Subject: [PATCH] =?UTF-8?q?Drawer.js=20=E8=87=AA=E5=8A=A8=E5=85=B3?= =?UTF-8?q?=E9=97=AD=20/=20success=20=E5=9B=9E=E8=B0=83=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/data/document.json | 0 component/pear/module/common.js | 0 component/pear/module/drawer.js | 5 ++-- view/document/drawer.html | 48 ++++++++++++++++++++++++++++++--- 4 files changed, 47 insertions(+), 6 deletions(-) create mode 100644 admin/data/document.json create mode 100644 component/pear/module/common.js 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秒 后自动关闭...

+