File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,5 @@ const options = {
116116 }
117117};
118118
119- export function createFormBuilder ({ components = {} } = {}) {
120- return {
121- ... options,
122- components
123- };
124- }
125-
126119export default options ;
127120 </script >
Original file line number Diff line number Diff line change 1- import FormBuilder , { createFormBuilder } from './components/FormBuilder.vue' ;
1+ import FormBuilder from './components/FormBuilder.vue' ;
22
3- const install = function installFormBuilder ( Vue ) {
3+ const install = function ( Vue ) {
44 Vue . component ( 'form-builder' , FormBuilder ) ;
55} ;
66
7+ const createFormBuilder = function ( options = { } ) {
8+ return {
9+ ...FormBuilder ,
10+ ...options
11+ } ;
12+ } ;
13+
714export { FormBuilder , createFormBuilder } ;
815
916export default {
You can’t perform that action at this time.
0 commit comments