mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2025-12-09 20:37:48 +00:00
菜单表单
This commit is contained in:
4
src/components/common-form/public.d.ts
vendored
4
src/components/common-form/public.d.ts
vendored
@@ -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
|
||||
}
|
||||
|
||||
8
src/components/public.d.ts
vendored
8
src/components/public.d.ts
vendored
@@ -12,3 +12,11 @@ export interface CommonPage {
|
||||
totalCount?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* element树结构
|
||||
*/
|
||||
export interface CommonTreeNode {
|
||||
value: string;
|
||||
label: string;
|
||||
children: Array<CommonTreeNode>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user