diff --git a/src/components/FormDesign/src/components/VFormDesign/components/ComponentProps.vue b/src/components/FormDesign/src/components/VFormDesign/components/ComponentProps.vue index dda6ded3..7525f7e7 100644 --- a/src/components/FormDesign/src/components/VFormDesign/components/ComponentProps.vue +++ b/src/components/FormDesign/src/components/VFormDesign/components/ComponentProps.vue @@ -14,6 +14,7 @@ import { import { formItemsForEach, remove } from '../../../utils' import type { IBaseFormAttrs } from '../config/formItemPropsConfig' import FormOptions from './FormOptions.vue' +import { componentMap } from '../../../../../Form/src/componentMap.ts' const { formConfig } = useFormDesignState() // 让compuated属性自动更新 @@ -106,6 +107,10 @@ const inputOptions = computed(() => { }) }) +const Com = computed(() => { + return com => componentMap.get(com) as ReturnType +}) + watch( () => formConfig.value.currentItem!.componentProps, () => { @@ -133,7 +138,7 @@ const linkOptions = computed(() => {
-
+
@@ -144,7 +149,7 @@ const linkOptions = computed(() => { diff --git a/src/components/FormDesign/src/components/VFormDesign/components/FormItemColumnProps.vue b/src/components/FormDesign/src/components/VFormDesign/components/FormItemColumnProps.vue index ccfeb7a5..8da5ec7a 100644 --- a/src/components/FormDesign/src/components/VFormDesign/components/FormItemColumnProps.vue +++ b/src/components/FormDesign/src/components/VFormDesign/components/FormItemColumnProps.vue @@ -2,11 +2,13 @@ * @Description: 表单项属性 --> diff --git a/src/components/FormDesign/src/components/VFormDesign/components/FormItemProps.vue b/src/components/FormDesign/src/components/VFormDesign/components/FormItemProps.vue index 9c6e92f8..bcd54970 100644 --- a/src/components/FormDesign/src/components/VFormDesign/components/FormItemProps.vue +++ b/src/components/FormDesign/src/components/VFormDesign/components/FormItemProps.vue @@ -2,7 +2,7 @@ * @Description: 表单项属性,控件属性面板 --> diff --git a/src/components/FormDesign/src/components/VFormDesign/components/FormProps.vue b/src/components/FormDesign/src/components/VFormDesign/components/FormProps.vue index 97ce2b63..17096de4 100644 --- a/src/components/FormDesign/src/components/VFormDesign/components/FormProps.vue +++ b/src/components/FormDesign/src/components/VFormDesign/components/FormProps.vue @@ -11,6 +11,8 @@ import { FormItem, InputNumber, Slider, + RadioGroup, + RadioButton } from 'ant-design-vue' import { useFormDesignState } from '../../../hooks/useFormDesignState' @@ -38,7 +40,7 @@ const sliderSpan = computed(() => {