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, {