|
|
@ -9,7 +9,11 @@ |
|
|
import { BasicHelp } from '/@/components/Basic'; |
|
|
import { BasicHelp } from '/@/components/Basic'; |
|
|
import { isBoolean, isFunction, isNull } from '/@/utils/is'; |
|
|
import { isBoolean, isFunction, isNull } from '/@/utils/is'; |
|
|
import { getSlot } from '/@/utils/helper/tsxHelper'; |
|
|
import { getSlot } from '/@/utils/helper/tsxHelper'; |
|
|
import { createPlaceholderMessage, setComponentRuleType } from '../helper'; |
|
|
import { |
|
|
|
|
|
createPlaceholderMessage, |
|
|
|
|
|
NO_AUTO_LINK_COMPONENTS, |
|
|
|
|
|
setComponentRuleType, |
|
|
|
|
|
} from '../helper'; |
|
|
import { cloneDeep, upperFirst } from 'lodash-es'; |
|
|
import { cloneDeep, upperFirst } from 'lodash-es'; |
|
|
import { useItemLabelWidth } from '../hooks/useLabelWidth'; |
|
|
import { useItemLabelWidth } from '../hooks/useLabelWidth'; |
|
|
import { useI18n } from '/@/hooks/web/useI18n'; |
|
|
import { useI18n } from '/@/hooks/web/useI18n'; |
|
|
@ -347,6 +351,15 @@ |
|
|
const showSuffix = !!suffix; |
|
|
const showSuffix = !!suffix; |
|
|
const getSuffix = isFunction(suffix) ? suffix(unref(getValues)) : suffix; |
|
|
const getSuffix = isFunction(suffix) ? suffix(unref(getValues)) : suffix; |
|
|
|
|
|
|
|
|
|
|
|
// TODO 自定义组件验证会出现问题,因此这里框架默认将自定义组件设置手动触发验证,如果其他组件还有此问题请手动设置autoLink=false |
|
|
|
|
|
if (NO_AUTO_LINK_COMPONENTS.includes(component)) { |
|
|
|
|
|
props.schema && |
|
|
|
|
|
(props.schema.itemProps! = { |
|
|
|
|
|
autoLink: false, |
|
|
|
|
|
...props.schema.itemProps, |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return ( |
|
|
return ( |
|
|
<Form.Item |
|
|
<Form.Item |
|
|
name={field} |
|
|
name={field} |
|
|
|