From a8abee844d5fd1019d01f43cdd7f46e6847565e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E8=8D=A3=E6=AD=86?= Date: Fri, 14 Jul 2017 09:45:34 +0800 Subject: [PATCH] no message --- .../js/widget/{ => downlist}/demo.downlist.js | 0 docs/demo.js | 56 +++++++++---------- 2 files changed, 28 insertions(+), 28 deletions(-) rename demo/js/widget/{ => downlist}/demo.downlist.js (100%) diff --git a/demo/js/widget/demo.downlist.js b/demo/js/widget/downlist/demo.downlist.js similarity index 100% rename from demo/js/widget/demo.downlist.js rename to demo/js/widget/downlist/demo.downlist.js diff --git a/docs/demo.js b/docs/demo.js index d9593e16b..dbafb3e14 100644 --- a/docs/demo.js +++ b/docs/demo.js @@ -6605,7 +6605,33 @@ BI.shortcut("demo.date", Demo.Date);Demo.DatePane = BI.inherit(BI.Widget, { } }) -BI.shortcut("demo.date_pane_widget", Demo.DatePane);Demo.Downlist = BI.inherit(BI.Widget, { +BI.shortcut("demo.date_pane_widget", Demo.DatePane);Demo.DialogView = BI.inherit(BI.Widget, { + + render: function () { + var items = [{ + el: { + type: 'bi.button', + text: '弹出对话框', + level: 'common', + height: 30 + } + }]; + BI.each(items, function (i, item) { + item.el.handler = function () { + BI.Msg.alert('提示', "这是一段可以换行的文字,为了使它换行我要多写几个字,但是我又凑不够这么多的字,万般焦急下,只能随便写写"); + } + }); + + return { + type: "bi.left", + vgap: 200, + hgap: 20, + items: items + } + } +}); + +BI.shortcut("demo.dialog", Demo.DialogView);Demo.Downlist = BI.inherit(BI.Widget, { props: { baseCls: "demo-downlist" }, @@ -6740,33 +6766,7 @@ BI.shortcut("demo.date_pane_widget", Demo.DatePane);Demo.Downlist = BI.inherit(B } }) -BI.shortcut("demo.down_list", Demo.Downlist);Demo.DialogView = BI.inherit(BI.Widget, { - - render: function () { - var items = [{ - el: { - type: 'bi.button', - text: '弹出对话框', - level: 'common', - height: 30 - } - }]; - BI.each(items, function (i, item) { - item.el.handler = function () { - BI.Msg.alert('提示', "这是一段可以换行的文字,为了使它换行我要多写几个字,但是我又凑不够这么多的字,万般焦急下,只能随便写写"); - } - }); - - return { - type: "bi.left", - vgap: 200, - hgap: 20, - items: items - } - } -}); - -BI.shortcut("demo.dialog", Demo.DialogView);/** +BI.shortcut("demo.down_list", Demo.Downlist);/** * Created by Dailer on 2017/7/11. */ Demo.AdaptEditor = BI.inherit(BI.Widget, {