@varlet/ui 1.23.4-alpha.4 → 1.23.4

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 (611) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/es/snackbar/style/index.js +1 -1
  3. package/es/snackbar/style/less.js +1 -1
  4. package/package.json +3 -5
  5. package/types/global.d.ts +1 -0
  6. package/types/index.d.ts +1 -0
  7. package/types/list.d.ts +21 -0
  8. package/lib/action-sheet/ActionSheet.js +0 -149
  9. package/lib/action-sheet/ActionSheetSfc.css +0 -0
  10. package/lib/action-sheet/ActionSheetSfc.less +0 -0
  11. package/lib/action-sheet/actionSheet.css +0 -1
  12. package/lib/action-sheet/actionSheet.less +0 -68
  13. package/lib/action-sheet/index.js +0 -79
  14. package/lib/action-sheet/props.js +0 -37
  15. package/lib/action-sheet/style/index.js +0 -6
  16. package/lib/action-sheet/style/less.js +0 -6
  17. package/lib/app-bar/AppBar.js +0 -66
  18. package/lib/app-bar/AppBarSfc.css +0 -0
  19. package/lib/app-bar/AppBarSfc.less +0 -0
  20. package/lib/app-bar/appBar.css +0 -1
  21. package/lib/app-bar/appBar.less +0 -56
  22. package/lib/app-bar/index.js +0 -17
  23. package/lib/app-bar/props.js +0 -32
  24. package/lib/app-bar/style/index.js +0 -4
  25. package/lib/app-bar/style/less.js +0 -4
  26. package/lib/back-top/BackTop.js +0 -96
  27. package/lib/back-top/BackTopSfc.css +0 -0
  28. package/lib/back-top/BackTopSfc.less +0 -0
  29. package/lib/back-top/backTop.css +0 -1
  30. package/lib/back-top/backTop.less +0 -27
  31. package/lib/back-top/index.js +0 -17
  32. package/lib/back-top/props.js +0 -21
  33. package/lib/back-top/style/index.js +0 -5
  34. package/lib/back-top/style/less.js +0 -5
  35. package/lib/badge/Badge.js +0 -107
  36. package/lib/badge/BadgeSfc.css +0 -0
  37. package/lib/badge/BadgeSfc.less +0 -0
  38. package/lib/badge/badge.css +0 -1
  39. package/lib/badge/badge.less +0 -119
  40. package/lib/badge/index.js +0 -17
  41. package/lib/badge/props.js +0 -55
  42. package/lib/badge/style/index.js +0 -4
  43. package/lib/badge/style/less.js +0 -4
  44. package/lib/button/Button.js +0 -102
  45. package/lib/button/ButtonSfc.css +0 -0
  46. package/lib/button/ButtonSfc.less +0 -0
  47. package/lib/button/button.css +0 -1
  48. package/lib/button/button.less +0 -183
  49. package/lib/button/index.js +0 -17
  50. package/lib/button/props.js +0 -76
  51. package/lib/button/style/index.js +0 -6
  52. package/lib/button/style/less.js +0 -6
  53. package/lib/card/Card.js +0 -83
  54. package/lib/card/CardSfc.css +0 -0
  55. package/lib/card/CardSfc.less +0 -0
  56. package/lib/card/card.css +0 -1
  57. package/lib/card/card.less +0 -84
  58. package/lib/card/index.js +0 -17
  59. package/lib/card/props.js +0 -45
  60. package/lib/card/style/index.js +0 -5
  61. package/lib/card/style/less.js +0 -5
  62. package/lib/cell/Cell.js +0 -68
  63. package/lib/cell/CellSfc.css +0 -0
  64. package/lib/cell/CellSfc.less +0 -0
  65. package/lib/cell/cell.css +0 -1
  66. package/lib/cell/cell.less +0 -74
  67. package/lib/cell/index.js +0 -17
  68. package/lib/cell/props.js +0 -32
  69. package/lib/cell/style/index.js +0 -4
  70. package/lib/cell/style/less.js +0 -4
  71. package/lib/checkbox/Checkbox.js +0 -232
  72. package/lib/checkbox/CheckboxSfc.css +0 -0
  73. package/lib/checkbox/CheckboxSfc.less +0 -0
  74. package/lib/checkbox/checkbox.css +0 -1
  75. package/lib/checkbox/checkbox.less +0 -78
  76. package/lib/checkbox/index.js +0 -17
  77. package/lib/checkbox/props.js +0 -56
  78. package/lib/checkbox/provide.js +0 -23
  79. package/lib/checkbox/style/index.js +0 -5
  80. package/lib/checkbox/style/less.js +0 -5
  81. package/lib/checkbox-group/CheckboxGroup.js +0 -181
  82. package/lib/checkbox-group/CheckboxGroupSfc.css +0 -0
  83. package/lib/checkbox-group/CheckboxGroupSfc.less +0 -0
  84. package/lib/checkbox-group/checkboxGroup.css +0 -1
  85. package/lib/checkbox-group/checkboxGroup.less +0 -12
  86. package/lib/checkbox-group/index.js +0 -17
  87. package/lib/checkbox-group/props.js +0 -38
  88. package/lib/checkbox-group/provide.js +0 -27
  89. package/lib/checkbox-group/style/index.js +0 -4
  90. package/lib/checkbox-group/style/less.js +0 -4
  91. package/lib/chip/Chip.js +0 -95
  92. package/lib/chip/ChipSfc.css +0 -0
  93. package/lib/chip/ChipSfc.less +0 -0
  94. package/lib/chip/chip.css +0 -1
  95. package/lib/chip/chip.less +0 -182
  96. package/lib/chip/index.js +0 -17
  97. package/lib/chip/props.js +0 -56
  98. package/lib/chip/style/index.js +0 -4
  99. package/lib/chip/style/less.js +0 -4
  100. package/lib/col/Col.js +0 -68
  101. package/lib/col/ColSfc.css +0 -0
  102. package/lib/col/ColSfc.less +0 -0
  103. package/lib/col/col.css +0 -1
  104. package/lib/col/col.less +0 -17
  105. package/lib/col/index.js +0 -17
  106. package/lib/col/props.js +0 -18
  107. package/lib/col/provide.js +0 -28
  108. package/lib/col/style/index.js +0 -3
  109. package/lib/col/style/less.js +0 -3
  110. package/lib/collapse/Collapse.js +0 -126
  111. package/lib/collapse/CollapseSfc.css +0 -1
  112. package/lib/collapse/CollapseSfc.less +0 -1
  113. package/lib/collapse/index.js +0 -17
  114. package/lib/collapse/props.js +0 -24
  115. package/lib/collapse/provide.js +0 -27
  116. package/lib/collapse/style/index.js +0 -3
  117. package/lib/collapse/style/less.js +0 -3
  118. package/lib/collapse-item/CollapseItem.js +0 -155
  119. package/lib/collapse-item/CollapseItemSfc.css +0 -0
  120. package/lib/collapse-item/CollapseItemSfc.less +0 -0
  121. package/lib/collapse-item/collapseItem.css +0 -1
  122. package/lib/collapse-item/collapseItem.less +0 -105
  123. package/lib/collapse-item/index.js +0 -17
  124. package/lib/collapse-item/props.js +0 -21
  125. package/lib/collapse-item/provide.js +0 -28
  126. package/lib/collapse-item/style/index.js +0 -4
  127. package/lib/collapse-item/style/less.js +0 -4
  128. package/lib/context/index.js +0 -20
  129. package/lib/context/lock.js +0 -107
  130. package/lib/context/style/index.js +0 -0
  131. package/lib/context/style/less.js +0 -0
  132. package/lib/context/zIndex.js +0 -25
  133. package/lib/countdown/Countdown.js +0 -119
  134. package/lib/countdown/CountdownSfc.css +0 -0
  135. package/lib/countdown/CountdownSfc.less +0 -0
  136. package/lib/countdown/index.js +0 -17
  137. package/lib/countdown/props.js +0 -25
  138. package/lib/countdown/style/index.js +0 -2
  139. package/lib/countdown/style/less.js +0 -2
  140. package/lib/counter/Counter.js +0 -387
  141. package/lib/counter/CounterSfc.css +0 -0
  142. package/lib/counter/CounterSfc.less +0 -0
  143. package/lib/counter/counter.css +0 -1
  144. package/lib/counter/counter.less +0 -85
  145. package/lib/counter/index.js +0 -17
  146. package/lib/counter/props.js +0 -98
  147. package/lib/counter/provide.js +0 -3
  148. package/lib/counter/style/index.js +0 -7
  149. package/lib/counter/style/less.js +0 -7
  150. package/lib/date-picker/DatePicker.js +0 -469
  151. package/lib/date-picker/DatePickerSfc.css +0 -0
  152. package/lib/date-picker/DatePickerSfc.less +0 -0
  153. package/lib/date-picker/date-picker.css +0 -1
  154. package/lib/date-picker/date-picker.less +0 -330
  155. package/lib/date-picker/index.js +0 -17
  156. package/lib/date-picker/props.js +0 -107
  157. package/lib/date-picker/src/day-picker-panel.js +0 -355
  158. package/lib/date-picker/src/month-picker-panel.js +0 -289
  159. package/lib/date-picker/src/panel-header.js +0 -152
  160. package/lib/date-picker/src/year-picker-panel.js +0 -112
  161. package/lib/date-picker/style/index.js +0 -5
  162. package/lib/date-picker/style/less.js +0 -5
  163. package/lib/dialog/Dialog.js +0 -214
  164. package/lib/dialog/DialogSfc.css +0 -0
  165. package/lib/dialog/DialogSfc.less +0 -0
  166. package/lib/dialog/dialog.css +0 -1
  167. package/lib/dialog/dialog.less +0 -77
  168. package/lib/dialog/index.js +0 -85
  169. package/lib/dialog/props.js +0 -73
  170. package/lib/dialog/style/index.js +0 -5
  171. package/lib/dialog/style/less.js +0 -5
  172. package/lib/divider/Divider.js +0 -88
  173. package/lib/divider/DividerSfc.css +0 -0
  174. package/lib/divider/DividerSfc.less +0 -0
  175. package/lib/divider/divider.css +0 -1
  176. package/lib/divider/divider.less +0 -79
  177. package/lib/divider/index.js +0 -17
  178. package/lib/divider/props.js +0 -25
  179. package/lib/divider/style/index.js +0 -3
  180. package/lib/divider/style/less.js +0 -3
  181. package/lib/form/Form.js +0 -77
  182. package/lib/form/FormSfc.css +0 -0
  183. package/lib/form/FormSfc.less +0 -0
  184. package/lib/form/index.js +0 -17
  185. package/lib/form/props.js +0 -15
  186. package/lib/form/provide.js +0 -33
  187. package/lib/form/style/index.js +0 -2
  188. package/lib/form/style/less.js +0 -2
  189. package/lib/form-details/FormDetails.js +0 -45
  190. package/lib/form-details/FormDetailsSfc.css +0 -0
  191. package/lib/form-details/FormDetailsSfc.less +0 -0
  192. package/lib/form-details/formDetails.css +0 -1
  193. package/lib/form-details/formDetails.less +0 -48
  194. package/lib/form-details/index.js +0 -17
  195. package/lib/form-details/props.js +0 -15
  196. package/lib/form-details/style/index.js +0 -3
  197. package/lib/form-details/style/less.js +0 -3
  198. package/lib/icon/Icon.js +0 -83
  199. package/lib/icon/IconSfc.css +0 -0
  200. package/lib/icon/IconSfc.less +0 -0
  201. package/lib/icon/icon.css +0 -1
  202. package/lib/icon/icon.less +0 -25
  203. package/lib/icon/index.js +0 -17
  204. package/lib/icon/props.js +0 -27
  205. package/lib/icon/style/index.js +0 -3
  206. package/lib/icon/style/less.js +0 -3
  207. package/lib/image/Image.js +0 -113
  208. package/lib/image/ImageSfc.css +0 -0
  209. package/lib/image/ImageSfc.less +0 -0
  210. package/lib/image/image.css +0 -1
  211. package/lib/image/image.less +0 -9
  212. package/lib/image/index.js +0 -17
  213. package/lib/image/props.js +0 -60
  214. package/lib/image/style/index.js +0 -4
  215. package/lib/image/style/less.js +0 -4
  216. package/lib/image-preview/ImagePreview.js +0 -369
  217. package/lib/image-preview/ImagePreviewSfc.css +0 -0
  218. package/lib/image-preview/ImagePreviewSfc.less +0 -0
  219. package/lib/image-preview/imagePreview.css +0 -1
  220. package/lib/image-preview/imagePreview.less +0 -66
  221. package/lib/image-preview/index.js +0 -74
  222. package/lib/image-preview/props.js +0 -40
  223. package/lib/image-preview/style/index.js +0 -7
  224. package/lib/image-preview/style/less.js +0 -7
  225. package/lib/index-anchor/IndexAnchor.js +0 -99
  226. package/lib/index-anchor/IndexAnchorSfc.css +0 -1
  227. package/lib/index-anchor/IndexAnchorSfc.less +0 -1
  228. package/lib/index-anchor/index.js +0 -17
  229. package/lib/index-anchor/props.js +0 -10
  230. package/lib/index-anchor/provide.js +0 -28
  231. package/lib/index-anchor/style/index.js +0 -3
  232. package/lib/index-anchor/style/less.js +0 -3
  233. package/lib/index-bar/IndexBar.js +0 -186
  234. package/lib/index-bar/IndexBarSfc.css +0 -0
  235. package/lib/index-bar/IndexBarSfc.less +0 -0
  236. package/lib/index-bar/index.js +0 -17
  237. package/lib/index-bar/indexBar.css +0 -1
  238. package/lib/index-bar/indexBar.less +0 -43
  239. package/lib/index-bar/props.js +0 -40
  240. package/lib/index-bar/provide.js +0 -27
  241. package/lib/index-bar/style/index.js +0 -3
  242. package/lib/index-bar/style/less.js +0 -3
  243. package/lib/index.js +0 -195
  244. package/lib/input/Input.js +0 -304
  245. package/lib/input/InputSfc.css +0 -0
  246. package/lib/input/InputSfc.less +0 -0
  247. package/lib/input/index.js +0 -17
  248. package/lib/input/input.css +0 -1
  249. package/lib/input/input.less +0 -183
  250. package/lib/input/props.js +0 -96
  251. package/lib/input/provide.js +0 -3
  252. package/lib/input/style/index.js +0 -5
  253. package/lib/input/style/less.js +0 -5
  254. package/lib/lazy/index.js +0 -247
  255. package/lib/lazy/style/index.js +0 -0
  256. package/lib/lazy/style/less.js +0 -0
  257. package/lib/less.js +0 -62
  258. package/lib/list/List.js +0 -157
  259. package/lib/list/ListSfc.css +0 -0
  260. package/lib/list/ListSfc.less +0 -0
  261. package/lib/list/index.js +0 -17
  262. package/lib/list/list.css +0 -1
  263. package/lib/list/list.less +0 -63
  264. package/lib/list/props.js +0 -45
  265. package/lib/list/style/index.js +0 -5
  266. package/lib/list/style/less.js +0 -5
  267. package/lib/loading/Loading.js +0 -93
  268. package/lib/loading/LoadingSfc.css +0 -0
  269. package/lib/loading/LoadingSfc.less +0 -0
  270. package/lib/loading/index.js +0 -17
  271. package/lib/loading/loading.css +0 -1
  272. package/lib/loading/loading.less +0 -420
  273. package/lib/loading/props.js +0 -39
  274. package/lib/loading/style/index.js +0 -3
  275. package/lib/loading/style/less.js +0 -3
  276. package/lib/locale/en-US.js +0 -107
  277. package/lib/locale/index.js +0 -83
  278. package/lib/locale/style/index.js +0 -0
  279. package/lib/locale/style/less.js +0 -0
  280. package/lib/locale/zh-CN.js +0 -107
  281. package/lib/menu/Menu.js +0 -144
  282. package/lib/menu/MenuSfc.css +0 -0
  283. package/lib/menu/MenuSfc.less +0 -0
  284. package/lib/menu/index.js +0 -17
  285. package/lib/menu/menu.css +0 -1
  286. package/lib/menu/menu.less +0 -21
  287. package/lib/menu/props.js +0 -48
  288. package/lib/menu/style/index.js +0 -4
  289. package/lib/menu/style/less.js +0 -4
  290. package/lib/option/Option.js +0 -125
  291. package/lib/option/OptionSfc.css +0 -0
  292. package/lib/option/OptionSfc.less +0 -0
  293. package/lib/option/index.js +0 -17
  294. package/lib/option/option.css +0 -1
  295. package/lib/option/option.less +0 -37
  296. package/lib/option/props.js +0 -9
  297. package/lib/option/provide.js +0 -28
  298. package/lib/option/style/index.js +0 -6
  299. package/lib/option/style/less.js +0 -6
  300. package/lib/pagination/Pagination.js +0 -373
  301. package/lib/pagination/PaginationSfc.css +0 -0
  302. package/lib/pagination/PaginationSfc.less +0 -0
  303. package/lib/pagination/index.js +0 -17
  304. package/lib/pagination/pagination.css +0 -1
  305. package/lib/pagination/pagination.less +0 -178
  306. package/lib/pagination/porps.js +0 -48
  307. package/lib/pagination/style/index.js +0 -8
  308. package/lib/pagination/style/less.js +0 -8
  309. package/lib/picker/Picker.js +0 -446
  310. package/lib/picker/PickerSfc.css +0 -0
  311. package/lib/picker/PickerSfc.less +0 -0
  312. package/lib/picker/index.js +0 -98
  313. package/lib/picker/picker.css +0 -1
  314. package/lib/picker/picker.less +0 -103
  315. package/lib/picker/props.js +0 -68
  316. package/lib/picker/style/index.js +0 -5
  317. package/lib/picker/style/less.js +0 -5
  318. package/lib/popup/Popup.js +0 -121
  319. package/lib/popup/PopupSfc.css +0 -0
  320. package/lib/popup/PopupSfc.less +0 -0
  321. package/lib/popup/index.js +0 -17
  322. package/lib/popup/popup.css +0 -1
  323. package/lib/popup/popup.less +0 -125
  324. package/lib/popup/props.js +0 -67
  325. package/lib/popup/style/index.js +0 -3
  326. package/lib/popup/style/less.js +0 -3
  327. package/lib/progress/Progress.js +0 -154
  328. package/lib/progress/ProgressSfc.css +0 -0
  329. package/lib/progress/ProgressSfc.less +0 -0
  330. package/lib/progress/index.js +0 -17
  331. package/lib/progress/progress.css +0 -1
  332. package/lib/progress/progress.less +0 -98
  333. package/lib/progress/props.js +0 -61
  334. package/lib/progress/style/index.js +0 -3
  335. package/lib/progress/style/less.js +0 -3
  336. package/lib/pull-refresh/PullRefresh.js +0 -150
  337. package/lib/pull-refresh/PullRefreshSfc.css +0 -0
  338. package/lib/pull-refresh/PullRefreshSfc.less +0 -0
  339. package/lib/pull-refresh/index.js +0 -17
  340. package/lib/pull-refresh/props.js +0 -47
  341. package/lib/pull-refresh/pullRefresh.css +0 -1
  342. package/lib/pull-refresh/pullRefresh.less +0 -55
  343. package/lib/pull-refresh/style/index.js +0 -5
  344. package/lib/pull-refresh/style/less.js +0 -5
  345. package/lib/radio/Radio.js +0 -231
  346. package/lib/radio/RadioSfc.css +0 -0
  347. package/lib/radio/RadioSfc.less +0 -0
  348. package/lib/radio/index.js +0 -17
  349. package/lib/radio/props.js +0 -56
  350. package/lib/radio/provide.js +0 -23
  351. package/lib/radio/radio.css +0 -1
  352. package/lib/radio/radio.less +0 -78
  353. package/lib/radio/style/index.js +0 -6
  354. package/lib/radio/style/less.js +0 -6
  355. package/lib/radio-group/RadioGroup.js +0 -122
  356. package/lib/radio-group/RadioGroupSfc.css +0 -0
  357. package/lib/radio-group/RadioGroupSfc.less +0 -0
  358. package/lib/radio-group/index.js +0 -17
  359. package/lib/radio-group/props.js +0 -35
  360. package/lib/radio-group/provide.js +0 -27
  361. package/lib/radio-group/radioGroup.css +0 -1
  362. package/lib/radio-group/radioGroup.less +0 -12
  363. package/lib/radio-group/style/index.js +0 -4
  364. package/lib/radio-group/style/less.js +0 -4
  365. package/lib/rate/Rate.js +0 -235
  366. package/lib/rate/RateSfc.css +0 -0
  367. package/lib/rate/RateSfc.less +0 -0
  368. package/lib/rate/index.js +0 -17
  369. package/lib/rate/props.js +0 -69
  370. package/lib/rate/provide.js +0 -3
  371. package/lib/rate/rate.css +0 -1
  372. package/lib/rate/rate.less +0 -35
  373. package/lib/rate/style/index.js +0 -6
  374. package/lib/rate/style/less.js +0 -6
  375. package/lib/ripple/index.js +0 -187
  376. package/lib/ripple/ripple.css +0 -1
  377. package/lib/ripple/ripple.less +0 -17
  378. package/lib/ripple/style/index.js +0 -2
  379. package/lib/ripple/style/less.js +0 -2
  380. package/lib/row/Row.js +0 -102
  381. package/lib/row/RowSfc.css +0 -0
  382. package/lib/row/RowSfc.less +0 -0
  383. package/lib/row/index.js +0 -17
  384. package/lib/row/props.js +0 -33
  385. package/lib/row/provide.js +0 -27
  386. package/lib/row/row.css +0 -1
  387. package/lib/row/row.less +0 -4
  388. package/lib/row/style/index.js +0 -3
  389. package/lib/row/style/less.js +0 -3
  390. package/lib/select/Select.js +0 -492
  391. package/lib/select/SelectSfc.css +0 -0
  392. package/lib/select/SelectSfc.less +0 -0
  393. package/lib/select/index.js +0 -17
  394. package/lib/select/props.js +0 -93
  395. package/lib/select/provide.js +0 -27
  396. package/lib/select/select.css +0 -1
  397. package/lib/select/select.less +0 -181
  398. package/lib/select/style/index.js +0 -7
  399. package/lib/select/style/less.js +0 -7
  400. package/lib/skeleton/Skeleton.js +0 -134
  401. package/lib/skeleton/SkeletonSfc.css +0 -0
  402. package/lib/skeleton/SkeletonSfc.less +0 -0
  403. package/lib/skeleton/index.js +0 -17
  404. package/lib/skeleton/props.js +0 -44
  405. package/lib/skeleton/skeleton.css +0 -1
  406. package/lib/skeleton/skeleton.less +0 -138
  407. package/lib/skeleton/style/index.js +0 -3
  408. package/lib/skeleton/style/less.js +0 -3
  409. package/lib/slider/Slider.js +0 -386
  410. package/lib/slider/SliderSfc.css +0 -0
  411. package/lib/slider/SliderSfc.less +0 -0
  412. package/lib/slider/index.js +0 -17
  413. package/lib/slider/props.js +0 -77
  414. package/lib/slider/provide.js +0 -3
  415. package/lib/slider/slider.css +0 -1
  416. package/lib/slider/slider.less +0 -146
  417. package/lib/slider/style/index.js +0 -4
  418. package/lib/slider/style/less.js +0 -4
  419. package/lib/snackbar/Snackbar.js +0 -70
  420. package/lib/snackbar/SnackbarSfc.css +0 -0
  421. package/lib/snackbar/SnackbarSfc.less +0 -0
  422. package/lib/snackbar/core.js +0 -146
  423. package/lib/snackbar/coreSfc.css +0 -0
  424. package/lib/snackbar/coreSfc.less +0 -0
  425. package/lib/snackbar/index.js +0 -232
  426. package/lib/snackbar/props.js +0 -103
  427. package/lib/snackbar/snackbar.css +0 -1
  428. package/lib/snackbar/snackbar.less +0 -135
  429. package/lib/snackbar/style/index.js +0 -8
  430. package/lib/snackbar/style/less.js +0 -8
  431. package/lib/space/Space.js +0 -99
  432. package/lib/space/index.js +0 -17
  433. package/lib/space/props.js +0 -49
  434. package/lib/space/space.css +0 -1
  435. package/lib/space/space.less +0 -6
  436. package/lib/space/style/index.js +0 -2
  437. package/lib/space/style/less.js +0 -2
  438. package/lib/step/Step.js +0 -156
  439. package/lib/step/StepSfc.css +0 -0
  440. package/lib/step/StepSfc.less +0 -0
  441. package/lib/step/index.js +0 -17
  442. package/lib/step/props.js +0 -17
  443. package/lib/step/provide.js +0 -28
  444. package/lib/step/step.css +0 -1
  445. package/lib/step/step.less +0 -145
  446. package/lib/step/style/index.js +0 -4
  447. package/lib/step/style/less.js +0 -4
  448. package/lib/steps/Steps.js +0 -56
  449. package/lib/steps/StepsSfc.css +0 -1
  450. package/lib/steps/StepsSfc.less +0 -1
  451. package/lib/steps/index.js +0 -17
  452. package/lib/steps/props.js +0 -30
  453. package/lib/steps/provide.js +0 -27
  454. package/lib/steps/style/index.js +0 -2
  455. package/lib/steps/style/less.js +0 -2
  456. package/lib/sticky/Sticky.js +0 -145
  457. package/lib/sticky/StickySfc.css +0 -0
  458. package/lib/sticky/StickySfc.less +0 -0
  459. package/lib/sticky/index.js +0 -17
  460. package/lib/sticky/props.js +0 -26
  461. package/lib/sticky/sticky.css +0 -1
  462. package/lib/sticky/sticky.less +0 -8
  463. package/lib/sticky/style/index.js +0 -3
  464. package/lib/sticky/style/less.js +0 -3
  465. package/lib/style-provider/StyleProvider.js +0 -30
  466. package/lib/style-provider/StyleProviderSfc.css +0 -0
  467. package/lib/style-provider/StyleProviderSfc.less +0 -0
  468. package/lib/style-provider/index.js +0 -37
  469. package/lib/style-provider/style/index.js +0 -2
  470. package/lib/style-provider/style/less.js +0 -2
  471. package/lib/style.js +0 -62
  472. package/lib/styles/common.css +0 -1
  473. package/lib/styles/common.less +0 -67
  474. package/lib/styles/elevation.css +0 -1
  475. package/lib/styles/elevation.less +0 -126
  476. package/lib/styles/style/index.js +0 -0
  477. package/lib/styles/style/less.js +0 -0
  478. package/lib/styles/var.css +0 -0
  479. package/lib/styles/var.less +0 -30
  480. package/lib/swipe/Swipe.js +0 -408
  481. package/lib/swipe/SwipeSfc.css +0 -0
  482. package/lib/swipe/SwipeSfc.less +0 -0
  483. package/lib/swipe/index.js +0 -17
  484. package/lib/swipe/props.js +0 -40
  485. package/lib/swipe/provide.js +0 -27
  486. package/lib/swipe/style/index.js +0 -3
  487. package/lib/swipe/style/less.js +0 -3
  488. package/lib/swipe/swipe.css +0 -1
  489. package/lib/swipe/swipe.less +0 -59
  490. package/lib/swipe-item/SwipeItem.js +0 -58
  491. package/lib/swipe-item/SwipeItemSfc.css +0 -0
  492. package/lib/swipe-item/SwipeItemSfc.less +0 -0
  493. package/lib/swipe-item/index.js +0 -17
  494. package/lib/swipe-item/provide.js +0 -28
  495. package/lib/swipe-item/style/index.js +0 -3
  496. package/lib/swipe-item/style/less.js +0 -3
  497. package/lib/swipe-item/swipeItem.css +0 -1
  498. package/lib/swipe-item/swipeItem.less +0 -5
  499. package/lib/switch/Switch.js +0 -185
  500. package/lib/switch/SwitchSfc.css +0 -0
  501. package/lib/switch/SwitchSfc.less +0 -0
  502. package/lib/switch/index.js +0 -17
  503. package/lib/switch/props.js +0 -57
  504. package/lib/switch/provide.js +0 -3
  505. package/lib/switch/style/index.js +0 -7
  506. package/lib/switch/style/less.js +0 -7
  507. package/lib/switch/switch.css +0 -1
  508. package/lib/switch/switch.less +0 -80
  509. package/lib/tab/Tab.js +0 -116
  510. package/lib/tab/TabSfc.css +0 -0
  511. package/lib/tab/TabSfc.less +0 -0
  512. package/lib/tab/index.js +0 -17
  513. package/lib/tab/props.js +0 -17
  514. package/lib/tab/provide.js +0 -28
  515. package/lib/tab/style/index.js +0 -4
  516. package/lib/tab/style/less.js +0 -4
  517. package/lib/tab/tab.css +0 -1
  518. package/lib/tab/tab.less +0 -46
  519. package/lib/tab-item/TabItem.js +0 -74
  520. package/lib/tab-item/TabItemSfc.css +0 -0
  521. package/lib/tab-item/TabItemSfc.less +0 -0
  522. package/lib/tab-item/index.js +0 -17
  523. package/lib/tab-item/props.js +0 -10
  524. package/lib/tab-item/provide.js +0 -28
  525. package/lib/tab-item/style/index.js +0 -4
  526. package/lib/tab-item/style/less.js +0 -4
  527. package/lib/tab-item/tabItem.css +0 -1
  528. package/lib/tab-item/tabItem.less +0 -6
  529. package/lib/table/Table.js +0 -53
  530. package/lib/table/TableSfc.css +0 -0
  531. package/lib/table/TableSfc.less +0 -0
  532. package/lib/table/index.js +0 -17
  533. package/lib/table/style/index.js +0 -4
  534. package/lib/table/style/less.js +0 -4
  535. package/lib/table/table.css +0 -1
  536. package/lib/table/table.less +0 -110
  537. package/lib/tabs/Tabs.js +0 -208
  538. package/lib/tabs/TabsSfc.css +0 -0
  539. package/lib/tabs/TabsSfc.less +0 -0
  540. package/lib/tabs/index.js +0 -17
  541. package/lib/tabs/props.js +0 -70
  542. package/lib/tabs/provide.js +0 -27
  543. package/lib/tabs/style/index.js +0 -5
  544. package/lib/tabs/style/less.js +0 -5
  545. package/lib/tabs/tabs.css +0 -1
  546. package/lib/tabs/tabs.less +0 -93
  547. package/lib/tabs-items/TabsItems.js +0 -107
  548. package/lib/tabs-items/TabsItemsSfc.css +0 -0
  549. package/lib/tabs-items/TabsItemsSfc.less +0 -0
  550. package/lib/tabs-items/index.js +0 -17
  551. package/lib/tabs-items/props.js +0 -22
  552. package/lib/tabs-items/provide.js +0 -27
  553. package/lib/tabs-items/style/index.js +0 -3
  554. package/lib/tabs-items/style/less.js +0 -3
  555. package/lib/themes/dark/actionSheet.js +0 -10
  556. package/lib/themes/dark/badge.js +0 -8
  557. package/lib/themes/dark/button.js +0 -8
  558. package/lib/themes/dark/card.js +0 -11
  559. package/lib/themes/dark/cell.js +0 -9
  560. package/lib/themes/dark/checkbox.js +0 -8
  561. package/lib/themes/dark/chip.js +0 -8
  562. package/lib/themes/dark/collapse.js +0 -10
  563. package/lib/themes/dark/datePicker.js +0 -10
  564. package/lib/themes/dark/dialog.js +0 -9
  565. package/lib/themes/dark/divider.js +0 -9
  566. package/lib/themes/dark/index.js +0 -75
  567. package/lib/themes/dark/input.js +0 -9
  568. package/lib/themes/dark/pagination.js +0 -12
  569. package/lib/themes/dark/picker.js +0 -10
  570. package/lib/themes/dark/popup.js +0 -8
  571. package/lib/themes/dark/pullRefresh.js +0 -8
  572. package/lib/themes/dark/radio.js +0 -8
  573. package/lib/themes/dark/select.js +0 -10
  574. package/lib/themes/dark/skeleton.js +0 -11
  575. package/lib/themes/dark/steps.js +0 -10
  576. package/lib/themes/dark/switch.js +0 -9
  577. package/lib/themes/dark/tab-item.js +0 -8
  578. package/lib/themes/dark/tab.js +0 -8
  579. package/lib/themes/dark/table.js +0 -12
  580. package/lib/themes/dark/tabs.js +0 -8
  581. package/lib/themes/dark/timePicker.js +0 -10
  582. package/lib/themes/dark/uploader.js +0 -12
  583. package/lib/themes/style/index.js +0 -0
  584. package/lib/themes/style/less.js +0 -0
  585. package/lib/time-picker/TimePicker.js +0 -413
  586. package/lib/time-picker/TimePickerSfc.css +0 -0
  587. package/lib/time-picker/TimePickerSfc.less +0 -0
  588. package/lib/time-picker/clock.js +0 -347
  589. package/lib/time-picker/index.js +0 -17
  590. package/lib/time-picker/props.js +0 -59
  591. package/lib/time-picker/style/index.js +0 -4
  592. package/lib/time-picker/style/less.js +0 -4
  593. package/lib/time-picker/timePicker.css +0 -1
  594. package/lib/time-picker/timePicker.less +0 -236
  595. package/lib/time-picker/utils.js +0 -148
  596. package/lib/uploader/Uploader.js +0 -433
  597. package/lib/uploader/UploaderSfc.css +0 -0
  598. package/lib/uploader/UploaderSfc.less +0 -0
  599. package/lib/uploader/index.js +0 -17
  600. package/lib/uploader/props.js +0 -74
  601. package/lib/uploader/provide.js +0 -3
  602. package/lib/uploader/style/index.js +0 -8
  603. package/lib/uploader/style/less.js +0 -8
  604. package/lib/uploader/uploader.css +0 -1
  605. package/lib/uploader/uploader.less +0 -219
  606. package/lib/utils/components.js +0 -276
  607. package/lib/utils/elements.js +0 -261
  608. package/lib/utils/jest.js +0 -252
  609. package/lib/utils/shared.js +0 -212
  610. package/lib/utils/style/index.js +0 -0
  611. package/lib/utils/style/less.js +0 -0
@@ -1,304 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.render = render;
5
- exports.default = void 0;
6
-
7
- var _formDetails = _interopRequireDefault(require("../form-details"));
8
-
9
- var _icon = _interopRequireDefault(require("../icon"));
10
-
11
- var _vue = require("vue");
12
-
13
- var _props = require("./props");
14
-
15
- var _shared = require("../utils/shared");
16
-
17
- var _components = require("../utils/components");
18
-
19
- var _provide = require("../form/provide");
20
-
21
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
-
23
- var _withScopeId = n => ((0, _vue.pushScopeId)(""), n = n(), (0, _vue.popScopeId)(), n);
24
-
25
- var _hoisted_1 = {
26
- key: 0,
27
- class: "var-input__autocomplete"
28
- };
29
- var _hoisted_2 = ["for"];
30
-
31
- function render(_ctx, _cache) {
32
- var _component_var_icon = (0, _vue.resolveComponent)("var-icon");
33
-
34
- var _component_var_form_details = (0, _vue.resolveComponent)("var-form-details");
35
-
36
- return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
37
- class: (0, _vue.normalizeClass)(["var-input var--box", [_ctx.disabled ? 'var-input--disabled' : null]]),
38
- onClick: _cache[0] || (_cache[0] = (...args) => _ctx.handleClick && _ctx.handleClick(...args))
39
- }, [(0, _vue.createElementVNode)("div", {
40
- class: (0, _vue.normalizeClass)(["var-input__controller", [_ctx.isFocus ? 'var-input--focus' : null, _ctx.errorMessage ? 'var-input--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-input--disabled' : null]]),
41
- style: (0, _vue.normalizeStyle)({
42
- color: !_ctx.errorMessage ? _ctx.isFocus ? _ctx.focusColor : _ctx.blurColor : undefined
43
- })
44
- }, [(0, _vue.createElementVNode)("div", {
45
- class: (0, _vue.normalizeClass)(["var-input__icon", [!_ctx.hint ? 'var-input--non-hint' : null]])
46
- }, [(0, _vue.renderSlot)(_ctx.$slots, "prepend-icon")], 2
47
- /* CLASS */
48
- ), (0, _vue.createElementVNode)("div", {
49
- class: (0, _vue.normalizeClass)(["var-input__wrap", [!_ctx.hint ? 'var-input--non-hint' : null]])
50
- }, [_ctx.type === 'password' ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("input", _hoisted_1)) : (0, _vue.createCommentVNode)("v-if", true), ((0, _vue.openBlock)(), (0, _vue.createBlock)((0, _vue.resolveDynamicComponent)(_ctx.textarea ? 'textarea' : 'input'), {
51
- class: (0, _vue.normalizeClass)(["var-input__input", [_ctx.formDisabled || _ctx.disabled ? 'var-input--disabled' : null, _ctx.textarea ? 'var-input--textarea' : null, _ctx.errorMessage ? 'var-input--caret-error' : null]]),
52
- ref: "el",
53
- autocomplete: "new-password",
54
- id: _ctx.id,
55
- disabled: _ctx.formDisabled || _ctx.disabled || _ctx.formReadonly || _ctx.readonly,
56
- type: _ctx.type,
57
- value: _ctx.modelValue,
58
- maxlength: _ctx.maxlength,
59
- rows: _ctx.rows,
60
- style: (0, _vue.normalizeStyle)({
61
- color: _ctx.textColor,
62
- caretColor: !_ctx.errorMessage ? _ctx.focusColor : null,
63
- resize: _ctx.resize ? 'vertical' : 'none'
64
- }),
65
- onFocus: _ctx.handleFocus,
66
- onBlur: _ctx.handleBlur,
67
- onInput: _ctx.handleInput,
68
- onChange: _ctx.handleChange
69
- }, null, 8
70
- /* PROPS */
71
- , ["id", "disabled", "type", "value", "maxlength", "rows", "class", "style", "onFocus", "onBlur", "onInput", "onChange"])), (0, _vue.createElementVNode)("label", {
72
- class: (0, _vue.normalizeClass)([_ctx.textarea ? 'var-input__textarea-placeholder' : 'var-input__placeholder', _ctx.computePlaceholderState(), !_ctx.hint ? 'var-input--placeholder-non-hint' : null]),
73
- for: _ctx.id
74
- }, (0, _vue.toDisplayString)(_ctx.placeholder), 11
75
- /* TEXT, CLASS, PROPS */
76
- , _hoisted_2)], 2
77
- /* CLASS */
78
- ), (0, _vue.createElementVNode)("div", {
79
- class: (0, _vue.normalizeClass)(["var-input__icon", [!_ctx.hint ? 'var-input--non-hint' : null]])
80
- }, [(0, _vue.renderSlot)(_ctx.$slots, "append-icon", {}, () => [_ctx.clearable && !_ctx.isEmpty(_ctx.modelValue) ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_var_icon, {
81
- key: 0,
82
- class: "var-input__clear-icon",
83
- "var-input-cover": "",
84
- name: "close-circle",
85
- size: "14px",
86
- onClick: _ctx.handleClear
87
- }, null, 8
88
- /* PROPS */
89
- , ["onClick"])) : (0, _vue.createCommentVNode)("v-if", true)])], 2
90
- /* CLASS */
91
- )], 6
92
- /* CLASS, STYLE */
93
- ), _ctx.line ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
94
- key: 0,
95
- class: (0, _vue.normalizeClass)(["var-input__line", [_ctx.formDisabled || _ctx.disabled ? 'var-input--line-disabled' : null, _ctx.errorMessage ? 'var-input--line-error' : null]]),
96
- style: (0, _vue.normalizeStyle)({
97
- background: !_ctx.errorMessage ? _ctx.blurColor : undefined
98
- })
99
- }, [(0, _vue.createElementVNode)("div", {
100
- class: (0, _vue.normalizeClass)(["var-input__dot", [_ctx.isFocus ? 'var-input--spread' : null, _ctx.formDisabled || _ctx.disabled ? 'var-input--line-disabled' : null, _ctx.errorMessage ? 'var-input--line-error' : null]]),
101
- style: (0, _vue.normalizeStyle)({
102
- background: !_ctx.errorMessage ? _ctx.focusColor : undefined
103
- })
104
- }, null, 6
105
- /* CLASS, STYLE */
106
- )], 6
107
- /* CLASS, STYLE */
108
- )) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createVNode)(_component_var_form_details, {
109
- "error-message": _ctx.errorMessage,
110
- "maxlength-text": _ctx.maxlengthText
111
- }, null, 8
112
- /* PROPS */
113
- , ["error-message", "maxlength-text"])], 2
114
- /* CLASS */
115
- );
116
- }
117
-
118
- var _default = (0, _vue.defineComponent)({
119
- render,
120
- name: 'VarInput',
121
- components: {
122
- VarIcon: _icon.default,
123
- VarFormDetails: _formDetails.default
124
- },
125
- props: _props.props,
126
-
127
- setup(props) {
128
- var id = (0, _vue.ref)("var-input-" + (0, _vue.getCurrentInstance)().uid);
129
- var el = (0, _vue.ref)(null);
130
- var isFocus = (0, _vue.ref)(false);
131
- var maxlengthText = (0, _vue.computed)(() => {
132
- var {
133
- maxlength,
134
- modelValue
135
- } = props;
136
-
137
- if (!maxlength) {
138
- return '';
139
- }
140
-
141
- if ((0, _shared.isEmpty)(modelValue)) {
142
- return "0 / " + maxlength;
143
- }
144
-
145
- return String(modelValue).length + "/" + maxlength;
146
- });
147
- var {
148
- bindForm,
149
- form
150
- } = (0, _provide.useForm)();
151
- var {
152
- errorMessage,
153
- validateWithTrigger: vt,
154
- validate: v,
155
- // expose
156
- resetValidation
157
- } = (0, _components.useValidation)();
158
-
159
- var validateWithTrigger = trigger => {
160
- (0, _vue.nextTick)(() => {
161
- var {
162
- validateTrigger,
163
- rules,
164
- modelValue
165
- } = props;
166
- vt(validateTrigger, trigger, rules, modelValue);
167
- });
168
- };
169
-
170
- var computePlaceholderState = () => {
171
- var {
172
- hint,
173
- modelValue
174
- } = props;
175
-
176
- if (!hint && !(0, _shared.isEmpty)(modelValue)) {
177
- return 'var-input--placeholder-hidden';
178
- }
179
-
180
- if (hint && (!(0, _shared.isEmpty)(modelValue) || isFocus.value)) {
181
- return 'var-input--placeholder-hint';
182
- }
183
- };
184
-
185
- var handleFocus = e => {
186
- isFocus.value = true;
187
- props.onFocus == null ? void 0 : props.onFocus(e);
188
- validateWithTrigger('onFocus');
189
- };
190
-
191
- var handleBlur = e => {
192
- isFocus.value = false;
193
- props.onBlur == null ? void 0 : props.onBlur(e);
194
- validateWithTrigger('onBlur');
195
- };
196
-
197
- var handleInput = e => {
198
- var _props$onUpdateModel;
199
-
200
- var {
201
- value
202
- } = e.target;
203
- (_props$onUpdateModel = props['onUpdate:modelValue']) == null ? void 0 : _props$onUpdateModel.call(props, value);
204
- props.onInput == null ? void 0 : props.onInput(value, e);
205
- validateWithTrigger('onInput');
206
- };
207
-
208
- var handleChange = e => {
209
- var {
210
- value
211
- } = e.target;
212
- props.onChange == null ? void 0 : props.onChange(value, e);
213
- validateWithTrigger('onChange');
214
- };
215
-
216
- var handleClear = () => {
217
- var _props$onUpdateModel2;
218
-
219
- var {
220
- disabled,
221
- readonly,
222
- clearable,
223
- onClear
224
- } = props;
225
-
226
- if (form != null && form.disabled.value || form != null && form.readonly.value || disabled || readonly || !clearable) {
227
- return;
228
- }
229
-
230
- (_props$onUpdateModel2 = props['onUpdate:modelValue']) == null ? void 0 : _props$onUpdateModel2.call(props, '');
231
- onClear == null ? void 0 : onClear('');
232
- validateWithTrigger('onClear');
233
- };
234
-
235
- var handleClick = e => {
236
- var {
237
- disabled,
238
- onClick
239
- } = props;
240
-
241
- if (form != null && form.disabled.value || disabled) {
242
- return;
243
- }
244
-
245
- onClick == null ? void 0 : onClick(e);
246
- validateWithTrigger('onClick');
247
- }; // expose
248
-
249
-
250
- var reset = () => {
251
- var _props$onUpdateModel3;
252
-
253
- (_props$onUpdateModel3 = props['onUpdate:modelValue']) == null ? void 0 : _props$onUpdateModel3.call(props, '');
254
- resetValidation();
255
- }; // expose
256
-
257
-
258
- var validate = () => v(props.rules, props.modelValue); // expose
259
-
260
-
261
- var focus = () => {
262
- ;
263
- el.value.focus();
264
- }; // expose
265
-
266
-
267
- var blur = () => {
268
- ;
269
- el.value.blur();
270
- };
271
-
272
- var inputProvider = {
273
- reset,
274
- validate,
275
- resetValidation
276
- };
277
- bindForm == null ? void 0 : bindForm(inputProvider);
278
- return {
279
- el,
280
- id,
281
- isFocus,
282
- errorMessage,
283
- maxlengthText,
284
- formDisabled: form == null ? void 0 : form.disabled,
285
- formReadonly: form == null ? void 0 : form.readonly,
286
- isEmpty: _shared.isEmpty,
287
- computePlaceholderState,
288
- handleFocus,
289
- handleBlur,
290
- handleInput,
291
- handleChange,
292
- handleClear,
293
- handleClick,
294
- validate,
295
- resetValidation,
296
- reset,
297
- focus,
298
- blur
299
- };
300
- }
301
-
302
- });
303
-
304
- exports.default = _default;
File without changes
File without changes
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.default = exports._InputComponent = void 0;
5
-
6
- var _Input = _interopRequireDefault(require("./Input.js"));
7
-
8
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
9
-
10
- _Input.default.install = function (app) {
11
- app.component(_Input.default.name, _Input.default);
12
- };
13
-
14
- var _InputComponent = _Input.default;
15
- exports._InputComponent = _InputComponent;
16
- var _default = _Input.default;
17
- exports.default = _default;
@@ -1 +0,0 @@
1
- :root { --input-input-text-color: #555; --input-error-color: var(--color-danger); --input-blur-color: #888; --input-focus-color: var(--color-primary); --input-placeholder-size: 16px; --input-textarea-height: auto; --input-textarea-padding-top: 8px; --input-icon-padding: 16px 0 0; --input-icon-size: 20px; --input-line-size: 1px; --input-line-spread-size: 2px; --input-disabled-color: var(--color-text-disabled);}.var-input-footer-margin-enter-from,.var-input-footer-margin-leave-to { opacity: 0; margin-top: 2px !important;}.var-input-footer-margin-enter-active,.var-input-footer-margin-leave-active { transition: 0.2s all var(--cubic-bezier);}.var-input { width: 100%; color: var(--input-input-text-color);}.var-input__controller { width: 100%; display: flex; position: relative;}.var-input__wrap { position: relative; flex-grow: 1; display: flex; flex-direction: column; padding-top: var(--input-placeholder-size);}.var-input__icon { display: flex; align-items: center; padding: var(--input-icon-padding); font-size: 20px;}.var-input__placeholder { position: absolute; top: 50%; left: 0; transform-origin: left; transition-property: top, transform; transition-duration: 0.3s; transform: translate(0, calc(-50% + var(--input-placeholder-size) / 2)) scale(1); font-size: var(--input-placeholder-size); color: var(--input-blur-color);}.var-input__textarea-placeholder { position: absolute; top: 0; left: 0; transform-origin: left; transition: transform 0.3s; transform: translate(0, calc(var(--input-textarea-padding-top) + var(--input-placeholder-size))) scale(1); font-size: var(--input-placeholder-size); color: var(--input-blur-color);}.var-input__autocomplete { width: 0; height: 0; padding: 0; border: none; outline: none; font-size: 0;}.var-input__input { width: 100%; height: 32px; padding: 0; outline: none; border: none; background: transparent; color: var(--input-input-text-color); caret-color: var(--input-focus-color); font: inherit;}.var-input__line { width: 100%; height: var(--input-line-size); background: var(--input-blur-color);}.var-input__dot { width: 100%; height: var(--input-line-spread-size); background: var(--input-focus-color); transform: scaleX(0); transform-origin: center; transition: transform 0.3s var(--cubic-bezier);}.var-input__clear-icon[var-input-cover] { display: flex; margin-left: 4px;}.var-input--textarea { padding-top: var(--input-textarea-padding-top); height: var(--input-textarea-height);}.var-input--placeholder-hint { top: 0; transform: translate(0, 0) scale(0.75);}.var-input--placeholder-non-hint { top: 50%; transform: translate(0, -50%) scale(1);}.var-input--non-hint { padding-top: 0;}.var-input--placeholder-hidden { visibility: hidden;}.var-input--focus { color: var(--input-focus-color);}.var-input--spread { transform: scaleX(1);}.var-input--disabled { -webkit-text-fill-color: var(--input-disabled-color); opacity: 1; color: var(--input-disabled-color);}.var-input--error { color: var(--input-error-color);}.var-input--line-disabled { background: var(--input-disabled-color);}.var-input--line-error { background: var(--input-error-color);}.var-input--caret-error { caret-color: var(--input-error-color);}
@@ -1,183 +0,0 @@
1
- @input-input-text-color: #555;
2
- @input-error-color: var(--color-danger);
3
- @input-blur-color: #888;
4
- @input-focus-color: var(--color-primary);
5
- @input-placeholder-size: 16px;
6
- @input-textarea-height: auto;
7
- @input-textarea-padding-top: 8px;
8
- @input-icon-padding: 16px 0 0;
9
- @input-icon-size: 20px;
10
- @input-line-size: 1px;
11
- @input-line-spread-size: 2px;
12
- @input-disabled-color: var(--color-text-disabled);
13
-
14
- :root {
15
- --input-input-text-color: @input-input-text-color;
16
- --input-error-color: @input-error-color;
17
- --input-blur-color: @input-blur-color;
18
- --input-focus-color: @input-focus-color;
19
- --input-placeholder-size: @input-placeholder-size;
20
- --input-textarea-height: @input-textarea-height;
21
- --input-textarea-padding-top: @input-textarea-padding-top;
22
- --input-icon-padding: @input-icon-padding;
23
- --input-icon-size: @input-icon-size;
24
- --input-line-size: @input-line-size;
25
- --input-line-spread-size: @input-line-spread-size;
26
- --input-disabled-color: @input-disabled-color;
27
- }
28
-
29
- .var {
30
- &-input-footer-margin-enter-from,
31
- &-input-footer-margin-leave-to {
32
- opacity: 0;
33
- margin-top: 2px !important;
34
- }
35
-
36
- &-input-footer-margin-enter-active,
37
- &-input-footer-margin-leave-active {
38
- transition: 0.2s all var(--cubic-bezier);
39
- }
40
- }
41
-
42
- .var-input {
43
- width: 100%;
44
- color: var(--input-input-text-color);
45
-
46
- &__controller {
47
- width: 100%;
48
- display: flex;
49
- position: relative;
50
- }
51
-
52
- &__wrap {
53
- position: relative;
54
- flex-grow: 1;
55
- display: flex;
56
- flex-direction: column;
57
- padding-top: var(--input-placeholder-size);
58
- }
59
-
60
- &__icon {
61
- display: flex;
62
- align-items: center;
63
- padding: var(--input-icon-padding);
64
- font-size: 20px;
65
- }
66
-
67
- &__placeholder {
68
- position: absolute;
69
- top: 50%;
70
- left: 0;
71
- transform-origin: left;
72
- transition-property: top, transform;
73
- transition-duration: 0.3s;
74
- transform: translate(0, calc(-50% + var(--input-placeholder-size) / 2)) scale(1);
75
- font-size: var(--input-placeholder-size);
76
- color: var(--input-blur-color);
77
- }
78
-
79
- &__textarea-placeholder {
80
- position: absolute;
81
- top: 0;
82
- left: 0;
83
- transform-origin: left;
84
- transition: transform 0.3s;
85
- transform: translate(0, calc(var(--input-textarea-padding-top) + var(--input-placeholder-size))) scale(1);
86
- font-size: var(--input-placeholder-size);
87
- color: var(--input-blur-color);
88
- }
89
-
90
- &__autocomplete {
91
- width: 0;
92
- height: 0;
93
- padding: 0;
94
- border: none;
95
- outline: none;
96
- font-size: 0;
97
- }
98
-
99
- &__input {
100
- width: 100%;
101
- height: 32px;
102
- padding: 0;
103
- outline: none;
104
- border: none;
105
- background: transparent;
106
- color: var(--input-input-text-color);
107
- caret-color: var(--input-focus-color);
108
- font: inherit;
109
- }
110
-
111
- &__line {
112
- width: 100%;
113
- height: var(--input-line-size);
114
- background: var(--input-blur-color);
115
- }
116
-
117
- &__dot {
118
- width: 100%;
119
- height: var(--input-line-spread-size);
120
- background: var(--input-focus-color);
121
- transform: scaleX(0);
122
- transform-origin: center;
123
- transition: transform 0.3s var(--cubic-bezier);
124
- }
125
-
126
- &__clear-icon[var-input-cover] {
127
- display: flex;
128
- margin-left: 4px;
129
- }
130
-
131
- &--textarea {
132
- padding-top: var(--input-textarea-padding-top);
133
- height: var(--input-textarea-height);
134
- }
135
-
136
- &--placeholder-hint {
137
- top: 0;
138
- transform: translate(0, 0) scale(0.75);
139
- }
140
-
141
- &--placeholder-non-hint {
142
- top: 50%;
143
- transform: translate(0, -50%) scale(1);
144
- }
145
-
146
- &--non-hint {
147
- padding-top: 0;
148
- }
149
-
150
- &--placeholder-hidden {
151
- visibility: hidden;
152
- }
153
-
154
- &--focus {
155
- color: var(--input-focus-color);
156
- }
157
-
158
- &--spread {
159
- transform: scaleX(1);
160
- }
161
-
162
- &--disabled {
163
- -webkit-text-fill-color: var(--input-disabled-color);
164
- opacity: 1;
165
- color: var(--input-disabled-color);
166
- }
167
-
168
- &--error {
169
- color: var(--input-error-color);
170
- }
171
-
172
- &--line-disabled {
173
- background: var(--input-disabled-color);
174
- }
175
-
176
- &--line-error {
177
- background: var(--input-error-color);
178
- }
179
-
180
- &--caret-error {
181
- caret-color: var(--input-error-color);
182
- }
183
- }
@@ -1,96 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
4
- exports.typeValidator = typeValidator;
5
- exports.props = void 0;
6
-
7
- function typeValidator(type) {
8
- return ['text', 'password', 'number'].includes(type);
9
- }
10
-
11
- var props = {
12
- modelValue: {
13
- type: String
14
- },
15
- type: {
16
- type: String,
17
- default: 'text',
18
- validator: typeValidator
19
- },
20
- textarea: {
21
- type: Boolean,
22
- default: false
23
- },
24
- rows: {
25
- type: [String, Number],
26
- default: 8
27
- },
28
- placeholder: {
29
- type: String
30
- },
31
- line: {
32
- type: Boolean,
33
- default: true
34
- },
35
- hint: {
36
- type: Boolean,
37
- default: true
38
- },
39
- textColor: {
40
- type: String
41
- },
42
- focusColor: {
43
- type: String
44
- },
45
- blurColor: {
46
- type: String
47
- },
48
- maxlength: {
49
- type: [String, Number]
50
- },
51
- disabled: {
52
- type: Boolean,
53
- default: false
54
- },
55
- readonly: {
56
- type: Boolean,
57
- default: false
58
- },
59
- clearable: {
60
- type: Boolean,
61
- default: false
62
- },
63
- resize: {
64
- type: Boolean,
65
- default: false
66
- },
67
- validateTrigger: {
68
- type: Array,
69
- default: () => ['onInput', 'onClear']
70
- },
71
- rules: {
72
- type: Array
73
- },
74
- onFocus: {
75
- type: Function
76
- },
77
- onBlur: {
78
- type: Function
79
- },
80
- onClick: {
81
- type: Function
82
- },
83
- onClear: {
84
- type: Function
85
- },
86
- onInput: {
87
- type: Function
88
- },
89
- onChange: {
90
- type: Function
91
- },
92
- 'onUpdate:modelValue': {
93
- type: Function
94
- }
95
- };
96
- exports.props = props;
@@ -1,3 +0,0 @@
1
- "use strict";
2
-
3
- exports.__esModule = true;
@@ -1,5 +0,0 @@
1
- require('../../styles/common.css')
2
- require('../../icon/icon.css')
3
- require('../../form-details/formDetails.css')
4
- require('../input.css')
5
- require('../InputSfc.css')
@@ -1,5 +0,0 @@
1
- require('../../styles/common.less')
2
- require('../../icon/icon.less')
3
- require('../../form-details/formDetails.less')
4
- require('../input.less')
5
- require('../InputSfc.less')