mooho-base-admin-plus 2.10.100 → 2.10.101

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
@@ -270,4 +270,5 @@ mooho-base-admin-plus@2.10.96 - 增加modal-table-excel组件
270
270
  mooho-base-admin-plus@2.10.97 - 选择框固定选项支持bool类型
271
271
  mooho-base-admin-plus@2.10.98 - 修复上一版本的bug
272
272
  mooho-base-admin-plus@2.10.99 - excel-table取消自动高度
273
- mooho-base-admin-plus@2.10.100 - 修复上一版本的bug
273
+ mooho-base-admin-plus@2.10.100 - 修复上一版本的bug
274
+ mooho-base-admin-plus@2.10.101 - 前端增加dateEditable配置
@@ -3897,7 +3897,9 @@ const Setting = {
3897
3897
  // 每页默认数量
3898
3898
  pageSize: 10,
3899
3899
  // 单击行即选中
3900
- clickRowChecked: !1
3900
+ clickRowChecked: !1,
3901
+ // 日期类控件是否可手动输入(false 时仅可通过选择器选择)
3902
+ dateEditable: !0
3901
3903
  },
3902
3904
  /**
3903
3905
  * 多页 Tabs
@@ -28205,23 +28207,25 @@ function _sfc_render$x(a, r, o, s, l, u) {
28205
28207
  type: B.controlType.toLowerCase(),
28206
28208
  "model-value": a.parseData(l.data, B.code),
28207
28209
  readonly: B.isReadonly,
28210
+ editable: a.layout.dateEditable !== !1,
28208
28211
  placeholder: B.description,
28209
28212
  transfer: !0,
28210
28213
  style: normalizeStyle$1({ width: B.controlWidth == null ? null : B.controlWidth + "px" }),
28211
28214
  onOnChange: (q) => {
28212
28215
  a.setData(l.data, B.code, q), u.onDataChange(B);
28213
28216
  }
28214
- }, null, 8, ["type", "model-value", "readonly", "placeholder", "style", "onOnChange"])) : B.controlType === "DateRange" ? (openBlock(), createBlock(C, {
28217
+ }, null, 8, ["type", "model-value", "readonly", "editable", "placeholder", "style", "onOnChange"])) : B.controlType === "DateRange" ? (openBlock(), createBlock(C, {
28215
28218
  key: 16,
28216
28219
  type: B.controlType.toLowerCase(),
28217
28220
  "model-value": a.parseDateRangeData(l.data, B.code),
28218
28221
  "onUpdate:modelValue": (q) => a.setArrayData(l.data, B.code, q),
28219
28222
  readonly: B.isReadonly,
28223
+ editable: a.layout.dateEditable !== !1,
28220
28224
  placeholder: B.description,
28221
28225
  transfer: !0,
28222
28226
  style: normalizeStyle$1({ width: B.controlWidth == null ? null : B.controlWidth + "px" }),
28223
28227
  onOnChange: (q) => u.onDataChange(B)
28224
- }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : B.controlType === "Time" ? (openBlock(), createBlock(w, {
28228
+ }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "editable", "placeholder", "style", "onOnChange"])) : B.controlType === "Time" ? (openBlock(), createBlock(w, {
28225
28229
  key: 17,
28226
28230
  type: "time",
28227
28231
  "model-value": a.parseData(l.data, B.code),
@@ -30835,13 +30839,14 @@ function _sfc_render$r(a, r, o, s, l, u) {
30835
30839
  size: "small",
30836
30840
  type: A.controlType.toLowerCase(),
30837
30841
  "model-value": u.parseFilterData(l.data, A),
30842
+ editable: a.layout.dateEditable !== !1,
30838
30843
  placeholder: A.description,
30839
30844
  transfer: !0,
30840
30845
  style: normalizeStyle$1({ width: A.controlWidth == null ? null : A.controlWidth + "px" }),
30841
30846
  onOnChange: (D) => {
30842
30847
  A.controlType === "DateRange" && D.length == 2 && D[0] == "" ? u.setFilterData(l.data, A, null) : u.setFilterData(l.data, A, D), u.onDataChange(A);
30843
30848
  }
30844
- }, null, 8, ["type", "model-value", "placeholder", "style", "onOnChange"])) : A.controlType === "Time" ? (openBlock(), createBlock(_, {
30849
+ }, null, 8, ["type", "model-value", "editable", "placeholder", "style", "onOnChange"])) : A.controlType === "Time" ? (openBlock(), createBlock(_, {
30845
30850
  key: 13,
30846
30851
  size: "small",
30847
30852
  type: "time",
@@ -32541,23 +32546,25 @@ function _sfc_render$p(a, r, o, s, l, u) {
32541
32546
  type: U.controlType.toLowerCase(),
32542
32547
  "model-value": a.parseDateTimeData(l.data, U.code),
32543
32548
  readonly: o.readonly || U.isReadonly,
32549
+ editable: a.layout.dateEditable !== !1,
32544
32550
  placeholder: U.description,
32545
32551
  transfer: !0,
32546
32552
  style: normalizeStyle$1({ width: U.controlWidth == null ? null : U.controlWidth + "px" }),
32547
32553
  onOnChange: (oe) => {
32548
32554
  a.setData(l.data, U.code, oe), u.onDataChange(U);
32549
32555
  }
32550
- }, null, 8, ["type", "model-value", "readonly", "placeholder", "style", "onOnChange"])) : U.controlType === "DateRange" ? (openBlock(), createBlock(T, {
32556
+ }, null, 8, ["type", "model-value", "readonly", "editable", "placeholder", "style", "onOnChange"])) : U.controlType === "DateRange" ? (openBlock(), createBlock(T, {
32551
32557
  key: 18,
32552
32558
  type: U.controlType.toLowerCase(),
32553
32559
  "model-value": a.parseDateRangeData(l.data, U.code),
32554
32560
  "onUpdate:modelValue": (oe) => a.setArrayData(l.data, U.code, oe),
32555
32561
  readonly: o.readonly || U.isReadonly,
32562
+ editable: a.layout.dateEditable !== !1,
32556
32563
  placeholder: U.description,
32557
32564
  transfer: !0,
32558
32565
  style: normalizeStyle$1({ width: U.controlWidth == null ? null : U.controlWidth + "px" }),
32559
32566
  onOnChange: (oe) => u.onDataChange(U)
32560
- }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : U.controlType === "Time" ? (openBlock(), createBlock(E, {
32567
+ }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "editable", "placeholder", "style", "onOnChange"])) : U.controlType === "Time" ? (openBlock(), createBlock(E, {
32561
32568
  key: 19,
32562
32569
  type: "time",
32563
32570
  "model-value": a.parseData(l.data, U.code),
@@ -96936,6 +96943,7 @@ function _sfc_render$n(a, r, o, s, l, u) {
96936
96943
  type: te.controlType.toLowerCase(),
96937
96944
  "model-value": a.parseDateTimeData(u.rowData(ue, ae), te.code),
96938
96945
  readonly: u.isReadonly(u.rowData(ue, ae), te),
96946
+ editable: a.layout.dateEditable !== !1,
96939
96947
  placeholder: te.description,
96940
96948
  style: normalizeStyle$1({ width: te.controlWidth == null ? null : te.controlWidth - 8 + "px" }),
96941
96949
  transfer: !0,
@@ -96944,20 +96952,21 @@ function _sfc_render$n(a, r, o, s, l, u) {
96944
96952
  },
96945
96953
  onClick: r[13] || (r[13] = withModifiers(() => {
96946
96954
  }, ["stop"]))
96947
- }, null, 8, ["type", "model-value", "readonly", "placeholder", "style", "onOnChange"])) : te.controlType === "DateRange" ? (openBlock(), createBlock(x, {
96955
+ }, null, 8, ["type", "model-value", "readonly", "editable", "placeholder", "style", "onOnChange"])) : te.controlType === "DateRange" ? (openBlock(), createBlock(x, {
96948
96956
  key: 14,
96949
96957
  size: "small",
96950
96958
  type: te.controlType.toLowerCase(),
96951
96959
  "model-value": a.parseDateRangeData(u.rowData(ue, ae), te.code),
96952
96960
  "onUpdate:modelValue": (V) => a.setArrayData(u.rowData(ue, ae), te.code, V),
96953
96961
  readonly: u.isReadonly(u.rowData(ue, ae), te),
96962
+ editable: a.layout.dateEditable !== !1,
96954
96963
  placeholder: te.description,
96955
96964
  style: normalizeStyle$1({ width: te.controlWidth == null ? null : te.controlWidth - 8 + "px" }),
96956
96965
  transfer: !0,
96957
96966
  onOnChange: (V) => u.onDataChange(u.rowData(ue, ae), te),
96958
96967
  onClick: r[14] || (r[14] = withModifiers(() => {
96959
96968
  }, ["stop"]))
96960
- }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : te.controlType === "Time" ? (openBlock(), createBlock(D, {
96969
+ }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "editable", "placeholder", "style", "onOnChange"])) : te.controlType === "Time" ? (openBlock(), createBlock(D, {
96961
96970
  key: 15,
96962
96971
  size: "small",
96963
96972
  type: "time",
@@ -97295,7 +97304,7 @@ function _sfc_render$n(a, r, o, s, l, u) {
97295
97304
  ], 2)
97296
97305
  ], 2);
97297
97306
  }
97298
- const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-008a40bc"]]), __vite_glob_1_34 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
97307
+ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-21b080b0"]]), __vite_glob_1_34 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
97299
97308
  __proto__: null,
97300
97309
  default: viewTable
97301
97310
  }, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {