@juzhenfe/page-model 3.21.6 → 3.21.8

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
  }
@@ -7682,7 +7682,7 @@ const _sfc_main$v = defineComponent({
7682
7682
  }, [
7683
7683
  !reRerender.value ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(props.modelValue, (ele, index2) => {
7684
7684
  return openBlock(), createElementBlock("div", {
7685
- key: (ele[_ctx.itemKey] || "") + index2,
7685
+ key: (ele[__props.itemKey] || "") + index2,
7686
7686
  class: normalizeClass(["sortable-item"])
7687
7687
  }, [
7688
7688
  renderSlot(_ctx.$slots, "item", {
@@ -7832,7 +7832,7 @@ const _sfc_main$u = defineComponent({
7832
7832
  }, [
7833
7833
  createElementVNode("span", null, toDisplayString(element.label), 1)
7834
7834
  ], 2),
7835
- !_ctx.onlyShow ? (openBlock(), createElementBlock("div", {
7835
+ !__props.onlyShow ? (openBlock(), createElementBlock("div", {
7836
7836
  key: 0,
7837
7837
  class: normalizeClass(unref(createBEMName)("cell"))
7838
7838
  }, [
@@ -7851,7 +7851,7 @@ const _sfc_main$u = defineComponent({
7851
7851
  "onUpdate:modelValue": ($event) => element.userConfigShow = $event
7852
7852
  }, null, 8, ["modelValue", "onUpdate:modelValue"])
7853
7853
  ], 2),
7854
- !_ctx.onlyShow ? (openBlock(), createElementBlock("div", {
7854
+ !__props.onlyShow ? (openBlock(), createElementBlock("div", {
7855
7855
  key: 1,
7856
7856
  class: normalizeClass(unref(createBEMName)("cell"))
7857
7857
  }, [
@@ -7883,7 +7883,7 @@ const _sfc_main$u = defineComponent({
7883
7883
  _: 1
7884
7884
  }, 8, ["modelValue", "onUpdate:modelValue"])
7885
7885
  ], 2)) : createCommentVNode("", true),
7886
- !_ctx.onlyShow ? (openBlock(), createElementBlock("div", {
7886
+ !__props.onlyShow ? (openBlock(), createElementBlock("div", {
7887
7887
  key: 2,
7888
7888
  class: normalizeClass(unref(createBEMName)("cell"))
7889
7889
  }, [
@@ -8812,7 +8812,7 @@ const _sfc_main$q = defineComponent({
8812
8812
  setup(__props) {
8813
8813
  return (_ctx, _cache) => {
8814
8814
  return openBlock(), createElementBlock("div", _hoisted_1$b, [
8815
- createElementVNode("span", null, toDisplayString(_ctx.text || "\u6682\u65E0\u6570\u636E"), 1)
8815
+ createElementVNode("span", null, toDisplayString(__props.text || "\u6682\u65E0\u6570\u636E"), 1)
8816
8816
  ]);
8817
8817
  };
8818
8818
  }
@@ -9496,7 +9496,7 @@ const _sfc_main$l = defineComponent({
9496
9496
  const emit = __emit;
9497
9497
  const instance = getCurrentInstance();
9498
9498
  const component = instance.proxy;
9499
- const tableManager = shallowReactive(new TableManager(props.table));
9499
+ const tableManager = reactive(new TableManager(props.table));
9500
9500
  tableManager.updateContext(component);
9501
9501
  const tableRef = ref();
9502
9502
  if (props.manager) {
@@ -9756,7 +9756,7 @@ const _sfc_main$l = defineComponent({
9756
9756
  return openBlock(), createElementBlock(Fragment, null, [
9757
9757
  createVNode(_sfc_main$o, {
9758
9758
  class: normalizeClass([unref(createBEMName)("table")]),
9759
- isLoading: unref(tableManager).loadingData,
9759
+ isLoading: tableManager.loadingData,
9760
9760
  directiveName: table.value.loadingDirectiveName
9761
9761
  }, {
9762
9762
  default: withCtx(() => [
@@ -9765,22 +9765,22 @@ const _sfc_main$l = defineComponent({
9765
9765
  ref_key: "tableRef",
9766
9766
  ref: tableRef,
9767
9767
  data: usedTableData.value,
9768
- size: unref(tableManager).size
9769
- }, unref(tableManager).tableProps, toHandlers(unref(tableManager).tableEvents), {
9768
+ size: tableManager.size
9769
+ }, tableManager.tableProps, toHandlers(tableManager.tableEvents), {
9770
9770
  onHeaderDragend: handleTableHeaderDragEnd,
9771
9771
  height: "100%",
9772
9772
  "max-height": "100%",
9773
9773
  "table-layout": "auto"
9774
9774
  }), {
9775
9775
  empty: withCtx(() => {
9776
- var _a, _b, _c, _d;
9776
+ var _a, _b;
9777
9777
  return [
9778
9778
  unref(PageModelManager).emptyTableComponent ? (openBlock(), createBlock(resolveDynamicComponent(unref(PageModelManager).emptyTableComponent), {
9779
9779
  key: 0,
9780
- text: (_b = (_a = unref(tableManager)) == null ? void 0 : _a.tableProps) == null ? void 0 : _b.emptyText
9780
+ text: (_a = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _a.emptyText
9781
9781
  }, null, 8, ["text"])) : (openBlock(), createBlock(_sfc_main$q, {
9782
9782
  key: 1,
9783
- text: (_d = (_c = unref(tableManager)) == null ? void 0 : _c.tableProps) == null ? void 0 : _d.emptyText
9783
+ text: (_b = tableManager == null ? void 0 : tableManager.tableProps) == null ? void 0 : _b.emptyText
9784
9784
  }, null, 8, ["text"]))
9785
9785
  ];
9786
9786
  }),
@@ -9799,12 +9799,12 @@ const _sfc_main$l = defineComponent({
9799
9799
  class: normalizeClass(unref(createBEMName)("radio"))
9800
9800
  }, [
9801
9801
  createVNode(_component_el_radio_group, {
9802
- "model-value": (_a2 = unref(tableManager).radioData) == null ? void 0 : _a2[unref(tableManager).rowKey],
9802
+ "model-value": (_a2 = tableManager.radioData) == null ? void 0 : _a2[tableManager.rowKey],
9803
9803
  onChange: ($event) => onRadioChange(row)
9804
9804
  }, {
9805
9805
  default: withCtx(() => [
9806
9806
  createVNode(_component_el_radio, {
9807
- label: row[unref(tableManager).rowKey]
9807
+ label: row[tableManager.rowKey]
9808
9808
  }, null, 8, ["label"])
9809
9809
  ]),
9810
9810
  _: 2
@@ -9841,7 +9841,7 @@ const _sfc_main$l = defineComponent({
9841
9841
  default: withCtx(({ row, $index }) => [
9842
9842
  createVNode(ButtonsRenderer, mergeProps({
9843
9843
  els: table.value.operate.els,
9844
- context: unref(tableManager),
9844
+ context: tableManager,
9845
9845
  executeData: [row, $index]
9846
9846
  }, _ctx.$attrs), null, 16, ["els", "context", "executeData"])
9847
9847
  ]),
@@ -9850,7 +9850,7 @@ const _sfc_main$l = defineComponent({
9850
9850
  ], 64)) : createCommentVNode("", true),
9851
9851
  createVNode(_sfc_main$w, {
9852
9852
  els: renderedTableEls.value,
9853
- context: unref(tableManager),
9853
+ context: tableManager,
9854
9854
  onColumnScreen: handleColumnScreen
9855
9855
  }, null, 8, ["els", "context"]),
9856
9856
  !isOperateFixedLeft.value ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
@@ -9862,7 +9862,7 @@ const _sfc_main$l = defineComponent({
9862
9862
  default: withCtx(({ row, $index }) => [
9863
9863
  createVNode(ButtonsRenderer, mergeProps({
9864
9864
  els: table.value.operate.els,
9865
- context: unref(tableManager),
9865
+ context: tableManager,
9866
9866
  executeData: [row, $index]
9867
9867
  }, _ctx.$attrs), null, 16, ["els", "context", "executeData"])
9868
9868
  ]),
@@ -9897,9 +9897,9 @@ const _sfc_main$l = defineComponent({
9897
9897
  _: 3
9898
9898
  }, 8, ["class", "isLoading", "directiveName"]),
9899
9899
  renderSlot(_ctx.$slots, "sum", {
9900
- data: unref(tableManager).tableData
9900
+ data: tableManager.tableData
9901
9901
  }),
9902
- unref(tableManager).pagination.show || table.value.showSelectableTip !== false && table.value.selectable ? (openBlock(), createElementBlock("div", {
9902
+ tableManager.pagination.show || table.value.showSelectableTip !== false && table.value.selectable ? (openBlock(), createElementBlock("div", {
9903
9903
  key: 0,
9904
9904
  class: normalizeClass(unref(createBEMName)("table-bottom"))
9905
9905
  }, [
@@ -9914,7 +9914,7 @@ const _sfc_main$l = defineComponent({
9914
9914
  createElementVNode("span", {
9915
9915
  class: normalizeClass(unref(createBEMName)("select-count")),
9916
9916
  onClick: handleShowSelections
9917
- }, toDisplayString(unref(tableManager).selection.length), 3),
9917
+ }, toDisplayString(tableManager.selection.length), 3),
9918
9918
  _cache[2] || (_cache[2] = createTextVNode("\u6761 ", -1))
9919
9919
  ], 2),
9920
9920
  createVNode(_component_el_popconfirm, {
@@ -9932,13 +9932,13 @@ const _sfc_main$l = defineComponent({
9932
9932
  })
9933
9933
  ], 64)) : createCommentVNode("", true)
9934
9934
  ], 2),
9935
- unref(tableManager).pagination.show ? (openBlock(), createBlock(_component_el_pagination, mergeProps({
9935
+ tableManager.pagination.show ? (openBlock(), createBlock(_component_el_pagination, mergeProps({
9936
9936
  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,
9937
+ currentPage: tableManager.currentPage
9938
+ }, tableManager.pagination, {
9939
+ total: tableManager.total,
9940
+ "page-size": tableManager.pageSizeUserSet || tableManager.pageSize,
9941
+ "page-sizes": tableManager.pagination.pageSizes,
9942
9942
  onSizeChange: handleSizeChange,
9943
9943
  onCurrentChange: handleCurrentChange
9944
9944
  }), null, 16, ["currentPage", "total", "page-size", "page-sizes"])) : createCommentVNode("", true)
@@ -9973,7 +9973,7 @@ const _sfc_main$l = defineComponent({
9973
9973
  ref_key: "contextMenuRef",
9974
9974
  ref: contextMenuRef
9975
9975
  }, _ctx.$attrs), null, 16)) : createCommentVNode("", true),
9976
- unref(tableManager).tableProps.showSummary ? (openBlock(), createBlock(ContextColumnSummary, {
9976
+ tableManager.tableProps.showSummary ? (openBlock(), createBlock(ContextColumnSummary, {
9977
9977
  key: 4,
9978
9978
  ref_key: "contextColumnSummaryRef",
9979
9979
  ref: contextColumnSummaryRef,
@@ -10264,7 +10264,7 @@ const _sfc_main$k = defineComponent({
10264
10264
  }), 128))
10265
10265
  ], 2)) : (openBlock(), createBlock(_component_el_row, normalizeProps(mergeProps({ key: 1 }, props.rowProps)), {
10266
10266
  default: withCtx(() => [
10267
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.els, (el, index2) => {
10267
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.els, (el, index2) => {
10268
10268
  return openBlock(), createBlock(_component_el_col, mergeProps({ key: index2 }, { ref_for: true }, el.col), {
10269
10269
  default: withCtx(() => [
10270
10270
  renderSlot(_ctx.$slots, "default", { el }, void 0, true)
@@ -10356,8 +10356,8 @@ const _sfc_main$j = defineComponent({
10356
10356
  }, {
10357
10357
  default: withCtx(() => [
10358
10358
  createVNode(SectionTitleEl, {
10359
- "row-props": _ctx.rowProps,
10360
- "section-config": _ctx.sectionConfig,
10359
+ "row-props": __props.rowProps,
10360
+ "section-config": __props.sectionConfig,
10361
10361
  els: pane.els
10362
10362
  }, {
10363
10363
  default: withCtx(({ el }) => [
@@ -10467,10 +10467,10 @@ const _sfc_main$h = defineComponent({
10467
10467
  return (_ctx, _cache) => {
10468
10468
  return useModule.value ? (openBlock(), createBlock(_sfc_main$i, {
10469
10469
  key: 0,
10470
- rowProps: _ctx.form.rowProps,
10470
+ rowProps: __props.form.rowProps,
10471
10471
  sectionConfig: useSectionConfig.value,
10472
- errorProp: _ctx.errorProp,
10473
- "module-config": _ctx.form.moduleConfig,
10472
+ errorProp: __props.errorProp,
10473
+ "module-config": __props.form.moduleConfig,
10474
10474
  els: moduleEls.value
10475
10475
  }, {
10476
10476
  default: withCtx(({ el }) => [
@@ -10479,7 +10479,7 @@ const _sfc_main$h = defineComponent({
10479
10479
  _: 3
10480
10480
  }, 8, ["rowProps", "sectionConfig", "errorProp", "module-config", "els"])) : (openBlock(), createBlock(SectionTitleEl, {
10481
10481
  key: 1,
10482
- "row-props": _ctx.form.rowProps,
10482
+ "row-props": __props.form.rowProps,
10483
10483
  "section-config": useSectionConfig.value,
10484
10484
  els: els.value
10485
10485
  }, {
@@ -10857,9 +10857,7 @@ const _sfc_main$e = defineComponent({
10857
10857
  const { BEMSpace, createBEMName } = createBEMSpace("pm-form");
10858
10858
  const instance = getCurrentInstance();
10859
10859
  const component = instance.proxy;
10860
- const formManager = shallowReactive(
10861
- new FormManager(props.form)
10862
- );
10860
+ const formManager = reactive(new FormManager(props.form));
10863
10861
  formManager.updateContext(component);
10864
10862
  if (props.reflections) {
10865
10863
  formManager.updateReflections(props.reflections);
@@ -11053,7 +11051,7 @@ const _sfc_main$e = defineComponent({
11053
11051
  return openBlock(), createBlock(_component_el_form, mergeProps({
11054
11052
  ref_key: "formRef",
11055
11053
  ref: formRef,
11056
- model: unref(formManager).formData
11054
+ model: formManager.formData
11057
11055
  }, form.value.props, {
11058
11056
  rules: rules.value,
11059
11057
  class: unref(BEMSpace)
@@ -11062,8 +11060,8 @@ const _sfc_main$e = defineComponent({
11062
11060
  createVNode(_sfc_main$g, {
11063
11061
  els: totalShowFormEls.value,
11064
11062
  form: form.value,
11065
- formManager: unref(formManager),
11066
- errorProp: unref(formManager).errorProp
11063
+ formManager,
11064
+ errorProp: formManager.errorProp
11067
11065
  }, {
11068
11066
  default: withCtx(({ el: item }) => [
11069
11067
  createVNode(_component_el_form_item, mergeProps(item.formItemProps, {
@@ -11075,7 +11073,7 @@ const _sfc_main$e = defineComponent({
11075
11073
  item.helpTextAsTooltip ? (openBlock(), createBlock(_component_el_tooltip, {
11076
11074
  key: 0,
11077
11075
  effect: "dark",
11078
- content: renderDeText(item.helpText, unref(formManager).formData),
11076
+ content: renderDeText(item.helpText, formManager.formData),
11079
11077
  placement: "top"
11080
11078
  }, {
11081
11079
  default: withCtx(() => [
@@ -11101,28 +11099,28 @@ const _sfc_main$e = defineComponent({
11101
11099
  item.prefix ? (openBlock(), createElementBlock("div", {
11102
11100
  key: 0,
11103
11101
  class: normalizeClass(unref(createBEMName)("prefix"))
11104
- }, toDisplayString(renderDeText(item.prefix, unref(formManager).formData)), 3)) : createCommentVNode("", true),
11102
+ }, toDisplayString(renderDeText(item.prefix, formManager.formData)), 3)) : createCommentVNode("", true),
11105
11103
  createVNode(_sfc_main$D, {
11106
- modelValue: unref(formManager).formData[item.prop],
11104
+ modelValue: formManager.formData[item.prop],
11107
11105
  renderFn: item.renderFn,
11108
- context: unref(formManager),
11106
+ context: formManager,
11109
11107
  change: item.change,
11110
11108
  options: item,
11111
11109
  disabled: isDisabled(item),
11112
- model: unref(formManager).formData,
11110
+ model: formManager.formData,
11113
11111
  multProps: item._updateProps,
11114
11112
  "onUpdate:modelValue": ($event) => handleFormUpdateModelValue(item, $event)
11115
11113
  }, null, 8, ["modelValue", "renderFn", "context", "change", "options", "disabled", "model", "multProps", "onUpdate:modelValue"]),
11116
11114
  item.suffix ? (openBlock(), createElementBlock("div", {
11117
11115
  key: 1,
11118
11116
  class: normalizeClass(unref(createBEMName)("suffix"))
11119
- }, toDisplayString(renderDeText(item.suffix, unref(formManager).formData)), 3)) : createCommentVNode("", true)
11117
+ }, toDisplayString(renderDeText(item.suffix, formManager.formData)), 3)) : createCommentVNode("", true)
11120
11118
  ], 2),
11121
11119
  item.helpText && !item.helpTextAsTooltip ? (openBlock(), createElementBlock("div", {
11122
11120
  key: 0,
11123
11121
  class: normalizeClass(unref(createBEMName)("help-text"))
11124
11122
  }, [
11125
- createElementVNode("span", null, toDisplayString(renderDeText(item.helpText, unref(formManager).formData)), 1)
11123
+ createElementVNode("span", null, toDisplayString(renderDeText(item.helpText, formManager.formData)), 1)
11126
11124
  ], 2)) : createCommentVNode("", true)
11127
11125
  ], 2)
11128
11126
  ]),
@@ -11457,13 +11455,13 @@ const _sfc_main$b = defineComponent({
11457
11455
  return openBlock(), createBlock(_component_el_drawer, mergeProps({
11458
11456
  ref_key: "drawerRef",
11459
11457
  ref: drawerRef,
11460
- "model-value": _ctx.modelValue,
11461
- title: _ctx.title,
11458
+ "model-value": __props.modelValue,
11459
+ title: __props.title,
11462
11460
  width: props.width,
11463
- class: `${unref(BEMSpace)} ${props.customClass || ""} ${_ctx.noPaddingTop ? "no-padding-top" : ""}`
11461
+ class: `${unref(BEMSpace)} ${props.customClass || ""} ${__props.noPaddingTop ? "no-padding-top" : ""}`
11464
11462
  }, props.dialogProps || {}, toHandlers(props.dialogEvents || {}), { "onUpdate:modelValue": onUpdateModelValue }), createSlots({
11465
11463
  header: withCtx(() => [
11466
- createElementVNode("span", _hoisted_1$6, toDisplayString(_ctx.title), 1)
11464
+ createElementVNode("span", _hoisted_1$6, toDisplayString(__props.title), 1)
11467
11465
  ]),
11468
11466
  default: withCtx(() => [
11469
11467
  renderSlot(_ctx.$slots, "default")
@@ -11679,7 +11677,7 @@ const _sfc_main$9 = defineComponent({
11679
11677
  ref_key: "componentRef",
11680
11678
  ref: componentRef,
11681
11679
  props: componentConfig.value.props,
11682
- formManager: _ctx.formManager,
11680
+ formManager: __props.formManager,
11683
11681
  onHide: onFormClosed
11684
11682
  }, _ctx.$attrs), {
11685
11683
  bottom: withCtx(() => [
@@ -12634,7 +12632,7 @@ const _sfc_main$5 = defineComponent({
12634
12632
  ref: toolboxRef,
12635
12633
  class: "table-toolbox"
12636
12634
  }, [
12637
- _ctx.mode === "icon" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(showToolbox.value, (tool, index2) => {
12635
+ __props.mode === "icon" ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(showToolbox.value, (tool, index2) => {
12638
12636
  return openBlock(), createElementBlock("div", {
12639
12637
  class: "tool-item",
12640
12638
  key: index2,
@@ -13344,7 +13342,7 @@ const _sfc_main$4 = defineComponent({
13344
13342
  "with-tab": hasTabs.value,
13345
13343
  "with-search": isRenderForm.value,
13346
13344
  "with-selectable-buttons": showSelectableButtonsArea.value,
13347
- "with-shadow": _ctx.config.shadow
13345
+ "with-shadow": __props.config.shadow
13348
13346
  }
13349
13347
  ],
13350
13348
  style: { height: props.height }
@@ -13496,7 +13494,7 @@ const _sfc_main$4 = defineComponent({
13496
13494
  onClosed: unref(onColumnToolsSettingClosed),
13497
13495
  onSubmit: handleFormColumnToolsSubmit
13498
13496
  }, 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, {
13497
+ ((_b = (_a = __props.config.table) == null ? void 0 : _a.toolbox) == null ? void 0 : _b.includes("filter")) ? (openBlock(), createBlock(ColumnFilterTools, {
13500
13498
  key: 3,
13501
13499
  ref_key: "columnFilterToolsRef",
13502
13500
  ref: columnFilterToolsRef,
@@ -13504,7 +13502,7 @@ const _sfc_main$4 = defineComponent({
13504
13502
  onScreen: handleColumnFilterToolsScreen,
13505
13503
  onClosed: handleColumnFilterToolsClosed
13506
13504
  }, 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, {
13505
+ ((_d = (_c = __props.config.table) == null ? void 0 : _c.toolbox) == null ? void 0 : _d.includes("sort")) ? (openBlock(), createBlock(ColumnSortTools, {
13508
13506
  key: 4,
13509
13507
  ref_key: "columnSortToolsRef",
13510
13508
  ref: columnSortToolsRef,
@@ -13512,7 +13510,7 @@ const _sfc_main$4 = defineComponent({
13512
13510
  onScreen: handleColumnSortToolsScreen,
13513
13511
  onClosed: handleColumnSortToolsClosed
13514
13512
  }, 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, {
13513
+ ((_f = (_e = __props.config.table) == null ? void 0 : _e.toolbox) == null ? void 0 : _f.includes("line-clamp")) ? (openBlock(), createBlock(LineClampTools, {
13516
13514
  key: 5,
13517
13515
  ref_key: "lineClampToolsRef",
13518
13516
  ref: lineClampToolsRef,
@@ -14264,13 +14262,13 @@ const _sfc_main = defineComponent({
14264
14262
  const _component_el_popover = resolveComponent("el-popover");
14265
14263
  const _component_el_table = resolveComponent("el-table");
14266
14264
  return openBlock(), createElementBlock("div", {
14267
- class: normalizeClass(["editable-table", { border: _ctx.border }])
14265
+ class: normalizeClass(["editable-table", { border: __props.border }])
14268
14266
  }, [
14269
- _ctx.filterable ? (openBlock(), createElementBlock("div", _hoisted_1, [
14267
+ __props.filterable ? (openBlock(), createElementBlock("div", _hoisted_1, [
14270
14268
  createVNode(_component_el_input, {
14271
14269
  modelValue: filterKeywords.value,
14272
14270
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterKeywords.value = $event),
14273
- placeholder: _ctx.filterPlaceholder || "\u8BF7\u8F93\u5165"
14271
+ placeholder: __props.filterPlaceholder || "\u8BF7\u8F93\u5165"
14274
14272
  }, null, 8, ["modelValue", "placeholder"])
14275
14273
  ])) : createCommentVNode("", true),
14276
14274
  createVNode(_component_el_table, mergeProps({
@@ -14288,7 +14286,7 @@ const _sfc_main = defineComponent({
14288
14286
  onRowClick
14289
14287
  }), {
14290
14288
  default: withCtx(() => [
14291
- !_ctx.noAddable || !_ctx.noDelete ? (openBlock(), createBlock(_component_el_table_column, {
14289
+ !__props.noAddable || !__props.noDelete ? (openBlock(), createBlock(_component_el_table_column, {
14292
14290
  key: 0,
14293
14291
  fixed: "left",
14294
14292
  width: "70"
@@ -14302,7 +14300,7 @@ const _sfc_main = defineComponent({
14302
14300
  { current: currentEditRowIndex.value === $index }
14303
14301
  ])
14304
14302
  }, [
14305
- !_ctx.noAddable && !((_a = _ctx.isAddDisabled) == null ? void 0 : _a.call(_ctx, row, $index)) ? (openBlock(), createBlock(_component_el_icon, {
14303
+ !__props.noAddable && !((_a = __props.isAddDisabled) == null ? void 0 : _a.call(__props, row, $index)) ? (openBlock(), createBlock(_component_el_icon, {
14306
14304
  key: 0,
14307
14305
  class: "editable-table-icon plus-icon",
14308
14306
  title: "\u6DFB\u52A0\u81F3\u4E0B\u4E00\u884C",
@@ -14313,7 +14311,7 @@ const _sfc_main = defineComponent({
14313
14311
  ]),
14314
14312
  _: 1
14315
14313
  }, 8, ["onClick"])) : createCommentVNode("", true),
14316
- !_ctx.noDelete && !((_b = _ctx.isDeleteDisabled) == null ? void 0 : _b.call(_ctx, row, $index)) ? (openBlock(), createBlock(_component_el_icon, {
14314
+ !__props.noDelete && !((_b = __props.isDeleteDisabled) == null ? void 0 : _b.call(__props, row, $index)) ? (openBlock(), createBlock(_component_el_icon, {
14317
14315
  key: 1,
14318
14316
  class: "editable-table-icon remove-icon",
14319
14317
  title: "\u5220\u9664\u8BE5\u884C",
@@ -14375,7 +14373,7 @@ const _sfc_main = defineComponent({
14375
14373
  onKeyTab: ($event) => onInputKeyTabEvent(index2)
14376
14374
  }, {
14377
14375
  default: withCtx(() => [
14378
- column.renderFn && (_ctx.alwaysShowEdit || isCurrentRowFocus($index)) ? (openBlock(), createBlock(_sfc_main$z, {
14376
+ column.renderFn && (__props.alwaysShowEdit || isCurrentRowFocus($index)) ? (openBlock(), createBlock(_sfc_main$z, {
14379
14377
  key: 0,
14380
14378
  "render-fn": column.renderFn,
14381
14379
  pure: "",
@@ -14397,7 +14395,7 @@ const _sfc_main = defineComponent({
14397
14395
  _: 2
14398
14396
  }, 1040, ["label", "prop", "width", "fixed", "minWidth"]);
14399
14397
  }), 128)),
14400
- _ctx.showTools ? (openBlock(), createBlock(_component_el_table_column, {
14398
+ __props.showTools ? (openBlock(), createBlock(_component_el_table_column, {
14401
14399
  key: 1,
14402
14400
  width: "44",
14403
14401
  fixed: "right"
@@ -14451,7 +14449,7 @@ const defineEditableTable = function(config) {
14451
14449
  };
14452
14450
  var iconfont = "";
14453
14451
  const name = "@juzhenfe/page-model";
14454
- const version = "3.21.6";
14452
+ const version = "3.21.8";
14455
14453
  const types = "dist/main.d.ts";
14456
14454
  const main = "dist/index.umd.js";
14457
14455
  const keywords = [
@@ -14490,7 +14488,6 @@ const devDependencies = {
14490
14488
  typescript: "4.5.5",
14491
14489
  vite: "2.8.1",
14492
14490
  "vite-plugin-dts": "^1.0.5",
14493
- vue: "^3.2.30",
14494
14491
  "vue-router": "^4.0.13",
14495
14492
  xlsx: "^0.18.3",
14496
14493
  "xlsx-style": "^0.8.13"