@ttkj/avue 2.11.13 → 2.11.15
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +75 -75
- package/lib/avue.min.js +5 -5
- package/lib/index.css +1 -1
- package/package.json +2 -2
- package/types/avue.d.ts +9 -2
- package/types/crud/index.d.ts +20 -14
- package/types/crud/refs/dialog-column.d.ts +8 -0
- package/types/crud/refs/dialog-excel.d.ts +8 -0
- package/types/crud/refs/dialog-filter.d.ts +8 -0
- package/types/crud/refs/dialog-form.d.ts +2 -1
- package/types/crud/refs/header-search.d.ts +3 -1
- package/types/crud/refs/table-page.d.ts +8 -0
- package/types/form/index.d.ts +12 -4
- package/types/form/option.d.ts +1 -1
package/types/form/index.d.ts
CHANGED
@@ -10,6 +10,8 @@ import { AvueFormColumn, DicProps } from './column';
|
|
10
10
|
export interface AvueFormRefs {
|
11
11
|
/** 表单组件 */
|
12
12
|
form: ElForm;
|
13
|
+
// 添加索引签名,使得任意字符串键都能映射到Element或Vue实例
|
14
|
+
[key: string]: Element | Vue | undefined;
|
13
15
|
}
|
14
16
|
|
15
17
|
/** 表单组件 */
|
@@ -52,7 +54,7 @@ export declare class AvueForm<T = Obj> extends AvueComponent {
|
|
52
54
|
* 获取prop的ref对象
|
53
55
|
* @param prop 表单项的 prop 属性
|
54
56
|
*/
|
55
|
-
getPropRef(prop:
|
57
|
+
getPropRef<K extends keyof AvueFormRefs>(prop: K): AvueFormRefs[K];
|
56
58
|
/**
|
57
59
|
* 移除表单项的校验结果。
|
58
60
|
* @param {string | string[]} [props] 传入待移除的表单项的 prop 属性或者 prop 组成的数组,如不传则移除整个表单的校验结果
|
@@ -91,7 +93,7 @@ export declare class AvueForm<T = Obj> extends AvueComponent {
|
|
91
93
|
/** 将表单置于普通状态 */
|
92
94
|
hide(): void;
|
93
95
|
/** 组件Refs */
|
94
|
-
$refs: AvueFormRefs;
|
96
|
+
readonly $refs: AvueFormRefs;
|
95
97
|
}
|
96
98
|
|
97
99
|
/** 通用表单插槽 */
|
@@ -108,8 +110,6 @@ export interface FormNormalScope<T = any, D = Obj, U = Obj, R = Obj> {
|
|
108
110
|
readonly?: boolean;
|
109
111
|
/** 是否禁用 */
|
110
112
|
disabled: boolean;
|
111
|
-
/** 表单数据 */
|
112
|
-
row: D;
|
113
113
|
/** 字典 */
|
114
114
|
dic?: U[];
|
115
115
|
/** 输入时是否触发表单的校验, 仅针对input类型 */
|
@@ -137,3 +137,11 @@ export interface FormNormalScope<T = any, D = Obj, U = Obj, R = Obj> {
|
|
137
137
|
};
|
138
138
|
};
|
139
139
|
}
|
140
|
+
|
141
|
+
/** 基础类组件插槽 */
|
142
|
+
export interface FormBasicScope<D = Obj> {
|
143
|
+
/** 列配置 */
|
144
|
+
column: AvueFormColumn<D>;
|
145
|
+
/** 大小 */
|
146
|
+
size: AvueComponentSize;
|
147
|
+
}
|
package/types/form/option.d.ts
CHANGED