m-eleplus-crud 0.0.9 → 0.0.11

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.
@@ -11991,6 +11991,12 @@
11991
11991
  }
11992
11992
  }
11993
11993
  };
11994
+ const wrapSelectData = (arr) => {
11995
+ if (!arr) {
11996
+ return [];
11997
+ }
11998
+ return [{ label: "\u5168\u90E8", value: "" }, ...arr];
11999
+ };
11994
12000
  vue.watch(
11995
12001
  () => props.option,
11996
12002
  (newVal) => {
@@ -12109,7 +12115,7 @@
12109
12115
  (vue.openBlock(true), vue.createElementBlock(
12110
12116
  vue.Fragment,
12111
12117
  null,
12112
- vue.renderList(column.dicData || [], (dicItem, dicIndex) => {
12118
+ vue.renderList(wrapSelectData(column.dicData), (dicItem, dicIndex) => {
12113
12119
  return vue.openBlock(), vue.createBlock(_component_el_option, {
12114
12120
  key: dicIndex,
12115
12121
  label: dicItem.label,
@@ -18435,13 +18441,14 @@
18435
18441
  key: 0,
18436
18442
  width: tableOption.value.menuWidth,
18437
18443
  label: tableOption.value.menuTitle || vue.unref(t)("m.table.menuTitle"),
18438
- align: "center"
18444
+ align: "center",
18445
+ fixed: tableOption.value.menuFixed
18439
18446
  }, {
18440
18447
  default: vue.withCtx((scope) => [
18441
18448
  vue.unref(slots).menu ? vue.renderSlot(_ctx.$slots, "menu", vue.normalizeProps(vue.mergeProps({ key: 0 }, scope))) : vue.createCommentVNode("v-if", true)
18442
18449
  ]),
18443
18450
  _: 3
18444
- }, 8, ["width", "label"])) : vue.createCommentVNode("v-if", true)
18451
+ }, 8, ["width", "label", "fixed"])) : vue.createCommentVNode("v-if", true)
18445
18452
  ]),
18446
18453
  _: 3
18447
18454
  }, 8, ["size", "data", "height", "max-height", "border", "stripe", "row-key"])), [