File tree 5 files changed +9
-9
lines changed
5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 25
25
< script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/jquery.maskedinput/1.4.1/jquery.maskedinput.js "> </ script >
26
26
< script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/ion-rangeslider/2.1.4/js/ion.rangeSlider.js "> </ script >
27
27
<!-- Vanilla libs -->
28
- < script type ="text/javascript " src ="https://rawgit .com/monterail/ vue-multiselect/ 2.0/lib/vue-multiselect.min.js "> </ script >
28
+ < script type ="text/javascript " src ="https://unpkg .com/vue-multiselect@ 2.0.0-beta.13 "> </ script >
29
29
< script type ="text/javascript " src ="https://rawgit.com/nosir/cleave.js/master/dist/cleave.min.js "> </ script >
30
30
< script type ="text/javascript " src ="https://nosir.github.io/cleave.js/lib/cleave-phone.i18n.js "> </ script >
31
31
< script type ="text/javascript " src ="https://cdnjs.cloudflare.com/ajax/libs/noUiSlider/9.0.0/nouislider.js "> </ script >
Original file line number Diff line number Diff line change 48
48
49
49
mounted () {
50
50
this .$nextTick (function () {
51
- if ($ .fn .datetimepicker ) {
51
+ if (window . $ && window . $ .fn .datetimepicker ) {
52
52
$ (this .$el ).datetimepicker (defaults (this .schema .dateTimePickerOptions || {}, {
53
53
format: inputFormat
54
54
}));
59
59
},
60
60
61
61
beforeDestroy () {
62
- if ($ .fn .datetimepicker ){
62
+ if (window . $ && window . $ .fn .datetimepicker ){
63
63
$ (this .$el ).data (" DateTimePicker" ).destroy ();
64
64
}
65
65
}
Original file line number Diff line number Diff line change 11
11
12
12
mounted () {
13
13
this .$nextTick (function () {
14
- if ($ .fn .mask ) {
14
+ if (window . $ && window . $ .fn .mask ) {
15
15
$ (this .$el ).unmask ().mask (this .schema .mask , this .schema .maskOptions );
16
16
} else {
17
17
console .warn (" JQuery MaskedInput library is missing. Please download from https://github.com/digitalBush/jquery.maskedinput and load the script in the HTML head section!" );
20
20
},
21
21
22
22
beforeDestroy () {
23
- if ($ .fn .mask )
23
+ if (window . $ && window . $ .fn .mask )
24
24
$ (this .$el ).unmask ();
25
25
}
26
26
};
Original file line number Diff line number Diff line change 18
18
19
19
watch: {
20
20
model : function () {
21
- if ($ .fn .ionRangeSlider ) {
21
+ if (window . $ && window . $ .fn .ionRangeSlider ) {
22
22
let valueFrom, valueTo;
23
23
if (isArray (this .value )) {
24
24
[ valueFrom, valueTo ] = this .value ;
37
37
38
38
mounted () {
39
39
this .$nextTick (function () {
40
- if ($ .fn .ionRangeSlider ) {
40
+ if (window . $ && window . $ .fn .ionRangeSlider ) {
41
41
let valueFrom, valueTo;
42
42
if (isArray (this .value )) {
43
43
[ valueFrom, valueTo ] = this .value ;
Original file line number Diff line number Diff line change 17
17
18
18
watch: {
19
19
model () {
20
- if ($ .fn .spectrum ) {
20
+ if (window . $ && window . $ .fn .spectrum ) {
21
21
this .picker .spectrum (" set" , this .value );
22
22
}
23
23
},
32
32
33
33
mounted () {
34
34
this .$nextTick (function () {
35
- if ($ .fn .spectrum ) {
35
+ if (window . $ && window . $ .fn .spectrum ) {
36
36
this .picker = $ (this .$el ).spectrum (" destroy" ).spectrum (defaults (this .schema .colorOptions || {}, {
37
37
showInput: true ,
38
38
showAlpha: true ,
You can’t perform that action at this time.
0 commit comments