diff --git a/dist/bundle.js b/dist/bundle.js index 8ea45838d..1c7717f84 100644 --- a/dist/bundle.js +++ b/dist/bundle.js @@ -100994,7 +100994,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { return BI.extend(conf, { extraCls: "bi-number-interval", height: 25, - validation: "valid" + validation: "valid", + closeMin: true }); }, _init: function () { diff --git a/dist/demo.js b/dist/demo.js index c250a33de..d8323e0a6 100644 --- a/dist/demo.js +++ b/dist/demo.js @@ -11014,6 +11014,111 @@ 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 2e8a7285b..a8adc05b2 100644 --- a/dist/fineui.js +++ b/dist/fineui.js @@ -101237,7 +101237,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { return BI.extend(conf, { extraCls: "bi-number-interval", height: 25, - validation: "valid" + validation: "valid", + closeMin: true }); }, _init: function () { diff --git a/dist/widget.js b/dist/widget.js index e28405a53..57f6a58f0 100644 --- a/dist/widget.js +++ b/dist/widget.js @@ -13434,7 +13434,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { return BI.extend(conf, { extraCls: "bi-number-interval", height: 25, - validation: "valid" + validation: "valid", + closeMin: true }); }, _init: function () { diff --git a/src/widget/numberinterval/numberinterval.js b/src/widget/numberinterval/numberinterval.js index 096ea06f0..db2cea172 100644 --- a/src/widget/numberinterval/numberinterval.js +++ b/src/widget/numberinterval/numberinterval.js @@ -24,7 +24,8 @@ BI.NumberInterval = BI.inherit(BI.Single, { return BI.extend(conf, { extraCls: "bi-number-interval", height: 25, - validation: "valid" + validation: "valid", + closeMin: true }); }, _init: function () {