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
@@ -1,33 +1,14 @@
1
- import { createVNode as _createVNode, createTextVNode as _createTextVNode } from "vue";
2
- const SubIcon = () => _createVNode("svg", {
3
- "width": "20px",
4
- "height": "20px",
5
- "viewBox": "0 0 20 20",
6
- "version": "1.1",
7
- "xmlns": "http://www.w3.org/2000/svg"
8
- }, [_createVNode("title", null, [_createTextVNode("-mockplus-")]), _createVNode("g", {
9
- "id": "\u5343\u5206\u5236\u8BC4\u5206\u7CFB\u7EDF",
10
- "stroke": "none",
11
- "stroke-width": "1",
12
- "fill": "none",
13
- "fill-rule": "evenodd"
14
- }, [_createVNode("g", {
15
- "id": "2-2-\u4E8C\u7EA7",
16
- "transform": "translate(-303.000000, -180.000000)",
17
- "fill": "#0091fa",
18
- "fill-rule": "nonzero"
19
- }, [_createVNode("g", {
20
- "id": "list",
21
- "transform": "translate(0.000000, 168.000000)"
22
- }, [_createVNode("g", {
23
- "id": "-mockplus-",
24
- "transform": "translate(303.000000, 12.000000)"
25
- }, [_createVNode("g", {
26
- "id": "ic",
27
- "transform": "translate(1.000000, 1.000000)"
1
+ import { createVNode as _createVNode } from "vue";
2
+ const SubIcon = (bem) => _createVNode("svg", {
3
+ "class": bem("svg-sub-icon"),
4
+ "xmlns": "http://www.w3.org/2000/svg",
5
+ "viewBox": "0 0 14 14"
28
6
  }, [_createVNode("path", {
29
- "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"
30
- }, null)])])])])])]);
7
+ "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",
8
+ "class": bem("svg-defs-path-fill"),
9
+ "fill-rule": "nonzero",
10
+ "transform": "translate(-3.333333 -3.333333)"
11
+ }, null)]);
31
12
  export {
32
13
  SubIcon
33
14
  };
@@ -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
+ };
File without changes
@@ -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;
@@ -1,10 +1,12 @@
1
1
  import { createVNode as _createVNode } from "vue";
2
2
  import { ref, watch, computed, nextTick, Teleport, onMounted, defineComponent } from "vue";
3
- import { isDef, isHidden, truthProp, numericProp, getScrollTop, preventDefault, makeNumberProp, createNamespace, getRootScrollTop, setRootScrollTop, makeNumericProp } from "../utils/index.mjs";
3
+ import { isDef, isHidden, truthProp, numericProp, getScrollTop, preventDefault, makeNumberProp, createNamespace, getRootScrollTop, setRootScrollTop, makeNumericProp, unitToPx, makeStringProp } from "../utils/index.mjs";
4
4
  import { useRect, useChildren, useScrollParent, useEventListener } from "@zartui/use";
5
5
  import { useTouch } from "../composables/use-touch.mjs";
6
6
  import { useExpose } from "../composables/use-expose.mjs";
7
7
  import { useSyncPropRef } from "../composables/use-sync-prop-ref.mjs";
8
+ import { parseNumber } from "../utils/parse.mjs";
9
+ import { deepClone } from "../utils/deep-clone.mjs";
8
10
  function genAlphabet() {
9
11
  const charCodeOfA = "A".charCodeAt(0);
10
12
  const indexList = Array(26).fill("").map((_, i) => String.fromCharCode(charCodeOfA + i));
@@ -21,9 +23,12 @@ const indexBarProps = {
21
23
  indexList: {
22
24
  type: Array,
23
25
  default: genAlphabet
24
- }
26
+ },
27
+ indexBarMaxHeight: makeNumericProp("70vh"),
28
+ contractionPointText: makeStringProp("\u2022")
25
29
  };
26
30
  const INDEX_BAR_KEY = Symbol(name);
31
+ const MIN_CONTRACTION_NUM = 2;
27
32
  var stdin_default = defineComponent({
28
33
  name,
29
34
  props: indexBarProps,
@@ -36,6 +41,9 @@ var stdin_default = defineComponent({
36
41
  const sidebar = ref();
37
42
  const activeAnchor = useSyncPropRef(() => props.activeAnchor, (value) => emit("update:activeAnchor", value));
38
43
  const touchIndex = ref("");
44
+ const indexBarMaxHeight = computed(() => {
45
+ return props.indexBarMaxHeight ? unitToPx(props.indexBarMaxHeight) : unitToPx("100vh");
46
+ });
39
47
  const touch = useTouch();
40
48
  const scrollParent = useScrollParent(root);
41
49
  const {
@@ -158,54 +166,178 @@ var stdin_default = defineComponent({
158
166
  };
159
167
  const scrollToElement = (element) => {
160
168
  const {
161
- index
169
+ index,
170
+ indexMap = ""
162
171
  } = element.dataset;
163
- if (index) {
164
- scrollTo(index);
172
+ let indexValue = index;
173
+ if (index === props.contractionPointText) {
174
+ indexValue = getIndexMapStartIndexItem(indexMap);
175
+ }
176
+ if (indexValue) {
177
+ scrollTo(indexValue);
165
178
  }
166
179
  };
167
180
  const onClickSidebar = (event) => {
168
181
  scrollToElement(event.target);
169
182
  };
170
- const renderIndexes = () => props.indexList.map((index) => {
171
- const active = index === activeAnchor.value;
172
- const touch2 = index === touchIndex.value;
173
- return _createVNode("div", {
174
- "class": bem("index"),
175
- "style": active ? highlightStyle.value : void 0
176
- }, [_createVNode("div", {
177
- "class": bem("touch", {
178
- active: touch2
179
- })
180
- }, [_createVNode("div", {
181
- "class": bem("touch-text")
182
- }, [index]), _createVNode("svg", {
183
- "class": bem("icon"),
184
- "xmlns": "http://www.w3.org/2000/svg",
185
- "viewBox": "0 0 20 32"
186
- }, [_createVNode("defs", null, [_createVNode("path", {
187
- "id": "7rkhbmqvk__gc482iacwa",
188
- "d": "M0 0H20V32H0z"
189
- }, null)]), _createVNode("g", {
190
- "fill": "none",
191
- "fill-rule": "evenodd"
192
- }, [_createVNode("path", {
193
- "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",
194
- "fill": "#8093AB",
195
- "mask": "url(#7rkhbmqvk__9ahlxl93tb)"
196
- }, null), _createVNode("path", {
197
- "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",
198
- "fill": "#8093AB",
199
- "mask": "url(#7rkhbmqvk__9ahlxl93tb)"
200
- }, null)])])]), _createVNode("div", {
201
- "data-index": index,
202
- "onClick": onClickSidebar,
203
- "class": bem("index", {
204
- active,
205
- touch: touch2
206
- })
207
- }, [index])]);
208
- });
183
+ const getIndexHeight = () => {
184
+ var _a, _b;
185
+ let indexHeight = "0";
186
+ if ((_a = sidebar.value) == null ? void 0 : _a.children.length) {
187
+ const indexElement = (_b = sidebar.value) == null ? void 0 : _b.children[0];
188
+ indexHeight = getComputedStyle(indexElement).height;
189
+ }
190
+ return parseNumber(indexHeight.replace("px", ""));
191
+ };
192
+ const toContractionListByIntervals = (options) => {
193
+ const {
194
+ hiddenIndexNum,
195
+ renderedPointNum
196
+ } = options;
197
+ let adaptedIndexList = deepClone(props.indexList);
198
+ const lastIndexItem = adaptedIndexList[adaptedIndexList.length - 1];
199
+ const contractionList = [];
200
+ const contractionMapList = [];
201
+ const remainder = hiddenIndexNum % renderedPointNum;
202
+ const contractionRate = new Array(renderedPointNum).fill(Math.floor(hiddenIndexNum / renderedPointNum));
203
+ contractionRate[0] += remainder;
204
+ const NEXT_INDEX_OFFSET = 1;
205
+ for (let index = 0; index < renderedPointNum; index++) {
206
+ contractionList.push(adaptedIndexList[0]);
207
+ contractionList.push(props.contractionPointText);
208
+ contractionMapList.push(adaptedIndexList.slice(NEXT_INDEX_OFFSET, contractionRate[index] + NEXT_INDEX_OFFSET));
209
+ adaptedIndexList = adaptedIndexList.splice(contractionRate[index] + NEXT_INDEX_OFFSET);
210
+ }
211
+ contractionList.push(lastIndexItem);
212
+ return {
213
+ contractionList,
214
+ contractionMapList
215
+ };
216
+ };
217
+ const toContractionListByProgression = (options) => {
218
+ const {
219
+ renderedNum
220
+ } = options;
221
+ let adaptedIndexList = deepClone(props.indexList);
222
+ const contractionList = [];
223
+ const contractionMapList = [];
224
+ const renderedPointNum = adaptedIndexList.length - renderedNum;
225
+ const contractionRate = new Array(renderedPointNum).fill(MIN_CONTRACTION_NUM);
226
+ const intervenedIndexListPartNum = renderedPointNum + 1;
227
+ const intervals = Math.ceil((adaptedIndexList.length - MIN_CONTRACTION_NUM * renderedPointNum) / intervenedIndexListPartNum);
228
+ for (let index = 0; index < renderedPointNum; index++) {
229
+ const slicedIndexList = adaptedIndexList.slice(0, intervals);
230
+ contractionList.push(...slicedIndexList);
231
+ contractionMapList.push(adaptedIndexList.slice(intervals, contractionRate[index] + intervals));
232
+ adaptedIndexList = adaptedIndexList.splice(contractionRate[index] + intervals);
233
+ if (adaptedIndexList.length) {
234
+ contractionList.push(props.contractionPointText);
235
+ }
236
+ }
237
+ contractionList.push(...adaptedIndexList);
238
+ return {
239
+ contractionList,
240
+ contractionMapList
241
+ };
242
+ };
243
+ const adaptorIndexListByHeight = () => {
244
+ const actualIndexListHeight = props.indexList.length * getIndexHeight();
245
+ if (actualIndexListHeight && actualIndexListHeight > indexBarMaxHeight.value) {
246
+ const adaptedIndexList = deepClone(props.indexList);
247
+ const renderedNum = Math.floor(indexBarMaxHeight.value / getIndexHeight());
248
+ const renderedPointNum = Math.floor(renderedNum / MIN_CONTRACTION_NUM);
249
+ const renderedIndexNum = renderedNum - renderedPointNum;
250
+ const hiddenIndexNum = adaptedIndexList.length - renderedIndexNum;
251
+ if (MIN_CONTRACTION_NUM * renderedPointNum + renderedIndexNum <= adaptedIndexList.length) {
252
+ return toContractionListByIntervals({
253
+ hiddenIndexNum,
254
+ renderedPointNum
255
+ });
256
+ } else {
257
+ return toContractionListByProgression({
258
+ renderedNum
259
+ });
260
+ }
261
+ }
262
+ return {
263
+ contractionList: props.indexList,
264
+ contractionMapList: []
265
+ };
266
+ };
267
+ const getContractionPointMapList = (contractionList, contractionMapList, order) => {
268
+ let contractionPointOrder = 0;
269
+ for (let index = 0; index < order; index++) {
270
+ const element = contractionList[index];
271
+ if (element.toString() === props.contractionPointText) {
272
+ contractionPointOrder++;
273
+ }
274
+ }
275
+ return contractionMapList[contractionPointOrder];
276
+ };
277
+ const getIndexMapStartIndexItem = (indexMap) => {
278
+ return indexMap.split(",")[0] || "";
279
+ };
280
+ const renderIndexes = () => {
281
+ const {
282
+ contractionList,
283
+ contractionMapList
284
+ } = adaptorIndexListByHeight();
285
+ return contractionList.map((index, order) => {
286
+ let active = index === activeAnchor.value;
287
+ let touch2 = index === touchIndex.value;
288
+ let contractionPointMapList = [];
289
+ if (index === props.contractionPointText) {
290
+ contractionPointMapList = getContractionPointMapList(contractionList, contractionMapList, order);
291
+ active = contractionPointMapList.includes(activeAnchor.value);
292
+ touch2 = contractionPointMapList.includes(touchIndex.value);
293
+ }
294
+ const touchActiveText = contractionPointMapList[0] || index;
295
+ return _createVNode("div", {
296
+ "class": bem("index"),
297
+ "style": active ? highlightStyle.value : void 0
298
+ }, [_createVNode("div", {
299
+ "class": bem("touch", {
300
+ active: touch2
301
+ })
302
+ }, [_createVNode("div", {
303
+ "class": bem("touch-text")
304
+ }, [touchActiveText]), _createVNode("svg", {
305
+ "xmlns": "http://www.w3.org/2000/svg",
306
+ "fill": "none",
307
+ "viewBox": "0 0 20 32",
308
+ "class": bem("icon")
309
+ }, [_createVNode("defs", null, [_createVNode("mask", {
310
+ "id": "ei8r0nsyx__b6fjzymnfa"
311
+ }, [_createVNode("rect", {
312
+ "width": "20",
313
+ "height": "32",
314
+ "rx": "0",
315
+ "fill": "#FFF"
316
+ }, null)])]), _createVNode("g", {
317
+ "mask": "url(#ei8r0nsyx__b6fjzymnfa)"
318
+ }, [_createVNode("rect", {
319
+ "width": "20",
320
+ "height": "32",
321
+ "rx": "0"
322
+ }, null), _createVNode("path", {
323
+ "d": "M-1.0000000000000497,0C7.83656,0,15,7.16344,15,16C15,24.8366,7.83656,32,-1,32L-1.0000000000000497,0Z",
324
+ "fill-rule": "evenodd",
325
+ "class": bem("icon-fill")
326
+ }, null), _createVNode("path", {
327
+ "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",
328
+ "fill-rule": "evenodd",
329
+ "class": bem("icon-fill")
330
+ }, null)])])]), _createVNode("div", {
331
+ "data-index": index,
332
+ "data-index-map": contractionPointMapList,
333
+ "onClick": onClickSidebar,
334
+ "class": bem("index", {
335
+ active,
336
+ touch: touch2
337
+ })
338
+ }, [index])]);
339
+ });
340
+ };
209
341
  let touchActiveIndex;
210
342
  const onTouchStart = (event) => {
211
343
  const {
@@ -215,9 +347,14 @@ var stdin_default = defineComponent({
215
347
  const target = document.elementFromPoint(clientX, clientY);
216
348
  if (target) {
217
349
  const {
218
- index = ""
350
+ index = "",
351
+ indexMap = ""
219
352
  } = target.dataset;
220
- touchIndex.value = index;
353
+ if (index === props.contractionPointText) {
354
+ touchIndex.value = getIndexMapStartIndexItem(indexMap);
355
+ } else {
356
+ touchIndex.value = index;
357
+ }
221
358
  }
222
359
  touch.start(event);
223
360
  };
@@ -235,11 +372,16 @@ var stdin_default = defineComponent({
235
372
  const target = document.elementFromPoint(clientX, clientY);
236
373
  if (target) {
237
374
  const {
238
- index
375
+ index,
376
+ indexMap = ""
239
377
  } = target.dataset;
240
- if (index && touchActiveIndex !== index) {
241
- touchActiveIndex = index;
242
- touchIndex.value = index;
378
+ let indexValue = index;
379
+ if (index === props.contractionPointText) {
380
+ indexValue = getIndexMapStartIndexItem(indexMap);
381
+ }
382
+ if (indexValue && touchActiveIndex !== indexValue) {
383
+ touchActiveIndex = indexValue;
384
+ touchIndex.value = indexValue;
243
385
  scrollToElement(target);
244
386
  }
245
387
  }
@@ -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
+ }
package/es/index.d.ts CHANGED
@@ -78,4 +78,4 @@ declare namespace _default {
78
78
  }
79
79
  export default _default;
80
80
  export function install(app: any): void;
81
- export const version: "3.1.9";
81
+ export const version: "3.1.11";