@dazhicheng/ui 1.5.82 → 1.5.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/tt-form/src/group-form/groupFormApi.d.ts +14 -0
- package/dist/index.js +696 -670
- package/dist/plugins.js +85 -69
- package/package.json +1 -1
|
@@ -38,6 +38,8 @@ export declare class GroupFormApi extends FormApi {
|
|
|
38
38
|
private readonly _initialFlatSchema;
|
|
39
39
|
/** 各分组 key → 其直属字段名(不含子分组的字段) */
|
|
40
40
|
private _groupFieldMap;
|
|
41
|
+
/** 各分组 key → 其直属子分组 key 列表 */
|
|
42
|
+
private _groupChildrenMap;
|
|
41
43
|
/** 字段名 → 所属分组 key 的反向映射,用于快速判断字段是否属于隐藏分组 */
|
|
42
44
|
private _fieldToGroupKey;
|
|
43
45
|
/** 子分组 key → 父分组 key 的映射,用于递归向上查找祖先分组是否被隐藏 */
|
|
@@ -246,6 +248,18 @@ export declare class GroupFormApi extends FormApi {
|
|
|
246
248
|
* @returns {string | undefined} 第一个有错误的分组 key
|
|
247
249
|
*/
|
|
248
250
|
private _findFirstErrorGroupKey;
|
|
251
|
+
/**
|
|
252
|
+
* @description 获取指定分组下的字段名列表,默认会获取该分组下的所有字段
|
|
253
|
+
* @param {string} key - 分组 key
|
|
254
|
+
* @param {boolean} 是否包含子分组字段
|
|
255
|
+
* @returns {string[]} 字段名列表
|
|
256
|
+
*/
|
|
257
|
+
getGroupFieldNames(key: string, includeChildren?: boolean): string[];
|
|
258
|
+
/**
|
|
259
|
+
* @description 清空分组下的所有字段值
|
|
260
|
+
* @param {string} key 分组 key
|
|
261
|
+
*/
|
|
262
|
+
clearGroupFieldValues(key: string): void;
|
|
249
263
|
/**
|
|
250
264
|
* @description 卸载分组表单时恢复初始schema
|
|
251
265
|
*/
|