Skip to content

Commit aae3610

Browse files
committed
updated file input
1 parent 2289796 commit aae3610

File tree

4 files changed

+40
-8
lines changed

4 files changed

+40
-8
lines changed

dist/vue-formly-bootstrap.js

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-formly-bootstrap v1.0.1
2+
* vue-formly-bootstrap v1.0.3
33
* https://github.com/matt-sanders/vue-formly-bootstrap
44
* Released under the MIT License.
55
*/
@@ -687,7 +687,14 @@ return /******/ (function(modules) { // webpackBootstrap
687687
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
688688

689689
exports.default = {
690-
mixins: [_baseField2.default]
690+
mixins: [_baseField2.default],
691+
methods: {
692+
onChange: function onChange(e) {
693+
if (this.form[key].inputType == 'file') {
694+
this.$set('form.' + this.key + '.files', this.$el.querySelector('input').files);
695+
}
696+
}
697+
}
691698
};
692699

693700
/***/ },
@@ -828,7 +835,25 @@ return /******/ (function(modules) { // webpackBootstrap
828835

829836
/***/ },
830837
/* 46 */
831-
39,
838+
/***/ function(module, exports, __webpack_require__) {
839+
840+
'use strict';
841+
842+
Object.defineProperty(exports, "__esModule", {
843+
value: true
844+
});
845+
846+
var _baseField = __webpack_require__(40);
847+
848+
var _baseField2 = _interopRequireDefault(_baseField);
849+
850+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
851+
852+
exports.default = {
853+
mixins: [_baseField2.default]
854+
};
855+
856+
/***/ },
832857
/* 47 */
833858
/***/ function(module, exports) {
834859

@@ -864,7 +889,7 @@ return /******/ (function(modules) { // webpackBootstrap
864889

865890
/***/ },
866891
/* 49 */
867-
39,
892+
46,
868893
/* 50 */
869894
/***/ function(module, exports) {
870895

0 commit comments

Comments
 (0)