菜单表单

This commit is contained in:
Gary Fu
2024-01-07 13:43:58 +08:00
parent 8999253e3f
commit 6fc23d2521
4 changed files with 45 additions and 8 deletions

View File

@@ -32,7 +32,7 @@ export interface CommonFormOption {
/**表单类型*/
type: 'input' | 'input-number' | 'cascader' | 'radio'
| 'radio-group' | 'radio-button' | 'checkbox' | 'checkbox-group' | 'checkbox-button' | 'date-picker'
| 'time-picker' | 'switch' | 'select' | 'option' | 'slider' | 'transfer' | 'upload' | 'common-icon-select' | 'common-autocomplete';
| 'time-picker' | 'switch' | 'select' | 'option' | 'slider' | 'transfer' | 'upload' | 'common-icon-select' | 'common-autocomplete' | 'tree-select';
/**数据值*/
value?: any;
/**属性名*/
@@ -62,4 +62,6 @@ export interface CommonFormOption {
children?: Array<CommonFormOption>;
/**async-validator验证器*/
rules: Array<RuleItem>;
/**change事件*/
change: (val: any) => void
}

View File

@@ -12,3 +12,11 @@ export interface CommonPage {
totalCount?: number;
}
/**
* element树结构
*/
export interface CommonTreeNode {
value: string;
label: string;
children: Array<CommonTreeNode>;
}