@qin-ui/element-plus-pro 1.2.2 → 1.2.3

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/api.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "generatedAt": "2026-08-17T05:42:26.218Z",
2
+ "generatedAt": "2026-08-19T03:07:25.014Z",
3
3
  "name": "@qin-ui/element-plus-pro",
4
4
  "api": [
5
5
  {
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/components/ProForm/index.vue"],"names":[],"mappings":"AA4GA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAEL,SAAS,IAAI,WAAW,EACzB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAIL,KAAK,IAAI,EAIV,MAAM,KAAK,CAAC;AAIb,OAAO,KAAK,EAAE,IAAI,EAAE,WAAW,EAAa,MAAM,aAAa,CAAC;AAChE,OAAO,EAAE,IAAI,EAAsB,MAAM,yBAAyB,CAAC;AACnE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;yBAE/B,CAAC,SAAS,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,EAC1C,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;WAqIO,mBAAmB,CAAC;eAhIN,IAAI;eAAS,CAAC;0DAgI0D,CAAC,4BAA2B;oBACzG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;wDAzGgC,CAA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gB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;wDAlGgC,CAAC;;;;mBAEjB,OAAO;;iBAGwB,IAAI;8CALnB,CAAC;;;;mBAEjB,OAAO;;iBAGwB,IAAI;;UA+FvD,EAAE;EAEL,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,CAAC,OAAO,WAAW,CAAC,CAAA;CAAE;AAzIzE,wBAyI4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -58,10 +58,5 @@ 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
- * Teleport 组件名称前缀
63
- * @description 用于通过插槽动态替换指定 path 的组件
64
- */
65
- export declare const TeleportComponentNamePrefix = "TeleportComponent_";
66
- export { InjectionFormKey, InjectionPathKey } from '../../../shared/core';
61
+ export { InjectionFormKey, InjectionPathKey, InjectionFormSlotsKey, } from '../../../shared/core';
67
62
  //# 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;AAED;;;GAGG;AACH,eAAO,MAAM,2BAA2B,uBAAuB,CAAC;AAGhE,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC"}
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,EAC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ources":["../../../../src/components/table/components/ColumnControl.vue"],"names":[],"mappings":"AAiNA,OAAO,KAAK,EAAU,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAIzC,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACrC,CAAC;;AAsTF,wBAOG"}
1
+ {"version":3,"file":"ColumnControl.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ColumnControl.vue"],"names":[],"mappings":"AAkNA,OAAO,KAAK,EAAU,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AACrE,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,aAAa,CAAC;AAIzC,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,aAAa,CAAC,EAAE,mBAAmB,CAAC;CACrC,CAAC;;AAuTF,wBAOG"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProTable.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/ProTable.vue"],"names":[],"mappings":"AA6bA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,OAAO,EAEL,KAAK,eAAe,EAEpB,KAAK,UAAU,EAGhB,MAAM,oBAAoB,CAAC;AAY5B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAE3D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAIL,IAAI,EACL,MAAM,sBAAsB,CAAC;AAO9B,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;yBAG5C,CAAC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AAU,GACV,eAAe,GACf,YAAY,GACZ,QAAQ,GACR,eAAe,GACf,YAAY,GACZ,aAAa,GACb,MAAM,CACT,CAAC;AAEF,KAAK,WAAW,GAAG;IAAE,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAAC;AAC3C,KAAK,iBAAiB,GAAG,WAAW,GAAG;IAAE,YAAY,EAAE,OAAO,CAAA;CAAE,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,IAAI,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC3B,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;IAC7E,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,GAAG,eAAe,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC;IAC5E,YAAY,CAAC,EACT,SAAS,CAAC,iBAAiB,CAAC,GAC5B,eAAe,CAAC,iBAAiB,CAAC,GAClC,KAAK,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,iBAAiB,CAAC,UAAU,GAC9B,qBAAqB,CAAC;;;;;;;;;;QAuaa,GAAG;;;QACF,GAAG;;;QACH,GAAG;;AAvazC,wBAqdK;AAQL,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":"TableColumnRenderer.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/table/components/TableColumnRenderer.vue"],"names":[],"mappings":"AAuEA,OAAO,KAAK,EAAU,OAAO,EAAE,MAAM,UAAU,CAAC;yBAG/B,CAAC,SAAS,MAAM,CAAC,MAAM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,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EACjE;WAmJO,mBAAmB,CAAC;iBA/IjB,OAAO,CAAC,CAAC,CAAC;mBA+IyE,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;AA9JzE,wBA8J4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -55,6 +55,8 @@ export type Column<D extends Data = Data> = Partial<Omit<ColumnType<any>, 'prop'
55
55
  hidden?: boolean;
56
56
  /** 自定义渲染函数 */
57
57
  render?: BivariantRender<D>;
58
+ /** 嵌套子列(用于表头分组) */
59
+ children?: Column<D>[];
58
60
  };
59
61
  /**
60
62
  * @qin-ui/element-plus-pro 表格列配置数组类型
@@ -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,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEjE,KAAK,eAAe,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI;IAC5C,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;CAC5C,CAAC,gBAAgB,CAAC,CAAC;AAEpB;;;;;GAKG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,IAAI,GAAG,IAAI,IAAI;IA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C,CAAC,CAAC,EAAE,YAAY,CAAC,GAAG;IAChD;;OAEG;IACH,IAAI,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;CAChB,CAAC;AAEF,KAAK,cAAc,CACjB,CAAC,SAAS,IAAI,GAAG,IAAI,EACrB,CAAC,SAAS,IAAI,GAAG,aAAa,CAAC,CAAC,CAAC,IAC/B;IACF,YAAY;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACrB,gDAAgD;IAChD,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;IACX,aAAa;IACb,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,aAAa;IACb,WAAW,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5C,eAAe;IACf,YAAY,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;CAC1B,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,CAehD"}
@@ -1,16 +1,16 @@
1
1
  [class*='-form-item'] [class*='-form-item'][data-v-d52742ce] {
2
2
  margin-bottom: 18px;
3
3
  }
4
- .pro-table_search-form[data-v-5db62420] [class*='-form-item'] {
4
+ .pro-table_search-form[data-v-20c91e48] [class*='-form-item'] {
5
5
  margin: 0;
6
6
  }
7
- .pro-table_search-form_expand-toggle-button[data-v-5db62420] {
7
+ .pro-table_search-form_expand-toggle-button[data-v-20c91e48] {
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-5db62420] {
13
+ .pro-table_search-form .transition[data-v-20c91e48] {
14
14
  transition: all 0.25s;
15
15
  }
16
16
  .pro-table_search-form-container[data-v-45e627f4] {
@@ -34,33 +34,33 @@
34
34
  .pro-table_size-control_button[data-v-b114045c] svg {
35
35
  transform: scale(1.3);
36
36
  }
37
- .pro-table_column-control_button[data-v-58a57bcb] {
37
+ .pro-table_column-control_button[data-v-97c582f9] {
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-58a57bcb] svg {
43
+ .pro-table_column-control_button[data-v-97c582f9] svg {
44
44
  transform: scale(1.2, 1.4);
45
45
  }
46
- .pro-table_header[data-v-d66ea9cf] {
46
+ .pro-table_header[data-v-127db81d] {
47
47
  display: flex;
48
48
  align-items: center;
49
49
  justify-content: flex-end;
50
50
  }
51
- .pro-table_header[data-v-d66ea9cf]:empty {
51
+ .pro-table_header[data-v-127db81d]:empty {
52
52
  display: none;
53
53
  }
54
- .pro-table_header + .pro-table_header_content[data-v-d66ea9cf] {
54
+ .pro-table_header + .pro-table_header_content[data-v-127db81d] {
55
55
  margin-top: 16px;
56
56
  }
57
- .pro-table_header_button-bar[data-v-d66ea9cf] {
57
+ .pro-table_header_button-bar[data-v-127db81d] {
58
58
  flex: 1;
59
59
  }
60
- .pro-table_header_toolbar[data-v-d66ea9cf] {
60
+ .pro-table_header_toolbar[data-v-127db81d] {
61
61
  margin-left: 12px;
62
62
  }
63
- .pro-table_pagination[data-v-d66ea9cf] {
63
+ .pro-table_pagination[data-v-127db81d] {
64
64
  justify-content: flex-end;
65
65
  padding: 16px 0;
66
66
  }
package/es/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import "./element-plus-pro.css";
2
- import { inject, computed, provide, toValue, defineComponent, renderSlot, mergeProps, normalizeProps, guardReactiveProps, resolveComponent, createBlock, openBlock, unref, withCtx, createElementBlock, Fragment, renderList, createVNode, createSlots, ref, useAttrs, createCommentVNode, resolveDynamicComponent, isVNode, createTextVNode, toDisplayString, useSlots, watchEffect, withModifiers, createElementVNode, watch, withKeys, normalizeStyle, useModel, onMounted, mergeModels, resolveDirective, normalizeClass, withDirectives, nextTick } from "vue";
2
+ import { inject, computed, provide, toValue, defineComponent, renderSlot, mergeProps, normalizeProps, guardReactiveProps, resolveComponent, createBlock, openBlock, unref, withCtx, createElementBlock, Fragment, renderList, createVNode, createSlots, ref, useAttrs, createCommentVNode, resolveDynamicComponent, isVNode, createTextVNode, toDisplayString, useSlots, reactive, withModifiers, createElementVNode, onBeforeUnmount, watch, watchEffect, withKeys, normalizeStyle, nextTick, useModel, onMounted, mergeModels, resolveDirective, normalizeClass, withDirectives } from "vue";
3
3
  import { ElFormItem, ElCol, ElTable, ElPagination, useFormDisabled, ElTransfer, ElTreeSelect, ElSlider, ElSwitch, ElRadioGroup, ElCheckboxGroup, ElTimeSelect, ElTimePicker, ElDatePicker, ElCascader, ElSelect, ElAutocomplete, ElInputNumber, ElInput, ElRow, useLocale as useLocale$1, ElForm, ElSpace, ElButton, ElDropdown, ElDropdownMenu, ElDropdownItem, ElCheckbox, ElTableColumn } from "element-plus";
4
- import { InjectionPathKey, isPlainObject, getObject, toPath, useForm as useForm$1, zhCN as zhCN$1, zhTW as zhTW$1, enUS as enUS$1, resolveLocaleName, format, omit, cloneDeep, InjectionFormKey, camelizeProperties, useFields as useFields$1, useFormRef as useFormRef$1, get, pick, useTable as useTable$1 } from "@qin-ui/pro-components-core";
4
+ import { InjectionPathKey, isPlainObject, getObject, toPath, useForm as useForm$1, zhCN as zhCN$1, zhTW as zhTW$1, enUS as enUS$1, resolveLocaleName, format, omit, InjectionFormSlotsKey, cloneDeep, InjectionFormKey, camelizeProperties, useFields as useFields$1, useFormRef as useFormRef$1, get, pick, useTable as useTable$1 } from "@qin-ui/pro-components-core";
5
5
  import { useFormData } from "@qin-ui/pro-components-core";
6
6
  const tableProps = () => ElTable.props || {};
7
7
  const paginationProps = () => ElPagination.props || {};
@@ -205,7 +205,6 @@ const componentMap = {
205
205
  "tree-select": ElTreeSelect,
206
206
  "transfer": ElTransfer
207
207
  };
208
- const TeleportComponentNamePrefix = "TeleportComponent_";
209
208
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
210
209
  __name: "index",
211
210
  props: {
@@ -600,13 +599,11 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
600
599
  valueFormatter
601
600
  };
602
601
  });
603
- const teleportComponent = inject(
604
- `${TeleportComponentNamePrefix}${__props.path}`,
605
- void 0
606
- );
602
+ const formSlots = inject(InjectionFormSlotsKey, void 0);
607
603
  const customComponents = inject(INJECT_COMPONENTS, {});
608
604
  const is = computed(() => {
609
- if (teleportComponent) return teleportComponent;
605
+ const teleportSlot = __props.path && (formSlots == null ? void 0 : formSlots[__props.path]);
606
+ if (teleportSlot) return teleportSlot;
610
607
  if (typeof __props.component === "string") {
611
608
  return customComponents[__props.component] || componentMap[__props.component] || __props.component;
612
609
  }
@@ -693,12 +690,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
693
690
  config.default
694
691
  );
695
692
  const slots = useSlots();
696
- watchEffect(() => {
697
- Object.keys(slots).forEach((name) => {
698
- if (name === "default") return;
699
- provide(`${TeleportComponentNamePrefix}${name}`, slots[name]);
700
- });
701
- });
693
+ provide(InjectionFormSlotsKey, reactive(slots));
702
694
  return (_ctx, _cache) => {
703
695
  return openBlock(), createBlock(unref(ElForm), mergeProps({
704
696
  ref: (el) => {
@@ -766,7 +758,22 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
766
758
  const emit = __emit;
767
759
  const proFormHeight = ref("unset");
768
760
  const collapseHeight = ref(0);
769
- let rowHeight = 32;
761
+ const rowHeight = ref(32);
762
+ let resizeObserver = null;
763
+ let intersectionObserver = null;
764
+ const cleanupObservers = () => {
765
+ if (resizeObserver) {
766
+ resizeObserver.disconnect();
767
+ resizeObserver = null;
768
+ }
769
+ if (intersectionObserver) {
770
+ intersectionObserver.disconnect();
771
+ intersectionObserver = null;
772
+ }
773
+ };
774
+ onBeforeUnmount(() => {
775
+ cleanupObservers();
776
+ });
770
777
  const computedExpand = computed(() => {
771
778
  if (!__props.expand) return false;
772
779
  if (__props.expand === true) return { minExpandRows: 2, expandStatus: false };
@@ -777,33 +784,57 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
777
784
  });
778
785
  const showExpandToggle = ref(false);
779
786
  const expandStatus = ref(true);
787
+ const { formRef, getFormData } = __props.form;
788
+ const updateHeights = () => {
789
+ var _a, _b, _c, _d, _e, _f;
790
+ if (!__props.expand || !formRef.value) return;
791
+ const proFormEl = (_a = formRef.value) == null ? void 0 : _a.$el;
792
+ if (!proFormEl) return;
793
+ const itemHeight = (_d = (_c = (_b = proFormEl == null ? void 0 : proFormEl.querySelector("[class*='-form-item']")) == null ? void 0 : _b.getBoundingClientRect) == null ? void 0 : _c.call(_b)) == null ? void 0 : _d.height;
794
+ if (itemHeight && itemHeight > 0) {
795
+ rowHeight.value = itemHeight;
796
+ }
797
+ const naturalHeight = proFormEl.scrollHeight || ((_f = (_e = proFormEl.getBoundingClientRect) == null ? void 0 : _e.call(proFormEl)) == null ? void 0 : _f.height) || 0;
798
+ if (naturalHeight > 0) {
799
+ proFormHeight.value = naturalHeight;
800
+ }
801
+ };
780
802
  const changeExpandStatus = () => {
781
803
  expandStatus.value = !expandStatus.value;
804
+ nextTick(() => {
805
+ updateHeights();
806
+ });
782
807
  };
783
- const { formRef, getFormData } = __props.form;
808
+ const hasFieldValue = (val) => val !== null && val !== void 0 && val !== "" && !(Array.isArray(val) && val.length === 0) && !(typeof val === "object" && Object.keys(val).length === 0);
784
809
  const setInitExpandStatus = () => {
810
+ var _a;
785
811
  expandStatus.value = false;
786
812
  if (formRef.value && __props.expand) {
787
813
  const formEl = formRef.value.$el;
788
- const formItemsEl = formEl.querySelectorAll(
814
+ const formItemsEl = (_a = formEl == null ? void 0 : formEl.querySelectorAll) == null ? void 0 : _a.call(
815
+ formEl,
789
816
  "[class*='-form-item'] > [path]"
790
817
  );
791
- const observer = new IntersectionObserver(
818
+ if (!formItemsEl || formItemsEl.length === 0) return;
819
+ if (intersectionObserver) {
820
+ intersectionObserver.disconnect();
821
+ }
822
+ intersectionObserver = new IntersectionObserver(
792
823
  (entries) => {
793
824
  expandStatus.value = entries.some((e) => {
794
825
  if (e.intersectionRatio === 0) {
795
826
  const path = e.target.getAttribute("path");
796
827
  const searchFieldValue = path ? getFormData == null ? void 0 : getFormData(path) : void 0;
797
- return ![null, void 0].includes(searchFieldValue);
828
+ return hasFieldValue(searchFieldValue);
798
829
  }
799
830
  return __props.expand.expandStatus;
800
831
  });
801
- observer.disconnect();
832
+ intersectionObserver == null ? void 0 : intersectionObserver.disconnect();
802
833
  },
803
834
  { root: formEl }
804
835
  );
805
836
  formItemsEl.forEach((element) => {
806
- observer.observe(element);
837
+ intersectionObserver == null ? void 0 : intersectionObserver.observe(element);
807
838
  });
808
839
  }
809
840
  };
@@ -817,22 +848,34 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
817
848
  () => __props.expand
818
849
  ],
819
850
  () => {
820
- var _a, _b, _c, _d, _e;
821
- if (!__props.expand || !expandStatus.value || !formRef.value) return;
822
- const proFormEl = (_a = formRef.value) == null ? void 0 : _a.$el;
823
- const { height = 0 } = ((_b = proFormEl == null ? void 0 : proFormEl.getBoundingClientRect) == null ? void 0 : _b.call(proFormEl)) || {};
824
- proFormHeight.value = height;
825
- rowHeight = (_e = (_d = (_c = proFormEl == null ? void 0 : proFormEl.querySelector("[class*='-form-item']")) == null ? void 0 : _c.getBoundingClientRect) == null ? void 0 : _d.call(_c)) == null ? void 0 : _e.height;
851
+ updateHeights();
826
852
  },
827
853
  { flush: "post", immediate: true }
828
854
  );
855
+ watch(
856
+ () => formRef.value,
857
+ (val) => {
858
+ if (resizeObserver) {
859
+ resizeObserver.disconnect();
860
+ resizeObserver = null;
861
+ }
862
+ const formEl = val == null ? void 0 : val.$el;
863
+ if (formEl && typeof ResizeObserver !== "undefined") {
864
+ resizeObserver = new ResizeObserver(() => {
865
+ updateHeights();
866
+ });
867
+ resizeObserver.observe(formEl);
868
+ }
869
+ },
870
+ { immediate: true }
871
+ );
829
872
  watchEffect(
830
873
  () => {
831
874
  if (typeof proFormHeight.value !== "number") return;
832
875
  if (__props.layout === "grid" && computedExpand.value) {
833
876
  const { minExpandRows } = computedExpand.value;
834
877
  collapseHeight.value = Math.min(
835
- minExpandRows * rowHeight + (minExpandRows - 1) * __props.rowGap,
878
+ minExpandRows * rowHeight.value + (minExpandRows - 1) * __props.rowGap,
836
879
  +proFormHeight.value
837
880
  );
838
881
  showExpandToggle.value = +proFormHeight.value - collapseHeight.value > 1;
@@ -953,7 +996,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
953
996
  };
954
997
  }
955
998
  });
956
- const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-5db62420"]]);
999
+ const SearchForm = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-20c91e48"]]);
957
1000
  const _sfc_main$8 = {};
958
1001
  const _hoisted_1$4 = { class: "pro-table_search-form-container" };
959
1002
  function _sfc_render$3(_ctx, _cache) {
@@ -1073,7 +1116,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1073
1116
  const indeterminate = ref(false);
1074
1117
  const getColumnKey = (column, index2) => {
1075
1118
  const key = column.key ?? column.prop;
1076
- if (key === void 0 || key === null) return `__idx_${index2}`;
1119
+ if (key === void 0 || key === null) return `__col_${index2}`;
1077
1120
  return Array.isArray(key) ? key.join(".") : String(key);
1078
1121
  };
1079
1122
  const checkedColumnsOptions = computed(
@@ -1087,7 +1130,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1087
1130
  (dk) => String(dk) === key
1088
1131
  );
1089
1132
  const label = String(
1090
- item.label ?? item.prop ?? t("table.columnFallback", { index: index2 + 1 })
1133
+ item.label ?? item.title ?? item.prop ?? t("table.columnFallback", { index: index2 + 1 })
1091
1134
  );
1092
1135
  return {
1093
1136
  label,
@@ -1238,7 +1281,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
1238
1281
  };
1239
1282
  }
1240
1283
  });
1241
- const ColumnControl = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-58a57bcb"]]);
1284
+ const ColumnControl = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-97c582f9"]]);
1242
1285
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1243
1286
  ...{ name: "TableColumnRenderer" },
1244
1287
  __name: "TableColumnRenderer",
@@ -1248,7 +1291,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1248
1291
  setup(__props) {
1249
1292
  const getColumnKey = (column, index2) => {
1250
1293
  const key = column.key ?? column.prop;
1251
- if (key === void 0 || key === null) return `__idx_${index2}`;
1294
+ if (key === void 0 || key === null) return `__col_${index2}`;
1252
1295
  return Array.isArray(key) ? key.join(".") : String(key);
1253
1296
  };
1254
1297
  const getCellValue = (row, column) => {
@@ -1260,34 +1303,53 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
1260
1303
  return __props.columns.filter((column) => !column.hidden);
1261
1304
  });
1262
1305
  const getColumnProps = (column) => {
1263
- const { hidden, render, key, ...rest } = column;
1306
+ const { hidden, render, key, children, ...rest } = column;
1264
1307
  const prop = column.prop ? String(column.prop) : void 0;
1265
1308
  return {
1266
1309
  ...rest,
1310
+ label: column.label ?? column.title,
1267
1311
  prop,
1268
1312
  columnKey: key ? String(key) : prop
1269
1313
  };
1270
1314
  };
1271
1315
  return (_ctx, _cache) => {
1316
+ const _component_TableColumnRenderer = resolveComponent("TableColumnRenderer", true);
1272
1317
  return openBlock(true), createElementBlock(Fragment, null, renderList(normalizedColumns.value, (column, index2) => {
1273
- return openBlock(), createBlock(unref(ElTableColumn), mergeProps({
1274
- key: getColumnKey(column, index2),
1275
- ref_for: true
1276
- }, getColumnProps(column)), {
1277
- default: withCtx((scope) => {
1278
- var _a;
1279
- return [
1280
- typeof column.render === "function" ? (openBlock(), createBlock(resolveDynamicComponent(
1281
- (_a = column.render) == null ? void 0 : _a.call(column, {
1282
- ...scope,
1283
- column,
1284
- cellValue: getCellValue(scope.row, column)
1285
- })
1286
- ), { key: 0 })) : createCommentVNode("", true)
1287
- ];
1288
- }),
1289
- _: 2
1290
- }, 1040);
1318
+ return openBlock(), createElementBlock(Fragment, {
1319
+ key: getColumnKey(column, index2)
1320
+ }, [
1321
+ column.children && column.children.length > 0 ? (openBlock(), createBlock(unref(ElTableColumn), mergeProps({
1322
+ key: 0,
1323
+ ref_for: true
1324
+ }, getColumnProps(column)), {
1325
+ default: withCtx(() => [
1326
+ createVNode(_component_TableColumnRenderer, {
1327
+ columns: column.children
1328
+ }, null, 8, ["columns"])
1329
+ ]),
1330
+ _: 2
1331
+ }, 1040)) : typeof column.render === "function" ? (openBlock(), createBlock(unref(ElTableColumn), mergeProps({
1332
+ key: 1,
1333
+ ref_for: true
1334
+ }, getColumnProps(column)), {
1335
+ default: withCtx((scope) => {
1336
+ var _a;
1337
+ return [
1338
+ (openBlock(), createBlock(resolveDynamicComponent(
1339
+ (_a = column.render) == null ? void 0 : _a.call(column, {
1340
+ ...scope,
1341
+ column,
1342
+ cellValue: getCellValue(scope.row, column)
1343
+ })
1344
+ )))
1345
+ ];
1346
+ }),
1347
+ _: 2
1348
+ }, 1040)) : (openBlock(), createBlock(unref(ElTableColumn), mergeProps({
1349
+ key: 2,
1350
+ ref_for: true
1351
+ }, getColumnProps(column)), null, 16))
1352
+ ], 64);
1291
1353
  }), 128);
1292
1354
  };
1293
1355
  }
@@ -1452,16 +1514,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1452
1514
  });
1453
1515
  const normalizedRawColumns = computed(() => {
1454
1516
  const source = __props.columns ?? (tableColumns == null ? void 0 : tableColumns.value) ?? [];
1455
- const normalized = source.map((item, index2) => {
1456
- const current = { ...item };
1457
- if (current.label === void 0 && current.title !== void 0) {
1458
- current.label = current.title;
1459
- }
1460
- if (current.key === void 0) {
1461
- current.key = current.prop ?? (typeof current.columnKey === "string" ? current.columnKey : void 0) ?? `col-${index2}`;
1462
- }
1463
- return current;
1464
- });
1465
1517
  if (__props.addIndexColumn ?? injectProps.addIndexColumn) {
1466
1518
  return [
1467
1519
  {
@@ -1470,10 +1522,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1470
1522
  label: t("table.index"),
1471
1523
  width: 80
1472
1524
  },
1473
- ...normalized
1525
+ ...source
1474
1526
  ];
1475
1527
  }
1476
- return normalized;
1528
+ return source;
1477
1529
  });
1478
1530
  const computedDataSource = computed(() => {
1479
1531
  const attrsData = attrsTableProps.value.data;
@@ -1540,8 +1592,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1540
1592
  return (_ctx, _cache) => {
1541
1593
  const _directive_loading = resolveDirective("loading");
1542
1594
  return openBlock(), createElementBlock("div", {
1543
- class: normalizeClass(["pro-table", _ctx.$attrs.class]),
1544
- style: normalizeStyle(_ctx.$attrs.style)
1595
+ class: normalizeClass(["pro-table", unref(attrs).class]),
1596
+ style: normalizeStyle(unref(attrs).style)
1545
1597
  }, [
1546
1598
  showSearch.value ? (openBlock(), createBlock(unref(_sfc_main$d), {
1547
1599
  key: 0,
@@ -1620,20 +1672,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1620
1672
  };
1621
1673
  }
1622
1674
  });
1623
- const ProTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-d66ea9cf"]]);
1675
+ const ProTable = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-127db81d"]]);
1624
1676
  function useTable(params = {}) {
1625
1677
  const { data, columns, ...rest } = params;
1626
1678
  const coreTable = useTable$1({
1627
1679
  ...rest,
1628
1680
  dataSource: data,
1629
- // 补齐列 key(key ?? prop ?? columnKey),
1630
- // 使 setColumn 等按 key 匹配的 API 对 Element Plus 的 prop 列生效
1631
- columns: columns == null ? void 0 : columns.map((column) => {
1632
- if (column.key !== void 0 && column.key !== null) return column;
1633
- const prop = column.prop;
1634
- const fallback = prop ?? (typeof column.columnKey === "string" ? column.columnKey : void 0);
1635
- return { ...column, key: fallback };
1636
- })
1681
+ columns
1637
1682
  });
1638
1683
  const { dataSource, ...tableWithoutDataSource } = coreTable;
1639
1684
  const table = {