@dazhicheng/ui 1.5.54 → 1.5.55
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/utils.d.ts +7 -0
- package/dist/index.js +6797 -6829
- package/dist/style.css +1 -1
- package/package.json +3 -3
|
@@ -24,6 +24,13 @@ export declare function isRowSchema(schema: GroupFormSchema): schema is FormRowS
|
|
|
24
24
|
* if (isSlotSchema(item)) console.log(item.content);
|
|
25
25
|
*/
|
|
26
26
|
export declare function isSlotSchema(schema: GroupFormSchema): schema is FormSlotSchema;
|
|
27
|
+
/**
|
|
28
|
+
* 为 v-for 生成稳定的 :key,根据 schema 类型选择最合适的标识
|
|
29
|
+
* @param {GroupFormSchema} schema - 分组表单 schema 节点
|
|
30
|
+
* @param {number} idx - 节点在列表中的索引(仅在无唯一标识时作为回退)
|
|
31
|
+
* @returns {string} 用于 :key 的字符串
|
|
32
|
+
*/
|
|
33
|
+
export declare function getSchemaKey(schema: GroupFormSchema, idx: number): string;
|
|
27
34
|
/**
|
|
28
35
|
* 递归展平分组 schema,提取所有字段 schema(忽略分组结构)
|
|
29
36
|
* @param {GroupFormSchema[]} schemas - 分组 schema 数组,可包含分组与字段的混合结构
|