From a088fa098f285e95a31d369575236d9bd9aa7e87 Mon Sep 17 00:00:00 2001 From: fay Date: Tue, 15 May 2018 14:09:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=A7=E6=89=BFsingle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/bundle.js | 6 +- dist/demo.js | 105 ------------------ dist/fineui.js | 6 +- dist/widget.js | 6 +- .../multiselectlist/multiselectlist.insert.js | 2 +- src/widget/multiselecttree/multiselecttree.js | 2 +- .../singleselect/singleselectlist.insert.js | 2 +- 7 files changed, 12 insertions(+), 117 deletions(-) diff --git a/dist/bundle.js b/dist/bundle.js index 544979b60..652354afe 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -99184,7 +99184,7 @@ BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW = "MultiSelectCheckSe BI.shortcut("bi.multi_select_check_selected_switcher", BI.MultiSelectCheckSelectedSwitcher);/** * Created by zcf_1 on 2017/5/2. */ -BI.MultiSelectInsertList = BI.inherit(BI.Widget, { +BI.MultiSelectInsertList = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.MultiSelectInsertList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list", @@ -99855,7 +99855,7 @@ BI.MultiSelectList.EVENT_CHANGE = "BI.MultiSelectList.EVENT_CHANGE"; BI.shortcut("bi.multi_select_list", BI.MultiSelectList);/** * Created by zcf_1 on 2017/5/11. */ -BI.MultiSelectTree = BI.inherit(BI.Widget, { +BI.MultiSelectTree = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.MultiSelectTree.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-tree", @@ -104917,7 +104917,7 @@ BI.shortcut("bi.single_select_trigger", BI.SingleSelectTrigger);/** * @createdAt: 2018/3/28 * @Description */ -BI.SingleSelectInsertList = BI.inherit(BI.Widget, { +BI.SingleSelectInsertList = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.SingleSelectInsertList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list", diff --git a/dist/demo.js b/dist/demo.js index ea87e3236..8459a5aec 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -11014,111 +11014,6 @@ BI.shortcut("demo.tmp", Demo.Func); }); BI.shortcut("demo.fix_global_watcher", Demo.Fix); -}());(function () { - var State = BI.inherit(Fix.Model, { - state: function () { - return { - name: "原始属性", - info: { - age: 12, - sex: "male", - birth: { - year: 2018, - month: 9, - day: 11 - } - }, - career: [{ - a: 1, - b: 2, - c: 3 - }] - }; - }, - computed: { - b: function () { - return this.model.name + "-计算属性"; - }, - birth: function () { - return this.model.info.birth; - } - } - }); - - Demo.Fix = BI.inherit(BI.Widget, { - _store: function () { - return new State(); - }, - watch: { - b: function () { - this.button.setText(this.model.b); - }, - "birth.**": function () { - console.log(123); - } - }, - render: function () { - var self = this; - return { - type: "bi.vertical", - items: [{ - el: { - type: "bi.button", - ref: function () { - self.button = this; - }, - handler: function () { - self.model.name = "这是改变后的属性"; - }, - text: this.model.b - } - }, { - el: { - type: "bi.button", - ref: function () { - self.button = this; - }, - handler: function () { - self.model.birth.year = 2019; - }, - text: "birthYearButton" - } - }, { - el: { - type: "bi.button", - ref: function () { - self.button = this; - }, - handler: function () { - self.model.career.push({ - year: 2017, - month: 3, - day: 24 - }); - }, - text: "careerAddButton" - } - }, { - el: { - type: "bi.button", - ref: function () { - self.button = this; - }, - handler: function () { - self.model.career[0].a = 24; - }, - text: "careerChangeButton" - } - }] - }; - }, - mounted: function () { - - - } - }); - - BI.shortcut("demo.fix_immutable", Demo.Fix); }());/** * @Author: Young * @CreationDate 2017-11-06 10:32 diff --git a/dist/fineui.js b/dist/fineui.js index 34a565032..0680dec46 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -99427,7 +99427,7 @@ BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW = "MultiSelectCheckSe BI.shortcut("bi.multi_select_check_selected_switcher", BI.MultiSelectCheckSelectedSwitcher);/** * Created by zcf_1 on 2017/5/2. */ -BI.MultiSelectInsertList = BI.inherit(BI.Widget, { +BI.MultiSelectInsertList = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.MultiSelectInsertList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list", @@ -100098,7 +100098,7 @@ BI.MultiSelectList.EVENT_CHANGE = "BI.MultiSelectList.EVENT_CHANGE"; BI.shortcut("bi.multi_select_list", BI.MultiSelectList);/** * Created by zcf_1 on 2017/5/11. */ -BI.MultiSelectTree = BI.inherit(BI.Widget, { +BI.MultiSelectTree = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.MultiSelectTree.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-tree", @@ -105160,7 +105160,7 @@ BI.shortcut("bi.single_select_trigger", BI.SingleSelectTrigger);/** * @createdAt: 2018/3/28 * @Description */ -BI.SingleSelectInsertList = BI.inherit(BI.Widget, { +BI.SingleSelectInsertList = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.SingleSelectInsertList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list", diff --git a/dist/widget.js b/dist/widget.js index 2f42a2802..6b43b219b 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -11624,7 +11624,7 @@ BI.MultiSelectCheckSelectedSwitcher.EVENT_BEFORE_POPUPVIEW = "MultiSelectCheckSe BI.shortcut("bi.multi_select_check_selected_switcher", BI.MultiSelectCheckSelectedSwitcher);/** * Created by zcf_1 on 2017/5/2. */ -BI.MultiSelectInsertList = BI.inherit(BI.Widget, { +BI.MultiSelectInsertList = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.MultiSelectInsertList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list", @@ -12295,7 +12295,7 @@ BI.MultiSelectList.EVENT_CHANGE = "BI.MultiSelectList.EVENT_CHANGE"; BI.shortcut("bi.multi_select_list", BI.MultiSelectList);/** * Created by zcf_1 on 2017/5/11. */ -BI.MultiSelectTree = BI.inherit(BI.Widget, { +BI.MultiSelectTree = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.MultiSelectTree.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-tree", @@ -17357,7 +17357,7 @@ BI.shortcut("bi.single_select_trigger", BI.SingleSelectTrigger);/** * @createdAt: 2018/3/28 * @Description */ -BI.SingleSelectInsertList = BI.inherit(BI.Widget, { +BI.SingleSelectInsertList = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.SingleSelectInsertList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list", diff --git a/src/widget/multiselectlist/multiselectlist.insert.js b/src/widget/multiselectlist/multiselectlist.insert.js index 4473e0160..2107e7d1c 100644 --- a/src/widget/multiselectlist/multiselectlist.insert.js +++ b/src/widget/multiselectlist/multiselectlist.insert.js @@ -1,7 +1,7 @@ /** * Created by zcf_1 on 2017/5/2. */ -BI.MultiSelectInsertList = BI.inherit(BI.Widget, { +BI.MultiSelectInsertList = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.MultiSelectInsertList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list", diff --git a/src/widget/multiselecttree/multiselecttree.js b/src/widget/multiselecttree/multiselecttree.js index a52e0c5a5..13d8ed126 100644 --- a/src/widget/multiselecttree/multiselecttree.js +++ b/src/widget/multiselecttree/multiselecttree.js @@ -1,7 +1,7 @@ /** * Created by zcf_1 on 2017/5/11. */ -BI.MultiSelectTree = BI.inherit(BI.Widget, { +BI.MultiSelectTree = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.MultiSelectTree.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-tree", diff --git a/src/widget/singleselect/singleselectlist.insert.js b/src/widget/singleselect/singleselectlist.insert.js index 66b395acd..1d7319b7a 100644 --- a/src/widget/singleselect/singleselectlist.insert.js +++ b/src/widget/singleselect/singleselectlist.insert.js @@ -3,7 +3,7 @@ * @createdAt: 2018/3/28 * @Description */ -BI.SingleSelectInsertList = BI.inherit(BI.Widget, { +BI.SingleSelectInsertList = BI.inherit(BI.Single, { _defaultConfig: function () { return BI.extend(BI.SingleSelectInsertList.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-multi-select-insert-list",