fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

38 lines
704 B

Demo.Store = BI.inherit(Fix.VM, {
computed: {
b: function () {
return this.model.name + 1
},
c: function () {
return this.model.name + this.model.b
}
},
methods: {
run: function () {
this.model.name = 2;
}
}
});
var model = new Fix.Observer({
name: 1,
arr: [{
n: 'a'
}, {
n: 'b'
}]
}).model;
Demo.Fix = BI.inherit(BI.Widget, {
_store: function () {
return new Demo.Store(model);
},
watch: {
b: function () {
debugger;
}
},
mounted: function () {
this.store.run()
}
});
BI.shortcut("demo.fix", Demo.Fix);