hzzt-plus 1.0.7 → 2.0.1

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 (170) hide show
  1. package/attributes.json +1 -1
  2. package/dist/index.css +1 -1
  3. package/dist/index.full.js +575 -366
  4. package/dist/index.full.min.js +10 -10
  5. package/dist/index.full.min.js.map +1 -1
  6. package/dist/index.full.min.mjs +14 -14
  7. package/dist/index.full.min.mjs.map +1 -1
  8. package/dist/index.full.mjs +576 -368
  9. package/dist/locale/en.js +1 -1
  10. package/dist/locale/en.min.js +1 -1
  11. package/dist/locale/en.min.mjs +1 -1
  12. package/dist/locale/en.mjs +1 -1
  13. package/dist/locale/zh-cn.js +1 -1
  14. package/dist/locale/zh-cn.min.js +1 -1
  15. package/dist/locale/zh-cn.min.mjs +1 -1
  16. package/dist/locale/zh-cn.mjs +1 -1
  17. package/es/component.mjs +3 -1
  18. package/es/component.mjs.map +1 -1
  19. package/es/components/collapse/index.d.ts +161 -8
  20. package/es/components/collapse/src/collapse.vue.d.ts +161 -8
  21. package/es/components/collapse/src/collapse2.mjs +50 -29
  22. package/es/components/collapse/src/collapse2.mjs.map +1 -1
  23. package/es/components/icon/index.mjs +4 -0
  24. package/es/components/icon/index.mjs.map +1 -1
  25. package/es/components/icon/src/components/index.d.ts +2 -0
  26. package/es/components/icon/src/components/index.mjs +3 -0
  27. package/es/components/icon/src/components/index.mjs.map +1 -0
  28. package/es/components/icon/src/components/minus-square-outline.mjs +29 -0
  29. package/es/components/icon/src/components/minus-square-outline.mjs.map +1 -0
  30. package/es/components/icon/src/components/minus-square-outline.vue.d.ts +2 -0
  31. package/es/components/icon/src/components/plus-square-outline.mjs +29 -0
  32. package/es/components/icon/src/components/plus-square-outline.mjs.map +1 -0
  33. package/es/components/icon/src/components/plus-square-outline.vue.d.ts +2 -0
  34. package/es/components/index.d.ts +1 -0
  35. package/es/components/index.mjs +3 -2
  36. package/es/components/index.mjs.map +1 -1
  37. package/es/components/input-range/index.mjs +2 -2
  38. package/es/components/input-range/src/input-range.mjs +76 -26
  39. package/es/components/input-range/src/input-range.mjs.map +1 -1
  40. package/es/components/input-range/src/input-range2.mjs +26 -76
  41. package/es/components/input-range/src/input-range2.mjs.map +1 -1
  42. package/es/components/pagination/index.d.ts +2 -2
  43. package/es/components/pagination/src/index.mjs +49 -21
  44. package/es/components/pagination/src/index.mjs.map +1 -1
  45. package/es/components/pagination/src/index.vue.d.ts +2 -2
  46. package/es/components/scroll/index.d.ts +5 -0
  47. package/es/components/scroll/index.mjs +9 -0
  48. package/es/components/scroll/index.mjs.map +1 -0
  49. package/es/components/scroll/src/scroll.d.ts +2 -0
  50. package/es/components/scroll/src/scroll.mjs +88 -0
  51. package/es/components/scroll/src/scroll.mjs.map +1 -0
  52. package/es/components/scroll/src/scroll.vue.d.ts +147 -0
  53. package/es/components/scroll/src/scroll2.mjs +2 -0
  54. package/es/components/scroll/src/scroll2.mjs.map +1 -0
  55. package/es/components/scroll/style/css.d.ts +2 -0
  56. package/es/components/scroll/style/css.mjs +3 -0
  57. package/es/components/scroll/style/css.mjs.map +1 -0
  58. package/es/components/scroll/style/index.d.ts +2 -0
  59. package/es/components/scroll/style/index.mjs +3 -0
  60. package/es/components/scroll/style/index.mjs.map +1 -0
  61. package/es/components/select-input/index.d.ts +43 -4
  62. package/es/components/select-input/index.mjs +2 -2
  63. package/es/components/select-input/src/select-input.d.ts +1 -1
  64. package/es/components/select-input/src/select-input.mjs +45 -124
  65. package/es/components/select-input/src/select-input.mjs.map +1 -1
  66. package/es/components/select-input/src/select-input.vue.d.ts +43 -4
  67. package/es/components/select-input/src/select-input2.mjs +124 -45
  68. package/es/components/select-input/src/select-input2.mjs.map +1 -1
  69. package/es/components/select-textarea/src/select-textarea.d.ts +2 -1
  70. package/es/components/select-textarea/src/select-textarea.mjs +2 -1
  71. package/es/components/select-textarea/src/select-textarea.mjs.map +1 -1
  72. package/es/components/select-textarea/src/select-textarea.vue.d.ts +53 -4
  73. package/es/components/select-textarea/src/select-textarea2.mjs +14 -9
  74. package/es/components/select-textarea/src/select-textarea2.mjs.map +1 -1
  75. package/es/components/title/src/title.d.ts +6 -0
  76. package/es/components/title/src/title.mjs +4 -1
  77. package/es/components/title/src/title.mjs.map +1 -1
  78. package/es/components/title/src/title.vue.d.ts +39 -0
  79. package/es/components/title/src/title2.mjs +28 -12
  80. package/es/components/title/src/title2.mjs.map +1 -1
  81. package/es/index.mjs +3 -2
  82. package/es/index.mjs.map +1 -1
  83. package/es/version.d.ts +1 -1
  84. package/es/version.mjs +1 -1
  85. package/es/version.mjs.map +1 -1
  86. package/global.d.ts +1 -0
  87. package/lib/component.js +3 -1
  88. package/lib/component.js.map +1 -1
  89. package/lib/components/collapse/index.d.ts +161 -8
  90. package/lib/components/collapse/src/collapse.vue.d.ts +161 -8
  91. package/lib/components/collapse/src/collapse2.js +49 -28
  92. package/lib/components/collapse/src/collapse2.js.map +1 -1
  93. package/lib/components/icon/index.js +4 -0
  94. package/lib/components/icon/index.js.map +1 -1
  95. package/lib/components/icon/src/components/index.d.ts +2 -0
  96. package/lib/components/icon/src/components/index.js +12 -0
  97. package/lib/components/icon/src/components/index.js.map +1 -0
  98. package/lib/components/icon/src/components/minus-square-outline.js +33 -0
  99. package/lib/components/icon/src/components/minus-square-outline.js.map +1 -0
  100. package/lib/components/icon/src/components/minus-square-outline.vue.d.ts +2 -0
  101. package/lib/components/icon/src/components/plus-square-outline.js +33 -0
  102. package/lib/components/icon/src/components/plus-square-outline.js.map +1 -0
  103. package/lib/components/icon/src/components/plus-square-outline.vue.d.ts +2 -0
  104. package/lib/components/index.d.ts +1 -0
  105. package/lib/components/index.js +4 -2
  106. package/lib/components/index.js.map +1 -1
  107. package/lib/components/input-range/index.js +2 -2
  108. package/lib/components/input-range/src/input-range.js +76 -27
  109. package/lib/components/input-range/src/input-range.js.map +1 -1
  110. package/lib/components/input-range/src/input-range2.js +27 -76
  111. package/lib/components/input-range/src/input-range2.js.map +1 -1
  112. package/lib/components/pagination/index.d.ts +2 -2
  113. package/lib/components/pagination/src/index.js +48 -20
  114. package/lib/components/pagination/src/index.js.map +1 -1
  115. package/lib/components/pagination/src/index.vue.d.ts +2 -2
  116. package/lib/components/scroll/index.d.ts +5 -0
  117. package/lib/components/scroll/index.js +14 -0
  118. package/lib/components/scroll/index.js.map +1 -0
  119. package/lib/components/scroll/src/scroll.d.ts +2 -0
  120. package/lib/components/scroll/src/scroll.js +92 -0
  121. package/lib/components/scroll/src/scroll.js.map +1 -0
  122. package/lib/components/scroll/src/scroll.vue.d.ts +147 -0
  123. package/lib/components/scroll/src/scroll2.js +3 -0
  124. package/lib/components/scroll/src/scroll2.js.map +1 -0
  125. package/lib/components/scroll/style/css.d.ts +2 -0
  126. package/lib/components/scroll/style/css.js +6 -0
  127. package/lib/components/scroll/style/css.js.map +1 -0
  128. package/lib/components/scroll/style/index.d.ts +2 -0
  129. package/lib/components/scroll/style/index.js +6 -0
  130. package/lib/components/scroll/style/index.js.map +1 -0
  131. package/lib/components/select-input/index.d.ts +43 -4
  132. package/lib/components/select-input/index.js +2 -2
  133. package/lib/components/select-input/src/select-input.d.ts +1 -1
  134. package/lib/components/select-input/src/select-input.js +46 -124
  135. package/lib/components/select-input/src/select-input.js.map +1 -1
  136. package/lib/components/select-input/src/select-input.vue.d.ts +43 -4
  137. package/lib/components/select-input/src/select-input2.js +124 -46
  138. package/lib/components/select-input/src/select-input2.js.map +1 -1
  139. package/lib/components/select-textarea/src/select-textarea.d.ts +2 -1
  140. package/lib/components/select-textarea/src/select-textarea.js +2 -1
  141. package/lib/components/select-textarea/src/select-textarea.js.map +1 -1
  142. package/lib/components/select-textarea/src/select-textarea.vue.d.ts +53 -4
  143. package/lib/components/select-textarea/src/select-textarea2.js +13 -8
  144. package/lib/components/select-textarea/src/select-textarea2.js.map +1 -1
  145. package/lib/components/title/src/title.d.ts +6 -0
  146. package/lib/components/title/src/title.js +4 -1
  147. package/lib/components/title/src/title.js.map +1 -1
  148. package/lib/components/title/src/title.vue.d.ts +39 -0
  149. package/lib/components/title/src/title2.js +27 -11
  150. package/lib/components/title/src/title2.js.map +1 -1
  151. package/lib/index.js +34 -32
  152. package/lib/index.js.map +1 -1
  153. package/lib/version.d.ts +1 -1
  154. package/lib/version.js +1 -1
  155. package/lib/version.js.map +1 -1
  156. package/package.json +1 -1
  157. package/tags.json +1 -1
  158. package/theme/hzzt-collapse.css +1 -1
  159. package/theme/hzzt-pagination.css +1 -1
  160. package/theme/hzzt-scan.css +1 -1
  161. package/theme/hzzt-scroll.css +1 -0
  162. package/theme/hzzt-title.css +1 -1
  163. package/theme/index.css +1 -1
  164. package/theme/src/collapse.scss +45 -39
  165. package/theme/src/index.scss +1 -0
  166. package/theme/src/pagination.scss +24 -6
  167. package/theme/src/scan.scss +3 -3
  168. package/theme/src/scroll.scss +42 -0
  169. package/theme/src/title.scss +14 -5
  170. package/web-types.json +1 -1
@@ -1,4 +1,5 @@
1
1
  import * as Icons from '@element-plus/icons-vue';
2
+ import * as index from './src/components/index.mjs';
2
3
  import HzztIcon$1 from './src/index.mjs';
3
4
 
4
5
  const HzztIcon = {
@@ -7,6 +8,9 @@ const HzztIcon = {
7
8
  for (const key in Icons) {
8
9
  app.component(tarnsElIconName(key), Icons[key]);
9
10
  }
11
+ for (const key in index) {
12
+ app.component(tarnsElIconName(key), Icons[key]);
13
+ }
10
14
  }
11
15
  };
12
16
  function tarnsElIconName(name) {
@@ -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${name.replace(\n /[A-Z]/g,\n (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,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,CAAC,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 * as HzztIcons from './src/components/index'\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 for (const key in HzztIcons) {\n app.component(tarnsElIconName(key), Icons[key])\n }\n },\n}\n\nexport default HzztIcon\n\nfunction tarnsElIconName(name) {\n return `hzzt-el${name.replace(\n /[A-Z]/g,\n (match) => `-${match.toLocaleLowerCase()}`\n )}`\n}\n"],"names":["Icon","HzztIcons"],"mappings":";;;;AAGY,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,IAAI,KAAK,MAAM,GAAG,IAAIC,KAAS,EAAE;AACjC,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,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACxF;;;;"}
@@ -0,0 +1,2 @@
1
+ export { default as HzztPlusSquareOutline } from './plus-square-outline.vue';
2
+ export { default as HzztMinusSquareOutline } from './minus-square-outline.vue';
@@ -0,0 +1,3 @@
1
+ export { default as HzztPlusSquareOutline } from './plus-square-outline.mjs';
2
+ export { default as HzztMinusSquareOutline } from './minus-square-outline.mjs';
3
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,29 @@
1
+ import { defineComponent, createElementVNode, openBlock, createElementBlock } from 'vue';
2
+ import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
3
+
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ name: "HzztMinusSquareOutline"
6
+ });
7
+ const _hoisted_1 = {
8
+ "aria-hidden": "true",
9
+ class: "",
10
+ "data-icon": "minus-square",
11
+ fill: "currentColor",
12
+ focusable: "false",
13
+ height: "1em",
14
+ viewBox: "64 64 896 896",
15
+ width: "1em"
16
+ };
17
+ const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" }, null, -1);
18
+ const _hoisted_3 = /* @__PURE__ */ createElementVNode("path", { d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" }, null, -1);
19
+ const _hoisted_4 = [
20
+ _hoisted_2,
21
+ _hoisted_3
22
+ ];
23
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
24
+ return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_4);
25
+ }
26
+ var minusSquareOutline = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "minus-square-outline.vue"]]);
27
+
28
+ export { minusSquareOutline as default };
29
+ //# sourceMappingURL=minus-square-outline.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minus-square-outline.mjs","sources":["../../../../../../../packages/components/icon/src/components/minus-square-outline.vue"],"sourcesContent":["<template>\n <svg\n aria-hidden=\"true\"\n class=\"\"\n data-icon=\"minus-square\"\n fill=\"currentColor\"\n focusable=\"false\"\n height=\"1em\"\n viewBox=\"64 64 896 896\"\n width=\"1em\"\n ><path d=\"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z\" /><path d=\"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z\" /></svg>\n</template>\n\n<script lang=\"ts\" setup>\n\n defineOptions({\n name: 'HzztMinusSquareOutline',\n })\n</script>\n"],"names":["DO_defineComponent","_createElementVNode","_openBlock","_createElementBlock"],"mappings":";;;kCAegBA,eAAA,CAAA;AAAA,EACZ,IAAM,EAAA,wBAAA;AACR,CAAA,CAAA,CAAA;;EAfE,aAAY,EAAA,MAAA;AAAA,EACZ,KAAM,EAAA,EAAA;AAAA,EACN,WAAU,EAAA,cAAA;AAAA,EACV,IAAK,EAAA,cAAA;AAAA,EACL,SAAU,EAAA,OAAA;AAAA,EACV,MAAO,EAAA,KAAA;AAAA,EACP,OAAQ,EAAA,eAAA;AAAA,EACR,KAAM,EAAA,KAAA;;AACP,MAAA,UAAA,mBAAAC,kBAAA,CAAA,MAAA,EAAA,EAAA,CAAA,EAAA,2FAAA,EAAA,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAAA,MAAsG,UAAA,mBAAAA,kBAAA,CAAA,MAAA,EAAA,EAAA,CAAA,EAAA,yIAAA,EAAA,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAAA,gBAAH,GAAA;AAAA,EAAA,UAAA;AAAA,EAAA,UAAA;AAAA,CAAA,CAAA;AAAA,SAAA,WAAA,CAAA,IAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,KAAA,EAAA,QAAA,EAAA;AAAG,EAAA,OAAAC,SAAA,EAAA,EAAAC,kBAAA,CAAA,KAAA,EAAA,UAAA,EAAA,UAAA,CAAA,CAAA;AAAA,CAAoJ;AAAH,yBAAA,gBAAA,WAAA,CAAA,SAAA,EAAA,CAAA,CAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,QAAA,EAAA,0BAAA,CAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import { defineComponent, createElementVNode, openBlock, createElementBlock } from 'vue';
2
+ import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.mjs';
3
+
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ name: "HzztPlusSquareOutline"
6
+ });
7
+ const _hoisted_1 = {
8
+ "aria-hidden": "true",
9
+ class: "",
10
+ "data-icon": "plus-square",
11
+ fill: "currentColor",
12
+ focusable: "false",
13
+ height: "1em",
14
+ viewBox: "64 64 896 896",
15
+ width: "1em"
16
+ };
17
+ const _hoisted_2 = /* @__PURE__ */ createElementVNode("path", { d: "M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" }, null, -1);
18
+ const _hoisted_3 = /* @__PURE__ */ createElementVNode("path", { d: "M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z" }, null, -1);
19
+ const _hoisted_4 = [
20
+ _hoisted_2,
21
+ _hoisted_3
22
+ ];
23
+ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
24
+ return openBlock(), createElementBlock("svg", _hoisted_1, _hoisted_4);
25
+ }
26
+ var plusSquareOutline = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "plus-square-outline.vue"]]);
27
+
28
+ export { plusSquareOutline as default };
29
+ //# sourceMappingURL=plus-square-outline.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plus-square-outline.mjs","sources":["../../../../../../../packages/components/icon/src/components/plus-square-outline.vue"],"sourcesContent":["<template>\n <svg\n aria-hidden=\"true\"\n class=\"\"\n data-icon=\"plus-square\"\n fill=\"currentColor\"\n focusable=\"false\"\n height=\"1em\"\n viewBox=\"64 64 896 896\"\n width=\"1em\"\n ><path d=\"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z\" /><path d=\"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z\" /></svg>\n</template>\n\n<script lang=\"ts\" setup>\n\n defineOptions({\n name: 'HzztPlusSquareOutline',\n })\n</script>\n"],"names":["DO_defineComponent","_createElementVNode","_openBlock","_createElementBlock"],"mappings":";;;kCAegBA,eAAA,CAAA;AAAA,EACZ,IAAM,EAAA,uBAAA;AACR,CAAA,CAAA,CAAA;;EAfE,aAAY,EAAA,MAAA;AAAA,EACZ,KAAM,EAAA,EAAA;AAAA,EACN,WAAU,EAAA,aAAA;AAAA,EACV,IAAK,EAAA,cAAA;AAAA,EACL,SAAU,EAAA,OAAA;AAAA,EACV,MAAO,EAAA,KAAA;AAAA,EACP,OAAQ,EAAA,eAAA;AAAA,EACR,KAAM,EAAA,KAAA;;AACP,MAAA,UAAA,mBAAAC,kBAAA,CAAA,MAAA,EAAA,EAAA,CAAA,EAAA,2LAAA,EAAA,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAAA,MAAsM,UAAA,mBAAAA,kBAAA,CAAA,MAAA,EAAA,EAAA,CAAA,EAAA,yIAAA,EAAA,EAAA,IAAA,EAAA,CAAA,CAAA,CAAA,CAAA;AAAA,gBAAH,GAAA;AAAA,EAAA,UAAA;AAAA,EAAA,UAAA;AAAA,CAAA,CAAA;AAAA,SAAA,WAAA,CAAA,IAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,KAAA,EAAA,QAAA,EAAA;AAAG,EAAA,OAAAC,SAAA,EAAA,EAAAC,kBAAA,CAAA,KAAA,EAAA,UAAA,EAAA,UAAA,CAAA,CAAA;AAAA,CAAoJ;AAAH,wBAAA,gBAAA,WAAA,CAAA,SAAA,EAAA,CAAA,CAAA,QAAA,EAAA,WAAA,CAAA,EAAA,CAAA,QAAA,EAAA,yBAAA,CAAA,CAAA,CAAA;;;;"}
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -17,3 +17,4 @@ export * from './input-range';
17
17
  export * from './cascader';
18
18
  export * from './select';
19
19
  export * from './click-input';
20
+ export * from './scroll';
@@ -17,14 +17,15 @@ export { HzztInputRange } from './input-range/index.mjs';
17
17
  export { HzztCascader } from './cascader/index.mjs';
18
18
  export { HzztSelect } from './select/index.mjs';
19
19
  export { HzztClickInput } from './click-input/index.mjs';
20
+ export { HzztScroll } from './scroll/index.mjs';
20
21
  export { titleProps } from './title/src/title.mjs';
21
22
  export { configProviderProps } from './config-provider/src/config-provider-props.mjs';
22
23
  export { configProviderContextKey } from './config-provider/src/constants.mjs';
23
24
  export { provideGlobalConfig, useGlobalConfig } from './config-provider/src/hooks/use-global-config.mjs';
24
25
  export { scanEmits, scanProps } from './scan/src/scan.mjs';
25
- export { selectInputEmits, selectInputProps } from './select-input/src/select-input2.mjs';
26
+ export { selectInputEmits, selectInputProps } from './select-input/src/select-input.mjs';
26
27
  export { selectTextareaEmits, selectTextareaProps } from './select-textarea/src/select-textarea.mjs';
27
- export { inputRangeEmits, inputRangeProps } from './input-range/src/input-range.mjs';
28
+ export { inputRangeEmits, inputRangeProps } from './input-range/src/input-range2.mjs';
28
29
  export { cascaderEmits, cascaderProps } from './cascader/src/cascader.mjs';
29
30
  export { selectEmits, selectProps } from './select/src/select.mjs';
30
31
  export { clickInputEmits, clickInputProps } from './click-input/src/click-input.mjs';
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import '../../utils/index.mjs';
2
- import InputRange from './src/input-range2.mjs';
3
- export { inputRangeEmits, inputRangeProps } from './src/input-range.mjs';
2
+ import InputRange from './src/input-range.mjs';
3
+ export { inputRangeEmits, inputRangeProps } from './src/input-range2.mjs';
4
4
  import { withInstall } from '../../utils/vue/install.mjs';
5
5
 
6
6
  const HzztInputRange = withInstall(InputRange);
@@ -1,31 +1,81 @@
1
- import '../../../utils/index.mjs';
1
+ import { createElementVNode, defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps } from 'vue';
2
+ import { inputRangeProps, inputRangeEmits } from './input-range2.mjs';
3
+ import { useFormSize, useFormDisabled } from 'element-plus';
2
4
  import '../../../hooks/index.mjs';
3
- import '../../../constants/index.mjs';
4
- import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
- import { useSizeProp } from '../../../hooks/use-size/index.mjs';
6
- import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
7
- import { isArray } from '@vue/shared';
5
+ import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
+ import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
+ import { useGlobalSize } from '../../../hooks/use-size/index.mjs';
8
8
 
9
- const inputRangeProps = buildProps({
10
- modelValue: {
11
- type: Array,
12
- default: () => []
13
- },
14
- size: useSizeProp,
15
- disabled: Boolean,
16
- clearable: {
17
- type: Boolean,
18
- default: false
19
- },
20
- startPlaceholder: String,
21
- endPlaceholder: String,
22
- startProps: Object,
23
- endProps: Object
9
+ const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", { class: "margin-h-1" }, "\u2014\u2014", -1);
10
+ const __default__ = defineComponent({
11
+ name: "HzztInputRange"
24
12
  });
25
- const inputRangeEmits = {
26
- [UPDATE_MODEL_EVENT]: (val) => isArray(val),
27
- [CHANGE_EVENT]: (val) => isArray(val)
28
- };
13
+ const _sfc_main = /* @__PURE__ */ defineComponent({
14
+ ...__default__,
15
+ props: inputRangeProps,
16
+ emits: inputRangeEmits,
17
+ setup(__props, { emit }) {
18
+ const props = __props;
19
+ const startValue = ref(props.modelValue[0]);
20
+ const endValue = ref(props.modelValue[1]);
21
+ const nsInput = useNamespace("input-range");
22
+ const formSize = useFormSize();
23
+ const formDisabled = useFormDisabled();
24
+ const trueSize = computed(() => props.size || formSize.value || useGlobalSize().value);
25
+ const trueDisabled = computed(() => props.disabled || formDisabled.value);
26
+ const containerCls = computed(() => [
27
+ nsInput.b(),
28
+ nsInput.m(trueSize.value)
29
+ ]);
30
+ watch(() => props.modelValue, (v) => {
31
+ startValue.value = v[0];
32
+ endValue.value = v[1];
33
+ }, {
34
+ deep: true
35
+ });
36
+ function change() {
37
+ if (startValue.value || endValue.value) {
38
+ const modelValue = [startValue.value, endValue.value];
39
+ emit("update:modelValue", modelValue);
40
+ emit("change", modelValue);
41
+ } else if (!startValue.value && !endValue.value) {
42
+ emit("update:modelValue", []);
43
+ emit("change", []);
44
+ }
45
+ }
46
+ return (_ctx, _cache) => {
47
+ const _component_el_input = resolveComponent("el-input");
48
+ return openBlock(), createElementBlock("div", {
49
+ class: normalizeClass(["flex align-items-center", unref(containerCls)])
50
+ }, [
51
+ createVNode(_component_el_input, mergeProps({
52
+ modelValue: startValue.value,
53
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => startValue.value = $event)
54
+ }, _ctx.startProps, {
55
+ clearable: _ctx.clearable,
56
+ placeholder: _ctx.startPlaceholder,
57
+ size: unref(trueSize),
58
+ disabled: unref(trueDisabled),
59
+ class: "flex-1",
60
+ onChange: change
61
+ }), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"]),
62
+ _hoisted_1,
63
+ createVNode(_component_el_input, mergeProps({
64
+ modelValue: endValue.value,
65
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => endValue.value = $event)
66
+ }, _ctx.endProps, {
67
+ clearable: _ctx.clearable,
68
+ placeholder: _ctx.endPlaceholder,
69
+ size: unref(trueSize),
70
+ disabled: unref(trueDisabled),
71
+ class: "flex-1",
72
+ onChange: change
73
+ }), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"])
74
+ ], 2);
75
+ };
76
+ }
77
+ });
78
+ var InputRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-range.vue"]]);
29
79
 
30
- export { inputRangeEmits, inputRangeProps };
80
+ export { InputRange as default };
31
81
  //# sourceMappingURL=input-range.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-range.mjs","sources":["../../../../../../packages/components/input-range/src/input-range.ts"],"sourcesContent":["import {buildProps, isArray} from '@hzzt-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type InputRange from './input-range.vue'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\nimport {CHANGE_EVENT, UPDATE_MODEL_EVENT} from \"@hzzt-plus/constants\";\n\nexport const inputRangeProps = buildProps({\n modelValue: {\n type: Array,\n default: () => [],\n },\n size: useSizeProp,\n disabled: Boolean,\n clearable: {\n type: Boolean,\n default: false,\n },\n startPlaceholder: String,\n endPlaceholder: String,\n startProps: Object,\n endProps: Object,\n})\n\nexport type InputRangeProps = ExtractPropTypes<typeof inputRangeProps>\n\nexport const inputRangeEmits = {\n [UPDATE_MODEL_EVENT]: (val: Array<string>) => isArray(val),\n [CHANGE_EVENT]: (val: Array<string>) => isArray(val),\n}\nexport type InputRangeEmits = typeof inputRangeEmits\n\nexport type InputRangeInstance = InstanceType<typeof InputRange>\n"],"names":[],"mappings":";;;;;;;;AAGY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,gBAAgB,EAAE,MAAM;AAC1B,EAAE,cAAc,EAAE,MAAM;AACxB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;AAC7C,EAAE,CAAC,YAAY,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;AACvC;;;;"}
1
+ {"version":3,"file":"input-range.mjs","sources":["../../../../../../packages/components/input-range/src/input-range.vue"],"sourcesContent":["<template>\n <div class=\"flex align-items-center\" :class=\"containerCls\">\n <el-input\n v-model=\"startValue\"\n v-bind=\"startProps\"\n :clearable=\"clearable\"\n :placeholder=\"startPlaceholder\"\n :size=\"trueSize\"\n :disabled=\"trueDisabled\"\n class=\"flex-1\"\n @change=\"change\"\n />\n <span class=\"margin-h-1\">——</span>\n <el-input\n v-model=\"endValue\"\n v-bind=\"endProps\"\n :clearable=\"clearable\"\n :placeholder=\"endPlaceholder\"\n :size=\"trueSize\"\n :disabled=\"trueDisabled\"\n class=\"flex-1\"\n @change=\"change\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {inputRangeEmits, inputRangeProps} from './input-range'\n import {useFormDisabled, useFormSize} from \"element-plus\";\n import {computed, ref, watch} from \"vue\";\n import {useGlobalSize, useNamespace} from \"@hzzt-plus/hooks\";\n\n defineOptions({\n name: 'HzztInputRange',\n })\n\n const props = defineProps(inputRangeProps)\n const emit = defineEmits(inputRangeEmits)\n\n const startValue = ref(props.modelValue[0])\n const endValue = ref(props.modelValue[1])\n\n const nsInput = useNamespace('input-range')\n\n const formSize = useFormSize()\n const formDisabled = useFormDisabled()\n\n const trueSize = computed(\n () => props.size || formSize.value || useGlobalSize().value\n )\n\n const trueDisabled = computed(() => props.disabled || formDisabled.value)\n\n const containerCls = computed(() => [\n nsInput.b(),\n nsInput.m(trueSize.value),\n ])\n\n watch(() => props.modelValue, (v) => {\n startValue.value = v[0];\n endValue.value = v[1];\n }, {\n deep: true,\n })\n\n function change() {\n if (startValue.value || endValue.value) {\n const modelValue = [startValue.value, endValue.value] as Array<string>;\n emit('update:modelValue', modelValue);\n emit('change', modelValue);\n } else if (!startValue.value && !endValue.value) {\n emit('update:modelValue', []);\n emit('change', []);\n }\n }\n\n</script>\n"],"names":["_defineComponent","_resolveComponent","_openBlock","_createElementBlock","_unref","_createVNode","_mergeProps"],"mappings":";;;;;;;;;;AA2BE,EAAA,IAAA,EAAA;AACA,CAAA,CAAA,CAAA;AACA,MAAQ,SAAA,mBAA2BA,eAAA,CAAA;AACnC,EAAA,GAAA;;wBAEc;AAAA,EACZ,KAAM,CAAA,OAAA,EAAA,EAAA,IAAA,EAAA,EAAA;AACR,IAAA,MAAA,KAAA,GAAA,OAAA,CAAA;;;;;;;AAKA,IAAA,MAAM,YAAa,GAAA,QAAU,CAAA,MAAA,KAAY,CAAC,QAAA,IAAA,YAAA,CAAA,KAAA,CAAA,CAAA;AAC1C,IAAA,MAAM,YAAW,GAAI,QAAM,CAAA,MAAA;AAE3B,MAAM,OAAA,CAAA,CAAA,EAAA;AAEN,MAAA,kBAA6B,CAAA,KAAA,CAAA;AAC7B,KAAA,CAAA,CAAA;AAEA,IAAA,KAAA,CAAM,MAAW,KAAA,CAAA,UAAA,EAAA,CAAA,CAAA,KAAA;AAAA,MACf,UAAY,CAAA,KAAA,GAAA,CAAQ,CAAS,CAAA,CAAA,CAAA;AAAyB,MACxD,QAAA,CAAA,KAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAEA,KAAA,EAAA;AAEA,MAAM,IAAA,EAAA,IAAA;AAA8B,KAAA,CAClC;AAAU,IACV,SAAA,MAAU,GAAA;AAAc,MACzB,IAAA,UAAA,CAAA,KAAA,IAAA,QAAA,CAAA,KAAA,EAAA;AAED,QAAA,MAAY,UAAkB,GAAA,CAAA,UAAO,CAAA,KAAA,EAAA,QAAA,CAAA,KAAA,CAAA,CAAA;AACnC,QAAW,IAAA,CAAA,mBAAW,EAAA,UAAA,CAAA,CAAA;AACtB,QAAS,IAAA,CAAA,QAAA,EAAQ,UAAG,CAAA,CAAA;AAAA,OACnB,MAAA,IAAA,CAAA,UAAA,CAAA,KAAA,IAAA,CAAA,QAAA,CAAA,KAAA,EAAA;AAAA,QACK,IAAA,CAAA,mBAAA,EAAA,EAAA,CAAA,CAAA;AAAA,QACP,IAAA,CAAA,QAAA,EAAA,EAAA,CAAA,CAAA;AAED,OAAA;AACE,KAAI;AACF,IAAA,OAAA,CAAA,IAAmB,EAAA,MAAA,KAAY;AAC/B,MAAA,MAAA,sBAA0BC,gBAAU,CAAA,UAAA,CAAA,CAAA;AACpC,MAAA,OAAKC,SAAU,EAAU,EAAAC,kBAAA,CAAA,KAAA,EAAA;AAAA,6BACK,CAAA,CAAA,yBAAiB,EAAAC,KAAA,CAAA,YAAA,CAAA,CAAA,CAAA;AAC/C,OAAK,EAAA;AACL,QAAKC,WAAA,CAAA,mBAAY,EAAAC,UAAA,CAAA;AAAA,UACnB,UAAA,EAAA,UAAA,CAAA,KAAA;AAAA,UACF,qBAAA,EAAA,MAAA,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,MAAA,KAAA,UAAA,CAAA,KAAA,GAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,81 +1,31 @@
1
- import { createElementVNode, defineComponent, ref, computed, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createVNode, mergeProps } from 'vue';
2
- import { inputRangeProps, inputRangeEmits } from './input-range.mjs';
3
- import { useFormSize, useFormDisabled } from 'element-plus';
1
+ import '../../../utils/index.mjs';
4
2
  import '../../../hooks/index.mjs';
5
- import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
6
- import { useNamespace } from '../../../hooks/use-namespace/index.mjs';
7
- import { useGlobalSize } from '../../../hooks/use-size/index.mjs';
3
+ import '../../../constants/index.mjs';
4
+ import { buildProps } from '../../../utils/vue/props/runtime.mjs';
5
+ import { useSizeProp } from '../../../hooks/use-size/index.mjs';
6
+ import { UPDATE_MODEL_EVENT, CHANGE_EVENT } from '../../../constants/event.mjs';
7
+ import { isArray } from '@vue/shared';
8
8
 
9
- const _hoisted_1 = /* @__PURE__ */ createElementVNode("span", { class: "margin-h-1" }, "\u2014\u2014", -1);
10
- const __default__ = defineComponent({
11
- name: "HzztInputRange"
9
+ const inputRangeProps = buildProps({
10
+ modelValue: {
11
+ type: Array,
12
+ default: () => []
13
+ },
14
+ size: useSizeProp,
15
+ disabled: Boolean,
16
+ clearable: {
17
+ type: Boolean,
18
+ default: false
19
+ },
20
+ startPlaceholder: String,
21
+ endPlaceholder: String,
22
+ startProps: Object,
23
+ endProps: Object
12
24
  });
13
- const _sfc_main = /* @__PURE__ */ defineComponent({
14
- ...__default__,
15
- props: inputRangeProps,
16
- emits: inputRangeEmits,
17
- setup(__props, { emit }) {
18
- const props = __props;
19
- const startValue = ref(props.modelValue[0]);
20
- const endValue = ref(props.modelValue[1]);
21
- const nsInput = useNamespace("input-range");
22
- const formSize = useFormSize();
23
- const formDisabled = useFormDisabled();
24
- const trueSize = computed(() => props.size || formSize.value || useGlobalSize().value);
25
- const trueDisabled = computed(() => props.disabled || formDisabled.value);
26
- const containerCls = computed(() => [
27
- nsInput.b(),
28
- nsInput.m(trueSize.value)
29
- ]);
30
- watch(() => props.modelValue, (v) => {
31
- startValue.value = v[0];
32
- endValue.value = v[1];
33
- }, {
34
- deep: true
35
- });
36
- function change() {
37
- if (startValue.value || endValue.value) {
38
- const modelValue = [startValue.value, endValue.value];
39
- emit("update:modelValue", modelValue);
40
- emit("change", modelValue);
41
- } else if (!startValue.value && !endValue.value) {
42
- emit("update:modelValue", []);
43
- emit("change", []);
44
- }
45
- }
46
- return (_ctx, _cache) => {
47
- const _component_el_input = resolveComponent("el-input");
48
- return openBlock(), createElementBlock("div", {
49
- class: normalizeClass(["flex align-items-center", unref(containerCls)])
50
- }, [
51
- createVNode(_component_el_input, mergeProps({
52
- modelValue: startValue.value,
53
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => startValue.value = $event)
54
- }, _ctx.startProps, {
55
- clearable: _ctx.clearable,
56
- placeholder: _ctx.startPlaceholder,
57
- size: unref(trueSize),
58
- disabled: unref(trueDisabled),
59
- class: "flex-1",
60
- onChange: change
61
- }), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"]),
62
- _hoisted_1,
63
- createVNode(_component_el_input, mergeProps({
64
- modelValue: endValue.value,
65
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => endValue.value = $event)
66
- }, _ctx.endProps, {
67
- clearable: _ctx.clearable,
68
- placeholder: _ctx.endPlaceholder,
69
- size: unref(trueSize),
70
- disabled: unref(trueDisabled),
71
- class: "flex-1",
72
- onChange: change
73
- }), null, 16, ["modelValue", "clearable", "placeholder", "size", "disabled"])
74
- ], 2);
75
- };
76
- }
77
- });
78
- var InputRange = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "input-range.vue"]]);
25
+ const inputRangeEmits = {
26
+ [UPDATE_MODEL_EVENT]: (val) => isArray(val),
27
+ [CHANGE_EVENT]: (val) => isArray(val)
28
+ };
79
29
 
80
- export { InputRange as default };
30
+ export { inputRangeEmits, inputRangeProps };
81
31
  //# sourceMappingURL=input-range2.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"input-range2.mjs","sources":["../../../../../../packages/components/input-range/src/input-range.vue"],"sourcesContent":["<template>\n <div class=\"flex align-items-center\" :class=\"containerCls\">\n <el-input\n v-model=\"startValue\"\n v-bind=\"startProps\"\n :clearable=\"clearable\"\n :placeholder=\"startPlaceholder\"\n :size=\"trueSize\"\n :disabled=\"trueDisabled\"\n class=\"flex-1\"\n @change=\"change\"\n />\n <span class=\"margin-h-1\">——</span>\n <el-input\n v-model=\"endValue\"\n v-bind=\"endProps\"\n :clearable=\"clearable\"\n :placeholder=\"endPlaceholder\"\n :size=\"trueSize\"\n :disabled=\"trueDisabled\"\n class=\"flex-1\"\n @change=\"change\"\n />\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import {inputRangeEmits, inputRangeProps} from './input-range'\n import {useFormDisabled, useFormSize} from \"element-plus\";\n import {computed, ref, watch} from \"vue\";\n import {useGlobalSize, useNamespace} from \"@hzzt-plus/hooks\";\n\n defineOptions({\n name: 'HzztInputRange',\n })\n\n const props = defineProps(inputRangeProps)\n const emit = defineEmits(inputRangeEmits)\n\n const startValue = ref(props.modelValue[0])\n const endValue = ref(props.modelValue[1])\n\n const nsInput = useNamespace('input-range')\n\n const formSize = useFormSize()\n const formDisabled = useFormDisabled()\n\n const trueSize = computed(\n () => props.size || formSize.value || useGlobalSize().value\n )\n\n const trueDisabled = computed(() => props.disabled || formDisabled.value)\n\n const containerCls = computed(() => [\n nsInput.b(),\n nsInput.m(trueSize.value),\n ])\n\n watch(() => props.modelValue, (v) => {\n startValue.value = v[0];\n endValue.value = v[1];\n }, {\n deep: true,\n })\n\n function change() {\n if (startValue.value || endValue.value) {\n const modelValue = [startValue.value, endValue.value] as Array<string>;\n emit('update:modelValue', modelValue);\n emit('change', modelValue);\n } else if (!startValue.value && !endValue.value) {\n emit('update:modelValue', []);\n emit('change', []);\n }\n }\n\n</script>\n"],"names":["_defineComponent","_resolveComponent","_openBlock","_createElementBlock","_unref","_createVNode","_mergeProps"],"mappings":";;;;;;;;;;AA2BE,EAAA,IAAA,EAAA;AACA,CAAA,CAAA,CAAA;AACA,MAAQ,SAAA,mBAA2BA,eAAA,CAAA;AACnC,EAAA,GAAA;;wBAEc;AAAA,EACZ,KAAM,CAAA,OAAA,EAAA,EAAA,IAAA,EAAA,EAAA;AACR,IAAA,MAAA,KAAA,GAAA,OAAA,CAAA;;;;;;;AAKA,IAAA,MAAM,YAAa,GAAA,QAAU,CAAA,MAAA,KAAY,CAAC,QAAA,IAAA,YAAA,CAAA,KAAA,CAAA,CAAA;AAC1C,IAAA,MAAM,YAAW,GAAI,QAAM,CAAA,MAAA;AAE3B,MAAM,OAAA,CAAA,CAAA,EAAA;AAEN,MAAA,kBAA6B,CAAA,KAAA,CAAA;AAC7B,KAAA,CAAA,CAAA;AAEA,IAAA,KAAA,CAAM,MAAW,KAAA,CAAA,UAAA,EAAA,CAAA,CAAA,KAAA;AAAA,MACf,UAAY,CAAA,KAAA,GAAA,CAAQ,CAAS,CAAA,CAAA,CAAA;AAAyB,MACxD,QAAA,CAAA,KAAA,GAAA,CAAA,CAAA,CAAA,CAAA,CAAA;AAEA,KAAA,EAAA;AAEA,MAAM,IAAA,EAAA,IAAA;AAA8B,KAAA,CAClC;AAAU,IACV,SAAA,MAAU,GAAA;AAAc,MACzB,IAAA,UAAA,CAAA,KAAA,IAAA,QAAA,CAAA,KAAA,EAAA;AAED,QAAA,MAAY,UAAkB,GAAA,CAAA,UAAO,CAAA,KAAA,EAAA,QAAA,CAAA,KAAA,CAAA,CAAA;AACnC,QAAW,IAAA,CAAA,mBAAW,EAAA,UAAA,CAAA,CAAA;AACtB,QAAS,IAAA,CAAA,QAAA,EAAQ,UAAG,CAAA,CAAA;AAAA,OACnB,MAAA,IAAA,CAAA,UAAA,CAAA,KAAA,IAAA,CAAA,QAAA,CAAA,KAAA,EAAA;AAAA,QACK,IAAA,CAAA,mBAAA,EAAA,EAAA,CAAA,CAAA;AAAA,QACP,IAAA,CAAA,QAAA,EAAA,EAAA,CAAA,CAAA;AAED,OAAA;AACE,KAAI;AACF,IAAA,OAAA,CAAA,IAAmB,EAAA,MAAA,KAAY;AAC/B,MAAA,MAAA,sBAA0BC,gBAAU,CAAA,UAAA,CAAA,CAAA;AACpC,MAAA,OAAKC,SAAU,EAAU,EAAAC,kBAAA,CAAA,KAAA,EAAA;AAAA,6BACK,CAAA,CAAA,yBAAiB,EAAAC,KAAA,CAAA,YAAA,CAAA,CAAA,CAAA;AAC/C,OAAK,EAAA;AACL,QAAKC,WAAA,CAAA,mBAAY,EAAAC,UAAA,CAAA;AAAA,UACnB,UAAA,EAAA,UAAA,CAAA,KAAA;AAAA,UACF,qBAAA,EAAA,MAAA,CAAA,CAAA,CAAA,KAAA,MAAA,CAAA,CAAA,CAAA,GAAA,CAAA,MAAA,KAAA,UAAA,CAAA,KAAA,GAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"input-range2.mjs","sources":["../../../../../../packages/components/input-range/src/input-range.ts"],"sourcesContent":["import {buildProps, isArray} from '@hzzt-plus/utils'\n\nimport type { ExtractPropTypes } from 'vue'\nimport type InputRange from './input-range.vue'\nimport {useSizeProp} from \"@hzzt-plus/hooks\";\nimport {CHANGE_EVENT, UPDATE_MODEL_EVENT} from \"@hzzt-plus/constants\";\n\nexport const inputRangeProps = buildProps({\n modelValue: {\n type: Array,\n default: () => [],\n },\n size: useSizeProp,\n disabled: Boolean,\n clearable: {\n type: Boolean,\n default: false,\n },\n startPlaceholder: String,\n endPlaceholder: String,\n startProps: Object,\n endProps: Object,\n})\n\nexport type InputRangeProps = ExtractPropTypes<typeof inputRangeProps>\n\nexport const inputRangeEmits = {\n [UPDATE_MODEL_EVENT]: (val: Array<string>) => isArray(val),\n [CHANGE_EVENT]: (val: Array<string>) => isArray(val),\n}\nexport type InputRangeEmits = typeof inputRangeEmits\n\nexport type InputRangeInstance = InstanceType<typeof InputRange>\n"],"names":[],"mappings":";;;;;;;;AAGY,MAAC,eAAe,GAAG,UAAU,CAAC;AAC1C,EAAE,UAAU,EAAE;AACd,IAAI,IAAI,EAAE,KAAK;AACf,IAAI,OAAO,EAAE,MAAM,EAAE;AACrB,GAAG;AACH,EAAE,IAAI,EAAE,WAAW;AACnB,EAAE,QAAQ,EAAE,OAAO;AACnB,EAAE,SAAS,EAAE;AACb,IAAI,IAAI,EAAE,OAAO;AACjB,IAAI,OAAO,EAAE,KAAK;AAClB,GAAG;AACH,EAAE,gBAAgB,EAAE,MAAM;AAC1B,EAAE,cAAc,EAAE,MAAM;AACxB,EAAE,UAAU,EAAE,MAAM;AACpB,EAAE,QAAQ,EAAE,MAAM;AAClB,CAAC,EAAE;AACS,MAAC,eAAe,GAAG;AAC/B,EAAE,CAAC,kBAAkB,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;AAC7C,EAAE,CAAC,YAAY,GAAG,CAAC,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC;AACvC;;;;"}
@@ -23,8 +23,8 @@ export declare const HzztPagination: import("hzzt-plus/es/utils").SFCWithInstall
23
23
  }>>;
24
24
  emit: (event: "prev" | "next", ...args: any[]) => void;
25
25
  t: import("../..").Translator;
26
- prePage: () => false | undefined;
27
- nextPage: () => false | undefined;
26
+ pageChange: (type: string, page?: number | undefined) => void;
27
+ handleJumpPage: (val: string | number) => void;
28
28
  HzztIcon: import("vue").DefineComponent<{
29
29
  name: {
30
30
  type: StringConstructor;
@@ -1,13 +1,16 @@
1
- import { defineComponent, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, renderSlot, createVNode, normalizeClass } from 'vue';
1
+ import { createElementVNode, defineComponent, resolveComponent, openBlock, createElementBlock, createTextVNode, toDisplayString, unref, renderSlot, createVNode, normalizeClass } from 'vue';
2
2
  import HzztIcon from '../../icon/src/index.mjs';
3
3
  import '../../../hooks/index.mjs';
4
4
  import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
5
5
  import { useLocale } from '../../../hooks/use-locale/index.mjs';
6
6
 
7
- const _hoisted_1 = { class: "flex justify-content-between hzzt-pagination" };
8
- const _hoisted_2 = { class: "flex align-items-center font-12 hzzt-pagination-total" };
9
- const _hoisted_3 = { class: "flex align-items-center hzzt-pagination-page font-14" };
10
- const _hoisted_4 = { class: "flex" };
7
+ const _hoisted_1 = { class: "flex align-items-center justify-content-between hzzt-pagination" };
8
+ const _hoisted_2 = { class: "flex flex-1" };
9
+ const _hoisted_3 = { class: "font-14" };
10
+ const _hoisted_4 = { class: "hzzt-pagination__count" };
11
+ const _hoisted_5 = { class: "flex-1" };
12
+ const _hoisted_6 = { class: "font-14 flex align-items-center" };
13
+ const _hoisted_7 = /* @__PURE__ */ createElementVNode("span", { class: "margin-h-2" }, "/", -1);
11
14
  const __default__ = defineComponent({
12
15
  name: "HzztPagination"
13
16
  });
@@ -27,35 +30,60 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
30
  setup(__props, { emit }) {
28
31
  const props = __props;
29
32
  const { t } = useLocale();
30
- function prePage() {
31
- if (props.pagination.current_page > 1) {
32
- emit("prev", props.pagination.current_page - 1);
33
- } else {
34
- return false;
33
+ function pageChange(type, page) {
34
+ if (type === "next" && props.pagination.current_page >= props.pagination.total_pages || type === "prev" && props.pagination.current_page <= 1)
35
+ return;
36
+ if (type === "jump") {
37
+ emit("next", page);
38
+ return;
35
39
  }
36
- }
37
- function nextPage() {
38
- if (props.pagination.current_page < props.pagination.total_pages) {
40
+ if (type === "next") {
39
41
  emit("next", props.pagination.current_page + 1);
40
42
  } else {
41
- return false;
43
+ emit("prev", props.pagination.current_page - 1);
44
+ }
45
+ }
46
+ function handleJumpPage(val) {
47
+ val = Math.trunc(+val);
48
+ if (val > props.pagination.total_pages) {
49
+ val = props.pagination.total_pages;
50
+ } else if (val < 1) {
51
+ val = 1;
42
52
  }
53
+ pageChange("jump", Number(val));
43
54
  }
44
55
  return (_ctx, _cache) => {
56
+ const _component_el_input = resolveComponent("el-input");
45
57
  return openBlock(), createElementBlock("div", _hoisted_1, [
46
- createElementVNode("p", _hoisted_2, toDisplayString(unref(t)("hzzt.pagination.total")) + toDisplayString(__props.pagination.total) + toDisplayString(unref(t)("hzzt.pagination.strip")), 1),
47
- createElementVNode("div", _hoisted_3, [
58
+ createElementVNode("div", _hoisted_2, [
59
+ createElementVNode("div", _hoisted_3, [
60
+ createTextVNode(toDisplayString(unref(t)("hzzt.pagination.total")) + " ", 1),
61
+ createElementVNode("span", _hoisted_4, toDisplayString(__props.pagination.total || 0), 1),
62
+ createTextVNode(" " + toDisplayString(unref(t)("hzzt.pagination.strip")), 1)
63
+ ]),
64
+ createElementVNode("div", _hoisted_5, [
65
+ renderSlot(_ctx.$slots, "left")
66
+ ])
67
+ ]),
68
+ createElementVNode("div", _hoisted_6, [
48
69
  renderSlot(_ctx.$slots, "right"),
49
70
  createVNode(HzztIcon, {
50
- class: normalizeClass(["hzzt-pagination-arrow", { active: __props.pagination.current_page > 1 }]),
71
+ class: normalizeClass([{ "is-disabled": __props.pagination.current_page === 1 }, "margin-r-1 hzzt-pagination__icon"]),
51
72
  name: "arrow-left",
52
- onClick: prePage
73
+ onClick: _cache[0] || (_cache[0] = ($event) => pageChange("prev"))
53
74
  }, null, 8, ["class"]),
54
- createElementVNode("p", _hoisted_4, toDisplayString(__props.pagination.current_page) + "/" + toDisplayString(__props.pagination.total_pages), 1),
75
+ createVNode(_component_el_input, {
76
+ modelValue: __props.pagination.current_page,
77
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.pagination.current_page = $event),
78
+ class: "hzzt-pagination__input",
79
+ onChange: handleJumpPage
80
+ }, null, 8, ["modelValue"]),
81
+ _hoisted_7,
82
+ createElementVNode("span", null, toDisplayString(__props.pagination.total_pages), 1),
55
83
  createVNode(HzztIcon, {
56
- class: normalizeClass(["hzzt-pagination-arrow", { active: __props.pagination.current_page < __props.pagination.total_pages }]),
84
+ class: normalizeClass([{ "is-disabled": __props.pagination.current_page === __props.pagination.total_pages }, "margin-l-1 hzzt-pagination__icon"]),
57
85
  name: "arrow-right",
58
- onClick: nextPage
86
+ onClick: _cache[2] || (_cache[2] = ($event) => pageChange("next"))
59
87
  }, null, 8, ["class"])
60
88
  ])
61
89
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/pagination/src/index.vue"],"sourcesContent":["<template>\n <div class=\"flex justify-content-between hzzt-pagination\">\n <p class=\"flex align-items-center font-12 hzzt-pagination-total\">\n {{ t('hzzt.pagination.total') }}{{ pagination.total\n }}{{ t('hzzt.pagination.strip') }}\n </p>\n <div class=\"flex align-items-center hzzt-pagination-page font-14\">\n <slot name=\"right\" />\n <hzzt-icon\n class=\"hzzt-pagination-arrow\"\n :class=\"{ active: pagination.current_page > 1 }\"\n name=\"arrow-left\"\n @click=\"prePage\"\n />\n <p class=\"flex\">\n {{ pagination.current_page }}/{{ pagination.total_pages }}\n </p>\n <hzzt-icon\n class=\"hzzt-pagination-arrow\"\n :class=\"{ active: pagination.current_page < pagination.total_pages }\"\n name=\"arrow-right\"\n @click=\"nextPage\"\n />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\nimport HzztIcon from '@hzzt-plus/components/icon/src/index.vue'\nimport { useLocale } from '@hzzt-plus/hooks'\n\ndefineOptions({\n name: 'HzztPagination',\n})\n\nconst props = defineProps({\n pagination: {\n type: Object,\n default: () => ({\n total: 0,\n current_page: 1,\n total_pages: 1,\n }),\n },\n})\n\nconst emit = defineEmits(['prev', 'next'])\nconst { t } = useLocale()\n\nfunction prePage() {\n if (props.pagination.current_page > 1) {\n emit('prev', props.pagination.current_page - 1)\n } else {\n return false\n }\n}\n\nfunction nextPage() {\n if (props.pagination.current_page < props.pagination.total_pages) {\n emit('next', props.pagination.current_page + 1)\n } else {\n return false\n }\n}\n</script>\n"],"names":[],"mappings":";;;;;;;;;;mCA+Bc,CAAA;AAAA,EACZ,IAAM,EAAA,gBAAA;AACR,CAAA,CAAA,CAAA;;;;;;;;;;;;;;;;AAcA,IAAM,MAAA,EAAE,CAAE,EAAA,GAAI,SAAU,EAAA,CAAA;AAExB,IAAA,SAAS,OAAU,GAAA;AACjB,MAAI,IAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAG,EAAA;AACrC,QAAA,IAAA,CAAK,MAAQ,EAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAC,CAAA,CAAA;AAAA,OACzC,MAAA;AACL,QAAO,OAAA,KAAA,CAAA;AAAA,OACT;AAAA,KACF;AAEA,IAAA,SAAS,QAAW,GAAA;AAClB,MAAA,IAAI,KAAM,CAAA,UAAA,CAAW,YAAe,GAAA,KAAA,CAAM,WAAW,WAAa,EAAA;AAChE,QAAA,IAAA,CAAK,MAAQ,EAAA,KAAA,CAAM,UAAW,CAAA,YAAA,GAAe,CAAC,CAAA,CAAA;AAAA,OACzC,MAAA;AACL,QAAO,OAAA,KAAA,CAAA;AAAA,OACT;AAAA,KACF;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../../packages/components/pagination/src/index.vue"],"sourcesContent":["<template>\n <div class=\"flex align-items-center justify-content-between hzzt-pagination\">\n <div class=\"flex flex-1\">\n <div class=\"font-14\">\n {{ t('hzzt.pagination.total') }}\n <span class=\"hzzt-pagination__count\">{{ pagination.total || 0 }}</span>\n {{ t('hzzt.pagination.strip') }}\n </div>\n <div class=\"flex-1\">\n <slot name=\"left\" />\n </div>\n </div>\n <div class=\"font-14 flex align-items-center\">\n <slot name=\"right\" />\n <hzzt-icon :class=\"{'is-disabled': pagination.current_page === 1}\" class=\"margin-r-1 hzzt-pagination__icon\"\n name=\"arrow-left\"\n @click=\"pageChange('prev')\" />\n <el-input v-model=\"pagination.current_page\" class=\"hzzt-pagination__input\" @change=\"handleJumpPage\" />\n <span class=\"margin-h-2\">/</span>\n <span>{{ pagination.total_pages }}</span>\n <hzzt-icon :class=\"{'is-disabled': pagination.current_page === pagination.total_pages}\"\n class=\"margin-l-1 hzzt-pagination__icon\"\n name=\"arrow-right\" @click=\"pageChange('next')\" />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\" setup>\n import HzztIcon from '@hzzt-plus/components/icon/src/index.vue'\n import {useLocale} from '@hzzt-plus/hooks'\n\n defineOptions({\n name: 'HzztPagination',\n })\n\n const props = defineProps({\n pagination: {\n type: Object,\n default: () => ({\n total: 0,\n current_page: 1,\n total_pages: 1,\n }),\n },\n })\n\n const emit = defineEmits(['prev', 'next'])\n const {t} = useLocale()\n\n function pageChange(type: string, page?: number) {\n if ((type === 'next' && props.pagination.current_page >= props.pagination.total_pages) ||\n (type === 'prev' && props.pagination.current_page <= 1)\n ) return;\n if (type === 'jump') {\n emit('next', page);\n return;\n }\n if (type === 'next') {\n emit('next', props.pagination.current_page + 1);\n } else {\n emit('prev', props.pagination.current_page - 1);\n }\n }\n\n function handleJumpPage(val: string | number) {\n val = Math.trunc(+val);\n if (val > props.pagination.total_pages) {\n val = props.pagination.total_pages;\n } else if (val < 1) {\n val = 1;\n }\n pageChange('jump', Number(val));\n }\n</script>\n"],"names":["_defineComponent","_resolveComponent","_openBlock","_createElementBlock","_createElementVNode","_createTextVNode","_toDisplayString","_unref"],"mappings":";;;;;;;;;;;;;;;;AA4BE,MAAA,SAAqB,mBAAAA,eAAA,CAAA;AACrB,EAAA,GAAA,WAAwB;;;AAEV,MACN,IAAA,EAAA,MAAA;AACR,MAAA,OAAA,EAAA,OAAA;;;;;;;;;;;;;;;;AAcA,QAAM,OAAE;AAER,OAAS;AACP,MAAA,IAAK,IAAS,KAAA,MAAA,EAAA;AAEZ,QAAA,IAAA,CAAA,MAAA,EAAA,KAAA,CAAA,UAAA,CAAA,YAAA,GAAA,CAAA,CAAA,CAAA;AACF,OAAA;AACE,QAAA,IAAA,CAAK,QAAQ,KAAI,CAAA,UAAA,CAAA,YAAA,GAAA,CAAA,CAAA,CAAA;AACjB,OAAA;AAAA,KACF;AACA,IAAA,uBAAqB,CAAA,GAAA,EAAA;AACnB,MAAA,GAAA,GAAA,IAAa,CAAA,KAAA,CAAA,CAAA,GAAM,CAAW,CAAA;AAAgB,MAChD,IAAO,GAAA,GAAA,KAAA,CAAA,UAAA,CAAA,WAAA,EAAA;AACL,QAAA,GAAA,GAAa,KAAA,CAAA,UAAiB,CAAA,WAAA,CAAA;AAAgB,OAChD,MAAA,IAAA,GAAA,GAAA,CAAA,EAAA;AAAA,QACF,GAAA,GAAA,CAAA,CAAA;AAEA,OAAA;AACE,MAAM,UAAA,CAAK,MAAM,EAAI,MAAA,CAAA,GAAA,CAAA,CAAA,CAAA;AACrB,KAAI;AACF,IAAA,OAAA,CAAA,YAAuB,KAAA;AAAA,MACzB,MAAA,mBAAoB,GAAAC,gBAAA,CAAA,UAAA,CAAA,CAAA;AAClB,MAAM,OAAAC,SAAA,EAAA,EAAAC,kBAAA,CAAA,KAAA,EAAA,UAAA,EAAA;AAAA,QACRC,kBAAA,CAAA,KAAA,EAAA,UAAA,EAAA;AACA,UAAWA,kBAAe,CAAA,KAAG,EAAC,UAAA,EAAA;AAAA,YAChCC,eAAA,CAAAC,eAAA,CAAAC,KAAA,CAAA,CAAA,CAAA,CAAA,uBAAA,CAAA,CAAA,GAAA,GAAA,EAAA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -23,8 +23,8 @@ declare const _default: import("vue").DefineComponent<{
23
23
  }>>;
24
24
  emit: (event: "prev" | "next", ...args: any[]) => void;
25
25
  t: import("hzzt-plus/es/hooks").Translator;
26
- prePage: () => false | undefined;
27
- nextPage: () => false | undefined;
26
+ pageChange: (type: string, page?: number | undefined) => void;
27
+ handleJumpPage: (val: string | number) => void;
28
28
  HzztIcon: import("vue").DefineComponent<{
29
29
  name: {
30
30
  type: StringConstructor;
@@ -0,0 +1,5 @@
1
+ import Scroll from './src/scroll.vue';
2
+ import type { SFCWithInstall } from 'hzzt-plus/es/utils';
3
+ export declare const HzztScroll: SFCWithInstall<typeof Scroll>;
4
+ export default HzztScroll;
5
+ export * from './src/scroll';
@@ -0,0 +1,9 @@
1
+ import '../../utils/index.mjs';
2
+ import Scroll from './src/scroll.mjs';
3
+ import './src/scroll2.mjs';
4
+ import { withInstall } from '../../utils/vue/install.mjs';
5
+
6
+ const HzztScroll = withInstall(Scroll);
7
+
8
+ export { HzztScroll, HzztScroll as default };
9
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../packages/components/scroll/index.ts"],"sourcesContent":["import { withInstall } from '@hzzt-plus/utils'\nimport Scroll from './src/scroll.vue'\nimport type { SFCWithInstall } from '@hzzt-plus/utils'\n\nexport const HzztScroll: SFCWithInstall<typeof Scroll> = withInstall(Scroll)\nexport default HzztScroll\n\nexport * from './src/scroll'\n"],"names":[],"mappings":";;;;;AAEY,MAAC,UAAU,GAAG,WAAW,CAAC,MAAM;;;;"}
@@ -0,0 +1,2 @@
1
+ import type Scroll from './scroll.vue';
2
+ export declare type ScrollInstance = InstanceType<typeof Scroll>;