diff --git a/examples/main.js b/examples/main.js index 88079c9..a1250f5 100644 --- a/examples/main.js +++ b/examples/main.js @@ -1,6 +1,5 @@ import { createApp } from 'vue' import ElementPlus from 'element-plus' -import * as ElementPlusIconsVue from '@element-plus/icons-vue' import Vant, { Locale } from 'vant' import enUS from 'vant/es/locale/lang/en-US' // import '@vant/touch-emulator' @@ -14,6 +13,3 @@ app.use(router) app.use(ElementPlus) app.use(Vant) app.mount('#app') -for (const [key, component] of Object.entries(ElementPlusIconsVue)) { - app.component(key, component) -} diff --git a/examples/views/formEditor.vue b/examples/views/formEditor.vue index 0e47131..99b9ee9 100644 --- a/examples/views/formEditor.vue +++ b/examples/views/formEditor.vue @@ -1,9 +1,27 @@ diff --git a/examples/views/formEditor/objEdit.vue b/examples/views/formEditor/objEdit.vue index 6fe3183..eb30dfa 100644 --- a/examples/views/formEditor/objEdit.vue +++ b/examples/views/formEditor/objEdit.vue @@ -41,7 +41,6 @@ const getObjData = async () => { } } const handleListener = async ({ type, data }) => { - console.log(type) switch (type) { case 'lang': lang.value = data @@ -53,6 +52,8 @@ const handleListener = async ({ type, data }) => { } loading.value = true try { + // console.log(data) + // data.fields[0].options.defaultValue = [] const postData = { name: state.name, content: Object.assign({ @@ -89,6 +90,9 @@ const quickImages = ref([ '/public/Everright-logo.svg', '/public/Everright-logo.svg' ]) +const checkFieldsForNewBadge = (field) => { + return field.type === 'subform' +}