m-eleplus-crud 0.0.8 → 0.0.10

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.
@@ -11920,14 +11920,21 @@
11920
11920
  };
11921
11921
  const search = (page = 1) => {
11922
11922
  var _a;
11923
- (_a = formRef.value) == null ? void 0 : _a.validate((valid) => {
11924
- if (valid) {
11925
- if (proxys.page) {
11926
- proxys.page = page;
11923
+ if (searchOption.value.column && searchOption.value.column.length) {
11924
+ (_a = formRef.value) == null ? void 0 : _a.validate((valid) => {
11925
+ if (valid) {
11926
+ if (proxys.page) {
11927
+ proxys.page = page;
11928
+ }
11929
+ emit("search", proxys);
11927
11930
  }
11928
- emit("search", proxys);
11931
+ });
11932
+ } else {
11933
+ if (proxys.page) {
11934
+ proxys.page = page;
11929
11935
  }
11930
- });
11936
+ emit("search", proxys);
11937
+ }
11931
11938
  };
11932
11939
  const reset = () => {
11933
11940
  var _a;
@@ -18428,13 +18435,14 @@
18428
18435
  key: 0,
18429
18436
  width: tableOption.value.menuWidth,
18430
18437
  label: tableOption.value.menuTitle || vue.unref(t)("m.table.menuTitle"),
18431
- align: "center"
18438
+ align: "center",
18439
+ fixed: tableOption.value.menuFixed
18432
18440
  }, {
18433
18441
  default: vue.withCtx((scope) => [
18434
18442
  vue.unref(slots).menu ? vue.renderSlot(_ctx.$slots, "menu", vue.normalizeProps(vue.mergeProps({ key: 0 }, scope))) : vue.createCommentVNode("v-if", true)
18435
18443
  ]),
18436
18444
  _: 3
18437
- }, 8, ["width", "label"])) : vue.createCommentVNode("v-if", true)
18445
+ }, 8, ["width", "label", "fixed"])) : vue.createCommentVNode("v-if", true)
18438
18446
  ]),
18439
18447
  _: 3
18440
18448
  }, 8, ["size", "data", "height", "max-height", "border", "stripe", "row-key"])), [