@ttkj/avue 2.11.17 → 2.11.18
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +23 -23
- package/lib/avue.min.js +2 -2
- package/package.json +1 -1
- package/types/crud/column.d.ts +3 -3
- package/types/form/option.d.ts +9 -0
package/package.json
CHANGED
package/types/crud/column.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { CreateElement, VNode } from 'vue';
|
2
|
-
import { RenderHeaderData, TableColumn
|
2
|
+
import { RenderHeaderData, TableColumn } from 'element-ui/types/table-column';
|
3
3
|
import { PopoverPlacement } from 'element-ui/types/popover';
|
4
4
|
import { AvueAlignment, AvueComponentSize, Obj } from '../global';
|
5
5
|
import { FormColumnEventBaseParams, FormColumnEventParams, AvueFormBaseColumn, AvueFormColumn, FormColumnEvent } from '../form/column';
|
@@ -262,8 +262,8 @@ export interface CrudColumnFilterOption<T = Obj> {
|
|
262
262
|
* @default true
|
263
263
|
*/
|
264
264
|
filter: boolean;
|
265
|
-
/**
|
266
|
-
filters:
|
265
|
+
/** 是否开启过滤, 默认: false */
|
266
|
+
filters: boolean;
|
267
267
|
/** 数据过滤的选项是否多选, 默认: true */
|
268
268
|
filterMultiple: boolean;
|
269
269
|
/** 数据过滤使用的方法,如果是多选的筛选项,对每一条数据会执行多次,任意一次返回 true 就会显示。 */
|
package/types/form/option.d.ts
CHANGED
@@ -161,6 +161,8 @@ export interface FormEvents {
|
|
161
161
|
_events?: {
|
162
162
|
/** 表单加载完成后执行事件字符串源码 */
|
163
163
|
didMount?: string;
|
164
|
+
/** 表单提交事件字符串源码 */
|
165
|
+
submit?: string;
|
164
166
|
};
|
165
167
|
/**
|
166
168
|
* 表单全局事件
|
@@ -169,6 +171,13 @@ export interface FormEvents {
|
|
169
171
|
events?: {
|
170
172
|
/** 表单加载完成后执行事件 */
|
171
173
|
didMount?: () => void;
|
174
|
+
/**
|
175
|
+
* 表单提交事件
|
176
|
+
* @param form 表单数据
|
177
|
+
* @param hide 取消表单提交状态
|
178
|
+
* @since 2.11.18
|
179
|
+
*/
|
180
|
+
submit?: (form: T, hide: () => void) => void;
|
172
181
|
};
|
173
182
|
}
|
174
183
|
|