Explorar el Código

fix: 修复 Transfer 组件 optionApi 不生效

ddup hace 11 meses
padre
commit
198718b874
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/components/Form/src/Form.vue

+ 2 - 1
src/components/Form/src/Form.vue

@@ -158,7 +158,8 @@ export default defineComponent({
         {
           field: item.field,
           path:
-            item.component === ComponentNameEnum.TREE_SELECT
+            item.component === ComponentNameEnum.TREE_SELECT ||
+            item.component === ComponentNameEnum.TRANSFER
               ? 'componentProps.data'
               : 'componentProps.options',
           value: options