@pixelium/web-vue 0.0.2 → 0.0.3-beta

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 (285) hide show
  1. package/README.md +42 -0
  2. package/README.zh.md +6 -3
  3. package/coverage/base.css +224 -0
  4. package/coverage/block-navigation.js +87 -0
  5. package/coverage/coverage-final.json +106 -0
  6. package/coverage/favicon.png +0 -0
  7. package/coverage/index.html +926 -0
  8. package/coverage/prettify.css +1 -0
  9. package/coverage/prettify.js +2 -0
  10. package/coverage/sort-arrow-sprite.png +0 -0
  11. package/coverage/sorter.js +210 -0
  12. package/dist/font.css +1 -1
  13. package/dist/index.d.ts +1593 -248
  14. package/dist/normalize.css +2 -0
  15. package/dist/pixelium-vue-icon-hn.cjs +1 -1
  16. package/dist/pixelium-vue-icon-hn.css +2 -1
  17. package/dist/pixelium-vue-icon-hn.js +8533 -8154
  18. package/dist/pixelium-vue-icon-hn.umd.cjs +1 -1
  19. package/dist/pixelium-vue-icon-pa.cjs +1 -1
  20. package/dist/pixelium-vue-icon-pa.css +2 -1
  21. package/dist/pixelium-vue-icon-pa.js +10625 -10143
  22. package/dist/pixelium-vue-icon-pa.umd.cjs +1 -1
  23. package/dist/pixelium-vue.cjs +2 -2
  24. package/dist/pixelium-vue.css +2 -1
  25. package/dist/pixelium-vue.js +7402 -5852
  26. package/dist/pixelium-vue.umd.cjs +2 -2
  27. package/es/aside/index.js +46 -151
  28. package/es/auto-complete/draw.d.ts +1 -1
  29. package/es/auto-complete/draw.js +26 -51
  30. package/es/auto-complete/index.css +92 -32
  31. package/es/auto-complete/index.d.ts +12 -15
  32. package/es/auto-complete/index.js +338 -400
  33. package/es/auto-complete/type.d.ts +25 -13
  34. package/es/avatar/css.js +2 -0
  35. package/es/avatar/draw.d.ts +2 -0
  36. package/es/avatar/draw.js +11 -0
  37. package/es/avatar/index.css +49 -0
  38. package/es/avatar/index.d.ts +15 -0
  39. package/es/avatar/index.js +110 -0
  40. package/es/avatar/type.d.ts +34 -0
  41. package/es/button/draw.d.ts +4 -4
  42. package/es/button/draw.js +213 -297
  43. package/es/button/index.css +40 -30
  44. package/es/button/index.d.ts +0 -4
  45. package/es/button/index.js +230 -256
  46. package/es/button/type.d.ts +3 -3
  47. package/es/button-group/index.css +0 -3
  48. package/es/button-group/index.d.ts +1 -2
  49. package/es/button-group/index.js +59 -31
  50. package/es/button-group/type.d.ts +21 -4
  51. package/es/checkbox/css.js +2 -0
  52. package/es/checkbox/draw.d.ts +4 -0
  53. package/es/checkbox/draw.js +46 -0
  54. package/es/checkbox/index.css +85 -0
  55. package/es/checkbox/index.d.ts +31 -0
  56. package/es/checkbox/index.js +206 -0
  57. package/es/checkbox/type.d.ts +88 -0
  58. package/es/checkbox-group/css.js +2 -0
  59. package/es/checkbox-group/index.css +20 -0
  60. package/es/checkbox-group/index.d.ts +23 -0
  61. package/es/checkbox-group/index.js +84 -0
  62. package/es/checkbox-group/type.d.ts +78 -0
  63. package/es/col/index.d.ts +2 -2
  64. package/es/col/index.js +43 -58
  65. package/es/container/index.js +18 -31
  66. package/es/divider/index.js +39 -53
  67. package/es/empty/index.css +4 -4
  68. package/es/empty/index.js +16 -71
  69. package/es/entry.js +102 -0
  70. package/es/footer/index.js +31 -40
  71. package/es/form/css.js +1 -0
  72. package/es/form/index.d.ts +27 -0
  73. package/es/form/index.js +125 -0
  74. package/es/form/type.d.ts +238 -0
  75. package/es/form/use-form.d.ts +4 -0
  76. package/es/form/use-form.js +48 -0
  77. package/es/form-item/css.js +2 -0
  78. package/es/form-item/index.css +77 -0
  79. package/es/form-item/index.d.ts +37 -0
  80. package/es/form-item/index.js +318 -0
  81. package/es/form-item/type.d.ts +96 -0
  82. package/es/grid/index.js +56 -75
  83. package/es/grid-item/css.js +0 -1
  84. package/es/grid-item/index.d.ts +1 -1
  85. package/es/grid-item/index.js +85 -121
  86. package/es/header/index.js +31 -40
  87. package/es/icon/index.js +44 -55
  88. package/es/icons/css-hn.js +0 -1
  89. package/es/icons/css-pa.js +0 -1
  90. package/es/icons/icon-hn.js +10337 -15986
  91. package/es/icons/icon-pa.js +12573 -17447
  92. package/es/image/css.js +2 -0
  93. package/es/image/index.css +69 -0
  94. package/es/image/index.d.ts +35 -0
  95. package/es/image/index.js +199 -0
  96. package/es/image/type.d.ts +126 -0
  97. package/es/index.css +1 -515
  98. package/es/index.d.ts +22 -2
  99. package/es/index.js +143 -123
  100. package/es/input/draw.d.ts +1 -1
  101. package/es/input/draw.js +26 -51
  102. package/es/input/index.css +85 -33
  103. package/es/input/index.d.ts +9 -16
  104. package/es/input/index.js +319 -423
  105. package/es/input/type.d.ts +3 -3
  106. package/es/input-group/index.css +0 -1
  107. package/es/input-group/index.d.ts +2 -2
  108. package/es/input-group/index.js +66 -37
  109. package/es/input-group/type.d.ts +16 -4
  110. package/es/input-group-label/draw.d.ts +1 -1
  111. package/es/input-group-label/draw.js +26 -51
  112. package/es/input-group-label/index.css +33 -22
  113. package/es/input-group-label/index.d.ts +1 -4
  114. package/es/input-group-label/index.js +104 -127
  115. package/es/input-group-label/type.d.ts +3 -3
  116. package/es/input-number/draw.d.ts +1 -1
  117. package/es/input-number/draw.js +26 -51
  118. package/es/input-number/index.css +90 -35
  119. package/es/input-number/index.d.ts +9 -16
  120. package/es/input-number/index.js +428 -536
  121. package/es/input-number/type.d.ts +3 -3
  122. package/es/input-tag/draw.d.ts +1 -1
  123. package/es/input-tag/draw.js +26 -48
  124. package/es/input-tag/index.css +100 -33
  125. package/es/input-tag/index.d.ts +7 -13
  126. package/es/input-tag/index.js +442 -467
  127. package/es/input-tag/type.d.ts +24 -13
  128. package/es/link/index.js +75 -106
  129. package/es/main/index.js +11 -15
  130. package/es/mask/index.js +94 -115
  131. package/es/message/index.css +1 -1
  132. package/es/message/index.js +168 -346
  133. package/es/message-box/css.js +1 -1
  134. package/es/message-box/index.js +98 -114
  135. package/es/message-box/message-box-wrapped.js +33 -46
  136. package/es/message-box/message-box.js +79 -111
  137. package/es/option-list/index.css +13 -13
  138. package/es/option-list/index.d.ts +4 -31
  139. package/es/option-list/index.js +99 -167
  140. package/es/option-list/type.d.ts +5 -1
  141. package/es/pixelate/pixel.d.ts +5 -0
  142. package/es/pixelate/pixel.js +70 -0
  143. package/es/pixelate/pixelate.worker.d.ts +1 -0
  144. package/es/popover/index.d.ts +13 -99
  145. package/es/popover/index.js +75 -238
  146. package/es/popover/type.d.ts +7 -2
  147. package/es/popup/css.js +1 -0
  148. package/es/popup/index.d.ts +210 -0
  149. package/es/popup/index.js +203 -0
  150. package/es/popup/type.d.ts +105 -0
  151. package/es/popup-content/draw.d.ts +2 -2
  152. package/es/popup-content/draw.js +98 -143
  153. package/es/popup-content/index.css +11 -11
  154. package/es/popup-content/index.d.ts +1 -0
  155. package/es/popup-content/index.js +253 -1576
  156. package/es/popup-content/type.d.ts +1 -0
  157. package/es/popup-trigger/index.d.ts +8 -2
  158. package/es/popup-trigger/index.js +122 -95
  159. package/es/popup-trigger/type.d.ts +4 -1
  160. package/es/popup-wrapper/css.js +2 -0
  161. package/es/popup-wrapper/index.css +14 -0
  162. package/es/popup-wrapper/index.d.ts +18 -0
  163. package/es/popup-wrapper/index.js +67 -0
  164. package/es/popup-wrapper/type.d.ts +9 -0
  165. package/es/radio/css.js +1 -0
  166. package/es/radio/draw.d.ts +4 -0
  167. package/es/radio/draw.js +47 -0
  168. package/es/radio/index.d.ts +30 -0
  169. package/es/radio/index.js +190 -0
  170. package/es/radio/style.css +73 -0
  171. package/es/radio/type.d.ts +76 -0
  172. package/es/radio-group/css.js +2 -0
  173. package/es/radio-group/index.css +20 -0
  174. package/es/radio-group/index.d.ts +23 -0
  175. package/es/radio-group/index.js +77 -0
  176. package/es/radio-group/type.d.ts +77 -0
  177. package/es/row/index.js +56 -70
  178. package/es/select/draw.d.ts +1 -1
  179. package/es/select/draw.js +26 -51
  180. package/es/select/index.css +118 -36
  181. package/es/select/index.d.ts +14 -16
  182. package/es/select/index.js +625 -672
  183. package/es/select/type.d.ts +60 -25
  184. package/es/share/const/event-bus-key.js +1 -6
  185. package/es/share/const/index.d.ts +4 -0
  186. package/es/share/const/index.js +22 -24
  187. package/es/share/const/provide-key.d.ts +5 -0
  188. package/es/share/const/provide-key.js +6 -5
  189. package/es/share/const/style.d.ts +6 -0
  190. package/es/share/const/style.js +7 -0
  191. package/es/share/hook/use-cancelable-delay.d.ts +1 -0
  192. package/es/share/hook/use-cancelable-delay.js +42 -0
  193. package/es/share/hook/use-click-outside-listener.d.ts +1 -1
  194. package/es/share/hook/use-click-outside-listener.js +28 -41
  195. package/es/share/hook/use-composition.js +17 -15
  196. package/es/share/hook/use-controlled-mode.d.ts +3 -3
  197. package/es/share/hook/use-controlled-mode.js +20 -23
  198. package/es/share/hook/use-dark-mode.js +51 -65
  199. package/es/share/hook/use-index-of-children.d.ts +2 -1
  200. package/es/share/hook/use-index-of-children.js +47 -45
  201. package/es/share/hook/use-lazy-load.d.ts +10 -0
  202. package/es/share/hook/use-lazy-load.js +133 -0
  203. package/es/share/hook/use-props-detect.d.ts +2 -0
  204. package/es/share/hook/use-resize-observer.d.ts +1 -2
  205. package/es/share/hook/use-resize-observer.js +28 -20
  206. package/es/share/hook/use-screen-width.js +27 -36
  207. package/es/share/hook/use-smooth-transition.d.ts +2 -0
  208. package/es/share/hook/use-smooth-transition.js +65 -0
  209. package/es/share/hook/use-textarea-height.js +86 -92
  210. package/es/share/hook/use-theme-mode.js +41 -42
  211. package/es/share/hook/use-transition-end.d.ts +2 -0
  212. package/es/share/hook/use-transition-end.js +12 -0
  213. package/es/share/hook/use-watch-global-css-var.js +12 -16
  214. package/es/share/hook/use-window-resize-listener.d.ts +1 -0
  215. package/es/share/hook/use-window-resize-listener.js +15 -0
  216. package/es/share/hook/use-z-index.js +30 -27
  217. package/es/share/type/index.d.ts +18 -3
  218. package/es/share/util/color.d.ts +5 -3
  219. package/es/share/util/color.js +156 -149
  220. package/es/share/util/common.d.ts +7 -2
  221. package/es/share/util/common.js +127 -65
  222. package/es/share/util/console.d.ts +3 -3
  223. package/es/share/util/console.js +10 -7
  224. package/es/share/util/dom.d.ts +19 -0
  225. package/es/share/util/dom.js +88 -0
  226. package/es/share/util/env.d.ts +1 -0
  227. package/es/share/util/env.js +5 -4
  228. package/es/share/util/event-bus.js +3 -20
  229. package/es/share/util/lru-cache.js +29 -33
  230. package/es/share/util/pixel.d.ts +4 -0
  231. package/es/share/util/plot.d.ts +8 -3
  232. package/es/share/util/plot.js +457 -229
  233. package/es/share/util/reactivity.d.ts +8 -0
  234. package/es/share/util/reactivity.js +23 -0
  235. package/es/share/util/render.js +31 -41
  236. package/es/share/util/theme.d.ts +3 -0
  237. package/es/share/util/theme.js +77 -57
  238. package/es/slider/css.js +2 -0
  239. package/es/slider/draw.d.ts +25 -0
  240. package/es/slider/draw.js +113 -0
  241. package/es/slider/index.css +119 -0
  242. package/es/slider/index.d.ts +66 -0
  243. package/es/slider/index.js +503 -0
  244. package/es/slider/type.d.ts +162 -0
  245. package/es/slider/util.d.ts +37 -0
  246. package/es/slider/util.js +130 -0
  247. package/es/space/index.css +24 -29
  248. package/es/space/index.js +73 -97
  249. package/es/spin/index.css +18 -17
  250. package/es/spin/index.js +72 -102
  251. package/es/spin/type.d.ts +11 -5
  252. package/es/switch/css.js +2 -0
  253. package/es/switch/draw.d.ts +2 -0
  254. package/es/switch/draw.js +18 -0
  255. package/es/switch/index.css +121 -0
  256. package/es/switch/index.d.ts +42 -0
  257. package/es/switch/index.js +259 -0
  258. package/es/switch/type.d.ts +133 -0
  259. package/es/tag/draw.d.ts +2 -2
  260. package/es/tag/draw.js +80 -127
  261. package/es/tag/index.css +38 -22
  262. package/es/tag/index.d.ts +2 -2
  263. package/es/tag/index.js +121 -190
  264. package/es/tag/type.d.ts +3 -3
  265. package/es/text-outline/css.js +2 -0
  266. package/es/text-outline/index.css +4 -0
  267. package/es/text-outline/index.d.ts +17 -0
  268. package/es/text-outline/index.js +33 -0
  269. package/es/text-outline/type.d.ts +23 -0
  270. package/es/textarea/draw.js +9 -11
  271. package/es/textarea/index.css +37 -23
  272. package/es/textarea/index.d.ts +8 -14
  273. package/es/textarea/index.js +274 -262
  274. package/es/tooltip/index.d.ts +100 -4
  275. package/es/tooltip/index.js +70 -226
  276. package/es/tooltip/type.d.ts +7 -2
  277. package/es/vendor.js +504 -0
  278. package/es/virtual-list/css.js +2 -0
  279. package/es/virtual-list/index.css +25 -0
  280. package/es/virtual-list/index.d.ts +11 -0
  281. package/es/virtual-list/index.js +313 -0
  282. package/es/virtual-list/type.d.ts +26 -0
  283. package/package.json +10 -16
  284. package/es/grid-item/index.css +0 -0
  285. /package/es/message-box/{message-box.css → index.css} +0 -0
@@ -82,10 +82,10 @@ export type InputNumberProps = {
82
82
  */
83
83
  size?: 'medium' | 'large' | 'small';
84
84
  /**
85
- * @property {'default' | 'round'} [shape='default']
86
- * @version 0.0.2
85
+ * @property {'rect' | 'round'} [shape='rect']
86
+ * @version 0.0.3
87
87
  */
88
- shape?: 'default' | 'round';
88
+ shape?: 'rect' | 'round' | 'default';
89
89
  /**
90
90
  * @property {NumberOrPercentage | NumberOrPercentage[]} [borderRadius]
91
91
  * @version 0.0.2
@@ -1,2 +1,2 @@
1
1
  import type { RgbaColor } from '../share/type';
2
- export declare const drawBorder: (ctx: CanvasRenderingContext2D, width: number, height: number, center: [number, number][], borderRadius: number[], rad: [number, number][], borderColor: RgbaColor, pixelSize: number, inner: boolean, first: boolean, last: boolean) => void;
2
+ export declare const drawBorder: (ctx: CanvasRenderingContext2D, width: number, height: number, center: [number, number][], borderRadius: number[], rad: [number, number][], borderColor: RgbaColor, pixelSize: number, inner: boolean, first: boolean, last: boolean, nextIsTextButton: boolean) => void;
@@ -1,49 +1,27 @@
1
- import { d as drawCircle } from "../share/util/plot.js";
2
- import { r as rgbaColor2string } from "../share/util/color.js";
3
- const drawBorder = (ctx, width, height, center, borderRadius, rad, borderColor, pixelSize, inner, first, last) => {
4
- ctx.fillStyle = rgbaColor2string(borderColor);
5
- for (let i = 0; i < 4; i++) {
6
- if (borderRadius[i] <= pixelSize) {
7
- continue;
8
- }
9
- if (i === 1 || i === 2 ? inner && last || !inner : true) {
10
- drawCircle(
11
- ctx,
12
- center[i][0],
13
- center[i][1],
14
- borderRadius[i],
15
- rad[i][0],
16
- rad[i][1],
17
- pixelSize
18
- );
19
- }
20
- }
21
- if (center[1][0] + pixelSize > center[0][0]) {
22
- const width2 = inner && !last ? center[1][0] - center[0][0] + pixelSize / 2 + 1 : center[1][0] - center[0][0] + pixelSize;
23
- ctx.fillRect(center[0][0], 0, width2, pixelSize);
24
- }
25
- if (center[2][1] + pixelSize > center[1][1] && (inner && last || !inner)) {
26
- ctx.fillRect(
27
- width - pixelSize,
28
- center[1][1],
29
- pixelSize,
30
- center[2][1] - center[1][1] + pixelSize
31
- );
32
- }
33
- if (center[3][0] < center[2][0] + pixelSize) {
34
- const width2 = inner && !last ? center[2][0] - center[3][0] + pixelSize / 2 : center[2][0] - center[3][0] + pixelSize;
35
- ctx.fillRect(center[3][0], height - pixelSize, width2, pixelSize);
36
- }
37
- if (center[3][1] + pixelSize > center[0][1] && !(inner && !first)) {
38
- ctx.fillRect(0, center[0][1], pixelSize, center[3][1] - center[0][1] + pixelSize);
39
- }
40
- if (inner && !first) {
41
- ctx.fillRect(pixelSize / 2, 0, pixelSize / 2, height);
42
- }
43
- if (inner && !last) {
44
- ctx.fillRect(width - 2 * pixelSize - 1, 0, pixelSize / 2 + 1, height);
45
- }
46
- };
47
- export {
48
- drawBorder as d
1
+ import { a as drawCircle } from "../share/util/plot.js";
2
+ import { a as rgbaColor2string } from "../share/util/color.js";
3
+ const drawBorder = (ctx, width, height, center, borderRadius, rad, borderColor, pixelSize, inner, first, last, nextIsTextButton) => {
4
+ ctx.fillStyle = rgbaColor2string(borderColor);
5
+ for (let i = 0; i < 4; i++) if (borderRadius[i] > pixelSize) {
6
+ if (i === 1 || i === 2 ? inner && last || !inner : true) drawCircle(ctx, center[i][0], center[i][1], borderRadius[i], rad[i][0], rad[i][1], pixelSize);
7
+ }
8
+ if (center[1][0] + pixelSize > center[0][0]) {
9
+ let length = center[1][0] - center[0][0] + pixelSize;
10
+ if (inner && !last) length -= pixelSize;
11
+ ctx.fillRect(center[0][0], 0, length, pixelSize);
12
+ }
13
+ if (center[2][1] + pixelSize > center[1][1] && (inner && last || !inner)) ctx.fillRect(width - pixelSize, center[1][1], pixelSize, center[2][1] - center[1][1] + pixelSize);
14
+ if (center[3][0] < center[2][0] + pixelSize) {
15
+ let length = center[2][0] - center[3][0] + pixelSize;
16
+ if (inner && !last) length -= pixelSize;
17
+ ctx.fillRect(center[3][0], height - pixelSize, length, pixelSize);
18
+ }
19
+ if ((!inner || first) && center[3][1] + pixelSize > center[0][1]) ctx.fillRect(0, center[0][1], pixelSize, center[3][1] - center[0][1] + pixelSize);
20
+ if (inner && !first) ctx.fillRect(pixelSize / 2, 0, pixelSize / 2, height);
21
+ if (inner && !last) {
22
+ let length = pixelSize;
23
+ if (nextIsTextButton) length /= 2;
24
+ ctx.fillRect(width - 2 * pixelSize - 1, 0, length, height);
25
+ }
49
26
  };
27
+ export { drawBorder as t };
@@ -1,13 +1,5 @@
1
- div.px-input-tag {
2
- font-size: var(--text-size);
3
- }
4
1
  .px-input-tag {
5
2
  --input-size: var(--px-medium-size);
6
- --px-medium-padding-x: var(--px-interval-2);
7
- --px-large-padding-x: var(--px-interval-3);
8
- --px-small-padding-x: var(--px-interval-2);
9
- --padding-x-size: var(--px-medium-padding-x);
10
- --text-size: var(--px-medium-font-size);
11
3
  z-index: 0;
12
4
  position: relative;
13
5
  background-color: transparent;
@@ -16,37 +8,124 @@ div.px-input-tag {
16
8
  border-style: solid;
17
9
  color: var(--px-neutral-10);
18
10
  display: flex;
19
- padding: 0 var(--padding-x-size);
20
11
  box-sizing: border-box;
21
12
  cursor: text;
13
+ transition: 0.25s;
14
+ }
15
+ .px-input-tag.px-input-tag__small {
16
+ padding-right: 8px;
17
+ padding-left: 8px;
18
+ font-size: 12px;
19
+ }
20
+ .px-input-tag.px-input-tag__small .px-input-tag-inner {
21
+ font-size: 12px;
22
+ }
23
+ .px-input-tag.px-input-tag__small.px-input-tag__inner {
24
+ padding-right: calc(8px + 1px + 1 * var(--px-bit));
25
+ }
26
+ .px-input-tag.px-input-tag__small.px-input-tag__inner:last-child {
27
+ padding-right: 8px;
28
+ }
29
+ .px-input-tag.px-input-tag__small .px-input-tag-content {
30
+ min-height: 20px;
31
+ }
32
+ .px-input-tag.px-input-tag__small .px-input-tag-inner {
33
+ height: 20px;
34
+ }
35
+ .px-input-tag.px-input-tag__small .px-input-tag-close-wrapper .px-input-tag-icon-placeholder {
36
+ width: 12px;
37
+ height: 12px;
38
+ }
39
+ .px-input-tag.px-input-tag__small .px-input-tag-close-wrapper .px-input-tag-icon {
40
+ width: 12px;
41
+ height: 12px;
42
+ }
43
+ .px-input-tag.px-input-tag__small .px-input-tag-loading-wrapper .px-input-tag-icon {
44
+ width: 12px;
45
+ height: 12px;
46
+ }
47
+ .px-input-tag.px-input-tag__medium {
48
+ padding-right: 8px;
49
+ padding-left: 8px;
50
+ font-size: 14px;
51
+ }
52
+ .px-input-tag.px-input-tag__medium .px-input-tag-inner {
53
+ font-size: 14px;
54
+ }
55
+ .px-input-tag.px-input-tag__medium.px-input-tag__inner {
56
+ padding-right: calc(8px + 1px + 1 * var(--px-bit));
22
57
  }
23
- .px-input-tag__inner {
24
- padding-right: calc(var(--padding-x-size) + 1px + 1 * var(--px-bit));
58
+ .px-input-tag.px-input-tag__medium.px-input-tag__inner:last-child {
59
+ padding-right: 8px;
25
60
  }
26
- .px-input-tag__inner:last-child {
27
- padding-right: var(--padding-x-size);
61
+ .px-input-tag.px-input-tag__medium .px-input-tag-content {
62
+ min-height: 28px;
63
+ }
64
+ .px-input-tag.px-input-tag__medium .px-input-tag-inner {
65
+ height: 28px;
66
+ }
67
+ .px-input-tag.px-input-tag__medium .px-input-tag-close-wrapper .px-input-tag-icon-placeholder {
68
+ width: 14px;
69
+ height: 14px;
70
+ }
71
+ .px-input-tag.px-input-tag__medium .px-input-tag-close-wrapper .px-input-tag-icon {
72
+ width: 14px;
73
+ height: 14px;
74
+ }
75
+ .px-input-tag.px-input-tag__medium .px-input-tag-loading-wrapper .px-input-tag-icon {
76
+ width: 14px;
77
+ height: 14px;
78
+ }
79
+ .px-input-tag.px-input-tag__large {
80
+ padding-right: 12px;
81
+ padding-left: 12px;
82
+ font-size: 15px;
83
+ }
84
+ .px-input-tag.px-input-tag__large .px-input-tag-inner {
85
+ font-size: 15px;
86
+ }
87
+ .px-input-tag.px-input-tag__large.px-input-tag__inner {
88
+ padding-right: calc(12px + 1px + 1 * var(--px-bit));
89
+ }
90
+ .px-input-tag.px-input-tag__large.px-input-tag__inner:last-child {
91
+ padding-right: 12px;
92
+ }
93
+ .px-input-tag.px-input-tag__large .px-input-tag-content {
94
+ min-height: 36px;
95
+ }
96
+ .px-input-tag.px-input-tag__large .px-input-tag-inner {
97
+ height: 36px;
98
+ }
99
+ .px-input-tag.px-input-tag__large .px-input-tag-close-wrapper .px-input-tag-icon-placeholder {
100
+ width: 15px;
101
+ height: 15px;
102
+ }
103
+ .px-input-tag.px-input-tag__large .px-input-tag-close-wrapper .px-input-tag-icon {
104
+ width: 15px;
105
+ height: 15px;
106
+ }
107
+ .px-input-tag.px-input-tag__large .px-input-tag-loading-wrapper .px-input-tag-icon {
108
+ width: 15px;
109
+ height: 15px;
28
110
  }
29
111
  .px-input-tag-content {
30
- min-height: calc(var(--input-size) - var(--px-bit) * 2);
31
112
  display: flex;
32
113
  flex-wrap: wrap;
33
114
  align-items: center;
34
115
  width: 100%;
35
116
  }
36
117
  .px-input-tag-content .px-tag {
37
- margin-right: var(--px-interval-2);
118
+ margin-right: 8px;
38
119
  margin-top: 1px;
39
120
  margin-bottom: 1px;
40
121
  }
41
122
  .px-input-tag-inner {
42
- height: calc(var(--input-size) - var(--px-bit) * 2);
43
123
  border: 0;
44
124
  background-color: transparent;
45
125
  box-sizing: border-box;
46
126
  flex: 1;
47
- font-size: var(--text-size);
48
- line-height: var(--px-line-height);
49
- font-family: 'Fusion Pixel Zh_hans', sans-serif;
127
+ line-height: 1.5;
128
+ font-family: var(--px-font);
50
129
  padding: 0;
51
130
  }
52
131
  .px-input-tag-inner:focus-visible {
@@ -61,14 +140,10 @@ div.px-input-tag {
61
140
  opacity: 1;
62
141
  }
63
142
  .px-input-tag__large {
64
- --padding-x-size: var(--px-large-padding-x);
65
- --text-size: var(--px-large-font-size);
66
143
  --input-size: var(--px-large-size);
67
144
  }
68
145
  .px-input-tag__small {
69
- --padding-x-size: var(--px-small-padding-x);
70
146
  --input-size: var(--px-small-size);
71
- --text-size: var(--px-small-font-size);
72
147
  }
73
148
  .px-input-tag__small .px-input-tag-content .px-tag {
74
149
  margin-top: 0px;
@@ -90,20 +165,14 @@ div.px-input-tag {
90
165
  align-items: center;
91
166
  }
92
167
  .px-input-tag-prefix-wrapper {
93
- margin-right: var(--px-interval-2);
168
+ margin-right: 8px;
94
169
  }
95
170
  .px-input-tag-suffix-wrapper,
96
171
  .px-input-tag-loading-wrapper,
97
172
  .px-input-tag-close-wrapper {
98
- margin-left: var(--px-interval-2);
99
- }
100
- .px-input-tag-close-wrapper .px-input-tag-icon-placeholder {
101
- width: var(--text-size);
102
- height: var(--text-size);
173
+ margin-left: 8px;
103
174
  }
104
175
  .px-input-tag-close-wrapper .px-input-tag-icon {
105
- width: var(--text-size);
106
- height: var(--text-size);
107
176
  cursor: pointer;
108
177
  fill: var(--px-neutral-8);
109
178
  transition: 0.25s;
@@ -115,8 +184,6 @@ div.px-input-tag {
115
184
  fill: var(--px-neutral-9);
116
185
  }
117
186
  .px-input-tag-loading-wrapper .px-input-tag-icon {
118
- width: var(--text-size);
119
- height: var(--text-size);
120
187
  fill: var(--px-primary-6);
121
188
  }
122
189
  .px-input-tag-prefix-wrapper,
@@ -1,4 +1,4 @@
1
- import type { InputTagProps } from './type';
1
+ import type { InputTagExpose, InputTagProps } from './type';
2
2
  declare var __VLS_1: {}, __VLS_10: {
3
3
  tag: string;
4
4
  index: number;
@@ -25,15 +25,11 @@ type __VLS_Slots = {} & {
25
25
  } & {
26
26
  suffix?: (props: typeof __VLS_51) => any;
27
27
  };
28
- declare const __VLS_component: import("vue").DefineComponent<InputTagProps, {
29
- focus: () => void;
30
- blur: () => void;
31
- clear: () => Promise<void>;
32
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
33
- input: (value: string, e: Event) => any;
34
- change: (value: string[]) => any;
28
+ declare const __VLS_component: import("vue").DefineComponent<InputTagProps, InputTagExpose, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
35
29
  clear: (value: string[]) => any;
30
+ change: (value: string[]) => any;
36
31
  blur: (e: FocusEvent) => any;
32
+ input: (value: string, e: Event) => any;
37
33
  focus: (e: FocusEvent) => any;
38
34
  "update:modelValue": (value: string[]) => any;
39
35
  tagAdd: (value: string, e: KeyboardEvent) => any;
@@ -41,10 +37,10 @@ declare const __VLS_component: import("vue").DefineComponent<InputTagProps, {
41
37
  "update:inputValue": (value: string) => any;
42
38
  inputChange: (value: string, e?: Event | undefined) => any;
43
39
  }, string, import("vue").PublicProps, Readonly<InputTagProps> & Readonly<{
44
- onInput?: ((value: string, e: Event) => any) | undefined;
45
- onChange?: ((value: string[]) => any) | undefined;
46
40
  onClear?: ((value: string[]) => any) | undefined;
41
+ onChange?: ((value: string[]) => any) | undefined;
47
42
  onBlur?: ((e: FocusEvent) => any) | undefined;
43
+ onInput?: ((value: string, e: Event) => any) | undefined;
48
44
  onFocus?: ((e: FocusEvent) => any) | undefined;
49
45
  "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
50
46
  onTagAdd?: ((value: string, e: KeyboardEvent) => any) | undefined;
@@ -52,11 +48,9 @@ declare const __VLS_component: import("vue").DefineComponent<InputTagProps, {
52
48
  "onUpdate:inputValue"?: ((value: string) => any) | undefined;
53
49
  onInputChange?: ((value: string, e?: Event | undefined) => any) | undefined;
54
50
  }>, {
55
- shape: "default" | "round";
56
- size: "medium" | "large" | "small";
57
51
  disabled: boolean;
58
- loading: boolean;
59
52
  readonly: boolean;
53
+ loading: boolean;
60
54
  clearable: boolean;
61
55
  status: "success" | "warning" | "error" | "normal";
62
56
  collapseTags: boolean;