cleek 1.7.6 → 1.7.7

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/dist/cleek.es.js CHANGED
@@ -12350,7 +12350,7 @@ const __default__$1 = {
12350
12350
  },
12351
12351
  emits: ["refreshList", "update:currentPage"],
12352
12352
  computed: {
12353
- currentPageLocal: {
12353
+ currentPageLocal2: {
12354
12354
  get() {
12355
12355
  return this.currentPage;
12356
12356
  },
@@ -12375,6 +12375,8 @@ const __default__$1 = {
12375
12375
  return this.listRight[this.listRight.length - 1] !== this.totalPages;
12376
12376
  },
12377
12377
  listLeft() {
12378
+ if (!this.listLength)
12379
+ return [];
12378
12380
  const list = [];
12379
12381
  const listLength = (itemsShowed - 1) / 2;
12380
12382
  for (const num of Array(listLength).keys()) {
@@ -12385,6 +12387,8 @@ const __default__$1 = {
12385
12387
  return list;
12386
12388
  },
12387
12389
  listRight() {
12390
+ if (!this.listLength)
12391
+ return [];
12388
12392
  const list = [];
12389
12393
  const listLength = (itemsShowed - 1) / 2;
12390
12394
  for (const num of Array(listLength).keys()) {
@@ -12417,7 +12421,7 @@ const __default__$1 = {
12417
12421
  const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues({}, __default__$1), {
12418
12422
  setup(__props) {
12419
12423
  return (_ctx, _cache) => {
12420
- return __props.currentPage && __props.itemsPerPage ? (openBlock(), createElementBlock("div", {
12424
+ return __props.currentPage ? (openBlock(), createElementBlock("div", {
12421
12425
  key: 0,
12422
12426
  class: normalizeClass(["ck-table__pagination-container", `pagination-align--${__props.align}`])
12423
12427
  }, [
@@ -12440,8 +12444,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12440
12444
  autoSelect: "",
12441
12445
  width: "50px",
12442
12446
  align: "center",
12443
- modelValue: _ctx.currentPageLocal,
12444
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(currentPageLocal) ? currentPageLocal.value = $event : null),
12447
+ modelValue: _ctx.currentPageLocal2,
12448
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(currentPageLocal2) ? currentPageLocal2.value = $event : null),
12445
12449
  onChange: _cache[2] || (_cache[2] = ($event) => _ctx.validateInputNumber($event.target.value))
12446
12450
  }, null, 8, ["modelValue"]),
12447
12451
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.listRight, (num) => {
@@ -12462,7 +12466,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent(__spreadProps(__spreadValues
12462
12466
  };
12463
12467
  }
12464
12468
  }));
12465
- var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-7e9a3ff7"]]);
12469
+ var TablePagination = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-b7f9d2da"]]);
12466
12470
  var ckTable_vue_vue_type_style_index_0_scoped_true_lang = "";
12467
12471
  const _hoisted_1$2 = { class: "ck-table" };
12468
12472
  const _hoisted_2 = {