File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -40314,6 +40314,13 @@ var FormItemComponent = {
40314
40314
onChange: function onChange(value) {
40315
40315
this.$emit("change", value);
40316
40316
}
40317
+ },
40318
+ watch: {
40319
+ value: function value(_value) {
40320
+ try {
40321
+ this.vm = _value;
40322
+ } catch (error) {}
40323
+ }
40317
40324
}
40318
40325
};
40319
40326
var BaseComponent = {
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Laravel-Vue-Admin 是一个开箱即用的Laravel后台扩展
10
10
11
11
如果你熟悉` vue ` ,那么你可以说一声WOCAONIUB
12
12
13
- 放弃jQuery,拥抱vue,是Laravel-Vue-Admin对自定义与vue特性的追求 ,使用Laravel-Vue-Admin一定要领会到精髓,感兴趣的可以加入Laravel-Vue-Admin的大家庭一起研究讨论哦。
13
+ 放弃jQuery,拥抱vue,是Laravel-Vue-Admin对 ` 自定义 ` 与 ` vue生态 ` 的追求 ,使用Laravel-Vue-Admin一定要领会到精髓
14
14
15
15
16
16
Original file line number Diff line number Diff line change @@ -31,23 +31,33 @@ const FormItemComponent = {
31
31
onChange ( value ) {
32
32
this . $emit ( "change" , value ) ;
33
33
}
34
+ } ,
35
+ watch : {
36
+ value ( value ) {
37
+ try {
38
+ this . vm = value ;
39
+ } catch ( error ) {
40
+
41
+ }
42
+
43
+ }
34
44
}
35
45
}
36
46
37
47
const BaseComponent = {
38
48
mounted ( ) {
39
49
40
50
if ( this . attrs && this . attrs . ref ) {
41
- this . $bus . on ( this . attrs . ref , ( { data, self} ) => {
51
+ this . $bus . on ( this . attrs . ref , ( { data, self } ) => {
42
52
let _this = this ;
43
- new Function ( 'ref' , 'self' , data ) ( _this , self )
53
+ new Function ( 'ref' , 'self' , data ) ( _this , self )
44
54
} )
45
55
}
46
56
47
57
if ( this . formItem && this . formItem . ref ) {
48
- this . $bus . on ( this . formItem . ref , ( { data, self} ) => {
58
+ this . $bus . on ( this . formItem . ref , ( { data, self } ) => {
49
59
let _this = this ;
50
- new Function ( 'ref' , 'self' , data ) ( _this , self )
60
+ new Function ( 'ref' , 'self' , data ) ( _this , self )
51
61
} )
52
62
}
53
63
} ,
You can’t perform that action at this time.
0 commit comments