qy-ui-for-ls 0.1.3 → 0.1.4

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.
@@ -5,7 +5,7 @@ export interface PaginationProps {
5
5
  pageSizes?: any;
6
6
  pageSize: number;
7
7
  currentPage?: number;
8
- totol?: number;
8
+ total?: number;
9
9
  }
10
10
  declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<PaginationProps>, {
11
11
  align: string;
@@ -13,7 +13,7 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
13
13
  pageSizes: number[];
14
14
  pageSize: number;
15
15
  currentPage: number;
16
- totol: number;
16
+ total: number;
17
17
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
18
18
  change: (...args: any[]) => void;
19
19
  "size-change": (...args: any[]) => void;
@@ -24,18 +24,18 @@ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VL
24
24
  pageSizes: number[];
25
25
  pageSize: number;
26
26
  currentPage: number;
27
- totol: number;
27
+ total: number;
28
28
  }>>> & Readonly<{
29
29
  onChange?: ((...args: any[]) => any) | undefined;
30
30
  "onSize-change"?: ((...args: any[]) => any) | undefined;
31
31
  "onCurrent-change"?: ((...args: any[]) => any) | undefined;
32
32
  }>, {
33
33
  align: "left" | "center" | "right";
34
+ total: number;
34
35
  forTable: boolean;
35
36
  pageSizes: any;
36
37
  pageSize: number;
37
38
  currentPage: number;
38
- totol: number;
39
39
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
40
40
  export default _default;
41
41
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -24984,14 +24984,14 @@ const ZDe = { class: "qy-pagination" }, JDe = { class: "total" }, eLe = { class:
24984
24984
  pageSizes: { default: [10, 20, 30, 40, 50] },
24985
24985
  pageSize: { default: 10 },
24986
24986
  currentPage: { default: 1 },
24987
- totol: { default: 1e3 }
24987
+ total: { default: 1 }
24988
24988
  },
24989
24989
  emits: ["size-change", "current-change", "change"],
24990
24990
  setup(e, { emit: t }) {
24991
24991
  Ff((g) => ({
24992
- e0b649aa: g.align
24992
+ "20b0cedc": g.align
24993
24993
  }));
24994
- const n = nc, r = e, i = fe(10), a = fe(1), o = t, s = Z(() => Math.ceil(r.totol / i.value)), l = (g) => {
24994
+ const n = nc, r = e, i = fe(10), a = fe(1), o = t, s = Z(() => r.total > 0 ? Math.ceil(r.total / i.value) : 1), l = (g) => {
24995
24995
  g = parseInt(g, 10);
24996
24996
  const m = typeof s.value == "number";
24997
24997
  let v;
@@ -25128,7 +25128,7 @@ const ZDe = { class: "qy-pagination" }, JDe = { class: "total" }, eLe = { class:
25128
25128
  }, 8, ["locale"]);
25129
25129
  };
25130
25130
  }
25131
- }), oLe = /* @__PURE__ */ ta(aLe, [["__scopeId", "data-v-c658f642"]]), sLe = { class: "head-container qy-tree" }, lLe = { class: "head-container-header" }, uLe = { class: "head-container-header-input" }, cLe = {
25131
+ }), oLe = /* @__PURE__ */ ta(aLe, [["__scopeId", "data-v-ee268b5d"]]), sLe = { class: "head-container qy-tree" }, lLe = { class: "head-container-header" }, uLe = { class: "head-container-header-input" }, cLe = {
25132
25132
  key: 0,
25133
25133
  class: "head-container-header-dropdown"
25134
25134
  }, dLe = /* @__PURE__ */ H({