@varlet/ui 1.27.20 → 2.0.0-alpha.1663499244572

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 (572) hide show
  1. package/CHANGELOG.md +1885 -1885
  2. package/LICENCE +21 -21
  3. package/README.en-US.md +86 -93
  4. package/README.md +93 -93
  5. package/es/action-sheet/actionSheet.css +1 -1
  6. package/es/action-sheet/props.js +1 -1
  7. package/es/bottom-navigation/BottomNavigation.js +1 -1
  8. package/es/button/Button.js +2 -1
  9. package/es/button/button.css +1 -1
  10. package/es/button/props.js +5 -0
  11. package/es/card/Card.js +18 -22
  12. package/es/card/card.css +1 -1
  13. package/es/card/props.js +0 -7
  14. package/es/cell/Cell.js +3 -3
  15. package/es/cell/cell.css +1 -1
  16. package/es/cell/props.js +2 -2
  17. package/es/chip/chip.css +1 -1
  18. package/es/date-picker/DatePicker.js +1 -1
  19. package/es/date-picker/props.js +1 -1
  20. package/es/date-picker/src/day-picker-panel.js +1 -1
  21. package/es/date-picker/src/month-picker-panel.js +1 -1
  22. package/es/dialog/props.js +1 -1
  23. package/es/divider/Divider.js +1 -1
  24. package/es/image-preview/props.js +1 -1
  25. package/es/index.d.ts +1 -1
  26. package/es/index.js +5 -0
  27. package/es/input/Input.js +1 -1
  28. package/es/lazy/index.js +1 -1
  29. package/es/loading/loading.css +1 -1
  30. package/es/loading/props.js +1 -2
  31. package/es/locale/en-US.d.ts +5 -5
  32. package/es/locale/index.js +7 -2
  33. package/es/locale/zh-CN.d.ts +5 -5
  34. package/es/menu/Menu.js +318 -94
  35. package/es/{action-sheet/ActionSheetSfc.less → menu/MenuSfc.css} +0 -0
  36. package/es/menu/index.js +1 -1
  37. package/es/menu/menu.css +1 -1
  38. package/es/menu/props.js +23 -6
  39. package/es/menu/style/index.js +3 -2
  40. package/es/pagination/Pagination.js +7 -3
  41. package/es/pagination/pagination.css +1 -1
  42. package/es/picker/props.js +1 -1
  43. package/es/popup/Popup.js +3 -3
  44. package/es/rate/Rate.js +20 -36
  45. package/es/rate/rate.css +1 -1
  46. package/es/ripple/index.js +2 -2
  47. package/es/select/Select.js +18 -46
  48. package/es/select/select.css +1 -1
  49. package/es/slider/Slider.js +1 -1
  50. package/es/snackbar/core.js +4 -2
  51. package/es/snackbar/index.js +1 -1
  52. package/es/snackbar/props.js +6 -2
  53. package/es/style-provider/StyleProvider.js +5 -1
  54. package/es/style.css +1 -1
  55. package/es/style.js +1 -0
  56. package/es/switch/Switch.js +6 -5
  57. package/es/tabs/tabs.css +1 -1
  58. package/es/tabs-items/TabsItems.js +8 -2
  59. package/es/themes/dark/cell.js +1 -1
  60. package/es/themes/dark/index.d.ts +5 -5
  61. package/es/themes/dark/index.js +3 -2
  62. package/es/themes/dark/menu.js +3 -0
  63. package/es/themes/index.js +4 -0
  64. package/es/time-picker/TimePicker.js +1 -1
  65. package/es/time-picker/props.js +1 -1
  66. package/es/umdIndex.js +5 -0
  67. package/es/utils/components.js +2 -2
  68. package/es/utils/{jest.js → test.js} +0 -19
  69. package/es/varlet.esm.js +12805 -13960
  70. package/highlight/attributes.json +1 -1850
  71. package/highlight/tags.json +58 -578
  72. package/highlight/web-types.json +152 -5241
  73. package/json/area.json +10706 -10706
  74. package/lib/action-sheet/actionSheet.css +1 -1
  75. package/lib/action-sheet/props.js +1 -1
  76. package/lib/bottom-navigation/BottomNavigation.js +1 -1
  77. package/lib/button/Button.js +2 -1
  78. package/lib/button/button.css +1 -1
  79. package/lib/button/props.js +5 -0
  80. package/lib/card/Card.js +18 -22
  81. package/lib/card/card.css +1 -1
  82. package/lib/card/props.js +0 -7
  83. package/lib/cell/Cell.js +3 -3
  84. package/lib/cell/cell.css +1 -1
  85. package/lib/cell/props.js +2 -2
  86. package/lib/chip/chip.css +1 -1
  87. package/lib/date-picker/DatePicker.js +14 -14
  88. package/lib/date-picker/props.js +1 -1
  89. package/lib/date-picker/src/day-picker-panel.js +14 -14
  90. package/lib/date-picker/src/month-picker-panel.js +12 -12
  91. package/lib/date-picker/src/year-picker-panel.js +3 -3
  92. package/lib/dialog/props.js +1 -1
  93. package/lib/divider/Divider.js +1 -1
  94. package/lib/image-preview/props.js +1 -1
  95. package/lib/index.d.ts +1 -1
  96. package/lib/index.js +3 -0
  97. package/lib/input/Input.js +1 -1
  98. package/lib/lazy/index.js +1 -1
  99. package/lib/loading/loading.css +1 -1
  100. package/lib/loading/props.js +1 -2
  101. package/lib/locale/en-US.d.ts +5 -5
  102. package/lib/locale/index.js +11 -1
  103. package/lib/locale/zh-CN.d.ts +5 -5
  104. package/lib/menu/Menu.js +321 -91
  105. package/{es/app-bar/AppBarSfc.less → lib/menu/MenuSfc.css} +0 -0
  106. package/lib/menu/index.js +1 -1
  107. package/lib/menu/menu.css +1 -1
  108. package/lib/menu/props.js +23 -6
  109. package/lib/menu/style/index.js +3 -2
  110. package/lib/pagination/Pagination.js +6 -2
  111. package/lib/pagination/pagination.css +1 -1
  112. package/lib/picker/props.js +1 -1
  113. package/lib/popup/Popup.js +2 -2
  114. package/lib/rate/Rate.js +20 -36
  115. package/lib/rate/rate.css +1 -1
  116. package/lib/ripple/index.js +2 -2
  117. package/lib/select/Select.js +17 -45
  118. package/lib/select/select.css +1 -1
  119. package/lib/slider/Slider.js +1 -1
  120. package/lib/snackbar/core.js +4 -2
  121. package/lib/snackbar/index.js +1 -1
  122. package/lib/snackbar/props.js +6 -2
  123. package/lib/style-provider/StyleProvider.js +5 -1
  124. package/lib/style.css +1 -1
  125. package/lib/style.js +1 -0
  126. package/lib/switch/Switch.js +6 -5
  127. package/lib/tabs/tabs.css +1 -1
  128. package/lib/tabs-items/TabsItems.js +9 -3
  129. package/lib/themes/dark/cell.js +1 -1
  130. package/lib/themes/dark/index.d.ts +5 -5
  131. package/lib/themes/dark/index.js +4 -2
  132. package/lib/themes/dark/menu.js +8 -0
  133. package/lib/themes/index.js +13 -0
  134. package/lib/time-picker/TimePicker.js +9 -9
  135. package/lib/time-picker/clock.js +3 -3
  136. package/lib/time-picker/props.js +1 -1
  137. package/lib/utils/components.js +3 -3
  138. package/lib/utils/{jest.js → test.js} +0 -21
  139. package/package.json +14 -10
  140. package/types/actionSheet.d.ts +68 -69
  141. package/types/appBar.d.ts +17 -16
  142. package/types/backTop.d.ts +16 -17
  143. package/types/badge.d.ts +20 -19
  144. package/types/bottomNavigation.d.ts +23 -24
  145. package/types/bottomNavigationItem.d.ts +17 -18
  146. package/types/button.d.ts +29 -28
  147. package/types/card.d.ts +29 -30
  148. package/types/cell.d.ts +18 -19
  149. package/types/checkbox.d.ts +34 -35
  150. package/types/checkboxGroup.d.ts +29 -30
  151. package/types/chip.d.ts +20 -21
  152. package/types/col.d.ts +23 -24
  153. package/types/collapse.d.ts +17 -18
  154. package/types/collapseItem.d.ts +14 -15
  155. package/types/countdown.d.ts +29 -30
  156. package/types/counter.d.ts +44 -45
  157. package/types/datePicker.d.ts +29 -28
  158. package/types/dialog.d.ts +84 -83
  159. package/types/divider.d.ts +15 -16
  160. package/types/form.d.ts +18 -19
  161. package/types/icon.d.ts +16 -17
  162. package/types/image.d.ts +26 -25
  163. package/types/imagePreview.d.ts +51 -52
  164. package/types/index.d.ts +67 -0
  165. package/types/indexAnchor.d.ts +11 -12
  166. package/types/indexBar.d.ts +21 -22
  167. package/types/input.d.ts +48 -47
  168. package/types/lazy.d.ts +5 -5
  169. package/types/list.d.ts +21 -22
  170. package/types/loading.d.ts +18 -17
  171. package/types/locale.d.ts +52 -49
  172. package/types/menu.d.ts +46 -22
  173. package/types/option.d.ts +12 -13
  174. package/types/pagination.d.ts +25 -26
  175. package/types/picker.d.ts +85 -86
  176. package/types/popup.d.ts +27 -26
  177. package/types/progress.d.ts +22 -21
  178. package/types/pullRefresh.d.ts +20 -21
  179. package/types/radio.d.ts +34 -35
  180. package/types/radioGroup.d.ts +24 -25
  181. package/types/rate.d.ts +28 -29
  182. package/types/ripple.d.ts +5 -5
  183. package/types/row.d.ts +18 -15
  184. package/types/select.d.ts +48 -47
  185. package/types/skeleton.d.ts +21 -22
  186. package/types/slider.d.ts +30 -29
  187. package/types/snackbar.d.ts +82 -82
  188. package/types/space.d.ts +26 -27
  189. package/types/step.d.ts +13 -14
  190. package/types/steps.d.ts +15 -16
  191. package/types/sticky.d.ts +15 -16
  192. package/types/styleProvider.d.ts +24 -24
  193. package/types/swipe.d.ts +27 -28
  194. package/types/swipeItem.d.ts +9 -10
  195. package/types/switch.d.ts +25 -26
  196. package/types/tab.d.ts +13 -14
  197. package/types/tabItem.d.ts +11 -12
  198. package/types/table.d.ts +11 -12
  199. package/types/tabs.d.ts +29 -30
  200. package/types/tabsItems.d.ts +15 -13
  201. package/types/timePicker.d.ts +30 -29
  202. package/types/uploader.d.ts +65 -60
  203. package/types/varComponent.d.ts +18 -12
  204. package/types/varDirective.d.ts +12 -12
  205. package/umd/varlet.js +16 -4
  206. package/es/action-sheet/actionSheet.less +0 -68
  207. package/es/action-sheet/style/less.js +0 -6
  208. package/es/app-bar/appBar.less +0 -57
  209. package/es/app-bar/style/less.js +0 -4
  210. package/es/back-top/BackTopSfc.less +0 -0
  211. package/es/back-top/backTop.less +0 -27
  212. package/es/back-top/style/less.js +0 -5
  213. package/es/badge/BadgeSfc.less +0 -0
  214. package/es/badge/badge.less +0 -119
  215. package/es/badge/style/less.js +0 -4
  216. package/es/bottom-navigation/BottomNavigationSfc.less +0 -0
  217. package/es/bottom-navigation/bottomNavigation.less +0 -56
  218. package/es/bottom-navigation/style/less.js +0 -4
  219. package/es/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
  220. package/es/bottom-navigation-item/bottomNavigationItem.less +0 -78
  221. package/es/bottom-navigation-item/style/less.js +0 -6
  222. package/es/button/ButtonSfc.less +0 -0
  223. package/es/button/button.less +0 -183
  224. package/es/button/style/less.js +0 -6
  225. package/es/card/CardSfc.less +0 -0
  226. package/es/card/card.less +0 -189
  227. package/es/card/style/less.js +0 -5
  228. package/es/cell/CellSfc.less +0 -0
  229. package/es/cell/cell.less +0 -78
  230. package/es/cell/style/less.js +0 -4
  231. package/es/checkbox/CheckboxSfc.less +0 -0
  232. package/es/checkbox/checkbox.less +0 -78
  233. package/es/checkbox/style/less.js +0 -6
  234. package/es/checkbox-group/CheckboxGroupSfc.less +0 -0
  235. package/es/checkbox-group/checkboxGroup.less +0 -12
  236. package/es/checkbox-group/style/less.js +0 -4
  237. package/es/chip/ChipSfc.less +0 -0
  238. package/es/chip/chip.less +0 -182
  239. package/es/chip/style/less.js +0 -4
  240. package/es/col/ColSfc.less +0 -0
  241. package/es/col/col.less +0 -74
  242. package/es/col/style/less.js +0 -3
  243. package/es/collapse/CollapseSfc.less +0 -1
  244. package/es/collapse/style/less.js +0 -3
  245. package/es/collapse-item/CollapseItemSfc.less +0 -0
  246. package/es/collapse-item/collapseItem.less +0 -105
  247. package/es/collapse-item/style/less.js +0 -4
  248. package/es/context/style/less.js +0 -0
  249. package/es/countdown/CountdownSfc.less +0 -0
  250. package/es/countdown/style/less.js +0 -2
  251. package/es/counter/CounterSfc.less +0 -0
  252. package/es/counter/counter.less +0 -89
  253. package/es/counter/style/less.js +0 -7
  254. package/es/date-picker/DatePickerSfc.less +0 -0
  255. package/es/date-picker/date-picker.less +0 -354
  256. package/es/date-picker/style/less.js +0 -7
  257. package/es/dialog/DialogSfc.less +0 -0
  258. package/es/dialog/dialog.less +0 -77
  259. package/es/dialog/style/less.js +0 -5
  260. package/es/divider/DividerSfc.less +0 -0
  261. package/es/divider/divider.less +0 -78
  262. package/es/divider/style/less.js +0 -3
  263. package/es/form/FormSfc.less +0 -0
  264. package/es/form/style/less.js +0 -2
  265. package/es/form-details/FormDetailsSfc.less +0 -0
  266. package/es/form-details/formDetails.less +0 -48
  267. package/es/form-details/style/less.js +0 -3
  268. package/es/icon/IconSfc.less +0 -0
  269. package/es/icon/icon.less +0 -26
  270. package/es/icon/style/less.js +0 -3
  271. package/es/image/ImageSfc.less +0 -0
  272. package/es/image/image.less +0 -9
  273. package/es/image/style/less.js +0 -4
  274. package/es/image-preview/ImagePreviewSfc.less +0 -0
  275. package/es/image-preview/imagePreview.less +0 -76
  276. package/es/image-preview/style/less.js +0 -7
  277. package/es/index-anchor/IndexAnchorSfc.less +0 -1
  278. package/es/index-anchor/style/less.js +0 -3
  279. package/es/index-bar/IndexBarSfc.less +0 -0
  280. package/es/index-bar/indexBar.less +0 -43
  281. package/es/index-bar/style/less.js +0 -3
  282. package/es/input/InputSfc.less +0 -0
  283. package/es/input/input.less +0 -187
  284. package/es/input/style/less.js +0 -5
  285. package/es/lazy/style/less.js +0 -0
  286. package/es/less.js +0 -64
  287. package/es/list/ListSfc.less +0 -0
  288. package/es/list/list.less +0 -63
  289. package/es/list/style/less.js +0 -5
  290. package/es/loading/LoadingSfc.less +0 -0
  291. package/es/loading/loading.less +0 -500
  292. package/es/loading/style/less.js +0 -3
  293. package/es/locale/style/less.js +0 -0
  294. package/es/menu/menu.less +0 -21
  295. package/es/menu/style/less.js +0 -3
  296. package/es/option/OptionSfc.less +0 -0
  297. package/es/option/option.less +0 -37
  298. package/es/option/style/less.js +0 -6
  299. package/es/pagination/PaginationSfc.less +0 -0
  300. package/es/pagination/pagination.less +0 -188
  301. package/es/pagination/style/less.js +0 -8
  302. package/es/picker/PickerSfc.less +0 -0
  303. package/es/picker/picker.less +0 -106
  304. package/es/picker/style/less.js +0 -5
  305. package/es/popup/popup.less +0 -125
  306. package/es/popup/style/less.js +0 -2
  307. package/es/progress/ProgressSfc.less +0 -0
  308. package/es/progress/progress.less +0 -101
  309. package/es/progress/style/less.js +0 -3
  310. package/es/pull-refresh/PullRefreshSfc.less +0 -0
  311. package/es/pull-refresh/pullRefresh.less +0 -56
  312. package/es/pull-refresh/style/less.js +0 -5
  313. package/es/radio/RadioSfc.less +0 -0
  314. package/es/radio/radio.less +0 -78
  315. package/es/radio/style/less.js +0 -6
  316. package/es/radio-group/RadioGroupSfc.less +0 -0
  317. package/es/radio-group/radioGroup.less +0 -12
  318. package/es/radio-group/style/less.js +0 -4
  319. package/es/rate/RateSfc.less +0 -0
  320. package/es/rate/rate.less +0 -48
  321. package/es/rate/style/less.js +0 -6
  322. package/es/ripple/ripple.less +0 -20
  323. package/es/ripple/style/less.js +0 -2
  324. package/es/row/RowSfc.less +0 -0
  325. package/es/row/row.less +0 -4
  326. package/es/row/style/less.js +0 -3
  327. package/es/select/SelectSfc.less +0 -0
  328. package/es/select/select.less +0 -184
  329. package/es/select/style/less.js +0 -7
  330. package/es/skeleton/SkeletonSfc.less +0 -0
  331. package/es/skeleton/skeleton.less +0 -138
  332. package/es/skeleton/style/less.js +0 -3
  333. package/es/slider/SliderSfc.less +0 -0
  334. package/es/slider/slider.less +0 -147
  335. package/es/slider/style/less.js +0 -4
  336. package/es/snackbar/SnackbarSfc.less +0 -0
  337. package/es/snackbar/coreSfc.less +0 -0
  338. package/es/snackbar/snackbar.less +0 -129
  339. package/es/snackbar/style/less.js +0 -8
  340. package/es/space/space.less +0 -6
  341. package/es/space/style/less.js +0 -2
  342. package/es/step/StepSfc.less +0 -0
  343. package/es/step/step.less +0 -145
  344. package/es/step/style/less.js +0 -4
  345. package/es/steps/StepsSfc.less +0 -1
  346. package/es/steps/style/less.js +0 -2
  347. package/es/sticky/StickySfc.less +0 -0
  348. package/es/sticky/sticky.less +0 -8
  349. package/es/sticky/style/less.js +0 -3
  350. package/es/style-provider/StyleProviderSfc.less +0 -0
  351. package/es/style-provider/style/less.js +0 -2
  352. package/es/styles/common.less +0 -73
  353. package/es/styles/elevation.less +0 -128
  354. package/es/styles/style/less.js +0 -0
  355. package/es/styles/var.css +0 -0
  356. package/es/styles/var.less +0 -30
  357. package/es/swipe/SwipeSfc.less +0 -0
  358. package/es/swipe/style/less.js +0 -3
  359. package/es/swipe/swipe.less +0 -60
  360. package/es/swipe-item/SwipeItemSfc.less +0 -0
  361. package/es/swipe-item/style/less.js +0 -3
  362. package/es/swipe-item/swipeItem.less +0 -5
  363. package/es/switch/SwitchSfc.less +0 -0
  364. package/es/switch/style/less.js +0 -7
  365. package/es/switch/switch.less +0 -94
  366. package/es/tab/TabSfc.less +0 -0
  367. package/es/tab/style/less.js +0 -4
  368. package/es/tab/tab.less +0 -46
  369. package/es/tab-item/TabItemSfc.less +0 -0
  370. package/es/tab-item/style/less.js +0 -4
  371. package/es/tab-item/tabItem.less +0 -6
  372. package/es/table/TableSfc.less +0 -0
  373. package/es/table/style/less.js +0 -4
  374. package/es/table/table.less +0 -110
  375. package/es/tabs/TabsSfc.less +0 -0
  376. package/es/tabs/style/less.js +0 -5
  377. package/es/tabs/tabs.less +0 -99
  378. package/es/tabs-items/TabsItemsSfc.less +0 -0
  379. package/es/tabs-items/style/less.js +0 -3
  380. package/es/themes/style/less.js +0 -0
  381. package/es/time-picker/TimePickerSfc.less +0 -0
  382. package/es/time-picker/style/less.js +0 -4
  383. package/es/time-picker/timePicker.less +0 -237
  384. package/es/uploader/UploaderSfc.less +0 -0
  385. package/es/uploader/style/less.js +0 -8
  386. package/es/uploader/uploader.less +0 -216
  387. package/es/utils/style/less.js +0 -0
  388. package/lib/action-sheet/ActionSheetSfc.less +0 -0
  389. package/lib/action-sheet/actionSheet.less +0 -68
  390. package/lib/action-sheet/style/less.js +0 -6
  391. package/lib/app-bar/AppBarSfc.less +0 -0
  392. package/lib/app-bar/appBar.less +0 -57
  393. package/lib/app-bar/style/less.js +0 -4
  394. package/lib/back-top/BackTopSfc.less +0 -0
  395. package/lib/back-top/backTop.less +0 -27
  396. package/lib/back-top/style/less.js +0 -5
  397. package/lib/badge/BadgeSfc.less +0 -0
  398. package/lib/badge/badge.less +0 -119
  399. package/lib/badge/style/less.js +0 -4
  400. package/lib/bottom-navigation/BottomNavigationSfc.less +0 -0
  401. package/lib/bottom-navigation/bottomNavigation.less +0 -56
  402. package/lib/bottom-navigation/style/less.js +0 -4
  403. package/lib/bottom-navigation-item/BottomNavigationItemSfc.less +0 -0
  404. package/lib/bottom-navigation-item/bottomNavigationItem.less +0 -78
  405. package/lib/bottom-navigation-item/style/less.js +0 -6
  406. package/lib/button/ButtonSfc.less +0 -0
  407. package/lib/button/button.less +0 -183
  408. package/lib/button/style/less.js +0 -6
  409. package/lib/card/CardSfc.less +0 -0
  410. package/lib/card/card.less +0 -189
  411. package/lib/card/style/less.js +0 -5
  412. package/lib/cell/CellSfc.less +0 -0
  413. package/lib/cell/cell.less +0 -78
  414. package/lib/cell/style/less.js +0 -4
  415. package/lib/checkbox/CheckboxSfc.less +0 -0
  416. package/lib/checkbox/checkbox.less +0 -78
  417. package/lib/checkbox/style/less.js +0 -6
  418. package/lib/checkbox-group/CheckboxGroupSfc.less +0 -0
  419. package/lib/checkbox-group/checkboxGroup.less +0 -12
  420. package/lib/checkbox-group/style/less.js +0 -4
  421. package/lib/chip/ChipSfc.less +0 -0
  422. package/lib/chip/chip.less +0 -182
  423. package/lib/chip/style/less.js +0 -4
  424. package/lib/col/ColSfc.less +0 -0
  425. package/lib/col/col.less +0 -74
  426. package/lib/col/style/less.js +0 -3
  427. package/lib/collapse/CollapseSfc.less +0 -1
  428. package/lib/collapse/style/less.js +0 -3
  429. package/lib/collapse-item/CollapseItemSfc.less +0 -0
  430. package/lib/collapse-item/collapseItem.less +0 -105
  431. package/lib/collapse-item/style/less.js +0 -4
  432. package/lib/context/style/less.js +0 -0
  433. package/lib/countdown/CountdownSfc.less +0 -0
  434. package/lib/countdown/style/less.js +0 -2
  435. package/lib/counter/CounterSfc.less +0 -0
  436. package/lib/counter/counter.less +0 -89
  437. package/lib/counter/style/less.js +0 -7
  438. package/lib/date-picker/DatePickerSfc.less +0 -0
  439. package/lib/date-picker/date-picker.less +0 -354
  440. package/lib/date-picker/style/less.js +0 -7
  441. package/lib/dialog/DialogSfc.less +0 -0
  442. package/lib/dialog/dialog.less +0 -77
  443. package/lib/dialog/style/less.js +0 -5
  444. package/lib/divider/DividerSfc.less +0 -0
  445. package/lib/divider/divider.less +0 -78
  446. package/lib/divider/style/less.js +0 -3
  447. package/lib/form/FormSfc.less +0 -0
  448. package/lib/form/style/less.js +0 -2
  449. package/lib/form-details/FormDetailsSfc.less +0 -0
  450. package/lib/form-details/formDetails.less +0 -48
  451. package/lib/form-details/style/less.js +0 -3
  452. package/lib/icon/IconSfc.less +0 -0
  453. package/lib/icon/icon.less +0 -26
  454. package/lib/icon/style/less.js +0 -3
  455. package/lib/image/ImageSfc.less +0 -0
  456. package/lib/image/image.less +0 -9
  457. package/lib/image/style/less.js +0 -4
  458. package/lib/image-preview/ImagePreviewSfc.less +0 -0
  459. package/lib/image-preview/imagePreview.less +0 -76
  460. package/lib/image-preview/style/less.js +0 -7
  461. package/lib/index-anchor/IndexAnchorSfc.less +0 -1
  462. package/lib/index-anchor/style/less.js +0 -3
  463. package/lib/index-bar/IndexBarSfc.less +0 -0
  464. package/lib/index-bar/indexBar.less +0 -43
  465. package/lib/index-bar/style/less.js +0 -3
  466. package/lib/input/InputSfc.less +0 -0
  467. package/lib/input/input.less +0 -187
  468. package/lib/input/style/less.js +0 -5
  469. package/lib/lazy/style/less.js +0 -0
  470. package/lib/less.js +0 -64
  471. package/lib/list/ListSfc.less +0 -0
  472. package/lib/list/list.less +0 -63
  473. package/lib/list/style/less.js +0 -5
  474. package/lib/loading/LoadingSfc.less +0 -0
  475. package/lib/loading/loading.less +0 -500
  476. package/lib/loading/style/less.js +0 -3
  477. package/lib/locale/style/less.js +0 -0
  478. package/lib/menu/menu.less +0 -21
  479. package/lib/menu/style/less.js +0 -3
  480. package/lib/option/OptionSfc.less +0 -0
  481. package/lib/option/option.less +0 -37
  482. package/lib/option/style/less.js +0 -6
  483. package/lib/pagination/PaginationSfc.less +0 -0
  484. package/lib/pagination/pagination.less +0 -188
  485. package/lib/pagination/style/less.js +0 -8
  486. package/lib/picker/PickerSfc.less +0 -0
  487. package/lib/picker/picker.less +0 -106
  488. package/lib/picker/style/less.js +0 -5
  489. package/lib/popup/popup.less +0 -125
  490. package/lib/popup/style/less.js +0 -2
  491. package/lib/progress/ProgressSfc.less +0 -0
  492. package/lib/progress/progress.less +0 -101
  493. package/lib/progress/style/less.js +0 -3
  494. package/lib/pull-refresh/PullRefreshSfc.less +0 -0
  495. package/lib/pull-refresh/pullRefresh.less +0 -56
  496. package/lib/pull-refresh/style/less.js +0 -5
  497. package/lib/radio/RadioSfc.less +0 -0
  498. package/lib/radio/radio.less +0 -78
  499. package/lib/radio/style/less.js +0 -6
  500. package/lib/radio-group/RadioGroupSfc.less +0 -0
  501. package/lib/radio-group/radioGroup.less +0 -12
  502. package/lib/radio-group/style/less.js +0 -4
  503. package/lib/rate/RateSfc.less +0 -0
  504. package/lib/rate/rate.less +0 -48
  505. package/lib/rate/style/less.js +0 -6
  506. package/lib/ripple/ripple.less +0 -20
  507. package/lib/ripple/style/less.js +0 -2
  508. package/lib/row/RowSfc.less +0 -0
  509. package/lib/row/row.less +0 -4
  510. package/lib/row/style/less.js +0 -3
  511. package/lib/select/SelectSfc.less +0 -0
  512. package/lib/select/select.less +0 -184
  513. package/lib/select/style/less.js +0 -7
  514. package/lib/skeleton/SkeletonSfc.less +0 -0
  515. package/lib/skeleton/skeleton.less +0 -138
  516. package/lib/skeleton/style/less.js +0 -3
  517. package/lib/slider/SliderSfc.less +0 -0
  518. package/lib/slider/slider.less +0 -147
  519. package/lib/slider/style/less.js +0 -4
  520. package/lib/snackbar/SnackbarSfc.less +0 -0
  521. package/lib/snackbar/coreSfc.less +0 -0
  522. package/lib/snackbar/snackbar.less +0 -129
  523. package/lib/snackbar/style/less.js +0 -8
  524. package/lib/space/space.less +0 -6
  525. package/lib/space/style/less.js +0 -2
  526. package/lib/step/StepSfc.less +0 -0
  527. package/lib/step/step.less +0 -145
  528. package/lib/step/style/less.js +0 -4
  529. package/lib/steps/StepsSfc.less +0 -1
  530. package/lib/steps/style/less.js +0 -2
  531. package/lib/sticky/StickySfc.less +0 -0
  532. package/lib/sticky/sticky.less +0 -8
  533. package/lib/sticky/style/less.js +0 -3
  534. package/lib/style-provider/StyleProviderSfc.less +0 -0
  535. package/lib/style-provider/style/less.js +0 -2
  536. package/lib/styles/common.less +0 -73
  537. package/lib/styles/elevation.less +0 -128
  538. package/lib/styles/style/less.js +0 -0
  539. package/lib/styles/var.css +0 -0
  540. package/lib/styles/var.less +0 -30
  541. package/lib/swipe/SwipeSfc.less +0 -0
  542. package/lib/swipe/style/less.js +0 -3
  543. package/lib/swipe/swipe.less +0 -60
  544. package/lib/swipe-item/SwipeItemSfc.less +0 -0
  545. package/lib/swipe-item/style/less.js +0 -3
  546. package/lib/swipe-item/swipeItem.less +0 -5
  547. package/lib/switch/SwitchSfc.less +0 -0
  548. package/lib/switch/style/less.js +0 -7
  549. package/lib/switch/switch.less +0 -94
  550. package/lib/tab/TabSfc.less +0 -0
  551. package/lib/tab/style/less.js +0 -4
  552. package/lib/tab/tab.less +0 -46
  553. package/lib/tab-item/TabItemSfc.less +0 -0
  554. package/lib/tab-item/style/less.js +0 -4
  555. package/lib/tab-item/tabItem.less +0 -6
  556. package/lib/table/TableSfc.less +0 -0
  557. package/lib/table/style/less.js +0 -4
  558. package/lib/table/table.less +0 -110
  559. package/lib/tabs/TabsSfc.less +0 -0
  560. package/lib/tabs/style/less.js +0 -5
  561. package/lib/tabs/tabs.less +0 -99
  562. package/lib/tabs-items/TabsItemsSfc.less +0 -0
  563. package/lib/tabs-items/style/less.js +0 -3
  564. package/lib/themes/style/less.js +0 -0
  565. package/lib/time-picker/TimePickerSfc.less +0 -0
  566. package/lib/time-picker/style/less.js +0 -4
  567. package/lib/time-picker/timePicker.less +0 -237
  568. package/lib/uploader/UploaderSfc.less +0 -0
  569. package/lib/uploader/style/less.js +0 -8
  570. package/lib/uploader/uploader.less +0 -216
  571. package/lib/utils/style/less.js +0 -0
  572. package/types/global.d.ts +0 -68
@@ -69,9 +69,13 @@ function render(_ctx, _cache) {
69
69
  onKeydown: _cache[3] || (_cache[3] = (0, _vue.withKeys)($event => _ctx.setPage('simple', _ctx.simpleValue, $event), ["enter"]))
70
70
  }, null, 8
71
71
  /* PROPS */
72
- , ["modelValue", "disabled"]), (0, _vue.createElementVNode)("span", null, "/ " + (0, _vue.toDisplayString)(_ctx.pageCount), 1
72
+ , ["modelValue", "disabled"]), (0, _vue.createElementVNode)("span", null, [(0, _vue.createTextVNode)(" / " + (0, _vue.toDisplayString)(_ctx.pageCount) + " ", 1
73
73
  /* TEXT */
74
- )], 2
74
+ ), (0, _vue.createElementVNode)("div", {
75
+ class: (0, _vue.normalizeClass)(_ctx.n('simple-line'))
76
+ }, null, 2
77
+ /* CLASS */
78
+ )])], 2
75
79
  /* CLASS */
76
80
  )) : ((0, _vue.openBlock)(true), (0, _vue.createElementBlock)(_vue.Fragment, {
77
81
  key: 1
@@ -1 +1 @@
1
- :root { --pagination-font-size: var(--font-size-md); --pagination-active-color: #fff; --pagination-active-bg-color: var(--color-primary); --pagination-hover-bg-color: #edf5ff; --pagination-total-margin: 0 12px; --pagination-total-line-height: 24px; --pagination-item-width: 32px; --pagination-item-height: 32px; --pagination-item-margin: 0 6px; --pagination-item-background: #fff; --pagination-item-border-radius: 4px; --pagination-list-bg-color: #fff; --pagination-list-active-bg-color: #edf5ff; --pagination-list-active-color: var(--color-primary); --pagination-input-width: 32px; --pagination-simple-padding: 0 0 2px 0; --pagination-disabled-color: var(--color-text-disabled); --pagination-bg-disabled-color: var(--color-disabled); --pagination-size-line-height: 24px;}.pagination-flex-nowrap { display: flex; white-space: nowrap; align-items: center;}.var-pagination { display: flex; align-items: center; list-style: none; width: 100%; margin: 0; font-size: var(--pagination-font-size); padding: 0;}.var-pagination__item { display: inline-flex; min-width: var(--pagination-item-width); align-items: center; justify-content: center; margin: var(--pagination-item-margin); height: var(--pagination-item-height); cursor: pointer; border-radius: var(--pagination-item-border-radius); outline: none; transition: all 0.25s; user-select: none; background-color: var(--pagination-item-background);}.var-pagination__item:hover { background-color: var(--pagination-hover-bg-color);}.var-pagination__item--active { color: var(--pagination-active-color); background-color: var(--pagination-active-bg-color) !important;}.var-pagination__item--hide { display: none;}.var-pagination__item--disabled { cursor: default; color: var(--pagination-disabled-color); background-color: unset;}.var-pagination__item--disabled:hover { background-color: unset;}.var-pagination__item--disabled--hover:hover { background-color: inherit;}.var-pagination__item--disabled--active { background-color: var(--pagination-bg-disabled-color);}.var-pagination__item--disabled--active:hover { background-color: var(--pagination-bg-disabled-color);}.var-pagination__prev { margin-left: 0;}.var-pagination__total { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-total-line-height); margin: var(--pagination-total-margin);}.var-pagination__size { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-size-line-height); margin: var(--pagination-item-margin);}.var-pagination__size--open { display: flex; align-items: center; cursor: pointer;}.var-pagination__size--open--disabled { cursor: default;}.var-pagination__list { background-color: var(--pagination-list-bg-color); cursor: pointer; transition: all 0.25s;}.var-pagination__list:hover { color: var(--pagination-list-active-color); background-color: var(--pagination-hover-bg-color);}.var-pagination__list--active { background-color: var(--pagination-list-active-bg-color) !important; color: var(--pagination-list-active-color);}.var-pagination__quickly,.var-pagination__simple { display: flex; white-space: nowrap; align-items: center;}.var-pagination__quickly [var-pagination-cover],.var-pagination__simple [var-pagination-cover] { width: var(--pagination-input-width);}.var-pagination__quickly [var-pagination-cover] .var-input__wrap,.var-pagination__simple [var-pagination-cover] .var-input__wrap { padding: 0;}.var-pagination__quickly [var-pagination-cover] .var-input__input,.var-pagination__simple [var-pagination-cover] .var-input__input { height: auto; text-align: center;}.var-pagination__quickly { margin: var(--pagination-item-margin);}.var-pagination__quickly [var-pagination-cover] { margin-left: 6px;}.var-pagination__size--open-icon[var-pagination-cover] { font-size: inherit;}.var-pagination--simple-padding { padding: var(--pagination-simple-padding);}
1
+ :root { --pagination-font-size: var(--font-size-md); --pagination-active-color: #fff; --pagination-active-bg-color: var(--color-primary); --pagination-hover-bg-color: #edf5ff; --pagination-total-margin: 0 12px; --pagination-total-line-height: 24px; --pagination-item-width: 32px; --pagination-item-height: 32px; --pagination-item-margin: 0 6px; --pagination-item-background: #fff; --pagination-item-border-radius: 4px; --pagination-list-bg-color: #fff; --pagination-list-active-bg-color: #edf5ff; --pagination-list-active-color: var(--color-primary); --pagination-input-width: 32px; --pagination-simple-padding: 0 0 2px 0; --pagination-disabled-color: var(--color-text-disabled); --pagination-bg-disabled-color: var(--color-disabled); --pagination-size-line-height: 24px;}.pagination-flex-nowrap { display: flex; white-space: nowrap; align-items: center;}.var-pagination { display: flex; align-items: center; list-style: none; width: 100%; margin: 0; font-size: var(--pagination-font-size); padding: 0;}.var-pagination__item { display: inline-flex; min-width: var(--pagination-item-width); align-items: center; justify-content: center; margin: var(--pagination-item-margin); height: var(--pagination-item-height); cursor: pointer; border-radius: var(--pagination-item-border-radius); outline: none; transition: all 0.25s; user-select: none; background-color: var(--pagination-item-background);}.var-pagination__item:hover { background-color: var(--pagination-hover-bg-color);}.var-pagination__item--active { color: var(--pagination-active-color); background-color: var(--pagination-active-bg-color) !important;}.var-pagination__item--hide { display: none;}.var-pagination__item--disabled { cursor: default; color: var(--pagination-disabled-color); background-color: unset;}.var-pagination__item--disabled:hover { background-color: unset;}.var-pagination__item--disabled--hover:hover { background-color: inherit;}.var-pagination__item--disabled--active { background-color: var(--pagination-bg-disabled-color);}.var-pagination__item--disabled--active:hover { background-color: var(--pagination-bg-disabled-color);}.var-pagination__prev { margin-left: 0;}.var-pagination__total { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-total-line-height); margin: var(--pagination-total-margin);}.var-pagination__size { display: flex; white-space: nowrap; align-items: center; line-height: var(--pagination-size-line-height); margin: var(--pagination-item-margin);}.var-pagination__size--open { display: flex; align-items: center; cursor: pointer;}.var-pagination__size--open--disabled { cursor: default;}.var-pagination__list { background-color: var(--pagination-list-bg-color); cursor: pointer; transition: all 0.25s;}.var-pagination__list:hover { color: var(--pagination-list-active-color); background-color: var(--pagination-hover-bg-color);}.var-pagination__list--active { background-color: var(--pagination-list-active-bg-color) !important; color: var(--pagination-list-active-color);}.var-pagination__quickly,.var-pagination__simple { display: flex; white-space: nowrap; align-items: center;}.var-pagination__quickly [var-pagination-cover],.var-pagination__simple [var-pagination-cover] { width: var(--pagination-input-width);}.var-pagination__quickly [var-pagination-cover] .var-input__wrap,.var-pagination__simple [var-pagination-cover] .var-input__wrap { padding: 0;}.var-pagination__quickly [var-pagination-cover] .var-input__input,.var-pagination__simple [var-pagination-cover] .var-input__input { height: auto; text-align: center;}.var-pagination__quickly-line,.var-pagination__simple-line { height: 1px; background: transparent;}.var-pagination__quickly { margin: var(--pagination-item-margin);}.var-pagination__quickly [var-pagination-cover] { margin-left: 6px;}.var-pagination__size--open-icon[var-pagination-cover] { font-size: inherit;}.var-pagination--simple-padding { padding: var(--pagination-simple-padding);}
@@ -7,7 +7,7 @@ var _components = require("../utils/components");
7
7
 
8
8
  var _props = require("../popup/props");
9
9
 
10
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
10
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
11
11
 
12
12
  var props = _extends({
13
13
  columns: {
@@ -17,7 +17,7 @@ var _components = require("../utils/components");
17
17
 
18
18
 
19
19
 
20
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
 
22
22
  function _isSlot(s) {
23
23
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
@@ -70,7 +70,7 @@ var _default = (0, _vue.defineComponent)({
70
70
  newValue ? onOpen == null ? void 0 : onOpen() : onClose == null ? void 0 : onClose();
71
71
  }); // internal for Dialog
72
72
 
73
- (0, _components.addRouteListener)(() => props.onRouteChange == null ? void 0 : props.onRouteChange());
73
+ (0, _components.useRouteListener)(() => props.onRouteChange == null ? void 0 : props.onRouteChange());
74
74
 
75
75
  var renderOverlay = () => {
76
76
  var {
package/lib/rate/Rate.js CHANGED
@@ -54,7 +54,7 @@ function render(_ctx, _cache) {
54
54
  "var-rate-cover": "",
55
55
  transition: 0,
56
56
  namespace: _ctx.namespace,
57
- name: _ctx.getIconName(val),
57
+ name: _ctx.getCurrentState(val).name,
58
58
  style: (0, _vue.normalizeStyle)({
59
59
  fontSize: _ctx.toSizeUnit(_ctx.size)
60
60
  })
@@ -105,75 +105,59 @@ var _default = (0, _vue.defineComponent)({
105
105
  var getStyle = val => {
106
106
  var {
107
107
  count,
108
- size,
109
108
  gap
110
109
  } = props;
111
110
  return {
112
- color: transformValue(val).color,
113
- marginRight: val !== (0, _shared.toNumber)(count) ? (0, _elements.toSizeUnit)(gap) : 0,
114
- width: (0, _elements.toSizeUnit)(size),
115
- height: (0, _elements.toSizeUnit)(size),
116
- borderRadius: '50%'
111
+ color: getCurrentState(val).color,
112
+ marginRight: val !== (0, _shared.toNumber)(count) ? (0, _elements.toSizeUnit)(gap) : 0
117
113
  };
118
114
  };
119
115
 
120
116
  var getClass = val => {
121
117
  var {
122
- type,
118
+ name,
123
119
  color
124
- } = transformValue(val);
120
+ } = getCurrentState(val);
125
121
  return {
126
122
  [n('content')]: true,
127
123
  [n('--disabled')]: (form == null ? void 0 : form.disabled.value) || props.disabled,
128
124
  [n('--error')]: errorMessage.value,
129
- [n('--primary')]: type !== 'empty' && !color
125
+ [n('--primary')]: name !== props.emptyIcon && !color
130
126
  };
131
127
  };
132
128
 
133
- var getIconName = val => {
134
- var {
135
- type
136
- } = transformValue(val);
137
- var {
138
- icon,
139
- halfIcon,
140
- emptyIcon
141
- } = props;
142
- return type === 'full' ? icon : type === 'half' ? halfIcon : emptyIcon;
143
- };
144
-
145
- var transformValue = index => {
129
+ var getCurrentState = index => {
146
130
  var {
147
131
  modelValue,
148
132
  disabled,
149
133
  disabledColor,
150
134
  color,
151
135
  half,
152
- emptyColor
136
+ emptyColor,
137
+ icon,
138
+ halfIcon,
139
+ emptyIcon
153
140
  } = props;
154
- var iconColor;
155
- if (disabled || form != null && form.disabled.value) iconColor = disabledColor;else if (color) iconColor = color;
141
+ var iconColor = color;
142
+ if (disabled || form != null && form.disabled.value) iconColor = disabledColor;
156
143
 
157
144
  if (index <= (0, _shared.toNumber)(modelValue)) {
158
145
  return {
159
- type: 'full',
160
- score: index,
161
- color: iconColor
146
+ color: iconColor,
147
+ name: icon
162
148
  };
163
149
  }
164
150
 
165
151
  if (half && index <= (0, _shared.toNumber)(modelValue) + 0.5) {
166
152
  return {
167
- type: 'half',
168
- score: index,
169
- color: iconColor
153
+ color: iconColor,
154
+ name: halfIcon
170
155
  };
171
156
  }
172
157
 
173
158
  return {
174
- type: 'empty',
175
- score: index,
176
- color: disabled || form != null && form.disabled.value ? disabledColor : emptyColor
159
+ color: disabled || form != null && form.disabled.value ? disabledColor : emptyColor,
160
+ name: emptyIcon
177
161
  };
178
162
  };
179
163
 
@@ -225,7 +209,7 @@ var _default = (0, _vue.defineComponent)({
225
209
  formReadonly: form == null ? void 0 : form.readonly,
226
210
  getStyle,
227
211
  getClass,
228
- getIconName,
212
+ getCurrentState,
229
213
  handleClick,
230
214
  reset,
231
215
  validate,
package/lib/rate/rate.css CHANGED
@@ -1 +1 @@
1
- :root { --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__wrap { width: 100%;}.var-rate__content { padding: var(--rate-action-padding); box-sizing: unset; cursor: pointer; display: flex; width: 24px; height: 24px; margin-right: 2px; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-rate__content-icon[var-rate-cover] { font-size: 24px;}.var-rate--primary { color: var(--rate-primary-color);}.var-rate--disabled { color: var(--rate-disabled-color); cursor: not-allowed;}.var-rate--error { color: var(--rate-error-color);}
1
+ :root { --rate-disabled-color: var(--color-text-disabled); --rate-error-color: var(--color-danger); --rate-action-padding: 4px; --rate-primary-color: var(--color-primary);}.var-rate { display: flex; transform: translateX(calc(-1 * var(--rate-action-padding)));}.var-rate__wrap { width: 100%;}.var-rate__content { padding: var(--rate-action-padding); cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.var-rate__content-icon[var-rate-cover] { font-size: 24px;}.var-rate--primary { color: var(--rate-primary-color);}.var-rate--disabled { color: var(--rate-disabled-color); cursor: not-allowed;}.var-rate--error { color: var(--rate-error-color);}
@@ -15,7 +15,7 @@ var _components = require("../utils/components");
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
18
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
18
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
19
19
 
20
20
  var {
21
21
  n
@@ -185,7 +185,7 @@ function updated(el, binding) {
185
185
  var _el$_ripple4, _el$_ripple5;
186
186
 
187
187
  el._ripple = _extends({
188
- tasker: (_el$_ripple4 = el._ripple) == null ? void 0 : _el$_ripple4.tasker,
188
+ tasker: newBinding.disabled ? null : (_el$_ripple4 = el._ripple) == null ? void 0 : _el$_ripple4.tasker,
189
189
  removeRipple: (_el$_ripple5 = el._ripple) == null ? void 0 : _el$_ripple5.removeRipple
190
190
  }, newBinding);
191
191
  }
@@ -65,27 +65,29 @@ function render(_ctx, _cache) {
65
65
  class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('icon'), [!_ctx.hint, _ctx.n('--non-hint')]))
66
66
  }, [(0, _vue.renderSlot)(_ctx.$slots, "prepend-icon")], 2
67
67
  /* CLASS */
68
- ), (0, _vue.createVNode)(_component_var_menu, {
69
- class: (0, _vue.normalizeClass)(_ctx.n('menu')),
68
+ ), (0, _vue.createElementVNode)("div", {
69
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('wrap'), [!_ctx.hint, _ctx.n('--non-hint')])),
70
+ ref: "wrapEl",
71
+ onClick: _cache[2] || (_cache[2] = function () {
72
+ return _ctx.handleFocus && _ctx.handleFocus(...arguments);
73
+ })
74
+ }, [(0, _vue.createVNode)(_component_var_menu, {
70
75
  "var-select-cover": "",
76
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('menu'))),
71
77
  "offset-y": _ctx.offsetY,
78
+ disabled: _ctx.readonly || _ctx.disabled,
79
+ "default-style": false,
72
80
  show: _ctx.isFocus,
73
- "onUpdate:show": _cache[2] || (_cache[2] = $event => _ctx.isFocus = $event),
81
+ "onUpdate:show": _cache[1] || (_cache[1] = $event => _ctx.isFocus = $event),
74
82
  onClose: _ctx.handleBlur
75
83
  }, {
76
84
  menu: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", {
77
85
  ref: "menuEl",
78
- class: (0, _vue.normalizeClass)(_ctx.n('scroller'))
86
+ class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('scroller'), 'var-elevation--3'))
79
87
  }, [(0, _vue.renderSlot)(_ctx.$slots, "default")], 2
80
88
  /* CLASS */
81
89
  )]),
82
90
  default: (0, _vue.withCtx)(() => [(0, _vue.createElementVNode)("div", {
83
- class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('wrap'), [!_ctx.hint, _ctx.n('--non-hint')])),
84
- ref: "wrapEl",
85
- onClick: _cache[1] || (_cache[1] = function () {
86
- return _ctx.handleFocus && _ctx.handleFocus(...arguments);
87
- })
88
- }, [(0, _vue.createElementVNode)("div", {
89
91
  class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('select'), [_ctx.errorMessage, _ctx.n('--error')], [_ctx.formDisabled || _ctx.disabled, _ctx.n('--disabled')])),
90
92
  style: (0, _vue.normalizeStyle)({
91
93
  textAlign: _ctx.textAlign,
@@ -141,15 +143,15 @@ function render(_ctx, _cache) {
141
143
  })
142
144
  }, (0, _vue.toDisplayString)(_ctx.placeholder), 7
143
145
  /* TEXT, CLASS, STYLE */
144
- )], 2
145
- /* CLASS */
146
146
  )]),
147
147
  _: 3
148
148
  /* FORWARDED */
149
149
 
150
150
  }, 8
151
151
  /* PROPS */
152
- , ["class", "offset-y", "show", "onClose"]), (0, _vue.createElementVNode)("div", {
152
+ , ["class", "offset-y", "disabled", "show", "onClose"])], 2
153
+ /* CLASS */
154
+ ), (0, _vue.createElementVNode)("div", {
153
155
  class: (0, _vue.normalizeClass)(_ctx.classes(_ctx.n('icon'), [!_ctx.hint, _ctx.n('--non-hint')]))
154
156
  }, [(0, _vue.renderSlot)(_ctx.$slots, "append-icon", {}, () => [_ctx.clearable ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_icon, {
155
157
  key: 0,
@@ -310,11 +312,6 @@ var _default = (0, _vue.defineComponent)({
310
312
  return wrapEl.value && window.getComputedStyle(wrapEl.value).width || '0px';
311
313
  };
312
314
 
313
- var getOffsetY = () => {
314
- var paddingTop = wrapEl.value && window.getComputedStyle(wrapEl.value).paddingTop || '0px';
315
- return (0, _elements.toPxNum)(paddingTop) * 1.5;
316
- };
317
-
318
315
  var handleFocus = () => {
319
316
  var {
320
317
  disabled,
@@ -327,11 +324,10 @@ var _default = (0, _vue.defineComponent)({
327
324
  }
328
325
 
329
326
  wrapWidth.value = getWrapWidth();
330
- offsetY.value = getOffsetY() + (0, _elements.toPxNum)(props.offsetY);
327
+ offsetY.value = (0, _elements.toPxNum)(props.offsetY);
331
328
  isFocus.value = true;
332
329
  (0, _components.call)(onFocus);
333
330
  validateWithTrigger('onFocus');
334
- detectBoundary();
335
331
  };
336
332
 
337
333
  var handleBlur = () => {
@@ -454,9 +450,8 @@ var _default = (0, _vue.defineComponent)({
454
450
 
455
451
  var focus = () => {
456
452
  wrapWidth.value = getWrapWidth();
457
- offsetY.value = getOffsetY() + (0, _elements.toPxNum)(props.offsetY);
453
+ offsetY.value = (0, _elements.toPxNum)(props.offsetY);
458
454
  isFocus.value = true;
459
- detectBoundary();
460
455
  }; // expose
461
456
 
462
457
 
@@ -473,29 +468,6 @@ var _default = (0, _vue.defineComponent)({
473
468
  resetValidation();
474
469
  };
475
470
 
476
- var detectBoundary = () => {
477
- var {
478
- body
479
- } = document;
480
- var bodyScrollHeight = body.scrollHeight;
481
- (0, _vue.nextTick)(() => {
482
- var _menuEl$value;
483
-
484
- var {
485
- offsetHeight: menuOffsetHeight
486
- } = (_menuEl$value = menuEl.value) == null ? void 0 : _menuEl$value.parentElement;
487
- var wrapOffsetTop = (0, _elements.getTop)(wrapEl.value);
488
-
489
- if (wrapOffsetTop + offsetY.value < 0) {
490
- offsetY.value = getOffsetY();
491
- }
492
-
493
- if (menuOffsetHeight + wrapOffsetTop + offsetY.value > bodyScrollHeight) {
494
- offsetY.value -= menuOffsetHeight - getOffsetY();
495
- }
496
- });
497
- };
498
-
499
471
  (0, _vue.watch)(() => props.multiple, () => {
500
472
  var {
501
473
  multiple,
@@ -1 +1 @@
1
- :root { --select-select-text-color: #555; --select-select-padding: 5px 0; --select-error-color: var(--color-danger); --select-blur-color: #888; --select-focus-color: var(--color-primary); --select-scroller-background: #fff; --select-scroller-padding: 6px 0; --select-scroller-max-height: 278px; --select-placeholder-size: 16px; --select-icon-padding: 16px 0 0; --select-icon-size: 20px; --select-chip-margin: 5px 5px 0; --select-line-size: 1px; --select-line-spread-size: 2px; --select-arrow-size: 20px; --select-disabled-color: var(--color-text-disabled);}.var-select-footer-margin-enter-from,.var-select-footer-margin-leave-to { opacity: 0; margin-top: 2px !important;}.var-select-footer-margin-enter-active,.var-select-footer-margin-leave-active { transition: 0.2s all var(--cubic-bezier);}.var-select { width: 100%; color: var(--select-select-text-color);}.var-select__controller { width: 100%; display: flex; position: relative;}.var-select__menu[var-select-cover] { flex-grow: 1; background: transparent;}.var-select__chip[var-select-cover] { margin: var(--select-chip-margin);}.var-select__scroller { max-height: var(--select-scroller-max-height); background: var(--select-scroller-background); padding: var(--select-scroller-padding); overflow-y: auto;}.var-select__wrap { position: relative; display: flex; flex-direction: column; padding-top: var(--select-placeholder-size);}.var-select__icon { display: flex; align-items: center; padding: var(--select-icon-padding); font-size: 20px;}.var-select__placeholder { position: absolute; top: 50%; left: 0; width: 100%; transform-origin: left; transition-property: top, transform, width; transition-duration: 0.3s; transform: translate(0, calc(-50% + var(--select-placeholder-size) / 2)) scale(1); font-size: var(--select-placeholder-size); color: var(--select-blur-color);}.var-select__select { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 32px; padding: var(--select-select-padding); outline: none; border: none; font-size: inherit; color: var(--select-select-text-color); word-break: break-all; overflow-x: hidden;}.var-select__arrow[var-select-cover] { flex-shrink: 0; font-size: var(--select-arrow-size);}.var-select__line { width: 100%; height: var(--select-line-size); background: var(--select-blur-color);}.var-select__dot { width: 100%; height: var(--select-line-spread-size); background: var(--select-focus-color); transform: scaleX(0); transform-origin: center; transition: transform 0.3s var(--cubic-bezier);}.var-select--placeholder-hint { top: 0; width: 133.33%; transform: translate(0, 0) scale(0.75);}.var-select--placeholder-non-hint { top: 50%; transform: translate(0, -50%) scale(1);}.var-select--non-hint { padding-top: 0;}.var-select--placeholder-hidden { visibility: hidden;}.var-select--focus { color: var(--select-focus-color);}.var-select--spread { transform: scaleX(1);}.var-select--disabled { color: var(--select-disabled-color);}.var-select--error { color: var(--select-error-color);}.var-select--line-disabled { background: var(--select-disabled-color);}.var-select--line-error { background: var(--select-error-color);}.var-select--arrow-rotate { transform: rotate(180deg);}
1
+ :root { --select-select-text-color: #555; --select-select-padding: 5px 0; --select-error-color: var(--color-danger); --select-blur-color: #888; --select-focus-color: var(--color-primary); --select-scroller-background: #fff; --select-scroller-padding: 6px 0; --select-scroller-margin: 8px 0 0 0; --select-scroller-max-height: 278px; --select-placeholder-size: 16px; --select-icon-padding: 16px 0 0; --select-icon-size: 20px; --select-chip-margin: 5px 5px 0; --select-line-size: 1px; --select-line-spread-size: 2px; --select-arrow-size: 20px; --select-disabled-color: var(--color-text-disabled);}.var-select-footer-margin-enter-from,.var-select-footer-margin-leave-to { opacity: 0; margin-top: 2px !important;}.var-select-footer-margin-enter-active,.var-select-footer-margin-leave-active { transition: 0.2s all var(--cubic-bezier);}.var-select { width: 100%; color: var(--select-select-text-color);}.var-select__controller { width: 100%; display: flex; position: relative;}.var-select__menu[var-select-cover] { flex-grow: 1; background: transparent;}.var-select__chip[var-select-cover] { margin: var(--select-chip-margin);}.var-select__scroller { max-height: var(--select-scroller-max-height); background: var(--select-scroller-background); padding: var(--select-scroller-padding); overflow-y: auto; margin: var(--select-scroller-margin);}.var-select__wrap { position: relative; display: flex; flex-direction: column; width: 100%; padding-top: var(--select-placeholder-size);}.var-select__icon { display: flex; align-items: center; padding: var(--select-icon-padding); font-size: 20px;}.var-select__placeholder { position: absolute; top: 50%; left: 0; width: 100%; transform-origin: left; transition-property: top, transform, width; transition-duration: 0.3s; transform: translate(0, calc(-50% + var(--select-placeholder-size) / 2)) scale(1); font-size: var(--select-placeholder-size); color: var(--select-blur-color);}.var-select__select { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 32px; padding: var(--select-select-padding); outline: none; border: none; font-size: inherit; color: var(--select-select-text-color); word-break: break-all; overflow-x: hidden;}.var-select__arrow[var-select-cover] { flex-shrink: 0; font-size: var(--select-arrow-size);}.var-select__line { width: 100%; height: var(--select-line-size); background: var(--select-blur-color);}.var-select__dot { width: 100%; height: var(--select-line-spread-size); background: var(--select-focus-color); transform: scaleX(0); transform-origin: center; transition: transform 0.3s var(--cubic-bezier);}.var-select--placeholder-hint { top: 0; width: 133.33%; transform: translate(0, 0) scale(0.75);}.var-select--placeholder-non-hint { top: 50%; transform: translate(0, -50%) scale(1);}.var-select--non-hint { padding-top: 0;}.var-select--placeholder-hidden { visibility: hidden;}.var-select--focus { color: var(--select-focus-color);}.var-select--spread { transform: scaleX(1);}.var-select--disabled { color: var(--select-disabled-color);}.var-select--error { color: var(--select-error-color);}.var-select--line-disabled { background: var(--select-disabled-color);}.var-select--line-error { background: var(--select-error-color);}.var-select--arrow-rotate { transform: rotate(180deg);}
@@ -20,7 +20,7 @@ var _formDetails = _interopRequireDefault(require("../form-details"));
20
20
 
21
21
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
22
 
23
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
23
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
24
24
 
25
25
  var {
26
26
  n,
@@ -66,10 +66,12 @@ function render(_ctx, _cache) {
66
66
  , ["name"])) : (0, _vue.createCommentVNode)("v-if", true), _ctx.type === 'loading' ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_loading, {
67
67
  key: 1,
68
68
  type: _ctx.loadingType,
69
- size: _ctx.loadingSize
69
+ size: _ctx.loadingSize,
70
+ color: _ctx.loadingColor,
71
+ radius: _ctx.loadingRadius
70
72
  }, null, 8
71
73
  /* PROPS */
72
- , ["type", "size"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.renderSlot)(_ctx.$slots, "action")], 2
74
+ , ["type", "size", "color", "radius"])) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.renderSlot)(_ctx.$slots, "action")], 2
73
75
  /* CLASS */
74
76
  )], 6
75
77
  /* CLASS, STYLE */
@@ -17,7 +17,7 @@ var _shared = require("@varlet/shared");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
20
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
21
 
22
22
  function _isSlot(s) {
23
23
  return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
@@ -11,6 +11,8 @@ var _props = require("../loading/props");
11
11
 
12
12
  var _index = require("./index");
13
13
 
14
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
15
+
14
16
  function positionValidator(position) {
15
17
  var validPositions = ['top', 'center', 'bottom'];
16
18
  return validPositions.includes(position);
@@ -49,10 +51,12 @@ var props = {
49
51
  type: Boolean,
50
52
  default: false
51
53
  },
52
- // 加载动画类型
53
54
  loadingType: (0, _components.pickProps)(_props.props, 'type'),
54
- // 加载动画尺寸
55
55
  loadingSize: (0, _components.pickProps)(_props.props, 'size'),
56
+ loadingRadius: (0, _components.pickProps)(_props.props, 'radius'),
57
+ loadingColor: _extends({}, (0, _components.pickProps)(_props.props, 'color'), {
58
+ default: 'currentColor'
59
+ }),
56
60
  // 是否禁止滚动穿透
57
61
  lockScroll: {
58
62
  type: Boolean,
@@ -19,6 +19,10 @@ var _default = (0, _vue.defineComponent)({
19
19
  styleVars: {
20
20
  type: Object,
21
21
  default: () => ({})
22
+ },
23
+ tag: {
24
+ type: String,
25
+ default: 'div'
22
26
  }
23
27
  },
24
28
 
@@ -26,7 +30,7 @@ var _default = (0, _vue.defineComponent)({
26
30
  var {
27
31
  slots
28
32
  } = _ref;
29
- return () => (0, _vue.h)('div', {
33
+ return () => (0, _vue.h)(props.tag, {
30
34
  class: n(),
31
35
  style: (0, _elements.formatStyleVars)(props.styleVars)
32
36
  }, (0, _components.call)(slots.default));