@qin-ui/antd-vue-pro 2.6.0 → 2.6.2

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 (28) hide show
  1. package/api.json +2 -2
  2. package/es/antd-vue-pro.css +6 -8
  3. package/es/components/component-provider/components/index.vue.d.ts.map +1 -1
  4. package/es/components/form/components/BaseField/index.vue.d.ts.map +1 -1
  5. package/es/components/form/components/BaseField/utils/index.d.ts +1 -2
  6. package/es/components/form/components/BaseField/utils/index.d.ts.map +1 -1
  7. package/es/components/form/components/ProForm/index.vue.d.ts.map +1 -1
  8. package/es/components/table/components/ProTable.vue.d.ts +8 -2
  9. package/es/components/table/components/ProTable.vue.d.ts.map +1 -1
  10. package/es/components/table/hooks/useEllipsisTooltipColumns.d.ts.map +1 -1
  11. package/es/components/table/types/index.d.ts +1 -0
  12. package/es/components/table/types/index.d.ts.map +1 -1
  13. package/es/index.js +111 -36
  14. package/es/index.js.map +1 -1
  15. package/es/shared/core/index.d.ts +1 -1
  16. package/es/shared/core/index.d.ts.map +1 -1
  17. package/es/shared/ui/index.d.ts +1 -1
  18. package/es/shared/ui/index.d.ts.map +1 -1
  19. package/package.json +2 -2
  20. package/src/components/component-provider/components/index.vue +31 -8
  21. package/src/components/form/components/BaseField/index.vue +21 -12
  22. package/src/components/form/components/BaseField/utils/index.ts +5 -5
  23. package/src/components/form/components/ProForm/index.vue +12 -5
  24. package/src/components/table/components/ProTable.vue +72 -20
  25. package/src/components/table/hooks/useEllipsisTooltipColumns.ts +16 -1
  26. package/src/components/table/types/index.ts +1 -0
  27. package/src/shared/core/index.ts +2 -0
  28. package/src/shared/ui/index.ts +1 -0
package/api.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-11-02T04:00:47.131Z",
2
+ "generatedAt": "2026-11-04T07:01:54.317Z",
3
3
  "name": "@qin-ui/antd-vue-pro",
4
4
  "api": [
5
5
  {
@@ -78,7 +78,7 @@
78
78
  }
79
79
  ],
80
80
  "examples": [
81
- "```vue\n<template>\n<ProForm :form=\"form\" @submit=\"handleSubmit\">\n<template #name=\"{ value, disabled }\">\n<a-input :value=\"value\" :disabled=\"disabled\" />\n</template>\n</ProForm>\n</template>\n```"
81
+ "```vue\n<template>\n<ProForm :form=\"form\" @submit=\"handleSubmit\">\n<template #name=\"scoped\">\n<a-input v-bind=\"scoped\" />\n</template>\n</ProForm>\n</template>\n```"
82
82
  ]
83
83
  },
84
84
  {
@@ -36,23 +36,21 @@
36
36
  .pro-table_column-control_button[data-v-58650608] svg {
37
37
  transform: scale(1.2, 1.4);
38
38
  }
39
- .pro-table_header[data-v-35945e54] {
39
+ .pro-table_header[data-v-5c6c3ed5] {
40
40
  display: flex;
41
41
  align-items: center;
42
42
  justify-content: flex-end;
43
+ margin-bottom: 8px;
43
44
  }
44
- .pro-table_header[data-v-35945e54]:empty {
45
+ .pro-table_header[data-v-5c6c3ed5]:empty {
45
46
  display: none;
46
47
  }
47
- .pro-table_header + .pro-table_header_content[data-v-35945e54] {
48
- margin-top: 16px;
49
- }
50
- .pro-table_header_button-bar[data-v-35945e54] {
48
+ .pro-table_header_button-bar[data-v-5c6c3ed5] {
51
49
  flex: 1;
52
50
  }
53
- .pro-table_header_toolbar[data-v-35945e54] {
51
+ .pro-table_header_toolbar[data-v-5c6c3ed5] {
54
52
  margin-left: 12px;
55
53
  }
56
- .pro-table[data-v-35945e54] [class*='-pagination'] [class*='-pagination-total-text'] {
54
+ .pro-table[data-v-5c6c3ed5] [class*='-pagination'] [class*='-pagination-total-text'] {
57
55
  flex: 1;
58
56
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/components/index.vue"],"names":[],"mappings":"AAkLA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEpE,KAAK,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC;AAOxD,KAAK,KAAK,GAAG;IACX;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AA0EF,iBAAS,cAAc;WAoBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YA9GV,OAAO,CAAC,SAAS,CAAC;mBAbX,aAAa;kBAMd,YAAY;6EA4H3B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/component-provider/components/index.vue"],"names":[],"mappings":"AAyMA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG9C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAqB,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEpE,KAAK,YAAY,GAAG,OAAO,CAAC,MAAM,CAAC,aAAa,EAAE,GAAG,CAAC,CAAC,CAAC;AAOxD,KAAK,KAAK,GAAG;IACX;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B,CAAC;AAiGF,iBAAS,cAAc;WAoBT,OAAO,IAA6B;;yBAVrB,GAAG;;;;EAe/B;AASD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;YArIV,OAAO,CAAC,SAAS,CAAC;mBAbX,aAAa;kBAMd,YAAY;6EAmJ3B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/BaseField/index.vue"],"names":[],"mappings":"AA6RA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EACL,KAAK,SAAS,EAOf,MAAM,KAAK,CAAC;AAiCb,KAAK,KAAK,GAAG;IACX,eAAe;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,oBAAoB;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;;qCAsL6D,GAAG;;;;;;UAvLzD,MAAM;eAFD,MAAM,GAAG,SAAS;;;;AAqShC,wBAUG"}
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/BaseField/index.vue"],"names":[],"mappings":"AAsSA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,OAAO,EACL,KAAK,SAAS,EAOf,MAAM,KAAK,CAAC;AAkCb,KAAK,KAAK,GAAG;IACX,eAAe;IACf,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,oBAAoB;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;;;qCA8L6D,GAAG;;;;;;UA/LzD,MAAM;eAFD,MAAM,GAAG,SAAS;;;;AA6ShC,wBAUG"}
@@ -3,8 +3,7 @@ type LocaleT = (key: string, params?: Record<string, string | number>) => string
3
3
  /**
4
4
  * 解析字段的 Provider 默认属性
5
5
  *
6
- * @description 仅字符串组件名取注入值(含 `date-picker` 子类型段);组件对象无注入配置,返回空对象。
7
- * `date-picker` 不拼接 `picker` 段,其子类型预设由注入 key 在 BaseField 内单独解析
6
+ * @description 仅字符串组件名取注入值;占位符兜底按基础组件名解析,组件对象无注入配置,返回空对象。
8
7
  *
9
8
  * @param field - 字段配置项
10
9
  * @param injectProps - 该组件名对应的 Provider 注入默认值
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/components/BaseField/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,KAAK,OAAO,GAAG,CACb,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAAM,CAAC;AAuBZ;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,GACvB,OAAO,KAAK,EACZ,aAAa,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAK,EACrC,GAAG,OAAO,KACT,MAAM,CAAC,MAAM,EAAE,GAAG,CAQpB,CAAC;AAKF;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,QAMhD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/components/BaseField/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAE5C,KAAK,OAAO,GAAG,CACb,GAAG,E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AAC,CAAC,QAAQ,CAAC,EACjE;WAiLO,mBAAmB,CAAC;eA5KN,IAAI;eAAS,CAAC;yDA4K0D,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;wDApGgC,CAAC;;;;mBAEjB,OAAO;;iBAGwB,IAAI;8CALnB,CAAC;;;;mBAEjB,OAAO;;iBAGwB,IAAI;;UAiGvD,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AA5LzE,wBA4L4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -70,7 +70,10 @@ declare const _default: <T extends Table<any> = Table>(__VLS_props: NonNullable<
70
70
  index: number;
71
71
  column: Column<T extends Table<any, infer R extends import('@qin-ui/pro-components-core').Data> ? R : never>;
72
72
  }) => void;
73
- }> & Readonly<Partial<Record<"table" | "search-form" | "button-bar" | "toolbar", Slot>>>, "default">> & Omit<Omit<Readonly<{
73
+ }> & Readonly<Partial<Record<"table" | "search-form" | "button-bar" | "toolbar", Slot>>>, "default"> & {
74
+ /** 透传宿主表格的默认插槽,用于以宿主列组件声明列 */
75
+ default?: Slot;
76
+ }> & Omit<Omit<Readonly<{
74
77
  emptyText?: any;
75
78
  expandIcon?: Slot<import('ant-design-vue/es/vc-table/interface').RenderExpandIconProps<any> | undefined> | undefined;
76
79
  title?: any;
@@ -99,7 +102,10 @@ declare const _default: <T extends Table<any> = Table>(__VLS_props: NonNullable<
99
102
  index: number;
100
103
  column: Column<T extends Table<any, infer R extends import('@qin-ui/pro-components-core').Data> ? R : never>;
101
104
  }) => void;
102
- }> & Readonly<Partial<Record<"table" | "search-form" | "button-bar" | "toolbar", Slot>>>, "default">;
105
+ }> & Readonly<Partial<Record<"table" | "search-form" | "button-bar" | "toolbar", Slot>>>, "default"> & {
106
+ /** 透传宿主表格的默认插槽,用于以宿主列组件声明列 */
107
+ default?: Slot;
108
+ };
103
109
  emit: ((evt: "update:size", value: import('ant-design-vue/es/button').ButtonSize) => void) & ((evt: "update:loading", value: boolean) => void);
104
110
  }>) => import('vue').VNode & {
105
111
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -1 +1 @@
1
- {"version":3,"file":"ProTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ProTable.vue"],"names":[],"mappings":"AA0tBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AACH,OAAO,KAAK,EAEV,UAAU,EACV,UAAU,EACX,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EASL,KAAK,IAAI,EACV,MAAM,KAAK,CAAC;AAGb,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAmBjD,OAAO,KAAK,EACV,MAAM,EAEN,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,UAAU,CAAC;yBAED,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,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llipsisTooltipColumns.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;AAUjE;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GAAG,EAAE,EACvB,aAAa,GAAE,MAAM,OAAqB,GACzC;IACD,OAAO,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC,qBAAqB,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;IAC5C,mBAAmB,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;CAC3C,CA6GA"}
1
+ {"version":3,"file":"useEllipsisTooltipColumns.d.ts","sourceRoot":"","sources":["../../../../src/components/table/hooks/useEllipsisTooltipColumns.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;AAYjE;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GAAG,EAAE,EACvB,aAAa,GAAE,MAAM,OAAqB,GACzC;IACD,OAAO,EAAE,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC;IAC5B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC,qBAAqB,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;IAC5C,mBAAmB,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,GAAG,CAAC;CAC3C,CA0HA"}
@@ -91,6 +91,7 @@ export type Column<D extends Data = Data> = Omit<ColumnType, 'dataIndex' | 'key'
91
91
  /**
92
92
  * 列是否隐藏;支持布尔、Ref 与 ComputedRef 形式,渲染期按 `toValue` 取值。
93
93
  * 分组列的子列同样参与过滤(递归生效)。
94
+ * 只读 ref(如 `computed`)经 `setColumn` 写入时会被普通值替换,可写 ref 保持绑定。
94
95
  * @default false
95
96
  */
96
97
  hidden?: MaybeRefOrComputedRef<boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAEjD,KAAK,qBAAqB,CAAC,CAAC,GAAG,GAAG,IAAI,QAAQ,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;AAEnE;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,cAAc,GAAG,WAAW,CACtC,OAAO,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,CACzC,GAAG;IACF,6BAA6B;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,YAAY,EACV,mBAAmB,GACnB,iBAAiB,GACjB,iBAAiB,GACjB,WAAW,GACX,OAAO,GACP,oBAAoB,GACpB,OAAO,GACP,kBAAkB,GAClB,cAAc,GACd,mBAAmB,CACtB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CAC9C,UAAU,EACV,WAAW,GAAG,KAAK,GAAG,UAAU,CACjC,GAAG;IACF;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACjE;;;;OAIG;IACH,G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GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,IAAI;IAC7E,kDAAkD;IAClD,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACpC,iCAAiC;IACjC,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;IACnB,sCAAsC;IACtC,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;IACnB,gBAAgB;IAChB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC"}
package/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./antd-vue-pro.css";
2
2
  import { defineComponent, createBlock, renderSlot, openBlock, resolveDynamicComponent, normalizeProps, mergeProps, withCtx, createElementBlock, Fragment, createTextVNode, toDisplayString, inject, computed, toValue, ref, onBeforeUnmount, createCommentVNode, createSlots, renderList, createVNode, watch, h, toRaw, unref, provide, useSlots, shallowRef, onUpdated, triggerRef, createElementVNode, withModifiers, normalizeStyle, nextTick, mergeModels, useModel, useAttrs, Teleport, onDeactivated, onMounted, getCurrentInstance, normalizeClass, guardReactiveProps } from "vue";
3
- import { Transfer, TreeSelect, Slider, Switch, RadioGroup, CheckboxGroup, TimePicker, RangePicker, DatePicker, Cascader, Select, InputNumber, InputPassword, InputSearch, Textarea, Input, FormItem, Col, Row, Form, Space, Button, theme, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Tooltip, Table } from "ant-design-vue";
4
- import { useForm as useForm$1, resolveLocaleName, zhTW, enUS, zhCN, format, useReactiveAttrs, cloneDeep, getObject, InjectionFormSlotsKey, isPlainObject, resolveFieldIdentity, toPath, isObjectItem, InjectionFormKey, createFormProxy, omitBy, camelizeProperties, useFields as useFields$1, useFormRef as useFormRef$1, useSearchFormExpand, pick, isPromise, useTable as useTable$1, omit } from "@qin-ui/pro-components-core";
3
+ import { Transfer, TreeSelect, Slider, Switch, RadioGroup, CheckboxGroup, TimePicker, RangePicker, DatePicker, Cascader, Select, InputNumber, InputPassword, InputSearch, Textarea, Input, FormItem, Col, Row, Form, Space, Button, theme, Dropdown, Menu, MenuItem, Checkbox, MenuDivider, Tooltip, Table, TableColumn } from "ant-design-vue";
4
+ import { useForm as useForm$1, resolveLocaleName, zhTW, enUS, zhCN, format, useReactiveAttrs, cloneDeep, getObject, omitBy, InjectionFormSlotsKey, isPlainObject, resolveFieldIdentity, toPath, isObjectItem, InjectionFormKey, createFormProxy, camelizeProperties, useFields as useFields$1, useFormRef as useFormRef$1, useSearchFormExpand, pick, callListeners, isPromise, useTable as useTable$1, omit, mergeComponentVars } from "@qin-ui/pro-components-core";
5
5
  import { enUS as enUS2, useFormData, zhCN as zhCN2, zhTW as zhTW2 } from "@qin-ui/pro-components-core";
6
6
  import { useConfigContextInject } from "ant-design-vue/es/config-provider/context";
7
7
  import { useInjectFormItemContext, useProvideFormItemContext } from "ant-design-vue/es/form/FormItemContext";
@@ -230,10 +230,11 @@ const getPlaceholderProps = (key, injectProps, t) => {
230
230
  };
231
231
  const getInitProps = (field, injectProps = {}, t) => {
232
232
  const { component } = field;
233
- const picker = component === "date-picker" ? "" : field.picker;
234
233
  if (typeof component === "string") {
235
- const k = [component, picker].filter(Boolean).join(".");
236
- return { ...injectProps, ...getPlaceholderProps(k, injectProps, t) };
234
+ return {
235
+ ...injectProps,
236
+ ...getPlaceholderProps(component, injectProps, t)
237
+ };
237
238
  }
238
239
  return {};
239
240
  };
@@ -309,9 +310,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
309
310
  });
310
311
  const attrs = useReactiveAttrs();
311
312
  const pickerVal = attrs.picker;
312
- const injectConfigKey = typeof props.component === "string" ? [props.component, pickerVal].filter(Boolean).join(".") : "";
313
- const componentInjectConfig = injectConfigKey ? getInjectConfig(injectConfigKey) : void 0;
314
- const rawInjectComponentProps = componentInjectConfig ? inject(componentInjectConfig.injectionKey, componentInjectConfig.default) : void 0;
313
+ const baseConfigKey = typeof props.component === "string" ? props.component : "";
314
+ const pickerConfigKey = pickerVal || (baseConfigKey === "date-picker" ? "date" : "");
315
+ const subtypeConfigKey = baseConfigKey && pickerConfigKey ? `${baseConfigKey}.${pickerConfigKey}` : "";
316
+ const baseInjectConfig = baseConfigKey ? getInjectConfig(baseConfigKey) : void 0;
317
+ const subtypeInjectConfig = subtypeConfigKey ? getInjectConfig(subtypeConfigKey) : void 0;
315
318
  const componentVars = inject(INJECT_COMPONENT_VARS, void 0);
316
319
  const value = computed({
317
320
  get() {
@@ -349,10 +352,12 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
349
352
  });
350
353
  const parentDisabled = useInjectDisabled();
351
354
  const groupedAttrs = computed(() => {
352
- var _a;
355
+ var _a, _b;
353
356
  const currentInjectProps = {
354
- ...toValue(rawInjectComponentProps) || {},
355
- ...getObject((_a = toValue(componentVars)) == null ? void 0 : _a[injectConfigKey])
357
+ ...getObject(baseInjectConfig == null ? void 0 : baseInjectConfig.default),
358
+ ...getObject(subtypeInjectConfig == null ? void 0 : subtypeInjectConfig.default),
359
+ ...getObject((_a = toValue(componentVars)) == null ? void 0 : _a[baseConfigKey]),
360
+ ...getObject((_b = toValue(componentVars)) == null ? void 0 : _b[subtypeConfigKey])
356
361
  };
357
362
  const initProps = getInitProps(
358
363
  { component: props.component, picker: attrs.picker },
@@ -360,9 +365,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
360
365
  t
361
366
  );
362
367
  const effectiveModelProp = attrs.modelProp ?? initProps.modelProp ?? "value";
368
+ const definedAttrs = omitBy(attrs, (value2) => value2 === void 0);
363
369
  const mergedProps = mergeProps(
364
370
  initProps,
365
- attrs,
371
+ definedAttrs,
366
372
  { class: attrs.componentClass, style: attrs.componentStyle },
367
373
  { disabled: attrs.disabled ?? parentDisabled.value ?? initProps.disabled },
368
374
  { modelProp: effectiveModelProp }
@@ -814,10 +820,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
814
820
  var _a;
815
821
  return (_a = currentForm.value) == null ? void 0 : _a.formData;
816
822
  });
817
- const setFormRef = (el) => {
818
- var _a, _b;
819
- return (_b = (_a = currentForm.value) == null ? void 0 : _a.setFormRef) == null ? void 0 : _b.call(_a, el);
820
- };
823
+ const formRefSetter = computed(() => {
824
+ const form = currentForm.value;
825
+ return (el) => {
826
+ var _a;
827
+ return (_a = form == null ? void 0 : form.setFormRef) == null ? void 0 : _a.call(form, el);
828
+ };
829
+ });
821
830
  let formInstanceCounter = 0;
822
831
  const formInstanceKeyMap = /* @__PURE__ */ new WeakMap();
823
832
  const getFormKey = (f) => {
@@ -851,7 +860,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
851
860
  return (_ctx, _cache) => {
852
861
  return openBlock(), createBlock(unref(Form), mergeProps({
853
862
  key: formKey.value,
854
- ref: setFormRef,
863
+ ref: formRefSetter.value,
855
864
  model: formData.value
856
865
  }, formAttrs.value, { class: "pro-form" }), {
857
866
  default: withCtx(() => [
@@ -1561,6 +1570,7 @@ function useEllipsisTooltipColumns(getColumns, globalEnabled = () => false) {
1561
1570
  const list = [];
1562
1571
  let changed = false;
1563
1572
  let hasTooltip = false;
1573
+ let cycleSkipped = false;
1564
1574
  for (const column of columns) {
1565
1575
  if (!isObjectItem(column) || toValue(column.hidden)) {
1566
1576
  changed = true;
@@ -1572,6 +1582,7 @@ function useEllipsisTooltipColumns(getColumns, globalEnabled = () => false) {
1572
1582
  if (Array.isArray(column.children) && column.children.length > 0) {
1573
1583
  if (ancestors.has(column)) {
1574
1584
  changed = true;
1585
+ cycleSkipped = true;
1575
1586
  continue;
1576
1587
  }
1577
1588
  ancestors.add(column);
@@ -1580,6 +1591,11 @@ function useEllipsisTooltipColumns(getColumns, globalEnabled = () => false) {
1580
1591
  childChanged = child.changed;
1581
1592
  childColumns = child.columns;
1582
1593
  childHasTooltip = child.hasTooltip;
1594
+ cycleSkipped = cycleSkipped || child.cycleSkipped;
1595
+ if (childColumns.length === 0 && !child.cycleSkipped) {
1596
+ changed = true;
1597
+ continue;
1598
+ }
1583
1599
  }
1584
1600
  const ellipsis = column.ellipsis;
1585
1601
  const explicit = ellipsis === false ? false : isPlainObject(ellipsis) ? ellipsis.showTooltip : void 0;
@@ -1607,7 +1623,12 @@ function useEllipsisTooltipColumns(getColumns, globalEnabled = () => false) {
1607
1623
  if (tooltipEnabled || childHasTooltip) hasTooltip = true;
1608
1624
  list.push(next);
1609
1625
  }
1610
- return { columns: changed ? list : columns, changed, hasTooltip };
1626
+ return {
1627
+ columns: changed ? list : columns,
1628
+ changed,
1629
+ hasTooltip,
1630
+ cycleSkipped
1631
+ };
1611
1632
  };
1612
1633
  const state = computed(() => transformColumns(getColumns(), globalEnabled()));
1613
1634
  return {
@@ -1700,16 +1721,19 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1700
1721
  if (props.search && attrs.onSearch) {
1701
1722
  warnSearchConfig("duplicate");
1702
1723
  }
1703
- if (!search) return;
1704
- const searchPromise = search();
1705
- if (!isPromise(searchPromise)) {
1724
+ const results = callListeners(search);
1725
+ if (!results.length) return;
1726
+ const promises = results.filter(isPromise);
1727
+ if (!promises.length) {
1706
1728
  warnSearchConfig("not-promise");
1707
1729
  return;
1708
1730
  }
1709
1731
  const seq = ++searchSequence;
1710
1732
  loading.value = true;
1711
1733
  try {
1712
- await searchPromise;
1734
+ const settled = await Promise.allSettled(promises);
1735
+ const rejected = settled.find((item) => item.status === "rejected");
1736
+ if (rejected) throw rejected.reason;
1713
1737
  } finally {
1714
1738
  if (seq === searchSequence) {
1715
1739
  loading.value = false;
@@ -1730,6 +1754,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1730
1754
  "table"
1731
1755
  ];
1732
1756
  const slots = useSlots();
1757
+ const slotsRef = shallowRef(slots);
1758
+ onUpdated(() => {
1759
+ triggerRef(slotsRef);
1760
+ });
1733
1761
  const forwardedSlotNames = () => Object.keys(slots).filter(
1734
1762
  (name) => !customSlotNames.includes(name)
1735
1763
  );
@@ -1789,11 +1817,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1789
1817
  width: 80,
1790
1818
  customRender: ({ index: index2 }) => getIndex(index2)
1791
1819
  }));
1792
- const computedColumns = computed(() => {
1820
+ const slotIndexRender = ({ index: index2 }) => getIndex(index2);
1821
+ const columnSource = computed(() => {
1793
1822
  var _a;
1794
- const cols = resolveOwnedProp("columns") ?? toValue((_a = props.table) == null ? void 0 : _a.columns) ?? [];
1795
- const needIndex = props.addIndexColumn ?? injectProps.value.addIndexColumn;
1796
- return needIndex ? [indexColumn.value, ...cols] : cols;
1823
+ return resolveOwnedProp("columns") ?? toValue((_a = props.table) == null ? void 0 : _a.columns) ?? [];
1824
+ });
1825
+ const slotColumnsMode = computed(
1826
+ () => !hasExplicitColumns.value && Boolean(slotsRef.value.default) && columnSource.value.length === 0
1827
+ );
1828
+ const indexEnabled = computed(
1829
+ () => Boolean(props.addIndexColumn ?? injectProps.value.addIndexColumn)
1830
+ );
1831
+ const computedColumns = computed(() => {
1832
+ if (slotColumnsMode.value) return [];
1833
+ return indexEnabled.value ? [indexColumn.value, ...columnSource.value] : columnSource.value;
1797
1834
  });
1798
1835
  const ellipsisTooltipValue = computed(
1799
1836
  () => props.ellipsisTooltip ?? injectProps.value.ellipsisTooltip
@@ -1813,6 +1850,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1813
1850
  () => computedColumns.value,
1814
1851
  () => ellipsisTooltipGlobal.value
1815
1852
  );
1853
+ const hostColumns = computed(
1854
+ () => slotColumnsMode.value ? void 0 : visibleComputedColumns.value
1855
+ );
1816
1856
  const computedTableProps = computed(() => {
1817
1857
  const merged = {
1818
1858
  ...injectAttrs.value,
@@ -1902,7 +1942,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1902
1942
  );
1903
1943
  };
1904
1944
  const onTableChange = (...args) => {
1905
- var _a, _b, _c, _d;
1945
+ var _a, _b, _c;
1906
1946
  (_b = (_a = props.table) == null ? void 0 : _a.setPageParam) == null ? void 0 : _b.call(_a, args[0]);
1907
1947
  const nextPagination = computedPagination.value;
1908
1948
  if (((_c = props.table) == null ? void 0 : _c.pageParam) && nextPagination !== false) {
@@ -1921,8 +1961,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1921
1961
  } else if (sorterArg) {
1922
1962
  nextArgs[2] = resolveSorterColumn(sorterArg);
1923
1963
  }
1924
- (_d = attrs.onChange ?? injectProps.value.onChange) == null ? void 0 : _d(...nextArgs);
1925
- _search();
1964
+ try {
1965
+ callListeners(attrs.onChange ?? injectProps.value.onChange, ...nextArgs);
1966
+ } finally {
1967
+ _search();
1968
+ }
1926
1969
  };
1927
1970
  const searchFormVisible = computed(() => {
1928
1971
  var _a, _b, _c, _d;
@@ -2028,7 +2071,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2028
2071
  })), () => [
2029
2072
  createVNode(unref(Table), mergeProps({ class: "pro-table_content" }, computedTableProps.value, {
2030
2073
  loading: loading.value,
2031
- columns: unref(visibleComputedColumns),
2074
+ columns: hostColumns.value,
2032
2075
  "data-source": computedDataSource.value,
2033
2076
  pagination: computedPagination.value,
2034
2077
  onChange: onTableChange
@@ -2037,7 +2080,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2037
2080
  return {
2038
2081
  name,
2039
2082
  fn: withCtx((scoped) => [
2040
- isSlotRenderable(name, scoped) ? renderSlot(_ctx.$slots, name, normalizeProps(mergeProps({ key: 0 }, scoped)), void 0, true) : createCommentVNode("", true)
2083
+ name === "default" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2084
+ slotColumnsMode.value && indexEnabled.value ? (openBlock(), createBlock(unref(TableColumn), {
2085
+ key: "__INDEX__",
2086
+ title: unref(t)("table.index"),
2087
+ width: 80,
2088
+ "data-index": "__INDEX__",
2089
+ "custom-render": slotIndexRender
2090
+ }, null, 8, ["title"])) : createCommentVNode("", true),
2091
+ renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(scoped || {})), void 0, true)
2092
+ ], 64)) : isSlotRenderable(name, scoped) ? renderSlot(_ctx.$slots, name, normalizeProps(mergeProps({ key: 1 }, scoped)), void 0, true) : createCommentVNode("", true)
2041
2093
  ])
2042
2094
  };
2043
2095
  })
@@ -2057,7 +2109,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2057
2109
  };
2058
2110
  }
2059
2111
  });
2060
- const ProTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-35945e54"]]);
2112
+ const ProTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-5c6c3ed5"]]);
2061
2113
  function useTable(params) {
2062
2114
  return useTable$1(params);
2063
2115
  }
@@ -2078,6 +2130,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2078
2130
  (key) => {
2079
2131
  const config = INJECT_CONFIG[key];
2080
2132
  const ignored = config.ignoreProps;
2133
+ const parentConfig = inject(
2134
+ config.injectionKey,
2135
+ void 0
2136
+ );
2081
2137
  provide(
2082
2138
  config.injectionKey,
2083
2139
  computed(
@@ -2086,6 +2142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2086
2142
  return omit(
2087
2143
  {
2088
2144
  ...config.default,
2145
+ ...toValue(parentConfig) || {},
2089
2146
  ...getObject((_a = props.componentVars) == null ? void 0 : _a[key])
2090
2147
  },
2091
2148
  ignored ?? []
@@ -2099,12 +2156,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2099
2156
  Object.keys(props.componentVars).forEach((key) => {
2100
2157
  if (!(key in INJECT_CONFIG)) {
2101
2158
  const config = ensureInjectConfig(key);
2159
+ const parentConfig = inject(
2160
+ config.injectionKey,
2161
+ void 0
2162
+ );
2102
2163
  provide(
2103
2164
  config.injectionKey,
2104
2165
  computed(() => {
2105
2166
  var _a;
2106
2167
  return {
2107
- ...config.default,
2168
+ ...toValue(parentConfig) || {},
2108
2169
  ...getObject((_a = props.componentVars) == null ? void 0 : _a[key])
2109
2170
  };
2110
2171
  })
@@ -2112,17 +2173,31 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2112
2173
  }
2113
2174
  });
2114
2175
  }
2176
+ const parentComponentVars = inject(INJECT_COMPONENT_VARS, void 0);
2115
2177
  provide(
2116
2178
  INJECT_COMPONENT_VARS,
2117
- computed(() => props.componentVars ?? {})
2179
+ computed(
2180
+ () => mergeComponentVars(
2181
+ toValue(parentComponentVars),
2182
+ props.componentVars
2183
+ )
2184
+ )
2118
2185
  );
2186
+ const parentComponents = inject(INJECT_COMPONENTS, void 0);
2119
2187
  provide(
2120
2188
  INJECT_COMPONENTS,
2121
- computed(() => props.componentMap)
2189
+ computed(() => ({
2190
+ ...toValue(parentComponents) || {},
2191
+ ...props.componentMap ?? {}
2192
+ }))
2122
2193
  );
2194
+ const parentLocale = inject(LOCALE_INJECT_KEY, void 0);
2123
2195
  provide(
2124
2196
  LOCALE_INJECT_KEY,
2125
- computed(() => props.locale)
2197
+ computed(() => ({
2198
+ ...toValue(parentLocale) || {},
2199
+ ...props.locale ?? {}
2200
+ }))
2126
2201
  );
2127
2202
  return (_ctx, _cache) => {
2128
2203
  return renderSlot(_ctx.$slots, "default");