Skip to content

Commit 48e768c

Browse files
committed
rm
1 parent 0ecba7a commit 48e768c

File tree

3 files changed

+22
-5
lines changed

3 files changed

+22
-5
lines changed

public/app.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40314,6 +40314,13 @@ var FormItemComponent = {
4031440314
onChange: function onChange(value) {
4031540315
this.$emit("change", value);
4031640316
}
40317+
},
40318+
watch: {
40319+
value: function value(_value) {
40320+
try {
40321+
this.vm = _value;
40322+
} catch (error) {}
40323+
}
4031740324
}
4031840325
};
4031940326
var BaseComponent = {

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Laravel-Vue-Admin 是一个开箱即用的Laravel后台扩展
1010

1111
如果你熟悉`vue`,那么你可以说一声WOCAONIUB
1212

13-
放弃jQuery,拥抱vue,是Laravel-Vue-Admin对自定义与vue特性的追求,使用Laravel-Vue-Admin一定要领会到精髓,感兴趣的可以加入Laravel-Vue-Admin的大家庭一起研究讨论哦。
13+
放弃jQuery,拥抱vue,是Laravel-Vue-Admin对`自定义``vue生态`的追求,使用Laravel-Vue-Admin一定要领会到精髓
1414

1515

1616

resources/js/mixins.js

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,33 @@ const FormItemComponent = {
3131
onChange(value) {
3232
this.$emit("change", value);
3333
}
34+
},
35+
watch: {
36+
value(value) {
37+
try {
38+
this.vm = value;
39+
} catch (error) {
40+
41+
}
42+
43+
}
3444
}
3545
}
3646

3747
const BaseComponent = {
3848
mounted() {
3949

4050
if (this.attrs && this.attrs.ref) {
41-
this.$bus.on(this.attrs.ref, ({data,self}) => {
51+
this.$bus.on(this.attrs.ref, ({ data, self }) => {
4252
let _this = this;
43-
new Function('ref','self',data)(_this,self)
53+
new Function('ref', 'self', data)(_this, self)
4454
})
4555
}
4656

4757
if (this.formItem && this.formItem.ref) {
48-
this.$bus.on(this.formItem.ref, ({data,self}) => {
58+
this.$bus.on(this.formItem.ref, ({ data, self }) => {
4959
let _this = this;
50-
new Function('ref','self',data)(_this,self)
60+
new Function('ref', 'self', data)(_this, self)
5161
})
5262
}
5363
},

0 commit comments

Comments
 (0)