hzzt-plus 0.0.2-dev-01 → 0.0.2-dev-03

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.
Files changed (82) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/index.full.js +123 -55
  3. package/dist/index.full.min.js +7 -7
  4. package/dist/index.full.min.js.map +1 -1
  5. package/dist/index.full.min.mjs +8 -8
  6. package/dist/index.full.min.mjs.map +1 -1
  7. package/dist/index.full.mjs +124 -57
  8. package/dist/locale/en.js +4 -0
  9. package/dist/locale/en.min.js +1 -1
  10. package/dist/locale/en.min.js.map +1 -1
  11. package/dist/locale/en.min.mjs +1 -1
  12. package/dist/locale/en.min.mjs.map +1 -1
  13. package/dist/locale/en.mjs +4 -0
  14. package/dist/locale/zh-cn.js +4 -0
  15. package/dist/locale/zh-cn.min.js +1 -1
  16. package/dist/locale/zh-cn.min.js.map +1 -1
  17. package/dist/locale/zh-cn.min.mjs +1 -1
  18. package/dist/locale/zh-cn.min.mjs.map +1 -1
  19. package/dist/locale/zh-cn.mjs +4 -0
  20. package/es/component.mjs +3 -1
  21. package/es/component.mjs.map +1 -1
  22. package/es/components/icon/index.mjs +2 -2
  23. package/es/components/icon/index.mjs.map +1 -1
  24. package/es/components/icon/src/index.mjs +2 -2
  25. package/es/components/index.d.ts +1 -0
  26. package/es/components/index.mjs +1 -0
  27. package/es/components/index.mjs.map +1 -1
  28. package/es/components/pagination/index.d.ts +144 -0
  29. package/es/components/pagination/index.mjs +8 -0
  30. package/es/components/pagination/index.mjs.map +1 -0
  31. package/es/components/pagination/src/index.mjs +68 -0
  32. package/es/components/pagination/src/index.mjs.map +1 -0
  33. package/es/components/pagination/src/index.vue.d.ts +144 -0
  34. package/es/components/pagination/style/css.d.ts +2 -0
  35. package/es/components/pagination/style/css.mjs +3 -0
  36. package/es/components/pagination/style/css.mjs.map +1 -0
  37. package/es/components/pagination/style/index.d.ts +2 -0
  38. package/es/components/pagination/style/index.mjs +3 -0
  39. package/es/components/pagination/style/index.mjs.map +1 -0
  40. package/es/index.mjs +1 -0
  41. package/es/index.mjs.map +1 -1
  42. package/es/locale/lang/en.d.ts +4 -0
  43. package/es/locale/lang/en.mjs +4 -0
  44. package/es/locale/lang/en.mjs.map +1 -1
  45. package/es/locale/lang/zh-cn.d.ts +4 -0
  46. package/es/locale/lang/zh-cn.mjs +4 -0
  47. package/es/locale/lang/zh-cn.mjs.map +1 -1
  48. package/global.d.ts +1 -0
  49. package/lib/component.js +3 -1
  50. package/lib/component.js.map +1 -1
  51. package/lib/components/icon/src/index.js +2 -2
  52. package/lib/components/index.d.ts +1 -0
  53. package/lib/components/index.js +2 -0
  54. package/lib/components/index.js.map +1 -1
  55. package/lib/components/pagination/index.d.ts +144 -0
  56. package/lib/components/pagination/index.js +13 -0
  57. package/lib/components/pagination/index.js.map +1 -0
  58. package/lib/components/pagination/src/index.js +72 -0
  59. package/lib/components/pagination/src/index.js.map +1 -0
  60. package/lib/components/pagination/src/index.vue.d.ts +144 -0
  61. package/lib/components/pagination/style/css.d.ts +2 -0
  62. package/lib/components/pagination/style/css.js +6 -0
  63. package/lib/components/pagination/style/css.js.map +1 -0
  64. package/lib/components/pagination/style/index.d.ts +2 -0
  65. package/lib/components/pagination/style/index.js +6 -0
  66. package/lib/components/pagination/style/index.js.map +1 -0
  67. package/lib/index.js +21 -19
  68. package/lib/index.js.map +1 -1
  69. package/lib/locale/lang/en.d.ts +4 -0
  70. package/lib/locale/lang/en.js +4 -0
  71. package/lib/locale/lang/en.js.map +1 -1
  72. package/lib/locale/lang/zh-cn.d.ts +4 -0
  73. package/lib/locale/lang/zh-cn.js +4 -0
  74. package/lib/locale/lang/zh-cn.js.map +1 -1
  75. package/package.json +1 -1
  76. package/theme/base.css +1 -1
  77. package/theme/hzzt-pagination.css +1 -0
  78. package/theme/index.css +1 -1
  79. package/theme/src/base.scss +4 -3
  80. package/theme/src/common/index.scss +48 -0
  81. package/theme/src/index.scss +2 -0
  82. package/theme/src/pagination.scss +17 -0
@@ -1,6 +1,6 @@
1
1
  /*! Hzzt Plus v0.0.1 */
2
2
 
3
- import { defineComponent, openBlock, createElementBlock, createElementVNode, warn, unref, computed, isRef, ref, inject, getCurrentInstance, provide, renderSlot, useSlots, createCommentVNode, createTextVNode, toDisplayString, mergeProps, withDirectives, withModifiers, normalizeClass, Fragment, renderList, watch, useAttrs, createBlock, normalizeProps, guardReactiveProps, withCtx, resolveDynamicComponent } from 'vue';
3
+ import { defineComponent, openBlock, createElementBlock, createElementVNode, warn, unref, computed, isRef, ref, inject, getCurrentInstance, provide, renderSlot, useSlots, createCommentVNode, createTextVNode, toDisplayString, mergeProps, withDirectives, withModifiers, normalizeClass, Fragment, renderList, watch, useAttrs, createBlock, normalizeProps, guardReactiveProps, withCtx, resolveDynamicComponent, createVNode } from 'vue';
4
4
 
5
5
  var _a;
6
6
  const isClient = typeof window !== "undefined";
@@ -12392,6 +12392,10 @@ var English = {
12392
12392
  collapse: {
12393
12393
  expand: "expand",
12394
12394
  retract: "retract"
12395
+ },
12396
+ pagination: {
12397
+ total: "total",
12398
+ strip: "strip"
12395
12399
  }
12396
12400
  }
12397
12401
  };
@@ -12531,20 +12535,20 @@ var _export_sfc$1 = (sfc, props) => {
12531
12535
  return target;
12532
12536
  };
12533
12537
 
12534
- const _hoisted_1$3 = {
12538
+ const _hoisted_1$4 = {
12535
12539
  key: 0,
12536
12540
  class: "hzzt-title flex align-items-center"
12537
12541
  };
12538
- const _hoisted_2$3 = {
12542
+ const _hoisted_2$4 = {
12539
12543
  key: 0,
12540
12544
  class: "decorative-line"
12541
12545
  };
12542
- const _hoisted_3$3 = { class: "label-name" };
12543
- const __default__$4 = defineComponent({
12546
+ const _hoisted_3$4 = { class: "label-name" };
12547
+ const __default__$5 = defineComponent({
12544
12548
  name: "HzztTitle"
12545
12549
  });
12546
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
12547
- ...__default__$4,
12550
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
12551
+ ...__default__$5,
12548
12552
  props: {
12549
12553
  label: String,
12550
12554
  sideline: {
@@ -12560,10 +12564,10 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
12560
12564
  return props.label || ((_c = (_b = (_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots)) == null ? void 0 : _b[0]) == null ? void 0 : _c.children);
12561
12565
  });
12562
12566
  return (_ctx, _cache) => {
12563
- return unref(showLabel) ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
12564
- __props.sideline ? (openBlock(), createElementBlock("span", _hoisted_2$3)) : createCommentVNode("v-if", true),
12567
+ return unref(showLabel) ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
12568
+ __props.sideline ? (openBlock(), createElementBlock("span", _hoisted_2$4)) : createCommentVNode("v-if", true),
12565
12569
  renderSlot(_ctx.$slots, "before"),
12566
- createElementVNode("label", _hoisted_3$3, [
12570
+ createElementVNode("label", _hoisted_3$4, [
12567
12571
  renderSlot(_ctx.$slots, "default", {}, () => [
12568
12572
  createTextVNode(toDisplayString(__props.label), 1)
12569
12573
  ])
@@ -12572,7 +12576,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
12572
12576
  };
12573
12577
  }
12574
12578
  });
12575
- var Title = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__file", "index.vue"]]);
12579
+ var Title = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__file", "index.vue"]]);
12576
12580
 
12577
12581
  const HzztTitle = withInstall$1(Title);
12578
12582
 
@@ -12744,12 +12748,12 @@ const iconProps = buildProps({
12744
12748
  }
12745
12749
  });
12746
12750
 
12747
- const __default__$3 = defineComponent({
12751
+ const __default__$4 = defineComponent({
12748
12752
  name: "ElIcon",
12749
12753
  inheritAttrs: false
12750
12754
  });
12751
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
12752
- ...__default__$3,
12755
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
12756
+ ...__default__$4,
12753
12757
  props: iconProps,
12754
12758
  setup(__props) {
12755
12759
  const props = __props;
@@ -12773,9 +12777,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
12773
12777
  };
12774
12778
  }
12775
12779
  });
12776
- var Icon$1 = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "icon.vue"]]);
12780
+ var Icon = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__file", "icon.vue"]]);
12777
12781
 
12778
- const ElIcon = withInstall(Icon$1);
12782
+ const ElIcon = withInstall(Icon);
12779
12783
 
12780
12784
  const nodeList$1 = /* @__PURE__ */ new Map();
12781
12785
  let startClick;
@@ -12843,18 +12847,18 @@ const ClickOutside = {
12843
12847
  }
12844
12848
  };
12845
12849
 
12846
- const _hoisted_1$2 = ["onClick"];
12847
- const _hoisted_2$2 = { class: "hzzt-dropdown-name" };
12848
- const _hoisted_3$2 = /* @__PURE__ */ createElementVNode("span", { class: "caret" }, null, -1);
12849
- const _hoisted_4$2 = { class: "hzzt-dropdown-menu" };
12850
+ const _hoisted_1$3 = ["onClick"];
12851
+ const _hoisted_2$3 = { class: "hzzt-dropdown-name" };
12852
+ const _hoisted_3$3 = /* @__PURE__ */ createElementVNode("span", { class: "caret" }, null, -1);
12853
+ const _hoisted_4$3 = { class: "hzzt-dropdown-menu" };
12850
12854
  const _hoisted_5$2 = ["onClick"];
12851
12855
  const _hoisted_6$2 = { class: "submenu" };
12852
12856
  const _hoisted_7$2 = ["onClick"];
12853
- const __default__$2 = defineComponent({
12857
+ const __default__$3 = defineComponent({
12854
12858
  name: "HzztDropDown"
12855
12859
  });
12856
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
12857
- ...__default__$2,
12860
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
12861
+ ...__default__$3,
12858
12862
  props: {
12859
12863
  options: {
12860
12864
  type: Array,
@@ -12909,9 +12913,9 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
12909
12913
  createElementVNode("li", {
12910
12914
  class: normalizeClass({ "hzzt-dropdown-li": true, "hzzt-dropdown-li-show": toggle.value })
12911
12915
  }, [
12912
- createElementVNode("span", _hoisted_2$2, toDisplayString(__props.label), 1),
12913
- _hoisted_3$2,
12914
- createElementVNode("ul", _hoisted_4$2, [
12916
+ createElementVNode("span", _hoisted_2$3, toDisplayString(__props.label), 1),
12917
+ _hoisted_3$3,
12918
+ createElementVNode("ul", _hoisted_4$3, [
12915
12919
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
12916
12920
  return openBlock(), createElementBlock(Fragment, null, [
12917
12921
  unref(isEmpty)(option[__props.props.children]) ? (openBlock(), createElementBlock("li", {
@@ -12951,31 +12955,31 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
12951
12955
  }), 256))
12952
12956
  ])
12953
12957
  ], 2)
12954
- ], 8, _hoisted_1$2)), [
12958
+ ], 8, _hoisted_1$3)), [
12955
12959
  [unref(ClickOutside), close]
12956
12960
  ]);
12957
12961
  };
12958
12962
  }
12959
12963
  });
12960
- var Dropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__file", "index.vue"]]);
12964
+ var Dropdown = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["__file", "index.vue"]]);
12961
12965
 
12962
12966
  const HzztDropdown = withInstall$1(Dropdown);
12963
12967
 
12964
- const _hoisted_1$1 = { class: "hzzt-collapse" };
12965
- const _hoisted_2$1 = { class: "flex align-items-center" };
12966
- const _hoisted_3$1 = { class: "hzzt-collapse-title-wrapper" };
12967
- const _hoisted_4$1 = /* @__PURE__ */ createElementVNode("div", { class: "hzzt-collapse-title-block" }, null, -1);
12968
+ const _hoisted_1$2 = { class: "hzzt-collapse" };
12969
+ const _hoisted_2$2 = { class: "flex align-items-center" };
12970
+ const _hoisted_3$2 = { class: "hzzt-collapse-title-wrapper" };
12971
+ const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("div", { class: "hzzt-collapse-title-block" }, null, -1);
12968
12972
  const _hoisted_5$1 = { class: "hzzt-collapse-title" };
12969
12973
  const _hoisted_6$1 = /* @__PURE__ */ createElementVNode("div", { class: "hzzt-collapse-line" }, null, -1);
12970
12974
  const _hoisted_7$1 = {
12971
12975
  key: 0,
12972
12976
  class: "hzzt-collapse-text"
12973
12977
  };
12974
- const __default__$1 = defineComponent({
12978
+ const __default__$2 = defineComponent({
12975
12979
  name: "HzztCollapse"
12976
12980
  });
12977
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
12978
- ...__default__$1,
12981
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
12982
+ ...__default__$2,
12979
12983
  props: {
12980
12984
  defaultActive: {
12981
12985
  type: Boolean,
@@ -13002,14 +13006,14 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13002
13006
  active.value = !active.value;
13003
13007
  }
13004
13008
  return (_ctx, _cache) => {
13005
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
13009
+ return openBlock(), createElementBlock("div", _hoisted_1$2, [
13006
13010
  createElementVNode("div", {
13007
13011
  class: "hzzt-collapse-header",
13008
13012
  onClick: toggle
13009
13013
  }, [
13010
- createElementVNode("div", _hoisted_2$1, [
13011
- createElementVNode("div", _hoisted_3$1, [
13012
- _hoisted_4$1,
13014
+ createElementVNode("div", _hoisted_2$2, [
13015
+ createElementVNode("div", _hoisted_3$2, [
13016
+ _hoisted_4$2,
13013
13017
  createElementVNode("div", _hoisted_5$1, toDisplayString(__props.title), 1)
13014
13018
  ]),
13015
13019
  _hoisted_6$1
@@ -13022,25 +13026,25 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13022
13026
  };
13023
13027
  }
13024
13028
  });
13025
- var Collapse = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__file", "index.vue"]]);
13029
+ var Collapse = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__file", "index.vue"]]);
13026
13030
 
13027
13031
  const HzztCollapse = withInstall$1(Collapse);
13028
13032
 
13029
- const _hoisted_1 = { class: "hzzt-tab flex align-items-center justify-content-between wrap" };
13030
- const _hoisted_2 = { class: "flex align-items-center" };
13031
- const _hoisted_3 = { class: "flex" };
13032
- const _hoisted_4 = ["onClick"];
13033
+ const _hoisted_1$1 = { class: "hzzt-tab flex align-items-center justify-content-between wrap" };
13034
+ const _hoisted_2$1 = { class: "flex align-items-center" };
13035
+ const _hoisted_3$1 = { class: "flex" };
13036
+ const _hoisted_4$1 = ["onClick"];
13033
13037
  const _hoisted_5 = { class: "hzzt-tab-badge" };
13034
13038
  const _hoisted_6 = {
13035
13039
  key: 0,
13036
13040
  class: "hzzt-tab-badge-count"
13037
13041
  };
13038
13042
  const _hoisted_7 = { class: "flex wrap" };
13039
- const __default__ = defineComponent({
13043
+ const __default__$1 = defineComponent({
13040
13044
  name: "HzztTab"
13041
13045
  });
13042
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
13043
- ...__default__,
13046
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
13047
+ ...__default__$1,
13044
13048
  props: {
13045
13049
  tabList: {
13046
13050
  type: Array,
@@ -13069,9 +13073,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
13069
13073
  emit("tab-click", tab, event);
13070
13074
  }
13071
13075
  return (_ctx, _cache) => {
13072
- return openBlock(), createElementBlock("div", _hoisted_1, [
13073
- createElementVNode("div", _hoisted_2, [
13074
- createElementVNode("div", _hoisted_3, [
13076
+ return openBlock(), createElementBlock("div", _hoisted_1$1, [
13077
+ createElementVNode("div", _hoisted_2$1, [
13078
+ createElementVNode("div", _hoisted_3$1, [
13075
13079
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(customTabList), (tab) => {
13076
13080
  return openBlock(), createElementBlock("div", {
13077
13081
  key: tab.key,
@@ -13084,7 +13088,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
13084
13088
  }, toDisplayString(tab.label), 3),
13085
13089
  tab.number && tab.number !== 0 ? (openBlock(), createElementBlock("p", _hoisted_6, toDisplayString(tab.number > 999 ? "999+" : tab.number), 1)) : createCommentVNode("v-if", true)
13086
13090
  ])
13087
- ], 8, _hoisted_4);
13091
+ ], 8, _hoisted_4$1);
13088
13092
  }), 128))
13089
13093
  ]),
13090
13094
  renderSlot(_ctx.$slots, "filter"),
@@ -13097,11 +13101,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
13097
13101
  };
13098
13102
  }
13099
13103
  });
13100
- var Tab = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__file", "index.vue"]]);
13104
+ var Tab = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__file", "index.vue"]]);
13101
13105
 
13102
13106
  const HzztTab = withInstall$1(Tab);
13103
13107
 
13104
- const _sfc_main = /* @__PURE__ */ defineComponent({
13108
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
13105
13109
  __name: "index",
13106
13110
  props: {
13107
13111
  name: {
@@ -13127,11 +13131,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13127
13131
  };
13128
13132
  }
13129
13133
  });
13130
- var Icon = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__file", "index.vue"]]);
13134
+ var HzztIcon$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__file", "index.vue"]]);
13131
13135
 
13132
13136
  const HzztIcon = {
13133
13137
  install(app) {
13134
- app.component("HzztIcon", Icon);
13138
+ app.component("HzztIcon", HzztIcon$1);
13135
13139
  for (const key in Icons) {
13136
13140
  app.component(tarnsElIconName(key), Icons[key]);
13137
13141
  }
@@ -13141,13 +13145,76 @@ function tarnsElIconName(name) {
13141
13145
  return "hzzt-el" + name.replace(/[A-Z]/g, (match) => "-" + match.toLocaleLowerCase());
13142
13146
  }
13143
13147
 
13148
+ const _hoisted_1 = { class: "flex justify-content-between hzzt-pagination" };
13149
+ const _hoisted_2 = { class: "flex align-items-center font-12 hzzt-pagination-total" };
13150
+ const _hoisted_3 = { class: "flex align-items-center hzzt-pagination-page font-14" };
13151
+ const _hoisted_4 = { class: "flex" };
13152
+ const __default__ = defineComponent({
13153
+ name: "HzztPagination"
13154
+ });
13155
+ const _sfc_main = /* @__PURE__ */ defineComponent({
13156
+ ...__default__,
13157
+ props: {
13158
+ pagination: {
13159
+ type: Object,
13160
+ default: () => ({
13161
+ total: 0,
13162
+ current_page: 1,
13163
+ total_pages: 1
13164
+ })
13165
+ }
13166
+ },
13167
+ emits: ["prev", "next"],
13168
+ setup(__props, { emit }) {
13169
+ const props = __props;
13170
+ const { t } = useLocale();
13171
+ function prePage() {
13172
+ if (props.pagination.current_page > 1) {
13173
+ emit("prev", props.pagination.current_page - 1);
13174
+ } else {
13175
+ return false;
13176
+ }
13177
+ }
13178
+ function nextPage() {
13179
+ if (props.pagination.current_page < props.pagination.total_pages) {
13180
+ emit("next", props.pagination.current_page + 1);
13181
+ } else {
13182
+ return false;
13183
+ }
13184
+ }
13185
+ return (_ctx, _cache) => {
13186
+ return openBlock(), createElementBlock("div", _hoisted_1, [
13187
+ createElementVNode("p", _hoisted_2, toDisplayString(unref(t)("hzzt.pagination.total")) + toDisplayString(__props.pagination.total) + toDisplayString(unref(t)("hzzt.pagination.strip")), 1),
13188
+ createElementVNode("div", _hoisted_3, [
13189
+ renderSlot(_ctx.$slots, "right"),
13190
+ createVNode(HzztIcon$1, {
13191
+ class: normalizeClass(["hzzt-pagination-arrow", { active: __props.pagination.current_page > 1 }]),
13192
+ name: "arrow-left",
13193
+ onClick: prePage
13194
+ }, null, 8, ["class"]),
13195
+ createElementVNode("p", _hoisted_4, toDisplayString(__props.pagination.current_page) + "/" + toDisplayString(__props.pagination.total_pages), 1),
13196
+ createVNode(HzztIcon$1, {
13197
+ class: normalizeClass(["hzzt-pagination-arrow", { active: __props.pagination.current_page < __props.pagination.total_pages }]),
13198
+ name: "arrow-right",
13199
+ onClick: nextPage
13200
+ }, null, 8, ["class"])
13201
+ ])
13202
+ ]);
13203
+ };
13204
+ }
13205
+ });
13206
+ var Pagination = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__file", "index.vue"]]);
13207
+
13208
+ const HzztPagination = withInstall$1(Pagination);
13209
+
13144
13210
  var Components = [
13145
13211
  HzztConfigProvider,
13146
13212
  HzztTitle,
13147
13213
  HzztDropdown,
13148
13214
  HzztCollapse,
13149
13215
  HzztTab,
13150
- HzztIcon
13216
+ HzztIcon,
13217
+ HzztPagination
13151
13218
  ];
13152
13219
 
13153
13220
  var Plugins = [];
@@ -13283,4 +13350,4 @@ function setCssText(el, show, prop, value) {
13283
13350
  const install = installer.install;
13284
13351
  const version = installer.version;
13285
13352
 
13286
- export { Blur, Download, Height, Highlight, HzztCollapse, HzztConfigProvider, HzztDropdown, HzztIcon, HzztTab, HzztTitle, INSTALLED_KEY, SIZE_INJECTION_KEY, WEEK_DAYS, buildLocaleContext, buildTranslator, componentSizeMap, componentSizes, configProviderContextKey, configProviderProps, datePickTypes, installer as default, install, localeContextKey, makeInstaller, provideGlobalConfig, translate, useGlobalConfig, useGlobalSize, useLocale, useSizeProp, useSizeProps, version };
13353
+ export { Blur, Download, Height, Highlight, HzztCollapse, HzztConfigProvider, HzztDropdown, HzztIcon, HzztPagination, HzztTab, HzztTitle, INSTALLED_KEY, SIZE_INJECTION_KEY, WEEK_DAYS, buildLocaleContext, buildTranslator, componentSizeMap, componentSizes, configProviderContextKey, configProviderProps, datePickTypes, installer as default, install, localeContextKey, makeInstaller, provideGlobalConfig, translate, useGlobalConfig, useGlobalSize, useLocale, useSizeProp, useSizeProps, version };
package/dist/locale/en.js CHANGED
@@ -12,6 +12,10 @@
12
12
  collapse: {
13
13
  expand: "expand",
14
14
  retract: "retract"
15
+ },
16
+ pagination: {
17
+ total: "total",
18
+ strip: "strip"
15
19
  }
16
20
  }
17
21
  };
@@ -1,2 +1,2 @@
1
- /*! Hzzt Plus v0.0.1 */(function(e,n){typeof exports=="object"&&typeof module!="undefined"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis!="undefined"?globalThis:e||self,e.HzztPlusLocaleEn=n())})(this,function(){"use strict";var e={name:"en",hzzt:{collapse:{expand:"expand",retract:"retract"}}};return e});
1
+ /*! Hzzt Plus v0.0.1 */(function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.HzztPlusLocaleEn=t())})(this,function(){"use strict";var e={name:"en",hzzt:{collapse:{expand:"expand",retract:"retract"},pagination:{total:"total",strip:"strip"}}};return e});
2
2
  //# sourceMappingURL=en.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"en.min.js","sources":["../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\n name: 'en',\n hzzt: {\n collapse: {\n expand: 'expand',\n retract: 'retract',\n }\n },\n}\n"],"names":[],"mappings":";;;;;;;;AAAA,WAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;;;;;;;;"}
1
+ {"version":3,"file":"en.min.js","sources":["../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\n name: 'en',\n hzzt: {\n collapse: {\n expand: 'expand',\n retract: 'retract',\n },\n pagination: {\n total: 'total',\n strip: 'strip',\n }\n },\n}\n"],"names":[],"mappings":";;;;;;;;AAAA,WAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- /*! Hzzt Plus v0.0.1 */var e={name:"en",hzzt:{collapse:{expand:"expand",retract:"retract"}}};export{e as default};
1
+ /*! Hzzt Plus v0.0.1 */var t={name:"en",hzzt:{collapse:{expand:"expand",retract:"retract"},pagination:{total:"total",strip:"strip"}}};export{t as default};
2
2
  //# sourceMappingURL=en.min.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"en.min.mjs","sources":["../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\n name: 'en',\n hzzt: {\n collapse: {\n expand: 'expand',\n retract: 'retract',\n }\n },\n}\n"],"names":[],"mappings":";;AAAA,SAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC;;;;"}
1
+ {"version":3,"file":"en.min.mjs","sources":["../../../../packages/locale/lang/en.ts"],"sourcesContent":["export default {\n name: 'en',\n hzzt: {\n collapse: {\n expand: 'expand',\n retract: 'retract',\n },\n pagination: {\n total: 'total',\n strip: 'strip',\n }\n },\n}\n"],"names":[],"mappings":";;AAAA,SAAc,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;;;;"}
@@ -6,6 +6,10 @@ var en = {
6
6
  collapse: {
7
7
  expand: "expand",
8
8
  retract: "retract"
9
+ },
10
+ pagination: {
11
+ total: "total",
12
+ strip: "strip"
9
13
  }
10
14
  }
11
15
  };
@@ -12,6 +12,10 @@
12
12
  collapse: {
13
13
  expand: "\u5C55\u5F00",
14
14
  retract: "\u6536\u8D77"
15
+ },
16
+ pagination: {
17
+ total: "\u5171",
18
+ strip: "\u6761"
15
19
  }
16
20
  }
17
21
  };
@@ -1,2 +1,2 @@
1
- /*! Hzzt Plus v0.0.1 */(function(e,n){typeof exports=="object"&&typeof module!="undefined"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis!="undefined"?globalThis:e||self,e.HzztPlusLocaleZhCn=n())})(this,function(){"use strict";var e={name:"zh-cn",hzzt:{collapse:{expand:"\u5C55\u5F00",retract:"\u6536\u8D77"}}};return e});
1
+ /*! Hzzt Plus v0.0.1 */(function(e,n){typeof exports=="object"&&typeof module!="undefined"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis!="undefined"?globalThis:e||self,e.HzztPlusLocaleZhCn=n())})(this,function(){"use strict";var e={name:"zh-cn",hzzt:{collapse:{expand:"\u5C55\u5F00",retract:"\u6536\u8D77"},pagination:{total:"\u5171",strip:"\u6761"}}};return e});
2
2
  //# sourceMappingURL=zh-cn.min.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"zh-cn.min.js","sources":["../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\n name: 'zh-cn',\n hzzt: {\n collapse: {\n expand: '展开',\n retract: '收起',\n }\n },\n}\n"],"names":[],"mappings":";;;;;;;;AAAA,aAAc,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;;;;;;;;"}
1
+ {"version":3,"file":"zh-cn.min.js","sources":["../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\n name: 'zh-cn',\n hzzt: {\n collapse: {\n expand: '展开',\n retract: '收起',\n },\n pagination: {\n total: '共',\n strip: '条',\n }\n },\n}\n"],"names":[],"mappings":";;;;;;;;AAAA,aAAc,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;;;;;;;;"}
@@ -1,2 +1,2 @@
1
- /*! Hzzt Plus v0.0.1 */var a={name:"zh-cn",hzzt:{collapse:{expand:"\u5C55\u5F00",retract:"\u6536\u8D77"}}};export{a as default};
1
+ /*! Hzzt Plus v0.0.1 */var a={name:"zh-cn",hzzt:{collapse:{expand:"\u5C55\u5F00",retract:"\u6536\u8D77"},pagination:{total:"\u5171",strip:"\u6761"}}};export{a as default};
2
2
  //# sourceMappingURL=zh-cn.min.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"zh-cn.min.mjs","sources":["../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\n name: 'zh-cn',\n hzzt: {\n collapse: {\n expand: '展开',\n retract: '收起',\n }\n },\n}\n"],"names":[],"mappings":";;AAAA,WAAc,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC;;;;"}
1
+ {"version":3,"file":"zh-cn.min.mjs","sources":["../../../../packages/locale/lang/zh-cn.ts"],"sourcesContent":["export default {\n name: 'zh-cn',\n hzzt: {\n collapse: {\n expand: '展开',\n retract: '收起',\n },\n pagination: {\n total: '共',\n strip: '条',\n }\n },\n}\n"],"names":[],"mappings":";;AAAA,WAAc,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,UAAU,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;;;;"}
@@ -6,6 +6,10 @@ var zhCn = {
6
6
  collapse: {
7
7
  expand: "\u5C55\u5F00",
8
8
  retract: "\u6536\u8D77"
9
+ },
10
+ pagination: {
11
+ total: "\u5171",
12
+ strip: "\u6761"
9
13
  }
10
14
  }
11
15
  };
package/es/component.mjs CHANGED
@@ -4,6 +4,7 @@ import { HzztCollapse } from './components/collapse/index.mjs';
4
4
  import { HzztConfigProvider } from './components/config-provider/index.mjs';
5
5
  import { HzztTab } from './components/tab/index.mjs';
6
6
  import { HzztIcon } from './components/icon/index.mjs';
7
+ import { HzztPagination } from './components/pagination/index.mjs';
7
8
 
8
9
  var Components = [
9
10
  HzztConfigProvider,
@@ -11,7 +12,8 @@ var Components = [
11
12
  HzztDropdown,
12
13
  HzztCollapse,
13
14
  HzztTab,
14
- HzztIcon
15
+ HzztIcon,
16
+ HzztPagination
15
17
  ];
16
18
 
17
19
  export { Components as default };
@@ -1 +1 @@
1
- {"version":3,"file":"component.mjs","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import {HzztTitle} from '@hzzt-plus/components/title'\nimport {HzztDropdown} from '@hzzt-plus/components/dropdown'\nimport {HzztCollapse} from '@hzzt-plus/components/collapse'\nimport {HzztConfigProvider} from '@hzzt-plus/components/config-provider'\nimport {HzztTab} from '@hzzt-plus/components/tab'\nimport {HzztIcon} from '@hzzt-plus/components/icon'\n\nimport type {Plugin} from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n] as Plugin[]\n"],"names":[],"mappings":";;;;;;;AAMA,iBAAe;AACf,EAAE,kBAAkB;AACpB,EAAE,SAAS;AACX,EAAE,YAAY;AACd,EAAE,YAAY;AACd,EAAE,OAAO;AACT,EAAE,QAAQ;AACV,CAAC;;;;"}
1
+ {"version":3,"file":"component.mjs","sources":["../../../packages/hzzt-plus/component.ts"],"sourcesContent":["import {HzztTitle} from '@hzzt-plus/components/title'\nimport {HzztDropdown} from '@hzzt-plus/components/dropdown'\nimport {HzztCollapse} from '@hzzt-plus/components/collapse'\nimport {HzztConfigProvider} from '@hzzt-plus/components/config-provider'\nimport {HzztTab} from '@hzzt-plus/components/tab'\nimport {HzztIcon} from '@hzzt-plus/components/icon'\nimport {HzztPagination} from '@hzzt-plus/components/pagination'\n\nimport type {Plugin} from 'vue'\n\nexport default [\n HzztConfigProvider,\n HzztTitle,\n HzztDropdown,\n HzztCollapse,\n HzztTab,\n HzztIcon,\n HzztPagination,\n] as Plugin[]\n"],"names":[],"mappings":";;;;;;;;AAOA,iBAAe;AACf,EAAE,kBAAkB;AACpB,EAAE,SAAS;AACX,EAAE,YAAY;AACd,EAAE,YAAY;AACd,EAAE,OAAO;AACT,EAAE,QAAQ;AACV,EAAE,cAAc;AAChB,CAAC;;;;"}
@@ -1,9 +1,9 @@
1
1
  import * as Icons from '@element-plus/icons-vue';
2
- import Icon from './src/index.mjs';
2
+ import HzztIcon$1 from './src/index.mjs';
3
3
 
4
4
  const HzztIcon = {
5
5
  install(app) {
6
- app.component("HzztIcon", Icon);
6
+ app.component("HzztIcon", HzztIcon$1);
7
7
  for (const key in Icons) {
8
8
  app.component(tarnsElIconName(key), Icons[key]);
9
9
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/icon/index.ts"],"sourcesContent":["import * as Icons from '@element-plus/icons-vue';\nimport Icon from './src/index.vue';\nimport type { App } from '@vue/runtime-core'\n\nexport const HzztIcon = {\n install(app: App) {\n app.component('HzztIcon', Icon);\n for (const key in Icons) {\n app.component(tarnsElIconName(key), Icons[key]);\n }\n },\n}\n\nexport default HzztIcon;\n\nfunction tarnsElIconName(name) {\n return 'hzzt-el' +\n name.replace(/[A-Z]/g, (match) => '-' + match.toLocaleLowerCase());\n}\n\n"],"names":[],"mappings":";;;AAEY,MAAC,QAAQ,GAAG;AACxB,EAAE,OAAO,CAAC,GAAG,EAAE;AACf,IAAI,GAAG,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC;AACpC,IAAI,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;AAC7B,MAAM,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACtD,KAAK;AACL,GAAG;AACH,EAAE;AAEF,SAAS,eAAe,CAAC,IAAI,EAAE;AAC/B,EAAE,OAAO,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAK,GAAG,GAAG,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC;AACxF;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/icon/index.ts"],"sourcesContent":["import * as Icons from '@element-plus/icons-vue';\nimport Icon from './src/index.vue';\nimport type { App } from '@vue/runtime-core'\n\nexport const HzztIcon = {\n install(app: App) {\n app.component('HzztIcon', Icon);\n for (const key in Icons) {\n app.component(tarnsElIconName(key), Icons[key]);\n }\n },\n}\n\nexport default HzztIcon;\n\nfunction tarnsElIconName(name) {\n return 'hzzt-el' +\n name.replace(/[A-Z]/g, (match) => '-' + match.toLocaleLowerCase());\n}\n\n"],"names":["Icon"],"mappings":";;;AAEY,MAAC,QAAQ,GAAG;AACxB,EAAE,OAAO,CAAC,GAAG,EAAE;AACf,IAAI,GAAG,CAAC,SAAS,CAAC,UAAU,EAAEA,UAAI,CAAC,CAAC;AACpC,IAAI,KAAK,MAAM,GAAG,IAAI,KAAK,EAAE;AAC7B,MAAM,GAAG,CAAC,SAAS,CAAC,eAAe,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACtD,KAAK;AACL,GAAG;AACH,EAAE;AAEF,SAAS,eAAe,CAAC,IAAI,EAAE;AAC/B,EAAE,OAAO,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAK,GAAG,GAAG,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC;AACxF;;;;"}
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  };
29
29
  }
30
30
  });
31
- var Icon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
31
+ var HzztIcon = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "index.vue"]]);
32
32
 
33
- export { Icon as default };
33
+ export { HzztIcon as default };
34
34
  //# sourceMappingURL=index.mjs.map
@@ -4,3 +4,4 @@ export * from './collapse';
4
4
  export * from './config-provider';
5
5
  export * from './tab';
6
6
  export * from './icon';
7
+ export * from './pagination';
@@ -4,6 +4,7 @@ export { HzztCollapse } from './collapse/index.mjs';
4
4
  export { HzztConfigProvider } from './config-provider/index.mjs';
5
5
  export { HzztTab } from './tab/index.mjs';
6
6
  export { HzztIcon } from './icon/index.mjs';
7
+ export { HzztPagination } from './pagination/index.mjs';
7
8
  export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
8
9
  export { configProviderContextKey } from './config-provider/src/constants.mjs';
9
10
  export { provideGlobalConfig, useGlobalConfig } from './config-provider/src/hooks/use-global-config.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}