Skip to content

Commit 964a43e

Browse files
committed
build
1 parent 1bc986b commit 964a43e

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

dist/vue-formly.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* vue-formly v2.0.0
2+
* vue-formly v2.1.0
33
* https://github.com/matt-sanders/vue-formly
44
* Released under the MIT License.
55
*/
@@ -772,6 +772,23 @@ return /******/ (function(modules) { // webpackBootstrap
772772
this.$watch('model.' + this.field.key, function (val) {
773773
var valid = _this2.validate();
774774
});
775+
},
776+
mounted: function mounted() {
777+
if (!this.field.wrapper) return;
778+
779+
var wrapper = document.createElement('DIV');
780+
781+
wrapper.innerHTML = this.field.wrapper;
782+
783+
var parent = this.$el.parentNode;
784+
785+
parent.insertBefore(wrapper, this.$el);
786+
787+
wrapper.firstChild.appendChild(this.$el);
788+
789+
parent.insertBefore(wrapper.firstChild, wrapper);
790+
791+
parent.removeChild(wrapper);
775792
}
776793
};
777794

0 commit comments

Comments
 (0)