1
1
/**
2
- * vue-formly-bootstrap v2.0.1
2
+ * vue-formly-bootstrap v2.0.2
3
3
* https://github.com/matt-sanders/vue-formly-bootstrap
4
4
* Released under the MIT License.
5
5
*/
@@ -703,7 +703,7 @@ return /******/ (function(modules) { // webpackBootstrap
703
703
704
704
this . $set ( this . form [ this . field . key ] , '$dirty' , true ) ;
705
705
this . runFunction ( 'onChange' , e ) ;
706
- if ( this . to . type == 'file' ) {
706
+ if ( this . to . inputType == 'file' ) {
707
707
this . $set ( this . model , this . field . key , this . $el . querySelector ( 'input' ) . files ) ;
708
708
}
709
709
}
@@ -761,7 +761,7 @@ return /******/ (function(modules) { // webpackBootstrap
761
761
/* 41 */
762
762
/***/ function ( module , exports ) {
763
763
764
- module . exports = "\n<div class=\"form-group formly-input\" :class=\"[ to.type , {'formly-has-value': model[field.key], 'formly-has-focus': form[field.key].$active}]\">\n <label v-if=\"to.label\" :for=\"to.id ? to.id : null\">{{to.label}}</label>\n <input class=\"form-control\" :class=\"to.classes\" :id=\"to.id ? to.id : null\" type=\"text\" v-model=\"model[field.key]\" @blur=\"onBlur\" @focus=\"onFocus\" @click=\"onClick\" @change=\"onChange\" @keyup=\"onKeyup\" @keydown=\"onKeydown\" v-formly-atts=\"to.atts\" v-formly-input-type=\"to.inputType\">\n</div>\n" ;
764
+ module . exports = "\n<div class=\"form-group formly-input\" :class=\"[ to.inputType , {'formly-has-value': model[field.key], 'formly-has-focus': form[field.key].$active}]\">\n <label v-if=\"to.label\" :for=\"to.id ? to.id : null\">{{to.label}}</label>\n <input class=\"form-control\" :class=\"to.classes\" :id=\"to.id ? to.id : null\" type=\"text\" v-model=\"model[field.key]\" @blur=\"onBlur\" @focus=\"onFocus\" @click=\"onClick\" @change=\"onChange\" @keyup=\"onKeyup\" @keydown=\"onKeydown\" v-formly-atts=\"to.atts\" v-formly-input-type=\"to.inputType\">\n</div>\n" ;
765
765
766
766
/***/ } ,
767
767
/* 42 */
@@ -810,7 +810,7 @@ return /******/ (function(modules) { // webpackBootstrap
810
810
exports . default = {
811
811
mixins : [ _baseField2 . default ] ,
812
812
created : function created ( ) {
813
- var type = this . to . type ;
813
+ var type = this . to . inputType ;
814
814
if ( ( ! type || type == 'checkbox' ) && this . model [ this . field . key ] == '' ) this . $set ( this . model , this . field . key , [ ] ) ;
815
815
}
816
816
} ;
@@ -819,7 +819,7 @@ return /******/ (function(modules) { // webpackBootstrap
819
819
/* 44 */
820
820
/***/ function ( module , exports ) {
821
821
822
- module . exports = "\n<div class=\"checkbox formly-list\" :id=\"to.id\" :class=\"to.classes\">\n\n <label v-for=\"option in field.options\">\n <input v-if=\"!to.type || to.type == 'checkbox'\" type=\"checkbox\" v-model=\"model[field.key]\" :value=\"option.value || option\" @blur=\"onBlur\" @focus=\"onFocus\" @click=\"onClick\" @change=\"onChange\" @keyup=\"onKeyup\" @keydown=\"onKeydown\" v-formly-atts=\"to.atts\">\n <input v-if=\"to.type == 'radio'\" type=\"radio\" v-model=\"model[field.key]\" :value=\"option.value || option\" @blur=\"onBlur\" @focus=\"onFocus\" @click=\"onClick\" @change=\"onChange\" @keyup=\"onKeyup\" @keydown=\"onKeydown\" v-formly-atts=\"to.atts\">\n {{option.label || option}}\n </label>\n \n</div>\n" ;
822
+ module . exports = "\n<div class=\"checkbox formly-list\" :id=\"to.id\" :class=\"to.classes\">\n\n <label v-for=\"option in field.options\">\n <input v-if=\"!to.inputType || to.inputType == 'checkbox'\" type=\"checkbox\" v-model=\"model[field.key]\" :value=\"option.value || option\" @blur=\"onBlur\" @focus=\"onFocus\" @click=\"onClick\" @change=\"onChange\" @keyup=\"onKeyup\" @keydown=\"onKeydown\" v-formly-atts=\"to.atts\">\n <input v-if=\"to.inputType == 'radio'\" type=\"radio\" v-model=\"model[field.key]\" :value=\"option.value || option\" @blur=\"onBlur\" @focus=\"onFocus\" @click=\"onClick\" @change=\"onChange\" @keyup=\"onKeyup\" @keydown=\"onKeydown\" v-formly-atts=\"to.atts\">\n {{option.label || option}}\n </label>\n \n</div>\n" ;
823
823
824
824
/***/ } ,
825
825
/* 45 */
0 commit comments