@qin-ui/element-plus-pro 1.3.5 → 1.4.0
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/AI-CONTEXT.md +26 -2
- package/README.md +41 -30
- package/api.json +69 -38
- package/es/components/component-provider/components/index.vue.d.ts +10 -3
- package/es/components/component-provider/components/index.vue.d.ts.map +1 -1
- package/es/components/component-provider/constants/index.d.ts +22 -4
- package/es/components/component-provider/constants/index.d.ts.map +1 -1
- package/es/components/component-provider/types/index.d.ts +15 -1
- package/es/components/component-provider/types/index.d.ts.map +1 -1
- package/es/components/form/components/BaseField/index.vue.d.ts.map +1 -1
- package/es/components/form/components/BaseField/utils/index.d.ts +15 -0
- package/es/components/form/components/BaseField/utils/index.d.ts.map +1 -1
- package/es/components/form/components/BaseFormItem/index.vue.d.ts +3 -1
- package/es/components/form/components/BaseFormItem/index.vue.d.ts.map +1 -1
- package/es/components/form/components/ContainerFragment/index.vue.d.ts.map +1 -1
- package/es/components/form/components/ProForm/index.vue.d.ts.map +1 -1
- package/es/components/form/components/SlotComponent/index.vue.d.ts.map +1 -1
- package/es/components/form/components/index.d.ts +4 -0
- package/es/components/form/components/index.d.ts.map +1 -1
- package/es/components/form/constants/index.d.ts +8 -2
- package/es/components/form/constants/index.d.ts.map +1 -1
- package/es/components/form/hooks/useFields.d.ts.map +1 -1
- package/es/components/form/hooks/useForm.d.ts.map +1 -1
- package/es/components/form/hooks/useGroupFieldAttrs.d.ts +9 -0
- package/es/components/form/hooks/useGroupFieldAttrs.d.ts.map +1 -1
- package/es/components/form/index.d.ts +2 -2
- package/es/components/form/index.d.ts.map +1 -1
- package/es/components/form/types/index.d.ts +65 -50
- package/es/components/form/types/index.d.ts.map +1 -1
- package/es/components/form/utils/fieldKey.d.ts +13 -0
- package/es/components/form/utils/fieldKey.d.ts.map +1 -0
- package/es/components/table/components/ColumnControl.vue.d.ts +1 -1
- package/es/components/table/components/ColumnControl.vue.d.ts.map +1 -1
- package/es/components/table/components/ProTable.vue.d.ts +15 -1
- package/es/components/table/components/ProTable.vue.d.ts.map +1 -1
- package/es/components/table/components/SearchForm.vue.d.ts +13 -1
- package/es/components/table/components/SearchForm.vue.d.ts.map +1 -1
- package/es/components/table/components/SizeControl.vue.d.ts +7 -2
- package/es/components/table/components/SizeControl.vue.d.ts.map +1 -1
- package/es/components/table/components/TableColumnRenderer.vue.d.ts +14 -14
- package/es/components/table/components/TableColumnRenderer.vue.d.ts.map +1 -1
- package/es/components/table/hooks/index.d.ts +2 -0
- package/es/components/table/hooks/index.d.ts.map +1 -0
- package/es/components/table/{useTable.d.ts → hooks/useTable.d.ts} +3 -3
- package/es/components/table/hooks/useTable.d.ts.map +1 -0
- package/es/components/table/index.d.ts +6 -2
- package/es/components/table/index.d.ts.map +1 -1
- package/es/components/table/types/index.d.ts +16 -12
- package/es/components/table/types/index.d.ts.map +1 -1
- package/es/element-plus-pro.css +14 -14
- package/es/index.d.ts +9 -6
- package/es/index.d.ts.map +1 -1
- package/es/index.js +307 -224
- package/es/index.js.map +1 -1
- package/es/locale/index.d.ts +2 -1
- package/es/locale/index.d.ts.map +1 -1
- package/es/shared/core/index.d.ts +1 -1
- package/es/shared/core/index.d.ts.map +1 -1
- package/es/shared/ui/index.d.ts +20 -2
- package/es/shared/ui/index.d.ts.map +1 -1
- package/package.json +6 -4
- package/src/components/component-provider/components/index.vue +48 -21
- package/src/components/component-provider/constants/index.ts +34 -6
- package/src/components/component-provider/types/index.ts +21 -7
- package/src/components/form/components/BaseField/index.vue +25 -12
- package/src/components/form/components/BaseField/utils/index.ts +16 -1
- package/src/components/form/components/BaseFormItem/index.vue +24 -28
- package/src/components/form/components/ContainerFragment/index.vue +3 -1
- package/src/components/form/components/ProForm/index.vue +42 -22
- package/src/components/form/components/SlotComponent/index.vue +4 -2
- package/src/components/form/components/index.ts +8 -1
- package/src/components/form/constants/index.ts +9 -2
- package/src/components/form/hooks/useFields.ts +5 -2
- package/src/components/form/hooks/useForm.ts +8 -1
- package/src/components/form/hooks/useGroupFieldAttrs.ts +24 -17
- package/src/components/form/index.ts +1 -3
- package/src/components/form/types/index.ts +71 -52
- package/src/components/form/utils/fieldKey.ts +27 -0
- package/src/components/table/components/ColumnControl.vue +16 -6
- package/src/components/table/components/ProTable.vue +183 -93
- package/src/components/table/components/SearchForm.vue +60 -22
- package/src/components/table/components/SizeControl.vue +23 -1
- package/src/components/table/components/TableColumnRenderer.vue +82 -63
- package/src/components/table/hooks/index.ts +1 -0
- package/src/components/table/{useTable.ts → hooks/useTable.ts} +6 -4
- package/src/components/table/index.ts +11 -2
- package/src/components/table/types/index.ts +17 -13
- package/src/index.ts +13 -7
- package/src/locale/index.ts +4 -2
- package/src/shared/core/index.ts +11 -0
- package/src/shared/ui/index.ts +29 -5
- package/tsconfig.json +0 -1
- package/es/components/table/useTable.d.ts.map +0 -1
|
@@ -5,8 +5,12 @@ export { default as BaseField } from './BaseField/index.vue';
|
|
|
5
5
|
export { default as ContainerFragment } from './ContainerFragment/index.vue';
|
|
6
6
|
export { default as SlotComponent } from './SlotComponent/index.vue';
|
|
7
7
|
export { ProForm, BaseFormItem };
|
|
8
|
+
/** ProForm 组件实例 */
|
|
8
9
|
export type ProFormInstance = ComponentExposed<typeof ProForm>;
|
|
10
|
+
/** ProForm 组件属性 */
|
|
9
11
|
export type ProFormProps = ComponentProps<typeof ProForm>;
|
|
12
|
+
/** BaseFormItem 组件实例(字段级 FormItem) */
|
|
10
13
|
export type ProFormItemInstance = ComponentExposed<typeof BaseFormItem>;
|
|
14
|
+
/** BaseFormItem 组件属性(字段级 FormItem) */
|
|
11
15
|
export type ProFormItemProps = ComponentProps<typeof BaseFormItem>;
|
|
12
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,gBAAgB,EACjB,MAAM,4BAA4B,CAAC;AACpC,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,YAAY,MAAM,0BAA0B,CAAC;AAEpD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC;AAGjC,mBAAmB;AACnB,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,OAAO,OAAO,CAAC,CAAC;AAC/D,mBAAmB;AACnB,MAAM,MAAM,YAAY,GAAG,cAAc,CAAC,OAAO,OAAO,CAAC,CAAC;AAE1D,sCAAsC;AACtC,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,CAAC,OAAO,YAAY,CAAC,CAAC;AACxE,sCAAsC;AACtC,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -37,7 +37,7 @@ export type BaseComponentMap = {
|
|
|
37
37
|
* }
|
|
38
38
|
* }
|
|
39
39
|
* ```
|
|
40
|
-
|
|
40
|
+
*
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
43
|
export interface ComponentMap {
|
|
@@ -45,7 +45,7 @@ export interface ComponentMap {
|
|
|
45
45
|
/**
|
|
46
46
|
* 组件名称联合类型
|
|
47
47
|
* @description 所有支持的组件名称
|
|
48
|
-
|
|
48
|
+
*
|
|
49
49
|
* @public
|
|
50
50
|
*/
|
|
51
51
|
export type ComponentName = keyof BaseComponentMap | keyof ComponentMap | 'custom';
|
|
@@ -58,5 +58,11 @@ export type GetComponentType<K extends ComponentName> = K extends keyof Componen
|
|
|
58
58
|
* 组件名称到 Element Plus 组件的映射
|
|
59
59
|
*/
|
|
60
60
|
export declare const componentMap: BaseComponentMap;
|
|
61
|
+
/**
|
|
62
|
+
* 字段标识键序:el-form-item 的 prop 优先,path 兜底
|
|
63
|
+
*
|
|
64
|
+
* 与字段读写绑定、表单域标识、字段查找 API 共用同一解析入口
|
|
65
|
+
*/
|
|
66
|
+
export declare const ELEMENT_FIELD_IDENTITY_KEYS: readonly ["prop", "path"];
|
|
61
67
|
export { InjectionFormKey, InjectionFormSlotsKey } from '../../../shared/core';
|
|
62
68
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,YAAY,EACZ,KAAK,EACL,WAAW,EACX,UAAU,EACV,MAAM,EACN,MAAM,EACN,MAAM,EACN,UAAU,EACV,UAAU,EACV,QAAQ,EACR,UAAU,EACX,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AAEH,eAAO,MAAM,mBAAmB,6BAA8B,CAAC;AAE/D;;;GAGG;AAEH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,KAAK,CAAC;IACtB,cAAc,EAAE,OAAO,WAAW,CAAC;IACnC,cAAc,EAAE,OAAO,YAAY,CAAC;IACpC,QAAQ,EAAE,OAAO,MAAM,CAAC;IACxB,UAAU,EAAE,OAAO,QAAQ,CAAC;IAC5B,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,gBAAgB,EAAE,OAAO,aAAa,CAAC;IACvC,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,QAAQ,EAAE,OAAO,MAAM,CAAC;IACxB,QAAQ,EAAE,OAAO,MAAM,CAAC;IACxB,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,UAAU,EAAE,OAAO,QAAQ,CAAC;CAC7B,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,WAAW,YAAY;CAAG;AAEhC;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GACrB,MAAM,gBAAgB,GACtB,MAAM,YAAY,GAClB,QAAQ,CAAC;AAEb;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,aAAa,IAClD,CAAC,SAAS,MAAM,YAAY,GACxB,YAAY,CAAC,CAAC,CAAC,GACf,CAAC,SAAS,MAAM,gBAAgB,GAC9B,gBAAgB,CAAC,CAAC,CAAC,GACnB,KAAK,CAAC;AAEd;;GAEG;AAEH,eAAO,MAAM,YAAY,EAAE,gBAe1B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/constants/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,YAAY,EACZ,KAAK,EACL,WAAW,EACX,UAAU,EACV,MAAM,EACN,MAAM,EACN,MAAM,EACN,UAAU,EACV,UAAU,EACV,QAAQ,EACR,UAAU,EACX,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AAEH,eAAO,MAAM,mBAAmB,6BAA8B,CAAC;AAE/D;;;GAGG;AAEH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,OAAO,KAAK,CAAC;IACtB,cAAc,EAAE,OAAO,WAAW,CAAC;IACnC,cAAc,EAAE,OAAO,YAAY,CAAC;IACpC,QAAQ,EAAE,OAAO,MAAM,CAAC;IACxB,UAAU,EAAE,OAAO,QAAQ,CAAC;IAC5B,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,gBAAgB,EAAE,OAAO,aAAa,CAAC;IACvC,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,QAAQ,EAAE,OAAO,MAAM,CAAC;IACxB,QAAQ,EAAE,OAAO,MAAM,CAAC;IACxB,aAAa,EAAE,OAAO,UAAU,CAAC;IACjC,UAAU,EAAE,OAAO,QAAQ,CAAC;CAC7B,CAAA;AAED;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,WAAW,YAAY;CAAG;AAEhC;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GACrB,MAAM,gBAAgB,GACtB,MAAM,YAAY,GAClB,QAAQ,CAAC;AAEb;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,aAAa,IAClD,CAAC,SAAS,MAAM,YAAY,GACxB,YAAY,CAAC,CAAC,CAAC,GACf,CAAC,SAAS,MAAM,gBAAgB,GAC9B,gBAAgB,CAAC,CAAC,CAAC,GACnB,KAAK,CAAC;AAEd;;GAEG;AAEH,eAAO,MAAM,YAAY,EAAE,gBAe1B,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,2BAA2B,2BAA4B,CAAC;AAGrE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFields.d.ts","sourceRoot":"","sources":["../../../../src/components/form/hooks/useFields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"useFields.d.ts","sourceRoot":"","sources":["../../../../src/components/form/hooks/useFields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAEL,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,EAC7C,UAAU,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,GACrB,eAAe,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC;AAOjE;;GAEG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../src/components/form/hooks/useForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,IAAI,IAAI,KAAK,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../../../src/components/form/hooks/useForm.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,IAAI,IAAI,KAAK,EACnB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAEvD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,MAAM,MAAM,IAAI,CACd,CAAC,SAAS,IAAI,GAAG,IAAI,EACrB,CAAC,SAAS,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,IACzD,KAAK,CAAC,CAAC,EAAE,CAAC,EAAE,YAAY,CAAC,CAAC;AAE9B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,EAC3C,YAAY,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAC5C,UAAU,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE,EACtC,IAAI,CAAC,EAAE,OAAO,GACb,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC;AACpC,wBAAgB,OAAO,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,EAC3C,IAAI,CAAC,EAAE,OAAO,GACb,IAAI,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { ComputedRef } from 'vue';
|
|
|
2
2
|
import { FormItemProps, GridItemProps } from '../../../shared/ui';
|
|
3
3
|
import { FORM_ITEM_SLOT_KEYS } from '../constants';
|
|
4
4
|
import { Base, Field } from '../types';
|
|
5
|
+
/** 单个字段的分组结果:栅格 / FormItem / 组件属性与插槽 */
|
|
5
6
|
export interface GroupedField {
|
|
6
7
|
path: string;
|
|
7
8
|
gridItemProps: GridItemProps;
|
|
@@ -10,9 +11,17 @@ export interface GroupedField {
|
|
|
10
11
|
componentProps: Record<string, any>;
|
|
11
12
|
container?: Base['formItemContainer'];
|
|
12
13
|
rawField: Field;
|
|
14
|
+
renderKey: string | number;
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* 将 fields 配置数组逐个拆分为 grid / formItem / component / slots 分组。
|
|
18
|
+
*
|
|
19
|
+
* @description
|
|
20
|
+
* 1. 响应式集成 ProComponentProvider 的 `pro-form-item` 全局变量配置;
|
|
21
|
+
* 2. 剥离 `extraProps`(用户自定义字段标识袋):保留在字段原始对象上供业务层存取,渲染层经解构剥离,不落入 componentProps 透传。
|
|
22
|
+
*
|
|
23
|
+
* @param {ComputedRef<Field[]>} validFields - 已过滤的字段配置数组
|
|
24
|
+
* @returns {ComputedRef<GroupedField[]>} 分组后的字段属性数组
|
|
16
25
|
*/
|
|
17
26
|
export declare function useGroupFieldAttrs(validFields: ComputedRef<Field[]>): ComputedRef<GroupedField[]>;
|
|
18
27
|
//# sourceMappingURL=useGroupFieldAttrs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGroupFieldAttrs.d.ts","sourceRoot":"","sources":["../../../../src/components/form/hooks/useGroupFieldAttrs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"useGroupFieldAttrs.d.ts","sourceRoot":"","sources":["../../../../src/components/form/hooks/useGroupFieldAttrs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAyC,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;AAE9E,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,aAAa,EACnB,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAA+B,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAQ5C,wCAAwC;AACxC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAC7B,aAAa,EAAE,MAAM,CAAC,CAAC,OAAO,mBAAmB,CAAC,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,CAAC;IACjE,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACpC,SAAS,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,WAAW,CAAC,KAAK,EAAE,CAAC,+BAoFnE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as ProForm } from './components/ProForm/index.vue';
|
|
2
|
-
export { ContainerFragment, SlotComponent, type ProFormProps, type ProFormInstance,
|
|
2
|
+
export { ContainerFragment, SlotComponent, type ProFormProps, type ProFormInstance, } from './components';
|
|
3
3
|
export { type ComponentMap, type ComponentName } from './constants';
|
|
4
|
-
export { type Field, type Fields } from './types';
|
|
4
|
+
export { type Field, type Fields, type ValueFormatter } from './types';
|
|
5
5
|
export { useForm, useFields, useFormRef, useFormData, type Form, type UseFields, } from './hooks';
|
|
6
6
|
export default ProForm;
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gCAAgC,CAAC;AAGrD,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,eAAe,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,gCAAgC,CAAC;AAGrD,OAAO,EACL,iBAAiB,EACjB,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,eAAe,GACrB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAGpE,OAAO,EAAE,KAAK,KAAK,EAAE,KAAK,MAAM,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAGvE,OAAO,EACL,OAAO,EACP,SAAS,EACT,UAAU,EACV,WAAW,EACX,KAAK,IAAI,EACT,KAAK,SAAS,GACf,MAAM,SAAS,CAAC;AAEjB,eAAe,OAAO,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { FormItemProps, GridProps, GridItemProps, FormInstance, FormItem } from '../../../shared/ui';
|
|
1
|
+
import { FormItemProps, GridProps, GridItemProps, FormInstance, FormItem, FormItemInstance } from '../../../shared/ui';
|
|
2
2
|
import { ComponentProps, ComponentSlots } from 'vue-component-type-helpers';
|
|
3
|
-
import {
|
|
4
|
-
import { Data, Path } from '../../../shared/core';
|
|
3
|
+
import { VNode, VNodeProps, ClassValue, Component, Raw, MaybeRef, ComputedRef, StyleValue } from 'vue';
|
|
4
|
+
import { Data, Path, AdditionalMethods } from '../../../shared/core';
|
|
5
5
|
import { ComponentName, GetComponentType } from '../constants';
|
|
6
6
|
export type { FormInstance };
|
|
7
|
+
/** 路径属性:把字段路径随 props 下发给渲染组件 */
|
|
7
8
|
export type PathProps = {
|
|
8
9
|
path?: string;
|
|
9
10
|
} & Data;
|
|
11
|
+
/** v-model 绑定属性:模型值与更新回调 */
|
|
10
12
|
export type VModelProps<T = any> = {
|
|
11
13
|
modelValue?: T;
|
|
12
14
|
'onUpdate:modelValue'?: (val: T) => void;
|
|
@@ -42,53 +44,57 @@ export type ValueFormatter = {
|
|
|
42
44
|
set?: (val: any, oldVal?: any) => any;
|
|
43
45
|
};
|
|
44
46
|
/**
|
|
45
|
-
*
|
|
47
|
+
* 自定义渲染组件类型
|
|
46
48
|
* @example (p, ctx) => h('div', ctx.attrs)
|
|
47
49
|
*/
|
|
48
50
|
export type RenderComponentType = Component<VModelProps & PathProps>;
|
|
49
51
|
/**
|
|
50
|
-
*
|
|
52
|
+
* 插槽组件类型:VNode、组件定义、渲染函数或文本
|
|
51
53
|
*/
|
|
52
54
|
export type SlotComponentType = Component<PathProps> | VNode | string | number | boolean | null | undefined | ((...args: any[]) => SlotComponentType);
|
|
53
55
|
/**
|
|
54
|
-
*
|
|
56
|
+
* 容器组件类型
|
|
55
57
|
*/
|
|
56
58
|
export type ContainerComponent = Component<PathProps>;
|
|
57
59
|
/**
|
|
58
|
-
*
|
|
60
|
+
* 插槽对象类型,键为插槽名
|
|
59
61
|
*/
|
|
60
62
|
export type Slots = {
|
|
61
63
|
[name: string]: SlotComponentType;
|
|
62
64
|
};
|
|
65
|
+
/** 选项数据:label 展示、value 取值,可携带任意扩展字段 */
|
|
63
66
|
export type Option = {
|
|
64
67
|
label: string;
|
|
65
68
|
value: any;
|
|
66
69
|
[x: string]: any;
|
|
67
70
|
};
|
|
71
|
+
/** 选项数据数组 */
|
|
68
72
|
export type Options = Array<Option>;
|
|
73
|
+
/** 网格布局配置:布尔即启用默认布局,传对象作为 GridProps */
|
|
69
74
|
export type Grid = boolean | (GridProps & {});
|
|
75
|
+
/** FormItem 插槽集合(label / error 等) */
|
|
70
76
|
export type FormItemSlots = ComponentSlots<typeof FormItem>;
|
|
71
77
|
type BaseCommon<D extends Data = Data> = {
|
|
72
78
|
/**
|
|
73
|
-
*
|
|
79
|
+
* 字段标识(namePath),与 prop 同时配置时以 prop 为准;`name` 作为控件自身属性向下透传
|
|
80
|
+
*
|
|
81
|
+
* 嵌套字段的 `path` 使用各自独立的完整路径(不与父级路径拼接),重复路径需自行保证唯一。
|
|
74
82
|
* @example 'name' | 'age' | 'sex' | ...
|
|
75
83
|
*/
|
|
76
84
|
path?: Path<D>;
|
|
77
|
-
/**
|
|
78
|
-
* @description 字段是否隐藏
|
|
79
|
-
*/
|
|
85
|
+
/** 字段是否隐藏;支持布尔、Ref 与 ComputedRef 形式,渲染期统一按 `toValue` 取值 */
|
|
80
86
|
hidden?: boolean;
|
|
81
87
|
/**
|
|
82
|
-
*
|
|
88
|
+
* 字段是否禁用;字段级取值优先,未显式指定时继承上层(表单或宿主 Provider)的禁用上下文
|
|
83
89
|
*/
|
|
84
90
|
disabled?: boolean;
|
|
85
91
|
/**
|
|
86
|
-
*
|
|
92
|
+
* 字段中文名称,支持字符串或组件
|
|
87
93
|
* @example '姓名' | '年龄' | '性别' | () => h('span', '自定义标签')
|
|
88
94
|
*/
|
|
89
95
|
label?: SlotComponentType;
|
|
90
96
|
/**
|
|
91
|
-
*
|
|
97
|
+
* 字段插槽配置,可包含 FormItem 插槽与组件插槽
|
|
92
98
|
* @example
|
|
93
99
|
* ```js
|
|
94
100
|
* slots: {
|
|
@@ -100,70 +106,72 @@ type BaseCommon<D extends Data = Data> = {
|
|
|
100
106
|
*/
|
|
101
107
|
slots?: Partial<FormItemSlots>;
|
|
102
108
|
/**
|
|
103
|
-
*
|
|
109
|
+
* FormItem 样式
|
|
104
110
|
* @example { marginBottom: '8px', padding: '12px' }
|
|
105
111
|
*/
|
|
106
|
-
formItemStyle?:
|
|
112
|
+
formItemStyle?: StyleValue;
|
|
107
113
|
/**
|
|
108
|
-
*
|
|
114
|
+
* FormItem 类名
|
|
109
115
|
* @example 'custom-form-item' | 'required-field'
|
|
110
116
|
*/
|
|
111
|
-
formItemClass?:
|
|
117
|
+
formItemClass?: ClassValue;
|
|
112
118
|
/**
|
|
113
|
-
*
|
|
119
|
+
* FormItem 外层包裹组件
|
|
114
120
|
* @example (props, ctx) => h('div', { class: 'custom-container' }, ctx.slots.default?.())
|
|
115
121
|
*/
|
|
116
122
|
formItemContainer?: ContainerComponent;
|
|
117
123
|
/**
|
|
118
|
-
*
|
|
124
|
+
* 附加到 FormItem DOM 节点上的属性
|
|
119
125
|
* @example { 'data-form-item-test': 'test-value', 'aria-label': 'name' }
|
|
120
126
|
*/
|
|
121
127
|
formItemDataAttrs?: Record<string, string>;
|
|
122
128
|
/**
|
|
123
|
-
*
|
|
129
|
+
* 业务侧自定义标识属性,不作为组件属性透传
|
|
124
130
|
* @example { group: 'group-1' }
|
|
125
131
|
*/
|
|
126
132
|
extraProps?: Record<string, any>;
|
|
127
133
|
};
|
|
128
134
|
type BaseWithFields<D extends Data = Data> = BaseCommon<D> & {
|
|
129
135
|
/**
|
|
130
|
-
*
|
|
131
|
-
* @example [{
|
|
136
|
+
* 嵌套子字段配置
|
|
137
|
+
* @example [{ path: 'firstName', label: '名' }, { path: 'lastName', label: '姓' }]
|
|
132
138
|
*/
|
|
133
139
|
fields: Fields<D>;
|
|
134
140
|
/**
|
|
135
|
-
*
|
|
141
|
+
* 网格布局配置,true 表示使用默认网格布局
|
|
136
142
|
* @example boolean | { gutter: 24 }
|
|
137
143
|
*/
|
|
138
144
|
grid?: Grid;
|
|
139
145
|
component?: never;
|
|
140
146
|
/**
|
|
141
|
-
*
|
|
147
|
+
* 组件样式(仅非嵌套字段有效)
|
|
142
148
|
* @example { width: '100%', borderColor: '#d9d9d9' }
|
|
143
149
|
*/
|
|
144
150
|
componentStyle?: never;
|
|
145
151
|
/**
|
|
146
|
-
*
|
|
152
|
+
* 组件类名(仅非嵌套字段有效)
|
|
147
153
|
* @example 'custom-input' | 'error-input'
|
|
148
154
|
*/
|
|
149
155
|
componentClass?: never;
|
|
150
156
|
/**
|
|
151
|
-
*
|
|
157
|
+
* 组件外层包裹组件(仅非嵌套字段有效)
|
|
152
158
|
* @example (props, ctx) => h('div', { class: 'input-wrapper' }, ctx.slots.default?.())
|
|
153
159
|
*/
|
|
154
160
|
componentContainer?: never;
|
|
155
161
|
/**
|
|
156
|
-
*
|
|
162
|
+
* 附加到组件 DOM 节点上的属性(仅非嵌套字段有效)
|
|
157
163
|
* @example { 'data-test': 'input-value', 'aria-label': 'name' }
|
|
158
164
|
*/
|
|
159
165
|
componentDataAttrs?: never;
|
|
160
166
|
/**
|
|
161
|
-
*
|
|
167
|
+
* 字段值处理函数,在 onUpdateValue 前执行(仅非嵌套字段有效)
|
|
168
|
+
*
|
|
169
|
+
* 函数返回值作为更新值;也可传 `{ get, set }` 对象分别处理读取与写入
|
|
162
170
|
* @example (val) => val?.trim()
|
|
163
171
|
*/
|
|
164
172
|
valueFormatter?: never;
|
|
165
173
|
/**
|
|
166
|
-
*
|
|
174
|
+
* v-model 绑定的属性名,默认 `modelValue`(仅非嵌套字段有效)
|
|
167
175
|
*/
|
|
168
176
|
modelProp?: never;
|
|
169
177
|
};
|
|
@@ -171,41 +179,43 @@ type BaseWithoutFields<D extends Data = Data> = BaseCommon<D> & {
|
|
|
171
179
|
fields?: undefined;
|
|
172
180
|
grid?: never;
|
|
173
181
|
/**
|
|
174
|
-
*
|
|
182
|
+
* 组件样式(仅非嵌套字段有效)
|
|
175
183
|
* @example { width: '100%', borderColor: '#d9d9d9' }
|
|
176
184
|
*/
|
|
177
|
-
componentStyle?:
|
|
185
|
+
componentStyle?: StyleValue;
|
|
178
186
|
/**
|
|
179
|
-
*
|
|
187
|
+
* 组件类名(仅非嵌套字段有效)
|
|
180
188
|
* @example 'custom-input' | 'error-input'
|
|
181
189
|
*/
|
|
182
|
-
componentClass?:
|
|
190
|
+
componentClass?: ClassValue;
|
|
183
191
|
/**
|
|
184
|
-
*
|
|
192
|
+
* 组件外层包裹组件(仅非嵌套字段有效)
|
|
185
193
|
* @example (props, ctx) => h('div', { class: 'input-wrapper' }, ctx.slots.default?.())
|
|
186
194
|
*/
|
|
187
195
|
componentContainer?: ContainerComponent;
|
|
188
196
|
/**
|
|
189
|
-
*
|
|
197
|
+
* 附加到组件 DOM 节点上的属性(仅非嵌套字段有效)
|
|
190
198
|
* @example { 'data-test': 'input-value', 'aria-label': 'name' }
|
|
191
199
|
*/
|
|
192
200
|
componentDataAttrs?: Record<string, string>;
|
|
193
201
|
/**
|
|
194
|
-
*
|
|
202
|
+
* 字段值处理函数,在 onUpdateValue 前执行
|
|
203
|
+
*
|
|
204
|
+
* 函数返回值作为更新值;也可传 `{ get, set }` 对象分别处理读取与写入
|
|
195
205
|
* @example (val) => val?.trim()
|
|
196
206
|
*/
|
|
197
207
|
valueFormatter?: ValueFormatter;
|
|
198
208
|
/**
|
|
199
|
-
*
|
|
209
|
+
* v-model 绑定的属性名,默认 `modelValue`
|
|
200
210
|
*/
|
|
201
211
|
modelProp?: string;
|
|
202
212
|
};
|
|
203
213
|
/**
|
|
204
|
-
*
|
|
214
|
+
* 基础公共字段类型(非嵌套字段与嵌套字段两个分支)
|
|
205
215
|
*/
|
|
206
216
|
export type Base<D extends Data = Data> = BaseWithFields<D> | BaseWithoutFields<D>;
|
|
207
217
|
/**
|
|
208
|
-
*
|
|
218
|
+
* 内置组件名到字段配置类型的映射
|
|
209
219
|
*/
|
|
210
220
|
export type FieldTypeMap<D extends Data = Data> = {
|
|
211
221
|
[K in ComponentName]: K extends 'custom' ? WithCommon<{
|
|
@@ -218,12 +228,13 @@ export type FieldTypeMap<D extends Data = Data> = {
|
|
|
218
228
|
};
|
|
219
229
|
};
|
|
220
230
|
/**
|
|
221
|
-
*
|
|
231
|
+
* 不支持响应式取值的字段属性名
|
|
222
232
|
*/
|
|
223
233
|
type NotSupportedRefOrGetterProps = 'component' | 'formItemContainer' | 'componentContainer' | 'valueFormatter' | 'fields' | 'slots' | 'modelProp';
|
|
224
234
|
type MaybeRefOrComputedRef<T = any> = MaybeRef<T> | ComputedRef<T>;
|
|
225
235
|
/**
|
|
226
|
-
*
|
|
236
|
+
* 为对象属性添加响应式支持的类型
|
|
237
|
+
*
|
|
227
238
|
* @template T - 原始类型
|
|
228
239
|
*/
|
|
229
240
|
export type WithRef<T> = {
|
|
@@ -233,13 +244,14 @@ type WithCommonBase<T = unknown> = T & Omit<FormItemProps, 'label'> & GridItemPr
|
|
|
233
244
|
type WithCommon<T, D extends Data = Data> = WithRef<WithCommonBase<T> & BaseWithoutFields<D>>;
|
|
234
245
|
type WithFields<D extends Data = Data> = WithRef<WithCommonBase & BaseWithFields<D>>;
|
|
235
246
|
/**
|
|
236
|
-
*
|
|
247
|
+
* 合并 FormItem 插槽与组件插槽
|
|
237
248
|
*/
|
|
238
249
|
export type MergeSlots<T, CS = ComponentSlots<T>> = Partial<{
|
|
239
250
|
[K in keyof FormItemSlots | keyof CS]: K extends keyof FormItemSlots ? FormItemSlots[K] : K extends keyof CS ? CS[K] : SlotComponentType;
|
|
240
251
|
}>;
|
|
241
252
|
/**
|
|
242
|
-
*
|
|
253
|
+
* 从 Vue 组件提取 Props 与 Slots,并叠加公共字段属性
|
|
254
|
+
*
|
|
243
255
|
* @template T - Vue 组件类型
|
|
244
256
|
* @template D - 数据对象类型
|
|
245
257
|
*/
|
|
@@ -247,18 +259,21 @@ type WithComponent<T, D extends Data = Data> = Omit<WithCommon<Partial<Component
|
|
|
247
259
|
slots?: MergeSlots<T>;
|
|
248
260
|
};
|
|
249
261
|
/**
|
|
250
|
-
*
|
|
262
|
+
* 字段配置类型,包含字段属性、响应式取值与宿主组件 Props
|
|
263
|
+
*
|
|
264
|
+
* @template C - 组件名,默认覆盖全部内置组件名
|
|
251
265
|
* @template D - 数据对象类型
|
|
252
|
-
|
|
266
|
+
*
|
|
253
267
|
* @public
|
|
254
268
|
*/
|
|
255
|
-
export type Field<C extends ComponentName = ComponentName, D extends Data = Data> = (FieldTypeMap<D>[C] & {
|
|
269
|
+
export type Field<C extends ComponentName = ComponentName, D extends Data = Data> = ((FieldTypeMap<D>[C] & {
|
|
256
270
|
component?: C extends 'custom' ? FieldTypeMap<D>[C]['component'] : C;
|
|
257
|
-
}) | WithFields<D>;
|
|
271
|
+
}) | WithFields<D>) & AdditionalMethods<FormItemInstance>;
|
|
258
272
|
/**
|
|
259
|
-
*
|
|
273
|
+
* 字段配置数组类型
|
|
274
|
+
*
|
|
260
275
|
* @template D - 数据对象类型
|
|
261
|
-
|
|
276
|
+
*
|
|
262
277
|
* @public
|
|
263
278
|
*/
|
|
264
279
|
export type Fields<D extends Data = Data> = Array<Field<ComponentName, D>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,aAAa,EACb,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/form/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,aAAa,EACb,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAC7C,OAAO,EACL,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,GAAG,EACR,KAAK,QAAQ,EACb,KAAK,WAAW,EAChB,KAAK,UAAU,EAChB,MAAM,KAAK,CAAC;AACb,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,YAAY,EAAE,YAAY,EAAE,CAAC;AAE7B,gCAAgC;AAChC,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAAC;AAEjD,4BAA4B;AAC5B,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,GAAG,IAAI;IACjC,UAAU,CAAC,EAAE,CAAC,CAAC;IACf,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAC;CAC1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I,GAAG,IAAI,IAAI,IAAI,CACjD,UAAU,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EACzC,MAAM,UAAU,GAAG,OAAO,CAC3B,GAAG;IACF,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;CACvB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,KAAK,CACf,CAAC,SAAS,aAAa,GAAG,aAAa,EACvC,CAAC,SAAS,IAAI,GAAG,IAAI,IACnB,CACA,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;IACpB,SAAS,CAAC,EAAE,CAAC,SAAS,QAAQ,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;CACtE,CAAC,GACF,UAAU,CAAC,CAAC,CAAC,CAChB,GACC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAEtC;;;;;;GAMG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 字段渲染 key
|
|
3
|
+
*
|
|
4
|
+
* @description 以 `toRaw(field)` 为键在模块级 WeakMap 中缓存自增编号,同一字段对象恒得同一 key:
|
|
5
|
+
* key 与字段在数组中的位置解耦,字段插入 / 删除 / 重排 / 过滤后仍与对象绑定;同 `path` 的兄弟字段各得其唯一 key。
|
|
6
|
+
* 非对象项无对象身份,按字面量生成稳定 key;渲染路径传入的字段项已由调用方过滤为非 null 对象,
|
|
7
|
+
* 该分支供本模块的直接调用者使用
|
|
8
|
+
*
|
|
9
|
+
* @param field - 字段配置项
|
|
10
|
+
* @returns 字段渲染 key
|
|
11
|
+
*/
|
|
12
|
+
export declare const getFieldKey: (field: unknown) => string | number;
|
|
13
|
+
//# sourceMappingURL=fieldKey.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fieldKey.d.ts","sourceRoot":"","sources":["../../../../src/components/form/utils/fieldKey.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,MAAM,GAAG,MAUrD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColumnControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ColumnControl.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColumnControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ColumnControl.vue"],"names":[],"mappings":"AAmOA,OAAO,KAAK,EAAU,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,UAAU,CAAC;AAKtC,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACrC,CAAC;;WAFQ,KAAK;mBACG,mBAAmB;;AAqTrC,wBAQG"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PaginationProps, TableProps, TableEmits } from '../../../shared/ui';
|
|
2
2
|
import { ContainerComponent } from '../../form/types';
|
|
3
3
|
import { SearchFormProps } from './SearchForm.vue';
|
|
4
|
-
import { Table } from '../
|
|
4
|
+
import { Table } from '../hooks';
|
|
5
5
|
import { Path } from '../../../shared/core';
|
|
6
6
|
import { Columns, ColumnControlConfig } from '../types';
|
|
7
7
|
declare const _default: <T extends Table<any> = Table>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
@@ -38,21 +38,35 @@ declare const _default: <T extends Table<any> = Table>(__VLS_props: NonNullable<
|
|
|
38
38
|
size?: TableProps["size"];
|
|
39
39
|
loading?: boolean;
|
|
40
40
|
} & {
|
|
41
|
+
/** 列表表格对象,来自 useTable */
|
|
41
42
|
table?: T;
|
|
43
|
+
/** 列表数据查询方法 */
|
|
42
44
|
search?: () => Promise<unknown>;
|
|
45
|
+
/** 是否在首列插入序号列 */
|
|
43
46
|
addIndexColumn?: boolean;
|
|
47
|
+
/** 挂载后是否立即触发一次查询 */
|
|
44
48
|
immediateSearch?: boolean;
|
|
49
|
+
/** 是否展示尺寸与列控制按钮,支持分别控制;显式传入 columns 时列控入口不渲染 */
|
|
45
50
|
control?: boolean | Partial<{
|
|
51
|
+
/** 是否展示表格尺寸控制 */
|
|
46
52
|
sizeControl: boolean;
|
|
53
|
+
/** 是否展示列控制,传对象时作为列控面板配置 */
|
|
47
54
|
columnControl: boolean | ColumnControlConfig<Path<T extends Table<any, infer R extends import('@qin-ui/pro-components-core').Data> ? R : any>>;
|
|
48
55
|
}>;
|
|
56
|
+
/** 搜索栏查询字段表单配置 */
|
|
49
57
|
searchFormConfig?: Omit<SearchFormProps, "form"> & {
|
|
58
|
+
/** 是否隐藏搜索表单 */
|
|
50
59
|
hidden?: boolean;
|
|
60
|
+
/** 搜索区域包裹容器 */
|
|
51
61
|
container?: ContainerComponent | false;
|
|
52
62
|
};
|
|
63
|
+
/** 表格区域包裹容器 */
|
|
53
64
|
tableContainer?: ContainerComponent | false;
|
|
65
|
+
/** 直接传入列配置(覆盖 :table 实例的 columns) */
|
|
54
66
|
columns?: Columns<T extends Table<any, infer R extends import('@qin-ui/pro-components-core').Data> ? R : any>;
|
|
67
|
+
/** 直接传入数据源(覆盖 :table 实例的 data) */
|
|
55
68
|
data?: (T extends Table<any, infer R extends import('@qin-ui/pro-components-core').Data> ? R : any)[];
|
|
69
|
+
/** 分页配置,传 false 禁用 */
|
|
56
70
|
pagination?: false | Partial<PaginationProps>;
|
|
57
71
|
} & Omit<TableProps, "data">) & Partial<{}>> & import('vue').PublicProps;
|
|
58
72
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ProTable.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ProTable.vue"],"names":[],"mappings":"AAqnBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,EAEL,KAAK,eAAe,EAEpB,KAAK,UAAU,EACf,KAAK,UAAU,EAGhB,MAAM,oBAAoB,CAAC;AAkB5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAejD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;yBAG5C,CAAC,SAAS,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,EAC5C,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAwsBO,mBAAmB,CAAC;qEA7qB2B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KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAntBzE,wBAmtB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -2,7 +2,9 @@ import { FormProps } from '../../../shared/ui';
|
|
|
2
2
|
import { AllowedComponentProps, Component, DefineComponent } from 'vue';
|
|
3
3
|
import { Form } from '../../form/hooks/useForm';
|
|
4
4
|
type Expand = {
|
|
5
|
+
/** 网格布局时默认展开行数量 */
|
|
5
6
|
minExpandRows?: number;
|
|
7
|
+
/** 网格布局时展开状态 */
|
|
6
8
|
expandStatus?: boolean;
|
|
7
9
|
};
|
|
8
10
|
type _FormProps = Pick<Partial<FormProps>, 'disabled' | 'labelPosition' | 'labelWidth' | 'inline' | 'inlineMessage' | 'statusIcon' | 'showMessage' | 'size'>;
|
|
@@ -12,14 +14,25 @@ type ButtonProps = {
|
|
|
12
14
|
type ExpandButtonProps = ButtonProps & {
|
|
13
15
|
expandStatus: boolean;
|
|
14
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* 搜索表单属性面,由 ProTable 经 `searchFormConfig` 下发
|
|
19
|
+
*/
|
|
15
20
|
export type SearchFormProps = {
|
|
21
|
+
/** 搜索表单实例,由 table.searchForm 提供 */
|
|
16
22
|
form: Form;
|
|
23
|
+
/** 布局形态,默认 'grid' */
|
|
17
24
|
layout?: 'grid' | 'inline';
|
|
25
|
+
/** 展开配置,默认 true */
|
|
18
26
|
expand?: boolean | Expand;
|
|
27
|
+
/** 自定义搜索按钮,false 时不渲染 */
|
|
19
28
|
searchButton?: Component<ButtonProps> | DefineComponent<ButtonProps> | false;
|
|
29
|
+
/** 自定义重置按钮,false 时不渲染 */
|
|
20
30
|
resetButton?: Component<ButtonProps> | DefineComponent<ButtonProps> | false;
|
|
31
|
+
/** 自定义展开/折叠按钮,false 时不渲染 */
|
|
21
32
|
expandButton?: Component<ExpandButtonProps> | DefineComponent<ExpandButtonProps> | false;
|
|
33
|
+
/** 行间距,默认 16 */
|
|
22
34
|
rowGap?: number;
|
|
35
|
+
/** 列间距,默认 24 */
|
|
23
36
|
columnGap?: number;
|
|
24
37
|
} & /* @vue-ignore */ _FormProps & AllowedComponentProps;
|
|
25
38
|
declare const _default: __VLS_WithTemplateSlots<DefineComponent<SearchFormProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
@@ -30,7 +43,6 @@ declare const _default: __VLS_WithTemplateSlots<DefineComponent<SearchFormProps,
|
|
|
30
43
|
onReset?: (() => any) | undefined;
|
|
31
44
|
}>, {
|
|
32
45
|
layout: "grid" | "inline";
|
|
33
|
-
form: Form;
|
|
34
46
|
expand: boolean | Expand;
|
|
35
47
|
searchButton: Component<ButtonProps> | DefineComponent<ButtonProps> | false;
|
|
36
48
|
resetButton: Component<ButtonProps> | DefineComponent<ButtonProps> | false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/SearchForm.vue"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"SearchForm.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/SearchForm.vue"],"names":[],"mappings":"AAAA,OAkSO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,KAAK,CAAC;AACjD,OAAO,EAAsB,KAAK,SAAS,EAAE,KAAK,eAAe,EAAE,MAAM,KAAK,CAAC;AAE/E,OAAO,EAAE,KAAK,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAMrD,KAAK,MAAM,GAAG;IACZ,mBAAmB;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB;IAChB,Y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C,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,KAAK;kBAGvE,SAAS,CAAC,iBAAiB,CAAC,GAC5B,eAAe,CAAC,iBAAiB,CAAC,GAClC,KAAK;YAEA,MAAM;eAEH,MAAM;;;;QA8RiB,GAAG;;;QACF,GAAG;;;;QACH,GAAG;;AA5RzC,wBA6UK;AAaL,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { TableProps } from '../../../shared/ui';
|
|
2
2
|
type Size = TableProps['size'];
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
effectiveSize?: Size;
|
|
5
|
+
};
|
|
3
6
|
type __VLS_PublicProps = {
|
|
4
7
|
'size'?: Size;
|
|
5
|
-
};
|
|
8
|
+
} & __VLS_Props;
|
|
6
9
|
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
10
|
"update:size": (value: "" | "default" | "small" | "large" | undefined) => any;
|
|
8
11
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
12
|
"onUpdate:size"?: ((value: "" | "default" | "small" | "large" | undefined) => any) | undefined;
|
|
10
|
-
}>, {
|
|
13
|
+
}>, {
|
|
14
|
+
effectiveSize: "" | "default" | "small" | "large";
|
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
11
16
|
export default _default;
|
|
12
17
|
//# sourceMappingURL=SizeControl.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SizeControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/SizeControl.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SizeControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/SizeControl.vue"],"names":[],"mappings":"AAmFA;;;;;;;GAOG;AACH,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAK5B,KAAK,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAI/B,KAAK,WAAW,GAAG;IACf,aAAa,CAAC,EAAE,IAAI,CAAC;CACtB,CAAC;AA0BJ,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,IAAI,CAAC;CACb,GAAG,WAAW,CAAC;;;;;;;;AAwHhB,wBASG"}
|