Explorar o código

新增html组件

tongshangming %!s(int64=2) %!d(string=hai) anos
pai
achega
a9a617b2fb
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/components/core/form/FormComp.vue

+ 2 - 0
src/components/core/form/FormComp.vue

@@ -87,6 +87,8 @@ const headers = reactive({
     </template>
   </el-upload>
 
+  <div v-else-if="item.type === 'html'" v-html="item.props?.html"></div>
+
   <component
     v-else
     :is="'el-' + item.type"