mooho-base-admin-plus 2.5.8 → 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
@@ -102,3 +102,4 @@ 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
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 = {
@@ -24104,7 +24104,7 @@ const filterEdit = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_ren
24104
24104
  a < o.length - 1 && (o.splice(a, 1), o.splice(a + 1, 0, r), this.$refs.table.loadData(o));
24105
24105
  },
24106
24106
  // 拖动完成
24107
- dragDrop({ index1: r, index2: a }) {
24107
+ dragDrop(r, a) {
24108
24108
  if (r != a) {
24109
24109
  let o = this.$refs.table.data, s = o[r];
24110
24110
  o.splice(r, 1), o.splice(a, 0, s);
@@ -35799,7 +35799,7 @@ const formSettingLayout = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["render", _
35799
35799
  a < o.length - 1 && (o.splice(a, 1), o.splice(a + 1, 0, r), this.$refs.table.loadData(o));
35800
35800
  },
35801
35801
  // 拖动完成
35802
- dragDrop({ index1: r, index2: a }) {
35802
+ dragDrop(r, a) {
35803
35803
  if (r != a) {
35804
35804
  let o = this.$refs.table.data, s = o[r];
35805
35805
  o.splice(r, 1), o.splice(a, 0, s);
@@ -37382,6 +37382,13 @@ const modalForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_rend
37382
37382
  */
37383
37383
  rowClassName: {
37384
37384
  type: Function
37385
+ },
37386
+ /**
37387
+ * 是否支持高亮选中的行,即单选
37388
+ */
37389
+ highlightRow: {
37390
+ type: Boolean,
37391
+ default: !1
37385
37392
  }
37386
37393
  },
37387
37394
  computed: {
@@ -37526,10 +37533,6 @@ const modalForm = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_rend
37526
37533
  clear() {
37527
37534
  this.$refs.table.clear();
37528
37535
  },
37529
- // 拖拽完成
37530
- dragDrop(r) {
37531
- this.$emit("on-drag-drop", r);
37532
- },
37533
37536
  // 点击关闭按钮
37534
37537
  clickClose() {
37535
37538
  typeof this.beforeClose == "function" ? this.beforeClose().then(
@@ -37567,7 +37570,7 @@ function _sfc_render$r(r, a, o, s, l, u) {
37567
37570
  return openBlock(), createBlock(f, {
37568
37571
  ref: "modal",
37569
37572
  modelValue: l.opened,
37570
- "onUpdate:modelValue": a[4] || (a[4] = (p) => l.opened = p),
37573
+ "onUpdate:modelValue": a[6] || (a[6] = (p) => l.opened = p),
37571
37574
  scrollable: "",
37572
37575
  fullscreen: l.isFullscreen,
37573
37576
  "mask-closable": o.maskClosable == null ? r.layout.maskClosable : o.maskClosable,
@@ -37643,13 +37646,15 @@ function _sfc_render$r(r, a, o, s, l, u) {
37643
37646
  "span-method": o.spanMethod,
37644
37647
  "load-data-enable": o.loadDataEnable,
37645
37648
  "row-class-name": o.rowClassName,
37649
+ "highlight-row": o.highlightRow,
37646
37650
  onCreate: u.create,
37647
37651
  onEdit: u.edit,
37648
37652
  onShow: u.show,
37649
37653
  onOnReady: u.onReady,
37650
37654
  onOnLoadData: u.onLoadData,
37651
37655
  onAfterInit: u.afterInit,
37652
- 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))
37653
37658
  }, {
37654
37659
  top: withCtx(() => [
37655
37660
  renderSlot(r.$slots, "top")
@@ -37695,7 +37700,7 @@ function _sfc_render$r(r, a, o, s, l, u) {
37695
37700
  })
37696
37701
  ]),
37697
37702
  _: 3
37698
- }, 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"])
37699
37704
  ])
37700
37705
  ]),
37701
37706
  _: 3
@@ -38362,7 +38367,7 @@ const tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_re
38362
38367
  a < o.length - 1 && (o.splice(a, 1), o.splice(a + 1, 0, r), this.$refs.table.loadData(o));
38363
38368
  },
38364
38369
  // 拖动完成
38365
- dragDrop({ index1: r, index2: a }) {
38370
+ dragDrop(r, a) {
38366
38371
  if (r != a) {
38367
38372
  let o = this.$refs.table.data, s = o[r];
38368
38373
  o.splice(r, 1), o.splice(a, 0, s);
@@ -40277,6 +40282,13 @@ const _sfc_main$n = {
40277
40282
  */
40278
40283
  rowClassName: {
40279
40284
  type: Function
40285
+ },
40286
+ /**
40287
+ * 是否支持高亮选中的行,即单选
40288
+ */
40289
+ highlightRow: {
40290
+ type: Boolean,
40291
+ default: !1
40280
40292
  }
40281
40293
  },
40282
40294
  computed: {
@@ -40923,10 +40935,6 @@ const _sfc_main$n = {
40923
40935
  }), a(o);
40924
40936
  }
40925
40937
  },
40926
- // 拖动事件
40927
- dragDrop(r, a) {
40928
- this.$emit("on-drag-drop", { index1: r, index2: a });
40929
- },
40930
40938
  // // 转换为日期类型
40931
40939
  // parseDateTime(value) {
40932
40940
  // if (value && typeof value === 'string') {
@@ -41343,10 +41351,12 @@ function _sfc_render$n(r, a, o, s, l, u) {
41343
41351
  "summary-method": o.summaryMethod,
41344
41352
  "page-size-opts": o.pageSizeOpts,
41345
41353
  "row-class-name": o.rowClassName,
41354
+ "highlight-row": o.highlightRow,
41346
41355
  onOnColumnWidthResize: u.columnWidthResize,
41347
41356
  onOnSortChange: u.sortChange,
41348
41357
  onOnSelectionChange: u.onSelectionChange,
41349
- 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))
41350
41360
  }, {
41351
41361
  normal: withCtx(({ row: q, column: K, index: re }) => [
41352
41362
  u.isShow(u.rowData(q, re), K) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -41742,7 +41752,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41742
41752
  createElementVNode("div", null, toDisplayString$2(l.size * (l.current - 1) + q + 1), 1)
41743
41753
  ]),
41744
41754
  _: 3
41745
- }, 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"]),
41746
41756
  createElementVNode("div", _hoisted_10$1, [
41747
41757
  o.settingEnable && r.allow("permission/tableView") ? (openBlock(), createBlock(f, {
41748
41758
  key: 0,
@@ -41758,11 +41768,11 @@ function _sfc_render$n(r, a, o, s, l, u) {
41758
41768
  "show-total": "",
41759
41769
  "show-elevator": "",
41760
41770
  modelValue: l.current,
41761
- "onUpdate:modelValue": a[4] || (a[4] = (q) => l.current = q),
41771
+ "onUpdate:modelValue": a[6] || (a[6] = (q) => l.current = q),
41762
41772
  "page-size": l.size,
41763
41773
  "page-size-opts": o.pageSizeOpts == null ? [10, 20, 50, 100] : o.pageSizeOpts,
41764
41774
  total: l.total,
41765
- onOnChange: a[5] || (a[5] = (q) => u.loadData()),
41775
+ onOnChange: a[7] || (a[7] = (q) => u.loadData()),
41766
41776
  onOnPageSizeChange: u.pageSizeChange
41767
41777
  }, null, 8, ["modelValue", "page-size", "page-size-opts", "total", "onOnPageSizeChange"])) : createCommentVNode("", !0)
41768
41778
  ]),
@@ -41785,12 +41795,12 @@ function _sfc_render$n(r, a, o, s, l, u) {
41785
41795
  key: 1,
41786
41796
  ref: "tableSetting",
41787
41797
  "is-setting": !0,
41788
- onOnChange: a[6] || (a[6] = (q) => u.init(q))
41798
+ onOnChange: a[8] || (a[8] = (q) => u.init(q))
41789
41799
  }, null, 512)) : createCommentVNode("", !0),
41790
41800
  l.filterSettingActive ? (openBlock(), createBlock(W, {
41791
41801
  key: 2,
41792
41802
  ref: "filterSetting",
41793
- onOnChange: a[7] || (a[7] = (q) => u.init(q))
41803
+ onOnChange: a[9] || (a[9] = (q) => u.init(q))
41794
41804
  }, null, 512)) : createCommentVNode("", !0),
41795
41805
  l.itemSelectActive ? (openBlock(), createBlock(Q, {
41796
41806
  key: 3,
@@ -41800,13 +41810,13 @@ function _sfc_render$n(r, a, o, s, l, u) {
41800
41810
  l.inited ? (openBlock(), createBlock(L, {
41801
41811
  key: 4,
41802
41812
  ref: "modalTable",
41803
- onCreate: a[8] || (a[8] = (q) => r.$refs.modalForm.openDefault(l.commandButtonParams)),
41804
- 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))
41805
41815
  }, null, 512)) : createCommentVNode("", !0),
41806
41816
  l.inited ? (openBlock(), createBlock(ie, {
41807
41817
  key: 5,
41808
41818
  ref: "modalForm",
41809
- onOnAfterSave: a[10] || (a[10] = (q) => r.$refs.modalTable.loadData())
41819
+ onOnAfterSave: a[12] || (a[12] = (q) => r.$refs.modalTable.loadData())
41810
41820
  }, null, 512)) : createCommentVNode("", !0),
41811
41821
  l.inited ? (openBlock(), createBlock(L, {
41812
41822
  key: 6,
@@ -41819,7 +41829,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41819
41829
  createVNode$1(f, {
41820
41830
  type: "primary",
41821
41831
  "custom-icon": "fa fa-save",
41822
- onClick: a[11] || (a[11] = (q) => u.batchSave())
41832
+ onClick: a[13] || (a[13] = (q) => u.batchSave())
41823
41833
  }, {
41824
41834
  default: withCtx(() => [
41825
41835
  createTextVNode(toDisplayString$2(r.$t("Front_Btn_Save")), 1)
@@ -41829,7 +41839,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41829
41839
  createVNode$1(f, {
41830
41840
  type: "default",
41831
41841
  "custom-icon": "fa fa-times",
41832
- onClick: a[12] || (a[12] = (q) => r.$refs.batchEditTable.close())
41842
+ onClick: a[14] || (a[14] = (q) => r.$refs.batchEditTable.close())
41833
41843
  }, {
41834
41844
  default: withCtx(() => [
41835
41845
  createTextVNode(toDisplayString$2(r.$t("Front_Btn_Close")), 1)
@@ -41842,7 +41852,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41842
41852
  createVNode$1(fe, {
41843
41853
  title: r.$t("Front_Label_Preview"),
41844
41854
  modelValue: l.preview,
41845
- "onUpdate:modelValue": a[14] || (a[14] = (q) => l.preview = q),
41855
+ "onUpdate:modelValue": a[16] || (a[16] = (q) => l.preview = q),
41846
41856
  scrollable: "",
41847
41857
  "mask-closable": r.layout.maskClosable,
41848
41858
  draggable: r.layout.draggable,
@@ -41854,7 +41864,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41854
41864
  createVNode$1(f, {
41855
41865
  type: "default",
41856
41866
  "custom-icon": "fa fa-times",
41857
- onClick: a[13] || (a[13] = (q) => l.preview = !1)
41867
+ onClick: a[15] || (a[15] = (q) => l.preview = !1)
41858
41868
  }, {
41859
41869
  default: withCtx(() => [
41860
41870
  createTextVNode(toDisplayString$2(r.$t("Front_Btn_Close")), 1)
@@ -41882,7 +41892,7 @@ function _sfc_render$n(r, a, o, s, l, u) {
41882
41892
  ], 2)
41883
41893
  ], 2);
41884
41894
  }
41885
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-3030ebb1"]]), __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({
41886
41896
  __proto__: null,
41887
41897
  default: viewTable
41888
41898
  }, Symbol.toStringTag, { value: "Module" })), res$1 = "Task", taskApi = {