lew-ui 2.6.8 → 2.6.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.
@@ -12,8 +12,8 @@ declare function __VLS_template(): Partial<Record<any, (_: {
12
12
  index: number;
13
13
  }) => any>> & {
14
14
  "table-header"?(_: {}): any;
15
- "table-footer"?(_: {}): any;
16
15
  empty?(_: {}): any;
16
+ "table-footer"?(_: {}): any;
17
17
  };
18
18
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
19
19
  selectedKeys: import('vue').PropType<any>;
package/dist/index.mjs CHANGED
@@ -13661,7 +13661,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
13661
13661
  };
13662
13662
  }
13663
13663
  });
13664
- const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-c2a62db1"]]);
13664
+ const LewRadio = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-aa830ef3"]]);
13665
13665
  const _sfc_main$C = /* @__PURE__ */ defineComponent({
13666
13666
  __name: "LewRadioGroup",
13667
13667
  props: /* @__PURE__ */ mergeModels(radioGroupProps, {
@@ -15103,9 +15103,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15103
15103
  () => props2.options,
15104
15104
  () => {
15105
15105
  var _a;
15106
- state.keyword = (_a = props2.options.find(
15107
- (e) => e.value === selectValue.value
15108
- )) == null ? void 0 : _a.label;
15106
+ state.keyword = (_a = props2.options.find((e) => e.value === selectValue.value)) == null ? void 0 : _a.label;
15109
15107
  },
15110
15108
  {
15111
15109
  deep: true
@@ -15287,9 +15285,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15287
15285
  if (props2.searchable) {
15288
15286
  search({ target: { value: "" } });
15289
15287
  }
15290
- const index2 = state.options.findIndex(
15291
- (e) => e.value === selectValue.value
15292
- );
15288
+ const index2 = state.options.findIndex((e) => e.value === selectValue.value);
15293
15289
  if (index2 > -1) {
15294
15290
  poll({
15295
15291
  callback: () => {
@@ -15470,7 +15466,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15470
15466
  };
15471
15467
  }
15472
15468
  });
15473
- const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-7a30a8b8"]]);
15469
+ const LewSelect = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-161b8f0d"]]);
15474
15470
  const selectMultipleModel = {
15475
15471
  modelValue: {
15476
15472
  type: Array,
@@ -16613,7 +16609,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16613
16609
  };
16614
16610
  }
16615
16611
  });
16616
- const LewDate = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-76ca625a"]]);
16612
+ const LewDate = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-caa9240e"]]);
16617
16613
  const _hoisted_1$r = { class: "lew-date-picker-view" };
16618
16614
  const _hoisted_2$e = ["onClick"];
16619
16615
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
@@ -16804,7 +16800,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
16804
16800
  };
16805
16801
  }
16806
16802
  });
16807
- const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-76499cb8"]]);
16803
+ const LewDatePicker = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-d8485a76"]]);
16808
16804
  const dateRangePickerModel = {
16809
16805
  modelValue: {
16810
16806
  type: Object,
@@ -16934,7 +16930,7 @@ const _hoisted_10$1 = { class: "lew-date" };
16934
16930
  const _hoisted_11$1 = { class: "lew-date-control-left" };
16935
16931
  const _hoisted_12$1 = { class: "cur-date" };
16936
16932
  const _hoisted_13$1 = { class: "lew-date-control-right" };
16937
- const _hoisted_14 = { class: "lew-date-box" };
16933
+ const _hoisted_14$1 = { class: "lew-date-box" };
16938
16934
  const _hoisted_15 = { class: "lew-date-num" };
16939
16935
  const _hoisted_16 = ["onClick", "onMouseenter"];
16940
16936
  const _hoisted_17 = {
@@ -17359,7 +17355,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17359
17355
  ]),
17360
17356
  _: 1
17361
17357
  }),
17362
- createElementVNode("div", _hoisted_14, [
17358
+ createElementVNode("div", _hoisted_14$1, [
17363
17359
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(headDate), (item, index2) => {
17364
17360
  return openBlock(), createElementBlock("div", {
17365
17361
  key: `h${index2}`,
@@ -17391,7 +17387,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17391
17387
  };
17392
17388
  }
17393
17389
  });
17394
- const LewDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-ae73681c"]]);
17390
+ const LewDateRange = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-a4b5c316"]]);
17395
17391
  const _hoisted_1$p = { class: "lew-date-range-picker-view" };
17396
17392
  const _hoisted_2$c = {
17397
17393
  key: 0,
@@ -17561,7 +17557,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
17561
17557
  };
17562
17558
  }
17563
17559
  });
17564
- const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-f92cbfbb"]]);
17560
+ const LewDateRangePicker = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-2df69772"]]);
17565
17561
  const cascaderModel = {
17566
17562
  modelValue: {
17567
17563
  type: [String, Number],
@@ -21520,18 +21516,22 @@ const _hoisted_4$4 = { class: "lew-table-main" };
21520
21516
  const _hoisted_5$2 = { class: "lew-table-tr" };
21521
21517
  const _hoisted_6$1 = { class: "lew-table-tr" };
21522
21518
  const _hoisted_7 = {
21519
+ key: 0,
21520
+ class: "lew-table-empty"
21521
+ };
21522
+ const _hoisted_8 = {
21523
21523
  key: 0,
21524
21524
  class: "lew-table-fixed-left"
21525
21525
  };
21526
- const _hoisted_8 = ["onClick", "onMouseenter"];
21527
- const _hoisted_9 = { class: "lew-table-main" };
21528
- const _hoisted_10 = ["onClick", "onMouseenter"];
21529
- const _hoisted_11 = {
21526
+ const _hoisted_9 = ["onClick", "onMouseenter"];
21527
+ const _hoisted_10 = { class: "lew-table-main" };
21528
+ const _hoisted_11 = ["onClick", "onMouseenter"];
21529
+ const _hoisted_12 = {
21530
21530
  key: 1,
21531
21531
  class: "lew-table-fixed-right"
21532
21532
  };
21533
- const _hoisted_12 = ["onMouseenter"];
21534
- const _hoisted_13 = { class: "lew-table-footer" };
21533
+ const _hoisted_13 = ["onMouseenter"];
21534
+ const _hoisted_14 = { class: "lew-table-footer" };
21535
21535
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
21536
21536
  __name: "LewTable",
21537
21537
  props: /* @__PURE__ */ mergeModels(tableProps, {
@@ -22086,12 +22086,25 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22086
22086
  ])
22087
22087
  ], 512)) : createCommentVNode("", true)
22088
22088
  ], 38),
22089
+ _ctx.dataSource.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_7, [
22090
+ _ctx.$slots.empty ? renderSlot(_ctx.$slots, "empty", { key: 0 }) : (openBlock(), createBlock(unref(LewFlex), {
22091
+ key: 1,
22092
+ x: "center",
22093
+ y: "center",
22094
+ style: normalizeStyle({ padding: unref(getEmptyPadding) + "px" })
22095
+ }, {
22096
+ default: withCtx(() => [
22097
+ createVNode(unref(_sfc_main$2), normalizeProps(guardReactiveProps(unref(getEmptyProps))), null, 16)
22098
+ ]),
22099
+ _: 1
22100
+ }, 8, ["style"]))
22101
+ ])) : createCommentVNode("", true),
22089
22102
  _ctx.dataSource.length > 0 ? (openBlock(), createElementBlock("div", {
22090
- key: 0,
22103
+ key: 1,
22091
22104
  class: "lew-table-body",
22092
22105
  style: normalizeStyle(`width: ${unref(totalColumnWidth)}px`)
22093
22106
  }, [
22094
- unref(getFixedColumns)("left").length > 0 || _ctx.checkable ? (openBlock(), createElementBlock("div", _hoisted_7, [
22107
+ unref(getFixedColumns)("left").length > 0 || _ctx.checkable ? (openBlock(), createElementBlock("div", _hoisted_8, [
22095
22108
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataSource, (row, i) => {
22096
22109
  return openBlock(), createElementBlock("div", {
22097
22110
  key: `data${i}`,
@@ -22144,10 +22157,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22144
22157
  _: 2
22145
22158
  }, 1032, ["x", "y", "style"]);
22146
22159
  }), 128))
22147
- ], 46, _hoisted_8);
22160
+ ], 46, _hoisted_9);
22148
22161
  }), 128))
22149
22162
  ])) : createCommentVNode("", true),
22150
- createElementVNode("div", _hoisted_9, [
22163
+ createElementVNode("div", _hoisted_10, [
22151
22164
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataSource, (row, i) => {
22152
22165
  return openBlock(), createElementBlock("div", {
22153
22166
  key: `data${i}`,
@@ -22184,10 +22197,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22184
22197
  _: 2
22185
22198
  }, 1032, ["x", "y", "style"]);
22186
22199
  }), 128))
22187
- ], 42, _hoisted_10);
22200
+ ], 42, _hoisted_11);
22188
22201
  }), 128))
22189
22202
  ]),
22190
- unref(getFixedColumns)("right").length > 0 ? (openBlock(), createElementBlock("div", _hoisted_11, [
22203
+ unref(getFixedColumns)("right").length > 0 ? (openBlock(), createElementBlock("div", _hoisted_12, [
22191
22204
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.dataSource, (row, i) => {
22192
22205
  return openBlock(), createElementBlock("div", {
22193
22206
  key: `data${i}`,
@@ -22224,27 +22237,14 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
22224
22237
  _: 2
22225
22238
  }, 1032, ["x", "y", "style"]);
22226
22239
  }), 128))
22227
- ], 46, _hoisted_12);
22240
+ ], 46, _hoisted_13);
22228
22241
  }), 128))
22229
22242
  ])) : createCommentVNode("", true)
22230
22243
  ], 4)) : createCommentVNode("", true)
22231
22244
  ], 38),
22232
- createElementVNode("div", _hoisted_13, [
22245
+ createElementVNode("div", _hoisted_14, [
22233
22246
  renderSlot(_ctx.$slots, "table-footer")
22234
- ]),
22235
- _ctx.dataSource.length === 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22236
- _ctx.$slots.empty ? renderSlot(_ctx.$slots, "empty", { key: 0 }) : (openBlock(), createBlock(unref(LewFlex), {
22237
- key: 1,
22238
- x: "center",
22239
- y: "center",
22240
- style: normalizeStyle({ padding: unref(getEmptyPadding) + "px" })
22241
- }, {
22242
- default: withCtx(() => [
22243
- createVNode(unref(_sfc_main$2), normalizeProps(guardReactiveProps(unref(getEmptyProps))), null, 16)
22244
- ]),
22245
- _: 1
22246
- }, 8, ["style"]))
22247
- ], 64)) : createCommentVNode("", true)
22247
+ ])
22248
22248
  ]);
22249
22249
  };
22250
22250
  }
@@ -23083,7 +23083,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
23083
23083
  };
23084
23084
  }
23085
23085
  });
23086
- const LewTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-cd045d8b"]]);
23086
+ const LewTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__scopeId", "data-v-f70f4ff1"]]);
23087
23087
  const _hoisted_1$a = {
23088
23088
  key: 0,
23089
23089
  class: "lew-result-count"
@@ -25873,7 +25873,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25873
25873
  };
25874
25874
  }
25875
25875
  });
25876
- const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-3d59a17d"]]);
25876
+ const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-daf25428"]]);
25877
25877
  const initLewHoverMenu = () => {
25878
25878
  window.LewHoverMenu = {
25879
25879
  menu: {},