@zl-ui-kit/components 0.6.2 → 0.6.3

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.
@@ -1 +1 @@
1
- @charset "UTF-8";.zl-pagination[data-v-edc71e08]{padding:6px 16px;background-color:var(--zl-fill-1, #f9fbfd);justify-content:var(--zl-pagination-justify, flex-end)}.zl-pagination--left[data-v-edc71e08]{--zl-pagination-justify: flex-start}.zl-pagination--center[data-v-edc71e08]{--zl-pagination-justify: center}.zl-pagination--right[data-v-edc71e08]{--zl-pagination-justify: flex-end}
1
+ @charset "UTF-8";.zl-pagination[data-v-5eee61b9]{padding:6px 16px;background-color:var(--zl-fill-1, #f9fbfd);justify-content:var(--zl-pagination-justify, flex-end)}.zl-pagination--left[data-v-5eee61b9]{--zl-pagination-justify: flex-start}.zl-pagination--center[data-v-5eee61b9]{--zl-pagination-justify: center}.zl-pagination--right[data-v-5eee61b9]{--zl-pagination-justify: flex-end}
@@ -1,7 +1,7 @@
1
1
  import o from "./index2.vue.mjs";
2
2
  import './index.css';/* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-edc71e08"]]);
4
+ const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-5eee61b9"]]);
5
5
  export {
6
6
  i as default
7
7
  };
@@ -1,21 +1,22 @@
1
- import { defineComponent as v, useAttrs as h, computed as p, ref as c, watch as l, resolveComponent as _, openBlock as d, createBlock as S, mergeProps as C, createCommentVNode as N } from "vue";
1
+ import { defineComponent as v, useAttrs as h, computed as r, ref as l, watch as p, resolveComponent as _, openBlock as d, createBlock as S, mergeProps as C, createCommentVNode as N } from "vue";
2
2
  import { usePagination as P } from "./usePagination.mjs";
3
- const b = /* @__PURE__ */ v({
3
+ const B = /* @__PURE__ */ v({
4
4
  name: "ZlPagination",
5
+ inheritAttrs: !1,
5
6
  __name: "index",
6
7
  emits: ["change", "page-change", "page-size-change"],
7
- setup(k, { emit: r }) {
8
- const t = r, a = h(), n = P(() => a), s = p(() => a.align ?? "right"), i = c(
8
+ setup(k, { emit: s }) {
9
+ const t = s, a = h(), n = P(() => a), c = r(() => a.align ?? "right"), i = l(
9
10
  a.pageNum ?? (n.value === !1 ? void 0 : n.value.currentPage) ?? 1
10
- ), g = c(
11
+ ), g = l(
11
12
  a.pageSize ?? (n.value === !1 ? void 0 : n.value.pageSize) ?? 30
12
13
  );
13
- l(
14
+ p(
14
15
  () => a.pageNum ?? a.currentPage,
15
16
  (e) => {
16
17
  e != null && (i.value = e);
17
18
  }
18
- ), l(
19
+ ), p(
19
20
  () => a.pageSize,
20
21
  (e) => {
21
22
  e != null && (g.value = e);
@@ -27,7 +28,7 @@ const b = /* @__PURE__ */ v({
27
28
  function f(e) {
28
29
  g.value = e, i.value = 1, t("change", { pageNum: 1, pageSize: e }), t("page-size-change", e);
29
30
  }
30
- const u = p(() => {
31
+ const u = r(() => {
31
32
  if (n.value === !1) return !1;
32
33
  const { currentPage: e, pageSize: z, ...o } = n.value;
33
34
  return delete o.align, o;
@@ -36,7 +37,7 @@ const b = /* @__PURE__ */ v({
36
37
  const o = _("el-pagination");
37
38
  return u.value !== !1 ? (d(), S(o, C({
38
39
  key: 0,
39
- class: ["zl-pagination", `zl-pagination--${s.value}`]
40
+ class: ["zl-pagination", `zl-pagination--${c.value}`]
40
41
  }, u.value, {
41
42
  "current-page": i.value,
42
43
  "page-size": g.value,
@@ -47,6 +48,6 @@ const b = /* @__PURE__ */ v({
47
48
  }
48
49
  });
49
50
  export {
50
- b as default
51
+ B as default
51
52
  };
52
53
  //# sourceMappingURL=index2.vue.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zl-ui-kit/components",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "type": "module",
5
5
  "description": "ZL UI 业务组件库(Element Plus 体系,Zl 前缀)——首批:Icon/AutoTooltip/Tag/CornerTag/Text/Title/Copy/Empty/Pagination/DictTag",
6
6
  "license": "MIT",
@@ -39,9 +39,9 @@
39
39
  "file-type": "^20.4.1",
40
40
  "dt-sql-parser": "^4.3.1",
41
41
  "sql-formatter": "^15.4.2",
42
- "@zl-ui-kit/composables": "0.6.2",
43
- "@zl-ui-kit/icons": "0.6.2",
44
- "@zl-ui-kit/utils": "0.6.2"
42
+ "@zl-ui-kit/composables": "0.6.3",
43
+ "@zl-ui-kit/utils": "0.6.3",
44
+ "@zl-ui-kit/icons": "0.6.3"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@vueuse/core": "^12.3.0",
@@ -99,9 +99,9 @@
99
99
  "@vue-office/pptx": "1.0.1",
100
100
  "echarts": "^5.6.0",
101
101
  "@jichuang/vite-config": "1.0.0",
102
- "@jichuang/tsconfig": "1.0.0",
103
102
  "@jichuang/eslint-config": "1.0.0",
104
- "@zl-ui-kit/theme": "0.6.2"
103
+ "@zl-ui-kit/theme": "0.6.3",
104
+ "@jichuang/tsconfig": "1.0.0"
105
105
  },
106
106
  "repository": {
107
107
  "type": "git",