|
|
@ -108,7 +108,7 @@ export default defineComponent({
|
|
|
|
__ANT_NEW_FORM_ITEM: true,
|
|
|
|
__ANT_NEW_FORM_ITEM: true,
|
|
|
|
props: formItemProps,
|
|
|
|
props: formItemProps,
|
|
|
|
slots: ['help', 'label', 'extra'],
|
|
|
|
slots: ['help', 'label', 'extra'],
|
|
|
|
setup(props, { slots, attrs }) {
|
|
|
|
setup(props, { slots, attrs, expose }) {
|
|
|
|
warning(props.prop === undefined, `\`prop\` is deprecated. Please use \`name\` instead.`);
|
|
|
|
warning(props.prop === undefined, `\`prop\` is deprecated. Please use \`name\` instead.`);
|
|
|
|
const eventKey = `form-item-${++indexGuid}`;
|
|
|
|
const eventKey = `form-item-${++indexGuid}`;
|
|
|
|
const { prefixCls } = useConfigInject('form', props);
|
|
|
|
const { prefixCls } = useConfigInject('form', props);
|
|
|
@ -272,6 +272,12 @@ export default defineComponent({
|
|
|
|
control.focus();
|
|
|
|
control.focus();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
expose({
|
|
|
|
|
|
|
|
onFieldBlur,
|
|
|
|
|
|
|
|
onFieldChange,
|
|
|
|
|
|
|
|
clearValidate,
|
|
|
|
|
|
|
|
resetField,
|
|
|
|
|
|
|
|
});
|
|
|
|
formContext.addField(eventKey, {
|
|
|
|
formContext.addField(eventKey, {
|
|
|
|
fieldValue,
|
|
|
|
fieldValue,
|
|
|
|
fieldId,
|
|
|
|
fieldId,
|
|
|
|