mooho-base-admin-plus 2.5.7 → 2.5.9

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/history.md CHANGED
@@ -101,3 +101,5 @@ mooho-base-admin-plus@2.5.3 - excel导出上限改为100W,pdf上限改为1W
101
101
  mooho-base-admin-plus@2.5.4 - 输入框允许删除
102
102
  mooho-base-admin-plus@2.5.6 - 富文本编辑器地址可配置
103
103
  mooho-base-admin-plus@2.5.7 - 解决序号来不及加载的问题
104
+ mooho-base-admin-plus@2.5.8 - 表格只读时禁止选择
105
+ mooho-base-admin-plus@2.5.9 - 表格增加highlightRow属性和on-current-change事件
@@ -17121,7 +17121,7 @@ const login = /* @__PURE__ */ _export_sfc(_sfc_main$1u, [["render", _sfc_render$
17121
17121
  a < o.length - 1 && (o.splice(a, 1), o.splice(a + 1, 0, r), this.$refs.shortcutSetting.loadData(o));
17122
17122
  },
17123
17123
  // 拖动完成
17124
- dragDrop({ index1: r, index2: a }) {
17124
+ dragDrop(r, a) {
17125
17125
  if (r != a) {
17126
17126
  let o = this.$refs.shortcutSetting.data, s = o[r];
17127
17127
  o.splice(r, 1), o.splice(a, 0, s);
@@ -17273,7 +17273,7 @@ function _sfc_render$1t(r, a, o, s, l, u) {
17273
17273
  }, 8, ["onOnDragDrop"])
17274
17274
  ]);
17275
17275
  }
17276
- const shortcut = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1t], ["__scopeId", "data-v-e9f41ac9"]]), __vite_glob_1_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17276
+ const shortcut = /* @__PURE__ */ _export_sfc(_sfc_main$1t, [["render", _sfc_render$1t], ["__scopeId", "data-v-5e99cb1c"]]), __vite_glob_1_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
17277
17277
  __proto__: null,
17278
17278
  default: shortcut
17279
17279
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$1s = {
@@ -17766,8 +17766,7 @@ function _sfc_render$1p(r, a, o, s, l, u) {
17766
17766
  draggable: r.layout.draggable,
17767
17767
  sticky: !0,
17768
17768
  "reset-drag-position": !0,
17769
- width: 800,
17770
- styles: { top: "4vh" }
17769
+ width: 800
17771
17770
  }, {
17772
17771
  header: withCtx(() => [
17773
17772
  createElementVNode("div", null, [
@@ -17899,8 +17898,7 @@ function _sfc_render$1o(r, a, o, s, l, u) {
17899
17898
  draggable: r.layout.draggable,
17900
17899
  sticky: !0,
17901
17900
  "reset-drag-position": !0,
17902
- width: 800,
17903
- styles: { top: "4vh" }
17901
+ width: 800
17904
17902
  }, {
17905
17903
  header: withCtx(() => [
17906
17904
  createElementVNode("div", null, [
@@ -22419,8 +22417,7 @@ function _sfc_render$_(r, a, o, s, l, u) {
22419
22417
  draggable: r.layout.draggable,
22420
22418
  sticky: !0,
22421
22419
  "reset-drag-position": !0,
22422
- width: 800,
22423
- styles: { top: "4vh" }
22420
+ width: 800
22424
22421
  }, {
22425
22422
  header: withCtx(() => [
22426
22423
  createElementVNode("div", null, [
@@ -24107,7 +24104,7 @@ const filterEdit = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_ren
24107
24104
  a < o.length - 1 && (o.splice(a, 1), o.splice(a + 1, 0, r), this.$refs.table.loadData(o));
24108
24105
  },
24109
24106
  // 拖动完成
24110
- dragDrop({ index1: r, index2: a }) {
24107
+ dragDrop(r, a) {
24111
24108
  if (r != a) {
24112
24109
  let o = this.$refs.table.data, s = o[r];
24113
24110
  o.splice(r, 1), o.splice(a, 0, s);
@@ -25264,8 +25261,7 @@ function _sfc_render$P(r, a, o, s, l, u) {
25264
25261
  draggable: r.layout.draggable,
25265
25262
  sticky: !0,
25266
25263
  "reset-drag-position": !0,
25267
- width: 800,
25268
- styles: { top: "4vh" }
25264
+ width: 800
25269
25265
  }, {
25270
25266
  header: withCtx(() => [
25271
25267
  createElementVNode("div", null, [
@@ -35803,7 +35799,7 @@ const formSettingLayout = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _
35803
35799
  a < o.length - 1 && (o.splice(a, 1), o.splice(a + 1, 0, r), this.$refs.table.loadData(o));
35804
35800
  },
35805
35801
  // 拖动完成
35806
- dragDrop({ index1: r, index2: a }) {
35802
+ dragDrop(r, a) {
35807
35803
  if (r != a) {
35808
35804
  let o = this.$refs.table.data, s = o[r];
35809
35805
  o.splice(r, 1), o.splice(a, 0, s);
@@ -37386,6 +37382,13 @@ const modalForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_rend
37386
37382
  */
37387
37383
  rowClassName: {
37388
37384
  type: Function
37385
+ },
37386
+ /**
37387
+ * 是否支持高亮选中的行,即单选
37388
+ */
37389
+ highlightRow: {
37390
+ type: Boolean,
37391
+ default: !1
37389
37392
  }
37390
37393
  },
37391
37394
  computed: {
@@ -37530,10 +37533,6 @@ const modalForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_rend
37530
37533
  clear() {
37531
37534
  this.$refs.table.clear();
37532
37535
  },
37533
- // 拖拽完成
37534
- dragDrop(r) {
37535
- this.$emit("on-drag-drop", r);
37536
- },
37537
37536
  // 点击关闭按钮
37538
37537
  clickClose() {
37539
37538
  typeof this.beforeClose == "function" ? this.beforeClose().then(
@@ -37571,7 +37570,7 @@ function _sfc_render$r(r, a, o, s, l, u) {
37571
37570
  return openBlock(), createBlock(f, {
37572
37571
  ref: "modal",
37573
37572
  modelValue: l.opened,
37574
- "onUpdate:modelValue": a[4] || (a[4] = (p) => l.opened = p),
37573
+ "onUpdate:modelValue": a[6] || (a[6] = (p) => l.opened = p),
37575
37574
  scrollable: "",
37576
37575
  fullscreen: l.isFullscreen,
37577
37576
  "mask-closable": o.maskClosable == null ? r.layout.maskClosable : o.maskClosable,
@@ -37647,13 +37646,15 @@ function _sfc_render$r(r, a, o, s, l, u) {
37647
37646
  "span-method": o.spanMethod,
37648
37647
  "load-data-enable": o.loadDataEnable,
37649
37648
  "row-class-name": o.rowClassName,
37649
+ "highlight-row": o.highlightRow,
37650
37650
  onCreate: u.create,
37651
37651
  onEdit: u.edit,
37652
37652
  onShow: u.show,
37653
37653
  onOnReady: u.onReady,
37654
37654
  onOnLoadData: u.onLoadData,
37655
37655
  onAfterInit: u.afterInit,
37656
- onOnDragDrop: u.dragDrop
37656
+ onOnDragDrop: a[4] || (a[4] = (p, v) => this.$emit("on-drag-drop", p, v)),
37657
+ onOnCurrentChange: a[5] || (a[5] = (p, v) => r.$emit("on-current-change", p, v))
37657
37658
  }, {
37658
37659
  top: withCtx(() => [
37659
37660
  renderSlot(r.$slots, "top")
@@ -37699,7 +37700,7 @@ function _sfc_render$r(r, a, o, s, l, u) {
37699
37700
  })
37700
37701
  ]),
37701
37702
  _: 3
37702
- }, 8, ["view-code", "static", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "show-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "load-data-enable", "row-class-name", "onCreate", "onEdit", "onShow", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
37703
+ }, 8, ["view-code", "static", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "show-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "load-data-enable", "row-class-name", "highlight-row", "onCreate", "onEdit", "onShow", "onOnReady", "onOnLoadData", "onAfterInit"])
37703
37704
  ])
37704
37705
  ]),
37705
37706
  _: 3
@@ -38366,7 +38367,7 @@ const tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_re
38366
38367
  a < o.length - 1 && (o.splice(a, 1), o.splice(a + 1, 0, r), this.$refs.table.loadData(o));
38367
38368
  },
38368
38369
  // 拖动完成
38369
- dragDrop({ index1: r, index2: a }) {
38370
+ dragDrop(r, a) {
38370
38371
  if (r != a) {
38371
38372
  let o = this.$refs.table.data, s = o[r];
38372
38373
  o.splice(r, 1), o.splice(a, 0, s);
@@ -40281,6 +40282,13 @@ const _sfc_main$n = {
40281
40282
  */
40282
40283
  rowClassName: {
40283
40284
  type: Function
40285
+ },
40286
+ /**
40287
+ * 是否支持高亮选中的行,即单选
40288
+ */
40289
+ highlightRow: {
40290
+ type: Boolean,
40291
+ default: !1
40284
40292
  }
40285
40293
  },
40286
40294
  computed: {
@@ -40468,7 +40476,7 @@ const _sfc_main$n = {
40468
40476
  }) : this.selectedData = [];
40469
40477
  }
40470
40478
  this.data.forEach((a) => {
40471
- this.setShowStatus(a);
40479
+ this.setShowStatus(a), a._disabled = this.readonly;
40472
40480
  }), this.treeEnable && (this.data.forEach((a) => {
40473
40481
  (this.hasChildren == null || this.hasChildren(a)) && (a._loading = !1, a.children = []);
40474
40482
  }), this.data = this.copy(this.data)), this.initDataSource();
@@ -40927,10 +40935,6 @@ const _sfc_main$n = {
40927
40935
  }), a(o);
40928
40936
  }
40929
40937
  },
40930
- // 拖动事件
40931
- dragDrop(r, a) {
40932
- this.$emit("on-drag-drop", { index1: r, index2: a });
40933
- },
40934
40938
  // // 转换为日期类型
40935
40939
  // parseDateTime(value) {
40936
40940
  // if (value && typeof value === 'string') {
@@ -41347,10 +41351,12 @@ function _sfc_render$n(r, a, o, s, l, u) {
41347
41351
  "summary-method": o.summaryMethod,
41348
41352
  "page-size-opts": o.pageSizeOpts,
41349
41353
  "row-class-name": o.rowClassName,
41354
+ "highlight-row": o.highlightRow,
41350
41355
  onOnColumnWidthResize: u.columnWidthResize,
41351
41356
  onOnSortChange: u.sortChange,
41352
41357
  onOnSelectionChange: u.onSelectionChange,
41353
- onOnDragDrop: u.dragDrop
41358
+ onOnDragDrop: a[4] || (a[4] = (q, K) => this.$emit("on-drag-drop", q, K)),
41359
+ onOnCurrentChange: a[5] || (a[5] = (q, K) => r.$emit("on-current-change", q, K))
41354
41360
  }, {
41355
41361
  normal: withCtx(({ row: q, column: K, index: re }) => [
41356
41362
  u.isShow(u.rowData(q, re), K) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -41746,7 +41752,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41746
41752
  createElementVNode("div", null, toDisplayString$2(l.size * (l.current - 1) + q + 1), 1)
41747
41753
  ]),
41748
41754
  _: 3
41749
- }, 8, ["update-show-children", "columns", "data", "max-height", "load-data", "draggable", "span-method", "border", "show-summary", "summary-method", "page-size-opts", "row-class-name", "onOnColumnWidthResize", "onOnSortChange", "onOnSelectionChange", "onOnDragDrop"]),
41755
+ }, 8, ["update-show-children", "columns", "data", "max-height", "load-data", "draggable", "span-method", "border", "show-summary", "summary-method", "page-size-opts", "row-class-name", "highlight-row", "onOnColumnWidthResize", "onOnSortChange", "onOnSelectionChange"]),
41750
41756
  createElementVNode("div", _hoisted_10$1, [
41751
41757
  o.settingEnable && r.allow("permission/tableView") ? (openBlock(), createBlock(f, {
41752
41758
  key: 0,
@@ -41762,11 +41768,11 @@ function _sfc_render$n(r, a, o, s, l, u) {
41762
41768
  "show-total": "",
41763
41769
  "show-elevator": "",
41764
41770
  modelValue: l.current,
41765
- "onUpdate:modelValue": a[4] || (a[4] = (q) => l.current = q),
41771
+ "onUpdate:modelValue": a[6] || (a[6] = (q) => l.current = q),
41766
41772
  "page-size": l.size,
41767
41773
  "page-size-opts": o.pageSizeOpts == null ? [10, 20, 50, 100] : o.pageSizeOpts,
41768
41774
  total: l.total,
41769
- onOnChange: a[5] || (a[5] = (q) => u.loadData()),
41775
+ onOnChange: a[7] || (a[7] = (q) => u.loadData()),
41770
41776
  onOnPageSizeChange: u.pageSizeChange
41771
41777
  }, null, 8, ["modelValue", "page-size", "page-size-opts", "total", "onOnPageSizeChange"])) : createCommentVNode("", !0)
41772
41778
  ]),
@@ -41789,12 +41795,12 @@ function _sfc_render$n(r, a, o, s, l, u) {
41789
41795
  key: 1,
41790
41796
  ref: "tableSetting",
41791
41797
  "is-setting": !0,
41792
- onOnChange: a[6] || (a[6] = (q) => u.init(q))
41798
+ onOnChange: a[8] || (a[8] = (q) => u.init(q))
41793
41799
  }, null, 512)) : createCommentVNode("", !0),
41794
41800
  l.filterSettingActive ? (openBlock(), createBlock(W, {
41795
41801
  key: 2,
41796
41802
  ref: "filterSetting",
41797
- onOnChange: a[7] || (a[7] = (q) => u.init(q))
41803
+ onOnChange: a[9] || (a[9] = (q) => u.init(q))
41798
41804
  }, null, 512)) : createCommentVNode("", !0),
41799
41805
  l.itemSelectActive ? (openBlock(), createBlock(Q, {
41800
41806
  key: 3,
@@ -41804,13 +41810,13 @@ function _sfc_render$n(r, a, o, s, l, u) {
41804
41810
  l.inited ? (openBlock(), createBlock(L, {
41805
41811
  key: 4,
41806
41812
  ref: "modalTable",
41807
- onCreate: a[8] || (a[8] = (q) => r.$refs.modalForm.openDefault(l.commandButtonParams)),
41808
- onEdit: a[9] || (a[9] = ({ row: q, index: K }) => r.$refs.modalForm.open(q))
41813
+ onCreate: a[10] || (a[10] = (q) => r.$refs.modalForm.openDefault(l.commandButtonParams)),
41814
+ onEdit: a[11] || (a[11] = ({ row: q, index: K }) => r.$refs.modalForm.open(q))
41809
41815
  }, null, 512)) : createCommentVNode("", !0),
41810
41816
  l.inited ? (openBlock(), createBlock(ie, {
41811
41817
  key: 5,
41812
41818
  ref: "modalForm",
41813
- onOnAfterSave: a[10] || (a[10] = (q) => r.$refs.modalTable.loadData())
41819
+ onOnAfterSave: a[12] || (a[12] = (q) => r.$refs.modalTable.loadData())
41814
41820
  }, null, 512)) : createCommentVNode("", !0),
41815
41821
  l.inited ? (openBlock(), createBlock(L, {
41816
41822
  key: 6,
@@ -41823,7 +41829,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41823
41829
  createVNode$1(f, {
41824
41830
  type: "primary",
41825
41831
  "custom-icon": "fa fa-save",
41826
- onClick: a[11] || (a[11] = (q) => u.batchSave())
41832
+ onClick: a[13] || (a[13] = (q) => u.batchSave())
41827
41833
  }, {
41828
41834
  default: withCtx(() => [
41829
41835
  createTextVNode(toDisplayString$2(r.$t("Front_Btn_Save")), 1)
@@ -41833,7 +41839,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41833
41839
  createVNode$1(f, {
41834
41840
  type: "default",
41835
41841
  "custom-icon": "fa fa-times",
41836
- onClick: a[12] || (a[12] = (q) => r.$refs.batchEditTable.close())
41842
+ onClick: a[14] || (a[14] = (q) => r.$refs.batchEditTable.close())
41837
41843
  }, {
41838
41844
  default: withCtx(() => [
41839
41845
  createTextVNode(toDisplayString$2(r.$t("Front_Btn_Close")), 1)
@@ -41846,7 +41852,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41846
41852
  createVNode$1(fe, {
41847
41853
  title: r.$t("Front_Label_Preview"),
41848
41854
  modelValue: l.preview,
41849
- "onUpdate:modelValue": a[14] || (a[14] = (q) => l.preview = q),
41855
+ "onUpdate:modelValue": a[16] || (a[16] = (q) => l.preview = q),
41850
41856
  scrollable: "",
41851
41857
  "mask-closable": r.layout.maskClosable,
41852
41858
  draggable: r.layout.draggable,
@@ -41858,7 +41864,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41858
41864
  createVNode$1(f, {
41859
41865
  type: "default",
41860
41866
  "custom-icon": "fa fa-times",
41861
- onClick: a[13] || (a[13] = (q) => l.preview = !1)
41867
+ onClick: a[15] || (a[15] = (q) => l.preview = !1)
41862
41868
  }, {
41863
41869
  default: withCtx(() => [
41864
41870
  createTextVNode(toDisplayString$2(r.$t("Front_Btn_Close")), 1)
@@ -41886,7 +41892,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41886
41892
  ], 2)
41887
41893
  ], 2);
41888
41894
  }
41889
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-396457d8"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41895
+ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-e36cb0be"]]), __vite_glob_1_32 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
41890
41896
  __proto__: null,
41891
41897
  default: viewTable
41892
41898
  }, Symbol.toStringTag, { value: "Module" })), res$1 = "Task", taskApi = {