@juzhenfe/page-model 3.21.6 → 3.21.7

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.
@@ -258,7 +258,7 @@ export default class TableManager extends IManager {
258
258
  * 强制同步单选的数据
259
259
  */
260
260
  _syncRadioData(): void;
261
- loadExcelDependence(): Promise<boolean | HTMLScriptElement>;
261
+ loadExcelDependence(): Promise<any>;
262
262
  getTableCellText(el: any, rowData: AnyObject): any;
263
263
  /**
264
264
  * 获取excelData的表头
package/dist/index.es.js CHANGED
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { reactive, defineComponent, openBlock, createElementBlock, computed, ref, resolveComponent, normalizeClass, unref, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, nextTick, watch, markRaw, getCurrentInstance, resolveDynamicComponent, renderSlot, h, inject, createTextVNode, withModifiers, toRefs, onUnmounted, useSlots, toHandlers, createSlots, onMounted, createCommentVNode, render, Teleport, normalizeStyle, withDirectives, vShow, resolveDirective, Transition, shallowReactive, onActivated, watchEffect, normalizeProps, guardReactiveProps, provide } from "vue";
7
+ import { reactive, defineComponent, openBlock, createElementBlock, computed, ref, resolveComponent, normalizeClass, unref, createVNode, mergeProps, withCtx, Fragment, renderList, createBlock, createElementVNode, toDisplayString, nextTick, watch, markRaw, getCurrentInstance, resolveDynamicComponent, renderSlot, h, inject, createTextVNode, withModifiers, toRefs, onUnmounted, useSlots, toHandlers, createSlots, onMounted, createCommentVNode, render, Teleport, normalizeStyle, withDirectives, vShow, resolveDirective, Transition, onActivated, watchEffect, normalizeProps, guardReactiveProps, provide } from "vue";
8
8
  import { ElMessage, ElLoading, ElMessageBox, ElIcon } from "element-plus";
9
9
  function defineConfig(config) {
10
10
  return reactive(config);
@@ -3034,7 +3034,7 @@ const _sfc_main$F = defineComponent({
3034
3034
  const _component_el_dropdown = resolveComponent("el-dropdown");
3035
3035
  const _component_el_badge = resolveComponent("el-badge");
3036
3036
  return openBlock(), createElementBlock("div", {
3037
- class: normalizeClass([unref(BEMSpace), _ctx.direction === "vertical" ? "vertical" : "horizontal"])
3037
+ class: normalizeClass([unref(BEMSpace), __props.direction === "vertical" ? "vertical" : "horizontal"])
3038
3038
  }, [
3039
3039
  (openBlock(true), createElementBlock(Fragment, null, renderList(showEls.value, (button, index2) => {
3040
3040
  return openBlock(), createElementBlock("div", {
@@ -3079,10 +3079,10 @@ const _sfc_main$F = defineComponent({
3079
3079
  }), {
3080
3080
  default: withCtx(() => [
3081
3081
  createVNode(_sfc_main$G, {
3082
- context: _ctx.context,
3082
+ context: __props.context,
3083
3083
  "render-fn": button.renderFn,
3084
3084
  text: button.text,
3085
- executeData: _ctx.executeData
3085
+ executeData: __props.executeData
3086
3086
  }, null, 8, ["context", "render-fn", "text", "executeData"]),
3087
3087
  createVNode(_component_el_icon, { style: { "margin-left": "2px" } }, {
3088
3088
  default: withCtx(() => [
@@ -3105,10 +3105,10 @@ const _sfc_main$F = defineComponent({
3105
3105
  return [
3106
3106
  button.renderFn ? (openBlock(), createBlock(_sfc_main$G, {
3107
3107
  key: 0,
3108
- context: _ctx.context,
3108
+ context: __props.context,
3109
3109
  "render-fn": button.renderFn,
3110
3110
  text: button.text,
3111
- executeData: _ctx.executeData,
3111
+ executeData: __props.executeData,
3112
3112
  onClick: ($event) => handleButtonClick(index2)
3113
3113
  }, null, 8, ["context", "render-fn", "text", "executeData", "onClick"])) : (openBlock(), createBlock(_component_el_button, mergeProps({
3114
3114
  key: 1,
@@ -3522,14 +3522,14 @@ const _sfc_main$C = defineComponent({
3522
3522
  return openBlock(), createBlock(_component_el_dialog, mergeProps({
3523
3523
  ref_key: "dialogRef",
3524
3524
  ref: dialogRef,
3525
- "model-value": _ctx.modelValue,
3526
- title: _ctx.title,
3525
+ "model-value": __props.modelValue,
3526
+ title: __props.title,
3527
3527
  draggable: "",
3528
3528
  width: props.width,
3529
3529
  class: `${unref(BEMSpace)} ${props.customClass}`
3530
3530
  }, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), createSlots({
3531
3531
  header: withCtx(() => [
3532
- createElementVNode("span", _hoisted_1$g, toDisplayString(_ctx.title), 1)
3532
+ createElementVNode("span", _hoisted_1$g, toDisplayString(__props.title), 1)
3533
3533
  ]),
3534
3534
  default: withCtx(() => [
3535
3535
  renderSlot(_ctx.$slots, "default"),
@@ -3856,7 +3856,7 @@ const _PageModelManager = class extends Reflections {
3856
3856
  });
3857
3857
  }
3858
3858
  registerChildManager(managerName, manager) {
3859
- this.children.push(markRaw(manager));
3859
+ this.children.push(manager);
3860
3860
  this[managerName] = manager;
3861
3861
  manager.updateConfig(this.config);
3862
3862
  }
@@ -5186,6 +5186,7 @@ class TableManager extends IManager {
5186
5186
  if (this.table.showRadio) {
5187
5187
  this._syncRadioData();
5188
5188
  }
5189
+ console.log(this.tableData);
5189
5190
  setTimeout(() => {
5190
5191
  this.isDataUpdating = false;
5191
5192
  }, 0);
@@ -7682,7 +7683,7 @@ const _sfc_main$v = defineComponent({
7682
7683
  }, [
7683
7684
  !reRerender.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.modelValue, (ele, index2) => {
7684
7685
  return openBlock(), createElementBlock("div", {
7685
- key: (ele[_ctx.itemKey] || "") + index2,
7686
+ key: (ele[__props.itemKey] || "") + index2,
7686
7687
  class: normalizeClass(["sortable-item"])
7687
7688
  }, [
7688
7689
  renderSlot(_ctx.$slots, "item", {
@@ -7832,7 +7833,7 @@ const _sfc_main$u = defineComponent({
7832
7833
  }, [
7833
7834
  createElementVNode("span", null, toDisplayString(element.label), 1)
7834
7835
  ], 2),
7835
- !_ctx.onlyShow ? (openBlock(), createElementBlock("div", {
7836
+ !__props.onlyShow ? (openBlock(), createElementBlock("div", {
7836
7837
  key: 0,
7837
7838
  class: normalizeClass(unref(createBEMName)("cell"))
7838
7839
  }, [
@@ -7851,7 +7852,7 @@ const _sfc_main$u = defineComponent({
7851
7852
  "onUpdate:modelValue": ($event) => element.userConfigShow = $event
7852
7853
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
7853
7854
  ], 2),
7854
- !_ctx.onlyShow ? (openBlock(), createElementBlock("div", {
7855
+ !__props.onlyShow ? (openBlock(), createElementBlock("div", {
7855
7856
  key: 1,
7856
7857
  class: normalizeClass(unref(createBEMName)("cell"))
7857
7858
  }, [
@@ -7883,7 +7884,7 @@ const _sfc_main$u = defineComponent({
7883
7884
  _: 1
7884
7885
  }, 8, ["modelValue", "onUpdate:modelValue"])
7885
7886
  ], 2)) : createCommentVNode("", true),
7886
- !_ctx.onlyShow ? (openBlock(), createElementBlock("div", {
7887
+ !__props.onlyShow ? (openBlock(), createElementBlock("div", {
7887
7888
  key: 2,
7888
7889
  class: normalizeClass(unref(createBEMName)("cell"))
7889
7890
  }, [
@@ -8812,7 +8813,7 @@ const _sfc_main$q = defineComponent({
8812
8813
  setup(__props) {
8813
8814
  return (_ctx, _cache) => {
8814
8815
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
8815
- createElementVNode("span", null, toDisplayString(_ctx.text || "\u6682\u65E0\u6570\u636E"), 1)
8816
+ createElementVNode("span", null, toDisplayString(__props.text || "\u6682\u65E0\u6570\u636E"), 1)
8816
8817
  ]);
8817
8818
  };
8818
8819
  }
@@ -9496,7 +9497,7 @@ const _sfc_main$l = defineComponent({
9496
9497
  const emit = __emit;
9497
9498
  const instance = getCurrentInstance();
9498
9499
  const component = instance.proxy;
9499
- const tableManager = shallowReactive(new TableManager(props.table));
9500
+ const tableManager = reactive(new TableManager(props.table));
9500
9501
  tableManager.updateContext(component);
9501
9502
  const tableRef = ref();
9502
9503
  if (props.manager) {
@@ -9756,7 +9757,7 @@ const _sfc_main$l = defineComponent({
9756
9757
  return openBlock(), createElementBlock(Fragment, null, [
9757
9758
  createVNode(_sfc_main$o, {
9758
9759
  class: normalizeClass([unref(createBEMName)("table")]),
9759
- isLoading: unref(tableManager).loadingData,
9760
+ isLoading: tableManager.loadingData,
9760
9761
  directiveName: table.value.loadingDirectiveName
9761
9762
  }, {
9762
9763
  default: withCtx(() => [
@@ -9765,22 +9766,22 @@ const _sfc_main$l = defineComponent({
9765
9766
  ref_key: "tableRef",
9766
9767
  ref: tableRef,
9767
9768
  data: usedTableData.value,
9768
- size: unref(tableManager).size
9769
- }, unref(tableManager).tableProps, toHandlers(unref(tableManager).tableEvents), {
9769
+ size: tableManager.size
9770
+ }, tableManager.tableProps, toHandlers(tableManager.tableEvents), {
9770
9771
  onHeaderDragend: handleTableHeaderDragEnd,
9771
9772
  height: "100%",
9772
9773
  "max-height": "100%",
9773
9774
  "table-layout": "auto"
9774
9775
  }), {
9775
9776
  empty: withCtx(() => {
9776
- var _a, _b, _c, _d;
9777
+ var _a, _b;
9777
9778
  return [
9778
9779
  unref(PageModelManager).emptyTableComponent ? (openBlock(), createBlock(resolveDynamicComponent(unref(PageModelManager).emptyTableComponent), {
9779
9780
  key: 0,
9780
- text: (_b = (_a = unref(tableManager)) == null ? void 0 : _a.tableProps) == null ? void 0 : _b.emptyText
9781
+ text: (_a = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _a.emptyText
9781
9782
  }, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$q, {
9782
9783
  key: 1,
9783
- text: (_d = (_c = unref(tableManager)) == null ? void 0 : _c.tableProps) == null ? void 0 : _d.emptyText
9784
+ text: (_b = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _b.emptyText
9784
9785
  }, null, 8, ["text"]))
9785
9786
  ];
9786
9787
  }),
@@ -9799,12 +9800,12 @@ const _sfc_main$l = defineComponent({
9799
9800
  class: normalizeClass(unref(createBEMName)("radio"))
9800
9801
  }, [
9801
9802
  createVNode(_component_el_radio_group, {
9802
- "model-value": (_a2 = unref(tableManager).radioData) == null ? void 0 : _a2[unref(tableManager).rowKey],
9803
+ "model-value": (_a2 = tableManager.radioData) == null ? void 0 : _a2[tableManager.rowKey],
9803
9804
  onChange: ($event) => onRadioChange(row)
9804
9805
  }, {
9805
9806
  default: withCtx(() => [
9806
9807
  createVNode(_component_el_radio, {
9807
- label: row[unref(tableManager).rowKey]
9808
+ label: row[tableManager.rowKey]
9808
9809
  }, null, 8, ["label"])
9809
9810
  ]),
9810
9811
  _: 2
@@ -9841,7 +9842,7 @@ const _sfc_main$l = defineComponent({
9841
9842
  default: withCtx(({ row, $index }) => [
9842
9843
  createVNode(ButtonsRenderer, mergeProps({
9843
9844
  els: table.value.operate.els,
9844
- context: unref(tableManager),
9845
+ context: tableManager,
9845
9846
  executeData: [row, $index]
9846
9847
  }, _ctx.$attrs), null, 16, ["els", "context", "executeData"])
9847
9848
  ]),
@@ -9850,7 +9851,7 @@ const _sfc_main$l = defineComponent({
9850
9851
  ], 64)) : createCommentVNode("", true),
9851
9852
  createVNode(_sfc_main$w, {
9852
9853
  els: renderedTableEls.value,
9853
- context: unref(tableManager),
9854
+ context: tableManager,
9854
9855
  onColumnScreen: handleColumnScreen
9855
9856
  }, null, 8, ["els", "context"]),
9856
9857
  !isOperateFixedLeft.value ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
@@ -9862,7 +9863,7 @@ const _sfc_main$l = defineComponent({
9862
9863
  default: withCtx(({ row, $index }) => [
9863
9864
  createVNode(ButtonsRenderer, mergeProps({
9864
9865
  els: table.value.operate.els,
9865
- context: unref(tableManager),
9866
+ context: tableManager,
9866
9867
  executeData: [row, $index]
9867
9868
  }, _ctx.$attrs), null, 16, ["els", "context", "executeData"])
9868
9869
  ]),
@@ -9897,9 +9898,9 @@ const _sfc_main$l = defineComponent({
9897
9898
  _: 3
9898
9899
  }, 8, ["class", "isLoading", "directiveName"]),
9899
9900
  renderSlot(_ctx.$slots, "sum", {
9900
- data: unref(tableManager).tableData
9901
+ data: tableManager.tableData
9901
9902
  }),
9902
- unref(tableManager).pagination.show || table.value.showSelectableTip !== false && table.value.selectable ? (openBlock(), createElementBlock("div", {
9903
+ tableManager.pagination.show || table.value.showSelectableTip !== false && table.value.selectable ? (openBlock(), createElementBlock("div", {
9903
9904
  key: 0,
9904
9905
  class: normalizeClass(unref(createBEMName)("table-bottom"))
9905
9906
  }, [
@@ -9914,7 +9915,7 @@ const _sfc_main$l = defineComponent({
9914
9915
  createElementVNode("span", {
9915
9916
  class: normalizeClass(unref(createBEMName)("select-count")),
9916
9917
  onClick: handleShowSelections
9917
- }, toDisplayString(unref(tableManager).selection.length), 3),
9918
+ }, toDisplayString(tableManager.selection.length), 3),
9918
9919
  _cache[2] || (_cache[2] = createTextVNode("\u6761 ", -1))
9919
9920
  ], 2),
9920
9921
  createVNode(_component_el_popconfirm, {
@@ -9932,13 +9933,13 @@ const _sfc_main$l = defineComponent({
9932
9933
  })
9933
9934
  ], 64)) : createCommentVNode("", true)
9934
9935
  ], 2),
9935
- unref(tableManager).pagination.show ? (openBlock(), createBlock(_component_el_pagination, mergeProps({
9936
+ tableManager.pagination.show ? (openBlock(), createBlock(_component_el_pagination, mergeProps({
9936
9937
  key: 0,
9937
- currentPage: unref(tableManager).currentPage
9938
- }, unref(tableManager).pagination, {
9939
- total: unref(tableManager).total,
9940
- "page-size": unref(tableManager).pageSizeUserSet || unref(tableManager).pageSize,
9941
- "page-sizes": unref(tableManager).pagination.pageSizes,
9938
+ currentPage: tableManager.currentPage
9939
+ }, tableManager.pagination, {
9940
+ total: tableManager.total,
9941
+ "page-size": tableManager.pageSizeUserSet || tableManager.pageSize,
9942
+ "page-sizes": tableManager.pagination.pageSizes,
9942
9943
  onSizeChange: handleSizeChange,
9943
9944
  onCurrentChange: handleCurrentChange
9944
9945
  }), null, 16, ["currentPage", "total", "page-size", "page-sizes"])) : createCommentVNode("", true)
@@ -9973,7 +9974,7 @@ const _sfc_main$l = defineComponent({
9973
9974
  ref_key: "contextMenuRef",
9974
9975
  ref: contextMenuRef
9975
9976
  }, _ctx.$attrs), null, 16)) : createCommentVNode("", true),
9976
- unref(tableManager).tableProps.showSummary ? (openBlock(), createBlock(ContextColumnSummary, {
9977
+ tableManager.tableProps.showSummary ? (openBlock(), createBlock(ContextColumnSummary, {
9977
9978
  key: 4,
9978
9979
  ref_key: "contextColumnSummaryRef",
9979
9980
  ref: contextColumnSummaryRef,
@@ -10264,7 +10265,7 @@ const _sfc_main$k = defineComponent({
10264
10265
  }), 128))
10265
10266
  ], 2)) : (openBlock(), createBlock(_component_el_row, normalizeProps(mergeProps({ key: 1 }, props.rowProps)), {
10266
10267
  default: withCtx(() => [
10267
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.els, (el, index2) => {
10268
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.els, (el, index2) => {
10268
10269
  return openBlock(), createBlock(_component_el_col, mergeProps({ key: index2 }, { ref_for: true }, el.col), {
10269
10270
  default: withCtx(() => [
10270
10271
  renderSlot(_ctx.$slots, "default", { el }, void 0, true)
@@ -10356,8 +10357,8 @@ const _sfc_main$j = defineComponent({
10356
10357
  }, {
10357
10358
  default: withCtx(() => [
10358
10359
  createVNode(SectionTitleEl, {
10359
- "row-props": _ctx.rowProps,
10360
- "section-config": _ctx.sectionConfig,
10360
+ "row-props": __props.rowProps,
10361
+ "section-config": __props.sectionConfig,
10361
10362
  els: pane.els
10362
10363
  }, {
10363
10364
  default: withCtx(({ el }) => [
@@ -10467,10 +10468,10 @@ const _sfc_main$h = defineComponent({
10467
10468
  return (_ctx, _cache) => {
10468
10469
  return useModule.value ? (openBlock(), createBlock(_sfc_main$i, {
10469
10470
  key: 0,
10470
- rowProps: _ctx.form.rowProps,
10471
+ rowProps: __props.form.rowProps,
10471
10472
  sectionConfig: useSectionConfig.value,
10472
- errorProp: _ctx.errorProp,
10473
- "module-config": _ctx.form.moduleConfig,
10473
+ errorProp: __props.errorProp,
10474
+ "module-config": __props.form.moduleConfig,
10474
10475
  els: moduleEls.value
10475
10476
  }, {
10476
10477
  default: withCtx(({ el }) => [
@@ -10479,7 +10480,7 @@ const _sfc_main$h = defineComponent({
10479
10480
  _: 3
10480
10481
  }, 8, ["rowProps", "sectionConfig", "errorProp", "module-config", "els"])) : (openBlock(), createBlock(SectionTitleEl, {
10481
10482
  key: 1,
10482
- "row-props": _ctx.form.rowProps,
10483
+ "row-props": __props.form.rowProps,
10483
10484
  "section-config": useSectionConfig.value,
10484
10485
  els: els.value
10485
10486
  }, {
@@ -10857,9 +10858,7 @@ const _sfc_main$e = defineComponent({
10857
10858
  const { BEMSpace, createBEMName } = createBEMSpace("pm-form");
10858
10859
  const instance = getCurrentInstance();
10859
10860
  const component = instance.proxy;
10860
- const formManager = shallowReactive(
10861
- new FormManager(props.form)
10862
- );
10861
+ const formManager = reactive(new FormManager(props.form));
10863
10862
  formManager.updateContext(component);
10864
10863
  if (props.reflections) {
10865
10864
  formManager.updateReflections(props.reflections);
@@ -11053,7 +11052,7 @@ const _sfc_main$e = defineComponent({
11053
11052
  return openBlock(), createBlock(_component_el_form, mergeProps({
11054
11053
  ref_key: "formRef",
11055
11054
  ref: formRef,
11056
- model: unref(formManager).formData
11055
+ model: formManager.formData
11057
11056
  }, form.value.props, {
11058
11057
  rules: rules.value,
11059
11058
  class: unref(BEMSpace)
@@ -11062,8 +11061,8 @@ const _sfc_main$e = defineComponent({
11062
11061
  createVNode(_sfc_main$g, {
11063
11062
  els: totalShowFormEls.value,
11064
11063
  form: form.value,
11065
- formManager: unref(formManager),
11066
- errorProp: unref(formManager).errorProp
11064
+ formManager,
11065
+ errorProp: formManager.errorProp
11067
11066
  }, {
11068
11067
  default: withCtx(({ el: item }) => [
11069
11068
  createVNode(_component_el_form_item, mergeProps(item.formItemProps, {
@@ -11075,7 +11074,7 @@ const _sfc_main$e = defineComponent({
11075
11074
  item.helpTextAsTooltip ? (openBlock(), createBlock(_component_el_tooltip, {
11076
11075
  key: 0,
11077
11076
  effect: "dark",
11078
- content: renderDeText(item.helpText, unref(formManager).formData),
11077
+ content: renderDeText(item.helpText, formManager.formData),
11079
11078
  placement: "top"
11080
11079
  }, {
11081
11080
  default: withCtx(() => [
@@ -11101,28 +11100,28 @@ const _sfc_main$e = defineComponent({
11101
11100
  item.prefix ? (openBlock(), createElementBlock("div", {
11102
11101
  key: 0,
11103
11102
  class: normalizeClass(unref(createBEMName)("prefix"))
11104
- }, toDisplayString(renderDeText(item.prefix, unref(formManager).formData)), 3)) : createCommentVNode("", true),
11103
+ }, toDisplayString(renderDeText(item.prefix, formManager.formData)), 3)) : createCommentVNode("", true),
11105
11104
  createVNode(_sfc_main$D, {
11106
- modelValue: unref(formManager).formData[item.prop],
11105
+ modelValue: formManager.formData[item.prop],
11107
11106
  renderFn: item.renderFn,
11108
- context: unref(formManager),
11107
+ context: formManager,
11109
11108
  change: item.change,
11110
11109
  options: item,
11111
11110
  disabled: isDisabled(item),
11112
- model: unref(formManager).formData,
11111
+ model: formManager.formData,
11113
11112
  multProps: item._updateProps,
11114
11113
  "onUpdate:modelValue": ($event) => handleFormUpdateModelValue(item, $event)
11115
11114
  }, null, 8, ["modelValue", "renderFn", "context", "change", "options", "disabled", "model", "multProps", "onUpdate:modelValue"]),
11116
11115
  item.suffix ? (openBlock(), createElementBlock("div", {
11117
11116
  key: 1,
11118
11117
  class: normalizeClass(unref(createBEMName)("suffix"))
11119
- }, toDisplayString(renderDeText(item.suffix, unref(formManager).formData)), 3)) : createCommentVNode("", true)
11118
+ }, toDisplayString(renderDeText(item.suffix, formManager.formData)), 3)) : createCommentVNode("", true)
11120
11119
  ], 2),
11121
11120
  item.helpText && !item.helpTextAsTooltip ? (openBlock(), createElementBlock("div", {
11122
11121
  key: 0,
11123
11122
  class: normalizeClass(unref(createBEMName)("help-text"))
11124
11123
  }, [
11125
- createElementVNode("span", null, toDisplayString(renderDeText(item.helpText, unref(formManager).formData)), 1)
11124
+ createElementVNode("span", null, toDisplayString(renderDeText(item.helpText, formManager.formData)), 1)
11126
11125
  ], 2)) : createCommentVNode("", true)
11127
11126
  ], 2)
11128
11127
  ]),
@@ -11457,13 +11456,13 @@ const _sfc_main$b = defineComponent({
11457
11456
  return openBlock(), createBlock(_component_el_drawer, mergeProps({
11458
11457
  ref_key: "drawerRef",
11459
11458
  ref: drawerRef,
11460
- "model-value": _ctx.modelValue,
11461
- title: _ctx.title,
11459
+ "model-value": __props.modelValue,
11460
+ title: __props.title,
11462
11461
  width: props.width,
11463
- class: `${unref(BEMSpace)} ${props.customClass || ""} ${_ctx.noPaddingTop ? "no-padding-top" : ""}`
11462
+ class: `${unref(BEMSpace)} ${props.customClass || ""} ${__props.noPaddingTop ? "no-padding-top" : ""}`
11464
11463
  }, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), createSlots({
11465
11464
  header: withCtx(() => [
11466
- createElementVNode("span", _hoisted_1$6, toDisplayString(_ctx.title), 1)
11465
+ createElementVNode("span", _hoisted_1$6, toDisplayString(__props.title), 1)
11467
11466
  ]),
11468
11467
  default: withCtx(() => [
11469
11468
  renderSlot(_ctx.$slots, "default")
@@ -11679,7 +11678,7 @@ const _sfc_main$9 = defineComponent({
11679
11678
  ref_key: "componentRef",
11680
11679
  ref: componentRef,
11681
11680
  props: componentConfig.value.props,
11682
- formManager: _ctx.formManager,
11681
+ formManager: __props.formManager,
11683
11682
  onHide: onFormClosed
11684
11683
  }, _ctx.$attrs), {
11685
11684
  bottom: withCtx(() => [
@@ -12634,7 +12633,7 @@ const _sfc_main$5 = defineComponent({
12634
12633
  ref: toolboxRef,
12635
12634
  class: "table-toolbox"
12636
12635
  }, [
12637
- _ctx.mode === "icon" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(showToolbox.value, (tool, index2) => {
12636
+ __props.mode === "icon" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(showToolbox.value, (tool, index2) => {
12638
12637
  return openBlock(), createElementBlock("div", {
12639
12638
  class: "tool-item",
12640
12639
  key: index2,
@@ -13344,7 +13343,7 @@ const _sfc_main$4 = defineComponent({
13344
13343
  "with-tab": hasTabs.value,
13345
13344
  "with-search": isRenderForm.value,
13346
13345
  "with-selectable-buttons": showSelectableButtonsArea.value,
13347
- "with-shadow": _ctx.config.shadow
13346
+ "with-shadow": __props.config.shadow
13348
13347
  }
13349
13348
  ],
13350
13349
  style: { height: props.height }
@@ -13496,7 +13495,7 @@ const _sfc_main$4 = defineComponent({
13496
13495
  onClosed: unref(onColumnToolsSettingClosed),
13497
13496
  onSubmit: handleFormColumnToolsSubmit
13498
13497
  }, null, 8, ["onClosed"])) : createCommentVNode("", true),
13499
- ((_b = (_a = _ctx.config.table) == null ? void 0 : _a.toolbox) == null ? void 0 : _b.includes("filter")) ? (openBlock(), createBlock(ColumnFilterTools, {
13498
+ ((_b = (_a = __props.config.table) == null ? void 0 : _a.toolbox) == null ? void 0 : _b.includes("filter")) ? (openBlock(), createBlock(ColumnFilterTools, {
13500
13499
  key: 3,
13501
13500
  ref_key: "columnFilterToolsRef",
13502
13501
  ref: columnFilterToolsRef,
@@ -13504,7 +13503,7 @@ const _sfc_main$4 = defineComponent({
13504
13503
  onScreen: handleColumnFilterToolsScreen,
13505
13504
  onClosed: handleColumnFilterToolsClosed
13506
13505
  }, null, 8, ["manager"])) : createCommentVNode("", true),
13507
- ((_d = (_c = _ctx.config.table) == null ? void 0 : _c.toolbox) == null ? void 0 : _d.includes("sort")) ? (openBlock(), createBlock(ColumnSortTools, {
13506
+ ((_d = (_c = __props.config.table) == null ? void 0 : _c.toolbox) == null ? void 0 : _d.includes("sort")) ? (openBlock(), createBlock(ColumnSortTools, {
13508
13507
  key: 4,
13509
13508
  ref_key: "columnSortToolsRef",
13510
13509
  ref: columnSortToolsRef,
@@ -13512,7 +13511,7 @@ const _sfc_main$4 = defineComponent({
13512
13511
  onScreen: handleColumnSortToolsScreen,
13513
13512
  onClosed: handleColumnSortToolsClosed
13514
13513
  }, null, 8, ["manager"])) : createCommentVNode("", true),
13515
- ((_f = (_e = _ctx.config.table) == null ? void 0 : _e.toolbox) == null ? void 0 : _f.includes("line-clamp")) ? (openBlock(), createBlock(LineClampTools, {
13514
+ ((_f = (_e = __props.config.table) == null ? void 0 : _e.toolbox) == null ? void 0 : _f.includes("line-clamp")) ? (openBlock(), createBlock(LineClampTools, {
13516
13515
  key: 5,
13517
13516
  ref_key: "lineClampToolsRef",
13518
13517
  ref: lineClampToolsRef,
@@ -14264,13 +14263,13 @@ const _sfc_main = defineComponent({
14264
14263
  const _component_el_popover = resolveComponent("el-popover");
14265
14264
  const _component_el_table = resolveComponent("el-table");
14266
14265
  return openBlock(), createElementBlock("div", {
14267
- class: normalizeClass(["editable-table", { border: _ctx.border }])
14266
+ class: normalizeClass(["editable-table", { border: __props.border }])
14268
14267
  }, [
14269
- _ctx.filterable ? (openBlock(), createElementBlock("div", _hoisted_1, [
14268
+ __props.filterable ? (openBlock(), createElementBlock("div", _hoisted_1, [
14270
14269
  createVNode(_component_el_input, {
14271
14270
  modelValue: filterKeywords.value,
14272
14271
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterKeywords.value = $event),
14273
- placeholder: _ctx.filterPlaceholder || "\u8BF7\u8F93\u5165"
14272
+ placeholder: __props.filterPlaceholder || "\u8BF7\u8F93\u5165"
14274
14273
  }, null, 8, ["modelValue", "placeholder"])
14275
14274
  ])) : createCommentVNode("", true),
14276
14275
  createVNode(_component_el_table, mergeProps({
@@ -14288,7 +14287,7 @@ const _sfc_main = defineComponent({
14288
14287
  onRowClick
14289
14288
  }), {
14290
14289
  default: withCtx(() => [
14291
- !_ctx.noAddable || !_ctx.noDelete ? (openBlock(), createBlock(_component_el_table_column, {
14290
+ !__props.noAddable || !__props.noDelete ? (openBlock(), createBlock(_component_el_table_column, {
14292
14291
  key: 0,
14293
14292
  fixed: "left",
14294
14293
  width: "70"
@@ -14302,7 +14301,7 @@ const _sfc_main = defineComponent({
14302
14301
  { current: currentEditRowIndex.value === $index }
14303
14302
  ])
14304
14303
  }, [
14305
- !_ctx.noAddable && !((_a = _ctx.isAddDisabled) == null ? void 0 : _a.call(_ctx, row, $index)) ? (openBlock(), createBlock(_component_el_icon, {
14304
+ !__props.noAddable && !((_a = __props.isAddDisabled) == null ? void 0 : _a.call(__props, row, $index)) ? (openBlock(), createBlock(_component_el_icon, {
14306
14305
  key: 0,
14307
14306
  class: "editable-table-icon plus-icon",
14308
14307
  title: "\u6DFB\u52A0\u81F3\u4E0B\u4E00\u884C",
@@ -14313,7 +14312,7 @@ const _sfc_main = defineComponent({
14313
14312
  ]),
14314
14313
  _: 1
14315
14314
  }, 8, ["onClick"])) : createCommentVNode("", true),
14316
- !_ctx.noDelete && !((_b = _ctx.isDeleteDisabled) == null ? void 0 : _b.call(_ctx, row, $index)) ? (openBlock(), createBlock(_component_el_icon, {
14315
+ !__props.noDelete && !((_b = __props.isDeleteDisabled) == null ? void 0 : _b.call(__props, row, $index)) ? (openBlock(), createBlock(_component_el_icon, {
14317
14316
  key: 1,
14318
14317
  class: "editable-table-icon remove-icon",
14319
14318
  title: "\u5220\u9664\u8BE5\u884C",
@@ -14375,7 +14374,7 @@ const _sfc_main = defineComponent({
14375
14374
  onKeyTab: ($event) => onInputKeyTabEvent(index2)
14376
14375
  }, {
14377
14376
  default: withCtx(() => [
14378
- column.renderFn && (_ctx.alwaysShowEdit || isCurrentRowFocus($index)) ? (openBlock(), createBlock(_sfc_main$z, {
14377
+ column.renderFn && (__props.alwaysShowEdit || isCurrentRowFocus($index)) ? (openBlock(), createBlock(_sfc_main$z, {
14379
14378
  key: 0,
14380
14379
  "render-fn": column.renderFn,
14381
14380
  pure: "",
@@ -14397,7 +14396,7 @@ const _sfc_main = defineComponent({
14397
14396
  _: 2
14398
14397
  }, 1040, ["label", "prop", "width", "fixed", "minWidth"]);
14399
14398
  }), 128)),
14400
- _ctx.showTools ? (openBlock(), createBlock(_component_el_table_column, {
14399
+ __props.showTools ? (openBlock(), createBlock(_component_el_table_column, {
14401
14400
  key: 1,
14402
14401
  width: "44",
14403
14402
  fixed: "right"
@@ -14451,7 +14450,7 @@ const defineEditableTable = function(config) {
14451
14450
  };
14452
14451
  var iconfont = "";
14453
14452
  const name = "@juzhenfe/page-model";
14454
- const version = "3.21.6";
14453
+ const version = "3.21.7";
14455
14454
  const types = "dist/main.d.ts";
14456
14455
  const main = "dist/index.umd.js";
14457
14456
  const keywords = [
@@ -14490,7 +14489,6 @@ const devDependencies = {
14490
14489
  typescript: "4.5.5",
14491
14490
  vite: "2.8.1",
14492
14491
  "vite-plugin-dts": "^1.0.5",
14493
- vue: "^3.2.30",
14494
14492
  "vue-router": "^4.0.13",
14495
14493
  xlsx: "^0.18.3",
14496
14494
  "xlsx-style": "^0.8.13"