From 5f2884010f813cbd2b61ede7d096b4aebd54cb61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E4=BC=9F=E5=BD=AC?= Date: Fri, 3 Nov 2023 15:03:16 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20FormItem=E9=85=8D=E7=BD=AE=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E8=BE=93=E5=85=A5=E6=A1=86=E5=AD=97=E6=95=B0=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=8F=8A=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Form/src/types/form.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/components/Form/src/types/form.ts b/src/components/Form/src/types/form.ts index 05ab90505..8690d722e 100644 --- a/src/components/Form/src/types/form.ts +++ b/src/components/Form/src/types/form.ts @@ -1,10 +1,10 @@ -import type { NamePath, RuleObject } from 'ant-design-vue/lib/form/interface' -import type { CSSProperties, VNode } from 'vue' -import type { RowProps } from 'ant-design-vue/lib/grid/Row' -import type { FormItem } from './formItem' -import type { ColEx, ComponentType } from './index' import type { ButtonProps as AntdButtonProps } from '@/components/Button' import type { TableActionType } from '@/components/Table/src/types/table' +import type { NamePath, RuleObject } from 'ant-design-vue/lib/form/interface' +import type { RowProps } from 'ant-design-vue/lib/grid/Row' +import type { CSSProperties, VNode } from 'vue' +import type { FormItem } from './formItem' +import type { ColEx, ComponentType } from './index' export type FieldMapToTime = [string, [string, string], (string | [string, string])?][] @@ -189,6 +189,12 @@ interface BaseFormSchema { isAdvanced?: boolean + // Input/InputTextArea是否显示字数 + showCount?: boolean + + // Input/InputTextArea是否字限制长度 + maxlength?: number + // Matching details components span?: number