zartui 3.1.9 → 3.1.11

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 (508) hide show
  1. package/README.md +23 -23
  2. package/es/action-sheet/index.css +1 -1
  3. package/es/action-sheet/index.d.ts +1 -0
  4. package/es/action-sheet/types.d.ts +14 -0
  5. package/es/action-sheet/types.mjs +0 -0
  6. package/es/avatar/index.css +1 -1
  7. package/es/avatar/index.d.ts +1 -1
  8. package/es/avatar/types.d.ts +10 -0
  9. package/es/badge/index.css +1 -1
  10. package/es/badge/index.d.ts +1 -0
  11. package/es/badge/types.d.ts +15 -0
  12. package/es/badge/types.mjs +0 -0
  13. package/es/button/index.css +1 -1
  14. package/es/button/index.d.ts +1 -1
  15. package/es/button/types.d.ts +35 -0
  16. package/es/calendar/CalendarDay.mjs +8 -1
  17. package/es/calendar/CalendarHeader.mjs +2 -2
  18. package/es/calendar/index.css +1 -1
  19. package/es/calendar/index.d.ts +1 -1
  20. package/es/calendar/types.d.ts +25 -0
  21. package/es/cascader/Cascader.d.ts +1 -1
  22. package/es/cascader/index.css +1 -1
  23. package/es/cascader/index.d.ts +2 -2
  24. package/es/cascader/types.d.ts +21 -0
  25. package/es/cell/Cell.d.ts +24 -1
  26. package/es/cell/Cell.mjs +30 -5
  27. package/es/cell/index.css +1 -1
  28. package/es/cell/index.d.ts +15 -2
  29. package/es/cell/types.d.ts +24 -0
  30. package/es/cell-group/index.css +1 -1
  31. package/es/checkbox/Checkbox.d.ts +1 -1
  32. package/es/checkbox/Checker.mjs +6 -0
  33. package/es/checkbox/index.css +1 -1
  34. package/es/checkbox/index.d.ts +2 -2
  35. package/es/checkbox/types.d.ts +19 -0
  36. package/es/checkbox-group/CheckboxGroup.d.ts +1 -1
  37. package/es/checkbox-group/index.css +1 -1
  38. package/es/checkbox-group/index.d.ts +1 -1
  39. package/es/collapse/Collapse.d.ts +1 -1
  40. package/es/collapse/index.d.ts +1 -1
  41. package/es/collapse-item/index.css +1 -1
  42. package/es/collapse-item/index.d.ts +1 -1
  43. package/es/collapse-item/types.d.ts +8 -0
  44. package/es/config-provider/index.d.ts +2 -1
  45. package/es/config-provider/types.d.ts +138 -0
  46. package/es/config-provider/types.mjs +0 -0
  47. package/es/date-time-picker/DateTimePicker.d.ts +3 -3
  48. package/es/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
  49. package/es/date-time-picker/index.css +1 -1
  50. package/es/date-time-picker/index.d.ts +3 -3
  51. package/es/date-time-picker/utils.d.ts +1 -1
  52. package/es/dialog/Dialog.d.ts +1 -1
  53. package/es/dialog/index.css +1 -1
  54. package/es/dialog/index.d.ts +2 -2
  55. package/es/dialog/types.d.ts +18 -0
  56. package/es/divider/index.css +1 -1
  57. package/es/divider/index.d.ts +1 -0
  58. package/es/divider/types.d.ts +8 -0
  59. package/es/divider/types.mjs +0 -0
  60. package/es/dropdown-item/DropdownItem.d.ts +1 -1
  61. package/es/dropdown-item/DropdownItem.mjs +1 -0
  62. package/es/dropdown-item/index.css +1 -1
  63. package/es/dropdown-item/index.d.ts +2 -2
  64. package/es/dropdown-item/types.d.ts +3 -0
  65. package/es/dropdown-menu/index.css +1 -1
  66. package/es/dropdown-menu/index.d.ts +1 -1
  67. package/es/dropdown-menu/types.d.ts +12 -0
  68. package/es/empty/Empty.mjs +5 -3
  69. package/es/empty/Images.d.ts +20 -9
  70. package/es/empty/Images.mjs +755 -563
  71. package/es/empty/index.css +1 -1
  72. package/es/empty/index.d.ts +1 -0
  73. package/es/empty/types.d.ts +8 -0
  74. package/es/empty/types.mjs +0 -0
  75. package/es/field/Field.d.ts +17 -2
  76. package/es/field/index.css +1 -1
  77. package/es/field/index.d.ts +13 -3
  78. package/es/field/types.d.ts +22 -0
  79. package/es/grid-item/index.css +1 -1
  80. package/es/grid-item/index.d.ts +1 -0
  81. package/es/grid-item/types.d.ts +7 -0
  82. package/es/grid-item/types.mjs +0 -0
  83. package/es/hierarchy-select/Breadcrumb.mjs +1 -1
  84. package/es/hierarchy-select/HierarchySelect.d.ts +13 -0
  85. package/es/hierarchy-select/HierarchySelect.mjs +133 -21
  86. package/es/hierarchy-select/index.css +1 -1
  87. package/es/hierarchy-select/index.d.ts +10 -1
  88. package/es/hierarchy-select/svg/SubIcon.d.ts +2 -1
  89. package/es/hierarchy-select/svg/SubIcon.mjs +10 -29
  90. package/es/hierarchy-select/types.d.ts +21 -0
  91. package/es/image/index.css +1 -1
  92. package/es/image/index.d.ts +1 -0
  93. package/es/image/types.d.ts +5 -0
  94. package/es/image/types.mjs +0 -0
  95. package/es/image-preview/ImagePreview.d.ts +1 -1
  96. package/es/image-preview/index.css +1 -1
  97. package/es/image-preview/index.d.ts +2 -2
  98. package/es/image-preview/types.d.ts +10 -0
  99. package/es/index-anchor/index.css +1 -1
  100. package/es/index-anchor/types.d.ts +1 -3
  101. package/es/index-bar/IndexBar.d.ts +26 -0
  102. package/es/index-bar/IndexBar.mjs +192 -50
  103. package/es/index-bar/index.css +1 -1
  104. package/es/index-bar/index.d.ts +18 -0
  105. package/es/index-bar/types.d.ts +5 -3
  106. package/es/index.d.ts +1 -1
  107. package/es/index.mjs +1 -1
  108. package/es/lazyload/vue-lazyload/index.d.ts +55 -55
  109. package/es/list/index.css +1 -1
  110. package/es/list/index.d.ts +1 -1
  111. package/es/list/types.d.ts +5 -0
  112. package/es/loading/index.css +1 -1
  113. package/es/loading/index.d.ts +1 -0
  114. package/es/loading/types.d.ts +6 -0
  115. package/es/loading/types.mjs +0 -0
  116. package/es/media-picker/index.css +1 -1
  117. package/es/media-picker/index.d.ts +1 -1
  118. package/es/media-picker/type.d.ts +12 -0
  119. package/es/media-player/index.css +1 -1
  120. package/es/multiple-picker/MultiplePicker.d.ts +3 -3
  121. package/es/multiple-picker/index.css +1 -1
  122. package/es/multiple-picker/index.d.ts +4 -3
  123. package/es/multiple-picker/types.d.ts +17 -0
  124. package/es/nav-bar/index.css +1 -1
  125. package/es/nav-bar/index.d.ts +1 -0
  126. package/es/nav-bar/types.d.ts +16 -0
  127. package/es/nav-bar/types.mjs +0 -0
  128. package/es/notice-bar/index.css +1 -1
  129. package/es/notice-bar/index.d.ts +1 -1
  130. package/es/notice-bar/types.d.ts +10 -0
  131. package/es/notify/index.css +1 -1
  132. package/es/notify/index.d.ts +1 -1
  133. package/es/notify/types.d.ts +8 -0
  134. package/es/number-keyboard/NumberKeyboard.d.ts +1 -1
  135. package/es/number-keyboard/index.css +1 -1
  136. package/es/number-keyboard/index.d.ts +2 -1
  137. package/es/number-keyboard/types.d.ts +14 -0
  138. package/es/number-keyboard/types.mjs +0 -0
  139. package/es/overlay/index.d.ts +1 -0
  140. package/es/overlay/types.d.ts +4 -0
  141. package/es/overlay/types.mjs +0 -0
  142. package/es/password-input/index.css +1 -1
  143. package/es/password-input/index.d.ts +1 -0
  144. package/es/password-input/types.d.ts +15 -0
  145. package/es/password-input/types.mjs +0 -0
  146. package/es/picker/Picker.d.ts +6 -6
  147. package/es/picker/index.css +1 -1
  148. package/es/picker/index.d.ts +7 -7
  149. package/es/picker/types.d.ts +17 -0
  150. package/es/popover/Popover.mjs +1 -1
  151. package/es/popover/index.css +1 -1
  152. package/es/popover/index.d.ts +1 -1
  153. package/es/popover/types.d.ts +12 -0
  154. package/es/popup/index.css +1 -1
  155. package/es/popup/index.d.ts +1 -1
  156. package/es/popup/types.d.ts +8 -0
  157. package/es/pull-refresh/PullRefresh.d.ts +1 -1
  158. package/es/pull-refresh/index.css +1 -1
  159. package/es/pull-refresh/index.d.ts +2 -1
  160. package/es/pull-refresh/types.d.ts +6 -0
  161. package/es/pull-refresh/types.mjs +0 -0
  162. package/es/radio/index.css +1 -1
  163. package/es/radio/index.d.ts +1 -0
  164. package/es/radio/types.d.ts +18 -0
  165. package/es/radio/types.mjs +0 -0
  166. package/es/radio-group/RadioGroup.d.ts +1 -1
  167. package/es/radio-group/index.css +1 -1
  168. package/es/radio-group/index.d.ts +1 -1
  169. package/es/radio-picker/RadioPicker.d.ts +3 -3
  170. package/es/radio-picker/index.css +1 -1
  171. package/es/radio-picker/index.d.ts +4 -4
  172. package/es/radio-picker/types.d.ts +24 -0
  173. package/es/rate/Rate.d.ts +1 -1
  174. package/es/rate/index.css +1 -1
  175. package/es/rate/index.d.ts +2 -1
  176. package/es/rate/types.d.ts +6 -0
  177. package/es/rate/types.mjs +0 -0
  178. package/es/search/Search.d.ts +2 -2
  179. package/es/search/index.css +1 -1
  180. package/es/search/index.d.ts +3 -3
  181. package/es/search/types.d.ts +12 -0
  182. package/es/signature/index.css +1 -1
  183. package/es/signature/index.d.ts +1 -1
  184. package/es/signature/types.d.ts +9 -0
  185. package/es/skeleton/index.d.ts +1 -0
  186. package/es/skeleton/types.d.ts +9 -0
  187. package/es/skeleton/types.mjs +0 -0
  188. package/es/step/Step.mjs +2 -2
  189. package/es/step/index.css +1 -1
  190. package/es/step/index.d.ts +1 -0
  191. package/es/step/types.d.ts +6 -0
  192. package/es/step/types.mjs +0 -0
  193. package/es/stepper/Stepper.d.ts +1 -1
  194. package/es/stepper/index.css +1 -1
  195. package/es/stepper/index.d.ts +2 -1
  196. package/es/stepper/types.d.ts +17 -0
  197. package/es/stepper/types.mjs +0 -0
  198. package/es/steps/index.css +1 -1
  199. package/es/steps/index.d.ts +1 -0
  200. package/es/steps/types.d.ts +5 -0
  201. package/es/steps/types.mjs +0 -0
  202. package/es/sticky/index.d.ts +1 -0
  203. package/es/sticky/types.d.ts +3 -0
  204. package/es/sticky/types.mjs +0 -0
  205. package/es/style/base.css +1 -1
  206. package/es/style/css-variables.css +1 -1
  207. package/es/swipe/index.css +1 -1
  208. package/es/swipe/index.d.ts +1 -1
  209. package/es/swipe/types.d.ts +10 -0
  210. package/es/switch/Switch.d.ts +1 -1
  211. package/es/switch/index.css +1 -1
  212. package/es/switch/index.d.ts +2 -1
  213. package/es/switch/types.d.ts +18 -0
  214. package/es/switch/types.mjs +0 -0
  215. package/es/tabbar/Tabbar.d.ts +1 -1
  216. package/es/tabbar/index.d.ts +2 -1
  217. package/es/tabbar/types.d.ts +5 -0
  218. package/es/tabbar/types.mjs +0 -0
  219. package/es/tabbar-item/index.css +1 -1
  220. package/es/tabbar-item/index.d.ts +1 -0
  221. package/es/tabbar-item/types.d.ts +14 -0
  222. package/es/tabbar-item/types.mjs +0 -0
  223. package/es/table/index.css +1 -1
  224. package/es/table/index.d.ts +1 -0
  225. package/es/table/types.d.ts +10 -0
  226. package/es/tabs/index.css +1 -1
  227. package/es/tabs/index.d.ts +1 -1
  228. package/es/tabs/types.d.ts +17 -0
  229. package/es/tag/Tag.mjs +5 -4
  230. package/es/tag/index.css +1 -1
  231. package/es/tag/index.d.ts +1 -0
  232. package/es/tag/types.d.ts +17 -0
  233. package/es/tag/types.mjs +0 -0
  234. package/es/text-ellipsis/types.d.ts +1 -0
  235. package/es/time-picker/TimePicker.d.ts +3 -3
  236. package/es/time-picker/index.css +1 -1
  237. package/es/time-picker/index.d.ts +4 -3
  238. package/es/time-picker/types.d.ts +23 -0
  239. package/es/time-picker/types.mjs +0 -0
  240. package/es/timeline/index.css +1 -1
  241. package/es/timeline/index.d.ts +1 -0
  242. package/es/timeline/types.d.ts +9 -0
  243. package/es/timeline/types.mjs +0 -0
  244. package/es/toast/index.css +1 -1
  245. package/es/toast/index.d.ts +1 -1
  246. package/es/toast/types.d.ts +15 -0
  247. package/es/uploader/index.css +1 -1
  248. package/es/uploader/index.d.ts +1 -1
  249. package/es/uploader/types.d.ts +21 -0
  250. package/es/vue-sfc-shim.d.ts +6 -6
  251. package/es/vue-tsx-shim.d.ts +23 -23
  252. package/lib/action-sheet/index.css +1 -1
  253. package/lib/action-sheet/index.d.ts +1 -0
  254. package/lib/action-sheet/types.d.ts +14 -0
  255. package/lib/action-sheet/types.js +15 -0
  256. package/lib/avatar/index.css +1 -1
  257. package/lib/avatar/index.d.ts +1 -1
  258. package/lib/avatar/types.d.ts +10 -0
  259. package/lib/badge/index.css +1 -1
  260. package/lib/badge/index.d.ts +1 -0
  261. package/lib/badge/types.d.ts +15 -0
  262. package/lib/badge/types.js +15 -0
  263. package/lib/button/index.css +1 -1
  264. package/lib/button/index.d.ts +1 -1
  265. package/lib/button/types.d.ts +35 -0
  266. package/lib/calendar/CalendarDay.js +8 -1
  267. package/lib/calendar/CalendarHeader.js +2 -2
  268. package/lib/calendar/index.css +1 -1
  269. package/lib/calendar/index.d.ts +1 -1
  270. package/lib/calendar/types.d.ts +25 -0
  271. package/lib/cascader/Cascader.d.ts +1 -1
  272. package/lib/cascader/index.css +1 -1
  273. package/lib/cascader/index.d.ts +2 -2
  274. package/lib/cascader/types.d.ts +21 -0
  275. package/lib/cell/Cell.d.ts +24 -1
  276. package/lib/cell/Cell.js +28 -3
  277. package/lib/cell/index.css +1 -1
  278. package/lib/cell/index.d.ts +15 -2
  279. package/lib/cell/types.d.ts +24 -0
  280. package/lib/cell-group/index.css +1 -1
  281. package/lib/checkbox/Checkbox.d.ts +1 -1
  282. package/lib/checkbox/Checker.js +6 -0
  283. package/lib/checkbox/index.css +1 -1
  284. package/lib/checkbox/index.d.ts +2 -2
  285. package/lib/checkbox/types.d.ts +19 -0
  286. package/lib/checkbox-group/CheckboxGroup.d.ts +1 -1
  287. package/lib/checkbox-group/index.css +1 -1
  288. package/lib/checkbox-group/index.d.ts +1 -1
  289. package/lib/collapse/Collapse.d.ts +1 -1
  290. package/lib/collapse/index.d.ts +1 -1
  291. package/lib/collapse-item/index.css +1 -1
  292. package/lib/collapse-item/index.d.ts +1 -1
  293. package/lib/collapse-item/types.d.ts +8 -0
  294. package/lib/config-provider/index.d.ts +2 -1
  295. package/lib/config-provider/types.d.ts +138 -0
  296. package/lib/config-provider/types.js +15 -0
  297. package/lib/date-time-picker/DateTimePicker.d.ts +3 -3
  298. package/lib/date-time-picker/DateTimePickerWrapper.d.ts +3 -3
  299. package/lib/date-time-picker/index.css +1 -1
  300. package/lib/date-time-picker/index.d.ts +3 -3
  301. package/lib/date-time-picker/utils.d.ts +1 -1
  302. package/lib/dialog/Dialog.d.ts +1 -1
  303. package/lib/dialog/index.css +1 -1
  304. package/lib/dialog/index.d.ts +2 -2
  305. package/lib/dialog/types.d.ts +18 -0
  306. package/lib/divider/index.css +1 -1
  307. package/lib/divider/index.d.ts +1 -0
  308. package/lib/divider/types.d.ts +8 -0
  309. package/lib/divider/types.js +15 -0
  310. package/lib/dropdown-item/DropdownItem.d.ts +1 -1
  311. package/lib/dropdown-item/DropdownItem.js +1 -0
  312. package/lib/dropdown-item/index.css +1 -1
  313. package/lib/dropdown-item/index.d.ts +2 -2
  314. package/lib/dropdown-item/types.d.ts +3 -0
  315. package/lib/dropdown-menu/index.css +1 -1
  316. package/lib/dropdown-menu/index.d.ts +1 -1
  317. package/lib/dropdown-menu/types.d.ts +12 -0
  318. package/lib/empty/Empty.js +4 -2
  319. package/lib/empty/Images.d.ts +20 -9
  320. package/lib/empty/Images.js +755 -563
  321. package/lib/empty/index.css +1 -1
  322. package/lib/empty/index.d.ts +1 -0
  323. package/lib/empty/types.d.ts +8 -0
  324. package/lib/empty/types.js +15 -0
  325. package/lib/field/Field.d.ts +17 -2
  326. package/lib/field/index.css +1 -1
  327. package/lib/field/index.d.ts +13 -3
  328. package/lib/field/types.d.ts +22 -0
  329. package/lib/grid-item/index.css +1 -1
  330. package/lib/grid-item/index.d.ts +1 -0
  331. package/lib/grid-item/types.d.ts +7 -0
  332. package/lib/grid-item/types.js +15 -0
  333. package/lib/hierarchy-select/Breadcrumb.js +1 -1
  334. package/lib/hierarchy-select/HierarchySelect.d.ts +13 -0
  335. package/lib/hierarchy-select/HierarchySelect.js +132 -20
  336. package/lib/hierarchy-select/index.css +1 -1
  337. package/lib/hierarchy-select/index.d.ts +10 -1
  338. package/lib/hierarchy-select/svg/SubIcon.d.ts +2 -1
  339. package/lib/hierarchy-select/svg/SubIcon.js +9 -28
  340. package/lib/hierarchy-select/types.d.ts +21 -0
  341. package/lib/image/index.css +1 -1
  342. package/lib/image/index.d.ts +1 -0
  343. package/lib/image/types.d.ts +5 -0
  344. package/lib/image/types.js +15 -0
  345. package/lib/image-preview/ImagePreview.d.ts +1 -1
  346. package/lib/image-preview/index.css +1 -1
  347. package/lib/image-preview/index.d.ts +2 -2
  348. package/lib/image-preview/types.d.ts +10 -0
  349. package/lib/index-anchor/index.css +1 -1
  350. package/lib/index-anchor/types.d.ts +1 -3
  351. package/lib/index-bar/IndexBar.d.ts +26 -0
  352. package/lib/index-bar/IndexBar.js +191 -49
  353. package/lib/index-bar/index.css +1 -1
  354. package/lib/index-bar/index.d.ts +18 -0
  355. package/lib/index-bar/types.d.ts +5 -3
  356. package/lib/index.css +1 -1
  357. package/lib/index.d.ts +1 -1
  358. package/lib/index.js +1 -1
  359. package/lib/lazyload/vue-lazyload/index.d.ts +55 -55
  360. package/lib/list/index.css +1 -1
  361. package/lib/list/index.d.ts +1 -1
  362. package/lib/list/types.d.ts +5 -0
  363. package/lib/loading/index.css +1 -1
  364. package/lib/loading/index.d.ts +1 -0
  365. package/lib/loading/types.d.ts +6 -0
  366. package/lib/loading/types.js +15 -0
  367. package/lib/media-picker/index.css +1 -1
  368. package/lib/media-picker/index.d.ts +1 -1
  369. package/lib/media-picker/type.d.ts +12 -0
  370. package/lib/media-player/index.css +1 -1
  371. package/lib/multiple-picker/MultiplePicker.d.ts +3 -3
  372. package/lib/multiple-picker/index.css +1 -1
  373. package/lib/multiple-picker/index.d.ts +4 -3
  374. package/lib/multiple-picker/types.d.ts +17 -0
  375. package/lib/nav-bar/index.css +1 -1
  376. package/lib/nav-bar/index.d.ts +1 -0
  377. package/lib/nav-bar/types.d.ts +16 -0
  378. package/lib/nav-bar/types.js +15 -0
  379. package/lib/notice-bar/index.css +1 -1
  380. package/lib/notice-bar/index.d.ts +1 -1
  381. package/lib/notice-bar/types.d.ts +10 -0
  382. package/lib/notify/index.css +1 -1
  383. package/lib/notify/index.d.ts +1 -1
  384. package/lib/notify/types.d.ts +8 -0
  385. package/lib/number-keyboard/NumberKeyboard.d.ts +1 -1
  386. package/lib/number-keyboard/index.css +1 -1
  387. package/lib/number-keyboard/index.d.ts +2 -1
  388. package/lib/number-keyboard/types.d.ts +14 -0
  389. package/lib/number-keyboard/types.js +15 -0
  390. package/lib/overlay/index.d.ts +1 -0
  391. package/lib/overlay/types.d.ts +4 -0
  392. package/lib/overlay/types.js +15 -0
  393. package/lib/password-input/index.css +1 -1
  394. package/lib/password-input/index.d.ts +1 -0
  395. package/lib/password-input/types.d.ts +15 -0
  396. package/lib/password-input/types.js +15 -0
  397. package/lib/picker/Picker.d.ts +6 -6
  398. package/lib/picker/index.css +1 -1
  399. package/lib/picker/index.d.ts +7 -7
  400. package/lib/picker/types.d.ts +17 -0
  401. package/lib/popover/Popover.js +1 -1
  402. package/lib/popover/index.css +1 -1
  403. package/lib/popover/index.d.ts +1 -1
  404. package/lib/popover/types.d.ts +12 -0
  405. package/lib/popup/index.css +1 -1
  406. package/lib/popup/index.d.ts +1 -1
  407. package/lib/popup/types.d.ts +8 -0
  408. package/lib/pull-refresh/PullRefresh.d.ts +1 -1
  409. package/lib/pull-refresh/index.css +1 -1
  410. package/lib/pull-refresh/index.d.ts +2 -1
  411. package/lib/pull-refresh/types.d.ts +6 -0
  412. package/lib/pull-refresh/types.js +15 -0
  413. package/lib/radio/index.css +1 -1
  414. package/lib/radio/index.d.ts +1 -0
  415. package/lib/radio/types.d.ts +18 -0
  416. package/lib/radio/types.js +15 -0
  417. package/lib/radio-group/RadioGroup.d.ts +1 -1
  418. package/lib/radio-group/index.css +1 -1
  419. package/lib/radio-group/index.d.ts +1 -1
  420. package/lib/radio-picker/RadioPicker.d.ts +3 -3
  421. package/lib/radio-picker/index.css +1 -1
  422. package/lib/radio-picker/index.d.ts +4 -4
  423. package/lib/radio-picker/types.d.ts +24 -0
  424. package/lib/rate/Rate.d.ts +1 -1
  425. package/lib/rate/index.css +1 -1
  426. package/lib/rate/index.d.ts +2 -1
  427. package/lib/rate/types.d.ts +6 -0
  428. package/lib/rate/types.js +15 -0
  429. package/lib/search/Search.d.ts +2 -2
  430. package/lib/search/index.css +1 -1
  431. package/lib/search/index.d.ts +3 -3
  432. package/lib/search/types.d.ts +12 -0
  433. package/lib/signature/index.css +1 -1
  434. package/lib/signature/index.d.ts +1 -1
  435. package/lib/signature/types.d.ts +9 -0
  436. package/lib/skeleton/index.d.ts +1 -0
  437. package/lib/skeleton/types.d.ts +9 -0
  438. package/lib/skeleton/types.js +15 -0
  439. package/lib/step/Step.js +2 -2
  440. package/lib/step/index.css +1 -1
  441. package/lib/step/index.d.ts +1 -0
  442. package/lib/step/types.d.ts +6 -0
  443. package/lib/step/types.js +15 -0
  444. package/lib/stepper/Stepper.d.ts +1 -1
  445. package/lib/stepper/index.css +1 -1
  446. package/lib/stepper/index.d.ts +2 -1
  447. package/lib/stepper/types.d.ts +17 -0
  448. package/lib/stepper/types.js +15 -0
  449. package/lib/steps/index.css +1 -1
  450. package/lib/steps/index.d.ts +1 -0
  451. package/lib/steps/types.d.ts +5 -0
  452. package/lib/steps/types.js +15 -0
  453. package/lib/sticky/index.d.ts +1 -0
  454. package/lib/sticky/types.d.ts +3 -0
  455. package/lib/sticky/types.js +15 -0
  456. package/lib/style/base.css +1 -1
  457. package/lib/style/css-variables.css +1 -1
  458. package/lib/swipe/index.css +1 -1
  459. package/lib/swipe/index.d.ts +1 -1
  460. package/lib/swipe/types.d.ts +10 -0
  461. package/lib/switch/Switch.d.ts +1 -1
  462. package/lib/switch/index.css +1 -1
  463. package/lib/switch/index.d.ts +2 -1
  464. package/lib/switch/types.d.ts +18 -0
  465. package/lib/switch/types.js +15 -0
  466. package/lib/tabbar/Tabbar.d.ts +1 -1
  467. package/lib/tabbar/index.d.ts +2 -1
  468. package/lib/tabbar/types.d.ts +5 -0
  469. package/lib/tabbar/types.js +15 -0
  470. package/lib/tabbar-item/index.css +1 -1
  471. package/lib/tabbar-item/index.d.ts +1 -0
  472. package/lib/tabbar-item/types.d.ts +14 -0
  473. package/lib/tabbar-item/types.js +15 -0
  474. package/lib/table/index.css +1 -1
  475. package/lib/table/index.d.ts +1 -0
  476. package/lib/table/types.d.ts +10 -0
  477. package/lib/tabs/index.css +1 -1
  478. package/lib/tabs/index.d.ts +1 -1
  479. package/lib/tabs/types.d.ts +17 -0
  480. package/lib/tag/Tag.js +5 -4
  481. package/lib/tag/index.css +1 -1
  482. package/lib/tag/index.d.ts +1 -0
  483. package/lib/tag/types.d.ts +17 -0
  484. package/lib/tag/types.js +15 -0
  485. package/lib/text-ellipsis/types.d.ts +1 -0
  486. package/lib/time-picker/TimePicker.d.ts +3 -3
  487. package/lib/time-picker/index.css +1 -1
  488. package/lib/time-picker/index.d.ts +4 -3
  489. package/lib/time-picker/types.d.ts +23 -0
  490. package/lib/time-picker/types.js +15 -0
  491. package/lib/timeline/index.css +1 -1
  492. package/lib/timeline/index.d.ts +1 -0
  493. package/lib/timeline/types.d.ts +9 -0
  494. package/lib/timeline/types.js +15 -0
  495. package/lib/toast/index.css +1 -1
  496. package/lib/toast/index.d.ts +1 -1
  497. package/lib/toast/types.d.ts +15 -0
  498. package/lib/uploader/index.css +1 -1
  499. package/lib/uploader/index.d.ts +1 -1
  500. package/lib/uploader/types.d.ts +21 -0
  501. package/lib/vue-sfc-shim.d.ts +6 -6
  502. package/lib/vue-tsx-shim.d.ts +23 -23
  503. package/lib/web-types.json +1 -1
  504. package/lib/zartui.cjs.js +1156 -693
  505. package/lib/zartui.es.js +1156 -693
  506. package/lib/zartui.js +1156 -693
  507. package/lib/zartui.min.js +1 -1
  508. package/package.json +5 -4
@@ -21,32 +21,13 @@ __export(stdin_exports, {
21
21
  });
22
22
  module.exports = __toCommonJS(stdin_exports);
23
23
  var import_vue = require("vue");
24
- const SubIcon = () => (0, import_vue.createVNode)("svg", {
25
- "width": "20px",
26
- "height": "20px",
27
- "viewBox": "0 0 20 20",
28
- "version": "1.1",
29
- "xmlns": "http://www.w3.org/2000/svg"
30
- }, [(0, import_vue.createVNode)("title", null, [(0, import_vue.createTextVNode)("-mockplus-")]), (0, import_vue.createVNode)("g", {
31
- "id": "\u5343\u5206\u5236\u8BC4\u5206\u7CFB\u7EDF",
32
- "stroke": "none",
33
- "stroke-width": "1",
34
- "fill": "none",
35
- "fill-rule": "evenodd"
36
- }, [(0, import_vue.createVNode)("g", {
37
- "id": "2-2-\u4E8C\u7EA7",
38
- "transform": "translate(-303.000000, -180.000000)",
39
- "fill": "#0091fa",
40
- "fill-rule": "nonzero"
41
- }, [(0, import_vue.createVNode)("g", {
42
- "id": "list",
43
- "transform": "translate(0.000000, 168.000000)"
44
- }, [(0, import_vue.createVNode)("g", {
45
- "id": "-mockplus-",
46
- "transform": "translate(303.000000, 12.000000)"
47
- }, [(0, import_vue.createVNode)("g", {
48
- "id": "ic",
49
- "transform": "translate(1.000000, 1.000000)"
24
+ const SubIcon = (bem) => (0, import_vue.createVNode)("svg", {
25
+ "class": bem("svg-sub-icon"),
26
+ "xmlns": "http://www.w3.org/2000/svg",
27
+ "viewBox": "0 0 14 14"
50
28
  }, [(0, import_vue.createVNode)("path", {
51
- "d": "M2.14317706,0.666666667 L2.22223941,0.668944438 C2.85659925,0.701997774 3.40241118,1.14563083 3.56824813,1.77287529 C3.71984748,2.34626892 3.52076148,2.94764607 3.07824755,3.31404308 L3.01338689,3.36475861 L2.98117698,3.38692192 L2.99854276,7.96851143 L6.45837186,7.96851143 L6.4906636,7.92242957 C6.70010816,7.63994553 7.00294966,7.43994322 7.35182725,7.361073 L7.43997833,7.3439014 L7.52988313,7.33191117 L7.6692854,7.32536694 C8.3837757,7.32585828 8.99437829,7.8461057 9.11812542,8.55870349 C9.24180953,9.27093832 8.84363091,9.97085988 8.17282427,10.2188787 C7.57700711,10.4391716 6.91923866,10.2463364 6.52883188,9.76213793 L6.47945255,9.69733927 L6.457968,9.66562226 L2.99854276,9.66480927 L2.98077313,14.9931275 L6.43817909,14.9931275 L6.46054677,14.9607514 C6.78337751,14.5127274 7.32688536,14.2830957 7.86795816,14.3658534 L7.95333794,14.3815301 L8.03075658,14.4003564 C8.67421418,14.5754457 9.12114112,15.1665172 9.12114112,15.8412592 C9.12114112,16.5160012 8.67421418,17.1070728 8.03075658,17.282162 C7.46526323,17.4360366 6.87234558,17.2347803 6.51062104,16.7873487 L6.46054677,16.721767 L6.43817909,16.6890189 L2.14293988,16.689376 C1.75471326,16.689277 1.42412847,16.4204314 1.33123628,16.0433526 L1.31798598,15.9795315 L1.30932263,15.9138712 L1.30596651,15.8407337 L1.30558099,3.3881414 L1.27366107,3.36611374 C0.829669171,3.03959222 0.601729085,2.48805959 0.682853956,1.93886294 L0.698245114,1.85220024 L0.716763107,1.773617 C0.882433394,1.14570649 1.42884,0.701620365 2.06379274,0.668899133 L2.14317706,0.666666667 Z M16.4991461,14.9765217 C16.9438894,14.9769436 17.3105373,15.3322646 17.3323164,15.7826586 C17.3531195,16.212871 17.0525873,16.5872728 16.6303383,16.6599846 L16.5692105,16.6682931 L16.4968837,16.6717041 L11.4076594,16.6717041 C10.9615199,16.6705571 10.5951522,16.3154549 10.5737275,15.8648797 C10.5532819,15.4348956 10.8537702,15.0608774 11.2757903,14.9882337 L11.3368841,14.9799327 L11.409211,14.9765217 L16.4991461,14.9765217 Z M16.4991461,7.96971132 C16.9438894,7.97013329 17.3105373,8.3254543 17.3323164,8.77584828 C17.3531195,9.2060606 17.0525873,9.58046244 16.6303382,9.6531742 L16.5692105,9.66148273 L16.4968837,9.66489375 L11.4076594,9.66489375 C10.9615199,9.66374664 10.5951523,9.30864449 10.5737276,8.8580693 C10.553282,8.42808526 10.8537703,8.05406711 11.2757903,7.98142337 L11.3368841,7.97312235 L11.409211,7.96971132 L16.4991461,7.96971132 Z M16.4788602,1.09703911 C16.9326749,1.08805607 17.3101999,1.44528695 17.3323171,1.9030475 C17.353414,2.3396908 17.0437664,2.71759912 16.6148696,2.7828049 L16.5528102,2.78996537 L16.4838666,2.79218225 L6.74173256,2.79218225 C6.2955931,2.79103514 5.92922548,2.43593299 5.90780078,1.9853578 C5.88735518,1.55537376 6.18784345,1.18135561 6.60986349,1.10871187 L6.67095729,1.10041085 L6.74328413,1.09699982 L16.4788602,1.09703911 Z"
52
- }, null)])])])])])]);
29
+ "d": "M4.51454165,3.33333333 L4.57779153,3.33515555 C5.0852794,3.36159822 5.52192895,3.71650466 5.6545985,4.21830023 C5.77587798,4.67701514 5.61660918,5.15811685 5.26259804,5.45123446 L5.21070951,5.49180689 L5.18494159,5.50953754 L5.19883421,9.17480914 L7.96669749,9.17480914 L7.99253088,9.13794366 C8.16008653,8.91195643 8.40235973,8.75195457 8.6814618,8.6888584 L8.75198266,8.67512112 L8.8239065,8.66552894 L8.93542832,8.66029356 C9.50702056,8.66068663 9.99550263,9.07688456 10.0945003,9.6469628 C10.1934476,10.2167507 9.87490473,10.7766879 9.33825942,10.975103 C8.86160569,11.1513373 8.33539093,10.9970691 8.0230655,10.6097103 L7.98356204,10.5578714 L7.9663744,10.5324978 L5.19883421,10.5318474 L5.1846185,14.794502 L7.95054327,14.794502 L7.96843742,14.7686011 C8.22670201,14.410182 8.66150829,14.2264765 9.09436653,14.2926827 L9.16267035,14.3052241 L9.22460526,14.3202851 C9.73937135,14.4603565 10.0969129,14.9332138 10.0969129,15.4730074 C10.0969129,16.012801 9.73937135,16.4856582 9.22460526,16.6257296 C8.77221058,16.7488293 8.29787647,16.5878242 8.00849683,16.229879 L7.96843742,16.1774136 L7.95054327,16.1512151 L4.5143519,16.1515008 C4.20377061,16.1514216 3.93930278,15.9363451 3.86498903,15.634682 L3.85438878,15.5836252 L3.84745811,15.5310969 L3.84477321,15.4725869 L3.84446479,5.51051312 L3.81892886,5.49289099 C3.46373534,5.23167377 3.28138327,4.79044767 3.34628316,4.35109035 L3.35859609,4.28176019 L3.37341049,4.2188936 C3.50594671,3.71656519 3.943072,3.36129629 4.45103419,3.33511931 L4.51454165,3.33333333 Z M15.9993169,14.7812173 C16.3551115,14.7815549 16.6484298,15.0658117 16.6658531,15.4261269 C16.6824956,15.7702968 16.4420698,16.0698182 16.1042706,16.1279876 L16.0553684,16.1346345 L15.9975069,16.1373633 L11.9261276,16.1373633 C11.5692159,16.1364457 11.2761217,15.8523639 11.258982,15.4919037 C11.2426255,15.1479164 11.4830162,14.8487019 11.8206323,14.790587 L11.8695073,14.7839462 L11.9273688,14.7812173 L15.9993169,14.7812173 Z M15.9993169,9.17576905 C16.3551115,9.17610663 16.6484298,9.46036344 16.6658531,9.82067862 C16.6824956,10.1648485 16.4420698,10.46437 16.1042706,10.5225394 L16.0553684,10.5291862 L15.9975069,10.531915 L11.9261275,10.531915 C11.5692159,10.5309973 11.2761218,10.2469156 11.2589821,9.88645544 C11.2426256,9.54246821 11.4830162,9.24325369 11.8206323,9.18513869 L11.8695073,9.17849788 L11.9273688,9.17576905 L15.9993169,9.17576905 Z M15.9830882,3.67763129 C16.3461399,3.67044486 16.6481599,3.95622956 16.6658537,4.322438 C16.6827312,4.67175264 16.4350131,4.97407929 16.0918956,5.02624392 L16.0422482,5.03197229 L15.9870933,5.0337458 L8.19338605,5.0337458 C7.83647448,5.03282811 7.54338038,4.74874639 7.52624062,4.38828624 C7.50988414,4.04429901 7.75027476,3.74508449 8.0878908,3.68696949 L8.13676583,3.68032868 L8.1946273,3.67759985 L15.9830882,3.67763129 Z",
30
+ "class": bem("svg-defs-path-fill"),
31
+ "fill-rule": "nonzero",
32
+ "transform": "translate(-3.333333 -3.333333)"
33
+ }, null)]);
@@ -1,3 +1,5 @@
1
+ import { ComponentPublicInstance } from 'vue';
2
+ import { HierarchySelectProps } from './HierarchySelect';
1
3
  export type HierarchyData = {
2
4
  id: string | number;
3
5
  name: string;
@@ -5,3 +7,22 @@ export type HierarchyData = {
5
7
  children?: HierarchyData[];
6
8
  [x: string]: any;
7
9
  };
10
+ export type HierarchySelectExpose = {
11
+ toNodeLevel: (id: string | number, force?: boolean) => boolean;
12
+ };
13
+ export type HierarchySelectInstance = ComponentPublicInstance<HierarchySelectProps, HierarchySelectExpose>;
14
+ export type HierarchySelectThemeVars = {
15
+ hierarchySelectColor?: string;
16
+ hierarchySelectDuration?: string;
17
+ hierarchySelectRoundIconBorder?: string;
18
+ hierarchySelectRoundIconBoxShadow?: string;
19
+ hierarchySelectRoundIconBackground?: string;
20
+ hierarchySelectCheckedIconColor?: string;
21
+ hierarchySelectCheckedIconShadow?: string;
22
+ hierarchySelectCheckedIconBorder?: string;
23
+ hierarchySelectDisabledIconShadow?: string;
24
+ hierarchySelectDisabledIconBorder?: string;
25
+ hierarchySelectDisabledCheckedIconOpacity?: string;
26
+ hierarchySelectDisabledIconBackground?: string;
27
+ hierarchyBreadcrumbLineHeight?: string;
28
+ };
@@ -1 +1 @@
1
- :root{--zt-image-placeholder-text-color: var(--zt-gray-a4);--zt-image-placeholder-font-size: var(--zt-font-size-md);--zt-image-placeholder-background: var(--zt-background-3);--zt-image-loading-icon-size: 32px;--zt-image-loading-icon-color: var(--zt-gray-a4);--zt-image-error-icon-size: 32px;--zt-image-error-icon-color: var(--zt-gray-a4)}.zt-image{position:relative;display:inline-block}.zt-image--round{overflow:hidden;border-radius:var(--zt-radius-max)}.zt-image--round .zt-image__img{border-radius:inherit}.zt-image--block{display:block}.zt-image__img,.zt-image__error,.zt-image__loading{display:block;width:100%;height:100%}.zt-image__error,.zt-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--zt-image-placeholder-text-color);font-size:var(--zt-image-placeholder-font-size);background:var(--zt-image-placeholder-background)}.zt-image__loading-icon{font-size:var(--zt-image-loading-icon-size)}.zt-image__error-icon{font-size:var(--zt-image-error-icon-size)}
1
+ :root{--zt-image-placeholder-text-color: var(--zt-gray-a4);--zt-image-placeholder-background: var(--zt-background-3);--zt-image-icon-font-size: 32px}:root[zt-theme-size=large]{--zt-image-icon-font-size: 38px}.zt-image{position:relative;display:inline-block}.zt-image--round{overflow:hidden;border-radius:var(--zt-radius-max)}.zt-image--round .zt-image__img{border-radius:inherit}.zt-image--block{display:block}.zt-image__img,.zt-image__error,.zt-image__loading{display:block;width:100%;height:100%}.zt-image__error,.zt-image__loading{position:absolute;top:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;color:var(--zt-image-placeholder-text-color);font-size:var(--zt-font-size-md);background:var(--zt-image-placeholder-background)}.zt-image__loading-icon,.zt-image__error-icon{font-size:var(--zt-image-icon-font-size)}
@@ -70,6 +70,7 @@ export declare const Image: import("../utils").WithInstall<import("vue").DefineC
70
70
  }, {}>>;
71
71
  export default Image;
72
72
  export type { ImageFit, ImageProps } from './Image';
73
+ export type { ImageThemeVars } from './types';
73
74
  declare module 'vue' {
74
75
  interface GlobalComponents {
75
76
  ZtImage: typeof Image;
@@ -0,0 +1,5 @@
1
+ export type ImageThemeVars = {
2
+ imagePlaceholderTextColor?: string;
3
+ imagePlaceholderBackground?: string;
4
+ imageIconFontSize?: string;
5
+ };
@@ -0,0 +1,15 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __copyProps = (to, from, except, desc) => {
6
+ if (from && typeof from === "object" || typeof from === "function") {
7
+ for (let key of __getOwnPropNames(from))
8
+ if (!__hasOwnProp.call(to, key) && key !== except)
9
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
10
+ }
11
+ return to;
12
+ };
13
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
14
+ var stdin_exports = {};
15
+ module.exports = __toCommonJS(stdin_exports);
@@ -195,11 +195,11 @@ declare const _default: import("vue").DefineComponent<{
195
195
  closeOnPopstate: boolean;
196
196
  closeIconPosition: PopupCloseIconPosition;
197
197
  showIndicators: boolean;
198
- swipeDuration: string | number;
199
198
  minZoom: string | number;
200
199
  maxZoom: string | number;
201
200
  images: ImageItem[];
202
201
  showIndex: boolean;
202
+ swipeDuration: string | number;
203
203
  startPosition: string | number;
204
204
  }, {}>;
205
205
  export default _default;
@@ -1 +1 @@
1
- :root{--zt-image-preview-index-height: 48px;--zt-image-preview-index-line-height: 24px;--zt-image-preview-index-background: var(--zt-gray-a4);--zt-image-preview-index-text-color: var(--zt-white);--zt-image-preview-index-number-font-size: var(--zt-font-size-sm);--zt-image-preview-title-font-size: var(--zt-font-size-md);--zt-image-preview-overlay-background: rgba(0, 0, 0, .9);--zt-image-preview-close-icon-size: 22px;--zt-image-preview-close-icon-color: var(--zt-gray-5);--zt-image-preview-close-icon-margin: var(--zt-padding-md);--zt-image-preview-close-icon-z-index: 1}.zt-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:transparent;transform:none}.zt-image-preview__swipe{height:100%}.zt-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.zt-image-preview__cover{position:absolute;top:0;left:0}.zt-image-preview__image,.zt-image-preview__image-wrap{width:100%;transition-property:transform}.zt-image-preview__image--vertical,.zt-image-preview__image-wrap--vertical{width:auto;height:100%}.zt-image-preview__image img,.zt-image-preview__image-wrap img,.zt-image-preview__image video,.zt-image-preview__image-wrap video{-webkit-user-drag:none}.zt-image-preview__image .zt-image__error,.zt-image-preview__image-wrap .zt-image__error{top:30%;height:40%}.zt-image-preview__image .zt-image__error-icon,.zt-image-preview__image-wrap .zt-image__error-icon{font-size:36px}.zt-image-preview__image .zt-image__loading,.zt-image-preview__image-wrap .zt-image__loading{background-color:transparent}.zt-image-preview__index{box-sizing:border-box;display:flex;align-items:center;position:absolute;bottom:0;left:0;width:100%;height:var(--zt-image-preview-index-height);padding:0 16px;background-color:var(--zt-image-preview-index-background);color:var(--zt-image-preview-index-text-color);overflow:hidden}.zt-image-preview__index-number{height:var(--zt-image-preview-index-line-height);background:rgba(45,75,115,.8);border-radius:2px;font-size:var(--zt-image-preview-index-number-font-size);text-align:center;line-height:var(--zt-image-preview-index-line-height);padding:0 8px}.zt-image-preview__title{flex-shrink:0;margin-left:8px;font-size:var(--zt-image-preview-title-font-size);line-height:var(--zt-image-preview-index-line-height)}.zt-image-preview__overlay{background:var(--zt-image-preview-overlay-background)}.zt-image-preview__close-icon{position:absolute;z-index:var(--zt-image-preview-close-icon-z-index);color:var(--zt-image-preview-close-icon-color);font-size:var(--zt-image-preview-close-icon-size)}.zt-image-preview__close-icon--top-left{top:var(--zt-image-preview-close-icon-margin);left:var(--zt-image-preview-close-icon-margin)}.zt-image-preview__close-icon--top-right{top:var(--zt-image-preview-close-icon-margin);right:var(--zt-image-preview-close-icon-margin)}.zt-image-preview__close-icon--bottom-left{bottom:var(--zt-image-preview-close-icon-margin);left:var(--zt-image-preview-close-icon-margin)}.zt-image-preview__close-icon--bottom-right{right:var(--zt-image-preview-close-icon-margin);bottom:var(--zt-image-preview-close-icon-margin)}
1
+ :root{--zt-image-preview-index-height: 48px;--zt-image-preview-index-background: var(--zt-gray-a4);--zt-image-preview-index-text-color: var(--zt-white);--zt-image-preview-overlay-background: rgba(0, 0, 0, .9);--zt-image-preview-close-icon-color: var(--zt-gray-5);--zt-image-preview-close-icon-margin: var(--zt-padding-md);--zt-image-preview-close-icon-z-index: 1;--zt-image-preview-error-font-size: 36px}:root[zt-theme-size=large]{--zt-image-preview-error-font-size: 42px}.zt-image-preview{position:fixed;top:0;left:0;width:100%;height:100%;max-width:none;background-color:transparent;transform:none}.zt-image-preview__swipe{height:100%}.zt-image-preview__swipe-item{display:flex;align-items:center;justify-content:center;overflow:hidden}.zt-image-preview__cover{position:absolute;top:0;left:0}.zt-image-preview__image,.zt-image-preview__image-wrap{width:100%;transition-property:transform}.zt-image-preview__image--vertical,.zt-image-preview__image-wrap--vertical{width:auto;height:100%}.zt-image-preview__image img,.zt-image-preview__image-wrap img,.zt-image-preview__image video,.zt-image-preview__image-wrap video{-webkit-user-drag:none}.zt-image-preview__image .zt-image__error,.zt-image-preview__image-wrap .zt-image__error{top:30%;height:40%}.zt-image-preview__image .zt-image__error-icon,.zt-image-preview__image-wrap .zt-image__error-icon{font-size:var(--zt-image-preview-error-font-size)}.zt-image-preview__image .zt-image__loading,.zt-image-preview__image-wrap .zt-image__loading{background-color:transparent}.zt-image-preview__index{box-sizing:border-box;display:flex;align-items:center;position:absolute;bottom:0;left:0;width:100%;height:var(--zt-image-preview-index-height);padding:0 16px;background-color:var(--zt-image-preview-index-background);color:var(--zt-image-preview-index-text-color);overflow:hidden}.zt-image-preview__index-number{height:var(--zt-line-height-xl);background:rgba(45,75,115,.8);border-radius:2px;font-size:var(--zt-font-size-sm);text-align:center;line-height:var(--zt-line-height-xl);padding:0 8px}.zt-image-preview__title{flex-shrink:0;margin-left:8px;font-size:var(--zt-font-size-md);line-height:var(--zt-line-height-xl)}.zt-image-preview__overlay{background:var(--zt-image-preview-overlay-background)}.zt-image-preview__close-icon{position:absolute;z-index:var(--zt-image-preview-close-icon-z-index);color:var(--zt-image-preview-close-icon-color);font-size:var(--zt-font-size-xxxl)}.zt-image-preview__close-icon--top-left{top:var(--zt-image-preview-close-icon-margin);left:var(--zt-image-preview-close-icon-margin)}.zt-image-preview__close-icon--top-right{top:var(--zt-image-preview-close-icon-margin);right:var(--zt-image-preview-close-icon-margin)}.zt-image-preview__close-icon--bottom-left{bottom:var(--zt-image-preview-close-icon-margin);left:var(--zt-image-preview-close-icon-margin)}.zt-image-preview__close-icon--bottom-right{right:var(--zt-image-preview-close-icon-margin);bottom:var(--zt-image-preview-close-icon-margin)}
@@ -132,18 +132,18 @@ export declare const ImagePreview: import("../utils").WithInstall<import("vue").
132
132
  closeOnPopstate: boolean;
133
133
  closeIconPosition: import("..").PopupCloseIconPosition;
134
134
  showIndicators: boolean;
135
- swipeDuration: string | number;
136
135
  minZoom: string | number;
137
136
  maxZoom: string | number;
138
137
  images: import("./types").ImageItem[];
139
138
  showIndex: boolean;
139
+ swipeDuration: string | number;
140
140
  startPosition: string | number;
141
141
  }, {}>>;
142
142
  export default ImagePreview;
143
143
  export { imagePreviewProps } from './ImagePreview';
144
144
  export { showImagePreview } from './function-call';
145
145
  export type { ImagePreviewProps };
146
- export type { ImageItem, ImagePreviewOptions, ImagePreviewInstance, ImagePreviewScaleEventParams, } from './types';
146
+ export type { ImageItem, ImagePreviewOptions, ImagePreviewInstance, ImagePreviewScaleEventParams, ImagePreviewThemeVars, } from './types';
147
147
  declare module 'vue' {
148
148
  interface GlobalComponents {
149
149
  ZtImagePreview: typeof ImagePreview;
@@ -42,3 +42,13 @@ export type ImagePreviewExpose = {
42
42
  swipeTo: (index: number, options?: SwipeToOptions) => void;
43
43
  };
44
44
  export type ImagePreviewInstance = ComponentPublicInstance<ImagePreviewProps, ImagePreviewExpose>;
45
+ export type ImagePreviewThemeVars = {
46
+ imagePreviewIndexHeight?: string;
47
+ imagePreviewIndexBackground?: string;
48
+ imagePreviewIndexTextColor?: string;
49
+ imagePreviewOverlayBackground?: string;
50
+ imagePreviewCloseIconColor?: string;
51
+ imagePreviewCloseIconMargin?: string;
52
+ imagePreviewCloseIconZIndex?: string;
53
+ imagePreviewErrorFontSize?: string;
54
+ };
@@ -1 +1 @@
1
- :root{--zt-index-anchor-z-index: 1;--zt-index-anchor-padding: 0 var(--zt-padding-md);--zt-index-anchor-text-color: var(--zt-text-color);--zt-index-anchor-font-weight: var(--zt-font-bold);--zt-index-anchor-font-size: var(--zt-font-size-md);--zt-index-anchor-line-height: 44px;--zt-index-anchor-background: transparent;--zt-index-anchor-sticky-text-color: var(--zt-primary-color);--zt-index-anchor-sticky-background: var(--zt-background-2)}.zt-index-anchor{z-index:var(--zt-index-anchor-z-index);box-sizing:border-box;padding:var(--zt-index-anchor-padding);color:var(--zt-index-anchor-text-color);font-weight:var(--zt-index-anchor-font-weight);font-size:var(--zt-index-anchor-font-size);line-height:var(--zt-index-anchor-line-height);height:var(--zt-index-anchor-line-height);background:var(--zt-index-anchor-background);position:relative;display:flex}.zt-index-anchor: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);top:unset}.zt-index-anchor:before{position:absolute;content:"";top:14px;left:0;width:4px;height:16px;background:#0091fa}.zt-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:var(--zt-index-anchor-sticky-text-color);background:var(--zt-background)}
1
+ :root{--zt-index-anchor-z-index: 1;--zt-index-anchor-padding: 0 var(--zt-padding-md);--zt-index-anchor-text-color: var(--zt-text-color);--zt-index-anchor-font-weight: var(--zt-font-bold);--zt-index-anchor-background: transparent;--zt-index-anchor-sticky-text-color: var(--zt-primary-color);--zt-index-anchor-height: 44px}:root[zt-theme-size=large]{--zt-index-anchor-height: 56px}.zt-index-anchor{z-index:var(--zt-index-anchor-z-index);box-sizing:border-box;padding:var(--zt-index-anchor-padding);color:var(--zt-index-anchor-text-color);font-weight:var(--zt-index-anchor-font-weight);font-size:var(--zt-font-size-md);line-height:var(--zt-index-anchor-height);height:var(--zt-index-anchor-height);background:var(--zt-index-anchor-background);position:relative;display:flex}.zt-index-anchor: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);top:unset}.zt-index-anchor:before{position:absolute;content:"";top:14px;left:0;width:4px;height:16px;background:var(--zt-primary-color)}.zt-index-anchor--sticky{position:fixed;top:0;right:0;left:0;color:var(--zt-index-anchor-sticky-text-color);background:var(--zt-background)}
@@ -3,9 +3,7 @@ export type IndexAnchorThemeVars = {
3
3
  indexAnchorPadding?: string;
4
4
  indexAnchorTextColor?: string;
5
5
  indexAnchorFontWeight?: string;
6
- indexAnchorFontSize?: string;
7
- indexAnchorLineHeight?: number | string;
8
6
  indexAnchorBackground?: string;
9
7
  indexAnchorStickyTextColor?: string;
10
- indexAnchorStickyBackground?: string;
8
+ indexAnchorHeight?: string;
11
9
  };
@@ -22,6 +22,14 @@ export declare const indexBarProps: {
22
22
  type: PropType<Numeric[]>;
23
23
  default: typeof genAlphabet;
24
24
  };
25
+ indexBarMaxHeight: {
26
+ type: (NumberConstructor | StringConstructor)[];
27
+ default: string;
28
+ };
29
+ contractionPointText: {
30
+ type: PropType<string>;
31
+ default: string;
32
+ };
25
33
  };
26
34
  export type IndexBarProps = ExtractPropTypes<typeof indexBarProps>;
27
35
  export declare const INDEX_BAR_KEY: InjectionKey<IndexBarProvide>;
@@ -45,6 +53,14 @@ declare const _default: import("vue").DefineComponent<{
45
53
  type: PropType<Numeric[]>;
46
54
  default: typeof genAlphabet;
47
55
  };
56
+ indexBarMaxHeight: {
57
+ type: (NumberConstructor | StringConstructor)[];
58
+ default: string;
59
+ };
60
+ contractionPointText: {
61
+ type: PropType<string>;
62
+ default: string;
63
+ };
48
64
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "anchorClick" | "update:activeAnchor")[], "select" | "change" | "anchorClick" | "update:activeAnchor", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
49
65
  sticky: {
50
66
  type: BooleanConstructor;
@@ -65,6 +81,14 @@ declare const _default: import("vue").DefineComponent<{
65
81
  type: PropType<Numeric[]>;
66
82
  default: typeof genAlphabet;
67
83
  };
84
+ indexBarMaxHeight: {
85
+ type: (NumberConstructor | StringConstructor)[];
86
+ default: string;
87
+ };
88
+ contractionPointText: {
89
+ type: PropType<string>;
90
+ default: string;
91
+ };
68
92
  }>> & {
69
93
  onChange?: ((...args: any[]) => any) | undefined;
70
94
  onSelect?: ((...args: any[]) => any) | undefined;
@@ -75,5 +99,7 @@ declare const _default: import("vue").DefineComponent<{
75
99
  activeAnchor: string | number;
76
100
  stickyOffsetTop: number;
77
101
  indexList: Numeric[];
102
+ indexBarMaxHeight: string | number;
103
+ contractionPointText: string;
78
104
  }, {}>;
79
105
  export default _default;
@@ -29,6 +29,8 @@ var import_use = require("@zartui/use");
29
29
  var import_use_touch = require("../composables/use-touch");
30
30
  var import_use_expose = require("../composables/use-expose");
31
31
  var import_use_sync_prop_ref = require("../composables/use-sync-prop-ref");
32
+ var import_parse = require("../utils/parse");
33
+ var import_deep_clone = require("../utils/deep-clone");
32
34
  function genAlphabet() {
33
35
  const charCodeOfA = "A".charCodeAt(0);
34
36
  const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
@@ -45,9 +47,12 @@ const indexBarProps = {
45
47
  indexList: {
46
48
  type: Array,
47
49
  default: genAlphabet
48
- }
50
+ },
51
+ indexBarMaxHeight: (0, import_utils.makeNumericProp)("70vh"),
52
+ contractionPointText: (0, import_utils.makeStringProp)("\u2022")
49
53
  };
50
54
  const INDEX_BAR_KEY = Symbol(name);
55
+ const MIN_CONTRACTION_NUM = 2;
51
56
  var stdin_default = (0, import_vue2.defineComponent)({
52
57
  name,
53
58
  props: indexBarProps,
@@ -60,6 +65,9 @@ var stdin_default = (0, import_vue2.defineComponent)({
60
65
  const sidebar = (0, import_vue2.ref)();
61
66
  const activeAnchor = (0, import_use_sync_prop_ref.useSyncPropRef)(() => props.activeAnchor, (value) => emit("update:activeAnchor", value));
62
67
  const touchIndex = (0, import_vue2.ref)("");
68
+ const indexBarMaxHeight = (0, import_vue2.computed)(() => {
69
+ return props.indexBarMaxHeight ? (0, import_utils.unitToPx)(props.indexBarMaxHeight) : (0, import_utils.unitToPx)("100vh");
70
+ });
63
71
  const touch = (0, import_use_touch.useTouch)();
64
72
  const scrollParent = (0, import_use.useScrollParent)(root);
65
73
  const {
@@ -182,54 +190,178 @@ var stdin_default = (0, import_vue2.defineComponent)({
182
190
  };
183
191
  const scrollToElement = (element) => {
184
192
  const {
185
- index
193
+ index,
194
+ indexMap = ""
186
195
  } = element.dataset;
187
- if (index) {
188
- scrollTo(index);
196
+ let indexValue = index;
197
+ if (index === props.contractionPointText) {
198
+ indexValue = getIndexMapStartIndexItem(indexMap);
199
+ }
200
+ if (indexValue) {
201
+ scrollTo(indexValue);
189
202
  }
190
203
  };
191
204
  const onClickSidebar = (event) => {
192
205
  scrollToElement(event.target);
193
206
  };
194
- const renderIndexes = () => props.indexList.map((index) => {
195
- const active = index === activeAnchor.value;
196
- const touch2 = index === touchIndex.value;
197
- return (0, import_vue.createVNode)("div", {
198
- "class": bem("index"),
199
- "style": active ? highlightStyle.value : void 0
200
- }, [(0, import_vue.createVNode)("div", {
201
- "class": bem("touch", {
202
- active: touch2
203
- })
204
- }, [(0, import_vue.createVNode)("div", {
205
- "class": bem("touch-text")
206
- }, [index]), (0, import_vue.createVNode)("svg", {
207
- "class": bem("icon"),
208
- "xmlns": "http://www.w3.org/2000/svg",
209
- "viewBox": "0 0 20 32"
210
- }, [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("path", {
211
- "id": "7rkhbmqvk__gc482iacwa",
212
- "d": "M0 0H20V32H0z"
213
- }, null)]), (0, import_vue.createVNode)("g", {
214
- "fill": "none",
215
- "fill-rule": "evenodd"
216
- }, [(0, import_vue.createVNode)("path", {
217
- "d": "M-1,0 C7.836556,-1.623249e-15 15,7.163444 15,16 C15,24.836556 7.836556,32 -1,32 L-1,32 L-1,32 L-1,0 Z",
218
- "fill": "#8093AB",
219
- "mask": "url(#7rkhbmqvk__9ahlxl93tb)"
220
- }, null), (0, import_vue.createVNode)("path", {
221
- "d": "M12.2406862,7.01475705 L19.4355101,15.3463801 C19.7597461,15.7218113 19.7597461,16.2781887 19.4355101,16.6536199 L12.2406862,24.9852429 C13.9822172,22.423901 15,19.3308084 15,16 C15,12.6691916 13.9822172,9.57609904 12.2406862,7.01475705 Z",
222
- "fill": "#8093AB",
223
- "mask": "url(#7rkhbmqvk__9ahlxl93tb)"
224
- }, null)])])]), (0, import_vue.createVNode)("div", {
225
- "data-index": index,
226
- "onClick": onClickSidebar,
227
- "class": bem("index", {
228
- active,
229
- touch: touch2
230
- })
231
- }, [index])]);
232
- });
207
+ const getIndexHeight = () => {
208
+ var _a, _b;
209
+ let indexHeight = "0";
210
+ if ((_a = sidebar.value) == null ? void 0 : _a.children.length) {
211
+ const indexElement = (_b = sidebar.value) == null ? void 0 : _b.children[0];
212
+ indexHeight = getComputedStyle(indexElement).height;
213
+ }
214
+ return (0, import_parse.parseNumber)(indexHeight.replace("px", ""));
215
+ };
216
+ const toContractionListByIntervals = (options) => {
217
+ const {
218
+ hiddenIndexNum,
219
+ renderedPointNum
220
+ } = options;
221
+ let adaptedIndexList = (0, import_deep_clone.deepClone)(props.indexList);
222
+ const lastIndexItem = adaptedIndexList[adaptedIndexList.length - 1];
223
+ const contractionList = [];
224
+ const contractionMapList = [];
225
+ const remainder = hiddenIndexNum % renderedPointNum;
226
+ const contractionRate = new Array(renderedPointNum).fill(Math.floor(hiddenIndexNum / renderedPointNum));
227
+ contractionRate[0] += remainder;
228
+ const NEXT_INDEX_OFFSET = 1;
229
+ for (let index = 0; index < renderedPointNum; index++) {
230
+ contractionList.push(adaptedIndexList[0]);
231
+ contractionList.push(props.contractionPointText);
232
+ contractionMapList.push(adaptedIndexList.slice(NEXT_INDEX_OFFSET, contractionRate[index] + NEXT_INDEX_OFFSET));
233
+ adaptedIndexList = adaptedIndexList.splice(contractionRate[index] + NEXT_INDEX_OFFSET);
234
+ }
235
+ contractionList.push(lastIndexItem);
236
+ return {
237
+ contractionList,
238
+ contractionMapList
239
+ };
240
+ };
241
+ const toContractionListByProgression = (options) => {
242
+ const {
243
+ renderedNum
244
+ } = options;
245
+ let adaptedIndexList = (0, import_deep_clone.deepClone)(props.indexList);
246
+ const contractionList = [];
247
+ const contractionMapList = [];
248
+ const renderedPointNum = adaptedIndexList.length - renderedNum;
249
+ const contractionRate = new Array(renderedPointNum).fill(MIN_CONTRACTION_NUM);
250
+ const intervenedIndexListPartNum = renderedPointNum + 1;
251
+ const intervals = Math.ceil((adaptedIndexList.length - MIN_CONTRACTION_NUM * renderedPointNum) / intervenedIndexListPartNum);
252
+ for (let index = 0; index < renderedPointNum; index++) {
253
+ const slicedIndexList = adaptedIndexList.slice(0, intervals);
254
+ contractionList.push(...slicedIndexList);
255
+ contractionMapList.push(adaptedIndexList.slice(intervals, contractionRate[index] + intervals));
256
+ adaptedIndexList = adaptedIndexList.splice(contractionRate[index] + intervals);
257
+ if (adaptedIndexList.length) {
258
+ contractionList.push(props.contractionPointText);
259
+ }
260
+ }
261
+ contractionList.push(...adaptedIndexList);
262
+ return {
263
+ contractionList,
264
+ contractionMapList
265
+ };
266
+ };
267
+ const adaptorIndexListByHeight = () => {
268
+ const actualIndexListHeight = props.indexList.length * getIndexHeight();
269
+ if (actualIndexListHeight && actualIndexListHeight > indexBarMaxHeight.value) {
270
+ const adaptedIndexList = (0, import_deep_clone.deepClone)(props.indexList);
271
+ const renderedNum = Math.floor(indexBarMaxHeight.value / getIndexHeight());
272
+ const renderedPointNum = Math.floor(renderedNum / MIN_CONTRACTION_NUM);
273
+ const renderedIndexNum = renderedNum - renderedPointNum;
274
+ const hiddenIndexNum = adaptedIndexList.length - renderedIndexNum;
275
+ if (MIN_CONTRACTION_NUM * renderedPointNum + renderedIndexNum <= adaptedIndexList.length) {
276
+ return toContractionListByIntervals({
277
+ hiddenIndexNum,
278
+ renderedPointNum
279
+ });
280
+ } else {
281
+ return toContractionListByProgression({
282
+ renderedNum
283
+ });
284
+ }
285
+ }
286
+ return {
287
+ contractionList: props.indexList,
288
+ contractionMapList: []
289
+ };
290
+ };
291
+ const getContractionPointMapList = (contractionList, contractionMapList, order) => {
292
+ let contractionPointOrder = 0;
293
+ for (let index = 0; index < order; index++) {
294
+ const element = contractionList[index];
295
+ if (element.toString() === props.contractionPointText) {
296
+ contractionPointOrder++;
297
+ }
298
+ }
299
+ return contractionMapList[contractionPointOrder];
300
+ };
301
+ const getIndexMapStartIndexItem = (indexMap) => {
302
+ return indexMap.split(",")[0] || "";
303
+ };
304
+ const renderIndexes = () => {
305
+ const {
306
+ contractionList,
307
+ contractionMapList
308
+ } = adaptorIndexListByHeight();
309
+ return contractionList.map((index, order) => {
310
+ let active = index === activeAnchor.value;
311
+ let touch2 = index === touchIndex.value;
312
+ let contractionPointMapList = [];
313
+ if (index === props.contractionPointText) {
314
+ contractionPointMapList = getContractionPointMapList(contractionList, contractionMapList, order);
315
+ active = contractionPointMapList.includes(activeAnchor.value);
316
+ touch2 = contractionPointMapList.includes(touchIndex.value);
317
+ }
318
+ const touchActiveText = contractionPointMapList[0] || index;
319
+ return (0, import_vue.createVNode)("div", {
320
+ "class": bem("index"),
321
+ "style": active ? highlightStyle.value : void 0
322
+ }, [(0, import_vue.createVNode)("div", {
323
+ "class": bem("touch", {
324
+ active: touch2
325
+ })
326
+ }, [(0, import_vue.createVNode)("div", {
327
+ "class": bem("touch-text")
328
+ }, [touchActiveText]), (0, import_vue.createVNode)("svg", {
329
+ "xmlns": "http://www.w3.org/2000/svg",
330
+ "fill": "none",
331
+ "viewBox": "0 0 20 32",
332
+ "class": bem("icon")
333
+ }, [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("mask", {
334
+ "id": "ei8r0nsyx__b6fjzymnfa"
335
+ }, [(0, import_vue.createVNode)("rect", {
336
+ "width": "20",
337
+ "height": "32",
338
+ "rx": "0",
339
+ "fill": "#FFF"
340
+ }, null)])]), (0, import_vue.createVNode)("g", {
341
+ "mask": "url(#ei8r0nsyx__b6fjzymnfa)"
342
+ }, [(0, import_vue.createVNode)("rect", {
343
+ "width": "20",
344
+ "height": "32",
345
+ "rx": "0"
346
+ }, null), (0, import_vue.createVNode)("path", {
347
+ "d": "M-1.0000000000000497,0C7.83656,0,15,7.16344,15,16C15,24.8366,7.83656,32,-1,32L-1.0000000000000497,0Z",
348
+ "fill-rule": "evenodd",
349
+ "class": bem("icon-fill")
350
+ }, null), (0, import_vue.createVNode)("path", {
351
+ "d": "M12.243150099299784,24.98157383041382L19.435507386779786,16.65358383041382C19.759737386779786,16.27815383041382,19.759737386779786,15.721773830413818,19.435507386779786,15.346343830413819L12.243151433939785,7.018357001713818C13.983177386779785,9.578993830413818,14.999997386779786,12.670733830413818,14.999997386779786,15.999963830413819C14.999997386779786,19.32917383041382,13.983177386779785,22.420973830413818,12.243150099299784,24.98157383041382Z",
352
+ "fill-rule": "evenodd",
353
+ "class": bem("icon-fill")
354
+ }, null)])])]), (0, import_vue.createVNode)("div", {
355
+ "data-index": index,
356
+ "data-index-map": contractionPointMapList,
357
+ "onClick": onClickSidebar,
358
+ "class": bem("index", {
359
+ active,
360
+ touch: touch2
361
+ })
362
+ }, [index])]);
363
+ });
364
+ };
233
365
  let touchActiveIndex;
234
366
  const onTouchStart = (event) => {
235
367
  const {
@@ -239,9 +371,14 @@ var stdin_default = (0, import_vue2.defineComponent)({
239
371
  const target = document.elementFromPoint(clientX, clientY);
240
372
  if (target) {
241
373
  const {
242
- index = ""
374
+ index = "",
375
+ indexMap = ""
243
376
  } = target.dataset;
244
- touchIndex.value = index;
377
+ if (index === props.contractionPointText) {
378
+ touchIndex.value = getIndexMapStartIndexItem(indexMap);
379
+ } else {
380
+ touchIndex.value = index;
381
+ }
245
382
  }
246
383
  touch.start(event);
247
384
  };
@@ -259,11 +396,16 @@ var stdin_default = (0, import_vue2.defineComponent)({
259
396
  const target = document.elementFromPoint(clientX, clientY);
260
397
  if (target) {
261
398
  const {
262
- index
399
+ index,
400
+ indexMap = ""
263
401
  } = target.dataset;
264
- if (index && touchActiveIndex !== index) {
265
- touchActiveIndex = index;
266
- touchIndex.value = index;
402
+ let indexValue = index;
403
+ if (index === props.contractionPointText) {
404
+ indexValue = getIndexMapStartIndexItem(indexMap);
405
+ }
406
+ if (indexValue && touchActiveIndex !== indexValue) {
407
+ touchActiveIndex = indexValue;
408
+ touchIndex.value = indexValue;
267
409
  scrollToElement(target);
268
410
  }
269
411
  }
@@ -1 +1 @@
1
- :root{--zt-index-bar-sidebar-z-index: 2;--zt-index-bar-index-font-size: var(--zt-font-size-xs);--zt-index-bar-index-line-height: var(--zt-line-height-md);--zt-index-bar-index-active-color: var(--zt-primary-color)}.zt-index-bar__sidebar{position:fixed;top:50%;right:var(--zt-padding-xs);z-index:var(--zt-index-bar-sidebar-z-index);display:flex;flex-direction:column;align-items:end;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.zt-index-bar__index{position:relative;color:var(--zt-text-color);padding:0 var(--zt-padding-base);font-size:var(--zt-index-bar-index-font-size);line-height:var(--zt-index-bar-index-line-height);display:flex;height:20px}.zt-index-bar__index--active{color:var(--zt-primary-color);font-weight:700}.zt-index-bar__index--touch{display:inline-block;box-sizing:border-box;padding:0 4px;min-width:var(--zt-index-bar-index-line-height);color:var(--zt-white);background:var(--zt-primary-color);border-radius:10px}.zt-index-bar__touch{display:none}.zt-index-bar__touch-text{position:relative;right:-1px;height:32px;line-height:32px;border-radius:16px 0 0 16px;padding:0 0 0 14px;font-size:16px;color:var(--zt-white);text-align:center;background:#8093ab}.zt-index-bar__touch--active{display:flex;position:relative;top:-6px;right:8px}.zt-index-bar__icon{position:relative;width:20px;height:32px}
1
+ :root{--zt-index-bar-sidebar-z-index: 2;--zt-index-bar-sidebar-touch-index-background-color: #8093ab}.zt-index-bar__sidebar{position:fixed;top:50%;right:var(--zt-padding-xs);z-index:var(--zt-index-bar-sidebar-z-index);display:flex;flex-direction:column;align-items:center;text-align:center;transform:translateY(-50%);cursor:pointer;-webkit-user-select:none;user-select:none}.zt-index-bar__index{position:relative;color:var(--zt-text-color);padding:0 var(--zt-padding-base);font-size:var(--zt-font-size-sm);line-height:var(--zt-line-height-sm);display:flex;height:var(--zt-line-height-sm)}.zt-index-bar__index--active{color:var(--zt-primary-color);font-weight:700}.zt-index-bar__index--touch{position:relative;color:var(--zt-white)}.zt-index-bar__index--touch:after{content:"";position:absolute;top:0;left:50%;transform:translate(-50%);width:100%;height:100%;z-index:-1;padding:0;background:var(--zt-primary-color);border-radius:calc(var(--zt-line-height-sm) / 2)}.zt-index-bar__touch{display:none}.zt-index-bar__touch-text{width:-webkit-max-content;width:max-content;margin-right:-1px;height:32px;line-height:32px;border-radius:16px 0 0 16px;padding:0 1px 0 14px;font-size:var(--zt-font-size-lg);color:var(--zt-white);text-align:center;background:var(--zt-index-bar-sidebar-touch-index-background-color)}.zt-index-bar__touch--active{display:flex;position:absolute;top:-6px;right:100%}.zt-index-bar__icon{position:relative;width:20px;height:32px}.zt-index-bar__icon-fill{fill:var(--zt-index-bar-sidebar-touch-index-background-color)}
@@ -19,6 +19,14 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
19
19
  type: import("vue").PropType<import("../utils").Numeric[]>;
20
20
  default: () => string[];
21
21
  };
22
+ indexBarMaxHeight: {
23
+ type: (NumberConstructor | StringConstructor)[];
24
+ default: string;
25
+ };
26
+ contractionPointText: {
27
+ type: import("vue").PropType<string>;
28
+ default: string;
29
+ };
22
30
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "anchorClick" | "update:activeAnchor")[], "select" | "change" | "anchorClick" | "update:activeAnchor", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
23
31
  sticky: {
24
32
  type: BooleanConstructor;
@@ -39,6 +47,14 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
39
47
  type: import("vue").PropType<import("../utils").Numeric[]>;
40
48
  default: () => string[];
41
49
  };
50
+ indexBarMaxHeight: {
51
+ type: (NumberConstructor | StringConstructor)[];
52
+ default: string;
53
+ };
54
+ contractionPointText: {
55
+ type: import("vue").PropType<string>;
56
+ default: string;
57
+ };
42
58
  }>> & {
43
59
  onChange?: ((...args: any[]) => any) | undefined;
44
60
  onSelect?: ((...args: any[]) => any) | undefined;
@@ -49,6 +65,8 @@ export declare const IndexBar: import("../utils").WithInstall<import("vue").Defi
49
65
  activeAnchor: string | number;
50
66
  stickyOffsetTop: number;
51
67
  indexList: import("../utils").Numeric[];
68
+ indexBarMaxHeight: string | number;
69
+ contractionPointText: string;
52
70
  }, {}>>;
53
71
  export default IndexBar;
54
72
  export { indexBarProps } from './IndexBar';
@@ -10,7 +10,9 @@ export type IndexBarExpose = {
10
10
  export type IndexBarInstance = ComponentPublicInstance<IndexBarProps, IndexBarExpose>;
11
11
  export type IndexBarThemeVars = {
12
12
  indexBarSidebarZIndex?: number | string;
13
- indexBarIndexFontSize?: string;
14
- indexBarIndexLineHeight?: number | string;
15
- indexBarIndexActiveColor?: string;
13
+ indexBarSidebarTouchIndexBackgroundColor?: string;
16
14
  };
15
+ export interface IndexBarContractionItem {
16
+ index: Numeric;
17
+ indexContractionMapList: Numeric[];
18
+ }