@qin-ui/element-plus-pro 1.3.5 → 1.4.1

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.
Files changed (93) hide show
  1. package/AI-CONTEXT.md +27 -3
  2. package/README.md +42 -31
  3. package/api.json +69 -38
  4. package/es/components/component-provider/components/index.vue.d.ts +10 -3
  5. package/es/components/component-provider/components/index.vue.d.ts.map +1 -1
  6. package/es/components/component-provider/constants/index.d.ts +22 -4
  7. package/es/components/component-provider/constants/index.d.ts.map +1 -1
  8. package/es/components/component-provider/types/index.d.ts +15 -1
  9. package/es/components/component-provider/types/index.d.ts.map +1 -1
  10. package/es/components/form/components/BaseField/index.vue.d.ts.map +1 -1
  11. package/es/components/form/components/BaseField/utils/index.d.ts +15 -0
  12. package/es/components/form/components/BaseField/utils/index.d.ts.map +1 -1
  13. package/es/components/form/components/BaseFormItem/index.vue.d.ts +3 -1
  14. package/es/components/form/components/BaseFormItem/index.vue.d.ts.map +1 -1
  15. package/es/components/form/components/ContainerFragment/index.vue.d.ts.map +1 -1
  16. package/es/components/form/components/ProForm/index.vue.d.ts.map +1 -1
  17. package/es/components/form/components/SlotComponent/index.vue.d.ts.map +1 -1
  18. package/es/components/form/components/index.d.ts +4 -0
  19. package/es/components/form/components/index.d.ts.map +1 -1
  20. package/es/components/form/constants/index.d.ts +8 -2
  21. package/es/components/form/constants/index.d.ts.map +1 -1
  22. package/es/components/form/hooks/useFields.d.ts.map +1 -1
  23. package/es/components/form/hooks/useForm.d.ts.map +1 -1
  24. package/es/components/form/hooks/useGroupFieldAttrs.d.ts +9 -0
  25. package/es/components/form/hooks/useGroupFieldAttrs.d.ts.map +1 -1
  26. package/es/components/form/index.d.ts +2 -2
  27. package/es/components/form/index.d.ts.map +1 -1
  28. package/es/components/form/types/index.d.ts +65 -50
  29. package/es/components/form/types/index.d.ts.map +1 -1
  30. package/es/components/form/utils/fieldKey.d.ts +13 -0
  31. package/es/components/form/utils/fieldKey.d.ts.map +1 -0
  32. package/es/components/table/components/ColumnControl.vue.d.ts +1 -1
  33. package/es/components/table/components/ColumnControl.vue.d.ts.map +1 -1
  34. package/es/components/table/components/ProTable.vue.d.ts +15 -1
  35. package/es/components/table/components/ProTable.vue.d.ts.map +1 -1
  36. package/es/components/table/components/SearchForm.vue.d.ts +13 -1
  37. package/es/components/table/components/SearchForm.vue.d.ts.map +1 -1
  38. package/es/components/table/components/SizeControl.vue.d.ts +7 -2
  39. package/es/components/table/components/SizeControl.vue.d.ts.map +1 -1
  40. package/es/components/table/components/TableColumnRenderer.vue.d.ts +14 -14
  41. package/es/components/table/components/TableColumnRenderer.vue.d.ts.map +1 -1
  42. package/es/components/table/hooks/index.d.ts +2 -0
  43. package/es/components/table/hooks/index.d.ts.map +1 -0
  44. package/es/components/table/{useTable.d.ts → hooks/useTable.d.ts} +3 -3
  45. package/es/components/table/hooks/useTable.d.ts.map +1 -0
  46. package/es/components/table/index.d.ts +6 -2
  47. package/es/components/table/index.d.ts.map +1 -1
  48. package/es/components/table/types/index.d.ts +16 -12
  49. package/es/components/table/types/index.d.ts.map +1 -1
  50. package/es/element-plus-pro.css +14 -14
  51. package/es/index.d.ts +9 -6
  52. package/es/index.d.ts.map +1 -1
  53. package/es/index.js +307 -227
  54. package/es/index.js.map +1 -1
  55. package/es/locale/index.d.ts +2 -1
  56. package/es/locale/index.d.ts.map +1 -1
  57. package/es/shared/core/index.d.ts +1 -1
  58. package/es/shared/core/index.d.ts.map +1 -1
  59. package/es/shared/ui/index.d.ts +20 -2
  60. package/es/shared/ui/index.d.ts.map +1 -1
  61. package/package.json +5 -4
  62. package/src/components/component-provider/components/index.vue +48 -21
  63. package/src/components/component-provider/constants/index.ts +34 -6
  64. package/src/components/component-provider/types/index.ts +21 -7
  65. package/src/components/form/components/BaseField/index.vue +25 -12
  66. package/src/components/form/components/BaseField/utils/index.ts +16 -1
  67. package/src/components/form/components/BaseFormItem/index.vue +25 -32
  68. package/src/components/form/components/ContainerFragment/index.vue +3 -1
  69. package/src/components/form/components/ProForm/index.vue +41 -21
  70. package/src/components/form/components/SlotComponent/index.vue +4 -2
  71. package/src/components/form/components/index.ts +8 -1
  72. package/src/components/form/constants/index.ts +9 -2
  73. package/src/components/form/hooks/useFields.ts +5 -2
  74. package/src/components/form/hooks/useForm.ts +8 -1
  75. package/src/components/form/hooks/useGroupFieldAttrs.ts +24 -17
  76. package/src/components/form/index.ts +1 -3
  77. package/src/components/form/types/index.ts +71 -52
  78. package/src/components/form/utils/fieldKey.ts +27 -0
  79. package/src/components/table/components/ColumnControl.vue +16 -6
  80. package/src/components/table/components/ProTable.vue +183 -93
  81. package/src/components/table/components/SearchForm.vue +60 -22
  82. package/src/components/table/components/SizeControl.vue +23 -1
  83. package/src/components/table/components/TableColumnRenderer.vue +82 -63
  84. package/src/components/table/hooks/index.ts +1 -0
  85. package/src/components/table/{useTable.ts → hooks/useTable.ts} +6 -4
  86. package/src/components/table/index.ts +11 -2
  87. package/src/components/table/types/index.ts +17 -13
  88. package/src/index.ts +13 -7
  89. package/src/locale/index.ts +4 -2
  90. package/src/shared/core/index.ts +11 -0
  91. package/src/shared/ui/index.ts +29 -5
  92. package/tsconfig.json +0 -1
  93. package/es/components/table/useTable.d.ts.map +0 -1
@@ -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
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
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":"AA6DA,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,oBAAoB,CAAC;AAK5B,KAAK,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAiB/B,KAAK,iBAAiB,GAAG;IACzB,MAAM,CAAC,EAAE,IAAI,CAAC;CACb,CAAC;;;;;;AAuHF,wBAQG"}
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"}
@@ -1,17 +1,17 @@
1
+ import { PropType } from 'vue';
1
2
  import { Columns } from '../types';
2
- declare const _default: <D extends Record<string, any> = Record<string, any>>(__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<{
3
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & {
4
- columns: Columns<D>;
5
- } & Partial<{}>> & import('vue').PublicProps;
6
- expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
7
- attrs: any;
8
- slots: {};
9
- emit: {};
10
- }>) => import('vue').VNode & {
11
- __ctx?: Awaited<typeof __VLS_setup>;
12
- };
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ columns: {
5
+ type: PropType<Columns>;
6
+ default: () => never[];
7
+ };
8
+ }>, () => any[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
9
+ columns: {
10
+ type: PropType<Columns>;
11
+ default: () => never[];
12
+ };
13
+ }>> & Readonly<{}>, {
14
+ columns: Columns;
15
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
16
  export default _default;
14
- type __VLS_PrettifyLocal<T> = {
15
- [K in keyof T]: T[K];
16
- } & {};
17
17
  //# sourceMappingURL=TableColumnRenderer.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TableColumnRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableColumnRenderer.vue"],"names":[],"mappings":"AAwGA,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,UAAU,CAAC;yBAG/B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnE,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;WAmLO,mBAAmB,CAAC;iBA/KjB,OAAO,CAAC,CAAC,CAAC;mBA+KyE,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;UAEJ,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA9LzE,wBA8L4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"TableColumnRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableColumnRenderer.vue"],"names":[],"mappings":"AAwHA;;;;;;;;;GASG;AACH,OAAO,EAAsC,KAAK,QAAQ,EAAE,MAAM,KAAK,CAAC;AAIxE,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,UAAU,CAAC;;;cA2F3B,QAAQ,CAAC,OAAO,CAAC;;;;;cAAjB,QAAQ,CAAC,OAAO,CAAC;;;;;;AALtC,wBAeG"}
@@ -0,0 +1,2 @@
1
+ export * from './useTable';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
@@ -1,6 +1,6 @@
1
- import { Table as _Table, Data, ExtendWithAny, DeepPartial, PageParam } from '../../shared/core';
2
- import { Fields } from '../form/types';
3
- import { Column, Columns } from './types';
1
+ import { Table as _Table, Data, ExtendWithAny, DeepPartial, PageParam } from '../../../shared/core';
2
+ import { Fields } from '../../form/types';
3
+ import { Column, Columns } from '../types';
4
4
  import { Ref } from 'vue';
5
5
  /**
6
6
  * 表格实例类型
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,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACH,wBAAgB,QAAQ,CACtB,CAAC,SAAS,IAAI,GAAG,IAAI,EACrB,CAAC,SAAS,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,EACjC,MAAM,GAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAM,GAAG,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAqBhD"}
@@ -1,9 +1,13 @@
1
1
  import { ComponentExposed, ComponentProps } from 'vue-component-type-helpers';
2
2
  import { default as ProTable } from './components/ProTable.vue';
3
+ /** ProTable 组件属性(由组件 Props 推导) */
3
4
  export type ProTableProps = ComponentProps<typeof ProTable>;
5
+ /** ProTable 组件实例(`defineExpose` 暴露的能力) */
4
6
  export type ProTableInstance = ComponentExposed<typeof ProTable>;
5
- export { type Column, type Columns } from './types';
7
+ export { type Column, type ColumnControlConfig, type ColumnScope, type Columns, } from './types';
8
+ /** Element Plus 宿主表格事件类型(仅 element 适配层提供) */
6
9
  export { type TableEmits } from '../../shared/ui';
7
- export { useTable, type Table } from './useTable';
10
+ export { useTable, type Table } from './hooks';
11
+ export { type PageParam } from '../../shared/core';
8
12
  export default ProTable;
9
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AAGjD,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5D,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,QAAQ,CAAC,CAAC;AAGjE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AACpD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,KAAK,KAAK,EAAE,MAAM,YAAY,CAAC;AAElD,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/table/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AAGjD,kCAAkC;AAClC,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,QAAQ,CAAC,CAAC;AAC5D,0CAA0C;AAC1C,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,OAAO,QAAQ,CAAC,CAAC;AAGjE,OAAO,EACL,KAAK,MAAM,EACX,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAChB,KAAK,OAAO,GACb,MAAM,SAAS,CAAC;AACjB,6CAA6C;AAC7C,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,KAAK,KAAK,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,eAAe,QAAQ,CAAC"}
@@ -1,12 +1,14 @@
1
1
  import { ColumnType } from '../../../shared/ui';
2
2
  import { Data, ExtendWithAny, Path } from '../../../shared/core';
3
+ import { ComputedRef, MaybeRef } from 'vue';
4
+ type MaybeRefOrComputedRef<T = any> = MaybeRef<T> | ComputedRef<T>;
3
5
  type BivariantRender<D extends Data = Data> = {
4
6
  bivarianceHack(scope: ColumnScope<D>): any;
5
7
  }['bivarianceHack'];
6
8
  /**
7
9
  * Element Plus 表格列作用域
8
10
  * @template D - 表格行数据类型
9
-
11
+ *
10
12
  * @public
11
13
  */
12
14
  export type ColumnScope<D extends Data = Data> = {
@@ -20,16 +22,14 @@ export type ColumnScope<D extends Data = Data> = {
20
22
  cellValue: any;
21
23
  };
22
24
  /**
23
- * @qin-ui/element-plus-pro 表格列配置类型
25
+ * 表格列配置类型,基于宿主 ColumnType 扩展
24
26
  *
25
- * @description 基于 Element Plus 的 ColumnType 列类型,并添加:
27
+ * @description 在宿主列类型之上新增:
26
28
  * - prop 作为主要字段(Element Plus 使用 prop 而非 dataIndex)
27
29
  * - key 作为辅助标识
28
30
  * - hidden 属性
29
31
  * - render 自定义渲染函数
30
- *
31
32
  * @template D - 表格行数据类型
32
- *
33
33
  * @example
34
34
  * ```ts
35
35
  * interface User { name: string; age: number }
@@ -39,29 +39,33 @@ export type ColumnScope<D extends Data = Data> = {
39
39
  * { prop: 'age', label: '年龄', width: 80 },
40
40
  * ]
41
41
  * ```
42
-
42
+ *
43
43
  * @public
44
44
  */
45
45
  export type Column<D extends Data = Data> = Partial<Omit<ColumnType<any>, 'prop' | 'property' | 'children' | 'render'>> & {
46
46
  /** 列字段标识(辅助字段) */
47
47
  key?: Path<D>;
48
48
  /**
49
- * @description 列数据路径(主要字段)
50
- * Element Plus 使用 prop 而非 dataIndex
49
+ * 列数据路径(主要字段),Element Plus 使用 prop 而非 dataIndex
51
50
  * @example 'name' | 'address.city'
52
51
  */
53
52
  prop?: Path<D>;
54
- /** 是否隐藏该列 */
55
- hidden?: boolean;
53
+ /**
54
+ * 列是否隐藏;支持布尔、Ref 与 ComputedRef 形式,渲染期按 `toValue` 取值
55
+ *
56
+ * 分组列的子列同样参与过滤(递归生效)。
57
+ */
58
+ hidden?: MaybeRefOrComputedRef<boolean>;
56
59
  /** 自定义渲染函数 */
57
60
  render?: BivariantRender<D>;
58
61
  /** 嵌套子列(用于表头分组) */
59
62
  children?: Column<D>[];
60
63
  };
61
64
  /**
62
- * @qin-ui/element-plus-pro 表格列配置数组类型
65
+ * 表格列配置数组类型
66
+ *
63
67
  * @template D - 表格行数据类型
64
-
68
+ *
65
69
  * @public
66
70
  */
67
71
  export type Columns<D extends Data = Data> = Array<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AAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC"}
@@ -1,16 +1,16 @@
1
- [class*='-form-item'] [class*='-form-item'][data-v-6f664240] {
1
+ [class*='-form-item'] [class*='-form-item'][data-v-dea0b53c] {
2
2
  margin-bottom: 18px;
3
3
  }
4
- .pro-table_search-form[data-v-746ff159] [class*='-form-item'] {
4
+ .pro-table_search-form[data-v-419025fd] [class*='-form-item'] {
5
5
  margin: 0;
6
6
  }
7
- .pro-table_search-form_expand-toggle-button[data-v-746ff159] {
7
+ .pro-table_search-form_expand-toggle-button[data-v-419025fd] {
8
8
  display: flex;
9
9
  align-items: center;
10
10
  padding: 0;
11
11
  padding-left: 4px;
12
12
  }
13
- .pro-table_search-form .transition[data-v-746ff159] {
13
+ .pro-table_search-form .transition[data-v-419025fd] {
14
14
  transition: all 0.25s;
15
15
  }
16
16
  .pro-table_search-form-container[data-v-45e627f4] {
@@ -25,42 +25,42 @@
25
25
  background-color: var(--el-bg-color, #fff);
26
26
  border-radius: 4px;
27
27
  }
28
- .pro-table_size-control_button[data-v-e31e9c15] {
28
+ .pro-table_size-control_button[data-v-61d0ef11] {
29
29
  display: flex;
30
30
  align-items: center;
31
31
  padding-right: 12px;
32
32
  padding-left: 12px;
33
33
  }
34
- .pro-table_size-control_button[data-v-e31e9c15] svg {
34
+ .pro-table_size-control_button[data-v-61d0ef11] svg {
35
35
  transform: scale(1.3);
36
36
  }
37
- .pro-table_column-control_button[data-v-55e837c0] {
37
+ .pro-table_column-control_button[data-v-4d2b4f1c] {
38
38
  display: flex;
39
39
  align-items: center;
40
40
  padding-right: 12px;
41
41
  padding-left: 12px;
42
42
  }
43
- .pro-table_column-control_button[data-v-55e837c0] svg {
43
+ .pro-table_column-control_button[data-v-4d2b4f1c] svg {
44
44
  transform: scale(1.2, 1.4);
45
45
  }
46
- .pro-table_header[data-v-6ec2beda] {
46
+ .pro-table_header[data-v-d092780c] {
47
47
  display: flex;
48
48
  align-items: center;
49
49
  justify-content: flex-end;
50
50
  }
51
- .pro-table_header[data-v-6ec2beda]:empty {
51
+ .pro-table_header[data-v-d092780c]:empty {
52
52
  display: none;
53
53
  }
54
- .pro-table_header + .pro-table_header_content[data-v-6ec2beda] {
54
+ .pro-table_header + .pro-table_header_content[data-v-d092780c] {
55
55
  margin-top: 16px;
56
56
  }
57
- .pro-table_header_button-bar[data-v-6ec2beda] {
57
+ .pro-table_header_button-bar[data-v-d092780c] {
58
58
  flex: 1;
59
59
  }
60
- .pro-table_header_toolbar[data-v-6ec2beda] {
60
+ .pro-table_header_toolbar[data-v-d092780c] {
61
61
  margin-left: 12px;
62
62
  }
63
- .pro-table_pagination[data-v-6ec2beda] {
63
+ .pro-table_pagination[data-v-d092780c] {
64
64
  justify-content: flex-end;
65
65
  padding: 16px 0;
66
66
  }
package/es/index.d.ts CHANGED
@@ -24,7 +24,9 @@ export * from './locale';
24
24
  * <ProForm :form="form" />
25
25
  * </template>
26
26
  * ```
27
- *
27
+ */
28
+ export { ProForm };
29
+ /**
28
30
  * Schema 驱动的表格组件,基于 element-plus Table 封装
29
31
  *
30
32
  * @description 通过声明式列配置即可生成功能完整的表格,
@@ -40,7 +42,9 @@ export * from './locale';
40
42
  * <ProTable :table="table" />
41
43
  * </template>
42
44
  * ```
43
- *
45
+ */
46
+ export { ProTable };
47
+ /**
44
48
  * 组件提供者,用于全局配置 ProForm 和 ProTable 的默认行为
45
49
  *
46
50
  * @description 通过 `ProComponentProvider` 包裹应用根组件,
@@ -55,14 +59,13 @@ export * from './locale';
55
59
  * </template>
56
60
  * ```
57
61
  */
58
- export { ProForm, ProTable, ProComponentProvider };
62
+ export { ProComponentProvider };
59
63
  declare const _default: {
60
64
  /**
61
- * @qin-ui/element-plus-pro 安装方法
62
- * @description 全局注册所有组件(ProForm、ProTable、ProComponentProvider)
65
+ * 安装方法:全局注册 ProForm / ProTable / ProComponentProvider
63
66
  *
67
+ * @description 供 `app.use(ProComponents)` 调用
64
68
  * @param {App} app - Vue 应用实例
65
- *
66
69
  * @example
67
70
  * ```ts
68
71
  * import { createApp } from 'vue'
package/es/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,UAAU,CAAC;AAEzB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,CAAC;;IAGjD;;;;;;;;;;;;;OAaG;iBACU,GAAG;;AAflB,wBAoBE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,OAAO,MAAM,mBAAmB,CAAC;AACxC,OAAO,QAAQ,MAAM,oBAAoB,CAAC;AAC1C,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AAEnE,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,UAAU,CAAC;AAEzB;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,OAAO,EAAE,CAAC;AACnB;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,oBAAoB,EAAE,CAAC;;IAG9B;;;;;;;;;;;;OAYG;iBACU,GAAG;;AAdlB,wBAsBE"}