zartui 3.0.5 → 3.0.7

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 (401) hide show
  1. package/es/button/Button.d.ts +3 -0
  2. package/es/button/Button.mjs +2 -0
  3. package/es/button/index.d.ts +2 -0
  4. package/es/cascader/Cascader.mjs +0 -2
  5. package/es/cascader/index.css +1 -1
  6. package/es/checkbox/Checkbox.d.ts +1 -1
  7. package/es/checkbox/Checker.d.ts +2 -2
  8. package/es/checkbox/index.d.ts +1 -1
  9. package/es/collapse-item/CollapseItem.mjs +3 -1
  10. package/es/date-time-picker/DateTimePicker.d.ts +1 -1
  11. package/es/date-time-picker/DateTimePicker.mjs +9 -3
  12. package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  13. package/es/date-time-picker/index.d.ts +1 -1
  14. package/es/dialog/index.css +1 -1
  15. package/es/divider/index.css +1 -1
  16. package/es/dropdown-item/DropdownItem.mjs +7 -4
  17. package/es/dropdown-menu/DropdownMenu.mjs +2 -2
  18. package/es/dropdown-menu/types.d.ts +1 -0
  19. package/es/empty/Images.mjs +9 -9
  20. package/es/empty/index.css +1 -1
  21. package/es/hierarchy-select/Breadcrumb.d.ts +43 -0
  22. package/es/hierarchy-select/Breadcrumb.mjs +56 -0
  23. package/es/hierarchy-select/HierarchySelect.d.ts +104 -0
  24. package/es/hierarchy-select/HierarchySelect.mjs +221 -0
  25. package/es/hierarchy-select/index.css +1 -0
  26. package/es/hierarchy-select/index.d.ts +79 -0
  27. package/es/hierarchy-select/index.mjs +8 -0
  28. package/es/hierarchy-select/style/index.d.ts +1 -0
  29. package/es/hierarchy-select/style/index.mjs +8 -0
  30. package/es/hierarchy-select/svg/SubIcon.d.ts +1 -0
  31. package/es/hierarchy-select/svg/SubIcon.mjs +33 -0
  32. package/es/hierarchy-select/types.d.ts +7 -0
  33. package/es/hierarchy-select/types.mjs +0 -0
  34. package/es/icon/config.mjs +3 -1
  35. package/es/icon/index.css +1 -1
  36. package/es/image-preview/ImagePreview.mjs +1 -1
  37. package/es/index-anchor/IndexAnchor.d.ts +11 -0
  38. package/es/index-anchor/IndexAnchor.mjs +88 -0
  39. package/es/index-anchor/index.css +1 -0
  40. package/es/index-anchor/index.d.ts +14 -0
  41. package/es/index-anchor/index.mjs +10 -0
  42. package/es/index-anchor/style/index.d.ts +1 -0
  43. package/es/index-anchor/style/index.mjs +3 -0
  44. package/es/index-anchor/types.d.ts +11 -0
  45. package/es/index-anchor/types.mjs +0 -0
  46. package/es/index-bar/IndexBar.d.ts +64 -0
  47. package/es/index-bar/IndexBar.mjs +275 -0
  48. package/es/index-bar/index.css +1 -0
  49. package/es/index-bar/index.d.ts +50 -0
  50. package/es/index-bar/index.mjs +10 -0
  51. package/es/index-bar/style/index.d.ts +1 -0
  52. package/es/index-bar/style/index.mjs +2 -0
  53. package/es/index-bar/types.d.ts +16 -0
  54. package/es/index-bar/types.mjs +0 -0
  55. package/es/index.d.ts +8 -1
  56. package/es/index.mjs +22 -1
  57. package/es/lazyload/vue-lazyload/index.mjs +5 -0
  58. package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
  59. package/es/lazyload/vue-lazyload/listener.mjs +45 -0
  60. package/es/list/List.mjs +2 -4
  61. package/es/list/index.css +1 -1
  62. package/es/locale/lang/en-US.d.ts +7 -23
  63. package/es/locale/lang/en-US.mjs +7 -23
  64. package/es/locale/lang/zh-CN.d.ts +7 -23
  65. package/es/locale/lang/zh-CN.mjs +7 -23
  66. package/es/media-picker/MediaPicker.mjs +20 -0
  67. package/es/media-picker/image/PickFileIcon.mjs +1 -1
  68. package/es/media-picker/image/PickPhotoIcon.mjs +1 -1
  69. package/es/media-picker/image/TakeAudioIcon.mjs +1 -1
  70. package/es/media-picker/image/TakePhotoIcon.mjs +1 -1
  71. package/es/media-picker/image/TakeVideoIcon.mjs +1 -1
  72. package/es/media-picker/index.css +1 -1
  73. package/es/media-picker/util/media-util.mjs +3 -0
  74. package/es/media-picker/watermark/image-processor.mjs +10 -6
  75. package/es/media-picker/watermark/resize-options.mjs +1 -0
  76. package/es/media-picker/watermark/watermark.mjs +4 -0
  77. package/es/multiple-picker/MultiplePicker.d.ts +4 -4
  78. package/es/multiple-picker/MultiplePicker.mjs +3 -3
  79. package/es/multiple-picker/MultiplePickerOptions.d.ts +4 -4
  80. package/es/multiple-picker/MultiplePickerOptions.mjs +3 -3
  81. package/es/multiple-picker/index.d.ts +3 -3
  82. package/es/notice-bar/index.css +1 -1
  83. package/es/picker/Picker.mjs +7 -4
  84. package/es/picker/PickerToolbar.mjs +1 -0
  85. package/es/popover/Popover.d.ts +13 -0
  86. package/es/popover/Popover.mjs +91 -4
  87. package/es/popover/index.css +1 -1
  88. package/es/popover/index.d.ts +9 -0
  89. package/es/popup/Popup.mjs +1 -0
  90. package/es/popup/index.css +1 -1
  91. package/es/popup/shared.mjs +12 -0
  92. package/es/radio/Radio.d.ts +1 -1
  93. package/es/radio/index.d.ts +1 -1
  94. package/es/rate/index.css +1 -1
  95. package/es/search/Search.d.ts +1 -1
  96. package/es/search/Search.mjs +1 -0
  97. package/es/search/index.d.ts +1 -1
  98. package/es/signature/Signature.mjs +13 -10
  99. package/es/signature/index.css +1 -1
  100. package/es/step/Step.mjs +10 -6
  101. package/es/step/index.css +1 -1
  102. package/es/stepper/Stepper.mjs +2 -0
  103. package/es/stepper/index.css +1 -1
  104. package/es/steps/index.css +1 -1
  105. package/es/sticky/Sticky.mjs +2 -0
  106. package/es/style/base.css +1 -1
  107. package/es/style/css-variables.css +1 -1
  108. package/es/swipe/Swipe.d.ts +3 -1
  109. package/es/swipe/Swipe.mjs +19 -2
  110. package/es/swipe/index.d.ts +3 -1
  111. package/es/swipe-cell/SwipeCell.d.ts +44 -0
  112. package/es/swipe-cell/SwipeCell.mjs +163 -0
  113. package/es/swipe-cell/index.css +1 -0
  114. package/es/swipe-cell/index.d.ts +39 -0
  115. package/es/swipe-cell/index.mjs +10 -0
  116. package/es/swipe-cell/style/index.d.ts +1 -0
  117. package/es/swipe-cell/style/index.mjs +2 -0
  118. package/es/swipe-cell/types.d.ts +9 -0
  119. package/es/swipe-cell/types.mjs +0 -0
  120. package/es/switch/index.css +1 -1
  121. package/es/tabbar-item/index.css +1 -1
  122. package/es/table/Table.d.ts +113 -0
  123. package/es/table/Table.mjs +118 -0
  124. package/es/table/index.css +1 -0
  125. package/es/table/index.d.ts +75 -0
  126. package/es/table/index.mjs +10 -0
  127. package/es/table/style/index.d.ts +1 -0
  128. package/es/table/style/index.mjs +2 -0
  129. package/es/tabs/Tabs.mjs +2 -0
  130. package/es/tabs/index.css +1 -1
  131. package/es/tag/Tag.d.ts +18 -1
  132. package/es/tag/Tag.mjs +47 -2
  133. package/es/tag/index.css +1 -1
  134. package/es/tag/index.d.ts +13 -1
  135. package/es/text-ellipsis/TextEllipsis.d.ts +76 -0
  136. package/es/text-ellipsis/TextEllipsis.mjs +118 -0
  137. package/es/text-ellipsis/index.css +1 -0
  138. package/es/text-ellipsis/index.d.ts +60 -0
  139. package/es/text-ellipsis/index.mjs +10 -0
  140. package/es/text-ellipsis/style/index.d.ts +1 -0
  141. package/es/text-ellipsis/style/index.mjs +2 -0
  142. package/es/text-ellipsis/types.d.ts +3 -0
  143. package/es/text-ellipsis/types.mjs +0 -0
  144. package/es/timeline/Timeline.d.ts +113 -0
  145. package/es/timeline/Timeline.mjs +162 -0
  146. package/es/timeline/index.css +1 -0
  147. package/es/timeline/index.d.ts +75 -0
  148. package/es/timeline/index.mjs +10 -0
  149. package/es/timeline/style/index.d.ts +1 -0
  150. package/es/timeline/style/index.mjs +4 -0
  151. package/es/uploader/Uploader.d.ts +1 -1
  152. package/es/uploader/index.d.ts +1 -1
  153. package/es/uploader/utils.mjs +1 -1
  154. package/es/utils/dom.d.ts +1 -0
  155. package/es/utils/dom.mjs +11 -0
  156. package/lib/action-sheet/index.js +4 -0
  157. package/lib/avatar/Avatar.js +4 -0
  158. package/lib/avatar/index.js +4 -0
  159. package/lib/badge/index.js +4 -0
  160. package/lib/button/Button.d.ts +3 -0
  161. package/lib/button/Button.js +2 -0
  162. package/lib/button/index.d.ts +2 -0
  163. package/lib/button/index.js +4 -0
  164. package/lib/calendar/Calendar.js +4 -0
  165. package/lib/calendar/CalendarMonth.js +4 -0
  166. package/lib/calendar/index.js +4 -0
  167. package/lib/cascader/Cascader.js +4 -2
  168. package/lib/cascader/index.css +1 -1
  169. package/lib/cascader/index.js +4 -0
  170. package/lib/cell/index.js +4 -0
  171. package/lib/cell-group/index.js +4 -0
  172. package/lib/checkbox/Checkbox.d.ts +1 -1
  173. package/lib/checkbox/Checkbox.js +4 -0
  174. package/lib/checkbox/Checker.d.ts +2 -2
  175. package/lib/checkbox/index.d.ts +1 -1
  176. package/lib/checkbox/index.js +4 -0
  177. package/lib/checkbox-group/index.js +4 -0
  178. package/lib/col/index.js +4 -0
  179. package/lib/collapse/index.js +4 -0
  180. package/lib/collapse-item/CollapseItem.js +7 -1
  181. package/lib/collapse-item/index.js +4 -0
  182. package/lib/config-provider/index.js +4 -0
  183. package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
  184. package/lib/date-time-picker/DateTimePicker.js +13 -3
  185. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  186. package/lib/date-time-picker/DateTimePickerWrapper.js +4 -0
  187. package/lib/date-time-picker/index.d.ts +1 -1
  188. package/lib/date-time-picker/index.js +4 -0
  189. package/lib/dialog/function-call.js +4 -0
  190. package/lib/dialog/index.css +1 -1
  191. package/lib/dialog/index.js +4 -0
  192. package/lib/divider/index.css +1 -1
  193. package/lib/divider/index.js +4 -0
  194. package/lib/dropdown-item/DropdownItem.js +6 -3
  195. package/lib/dropdown-item/index.js +4 -0
  196. package/lib/dropdown-menu/DropdownMenu.js +6 -2
  197. package/lib/dropdown-menu/index.js +4 -0
  198. package/lib/dropdown-menu/types.d.ts +1 -0
  199. package/lib/empty/Images.js +9 -9
  200. package/lib/empty/index.css +1 -1
  201. package/lib/empty/index.js +4 -0
  202. package/lib/field/index.js +4 -0
  203. package/lib/form/index.js +4 -0
  204. package/lib/grid/index.js +4 -0
  205. package/lib/grid-item/index.js +4 -0
  206. package/lib/hierarchy-select/Breadcrumb.d.ts +43 -0
  207. package/lib/hierarchy-select/Breadcrumb.js +85 -0
  208. package/lib/hierarchy-select/HierarchySelect.d.ts +104 -0
  209. package/lib/hierarchy-select/HierarchySelect.js +250 -0
  210. package/lib/hierarchy-select/index.css +1 -0
  211. package/lib/hierarchy-select/index.d.ts +79 -0
  212. package/lib/hierarchy-select/index.js +37 -0
  213. package/lib/hierarchy-select/style/index.d.ts +1 -0
  214. package/lib/hierarchy-select/style/index.js +8 -0
  215. package/lib/hierarchy-select/svg/SubIcon.d.ts +1 -0
  216. package/lib/hierarchy-select/svg/SubIcon.js +52 -0
  217. package/lib/hierarchy-select/types.d.ts +7 -0
  218. package/lib/hierarchy-select/types.js +15 -0
  219. package/lib/icon/config.js +3 -1
  220. package/lib/icon/index.css +1 -1
  221. package/lib/icon/index.js +4 -0
  222. package/lib/image/index.js +4 -0
  223. package/lib/image-preview/ImagePreview.js +5 -1
  224. package/lib/image-preview/function-call.js +4 -0
  225. package/lib/image-preview/index.js +4 -0
  226. package/lib/index-anchor/IndexAnchor.d.ts +11 -0
  227. package/lib/index-anchor/IndexAnchor.js +107 -0
  228. package/lib/index-anchor/index.css +1 -0
  229. package/lib/index-anchor/index.d.ts +14 -0
  230. package/lib/index-anchor/index.js +39 -0
  231. package/lib/index-anchor/style/index.d.ts +1 -0
  232. package/lib/index-anchor/style/index.js +3 -0
  233. package/lib/index-anchor/types.d.ts +11 -0
  234. package/lib/index-anchor/types.js +15 -0
  235. package/lib/index-bar/IndexBar.d.ts +64 -0
  236. package/lib/index-bar/IndexBar.js +294 -0
  237. package/lib/index-bar/index.css +1 -0
  238. package/lib/index-bar/index.d.ts +50 -0
  239. package/lib/index-bar/index.js +39 -0
  240. package/lib/index-bar/style/index.d.ts +1 -0
  241. package/lib/index-bar/style/index.js +2 -0
  242. package/lib/index-bar/types.d.ts +16 -0
  243. package/lib/index-bar/types.js +15 -0
  244. package/lib/index.css +1 -1
  245. package/lib/index.d.ts +8 -1
  246. package/lib/index.js +22 -1
  247. package/lib/lazyload/vue-lazyload/index.js +9 -0
  248. package/lib/lazyload/vue-lazyload/lazy.js +85 -0
  249. package/lib/lazyload/vue-lazyload/listener.js +45 -0
  250. package/lib/list/List.js +2 -4
  251. package/lib/list/index.css +1 -1
  252. package/lib/list/index.js +4 -0
  253. package/lib/loading/index.js +4 -0
  254. package/lib/locale/index.js +4 -0
  255. package/lib/locale/lang/en-US.d.ts +7 -23
  256. package/lib/locale/lang/en-US.js +7 -23
  257. package/lib/locale/lang/zh-CN.d.ts +7 -23
  258. package/lib/locale/lang/zh-CN.js +7 -23
  259. package/lib/media-picker/MediaPicker.js +24 -0
  260. package/lib/media-picker/image/PickFileIcon.js +1 -1
  261. package/lib/media-picker/image/PickPhotoIcon.js +1 -1
  262. package/lib/media-picker/image/TakeAudioIcon.js +1 -1
  263. package/lib/media-picker/image/TakePhotoIcon.js +1 -1
  264. package/lib/media-picker/image/TakeVideoIcon.js +1 -1
  265. package/lib/media-picker/index.css +1 -1
  266. package/lib/media-picker/index.js +4 -0
  267. package/lib/media-picker/util/media-util.js +3 -0
  268. package/lib/media-picker/watermark/image-processor.js +10 -6
  269. package/lib/media-picker/watermark/resize-options.js +1 -0
  270. package/lib/media-picker/watermark/watermark.js +4 -0
  271. package/lib/media-player/MediaPlayer.js +4 -0
  272. package/lib/media-player/index.js +4 -0
  273. package/lib/multiple-picker/MultiplePicker.d.ts +4 -4
  274. package/lib/multiple-picker/MultiplePicker.js +7 -3
  275. package/lib/multiple-picker/MultiplePickerOptions.d.ts +4 -4
  276. package/lib/multiple-picker/MultiplePickerOptions.js +3 -3
  277. package/lib/multiple-picker/index.d.ts +3 -3
  278. package/lib/multiple-picker/index.js +4 -0
  279. package/lib/nav-bar/index.js +4 -0
  280. package/lib/notice-bar/NoticeBar.js +4 -0
  281. package/lib/notice-bar/index.css +1 -1
  282. package/lib/notice-bar/index.js +4 -0
  283. package/lib/notify/function-call.js +4 -0
  284. package/lib/notify/index.js +4 -0
  285. package/lib/number-keyboard/NumberKeyboard.js +4 -0
  286. package/lib/number-keyboard/NumberKeyboardKey.js +4 -0
  287. package/lib/number-keyboard/index.js +4 -0
  288. package/lib/overlay/index.js +4 -0
  289. package/lib/password-input/index.js +4 -0
  290. package/lib/picker/Picker.js +10 -3
  291. package/lib/picker/PickerToolbar.js +1 -0
  292. package/lib/picker/index.js +4 -0
  293. package/lib/popover/Popover.d.ts +13 -0
  294. package/lib/popover/Popover.js +90 -3
  295. package/lib/popover/index.css +1 -1
  296. package/lib/popover/index.d.ts +9 -0
  297. package/lib/popover/index.js +4 -0
  298. package/lib/popup/Popup.js +1 -0
  299. package/lib/popup/index.css +1 -1
  300. package/lib/popup/index.js +4 -0
  301. package/lib/popup/shared.js +12 -0
  302. package/lib/pull-refresh/index.js +4 -0
  303. package/lib/radio/Radio.d.ts +1 -1
  304. package/lib/radio/Radio.js +4 -0
  305. package/lib/radio/index.d.ts +1 -1
  306. package/lib/radio/index.js +4 -0
  307. package/lib/radio-group/index.js +4 -0
  308. package/lib/rate/index.css +1 -1
  309. package/lib/rate/index.js +4 -0
  310. package/lib/row/index.js +4 -0
  311. package/lib/search/Search.d.ts +1 -1
  312. package/lib/search/Search.js +1 -0
  313. package/lib/search/index.d.ts +1 -1
  314. package/lib/search/index.js +4 -0
  315. package/lib/signature/Signature.js +16 -9
  316. package/lib/signature/index.css +1 -1
  317. package/lib/signature/index.js +4 -0
  318. package/lib/skeleton/index.js +4 -0
  319. package/lib/step/Step.js +10 -6
  320. package/lib/step/index.css +1 -1
  321. package/lib/step/index.js +4 -0
  322. package/lib/stepper/Stepper.js +6 -0
  323. package/lib/stepper/index.css +1 -1
  324. package/lib/stepper/index.js +4 -0
  325. package/lib/steps/index.css +1 -1
  326. package/lib/steps/index.js +4 -0
  327. package/lib/sticky/Sticky.js +2 -0
  328. package/lib/sticky/index.js +4 -0
  329. package/lib/style/base.css +1 -1
  330. package/lib/style/css-variables.css +1 -1
  331. package/lib/swipe/Swipe.d.ts +3 -1
  332. package/lib/swipe/Swipe.js +19 -2
  333. package/lib/swipe/index.d.ts +3 -1
  334. package/lib/swipe/index.js +4 -0
  335. package/lib/swipe-cell/SwipeCell.d.ts +44 -0
  336. package/lib/swipe-cell/SwipeCell.js +182 -0
  337. package/lib/swipe-cell/index.css +1 -0
  338. package/lib/swipe-cell/index.d.ts +39 -0
  339. package/lib/swipe-cell/index.js +39 -0
  340. package/lib/swipe-cell/style/index.d.ts +1 -0
  341. package/lib/swipe-cell/style/index.js +2 -0
  342. package/lib/swipe-cell/types.d.ts +9 -0
  343. package/lib/swipe-cell/types.js +15 -0
  344. package/lib/swipe-item/index.js +4 -0
  345. package/lib/switch/index.css +1 -1
  346. package/lib/switch/index.js +4 -0
  347. package/lib/tab/index.js +4 -0
  348. package/lib/tabbar/index.js +4 -0
  349. package/lib/tabbar-item/index.css +1 -1
  350. package/lib/tabbar-item/index.js +4 -0
  351. package/lib/table/Table.d.ts +113 -0
  352. package/lib/table/Table.js +137 -0
  353. package/lib/table/index.css +1 -0
  354. package/lib/table/index.d.ts +75 -0
  355. package/lib/table/index.js +39 -0
  356. package/lib/table/style/index.d.ts +1 -0
  357. package/lib/table/style/index.js +2 -0
  358. package/lib/tabs/Tabs.js +6 -0
  359. package/lib/tabs/index.css +1 -1
  360. package/lib/tabs/index.js +4 -0
  361. package/lib/tag/Tag.d.ts +18 -1
  362. package/lib/tag/Tag.js +47 -2
  363. package/lib/tag/index.css +1 -1
  364. package/lib/tag/index.d.ts +13 -1
  365. package/lib/tag/index.js +4 -0
  366. package/lib/text-ellipsis/TextEllipsis.d.ts +76 -0
  367. package/lib/text-ellipsis/TextEllipsis.js +137 -0
  368. package/lib/text-ellipsis/index.css +1 -0
  369. package/lib/text-ellipsis/index.d.ts +60 -0
  370. package/lib/text-ellipsis/index.js +39 -0
  371. package/lib/text-ellipsis/style/index.d.ts +1 -0
  372. package/lib/text-ellipsis/style/index.js +2 -0
  373. package/lib/text-ellipsis/types.d.ts +3 -0
  374. package/lib/text-ellipsis/types.js +15 -0
  375. package/lib/time-picker/TimePicker.js +4 -0
  376. package/lib/time-picker/TimePickerColumn.js +4 -0
  377. package/lib/time-picker/index.js +4 -0
  378. package/lib/timeline/Timeline.d.ts +113 -0
  379. package/lib/timeline/Timeline.js +191 -0
  380. package/lib/timeline/index.css +1 -0
  381. package/lib/timeline/index.d.ts +75 -0
  382. package/lib/timeline/index.js +39 -0
  383. package/lib/timeline/style/index.d.ts +1 -0
  384. package/lib/timeline/style/index.js +4 -0
  385. package/lib/toast/function-call.js +4 -0
  386. package/lib/toast/index.js +4 -0
  387. package/lib/uploader/Uploader.d.ts +1 -1
  388. package/lib/uploader/Uploader.js +4 -0
  389. package/lib/uploader/index.d.ts +1 -1
  390. package/lib/uploader/index.js +4 -0
  391. package/lib/uploader/utils.js +1 -1
  392. package/lib/utils/create.js +4 -0
  393. package/lib/utils/dom.d.ts +1 -0
  394. package/lib/utils/dom.js +11 -0
  395. package/lib/web-types.json +1 -1
  396. package/lib/zartui.cjs.js +2619 -1019
  397. package/lib/zartui.es.js +2671 -1071
  398. package/lib/zartui.js +3354 -1218
  399. package/lib/zartui.min.js +1 -1
  400. package/package.json +24 -23
  401. package/README.md +0 -25
@@ -1 +1 @@
1
- :root{--zt-switch-size: 28px;--zt-switch-width:calc(1.5em + 10px);--zt-switch-height: 1em;--zt-switch-shadow: inset 2px 2px 4px 1px rgba(0, 0, 0, .15);--zt-switch-node-size:calc(1em - 4px);--zt-switch-node-background: var(--zt-white);--zt-switch-node-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .15);--zt-switch-background: rgba(120, 120, 128, .16);--zt-switch-on-background: var(--zt-primary-color);--zt-switch-duration: var(--zt-duration-base);--zt-switch-disabled-opacity: var(--zt-disabled-opacity)}.zt-theme-dark{--zt-switch-background: rgba(120, 120, 128, .32)}.zt-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--zt-switch-width);height:var(--zt-switch-height);font-size:var(--zt-switch-size);background:var(--zt-switch-background);border-radius:var(--zt-switch-node-size);cursor:pointer;transition:background-color var(--zt-switch-duration);box-shadow:var(--zt-switch-shadow)}.zt-switch__node{position:absolute;top:2px;left:2px;width:var(--zt-switch-node-size);height:var(--zt-switch-node-size);font-size:inherit;background:var(--zt-switch-node-background);border-radius:100%;box-shadow:var(--zt-switch-node-shadow);transition:transform var(--zt-switch-duration) cubic-bezier(.3,1.05,.4,1.05)}.zt-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.zt-switch--on{background:var(--zt-switch-on-background)}.zt-switch--on .zt-switch__node{transform:translate(calc(var(--zt-switch-width) - var(--zt-switch-node-size) - 4px))}.zt-switch--on .zt-switch__loading{color:var(--zt-switch-on-background)}.zt-switch--disabled{cursor:not-allowed;opacity:var(--zt-switch-disabled-opacity)}.zt-switch--loading{cursor:default}
1
+ :root{--zt-switch-size: 28px;--zt-switch-width:calc(1.5em + 10px);--zt-switch-height: 1em;--zt-switch-shadow: inset 2px 2px 4px 1px rgba(0, 0, 0, .15);--zt-switch-node-size:calc(1em - 4px);--zt-switch-node-border-radius: 18px;--zt-switch-node-background: linear-gradient(135deg, #e6edf0 0%, #ffffff 100%, #ffffff 100%);--zt-switch-node-on-background: linear-gradient(135deg, #dce1eb 0%, #ffffff 100%);--zt-switch-node-border: 1px solid #ffffff99;--zt-switch-node-on-border: var(--zt-switch-node-border);--zt-switch-node-shadow: 0px 0px 4px 2px rgba(0, 0, 0, .15);--zt-switch-node-on-shadow: -2px 2px 4px 0 rgba(45, 75, 115, .4);--zt-switch-background: #fafaff;--zt-switch-on-background: var(--zt-primary-color);--zt-switch-on-shadow: inset 2px 2px 4px 0 #2d4b7366;--zt-switch-duration: var(--zt-duration-base);--zt-switch-disabled-opacity: var(--zt-disabled-opacity)}.zt-switch{position:relative;display:inline-block;box-sizing:content-box;width:var(--zt-switch-width);height:var(--zt-switch-height);font-size:var(--zt-switch-size);background:var(--zt-switch-background);border-radius:var(--zt-switch-node-size);cursor:pointer;transition:background-color var(--zt-switch-duration);box-shadow:var(--zt-switch-shadow)}.zt-switch__node{position:absolute;top:1px;left:1px;width:var(--zt-switch-node-size);height:var(--zt-switch-node-size);font-size:inherit;background-image:var(--zt-switch-node-background);border:var(--zt-switch-node-border);border-radius:100%;box-shadow:var(--zt-switch-node-shadow);transition:transform var(--zt-switch-duration) cubic-bezier(.3,1.05,.4,1.05)}.zt-switch__loading{top:25%;left:25%;width:50%;height:50%;line-height:1}.zt-switch--on{background:var(--zt-switch-on-background);box-shadow:var(--zt-switch-on-shadow)}.zt-switch--on .zt-switch__node{background:var(--zt-switch-node-on-background);border:var(--zt-switch-node-on-border);box-shadow:var(--zt-switch-node-on-shadow);transform:translate(calc(var(--zt-switch-width) - var(--zt-switch-node-size) - 4px))}.zt-switch--on .zt-switch__loading{color:var(--zt-switch-on-background)}.zt-switch--disabled{cursor:not-allowed;opacity:var(--zt-switch-disabled-opacity)}.zt-switch--loading{cursor:default}.zt-theme-dark{--zt-switch-shadow: inset 4px 4px 8px 0 #0f1923;--zt-switch-background: #202d39;--zt-switch-on-shadow: inset 2px 2px 4px 0 #2d4b7366;--zt-switch-node-background: linear-gradient(135deg, #0e1824 0%, #24364b 100%);--zt-switch-node-on-background: linear-gradient(135deg, #dce1eb 0%, #ffffff 100%);--zt-switch-node-border: 1px solid rgba(255, 255, 255, .08);--zt-switch-node-on-border: 1px solid rgba(255, 255, 255, .6);--zt-switch-node-shadow: 0 0 5px 0 rgba(0, 12, 24, .8)}
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/tab/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -1 +1 @@
1
- :root{--zt-tabbar-item-font-size: var(--zt-font-size-sm);--zt-tabbar-item-text-color: var(--zt-gray-a6);--zt-tabbar-item-active-color: var(--zt-primary-color);--zt-tabbar-item-active-background: var(--zt-background-2);--zt-tabbar-item-margin: 8px auto 6px;--zt-tabbar-item-icon-size: 24px;--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-tabbar-item-icon-margin-bottom: var(--zt-padding-base);--zt-tabbar-item-box-width: 36px;--zt-tabbar-item-box-height: 36px;--zt-tabbar-item-box-border-radius: var(--zt-radius-lg);--zt-tabbar-item-icon-border: 0;--zt-tabbar-item-text-padding-top: 4px;--zt-tabbar-item-text-height: 12px;--zt-tabbar-item-icon-background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%)}.zt-tabbar-item{color:var(--zt-tabbar-item-text-color);margin:var(--zt-tabbar-item-margin);-webkit-text-size-adjust:100%;cursor:pointer;-webkit-user-select:none;user-select:none}.zt-tabbar-item__icon{font-size:var(--zt-tabbar-item-icon-size);border:var(--zt-tabbar-item-icon-border);display:flex;justify-content:center;align-items:center;width:var(--zt-tabbar-item-box-width);height:var(--zt-tabbar-item-box-height);box-shadow:var(--zt-tabbar-item-icon-box-shadow);background:var(--zt-tabbar-item-icon-background);border-radius:var(--zt-tabbar-item-box-border-radius)}.zt-tabbar-item__icon--active{border:var(--zt-tabbar-item-icon-border);background:rgba(45,75,115,.02);box-shadow:inset 4px 4px 8px rgba(45,75,115,.1)}.zt-tabbar-item__text{font-size:var(--zt-tabbar-item-font-size);padding-top:var(--zt-tabbar-item-text-padding-top);transform:scale(.83333);text-align:center;height:var(--zt-tabbar-item-text-height);line-height:var(--zt-tabbar-item-text-height)}.zt-tabbar-item--active{color:var(--zt-tabbar-item-active-color);background-color:var(--zt-tabbar-item-active-background);font-weight:var(--zt-font-bold)}.zt-theme-dark{--zt-tabbar-item-text-color: var(--zt-gray-default);--zt-tabbar-item-active-background: linear-gradient(135deg, #0a1420 0%, #1d2b3d 100%);--zt-tabbar-item-icon-border: 1px solid rgba(151, 151, 151, .12);--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .12), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-tabbar-item-icon-background: linear-gradient(135deg, #121d2a 0%, #1d2c3d 100%)}
1
+ :root{--zt-tabbar-item-font-size: var(--zt-font-size-sm);--zt-tabbar-item-text-color: var(--zt-gray-a6);--zt-tabbar-item-active-color: var(--zt-primary-color);--zt-tabbar-item-icon-active-background: rgba(45, 75, 115, .02);--zt-tabbar-item-margin: 8px auto 6px;--zt-tabbar-item-icon-size: 24px;--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 #ffffff, 4px 4px 8px 0 rgba(45, 75, 115, .1);--zt-tabbar-item-icon-margin-bottom: var(--zt-padding-base);--zt-tabbar-item-box-width: 36px;--zt-tabbar-item-box-height: 36px;--zt-tabbar-item-box-border-radius: var(--zt-radius-lg);--zt-tabbar-item-icon-border: 0;--zt-tabbar-item-text-padding-top: 4px;--zt-tabbar-item-text-height: 12px;--zt-tabbar-item-icon-background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%)}.zt-tabbar-item{color:var(--zt-tabbar-item-text-color);margin:var(--zt-tabbar-item-margin);-webkit-text-size-adjust:100%;cursor:pointer;-webkit-user-select:none;user-select:none}.zt-tabbar-item__icon{font-size:var(--zt-tabbar-item-icon-size);border:var(--zt-tabbar-item-icon-border);display:flex;justify-content:center;align-items:center;width:var(--zt-tabbar-item-box-width);height:var(--zt-tabbar-item-box-height);box-shadow:var(--zt-tabbar-item-icon-box-shadow);background:var(--zt-tabbar-item-icon-background);border-radius:var(--zt-tabbar-item-box-border-radius)}.zt-tabbar-item__icon--active{border:var(--zt-tabbar-item-icon-border);background:var(--zt-tabbar-item-icon-active-background);box-shadow:inset 4px 4px 8px rgba(45,75,115,.1)}.zt-tabbar-item__text{font-size:var(--zt-tabbar-item-font-size);padding-top:var(--zt-tabbar-item-text-padding-top);transform:scale(.83333);text-align:center;height:var(--zt-tabbar-item-text-height);line-height:var(--zt-tabbar-item-text-height)}.zt-tabbar-item--active{color:var(--zt-tabbar-item-active-color);font-weight:var(--zt-font-bold)}.zt-theme-dark{--zt-tabbar-item-text-color: var(--zt-gray-default);--zt-tabbar-item-icon-active-background: linear-gradient(135deg, #0a1420 0%, #1d2b3d 100%);--zt-tabbar-item-icon-border: 1px solid rgba(151, 151, 151, .12);--zt-tabbar-item-icon-box-shadow: -4px -4px 8px 0 rgba(255, 255, 255, .12), 4px 4px 8px 0 rgba(0, 12, 24, .8);--zt-tabbar-item-icon-background: linear-gradient(135deg, #121d2a 0%, #1d2c3d 100%)}
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -0,0 +1,113 @@
1
+ import { CSSProperties } from 'vue';
2
+ import type { ExtractPropTypes } from 'vue';
3
+ export declare type TableBodyOption = {
4
+ [key: string]: any;
5
+ };
6
+ export declare type TableHeaderOption = {
7
+ label: string;
8
+ key: string;
9
+ width?: string;
10
+ fixed?: boolean;
11
+ style?: CSSProperties;
12
+ click?: (data: TableBodyOption) => void;
13
+ [key: string]: any;
14
+ };
15
+ export declare const tableProps: {
16
+ headList: {
17
+ type: import("vue").PropType<TableHeaderOption[]>;
18
+ default: () => TableHeaderOption[];
19
+ };
20
+ dataList: {
21
+ type: import("vue").PropType<TableBodyOption[]>;
22
+ default: () => TableBodyOption[];
23
+ };
24
+ striped: {
25
+ type: BooleanConstructor;
26
+ default: true;
27
+ };
28
+ emptyValue: {
29
+ type: import("vue").PropType<string>;
30
+ default: string;
31
+ };
32
+ loading: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ skeletonRow: {
37
+ type: NumberConstructor;
38
+ default: number;
39
+ };
40
+ border: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ };
45
+ export declare type TableProps = ExtractPropTypes<typeof tableProps>;
46
+ declare const _default: import("vue").DefineComponent<{
47
+ headList: {
48
+ type: import("vue").PropType<TableHeaderOption[]>;
49
+ default: () => TableHeaderOption[];
50
+ };
51
+ dataList: {
52
+ type: import("vue").PropType<TableBodyOption[]>;
53
+ default: () => TableBodyOption[];
54
+ };
55
+ striped: {
56
+ type: BooleanConstructor;
57
+ default: true;
58
+ };
59
+ emptyValue: {
60
+ type: import("vue").PropType<string>;
61
+ default: string;
62
+ };
63
+ loading: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ skeletonRow: {
68
+ type: NumberConstructor;
69
+ default: number;
70
+ };
71
+ border: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
76
+ headList: {
77
+ type: import("vue").PropType<TableHeaderOption[]>;
78
+ default: () => TableHeaderOption[];
79
+ };
80
+ dataList: {
81
+ type: import("vue").PropType<TableBodyOption[]>;
82
+ default: () => TableBodyOption[];
83
+ };
84
+ striped: {
85
+ type: BooleanConstructor;
86
+ default: true;
87
+ };
88
+ emptyValue: {
89
+ type: import("vue").PropType<string>;
90
+ default: string;
91
+ };
92
+ loading: {
93
+ type: BooleanConstructor;
94
+ default: boolean;
95
+ };
96
+ skeletonRow: {
97
+ type: NumberConstructor;
98
+ default: number;
99
+ };
100
+ border: {
101
+ type: BooleanConstructor;
102
+ default: boolean;
103
+ };
104
+ }>>, {
105
+ border: boolean;
106
+ loading: boolean;
107
+ headList: TableHeaderOption[];
108
+ dataList: TableBodyOption[];
109
+ striped: boolean;
110
+ emptyValue: string;
111
+ skeletonRow: number;
112
+ }>;
113
+ export default _default;
@@ -0,0 +1,137 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name2 in all)
7
+ __defProp(target, name2, { get: all[name2], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+ var stdin_exports = {};
19
+ __export(stdin_exports, {
20
+ default: () => stdin_default,
21
+ tableProps: () => tableProps
22
+ });
23
+ module.exports = __toCommonJS(stdin_exports);
24
+ var import_vue = require("vue");
25
+ var import_vue2 = require("vue");
26
+ var import_utils = require("../utils");
27
+ const [name, bem] = (0, import_utils.createNamespace)("table");
28
+ const tableProps = {
29
+ headList: (0, import_utils.makeArrayProp)(),
30
+ dataList: (0, import_utils.makeArrayProp)(),
31
+ striped: import_utils.truthProp,
32
+ emptyValue: (0, import_utils.makeStringProp)("-"),
33
+ loading: {
34
+ type: Boolean,
35
+ default: false
36
+ },
37
+ skeletonRow: {
38
+ type: Number,
39
+ default: 6
40
+ },
41
+ border: {
42
+ type: Boolean,
43
+ default: false
44
+ }
45
+ };
46
+ var stdin_default = (0, import_vue2.defineComponent)({
47
+ name,
48
+ props: tableProps,
49
+ setup(props) {
50
+ const fixedBoxRef = (0, import_vue2.ref)();
51
+ const fixedColumn = (0, import_vue2.computed)(() => props.headList.filter((v) => v.fixed));
52
+ const resortHeadList = (0, import_vue2.computed)(() => fixedColumn.value.concat(props.headList.filter((v) => !v.fixed)));
53
+ (0, import_vue2.onMounted)(() => {
54
+ const fixedIndexList = props.headList.map((v, i) => {
55
+ if (v.fixed) {
56
+ return `tableHead${i}`;
57
+ } else {
58
+ return "";
59
+ }
60
+ }).filter((v) => v !== "");
61
+ if (fixedIndexList.length > 0) {
62
+ fixedIndexList.forEach((current, index) => {
63
+ const fixedDom = document.getElementById(`fixedHead${index}`);
64
+ const normalDom = document.getElementById(current);
65
+ if (fixedDom && normalDom) {
66
+ fixedDom.style.width = normalDom.offsetWidth + "px";
67
+ }
68
+ }, 0);
69
+ }
70
+ });
71
+ const onScroll = (e) => {
72
+ var _a, _b, _c;
73
+ if (((_a = e.target) == null ? void 0 : _a.scrollLeft) > 0) {
74
+ (_b = fixedBoxRef.value) == null ? void 0 : _b.classList.add("shadow");
75
+ } else {
76
+ (_c = fixedBoxRef.value) == null ? void 0 : _c.classList.remove("shadow");
77
+ }
78
+ };
79
+ const onClick = (data, click) => {
80
+ if (click) {
81
+ click(data);
82
+ }
83
+ };
84
+ const getValue = (value) => value === void 0 || value === "" || value === null ? props.emptyValue : value;
85
+ const genColumn = (headObj, index, isFixed) => (0, import_vue.createVNode)("div", {
86
+ "class": [bem(isFixed ? "fixed-head" : "head")],
87
+ "id": isFixed ? `fixedHead${index}` : `tableHead${index}`,
88
+ "style": isFixed ? "" : headObj.width ? `width:${headObj.width};` : ""
89
+ }, [(0, import_vue.createVNode)("div", {
90
+ "class": [bem("item"), bem("head-item")]
91
+ }, [headObj.label]), props.dataList.map((data) => (0, import_vue.createVNode)("div", {
92
+ "class": [bem("item"), bem("body")],
93
+ "style": headObj.style,
94
+ "onClick": () => onClick(data, headObj.click)
95
+ }, [getValue(data[headObj.key])]))]);
96
+ const getCol = () => {
97
+ const cols = [];
98
+ const col = resortHeadList.value.length;
99
+ for (let j = 0; j < col; j++) {
100
+ cols.push((0, import_vue.createVNode)("div", {
101
+ "class": bem("col")
102
+ }, [(0, import_vue.createVNode)("div", {
103
+ "class": bem("col-item")
104
+ }, null)]));
105
+ }
106
+ return cols;
107
+ };
108
+ const getLoadingColumn = () => {
109
+ const Rows = [];
110
+ for (let i = 0; i < props.skeletonRow; i++) {
111
+ Rows.push((0, import_vue.createVNode)("div", {
112
+ "class": bem("row", {
113
+ head: i === 0
114
+ })
115
+ }, [getCol()]));
116
+ }
117
+ return Rows;
118
+ };
119
+ return () => props.loading ? (0, import_vue.createVNode)("div", {
120
+ "class": bem({
121
+ animate: true,
122
+ skeleton: true
123
+ })
124
+ }, [getLoadingColumn()]) : (0, import_vue.createVNode)("div", {
125
+ "class": bem({
126
+ striped: props.striped,
127
+ "no-border": !props.border
128
+ })
129
+ }, [(0, import_vue.createVNode)("div", {
130
+ "class": bem("normal-box"),
131
+ "onScroll": onScroll
132
+ }, [resortHeadList.value.map((x, i) => genColumn(x, i))]), (0, import_vue.createVNode)("div", {
133
+ "class": bem("fixed-box"),
134
+ "ref": fixedBoxRef
135
+ }, [fixedColumn.value.map((x, i) => genColumn(x, i, true))])]);
136
+ }
137
+ });
@@ -0,0 +1 @@
1
+ :root{--zt-table-head-height: 40px;--zt-table-head-font-size: var(--zt-font-size-md);--zt-table-head-color: var(--zt-blue);--zt-table-head-background: #e6f5ff;--zt-table-body-height: 40px;--zt-table-body-font-size: var(--zt-font-size-md);--zt-table-body-color: var(--zt-gray-default);--zt-table-body-background: var(--zt-white)}.zt-base-hair{position:relative}.zt-base-hair:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table{position:relative}.zt-table--no-border .zt-table__head:after,.zt-table--no-border .zt-table__fixed-head:after,.zt-table--no-border .zt-table__normal-box:after,.zt-table--no-border .zt-table__head-item:after,.zt-table--no-border .zt-table__body:after{display:none}.zt-table--skeleton{background-color:#fff;padding-bottom:10px}.zt-table__row{display:flex;box-sizing:border-box;padding:0 10px;height:40px}.zt-table__row--head{display:flex;justify-content:center;align-items:center;background-color:#e7f0fb;margin-bottom:8px}.zt-table__row--head .zt-table__col-item{background-color:#cfdae9;height:20px}.zt-table__col{display:flex;align-items:center;justify-content:center;box-sizing:border-box;flex:1;padding:4px 6px;height:40px}.zt-table__col-item{width:100%;height:100%;border-radius:4px;background-color:rgba(45,75,115,.06)}.zt-table--animate{animation:zt-table-blink var(--zt-skeleton-duration) ease-in-out infinite}.zt-table__normal-box{display:flex;overflow-x:scroll;position:relative}.zt-table__normal-box:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table__normal-box:after{border-left-width:var(--zt-border-width)}.zt-table__normal-box::-webkit-scrollbar{width:unset;background-color:unset;height:4px}.zt-table__normal-box::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.1)}.zt-table--striped .zt-table__body:nth-child(odd){background-color:var(--zt-background)}.zt-table__fixed-box{display:flex;position:absolute;top:0;left:0;z-index:2}.zt-table__fixed-box.shadow:after{content:"";position:absolute;top:0;right:-10px;width:10px;height:100%;opacity:.06;background-image:linear-gradient(90deg,#000000 0%,rgba(0,0,0,0) 100%)}.zt-table__fixed-head{position:relative}.zt-table__fixed-head:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table__fixed-head:after{border-width:var(--zt-border-width)}.zt-table__head{flex-shrink:0;flex:1 0 auto;position:relative}.zt-table__head:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table__head:after{border-right-width:var(--zt-border-width)}.zt-table__item{text-align:center}.zt-table__head-item{height:var(--zt-table-head-height);font-size:var(--zt-table-head-font-size);color:var(--zt-table-head-color);line-height:var(--zt-table-head-height);background:var(--zt-table-head-background);font-weight:600;position:relative}.zt-table__head-item:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--zt-border-color);transform:scale(.5)}.zt-table__head-item:after{border-width:var(--zt-border-width) 0}.zt-table__body{height:var(--zt-table-body-height);font-size:var(--zt-table-body-font-size);color:var(--zt-table-body-color);line-height:var(--zt-table-body-height);background:var(--zt-table-body-background);position:relative}.zt-table__body:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:0;bottom:0;left:0;border-bottom:1px solid var(--zt-border-color);transform:scaleY(.5)}@keyframes zt-table-blink{50%{opacity:.6}}
@@ -0,0 +1,75 @@
1
+ export declare const Table: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ headList: {
3
+ type: import("vue").PropType<import("./Table").TableHeaderOption[]>;
4
+ default: () => import("./Table").TableHeaderOption[];
5
+ };
6
+ dataList: {
7
+ type: import("vue").PropType<import("./Table").TableBodyOption[]>;
8
+ default: () => import("./Table").TableBodyOption[];
9
+ };
10
+ striped: {
11
+ type: BooleanConstructor;
12
+ default: true;
13
+ };
14
+ emptyValue: {
15
+ type: import("vue").PropType<string>;
16
+ default: string;
17
+ };
18
+ loading: {
19
+ type: BooleanConstructor;
20
+ default: boolean;
21
+ };
22
+ skeletonRow: {
23
+ type: NumberConstructor;
24
+ default: number;
25
+ };
26
+ border: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
+ headList: {
32
+ type: import("vue").PropType<import("./Table").TableHeaderOption[]>;
33
+ default: () => import("./Table").TableHeaderOption[];
34
+ };
35
+ dataList: {
36
+ type: import("vue").PropType<import("./Table").TableBodyOption[]>;
37
+ default: () => import("./Table").TableBodyOption[];
38
+ };
39
+ striped: {
40
+ type: BooleanConstructor;
41
+ default: true;
42
+ };
43
+ emptyValue: {
44
+ type: import("vue").PropType<string>;
45
+ default: string;
46
+ };
47
+ loading: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ skeletonRow: {
52
+ type: NumberConstructor;
53
+ default: number;
54
+ };
55
+ border: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ }>>, {
60
+ border: boolean;
61
+ loading: boolean;
62
+ headList: import("./Table").TableHeaderOption[];
63
+ dataList: import("./Table").TableBodyOption[];
64
+ striped: boolean;
65
+ emptyValue: string;
66
+ skeletonRow: number;
67
+ }>>;
68
+ export default Table;
69
+ export { tableProps } from './Table';
70
+ export type { TableHeaderOption, TableProps } from './Table';
71
+ declare module 'vue' {
72
+ interface GlobalComponents {
73
+ ZtTable: typeof Table;
74
+ }
75
+ }
@@ -0,0 +1,39 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+ var stdin_exports = {};
29
+ __export(stdin_exports, {
30
+ Table: () => Table,
31
+ default: () => stdin_default,
32
+ tableProps: () => import_Table2.tableProps
33
+ });
34
+ module.exports = __toCommonJS(stdin_exports);
35
+ var import_utils = require("../utils");
36
+ var import_Table = __toESM(require("./Table"));
37
+ var import_Table2 = require("./Table");
38
+ const Table = (0, import_utils.withInstall)(import_Table.default);
39
+ var stdin_default = Table;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ require("../../style/base.css");
2
+ require("../index.css");
package/lib/tabs/Tabs.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
@@ -37,6 +41,7 @@ var import_use_route = require("../composables/use-route");
37
41
  var import_use_refs = require("../composables/use-refs");
38
42
  var import_use_expose = require("../composables/use-expose");
39
43
  var import_on_popup_reopen = require("../composables/on-popup-reopen");
44
+ var import_use_visibility_change = require("../composables/use-visibility-change");
40
45
  var import_sticky = require("../sticky");
41
46
  var import_TabsTitle = __toESM(require("./TabsTitle"));
42
47
  var import_TabsContent = __toESM(require("./TabsContent"));
@@ -362,6 +367,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
362
367
  (0, import_vue2.onActivated)(setLine);
363
368
  (0, import_on_popup_reopen.onPopupReopen)(setLine);
364
369
  (0, import_use.onMountedOrActivated)(init);
370
+ (0, import_use_visibility_change.useVisibilityChange)(root, setLine);
365
371
  (0, import_use.useEventListener)("scroll", onScroll, {
366
372
  target: scroller,
367
373
  passive: true
@@ -1 +1 @@
1
- :root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-font-size: var(--zt-font-size-md);--zt-tab-active-font-size: var(--zt-font-size-lg);--zt-tab-active-opacity: .2;--zt-tab-disabled-font-size: var(--zt-font-size-md);--zt-tab-line-height: var(--zt-line-height-md);--zt-tabs-default-color: var(--zt-primary-color);--zt-tabs-line-height: 44px;--zt-tabs-line-bottom: 16px;--zt-tabs-card-height: 32px;--zt-tabs-bottom-bar-width: 12px;--zt-tabs-bottom-bar-height: 4px;--zt-tabs-bottom-bar-color: var(--zt-primary-color);--zt-tabs-bottom-bar-radius: 2px;--zt-tabs-nav-background: var(--zt-background);--zt-tab-text-color: var(--zt-gray-a6);--zt-tabs-overlay-left-background: linear-gradient(90deg, #ffffff 0%, rgba(245, 250, 255, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%)}.zt-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--zt-padding-md);color:var(--zt-tab-text-color);font-size:var(--zt-tab-font-size);line-height:var(--zt-tab-line-height);cursor:pointer}.zt-tab--active{color:var(--zt-tab-active-text-color);font-size:var(--zt-tab-active-font-size);font-weight:var(--zt-font-bold)}.zt-tab--active:active{opacity:var(--zt-tab-active-opacity)}.zt-tab--disabled{color:var(--zt-tab-disabled-text-color);cursor:not-allowed;font-size:var(--zt-tab-disabled-font-size)}.zt-tab--grow{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tab--shrink{flex:none;padding:0 var(--zt-padding-xs)}.zt-tab--card{color:var(--zt-tabs-default-color)}.zt-tab--card.zt-tab--active{color:var(--zt-white);background-color:var(--zt-tabs-default-color)}.zt-tab--card--disabled{color:var(--zt-tab-disabled-text-color)}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper,.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden;position:relative}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__overlay-left,.zt-tabs__overlay-right{position:absolute;top:0;width:var(--zt-tabs-line-height);height:var(--zt-tabs-line-height);pointer-events:none}.zt-tabs__overlay-left{left:0;background:var(--zt-tabs-overlay-left-background)}.zt-tabs__overlay-right{right:0;background:var(--zt-tabs-overlay-right-background)}.zt-tabs__nav{position:relative;display:flex;justify-content:flex-start;background-color:var(--zt-tabs-nav-background);-webkit-user-select:none;user-select:none}.zt-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--complete::-webkit-scrollbar{display:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:var(--zt-tabs-line-bottom)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tab,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tab{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav::-webkit-scrollbar,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav--card.zt-tabs__nav--shrink{display:inline-flex}.zt-tabs__line{position:absolute;bottom:var(--zt-tabs-line-bottom);left:0;z-index:1;width:var(--zt-tabs-bottom-bar-width);height:var(--zt-tabs-bottom-bar-height);background:var(--zt-tabs-bottom-bar-color);border-radius:var(--zt-tabs-bottom-bar-radius)}.zt-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:var(--zt-tabs-line-height)}.zt-tabs--card>.zt-tabs__wrap{height:var(--zt-tabs-card-height)}.zt-theme-dark{--zt-tabs-nav-background: var(--zt-background-2);--zt-tabs-overlay-left-background: linear-gradient(90deg, #0f1923 0%, rgba(15, 25, 35, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(15, 25, 35, 0) 3%, #0f1923 100%)}
1
+ :root{--zt-tab-active-text-color: var(--zt-text-color);--zt-tab-disabled-text-color: var(--zt-text-color-3);--zt-tab-font-size: var(--zt-font-size-md);--zt-tab-active-font-size: var(--zt-font-size-lg);--zt-tab-active-opacity: .2;--zt-tab-disabled-font-size: var(--zt-font-size-md);--zt-tab-line-height: var(--zt-line-height-md);--zt-tabs-default-color: var(--zt-primary-color);--zt-tabs-line-height: 44px;--zt-tabs-line-bottom: 16px;--zt-tabs-card-height: 32px;--zt-tabs-bottom-bar-width: 12px;--zt-tabs-bottom-bar-height: 4px;--zt-tabs-bottom-bar-color: var(--zt-primary-color);--zt-tabs-bottom-bar-radius: 2px;--zt-tabs-nav-background: var(--zt-background);--zt-tab-text-color: var(--zt-gray-a6);--zt-tabs-overlay-left-background: linear-gradient(90deg, #ffffff 0%, rgba(245, 250, 255, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%)}.zt-tab{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:0 var(--zt-padding-md);color:var(--zt-tab-text-color);font-size:var(--zt-tab-font-size);line-height:var(--zt-tab-line-height);cursor:pointer}.zt-tab--active{color:var(--zt-tab-active-text-color);font-size:var(--zt-tab-active-font-size);font-weight:var(--zt-font-bold)}.zt-tab--active:active{opacity:var(--zt-tab-active-opacity)}.zt-tab--disabled{color:var(--zt-tab-disabled-text-color);cursor:not-allowed;font-size:var(--zt-tab-disabled-font-size)}.zt-tab--grow{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tab--shrink{flex:none;padding:0 var(--zt-padding-xs)}.zt-tab--card{color:var(--zt-tabs-default-color)}.zt-tab--card.zt-tab--active{color:var(--zt-white);background-color:var(--zt-tabs-default-color)}.zt-tab--card--disabled{color:var(--zt-tab-disabled-text-color)}.zt-tab__text--ellipsis{display:-webkit-box;overflow:hidden;-webkit-line-clamp:1;-webkit-box-orient:vertical}.zt-tab__text-wrapper,.zt-tabs{position:relative}.zt-tabs__wrap{overflow:hidden;position:relative}.zt-tabs__wrap--page-top{position:fixed}.zt-tabs__wrap--content-bottom{top:auto;bottom:0}.zt-tabs__overlay-left,.zt-tabs__overlay-right{position:absolute;top:0;width:var(--zt-tabs-line-height);height:var(--zt-tabs-line-height);pointer-events:none}.zt-tabs__overlay-left{left:0;background:var(--zt-tabs-overlay-left-background)}.zt-tabs__overlay-right{right:0;background:var(--zt-tabs-overlay-right-background)}.zt-tabs__nav{position:relative;display:flex;justify-content:flex-start;background-color:var(--zt-tabs-nav-background);-webkit-user-select:none;user-select:none}.zt-tabs__nav--complete{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--complete::-webkit-scrollbar{display:none}.zt-tabs__nav--line{box-sizing:content-box;height:100%;padding-bottom:var(--zt-tabs-line-bottom)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tab,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tab{flex:1 0 auto;padding:0 var(--zt-padding-sm)}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch}.zt-tabs__nav--line.zt-tabs__nav--shrink .zt-tabs__nav::-webkit-scrollbar,.zt-tabs__nav--line.zt-tabs__nav--complete .zt-tabs__nav::-webkit-scrollbar{display:none}.zt-tabs__nav--card.zt-tabs__nav--shrink{display:inline-flex}.zt-tabs__line{position:absolute;bottom:var(--zt-tabs-line-bottom);left:0;z-index:1;width:var(--zt-tabs-bottom-bar-width);height:var(--zt-tabs-bottom-bar-height);background:var(--zt-tabs-bottom-bar-color);border-radius:var(--zt-tabs-bottom-bar-radius)}.zt-tabs__track{position:relative;display:flex;width:100%;height:100%;will-change:left}.zt-tabs__content--animated{overflow:hidden}.zt-tabs--line .zt-tabs__wrap{height:var(--zt-tabs-line-height)}.zt-tabs--card>.zt-tabs__wrap{height:var(--zt-tabs-card-height)}.zt-theme-dark{--zt-tabs-overlay-left-background: linear-gradient(90deg, #0f1923 0%, rgba(15, 25, 35, 0) 100%);--zt-tabs-overlay-right-background: linear-gradient(90deg, rgba(15, 25, 35, 0) 3%, #0f1923 100%)}
package/lib/tabs/index.js CHANGED
@@ -17,6 +17,10 @@ var __copyProps = (to, from, except, desc) => {
17
17
  return to;
18
18
  };
19
19
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
20
24
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
21
25
  mod
22
26
  ));
package/lib/tag/Tag.d.ts CHANGED
@@ -28,6 +28,11 @@ export declare const tagProps: {
28
28
  type: NumberConstructor;
29
29
  default: number;
30
30
  };
31
+ stamp: BooleanConstructor;
32
+ stampDiameter: {
33
+ type: NumberConstructor;
34
+ default: number;
35
+ };
31
36
  };
32
37
  export declare type TagProps = ExtractPropTypes<typeof tagProps>;
33
38
  declare const _default: import("vue").DefineComponent<{
@@ -58,6 +63,11 @@ declare const _default: import("vue").DefineComponent<{
58
63
  type: NumberConstructor;
59
64
  default: number;
60
65
  };
66
+ stamp: BooleanConstructor;
67
+ stampDiameter: {
68
+ type: NumberConstructor;
69
+ default: number;
70
+ };
61
71
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
62
72
  mark: BooleanConstructor;
63
73
  show: {
@@ -86,17 +96,24 @@ declare const _default: import("vue").DefineComponent<{
86
96
  type: NumberConstructor;
87
97
  default: number;
88
98
  };
99
+ stamp: BooleanConstructor;
100
+ stampDiameter: {
101
+ type: NumberConstructor;
102
+ default: number;
103
+ };
89
104
  }>> & {
90
105
  onClose?: ((...args: any[]) => any) | undefined;
91
106
  }, {
107
+ mark: boolean;
92
108
  type: TagType;
93
109
  badge: boolean;
94
- mark: boolean;
95
110
  show: boolean;
96
111
  round: boolean;
97
112
  closeable: boolean;
98
113
  plain: boolean;
99
114
  badgeWidth: number;
100
115
  badgeHeight: number;
116
+ stamp: boolean;
117
+ stampDiameter: number;
101
118
  }>;
102
119
  export default _default;
package/lib/tag/Tag.js CHANGED
@@ -42,7 +42,9 @@ const tagProps = {
42
42
  iconColor: String,
43
43
  badge: Boolean,
44
44
  badgeWidth: (0, import_utils.makeNumberProp)(50),
45
- badgeHeight: (0, import_utils.makeNumberProp)(50)
45
+ badgeHeight: (0, import_utils.makeNumberProp)(50),
46
+ stamp: Boolean,
47
+ stampDiameter: (0, import_utils.makeNumberProp)(60)
46
48
  };
47
49
  var stdin_default = (0, import_vue2.defineComponent)({
48
50
  name,
@@ -111,10 +113,53 @@ var stdin_default = (0, import_vue2.defineComponent)({
111
113
  "class": bem([classes, type])
112
114
  }, [LeftIcon, (_a = slots.default) == null ? void 0 : _a.call(slots), CloseIcon]);
113
115
  };
116
+ const getStampStyle = () => {
117
+ const style = {
118
+ color: props.color || props.textColor,
119
+ width: props.stampDiameter + "px",
120
+ height: props.stampDiameter + "px"
121
+ };
122
+ return style;
123
+ };
124
+ const renderStampTag = () => {
125
+ var _a;
126
+ const {
127
+ type
128
+ } = props;
129
+ return (0, import_vue.createVNode)("svg", {
130
+ "style": getStampStyle(),
131
+ "class": bem("stamp", [type]),
132
+ "viewBox": "0 0 60 60",
133
+ "xmlns": "http://www.w3.org/2000/svg"
134
+ }, [(0, import_vue.createVNode)("g", {
135
+ "stroke": "none",
136
+ "stroke-width": "1",
137
+ "fill": "none",
138
+ "fill-rule": "evenodd"
139
+ }, [(0, import_vue.createVNode)("g", {
140
+ "transform": "translate(-334.000000, -500.000000)",
141
+ "fill": "currentColor"
142
+ }, [(0, import_vue.createVNode)("g", {
143
+ "transform": "translate(16.000000, 496.000000)"
144
+ }, [(0, import_vue.createVNode)("g", {
145
+ "transform": "translate(318.000000, 4.000000)"
146
+ }, [(0, import_vue.createVNode)("path", {
147
+ "d": "M30,54 C38.0297784,54 45.1385247,50.0565924 49.4952837,44.0007323 L51.9121045,44.0009744 C47.2917236,51.217056 39.20442,56 30,56 C20.79558,56 12.7082764,51.217056 8.08789552,44.0009744 L10.5047163,44.0007323 C14.8614753,50.0565924 21.9702216,54 30,54 Z M24.4914569,48.5 L25.1164192,49.7519142 L26.5,49.9601927 L25.5057346,50.9266793 L25.7498261,52.3 L24.5100062,51.6450994 L23.2778261,52.2855681 L23.5057346,50.915003 L22.5,49.9368402 L23.8812192,49.7447029 L24.4914569,48.5 Z M35.4914569,48.5 L36.1164192,49.7519142 L37.5,49.9601927 L36.5057346,50.9266793 L36.7498261,52.3 L35.5100062,51.6450994 L34.2778261,52.2855681 L34.5057346,50.915003 L33.5,49.9368402 L34.8812192,49.7447029 L35.4914569,48.5 Z M30,46 C32.8118899,46 35.4543634,45.274642 37.7505137,44.0008326 L41.3137959,44.0007062 C38.2224755,46.5018817 34.2861899,48 30,48 C25.7138101,48 21.7775245,46.5018817 18.6862041,44.0007062 L22.2494863,44.0008326 C24.5456366,45.274642 27.1881101,46 30,46 Z M16.4914569,44 L17.1164192,45.2519142 L18.5,45.4601927 L17.5057346,46.4266793 L17.7498261,47.8 L16.5100062,47.1450994 L15.2778261,47.7855681 L15.5057346,46.415003 L14.5,45.4368402 L15.8812192,45.2447029 L16.4914569,44 Z M43.4914569,44 L44.1164192,45.2519142 L45.5,45.4601927 L44.5057346,46.4266793 L44.7498261,47.8 L43.5100062,47.1450994 L42.2778261,47.7855681 L42.5057346,46.415003 L41.5,45.4368402 L42.8812192,45.2447029 L43.4914569,44 Z M56,18 C58.209139,18 60,19.790861 60,22 L60,22 L60,38.0000356 C60,40.2091746 58.209139,42.0000356 56,42.0000356 L56,42.0000356 L4,42.0000356 C1.790861,42.0000356 2.705415e-16,40.2091746 0,38.0000356 L0,38.0000356 L0,22 C-2.705415e-16,19.790861 1.790861,18 4,18 L4,18 Z M55,20 L5,20 C3.34314575,20 2,21.3431458 2,23 L2,37 C2,38.6568542 3.34314575,40 5,40 L55,40 C56.6568542,40 58,38.6568542 58,37 L58,23 C58,21.3431458 56.6568542,20 55,20 Z M30,4 C39.2048436,4 47.2924679,8.78338418 51.9127423,16.0000219 L49.4960029,16.0002674 C45.139307,9.94384156 38.0302203,6 30,6 C21.9697797,6 14.860693,9.94384156 10.5039971,16.0002674 L8.08725766,16.0000219 C12.7075321,8.78338418 20.7951564,4 30,4 Z M30,12 C34.2866501,12 38.2233209,13.49844 41.3147917,16.0000995 L37.7525036,16.0002715 C35.4558902,14.7257772 32.8127023,14 30,14 C27.1872977,14 24.5441098,14.7257772 22.2474964,16.0002715 L18.6852083,16.0000995 C21.7766791,13.49844 25.7133499,12 30,12 Z M16.4914569,12 L17.1164192,13.2519142 L18.5,13.4601927 L17.5057346,14.4266793 L17.7498261,15.8 L16.5100062,15.1450994 L15.2778261,15.7855681 L15.5057346,14.415003 L14.5,13.4368402 L15.8812192,13.2447029 L16.4914569,12 Z M43.4914569,12 L44.1164192,13.2519142 L45.5,13.4601927 L44.5057346,14.4266793 L44.7498261,15.8 L43.5100062,15.1450994 L42.2778261,15.7855681 L42.5057346,14.415003 L41.5,13.4368402 L42.8812192,13.2447029 L43.4914569,12 Z M24.4914569,7.5 L25.1164192,8.75191416 L26.5,8.96019274 L25.5057346,9.92667928 L25.7498261,11.3 L24.5100062,10.6450994 L23.2778261,11.2855681 L23.5057346,9.91500302 L22.5,8.93684023 L23.8812192,8.7447029 L24.4914569,7.5 Z M35.4914569,7.5 L36.1164192,8.75191416 L37.5,8.96019274 L36.5057346,9.92667928 L36.7498261,11.3 L35.5100062,10.6450994 L34.2778261,11.2855681 L34.5057346,9.91500302 L33.5,8.93684023 L34.8812192,8.7447029 L35.4914569,7.5 Z",
148
+ "transform": "translate(30.000000, 30.000000) rotate(35.000000) translate(-30.000000, -30.000000) "
149
+ }, null)])])])]), (0, import_vue.createVNode)("foreignObject", {
150
+ "width": "50px",
151
+ "height": "24px",
152
+ "x": "5",
153
+ "y": "19",
154
+ "transform": "rotate(35, 30, 30)"
155
+ }, [(0, import_vue.createVNode)("div", {
156
+ "class": bem("stamp", ["text"])
157
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])])]);
158
+ };
114
159
  return () => (0, import_vue.createVNode)(import_vue2.Transition, {
115
160
  "name": props.closeable ? "zt-fade" : void 0
116
161
  }, {
117
- default: () => [props.show ? renderTag() : null]
162
+ default: () => [props.stamp && props.show ? renderStampTag() : props.show ? renderTag() : null]
118
163
  });
119
164
  }
120
165
  });
package/lib/tag/index.css CHANGED
@@ -1 +1 @@
1
- :root{--zt-tag-padding: 0 var(--zt-padding-sm);--zt-tag-text-color: var(--zt-white);--zt-tag-font-size: var(--zt-font-size-sm);--zt-tag-radius: 2px;--zt-tag-line-height: 20px;--zt-tag-icon-gap: 2px;--zt-tag-icon-size: 16px;--zt-tag-close-icon-size: 20px;--zt-tag-round-radius: 12px;--zt-tag-round-line-height: 24px;--zt-tag-closeable-font-size: var(--zt-font-size-md);--zt-tag-closeable-line-height: 28px;--zt-tag-closeable-radius: 14px;--zt-tag-danger-color: var(--zt-danger-color);--zt-tag-primary-color: var(--zt-primary-color);--zt-tag-success-color: var(--zt-success-color);--zt-tag-warning-color: var(--zt-warning-color);--zt-tag-default-color: var(--zt-gray-a08);--zt-tag-plain-background: var(--zt-background-2)}.zt-tag{position:relative;display:inline-flex;align-items:center;padding:var(--zt-tag-padding);color:var(--zt-tag-text-color);font-size:var(--zt-tag-font-size);line-height:var(--zt-tag-line-height);border-radius:var(--zt-tag-radius);overflow:hidden}.zt-tag__icon{font-size:var(--zt-tag-icon-size);margin-right:var(--zt-tag-icon-gap)}.zt-tag--default{background:var(--zt-tag-default-color)}.zt-tag--default.zt-tag--plain{color:var(--zt-tag-default-color)}.zt-tag--danger{background:var(--zt-tag-danger-color)}.zt-tag--danger.zt-tag--plain{color:var(--zt-tag-danger-color)}.zt-tag--primary{background:var(--zt-tag-primary-color)}.zt-tag--primary.zt-tag--plain{color:var(--zt-tag-primary-color)}.zt-tag--success{background:var(--zt-tag-success-color)}.zt-tag--success.zt-tag--plain{color:var(--zt-tag-success-color)}.zt-tag--warning{background:var(--zt-tag-warning-color)}.zt-tag--warning.zt-tag--plain{color:var(--zt-tag-warning-color)}.zt-tag--plain{background:var(--zt-tag-plain-background);border-color:currentColor}.zt-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.zt-tag--mark{border-radius:0 var(--zt-tag-round-radius) var(--zt-tag-round-radius) 0}.zt-tag--mark:after{display:block;width:2px;content:""}.zt-tag--round{border-radius:var(--zt-tag-round-radius);line-height:var(--zt-tag-round-line-height)}.zt-tag__close{font-size:var(--zt-tag-close-icon-size);margin-left:2px}.zt-tag--closeable{font-size:var(--zt-tag-closeable-font-size);line-height:var(--zt-tag-closeable-line-height);background:var(--zt-text-color-a6);border-radius:var(--zt-tag-closeable-radius)}.zt-tag--badge{position:absolute;text-align:center;display:block;box-sizing:border-box}
1
+ :root{--zt-tag-padding: var(--zt-padding-base) var(--zt-padding-sm);--zt-tag-text-color: var(--zt-white);--zt-tag-font-size: var(--zt-font-size-sm);--zt-tag-radius: 2px;--zt-tag-line-height: 16px;--zt-tag-icon-gap: 2px;--zt-tag-icon-size: 16px;--zt-tag-close-icon-size: 20px;--zt-tag-round-radius: 12px;--zt-tag-round-line-height: 16px;--zt-tag-badge-padding: 0 var(--zt-padding-sm);--zt-tag-closeable-font-size: var(--zt-font-size-md);--zt-tag-closeable-line-height: 20px;--zt-tag-closeable-radius: 14px;--zt-tag-closeable-background: var(--zt-gray-a6);--zt-tag-danger-color: var(--zt-danger-color);--zt-tag-primary-color: var(--zt-primary-color);--zt-tag-success-color: var(--zt-success-color);--zt-tag-warning-color: var(--zt-warning-color);--zt-tag-default-color: var(--zt-gray-a08);--zt-tag-plain-background: var(--zt-background-2);--zt-tag-stamp-diameter: 60px}.zt-tag{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;padding:var(--zt-tag-padding);color:var(--zt-tag-text-color);font-size:var(--zt-tag-font-size);line-height:var(--zt-tag-line-height);border-radius:var(--zt-tag-radius);overflow:hidden;word-break:break-all}.zt-tag__icon{font-size:var(--zt-tag-icon-size);margin-right:var(--zt-tag-icon-gap)}.zt-tag--default{background:var(--zt-tag-default-color)}.zt-tag--default.zt-tag--plain{color:var(--zt-tag-default-color)}.zt-tag--danger{background:var(--zt-tag-danger-color)}.zt-tag--danger.zt-tag--plain{color:var(--zt-tag-danger-color)}.zt-tag--primary{background:var(--zt-tag-primary-color)}.zt-tag--primary.zt-tag--plain{color:var(--zt-tag-primary-color)}.zt-tag--success{background:var(--zt-tag-success-color)}.zt-tag--success.zt-tag--plain{color:var(--zt-tag-success-color)}.zt-tag--warning{background:var(--zt-tag-warning-color)}.zt-tag--warning.zt-tag--plain{color:var(--zt-tag-warning-color)}.zt-tag--plain{background:var(--zt-tag-plain-background);border-color:currentColor}.zt-tag--plain:before{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-color:inherit;border-radius:inherit;content:"";pointer-events:none}.zt-tag--mark{border-radius:0 var(--zt-tag-round-radius) var(--zt-tag-round-radius) 0}.zt-tag--mark:after{display:block;width:2px;content:""}.zt-tag--round{border-radius:var(--zt-tag-round-radius);line-height:var(--zt-tag-round-line-height)}.zt-tag__close{font-size:var(--zt-tag-close-icon-size);margin-left:2px}.zt-tag--closeable{font-size:var(--zt-tag-closeable-font-size);line-height:var(--zt-tag-closeable-line-height);background:var(--zt-tag-closeable-background);border-radius:var(--zt-tag-closeable-radius)}.zt-tag--badge{position:absolute;text-align:center;display:block;box-sizing:border-box;padding:var(--zt-tag-badge-padding)}.zt-tag__stamp{width:var(--zt-tag-stamp-diameter);height:var(--zt-tag-stamp-diameter);background:rgba(0,0,0,0);padding:0}.zt-tag__stamp--text{width:50px;height:24px;line-height:24px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;text-align:center;font-weight:600}.zt-tag__stamp--default{color:var(--zt-gray-a6)}.zt-tag__stamp--danger{color:var(--zt-tag-danger-color)}.zt-tag__stamp--primary{color:var(--zt-tag-primary-color)}.zt-tag__stamp--success{color:var(--zt-tag-success-color)}.zt-tag__stamp--warning{color:var(--zt-tag-warning-color)}.zt-theme-dark{--zt-tag-closeable-background: rgba(255, 255, 255, .1)}