fix: FormItem配置新增输入框字数展示及长度限制

pull/39/head
郑伟彬 2023-11-03 15:03:16 +08:00
parent 9c63ad8279
commit 5f2884010f
1 changed files with 11 additions and 5 deletions

View File

@ -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