File tree Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Expand file tree Collapse file tree 2 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 1
1
/**
2
- * vue-formly v2.0 .0
2
+ * vue-formly v2.1 .0
3
3
* https://github.com/matt-sanders/vue-formly
4
4
* Released under the MIT License.
5
5
*/
@@ -772,6 +772,23 @@ return /******/ (function(modules) { // webpackBootstrap
772
772
this . $watch ( 'model.' + this . field . key , function ( val ) {
773
773
var valid = _this2 . validate ( ) ;
774
774
} ) ;
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 ) ;
775
792
}
776
793
} ;
777
794
You can’t perform that action at this time.
0 commit comments