File tree Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Expand file tree Collapse file tree 3 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vue-data-dict" ,
3
- "version" : " 1.0.2 " ,
3
+ "version" : " 1.0.3 " ,
4
4
"description" : " data dict for Vue.js" ,
5
5
"main" : " src/index.js" ,
6
6
"unpkg" : " dist/vue-data-dict.js" ,
Original file line number Diff line number Diff line change @@ -36,6 +36,9 @@ export default class Dict {
36
36
Vue . set ( this . value , type , { } )
37
37
Vue . set ( this . label , type , { } )
38
38
Vue . set ( this . dict , type , [ ] )
39
+ if ( dictMeta . lazy ) {
40
+ return
41
+ }
39
42
ps . push ( loadDict ( this , dictMeta ) )
40
43
} )
41
44
return Promise . all ( ps )
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ export default class DictMeta {
14
14
this . responseConverter = options . mapDict || DictOptions . meta . responseConverter
15
15
this . labelField = options . labelField
16
16
this . valueField = options . valueField
17
+ this . lazy = options . lazy === true
17
18
}
18
19
}
19
20
You can’t perform that action at this time.
0 commit comments