zartui 3.0.6 → 3.0.8

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 (446) 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/calendar/Calendar.d.ts +23 -33
  5. package/es/calendar/Calendar.mjs +124 -31
  6. package/es/calendar/CalendarDay.mjs +1 -1
  7. package/es/calendar/CalendarHeader.d.ts +15 -1
  8. package/es/calendar/CalendarHeader.mjs +106 -4
  9. package/es/calendar/CalendarMonth.d.ts +23 -24
  10. package/es/calendar/CalendarMonth.mjs +49 -8
  11. package/es/calendar/index.css +1 -1
  12. package/es/calendar/index.d.ts +15 -22
  13. package/es/calendar/types.d.ts +3 -1
  14. package/es/calendar/utils.d.ts +4 -1
  15. package/es/calendar/utils.mjs +23 -3
  16. package/es/cascader/Cascader.mjs +1 -3
  17. package/es/cascader/index.css +1 -1
  18. package/es/checkbox/Checkbox.d.ts +1 -1
  19. package/es/checkbox/Checker.d.ts +2 -2
  20. package/es/checkbox/index.d.ts +1 -1
  21. package/es/collapse-item/CollapseItem.mjs +3 -1
  22. package/es/date-time-picker/DateTimePicker.d.ts +1 -1
  23. package/es/date-time-picker/DateTimePicker.mjs +9 -3
  24. package/es/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  25. package/es/date-time-picker/index.d.ts +1 -1
  26. package/es/dialog/Dialog.d.ts +4 -0
  27. package/es/dialog/Dialog.mjs +24 -9
  28. package/es/dialog/index.css +1 -1
  29. package/es/dialog/index.d.ts +3 -0
  30. package/es/dialog/types.d.ts +1 -0
  31. package/es/divider/index.css +1 -1
  32. package/es/dropdown-item/DropdownItem.mjs +7 -4
  33. package/es/dropdown-menu/DropdownMenu.mjs +2 -2
  34. package/es/dropdown-menu/types.d.ts +1 -0
  35. package/es/empty/Images.mjs +9 -9
  36. package/es/empty/index.css +1 -1
  37. package/es/field/Field.d.ts +3 -0
  38. package/es/field/Field.mjs +2 -1
  39. package/es/field/index.d.ts +2 -0
  40. package/es/hierarchy-select/Breadcrumb.d.ts +43 -0
  41. package/es/hierarchy-select/Breadcrumb.mjs +56 -0
  42. package/es/hierarchy-select/HierarchySelect.d.ts +104 -0
  43. package/es/hierarchy-select/HierarchySelect.mjs +221 -0
  44. package/es/hierarchy-select/index.css +1 -0
  45. package/es/hierarchy-select/index.d.ts +79 -0
  46. package/es/hierarchy-select/index.mjs +8 -0
  47. package/es/hierarchy-select/style/index.d.ts +1 -0
  48. package/es/hierarchy-select/style/index.mjs +8 -0
  49. package/es/hierarchy-select/svg/SubIcon.d.ts +1 -0
  50. package/es/hierarchy-select/svg/SubIcon.mjs +33 -0
  51. package/es/hierarchy-select/types.d.ts +7 -0
  52. package/es/hierarchy-select/types.mjs +0 -0
  53. package/es/icon/config.mjs +4 -1
  54. package/es/icon/index.css +1 -1
  55. package/es/image-preview/ImagePreview.mjs +1 -1
  56. package/es/index-anchor/IndexAnchor.d.ts +11 -0
  57. package/es/index-anchor/IndexAnchor.mjs +88 -0
  58. package/es/index-anchor/index.css +1 -0
  59. package/es/index-anchor/index.d.ts +14 -0
  60. package/es/index-anchor/index.mjs +10 -0
  61. package/es/index-anchor/style/index.d.ts +1 -0
  62. package/es/index-anchor/style/index.mjs +3 -0
  63. package/es/index-anchor/types.d.ts +11 -0
  64. package/es/index-anchor/types.mjs +0 -0
  65. package/es/index-bar/IndexBar.d.ts +64 -0
  66. package/es/index-bar/IndexBar.mjs +275 -0
  67. package/es/index-bar/index.css +1 -0
  68. package/es/index-bar/index.d.ts +50 -0
  69. package/es/index-bar/index.mjs +10 -0
  70. package/es/index-bar/style/index.d.ts +1 -0
  71. package/es/index-bar/style/index.mjs +2 -0
  72. package/es/index-bar/types.d.ts +16 -0
  73. package/es/index-bar/types.mjs +0 -0
  74. package/es/index.d.ts +8 -1
  75. package/es/index.mjs +22 -1
  76. package/es/lazyload/vue-lazyload/index.mjs +5 -0
  77. package/es/lazyload/vue-lazyload/lazy.mjs +81 -0
  78. package/es/lazyload/vue-lazyload/listener.mjs +45 -0
  79. package/es/list/List.mjs +2 -4
  80. package/es/list/index.css +1 -1
  81. package/es/locale/lang/en-US.d.ts +7 -23
  82. package/es/locale/lang/en-US.mjs +7 -23
  83. package/es/locale/lang/zh-CN.d.ts +7 -23
  84. package/es/locale/lang/zh-CN.mjs +7 -23
  85. package/es/media-picker/MediaPicker.mjs +20 -0
  86. package/es/media-picker/image/PickFileIcon.mjs +1 -1
  87. package/es/media-picker/image/PickPhotoIcon.mjs +1 -1
  88. package/es/media-picker/image/TakeAudioIcon.mjs +1 -1
  89. package/es/media-picker/image/TakePhotoIcon.mjs +1 -1
  90. package/es/media-picker/image/TakeVideoIcon.mjs +1 -1
  91. package/es/media-picker/index.css +1 -1
  92. package/es/media-picker/util/media-util.mjs +3 -0
  93. package/es/media-picker/watermark/image-processor.mjs +10 -6
  94. package/es/media-picker/watermark/resize-options.mjs +1 -0
  95. package/es/media-picker/watermark/watermark.mjs +4 -0
  96. package/es/multiple-picker/MultiplePicker.d.ts +4 -4
  97. package/es/multiple-picker/MultiplePicker.mjs +3 -3
  98. package/es/multiple-picker/MultiplePickerOptions.d.ts +4 -4
  99. package/es/multiple-picker/MultiplePickerOptions.mjs +3 -3
  100. package/es/multiple-picker/index.d.ts +3 -3
  101. package/es/notice-bar/index.css +1 -1
  102. package/es/overlay/index.d.ts +1 -1
  103. package/es/picker/Picker.mjs +7 -4
  104. package/es/picker/PickerToolbar.mjs +1 -0
  105. package/es/popover/Popover.d.ts +13 -0
  106. package/es/popover/Popover.mjs +99 -4
  107. package/es/popover/index.css +1 -1
  108. package/es/popover/index.d.ts +9 -0
  109. package/es/popup/Popup.mjs +1 -0
  110. package/es/popup/index.css +1 -1
  111. package/es/popup/shared.mjs +12 -0
  112. package/es/radio/Radio.d.ts +1 -1
  113. package/es/radio/index.d.ts +1 -1
  114. package/es/rate/index.css +1 -1
  115. package/es/search/Search.d.ts +1 -1
  116. package/es/search/Search.mjs +1 -0
  117. package/es/search/index.d.ts +1 -1
  118. package/es/signature/Signature.mjs +13 -10
  119. package/es/signature/index.css +1 -1
  120. package/es/step/Step.mjs +10 -6
  121. package/es/step/index.css +1 -1
  122. package/es/stepper/Stepper.mjs +2 -0
  123. package/es/stepper/index.css +1 -1
  124. package/es/steps/index.css +1 -1
  125. package/es/sticky/Sticky.mjs +2 -0
  126. package/es/style/base.css +1 -1
  127. package/es/style/css-variables.css +1 -1
  128. package/es/swipe/Swipe.d.ts +3 -1
  129. package/es/swipe/Swipe.mjs +19 -2
  130. package/es/swipe/index.d.ts +3 -1
  131. package/es/swipe-cell/SwipeCell.d.ts +44 -0
  132. package/es/swipe-cell/SwipeCell.mjs +163 -0
  133. package/es/swipe-cell/index.css +1 -0
  134. package/es/swipe-cell/index.d.ts +39 -0
  135. package/es/swipe-cell/index.mjs +10 -0
  136. package/es/swipe-cell/style/index.d.ts +1 -0
  137. package/es/swipe-cell/style/index.mjs +2 -0
  138. package/es/swipe-cell/types.d.ts +9 -0
  139. package/es/swipe-cell/types.mjs +0 -0
  140. package/es/switch/index.css +1 -1
  141. package/es/tabbar-item/index.css +1 -1
  142. package/es/table/Table.d.ts +118 -0
  143. package/es/table/Table.mjs +209 -0
  144. package/es/table/index.css +1 -0
  145. package/es/table/index.d.ts +77 -0
  146. package/es/table/index.mjs +10 -0
  147. package/es/table/style/index.d.ts +1 -0
  148. package/es/table/style/index.mjs +4 -0
  149. package/es/table/types.d.ts +5 -0
  150. package/es/table/types.mjs +8 -0
  151. package/es/tabs/Tabs.mjs +2 -0
  152. package/es/tabs/index.css +1 -1
  153. package/es/tag/Tag.d.ts +21 -1
  154. package/es/tag/Tag.mjs +63 -10
  155. package/es/tag/index.css +1 -1
  156. package/es/tag/index.d.ts +15 -1
  157. package/es/tag/style/index.mjs +1 -0
  158. package/es/text-ellipsis/TextEllipsis.d.ts +76 -0
  159. package/es/text-ellipsis/TextEllipsis.mjs +118 -0
  160. package/es/text-ellipsis/index.css +1 -0
  161. package/es/text-ellipsis/index.d.ts +60 -0
  162. package/es/text-ellipsis/index.mjs +10 -0
  163. package/es/text-ellipsis/style/index.d.ts +1 -0
  164. package/es/text-ellipsis/style/index.mjs +2 -0
  165. package/es/text-ellipsis/types.d.ts +3 -0
  166. package/es/text-ellipsis/types.mjs +0 -0
  167. package/es/timeline/Timeline.d.ts +113 -0
  168. package/es/timeline/Timeline.mjs +162 -0
  169. package/es/timeline/index.css +1 -0
  170. package/es/timeline/index.d.ts +75 -0
  171. package/es/timeline/index.mjs +10 -0
  172. package/es/timeline/style/index.d.ts +1 -0
  173. package/es/timeline/style/index.mjs +4 -0
  174. package/es/uploader/Uploader.d.ts +1 -1
  175. package/es/uploader/UploaderPreviewItem.d.ts +1 -1
  176. package/es/uploader/index.d.ts +1 -1
  177. package/es/uploader/utils.mjs +1 -1
  178. package/es/utils/dom.d.ts +1 -0
  179. package/es/utils/dom.mjs +11 -0
  180. package/lib/action-sheet/index.js +4 -0
  181. package/lib/avatar/Avatar.js +4 -0
  182. package/lib/avatar/index.js +4 -0
  183. package/lib/badge/index.js +4 -0
  184. package/lib/button/Button.d.ts +3 -0
  185. package/lib/button/Button.js +2 -0
  186. package/lib/button/index.d.ts +2 -0
  187. package/lib/button/index.js +4 -0
  188. package/lib/calendar/Calendar.d.ts +23 -33
  189. package/lib/calendar/Calendar.js +127 -30
  190. package/lib/calendar/CalendarDay.js +1 -1
  191. package/lib/calendar/CalendarHeader.d.ts +15 -1
  192. package/lib/calendar/CalendarHeader.js +106 -4
  193. package/lib/calendar/CalendarMonth.d.ts +23 -24
  194. package/lib/calendar/CalendarMonth.js +52 -7
  195. package/lib/calendar/index.css +1 -1
  196. package/lib/calendar/index.d.ts +15 -22
  197. package/lib/calendar/index.js +4 -0
  198. package/lib/calendar/types.d.ts +3 -1
  199. package/lib/calendar/utils.d.ts +4 -1
  200. package/lib/calendar/utils.js +23 -3
  201. package/lib/cascader/Cascader.js +5 -3
  202. package/lib/cascader/index.css +1 -1
  203. package/lib/cascader/index.js +4 -0
  204. package/lib/cell/index.js +4 -0
  205. package/lib/cell-group/index.js +4 -0
  206. package/lib/checkbox/Checkbox.d.ts +1 -1
  207. package/lib/checkbox/Checkbox.js +4 -0
  208. package/lib/checkbox/Checker.d.ts +2 -2
  209. package/lib/checkbox/index.d.ts +1 -1
  210. package/lib/checkbox/index.js +4 -0
  211. package/lib/checkbox-group/index.js +4 -0
  212. package/lib/col/index.js +4 -0
  213. package/lib/collapse/index.js +4 -0
  214. package/lib/collapse-item/CollapseItem.js +7 -1
  215. package/lib/collapse-item/index.js +4 -0
  216. package/lib/config-provider/index.js +4 -0
  217. package/lib/date-time-picker/DateTimePicker.d.ts +1 -1
  218. package/lib/date-time-picker/DateTimePicker.js +13 -3
  219. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +1 -1
  220. package/lib/date-time-picker/DateTimePickerWrapper.js +4 -0
  221. package/lib/date-time-picker/index.d.ts +1 -1
  222. package/lib/date-time-picker/index.js +4 -0
  223. package/lib/dialog/Dialog.d.ts +4 -0
  224. package/lib/dialog/Dialog.js +24 -9
  225. package/lib/dialog/function-call.js +4 -0
  226. package/lib/dialog/index.css +1 -1
  227. package/lib/dialog/index.d.ts +3 -0
  228. package/lib/dialog/index.js +4 -0
  229. package/lib/dialog/types.d.ts +1 -0
  230. package/lib/divider/index.css +1 -1
  231. package/lib/divider/index.js +4 -0
  232. package/lib/dropdown-item/DropdownItem.js +6 -3
  233. package/lib/dropdown-item/index.js +4 -0
  234. package/lib/dropdown-menu/DropdownMenu.js +6 -2
  235. package/lib/dropdown-menu/index.js +4 -0
  236. package/lib/dropdown-menu/types.d.ts +1 -0
  237. package/lib/empty/Images.js +9 -9
  238. package/lib/empty/index.css +1 -1
  239. package/lib/empty/index.js +4 -0
  240. package/lib/field/Field.d.ts +3 -0
  241. package/lib/field/Field.js +2 -1
  242. package/lib/field/index.d.ts +2 -0
  243. package/lib/field/index.js +4 -0
  244. package/lib/form/index.js +4 -0
  245. package/lib/grid/index.js +4 -0
  246. package/lib/grid-item/index.js +4 -0
  247. package/lib/hierarchy-select/Breadcrumb.d.ts +43 -0
  248. package/lib/hierarchy-select/Breadcrumb.js +85 -0
  249. package/lib/hierarchy-select/HierarchySelect.d.ts +104 -0
  250. package/lib/hierarchy-select/HierarchySelect.js +250 -0
  251. package/lib/hierarchy-select/index.css +1 -0
  252. package/lib/hierarchy-select/index.d.ts +79 -0
  253. package/lib/hierarchy-select/index.js +37 -0
  254. package/lib/hierarchy-select/style/index.d.ts +1 -0
  255. package/lib/hierarchy-select/style/index.js +8 -0
  256. package/lib/hierarchy-select/svg/SubIcon.d.ts +1 -0
  257. package/lib/hierarchy-select/svg/SubIcon.js +52 -0
  258. package/lib/hierarchy-select/types.d.ts +7 -0
  259. package/lib/hierarchy-select/types.js +15 -0
  260. package/lib/icon/config.js +4 -1
  261. package/lib/icon/index.css +1 -1
  262. package/lib/icon/index.js +4 -0
  263. package/lib/image/index.js +4 -0
  264. package/lib/image-preview/ImagePreview.js +5 -1
  265. package/lib/image-preview/function-call.js +4 -0
  266. package/lib/image-preview/index.js +4 -0
  267. package/lib/index-anchor/IndexAnchor.d.ts +11 -0
  268. package/lib/index-anchor/IndexAnchor.js +107 -0
  269. package/lib/index-anchor/index.css +1 -0
  270. package/lib/index-anchor/index.d.ts +14 -0
  271. package/lib/index-anchor/index.js +39 -0
  272. package/lib/index-anchor/style/index.d.ts +1 -0
  273. package/lib/index-anchor/style/index.js +3 -0
  274. package/lib/index-anchor/types.d.ts +11 -0
  275. package/lib/index-anchor/types.js +15 -0
  276. package/lib/index-bar/IndexBar.d.ts +64 -0
  277. package/lib/index-bar/IndexBar.js +294 -0
  278. package/lib/index-bar/index.css +1 -0
  279. package/lib/index-bar/index.d.ts +50 -0
  280. package/lib/index-bar/index.js +39 -0
  281. package/lib/index-bar/style/index.d.ts +1 -0
  282. package/lib/index-bar/style/index.js +2 -0
  283. package/lib/index-bar/types.d.ts +16 -0
  284. package/lib/index-bar/types.js +15 -0
  285. package/lib/index.css +1 -1
  286. package/lib/index.d.ts +8 -1
  287. package/lib/index.js +22 -1
  288. package/lib/lazyload/vue-lazyload/index.js +9 -0
  289. package/lib/lazyload/vue-lazyload/lazy.js +85 -0
  290. package/lib/lazyload/vue-lazyload/listener.js +45 -0
  291. package/lib/list/List.js +2 -4
  292. package/lib/list/index.css +1 -1
  293. package/lib/list/index.js +4 -0
  294. package/lib/loading/index.js +4 -0
  295. package/lib/locale/index.js +4 -0
  296. package/lib/locale/lang/en-US.d.ts +7 -23
  297. package/lib/locale/lang/en-US.js +7 -23
  298. package/lib/locale/lang/zh-CN.d.ts +7 -23
  299. package/lib/locale/lang/zh-CN.js +7 -23
  300. package/lib/media-picker/MediaPicker.js +24 -0
  301. package/lib/media-picker/image/PickFileIcon.js +1 -1
  302. package/lib/media-picker/image/PickPhotoIcon.js +1 -1
  303. package/lib/media-picker/image/TakeAudioIcon.js +1 -1
  304. package/lib/media-picker/image/TakePhotoIcon.js +1 -1
  305. package/lib/media-picker/image/TakeVideoIcon.js +1 -1
  306. package/lib/media-picker/index.css +1 -1
  307. package/lib/media-picker/index.js +4 -0
  308. package/lib/media-picker/util/media-util.js +3 -0
  309. package/lib/media-picker/watermark/image-processor.js +10 -6
  310. package/lib/media-picker/watermark/resize-options.js +1 -0
  311. package/lib/media-picker/watermark/watermark.js +4 -0
  312. package/lib/media-player/MediaPlayer.js +4 -0
  313. package/lib/media-player/index.js +4 -0
  314. package/lib/multiple-picker/MultiplePicker.d.ts +4 -4
  315. package/lib/multiple-picker/MultiplePicker.js +7 -3
  316. package/lib/multiple-picker/MultiplePickerOptions.d.ts +4 -4
  317. package/lib/multiple-picker/MultiplePickerOptions.js +3 -3
  318. package/lib/multiple-picker/index.d.ts +3 -3
  319. package/lib/multiple-picker/index.js +4 -0
  320. package/lib/nav-bar/index.js +4 -0
  321. package/lib/notice-bar/NoticeBar.js +4 -0
  322. package/lib/notice-bar/index.css +1 -1
  323. package/lib/notice-bar/index.js +4 -0
  324. package/lib/notify/function-call.js +4 -0
  325. package/lib/notify/index.js +4 -0
  326. package/lib/number-keyboard/NumberKeyboard.js +4 -0
  327. package/lib/number-keyboard/NumberKeyboardKey.js +4 -0
  328. package/lib/number-keyboard/index.js +4 -0
  329. package/lib/overlay/index.d.ts +1 -1
  330. package/lib/overlay/index.js +4 -0
  331. package/lib/password-input/index.js +4 -0
  332. package/lib/picker/Picker.js +10 -3
  333. package/lib/picker/PickerToolbar.js +1 -0
  334. package/lib/picker/index.js +4 -0
  335. package/lib/popover/Popover.d.ts +13 -0
  336. package/lib/popover/Popover.js +98 -3
  337. package/lib/popover/index.css +1 -1
  338. package/lib/popover/index.d.ts +9 -0
  339. package/lib/popover/index.js +4 -0
  340. package/lib/popup/Popup.js +1 -0
  341. package/lib/popup/index.css +1 -1
  342. package/lib/popup/index.js +4 -0
  343. package/lib/popup/shared.js +12 -0
  344. package/lib/pull-refresh/index.js +4 -0
  345. package/lib/radio/Radio.d.ts +1 -1
  346. package/lib/radio/Radio.js +4 -0
  347. package/lib/radio/index.d.ts +1 -1
  348. package/lib/radio/index.js +4 -0
  349. package/lib/radio-group/index.js +4 -0
  350. package/lib/rate/index.css +1 -1
  351. package/lib/rate/index.js +4 -0
  352. package/lib/row/index.js +4 -0
  353. package/lib/search/Search.d.ts +1 -1
  354. package/lib/search/Search.js +1 -0
  355. package/lib/search/index.d.ts +1 -1
  356. package/lib/search/index.js +4 -0
  357. package/lib/signature/Signature.js +16 -9
  358. package/lib/signature/index.css +1 -1
  359. package/lib/signature/index.js +4 -0
  360. package/lib/skeleton/index.js +4 -0
  361. package/lib/step/Step.js +10 -6
  362. package/lib/step/index.css +1 -1
  363. package/lib/step/index.js +4 -0
  364. package/lib/stepper/Stepper.js +6 -0
  365. package/lib/stepper/index.css +1 -1
  366. package/lib/stepper/index.js +4 -0
  367. package/lib/steps/index.css +1 -1
  368. package/lib/steps/index.js +4 -0
  369. package/lib/sticky/Sticky.js +2 -0
  370. package/lib/sticky/index.js +4 -0
  371. package/lib/style/base.css +1 -1
  372. package/lib/style/css-variables.css +1 -1
  373. package/lib/swipe/Swipe.d.ts +3 -1
  374. package/lib/swipe/Swipe.js +19 -2
  375. package/lib/swipe/index.d.ts +3 -1
  376. package/lib/swipe/index.js +4 -0
  377. package/lib/swipe-cell/SwipeCell.d.ts +44 -0
  378. package/lib/swipe-cell/SwipeCell.js +182 -0
  379. package/lib/swipe-cell/index.css +1 -0
  380. package/lib/swipe-cell/index.d.ts +39 -0
  381. package/lib/swipe-cell/index.js +39 -0
  382. package/lib/swipe-cell/style/index.d.ts +1 -0
  383. package/lib/swipe-cell/style/index.js +2 -0
  384. package/lib/swipe-cell/types.d.ts +9 -0
  385. package/lib/swipe-cell/types.js +15 -0
  386. package/lib/swipe-item/index.js +4 -0
  387. package/lib/switch/index.css +1 -1
  388. package/lib/switch/index.js +4 -0
  389. package/lib/tab/index.js +4 -0
  390. package/lib/tabbar/index.js +4 -0
  391. package/lib/tabbar-item/index.css +1 -1
  392. package/lib/tabbar-item/index.js +4 -0
  393. package/lib/table/Table.d.ts +118 -0
  394. package/lib/table/Table.js +228 -0
  395. package/lib/table/index.css +1 -0
  396. package/lib/table/index.d.ts +77 -0
  397. package/lib/table/index.js +39 -0
  398. package/lib/table/style/index.d.ts +1 -0
  399. package/lib/table/style/index.js +4 -0
  400. package/lib/table/types.d.ts +5 -0
  401. package/lib/table/types.js +27 -0
  402. package/lib/tabs/Tabs.js +6 -0
  403. package/lib/tabs/index.css +1 -1
  404. package/lib/tabs/index.js +4 -0
  405. package/lib/tag/Tag.d.ts +21 -1
  406. package/lib/tag/Tag.js +73 -10
  407. package/lib/tag/index.css +1 -1
  408. package/lib/tag/index.d.ts +15 -1
  409. package/lib/tag/index.js +4 -0
  410. package/lib/tag/style/index.js +1 -0
  411. package/lib/text-ellipsis/TextEllipsis.d.ts +76 -0
  412. package/lib/text-ellipsis/TextEllipsis.js +137 -0
  413. package/lib/text-ellipsis/index.css +1 -0
  414. package/lib/text-ellipsis/index.d.ts +60 -0
  415. package/lib/text-ellipsis/index.js +39 -0
  416. package/lib/text-ellipsis/style/index.d.ts +1 -0
  417. package/lib/text-ellipsis/style/index.js +2 -0
  418. package/lib/text-ellipsis/types.d.ts +3 -0
  419. package/lib/text-ellipsis/types.js +15 -0
  420. package/lib/time-picker/TimePicker.js +4 -0
  421. package/lib/time-picker/TimePickerColumn.js +4 -0
  422. package/lib/time-picker/index.js +4 -0
  423. package/lib/timeline/Timeline.d.ts +113 -0
  424. package/lib/timeline/Timeline.js +191 -0
  425. package/lib/timeline/index.css +1 -0
  426. package/lib/timeline/index.d.ts +75 -0
  427. package/lib/timeline/index.js +39 -0
  428. package/lib/timeline/style/index.d.ts +1 -0
  429. package/lib/timeline/style/index.js +4 -0
  430. package/lib/toast/function-call.js +4 -0
  431. package/lib/toast/index.js +4 -0
  432. package/lib/uploader/Uploader.d.ts +1 -1
  433. package/lib/uploader/Uploader.js +4 -0
  434. package/lib/uploader/UploaderPreviewItem.d.ts +1 -1
  435. package/lib/uploader/index.d.ts +1 -1
  436. package/lib/uploader/index.js +4 -0
  437. package/lib/uploader/utils.js +1 -1
  438. package/lib/utils/create.js +4 -0
  439. package/lib/utils/dom.d.ts +1 -0
  440. package/lib/utils/dom.js +11 -0
  441. package/lib/web-types.json +1 -1
  442. package/lib/zartui.cjs.js +3054 -1076
  443. package/lib/zartui.es.js +3102 -1124
  444. package/lib/zartui.js +3817 -1303
  445. package/lib/zartui.min.js +1 -1
  446. package/package.json +18 -17
@@ -10,6 +10,7 @@ const DEFAULT_JPEG_QUALITY = 0.8;
10
10
  const MIN_JPEG_QUALITY = 0.1;
11
11
  const JPEG_QUALITY_STEP = 0.05;
12
12
  class ImageProcessor {
13
+ // 压缩图片的配置
13
14
  constructor(file, resizeOptions, watermarkOptions, compressOptions) {
14
15
  this.file = file;
15
16
  this.resizeOptions = resizeOptions;
@@ -38,12 +39,15 @@ class ImageProcessor {
38
39
  fileType = "image/png";
39
40
  }
40
41
  return file2Image(this.file).then(
41
- (img) => resize(img, {
42
- inputType: fileType,
43
- orientation,
44
- sideLengthLimit: this.resizeOptions.maxSideLength,
45
- resultType: "canvas"
46
- })
42
+ (img) => (
43
+ // 第一步 resize image
44
+ resize(img, {
45
+ inputType: fileType,
46
+ orientation,
47
+ sideLengthLimit: this.resizeOptions.maxSideLength,
48
+ resultType: "canvas"
49
+ })
50
+ )
47
51
  ).then((result) => {
48
52
  const canvas = result;
49
53
  return renderWatermark(canvas, this.watermarkOptions);
@@ -1,6 +1,7 @@
1
1
  import { isDef } from "../../utils/index.mjs";
2
2
  import { MAX_SIDE_LENGTH, MIN_SIDE_LENGTH } from "../util/media-util.mjs";
3
3
  class ResizeOptions {
4
+ // 最大边长
4
5
  constructor(maxSideLength) {
5
6
  if (!isDef(maxSideLength)) {
6
7
  this.maxSideLength = MAX_SIDE_LENGTH;
@@ -194,6 +194,10 @@ function parseWatermarkStyle(styleString, canvasSize) {
194
194
  };
195
195
  }
196
196
  class TextScanner {
197
+ /**
198
+ * The content to scan
199
+ * @param text
200
+ */
197
201
  constructor(text) {
198
202
  this.text = text;
199
203
  this.cursor = 0;
@@ -35,7 +35,7 @@ declare const multiplePickerProps: {
35
35
  type: import("vue").PropType<string>;
36
36
  default: string;
37
37
  };
38
- valueKey: {
38
+ textKey: {
39
39
  type: import("vue").PropType<string>;
40
40
  default: string;
41
41
  };
@@ -84,7 +84,7 @@ declare const _default: import("vue").DefineComponent<{
84
84
  type: import("vue").PropType<string>;
85
85
  default: string;
86
86
  };
87
- valueKey: {
87
+ textKey: {
88
88
  type: import("vue").PropType<string>;
89
89
  default: string;
90
90
  };
@@ -131,7 +131,7 @@ declare const _default: import("vue").DefineComponent<{
131
131
  type: import("vue").PropType<string>;
132
132
  default: string;
133
133
  };
134
- valueKey: {
134
+ textKey: {
135
135
  type: import("vue").PropType<string>;
136
136
  default: string;
137
137
  };
@@ -159,7 +159,7 @@ declare const _default: import("vue").DefineComponent<{
159
159
  showToolbar: boolean;
160
160
  toolbarPosition: string;
161
161
  showPicker: boolean;
162
- valueKey: string;
162
+ textKey: string;
163
163
  itemHeight: string | number;
164
164
  columnCounts: number;
165
165
  selectedIndex: number[];
@@ -21,7 +21,7 @@ const multiplePickerProps = {
21
21
  showToolbar: truthProp,
22
22
  options: makeArrayProp(),
23
23
  toolbarPosition: makeStringProp("bottom"),
24
- valueKey: makeStringProp("text"),
24
+ textKey: makeStringProp("text"),
25
25
  columnCounts: makeNumberProp(3),
26
26
  selectedIndex: makeArrayProp([])
27
27
  };
@@ -64,7 +64,7 @@ var stdin_default = defineComponent({
64
64
  indexes == null ? void 0 : indexes.forEach((index) => {
65
65
  if (index > -1 && index < props.options.length && props.options[index]) {
66
66
  result.push({
67
- text: props.options[index].text,
67
+ [props.textKey]: props.options[index][props.textKey],
68
68
  value: props.options[index].value,
69
69
  initialIndex: index
70
70
  });
@@ -136,7 +136,7 @@ var stdin_default = defineComponent({
136
136
  "columnCounts": props.columnCounts,
137
137
  "initialOptions": formatOptions,
138
138
  "allowHtml": props.allowHtml,
139
- "valueKey": props.valueKey,
139
+ "textKey": props.textKey,
140
140
  "readonly": props.readonly,
141
141
  "itemHeight": Number(itemPxHeight),
142
142
  "onChange": onChange
@@ -1,6 +1,6 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
2
  declare const multiplePickerOptionsProps: {
3
- valueKey: {
3
+ textKey: {
4
4
  type: import("vue").PropType<string>;
5
5
  default: string;
6
6
  };
@@ -25,7 +25,7 @@ declare const multiplePickerOptionsProps: {
25
25
  };
26
26
  export declare type MultiplePickerOptionsProps = ExtractPropTypes<typeof multiplePickerOptionsProps>;
27
27
  declare const _default: import("vue").DefineComponent<{
28
- valueKey: {
28
+ textKey: {
29
29
  type: import("vue").PropType<string>;
30
30
  default: string;
31
31
  };
@@ -48,7 +48,7 @@ declare const _default: import("vue").DefineComponent<{
48
48
  default: () => number[];
49
49
  };
50
50
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:currentIndexes")[], "change" | "update:currentIndexes", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
51
- valueKey: {
51
+ textKey: {
52
52
  type: import("vue").PropType<string>;
53
53
  default: string;
54
54
  };
@@ -76,7 +76,7 @@ declare const _default: import("vue").DefineComponent<{
76
76
  }, {
77
77
  readonly: boolean;
78
78
  allowHtml: boolean;
79
- valueKey: string;
79
+ textKey: string;
80
80
  itemHeight: number;
81
81
  columnCounts: number;
82
82
  initialOptions: object[];
@@ -4,7 +4,7 @@ import { createNamespace, isObject, makeArrayProp, makeNumberProp, makeStringPro
4
4
  import { useExpose } from "../composables/use-expose.mjs";
5
5
  const [name, bem] = createNamespace("multiple-picker-options");
6
6
  const multiplePickerOptionsProps = {
7
- valueKey: makeStringProp(""),
7
+ textKey: makeStringProp(""),
8
8
  readonly: Boolean,
9
9
  allowHtml: Boolean,
10
10
  itemHeight: makeNumberProp(0),
@@ -44,8 +44,8 @@ var stdin_default = defineComponent({
44
44
  emit("change");
45
45
  };
46
46
  const getOptionText = (option) => {
47
- if (isObject(option) && props.valueKey in option) {
48
- return option[props.valueKey];
47
+ if (isObject(option) && props.textKey in option) {
48
+ return option[props.textKey];
49
49
  }
50
50
  return option;
51
51
  };
@@ -34,7 +34,7 @@ export declare const MultiplePicker: import("../utils").WithInstall<import("vue"
34
34
  type: import("vue").PropType<string>;
35
35
  default: string;
36
36
  };
37
- valueKey: {
37
+ textKey: {
38
38
  type: import("vue").PropType<string>;
39
39
  default: string;
40
40
  };
@@ -81,7 +81,7 @@ export declare const MultiplePicker: import("../utils").WithInstall<import("vue"
81
81
  type: import("vue").PropType<string>;
82
82
  default: string;
83
83
  };
84
- valueKey: {
84
+ textKey: {
85
85
  type: import("vue").PropType<string>;
86
86
  default: string;
87
87
  };
@@ -109,7 +109,7 @@ export declare const MultiplePicker: import("../utils").WithInstall<import("vue"
109
109
  showToolbar: boolean;
110
110
  toolbarPosition: string;
111
111
  showPicker: boolean;
112
- valueKey: string;
112
+ textKey: string;
113
113
  itemHeight: string | number;
114
114
  columnCounts: number;
115
115
  selectedIndex: number[];
@@ -1 +1 @@
1
- :root{--zt-notice-bar-height: 36px;--zt-notice-bar-padding: 0 var(--zt-padding-md);--zt-notice-bar-wrapable-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notice-bar-text-color: var(--zt-orange-2);--zt-notice-bar-font-size: var(--zt-font-size-md);--zt-notice-bar-line-height: 36px;--zt-notice-bar-background: var(--zt-background-4);--zt-notice-bar-icon-size: 20px;--zt-notice-bar-icon-min-width: 20px;--zt-notice-bar-icon-height: 20px}.zt-notice-bar{position:relative;display:flex;align-items:center;height:var(--zt-notice-bar-height);padding:var(--zt-notice-bar-padding);color:var(--zt-notice-bar-text-color);font-size:var(--zt-notice-bar-font-size);line-height:var(--zt-notice-bar-line-height);background:var(--zt-notice-bar-background)}.zt-notice-bar__left-icon,.zt-notice-bar__right-icon{min-width:var(--zt-notice-bar-icon-min-width);font-size:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-height)}.zt-notice-bar__right-icon{text-align:right;cursor:pointer}.zt-notice-bar__left-icon-size,.zt-notice-bar__right-icon-size{width:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-size)}.zt-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.zt-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.zt-notice-bar__content.zt-ellipsis{max-width:100%}.zt-notice-bar--wrapable{height:auto;padding:var(--zt-notice-bar-wrapable-padding)}.zt-notice-bar--wrapable .zt-notice-bar__wrap{height:auto}.zt-notice-bar--wrapable .zt-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}
1
+ :root{--zt-notice-bar-height: 36px;--zt-notice-bar-padding: 0 var(--zt-padding-md);--zt-notice-bar-wrapable-padding: var(--zt-padding-xs) var(--zt-padding-md);--zt-notice-bar-text-color: var(--zt-orange-2);--zt-notice-bar-font-size: var(--zt-font-size-md);--zt-notice-bar-line-height: 36px;--zt-notice-bar-background: var(--zt-background-4);--zt-notice-bar-icon-size: 20px;--zt-notice-bar-icon-min-width: 20px;--zt-notice-bar-icon-height: 20px}.zt-notice-bar{position:relative;display:flex;align-items:center;height:var(--zt-notice-bar-height);padding:var(--zt-notice-bar-padding);color:var(--zt-notice-bar-text-color);font-size:var(--zt-notice-bar-font-size);line-height:var(--zt-notice-bar-line-height);background:var(--zt-notice-bar-background)}.zt-notice-bar__left-icon,.zt-notice-bar__right-icon{min-width:var(--zt-notice-bar-icon-min-width);font-size:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-height)}.zt-notice-bar__right-icon{text-align:right;cursor:pointer}.zt-notice-bar__left-icon-size,.zt-notice-bar__right-icon-size{width:var(--zt-notice-bar-icon-size);height:var(--zt-notice-bar-icon-size)}.zt-notice-bar__wrap{position:relative;display:flex;flex:1;align-items:center;height:100%;overflow:hidden}.zt-notice-bar__content{position:absolute;white-space:nowrap;transition-timing-function:linear}.zt-notice-bar__content.zt-ellipsis{max-width:100%}.zt-notice-bar--wrapable{height:auto;padding:var(--zt-notice-bar-wrapable-padding)}.zt-notice-bar--wrapable .zt-notice-bar__wrap{height:auto}.zt-notice-bar--wrapable .zt-notice-bar__content{position:relative;white-space:normal;word-wrap:break-word}.zt-theme-dark{--zt-notice-bar-background: rgba(255, 245, 211, .1)}
@@ -35,6 +35,6 @@ export default Overlay;
35
35
  export type { OverlayProps } from './Overlay';
36
36
  declare module 'vue' {
37
37
  interface GlobalComponents {
38
- VanOverlay: typeof Overlay;
38
+ ZtOverlay: typeof Overlay;
39
39
  }
40
40
  }
@@ -1,5 +1,5 @@
1
1
  import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
2
- import { ref, watch, computed, defineComponent } from "vue";
2
+ import { ref, watch, computed, defineComponent, nextTick } from "vue";
3
3
  import { pick, extend, unitToPx, truthProp, HAPTICS_FEEDBACK, isSameValue, makeArrayProp, preventDefault, makeStringProp, makeNumericProp } from "../utils/index.mjs";
4
4
  import { bem, name, isOptionExist, getColumnsType, findOptionByValue, assignDefaultFields, formatCascadeColumns, getFirstEnabledOption } from "./utils.mjs";
5
5
  import { useChildren, useEventListener } from "@zartui/use";
@@ -94,9 +94,11 @@ var stdin_default = defineComponent({
94
94
  }
95
95
  });
96
96
  }
97
- emit("change", extend({
98
- columnIndex
99
- }, getEventParams()));
97
+ nextTick(() => {
98
+ emit("change", extend({
99
+ columnIndex
100
+ }, getEventParams()));
101
+ });
100
102
  };
101
103
  const onClickOption = (currentOption, columnIndex) => emit("clickOption", extend({
102
104
  columnIndex,
@@ -194,6 +196,7 @@ var stdin_default = defineComponent({
194
196
  watch(() => props.modelValue, (newValues) => {
195
197
  if (!isSameValue(newValues, selectedValues.value) && !isSameValue(newValues, lastEmittedModelValue)) {
196
198
  selectedValues.value = newValues.slice(0);
199
+ lastEmittedModelValue = newValues.slice(0);
197
200
  }
198
201
  }, {
199
202
  deep: true
@@ -5,6 +5,7 @@ import { createNamespace, HAPTICS_FEEDBACK } from "../utils/index.mjs";
5
5
  import { Button } from "../button/index.mjs";
6
6
  const [name] = createNamespace("picker-toolbar");
7
7
  const pickerToolbarProps = {
8
+ // title: String,
8
9
  cancelButtonText: String,
9
10
  confirmButtonText: String
10
11
  };
@@ -47,6 +47,10 @@ export declare const popoverProps: {
47
47
  type: PropType<string | import("vue").RendererElement | null | undefined>;
48
48
  default: string;
49
49
  };
50
+ autoAdjustOverflow: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
50
54
  };
51
55
  export declare type PopoverProps = ExtractPropTypes<typeof popoverProps>;
52
56
  declare const _default: import("vue").DefineComponent<{
@@ -96,6 +100,10 @@ declare const _default: import("vue").DefineComponent<{
96
100
  type: PropType<string | import("vue").RendererElement | null | undefined>;
97
101
  default: string;
98
102
  };
103
+ autoAdjustOverflow: {
104
+ type: BooleanConstructor;
105
+ default: boolean;
106
+ };
99
107
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
100
108
  show: BooleanConstructor;
101
109
  theme: {
@@ -143,6 +151,10 @@ declare const _default: import("vue").DefineComponent<{
143
151
  type: PropType<string | import("vue").RendererElement | null | undefined>;
144
152
  default: string;
145
153
  };
154
+ autoAdjustOverflow: {
155
+ type: BooleanConstructor;
156
+ default: boolean;
157
+ };
146
158
  }>> & {
147
159
  onSelect?: ((...args: any[]) => any) | undefined;
148
160
  onTouchstart?: ((...args: any[]) => any) | undefined;
@@ -160,5 +172,6 @@ declare const _default: import("vue").DefineComponent<{
160
172
  trigger: PopoverTrigger;
161
173
  showArrow: boolean;
162
174
  placement: PopoverPlacement;
175
+ autoAdjustOverflow: boolean;
163
176
  }>;
164
177
  export default _default;
@@ -1,7 +1,28 @@
1
+ var __async = (__this, __arguments, generator) => {
2
+ return new Promise((resolve, reject) => {
3
+ var fulfilled = (value) => {
4
+ try {
5
+ step(generator.next(value));
6
+ } catch (e) {
7
+ reject(e);
8
+ }
9
+ };
10
+ var rejected = (value) => {
11
+ try {
12
+ step(generator.throw(value));
13
+ } catch (e) {
14
+ reject(e);
15
+ }
16
+ };
17
+ var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
18
+ step((generator = generator.apply(__this, __arguments)).next());
19
+ });
20
+ };
1
21
  import { mergeProps as _mergeProps, Fragment as _Fragment, createVNode as _createVNode } from "vue";
2
22
  import { ref, watch, nextTick, onMounted, watchEffect, onBeforeUnmount, defineComponent } from "vue";
23
+ import { arrow, computePosition, flip, offset, autoUpdate, hide, shift, limitShift } from "@floating-ui/vue";
3
24
  import { createPopper, offsetModifier } from "@zartui/popperjs";
4
- import { pick, extend, truthProp, numericProp, unknownProp, BORDER_BOTTOM, makeArrayProp, makeStringProp, createNamespace } from "../utils/index.mjs";
25
+ import { pick, extend, inBrowser, truthProp, numericProp, unknownProp, BORDER_BOTTOM, makeArrayProp, makeStringProp, createNamespace } from "../utils/index.mjs";
5
26
  import { useClickAway } from "@zartui/use";
6
27
  import { Icon } from "../icon/index.mjs";
7
28
  import { Popup } from "../popup/index.mjs";
@@ -29,6 +50,10 @@ const popoverProps = {
29
50
  teleport: {
30
51
  type: [String, Object],
31
52
  default: "body"
53
+ },
54
+ autoAdjustOverflow: {
55
+ type: Boolean,
56
+ default: false
32
57
  }
33
58
  };
34
59
  var stdin_default = defineComponent({
@@ -44,6 +69,7 @@ var stdin_default = defineComponent({
44
69
  const popupRef = ref();
45
70
  const wrapperRef = ref();
46
71
  const popoverRef = ref();
72
+ const arrowRef = ref();
47
73
  const getPopoverOptions = () => ({
48
74
  placement: props.placement,
49
75
  modifiers: [{
@@ -71,6 +97,10 @@ var stdin_default = defineComponent({
71
97
  }
72
98
  if (!popper) {
73
99
  popper = createPopperInstance();
100
+ if (inBrowser) {
101
+ window.addEventListener("animationend", updateLocation);
102
+ window.addEventListener("transitionend", updateLocation);
103
+ }
74
104
  } else {
75
105
  popper.setOptions(getPopoverOptions());
76
106
  }
@@ -139,15 +169,77 @@ var stdin_default = defineComponent({
139
169
  "onClick": () => onClickAction(action, index)
140
170
  }, [renderActionContent(action, index)]);
141
171
  };
172
+ function update() {
173
+ return __async(this, null, function* () {
174
+ var _a;
175
+ if (wrapperRef.value && popupRef.value && arrowRef.value) {
176
+ const popoverEl = popupRef.value;
177
+ const wrapperEl = wrapperRef.value;
178
+ const {
179
+ x,
180
+ y,
181
+ placement: realPlacement,
182
+ middlewareData
183
+ } = yield computePosition(wrapperEl, popoverEl, {
184
+ placement: props.placement,
185
+ middleware: [offset(8), shift({
186
+ padding: 4,
187
+ crossAxis: false,
188
+ limiter: limitShift()
189
+ }), flip(), hide(), arrow({
190
+ element: arrowRef.value,
191
+ padding: 6
192
+ })]
193
+ });
194
+ let popupTop = y;
195
+ const side = realPlacement.split("-")[0];
196
+ const arrowSide = {
197
+ top: "bottom",
198
+ right: "left",
199
+ bottom: "top",
200
+ left: "right"
201
+ }[side];
202
+ if (y < 0) {
203
+ popupTop = 0;
204
+ } else if (y > 0 && y + popoverEl.offsetHeight > document.body.clientHeight) {
205
+ popupTop = document.body.clientHeight - popoverEl.offsetHeight;
206
+ }
207
+ Object.assign(popupRef.value.style, {
208
+ left: `${x}px`,
209
+ top: `${popupTop}px`
210
+ });
211
+ popupRef.value.setAttribute("data-popper-placement", realPlacement);
212
+ const {
213
+ x: arrowX,
214
+ y: arrowY
215
+ } = (_a = middlewareData.arrow) != null ? _a : {};
216
+ Object.assign(arrowRef.value.style, {
217
+ left: arrowX != null ? `${arrowX}px` : "",
218
+ top: arrowY != null ? `${arrowY}px` : "",
219
+ margin: 0,
220
+ [arrowSide]: "calc(var(--zt-popover-arrow-size) * -1)"
221
+ });
222
+ }
223
+ });
224
+ }
142
225
  onMounted(() => {
143
226
  updateLocation();
144
227
  watchEffect(() => {
145
228
  var _a;
146
229
  popupRef.value = (_a = popoverRef.value) == null ? void 0 : _a.popupRef.value;
230
+ if (wrapperRef.value && popupRef.value && props.autoAdjustOverflow) {
231
+ autoUpdate(wrapperRef.value, popupRef.value, update, {
232
+ elementResize: typeof ResizeObserver !== "undefined"
233
+ });
234
+ }
147
235
  });
148
236
  });
149
237
  onBeforeUnmount(() => {
150
238
  if (popper) {
239
+ if (inBrowser) {
240
+ window.removeEventListener("animationend", updateLocation);
241
+ window.removeEventListener("transitionend", updateLocation);
242
+ }
151
243
  popper.destroy();
152
244
  popper = null;
153
245
  }
@@ -164,14 +256,17 @@ var stdin_default = defineComponent({
164
256
  "onClick": onClickWrapper
165
257
  }, [(_a = slots.reference) == null ? void 0 : _a.call(slots)]), _createVNode(Popup, _mergeProps({
166
258
  "ref": popoverRef,
167
- "class": bem([props.theme]),
259
+ "class": bem([props.theme, props.show ? "show" : "hidden"]),
168
260
  "position": "",
169
261
  "transition": "zt-popover-zoom",
170
262
  "lockScroll": false,
171
263
  "onUpdate:show": updateShow
172
- }, attrs, pick(props, popupProps)), {
264
+ }, attrs, pick(props, popupProps), {
265
+ "show": true
266
+ }), {
173
267
  default: () => [props.showArrow && _createVNode("div", {
174
- "class": bem("arrow")
268
+ "class": bem("arrow"),
269
+ "ref": arrowRef
175
270
  }, null), _createVNode("div", {
176
271
  "role": "menu",
177
272
  "class": bem("content")
@@ -1 +1 @@
1
- :root{--zt-popover-arrow-size: 6px;--zt-popover-radius: var(--zt-radius-lg);--zt-popover-action-width: 120px;--zt-popover-action-height: 40px;--zt-popover-action-font-size: var(--zt-font-size-md);--zt-popover-action-line-height: var(--zt-line-height-md);--zt-popover-action-icon-size: 20px;--zt-popover-light-text-color: var(--zt-text-color);--zt-popover-light-background: var(--zt-background-2);--zt-popover-light-action-disabled-text-color: var(--zt-text-color-3);--zt-popover-dark-text-color: var(--zt-white);--zt-popover-dark-background: #4a4a4a;--zt-popover-dark-action-disabled-text-color: var(--zt-text-color-2)}.zt-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.zt-popover__wrapper{display:inline-block}.zt-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--zt-popover-arrow-size)}.zt-popover__content{overflow:hidden;border-radius:var(--zt-popover-radius)}.zt-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--zt-popover-action-width);height:var(--zt-popover-action-height);padding:0 var(--zt-padding-md);font-size:var(--zt-popover-action-font-size);line-height:var(--zt-line-height-md);cursor:pointer}.zt-popover__action:last-child .zt-popover__action-text:after{display:none}.zt-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.zt-popover__action-icon{margin-right:var(--zt-padding-xs);font-size:var(--zt-popover-action-icon-size)}.zt-popover__action--with-icon .zt-popover__action-text{justify-content:flex-start}.zt-popover[data-popper-placement^=top] .zt-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;transform:translate(-50%);margin-bottom:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=top]{transform-origin:50% 100%}.zt-popover[data-popper-placement=top] .zt-popover__arrow{left:50%}.zt-popover[data-popper-placement=top-start]{transform-origin:0 100%}.zt-popover[data-popper-placement=top-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=top-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover[data-popper-placement^=left] .zt-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translateY(-50%);margin-right:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=left]{transform-origin:100% 50%}.zt-popover[data-popper-placement=left] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=left-start]{transform-origin:100% 0}.zt-popover[data-popper-placement=left-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=left-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=right] .zt-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translateY(-50%);margin-left:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=right]{transform-origin:0 50%}.zt-popover[data-popper-placement=right] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=right-start]{transform-origin:0 0}.zt-popover[data-popper-placement=right-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=right-end]{transform-origin:0 100%}.zt-popover[data-popper-placement=right-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=bottom] .zt-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%);margin-top:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=bottom]{transform-origin:50% 0}.zt-popover[data-popper-placement=bottom] .zt-popover__arrow{left:50%}.zt-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.zt-popover[data-popper-placement=bottom-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.zt-popover[data-popper-placement=bottom-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover--light{color:var(--zt-popover-light-text-color)}.zt-popover--light .zt-popover__content{background:var(--zt-popover-light-background);box-shadow:0 2px 12px rgba(50,50,51,.12)}.zt-popover--light .zt-popover__arrow{color:var(--zt-popover-light-background)}.zt-popover--light .zt-popover__action:active{background-color:var(--zt-active-color)}.zt-popover--light .zt-popover__action--selected{color:var(--zt-blue);cursor:not-allowed}.zt-popover--light .zt-popover__action--selected:active{background-color:transparent}.zt-popover--light .zt-popover__action--disabled{color:var(--zt-popover-light-action-disabled-text-color);cursor:not-allowed}.zt-popover--light .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark{color:var(--zt-popover-dark-text-color)}.zt-popover--dark .zt-popover__content{background:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__arrow{color:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__action:active{background-color:rgba(0,0,0,.2)}.zt-popover--dark .zt-popover__action--disabled{color:var(--zt-popover-dark-action-disabled-text-color)}.zt-popover--dark .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark .zt-popover__action-text:after{border-color:var(--zt-gray-7)}.zt-popover-zoom-enter-from,.zt-popover-zoom-leave-active{transform:scale(.8);opacity:0}.zt-popover-zoom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popover-zoom-leave-active{transition-timing-function:var(--zt-ease-in)}
1
+ :root{--zt-popover-arrow-size: 6px;--zt-popover-radius: var(--zt-radius-lg);--zt-popover-action-width: 120px;--zt-popover-action-height: 40px;--zt-popover-action-font-size: var(--zt-font-size-md);--zt-popover-action-line-height: var(--zt-line-height-md);--zt-popover-action-icon-size: 20px;--zt-popover-light-text-color: var(--zt-text-color);--zt-popover-light-background: var(--zt-background-2);--zt-popover-light-action-disabled-text-color: var(--zt-text-color-3);--zt-popover-dark-text-color: var(--zt-white);--zt-popover-dark-background: #4a4a4a;--zt-popover-dark-action-disabled-text-color: var(--zt-text-color-2)}.zt-popover{position:absolute;overflow:visible;background-color:transparent;transition:opacity .15s,transform .15s}.zt-popover__wrapper{display:inline-block}.zt-popover__arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid;border-width:var(--zt-popover-arrow-size)}.zt-popover__content{overflow:hidden;border-radius:var(--zt-popover-radius)}.zt-popover__action{position:relative;display:flex;align-items:center;box-sizing:border-box;width:var(--zt-popover-action-width);height:var(--zt-popover-action-height);padding:0 var(--zt-padding-md);font-size:var(--zt-popover-action-font-size);line-height:var(--zt-line-height-md);cursor:pointer}.zt-popover__action:last-child .zt-popover__action-text:after{display:none}.zt-popover__action-text{display:flex;flex:1;align-items:center;justify-content:center;height:100%}.zt-popover__action-icon{margin-right:var(--zt-padding-xs);font-size:var(--zt-popover-action-icon-size)}.zt-popover__action--with-icon .zt-popover__action-text{justify-content:flex-start}.zt-popover[data-popper-placement^=top] .zt-popover__arrow{bottom:0;border-top-color:currentColor;border-bottom-width:0;margin-bottom:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=top]{transform-origin:50% 100%}.zt-popover[data-popper-placement=top] .zt-popover__arrow{left:50%;transform:translate(-50%)}.zt-popover[data-popper-placement=top-start]{transform-origin:0 100%}.zt-popover[data-popper-placement=top-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=top-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=top-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover[data-popper-placement^=left] .zt-popover__arrow{right:0;border-right-width:0;border-left-color:currentColor;transform:translateY(-50%);margin-right:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=left]{transform-origin:100% 50%}.zt-popover[data-popper-placement=left] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=left-start]{transform-origin:100% 0}.zt-popover[data-popper-placement=left-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=left-end]{transform-origin:100% 100%}.zt-popover[data-popper-placement=left-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=right] .zt-popover__arrow{left:0;border-right-color:currentColor;border-left-width:0;transform:translateY(-50%);margin-left:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=right]{transform-origin:0 50%}.zt-popover[data-popper-placement=right] .zt-popover__arrow{top:50%}.zt-popover[data-popper-placement=right-start]{transform-origin:0 0}.zt-popover[data-popper-placement=right-start] .zt-popover__arrow{top:var(--zt-padding-md)}.zt-popover[data-popper-placement=right-end]{transform-origin:0 100%}.zt-popover[data-popper-placement=right-end] .zt-popover__arrow{bottom:var(--zt-padding-md)}.zt-popover[data-popper-placement^=bottom] .zt-popover__arrow{top:0;border-top-width:0;border-bottom-color:currentColor;transform:translate(-50%);margin-top:calc(var(--zt-popover-arrow-size) * -1)}.zt-popover[data-popper-placement=bottom]{transform-origin:50% 0}.zt-popover[data-popper-placement=bottom] .zt-popover__arrow{left:50%}.zt-popover[data-popper-placement=bottom-start]{transform-origin:0 0}.zt-popover[data-popper-placement=bottom-start] .zt-popover__arrow{left:var(--zt-padding-md)}.zt-popover[data-popper-placement=bottom-end]{transform-origin:100% 0}.zt-popover[data-popper-placement=bottom-end] .zt-popover__arrow{right:var(--zt-padding-md)}.zt-popover--light{display:none;color:var(--zt-popover-light-text-color)}.zt-popover--light .zt-popover__content{background:var(--zt-popover-light-background);box-shadow:0 2px 12px rgba(50,50,51,.12)}.zt-popover--light .zt-popover__arrow{color:var(--zt-popover-light-background)}.zt-popover--light .zt-popover__action:active{background-color:var(--zt-active-color)}.zt-popover--light .zt-popover__action--selected{color:var(--zt-blue);cursor:not-allowed}.zt-popover--light .zt-popover__action--selected:active{background-color:transparent}.zt-popover--light .zt-popover__action--disabled{color:var(--zt-popover-light-action-disabled-text-color);cursor:not-allowed}.zt-popover--light .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark{display:none;color:var(--zt-popover-dark-text-color)}.zt-popover--dark .zt-popover__content{background:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__arrow{color:var(--zt-popover-dark-background)}.zt-popover--dark .zt-popover__action:active{background-color:rgba(0,0,0,.2)}.zt-popover--dark .zt-popover__action--disabled{color:var(--zt-popover-dark-action-disabled-text-color)}.zt-popover--dark .zt-popover__action--disabled:active{background-color:transparent}.zt-popover--dark .zt-popover__action-text:after{border-color:var(--zt-gray-7)}.zt-popover--show{display:block}.zt-popover--hidden{display:none}.zt-popover-zoom-enter-from,.zt-popover-zoom-leave-active{transform:scale(.8);opacity:0}.zt-popover-zoom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popover-zoom-leave-active{transition-timing-function:var(--zt-ease-in)}
@@ -45,6 +45,10 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
45
45
  type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
46
46
  default: string;
47
47
  };
48
+ autoAdjustOverflow: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
48
52
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "touchstart" | "update:show")[], "select" | "touchstart" | "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
53
  show: BooleanConstructor;
50
54
  theme: {
@@ -92,6 +96,10 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
92
96
  type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
93
97
  default: string;
94
98
  };
99
+ autoAdjustOverflow: {
100
+ type: BooleanConstructor;
101
+ default: boolean;
102
+ };
95
103
  }>> & {
96
104
  onSelect?: ((...args: any[]) => any) | undefined;
97
105
  onTouchstart?: ((...args: any[]) => any) | undefined;
@@ -109,6 +117,7 @@ export declare const Popover: import("../utils").WithInstall<import("vue").Defin
109
117
  trigger: import("./types").PopoverTrigger;
110
118
  showArrow: boolean;
111
119
  placement: import("./types").PopoverPlacement;
120
+ autoAdjustOverflow: boolean;
112
121
  }>>;
113
122
  export default Popover;
114
123
  export { popoverProps } from './Popover';
@@ -21,6 +21,7 @@ const popupProps = extend({}, popupSharedProps, {
21
21
  safeAreaInsetTop: Boolean,
22
22
  safeAreaInsetBottom: Boolean,
23
23
  sliderContentHeight: makeNumberProp(60),
24
+ // 控制滑动区域的高度,滑动区域最小高
24
25
  minDragHeight: makeStringProp("40px"),
25
26
  maxDragHeight: makeStringProp("85vh"),
26
27
  slideable: Boolean
@@ -1 +1 @@
1
- :root{--zt-popup-background: var(--zt-background-2);--zt-popup-transition: transform var(--zt-duration-base);--zt-popup-round-radius: 16px;--zt-popup-close-icon-size: 22px;--zt-popup-close-icon-color: var(--zt-gray-5);--zt-popup-close-icon-margin: 16px;--zt-popup-close-icon-z-index: 1}.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--zt-popup-background);transition:var(--zt-popup-transition);-webkit-overflow-scrolling:touch}.zt-popup__slider{position:fixed;width:100%;bottom:0;border-radius:16px 16px 0 0;background-color:var(--zt-popup-background)}.zt-popup__slider-title{height:40px;text-align:center}.zt-popup__slider-bar{display:inline-block;width:32px;height:4px;transform:scaleY(-1);background:rgba(45,75,115,.2);border-radius:3px}.zt-popup__slider-content{overflow-y:auto}.zt-popup--center{top:50%;left:50%;transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:var(--zt-popup-round-radius)}.zt-popup--top{top:0;left:0;width:100%}.zt-popup--top.zt-popup--round{border-radius:0 0 var(--zt-popup-round-radius) var(--zt-popup-round-radius)}.zt-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.zt-popup--right.zt-popup--round{border-radius:var(--zt-popup-round-radius) 0 0 var(--zt-popup-round-radius)}.zt-popup--bottom{bottom:0;left:0;width:100%}.zt-popup--bottom.zt-popup--round{border-radius:var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0 0}.zt-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.zt-popup--left.zt-popup--round{border-radius:0 var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0}.zt-popup-slide-top-enter-active,.zt-popup-slide-left-enter-active,.zt-popup-slide-right-enter-active,.zt-popup-slide-bottom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popup-slide-top-leave-active,.zt-popup-slide-left-leave-active,.zt-popup-slide-right-leave-active,.zt-popup-slide-bottom-leave-active{transition-timing-function:var(--zt-ease-in)}.zt-popup-slide-top-enter-from,.zt-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.zt-popup-slide-right-enter-from,.zt-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.zt-popup-slide-bottom-enter-from,.zt-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.zt-popup-slide-left-enter-from,.zt-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.zt-popup__slider-icon{z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size);cursor:pointer}.zt-popup__close-icon{position:absolute;z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size)}.zt-popup__close-icon--top-left{top:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--top-right{top:var(--zt-popup-close-icon-margin);right:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-left{bottom:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-right{right:var(--zt-popup-close-icon-margin);bottom:var(--zt-popup-close-icon-margin)}
1
+ :root{--zt-popup-background: var(--zt-background-2);--zt-popup-transition: transform var(--zt-duration-base);--zt-popup-round-radius: 16px;--zt-popup-close-icon-size: 22px;--zt-popup-close-icon-color: var(--zt-gray-5);--zt-popup-close-icon-margin: 16px;--zt-popup-close-icon-z-index: 1}.zt-overflow-hidden{overflow:hidden!important}.zt-popup{position:fixed;max-height:100%;overflow-y:auto;background:var(--zt-popup-background);transition:var(--zt-popup-transition);-webkit-overflow-scrolling:touch}.zt-popup__slider{position:fixed;width:100%;bottom:0;left:0;border-radius:16px 16px 0 0;background-color:var(--zt-popup-background)}.zt-popup__slider-title{height:40px;text-align:center}.zt-popup__slider-bar{display:inline-block;width:32px;height:4px;transform:scaleY(-1);background:rgba(45,75,115,.2);border-radius:3px}.zt-popup__slider-content{overflow-y:auto}.zt-popup--center{top:50%;left:50%;transform:translate3d(-50%,-50%,0)}.zt-popup--center.zt-popup--round{border-radius:var(--zt-popup-round-radius)}.zt-popup--top{top:0;left:0;width:100%}.zt-popup--top.zt-popup--round{border-radius:0 0 var(--zt-popup-round-radius) var(--zt-popup-round-radius)}.zt-popup--right{top:50%;right:0;transform:translate3d(0,-50%,0)}.zt-popup--right.zt-popup--round{border-radius:var(--zt-popup-round-radius) 0 0 var(--zt-popup-round-radius)}.zt-popup--bottom{bottom:0;left:0;width:100%}.zt-popup--bottom.zt-popup--round{border-radius:var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0 0}.zt-popup--left{top:50%;left:0;transform:translate3d(0,-50%,0)}.zt-popup--left.zt-popup--round{border-radius:0 var(--zt-popup-round-radius) var(--zt-popup-round-radius) 0}.zt-popup-slide-top-enter-active,.zt-popup-slide-left-enter-active,.zt-popup-slide-right-enter-active,.zt-popup-slide-bottom-enter-active{transition-timing-function:var(--zt-ease-out)}.zt-popup-slide-top-leave-active,.zt-popup-slide-left-leave-active,.zt-popup-slide-right-leave-active,.zt-popup-slide-bottom-leave-active{transition-timing-function:var(--zt-ease-in)}.zt-popup-slide-top-enter-from,.zt-popup-slide-top-leave-active{transform:translate3d(0,-100%,0)}.zt-popup-slide-right-enter-from,.zt-popup-slide-right-leave-active{transform:translate3d(100%,-50%,0)}.zt-popup-slide-bottom-enter-from,.zt-popup-slide-bottom-leave-active{transform:translate3d(0,100%,0)}.zt-popup-slide-left-enter-from,.zt-popup-slide-left-leave-active{transform:translate3d(-100%,-50%,0)}.zt-popup__slider-icon{z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size);cursor:pointer}.zt-popup__close-icon{position:absolute;z-index:var(--zt-popup-close-icon-z-index);color:var(--zt-popup-close-icon-color);font-size:var(--zt-popup-close-icon-size)}.zt-popup__close-icon--top-left{top:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--top-right{top:var(--zt-popup-close-icon-margin);right:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-left{bottom:var(--zt-popup-close-icon-margin);left:var(--zt-popup-close-icon-margin)}.zt-popup__close-icon--bottom-right{right:var(--zt-popup-close-icon-margin);bottom:var(--zt-popup-close-icon-margin)}
@@ -1,16 +1,28 @@
1
1
  import { truthProp, unknownProp, numericProp } from "../utils/index.mjs";
2
2
  const popupSharedProps = {
3
+ // whether to show popup
3
4
  show: Boolean,
5
+ // z-index
4
6
  zIndex: numericProp,
7
+ // whether to show overlay
5
8
  overlay: truthProp,
9
+ // transition duration
6
10
  duration: numericProp,
11
+ // teleport
7
12
  teleport: [String, Object],
13
+ // prevent body scroll
8
14
  lockScroll: truthProp,
15
+ // whether to lazy render
9
16
  lazyRender: truthProp,
17
+ // callback function before close
10
18
  beforeClose: Function,
19
+ // overlay custom style
11
20
  overlayStyle: Object,
21
+ // overlay custom class name
12
22
  overlayClass: unknownProp,
23
+ // Initial rendering animation
13
24
  transitionAppear: Boolean,
25
+ // whether to close popup when overlay is clicked
14
26
  closeOnClickOverlay: truthProp
15
27
  };
16
28
  const popupSharedPropKeys = Object.keys(
@@ -30,8 +30,8 @@ declare const _default: import("vue").DefineComponent<{
30
30
  }>> & {
31
31
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
32
32
  }, {
33
- disabled: boolean;
34
33
  shape: CheckerShape;
34
+ disabled: boolean;
35
35
  labelDisabled: boolean;
36
36
  }>;
37
37
  export default _default;
@@ -25,8 +25,8 @@ export declare const Radio: import("../utils").WithInstall<import("vue").DefineC
25
25
  }>> & {
26
26
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
27
27
  }, {
28
- disabled: boolean;
29
28
  shape: import("../checkbox/Checker").CheckerShape;
29
+ disabled: boolean;
30
30
  labelDisabled: boolean;
31
31
  }>>;
32
32
  export default Radio;
package/es/rate/index.css CHANGED
@@ -1 +1 @@
1
- :root{--zt-rate-icon-size: 20px;--zt-rate-icon-gutter: var(--zt-padding-base);--zt-rate-icon-void-color: var(--zt-gray-5);--zt-rate-icon-full-color: var(--zt-yellow);--zt-rate-icon-disabled-color: var(--zt-gray-5)}.zt-rate{cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;display:inline-flex;align-items:center}.zt-rate__item{position:relative}.zt-rate__item:not(:last-child){padding-right:var(--zt-rate-icon-gutter)}.zt-rate__icon{display:block;width:1em;color:var(--zt-rate-icon-void-color);font-size:var(--zt-rate-icon-size)}.zt-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.zt-rate__icon--full{color:var(--zt-rate-icon-full-color)}.zt-rate__icon--disabled{color:var(--zt-rate-icon-disabled-color)}.zt-rate--disabled{cursor:not-allowed}.zt-rate--readonly{cursor:default}
1
+ :root{--zt-rate-icon-size: 20px;--zt-rate-icon-gutter: var(--zt-padding-base);--zt-rate-icon-void-color: rgba(0, 0, 0, .2);--zt-rate-icon-full-color: var(--zt-yellow);--zt-rate-icon-disabled-color: var(--zt-gray-5)}.zt-rate{cursor:pointer;-webkit-user-select:none;user-select:none;flex-wrap:wrap;display:inline-flex;align-items:center}.zt-rate__item{position:relative}.zt-rate__item:not(:last-child){padding-right:var(--zt-rate-icon-gutter)}.zt-rate__icon{display:block;width:1em;color:var(--zt-rate-icon-void-color);font-size:var(--zt-rate-icon-size)}.zt-rate__icon--half{position:absolute;top:0;left:0;overflow:hidden}.zt-rate__icon--full{color:var(--zt-rate-icon-full-color)}.zt-rate__icon--disabled{color:var(--zt-rate-icon-disabled-color)}.zt-rate--disabled{cursor:not-allowed}.zt-rate--readonly{cursor:default}.zt-theme-dark{--zt-rate-icon-void-color: rgba(255, 255, 255, .2)}
@@ -201,9 +201,9 @@ declare const _default: import("vue").DefineComponent<{
201
201
  onCancel?: ((...args: any[]) => any) | undefined;
202
202
  onSearch?: ((...args: any[]) => any) | undefined;
203
203
  }, {
204
+ shape: SearchShape;
204
205
  autofocus: boolean;
205
206
  disabled: boolean;
206
- shape: SearchShape;
207
207
  leftIcon: string;
208
208
  clearable: boolean;
209
209
  clearIcon: string;
@@ -28,6 +28,7 @@ var stdin_default = defineComponent({
28
28
  "search",
29
29
  "cancel",
30
30
  "clickInput",
31
+ // 'clickLeftIcon',
31
32
  "clickRightIcon",
32
33
  "update:modelValue"
33
34
  ],
@@ -135,9 +135,9 @@ export declare const Search: import("../utils").WithInstall<import("vue").Define
135
135
  onCancel?: ((...args: any[]) => any) | undefined;
136
136
  onSearch?: ((...args: any[]) => any) | undefined;
137
137
  }, {
138
+ shape: import("./types").SearchShape;
138
139
  autofocus: boolean;
139
140
  disabled: boolean;
140
- shape: import("./types").SearchShape;
141
141
  leftIcon: string;
142
142
  clearable: boolean;
143
143
  clearIcon: string;