vue-devui 0.1.3 → 1.0.0-alpha.10

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 (428) hide show
  1. package/README.md +161 -59
  2. package/alert/index.d.ts +7 -0
  3. package/alert/index.es.js +204 -0
  4. package/alert/index.umd.js +1 -0
  5. package/alert/package.json +7 -0
  6. package/alert/style.css +1 -0
  7. package/auto-complete/index.d.ts +7 -0
  8. package/auto-complete/index.es.js +9051 -0
  9. package/auto-complete/index.umd.js +40 -0
  10. package/auto-complete/package.json +7 -0
  11. package/auto-complete/style.css +1 -0
  12. package/avatar/index.d.ts +7 -0
  13. package/avatar/index.es.js +308 -0
  14. package/avatar/index.umd.js +1 -0
  15. package/avatar/package.json +7 -0
  16. package/avatar/style.css +1 -0
  17. package/badge/index.d.ts +7 -0
  18. package/badge/index.es.js +120 -0
  19. package/badge/index.umd.js +1 -0
  20. package/badge/package.json +7 -0
  21. package/badge/style.css +1 -0
  22. package/button/index.d.ts +7 -0
  23. package/button/index.es.js +5964 -0
  24. package/button/index.umd.js +27 -0
  25. package/button/package.json +7 -0
  26. package/button/style.css +1 -0
  27. package/card/index.d.ts +7 -0
  28. package/card/index.es.js +89 -0
  29. package/card/index.umd.js +1 -0
  30. package/card/package.json +7 -0
  31. package/card/style.css +1 -0
  32. package/checkbox/index.d.ts +7 -0
  33. package/checkbox/index.es.js +8207 -0
  34. package/checkbox/index.umd.js +38 -0
  35. package/checkbox/package.json +7 -0
  36. package/checkbox/style.css +1 -0
  37. package/collapse/index.d.ts +7 -0
  38. package/collapse/index.es.js +195 -0
  39. package/collapse/index.umd.js +1 -0
  40. package/collapse/package.json +7 -0
  41. package/collapse/style.css +1 -0
  42. package/countdown/index.d.ts +7 -0
  43. package/countdown/index.es.js +217 -0
  44. package/countdown/index.umd.js +1 -0
  45. package/countdown/package.json +7 -0
  46. package/countdown/style.css +1 -0
  47. package/date-picker-pro/index.d.ts +7 -0
  48. package/date-picker-pro/index.es.js +12031 -0
  49. package/date-picker-pro/index.umd.js +38 -0
  50. package/date-picker-pro/package.json +7 -0
  51. package/date-picker-pro/style.css +1 -0
  52. package/drawer/index.d.ts +7 -0
  53. package/drawer/index.es.js +248 -0
  54. package/drawer/index.umd.js +1 -0
  55. package/drawer/package.json +7 -0
  56. package/drawer/style.css +1 -0
  57. package/dropdown/index.d.ts +7 -0
  58. package/dropdown/index.es.js +743 -0
  59. package/dropdown/index.umd.js +1 -0
  60. package/dropdown/package.json +7 -0
  61. package/dropdown/style.css +1 -0
  62. package/editable-select/index.d.ts +7 -0
  63. package/editable-select/index.es.js +991 -0
  64. package/editable-select/index.umd.js +1 -0
  65. package/editable-select/package.json +7 -0
  66. package/editable-select/style.css +1 -0
  67. package/form/index.d.ts +7 -0
  68. package/form/index.es.js +7751 -0
  69. package/form/index.umd.js +38 -0
  70. package/form/package.json +7 -0
  71. package/form/style.css +1 -0
  72. package/fullscreen/index.d.ts +7 -0
  73. package/fullscreen/index.es.js +166 -0
  74. package/fullscreen/index.umd.js +1 -0
  75. package/fullscreen/package.json +7 -0
  76. package/fullscreen/style.css +1 -0
  77. package/grid/index.d.ts +7 -0
  78. package/grid/index.es.js +271 -0
  79. package/grid/index.umd.js +1 -0
  80. package/grid/package.json +7 -0
  81. package/grid/style.css +1 -0
  82. package/icon/index.d.ts +7 -0
  83. package/icon/index.es.js +218 -0
  84. package/icon/index.umd.js +1 -0
  85. package/icon/package.json +7 -0
  86. package/icon/style.css +1 -0
  87. package/image-preview/index.d.ts +7 -0
  88. package/image-preview/index.es.js +511 -0
  89. package/image-preview/index.umd.js +1 -0
  90. package/image-preview/package.json +7 -0
  91. package/image-preview/style.css +1 -0
  92. package/index.d.ts +7 -0
  93. package/input/index.d.ts +7 -0
  94. package/input/index.es.js +8311 -0
  95. package/input/index.umd.js +38 -0
  96. package/input/package.json +7 -0
  97. package/input/style.css +1 -0
  98. package/input-number/index.d.ts +7 -0
  99. package/input-number/index.es.js +308 -0
  100. package/input-number/index.umd.js +1 -0
  101. package/input-number/package.json +7 -0
  102. package/input-number/style.css +1 -0
  103. package/layout/index.d.ts +7 -0
  104. package/layout/index.es.js +115 -0
  105. package/layout/index.umd.js +1 -0
  106. package/layout/package.json +7 -0
  107. package/layout/style.css +1 -0
  108. package/loading/index.d.ts +7 -0
  109. package/loading/index.es.js +272 -0
  110. package/loading/index.umd.js +1 -0
  111. package/loading/package.json +7 -0
  112. package/loading/style.css +1 -0
  113. package/message/index.d.ts +7 -0
  114. package/message/index.es.js +534 -0
  115. package/message/index.umd.js +1 -0
  116. package/message/package.json +7 -0
  117. package/message/style.css +1 -0
  118. package/modal/index.d.ts +7 -0
  119. package/modal/index.es.js +741 -0
  120. package/modal/index.umd.js +1 -0
  121. package/modal/package.json +7 -0
  122. package/modal/style.css +1 -0
  123. package/notification/index.d.ts +7 -0
  124. package/notification/index.es.js +528 -0
  125. package/notification/index.umd.js +1 -0
  126. package/notification/package.json +7 -0
  127. package/notification/style.css +1 -0
  128. package/nuxt/components/Alert.js +3 -0
  129. package/nuxt/components/Aside.js +3 -0
  130. package/nuxt/components/AutoComplete.js +3 -0
  131. package/nuxt/components/Avatar.js +3 -0
  132. package/nuxt/components/Badge.js +3 -0
  133. package/nuxt/components/Button.js +3 -0
  134. package/nuxt/components/ButtonGroup.js +3 -0
  135. package/nuxt/components/Card.js +3 -0
  136. package/nuxt/components/Checkbox.js +3 -0
  137. package/nuxt/components/CheckboxButton.js +3 -0
  138. package/nuxt/components/CheckboxGroup.js +3 -0
  139. package/nuxt/components/Col.js +3 -0
  140. package/nuxt/components/Collapse.js +3 -0
  141. package/nuxt/components/CollapseItem.js +3 -0
  142. package/nuxt/components/Column.js +3 -0
  143. package/nuxt/components/Content.js +3 -0
  144. package/nuxt/components/Countdown.js +3 -0
  145. package/nuxt/components/DRangeDatePickerPro.js +3 -0
  146. package/nuxt/components/DatePickerPro.js +3 -0
  147. package/nuxt/components/Drawer.js +3 -0
  148. package/nuxt/components/DrawerService.js +3 -0
  149. package/nuxt/components/Dropdown.js +3 -0
  150. package/nuxt/components/DropdownMenu.js +3 -0
  151. package/nuxt/components/DropdownPropsKey.js +3 -0
  152. package/nuxt/components/EditableSelect.js +3 -0
  153. package/nuxt/components/FORM_ITEM_TOKEN.js +3 -0
  154. package/nuxt/components/FORM_TOKEN.js +3 -0
  155. package/nuxt/components/FixedOverlay.js +3 -0
  156. package/nuxt/components/FlexibleOverlay.js +3 -0
  157. package/nuxt/components/Footer.js +3 -0
  158. package/nuxt/components/Form.js +3 -0
  159. package/nuxt/components/FormItem.js +3 -0
  160. package/nuxt/components/FormOperation.js +3 -0
  161. package/nuxt/components/Fullscreen.js +3 -0
  162. package/nuxt/components/Header.js +3 -0
  163. package/nuxt/components/IFileOptions.js +3 -0
  164. package/nuxt/components/IUploadOptions.js +3 -0
  165. package/nuxt/components/Icon.js +3 -0
  166. package/nuxt/components/IconGroup.js +3 -0
  167. package/nuxt/components/ImagePreviewService.js +3 -0
  168. package/nuxt/components/Input.js +3 -0
  169. package/nuxt/components/InputNumber.js +3 -0
  170. package/nuxt/components/LABEL_DATA.js +3 -0
  171. package/nuxt/components/Layout.js +3 -0
  172. package/nuxt/components/Loading.js +3 -0
  173. package/nuxt/components/LoadingOptions.js +3 -0
  174. package/nuxt/components/LoadingService.js +3 -0
  175. package/nuxt/components/Message.js +3 -0
  176. package/nuxt/components/Modal.js +3 -0
  177. package/nuxt/components/Notification.js +3 -0
  178. package/nuxt/components/NotificationService.js +3 -0
  179. package/nuxt/components/Option.js +3 -0
  180. package/nuxt/components/OptionGroup.js +3 -0
  181. package/nuxt/components/Pagination.js +3 -0
  182. package/nuxt/components/Panel.js +3 -0
  183. package/nuxt/components/PanelBody.js +3 -0
  184. package/nuxt/components/PanelFooter.js +3 -0
  185. package/nuxt/components/PanelHeader.js +3 -0
  186. package/nuxt/components/Popover.js +3 -0
  187. package/nuxt/components/Progress.js +3 -0
  188. package/nuxt/components/Radio.js +3 -0
  189. package/nuxt/components/RadioButton.js +3 -0
  190. package/nuxt/components/RadioGroup.js +3 -0
  191. package/nuxt/components/Rate.js +3 -0
  192. package/nuxt/components/Result.js +3 -0
  193. package/nuxt/components/Row.js +3 -0
  194. package/nuxt/components/Search.js +3 -0
  195. package/nuxt/components/Select.js +3 -0
  196. package/nuxt/components/Skeleton.js +3 -0
  197. package/nuxt/components/SkeletonItem.js +3 -0
  198. package/nuxt/components/Slider.js +3 -0
  199. package/nuxt/components/Splitter.js +3 -0
  200. package/nuxt/components/Statistic.js +3 -0
  201. package/nuxt/components/Status.js +3 -0
  202. package/nuxt/components/Step.js +3 -0
  203. package/nuxt/components/Steps.js +3 -0
  204. package/nuxt/components/Switch.js +3 -0
  205. package/nuxt/components/TABLE_TOKEN.js +3 -0
  206. package/nuxt/components/Tab.js +3 -0
  207. package/nuxt/components/Table.js +3 -0
  208. package/nuxt/components/Tabs.js +3 -0
  209. package/nuxt/components/Tag.js +3 -0
  210. package/nuxt/components/Textarea.js +3 -0
  211. package/nuxt/components/TimePicker.js +3 -0
  212. package/nuxt/components/TimeSelect.js +3 -0
  213. package/nuxt/components/Timeline.js +3 -0
  214. package/nuxt/components/TimelineItem.js +3 -0
  215. package/nuxt/components/Tooltip.js +3 -0
  216. package/nuxt/components/Tree.js +3 -0
  217. package/nuxt/components/Upload.js +3 -0
  218. package/nuxt/components/UploadStatus.js +3 -0
  219. package/nuxt/components/alertProps.js +3 -0
  220. package/nuxt/components/animationInjectionKey.js +3 -0
  221. package/nuxt/components/autoCompleteProps.js +3 -0
  222. package/nuxt/components/avatarProps.js +3 -0
  223. package/nuxt/components/badgeProps.js +3 -0
  224. package/nuxt/components/buttonGroupInjectionKey.js +3 -0
  225. package/nuxt/components/buttonGroupProps.js +3 -0
  226. package/nuxt/components/buttonProps.js +3 -0
  227. package/nuxt/components/cardProps.js +3 -0
  228. package/nuxt/components/checkboxGroupInjectionKey.js +3 -0
  229. package/nuxt/components/checkboxGroupProps.js +3 -0
  230. package/nuxt/components/checkboxProps.js +3 -0
  231. package/nuxt/components/colProps.js +3 -0
  232. package/nuxt/components/colPropsBaseClass.js +3 -0
  233. package/nuxt/components/colPropsBaseStyle.js +3 -0
  234. package/nuxt/components/collapseItemProps.js +3 -0
  235. package/nuxt/components/collapseProps.js +3 -0
  236. package/nuxt/components/countdownProps.js +3 -0
  237. package/nuxt/components/datePickerProCommonProps.js +3 -0
  238. package/nuxt/components/datePickerProPanelProps.js +3 -0
  239. package/nuxt/components/datePickerProProps.js +3 -0
  240. package/nuxt/components/dropdownMenuProps.js +3 -0
  241. package/nuxt/components/editableSelectProps.js +3 -0
  242. package/nuxt/components/fixedOverlayProps.js +3 -0
  243. package/nuxt/components/flexibleOverlayProps.js +3 -0
  244. package/nuxt/components/formItemProps.js +3 -0
  245. package/nuxt/components/formProps.js +3 -0
  246. package/nuxt/components/fullscreenProps.js +3 -0
  247. package/nuxt/components/iconProps.js +3 -0
  248. package/nuxt/components/imagePreviewProps.js +3 -0
  249. package/nuxt/components/inputProps.js +3 -0
  250. package/nuxt/components/loadingProps.js +3 -0
  251. package/nuxt/components/messageProps.js +3 -0
  252. package/nuxt/components/modalProps.js +3 -0
  253. package/nuxt/components/notificationProps.js +3 -0
  254. package/nuxt/components/paginationProps.js +3 -0
  255. package/nuxt/components/panelProps.js +3 -0
  256. package/nuxt/components/popoverProps.js +3 -0
  257. package/nuxt/components/progressProps.js +3 -0
  258. package/nuxt/components/rateProps.js +3 -0
  259. package/nuxt/components/resultProps.js +3 -0
  260. package/nuxt/components/roundInjectionKey.js +3 -0
  261. package/nuxt/components/rowProps.js +3 -0
  262. package/nuxt/components/screenSizes.js +3 -0
  263. package/nuxt/components/searchProps.js +3 -0
  264. package/nuxt/components/skeletonItemProps.js +3 -0
  265. package/nuxt/components/skeletonProps.js +3 -0
  266. package/nuxt/components/sliderProps.js +3 -0
  267. package/nuxt/components/splitterProps.js +3 -0
  268. package/nuxt/components/statisticProps.js +3 -0
  269. package/nuxt/components/stepProps.js +3 -0
  270. package/nuxt/components/stepsProps.js +3 -0
  271. package/nuxt/components/svgIconProps.js +3 -0
  272. package/nuxt/components/switchProps.js +3 -0
  273. package/nuxt/components/tableProps.js +3 -0
  274. package/nuxt/components/tabsProps.js +3 -0
  275. package/nuxt/components/tagProps.js +3 -0
  276. package/nuxt/components/textareaProps.js +3 -0
  277. package/nuxt/components/timeAxisProps.js +3 -0
  278. package/nuxt/components/timerPickerPanelProps.js +3 -0
  279. package/nuxt/components/tooltipProps.js +3 -0
  280. package/nuxt/components/treeProps.js +3 -0
  281. package/nuxt/components/uploadProps.js +3 -0
  282. package/nuxt/index.js +13 -0
  283. package/overlay/index.d.ts +7 -0
  284. package/overlay/index.es.js +293 -0
  285. package/overlay/index.umd.js +1 -0
  286. package/overlay/package.json +7 -0
  287. package/overlay/style.css +1 -0
  288. package/package.json +17 -77
  289. package/pagination/index.d.ts +7 -0
  290. package/pagination/index.es.js +820 -0
  291. package/pagination/index.umd.js +1 -0
  292. package/pagination/package.json +7 -0
  293. package/pagination/style.css +1 -0
  294. package/panel/index.d.ts +7 -0
  295. package/panel/index.es.js +218 -0
  296. package/panel/index.umd.js +1 -0
  297. package/panel/package.json +7 -0
  298. package/panel/style.css +1 -0
  299. package/popover/index.d.ts +7 -0
  300. package/popover/index.es.js +6062 -0
  301. package/popover/index.umd.js +27 -0
  302. package/popover/package.json +7 -0
  303. package/popover/style.css +1 -0
  304. package/progress/index.d.ts +7 -0
  305. package/progress/index.es.js +207 -0
  306. package/progress/index.umd.js +3 -0
  307. package/progress/package.json +7 -0
  308. package/progress/style.css +1 -0
  309. package/radio/index.d.ts +7 -0
  310. package/radio/index.es.js +8056 -0
  311. package/radio/index.umd.js +38 -0
  312. package/radio/package.json +7 -0
  313. package/radio/style.css +1 -0
  314. package/rate/index.d.ts +7 -0
  315. package/rate/index.es.js +242 -0
  316. package/rate/index.umd.js +1 -0
  317. package/rate/package.json +7 -0
  318. package/rate/style.css +1 -0
  319. package/result/index.d.ts +7 -0
  320. package/result/index.es.js +248 -0
  321. package/result/index.umd.js +1 -0
  322. package/result/package.json +7 -0
  323. package/result/style.css +1 -0
  324. package/ripple/index.d.ts +7 -0
  325. package/ripple/index.es.js +173 -0
  326. package/ripple/index.umd.js +1 -0
  327. package/ripple/package.json +7 -0
  328. package/search/index.d.ts +7 -0
  329. package/search/index.es.js +8512 -0
  330. package/search/index.umd.js +38 -0
  331. package/search/package.json +7 -0
  332. package/search/style.css +1 -0
  333. package/select/index.d.ts +7 -0
  334. package/select/index.es.js +9423 -0
  335. package/select/index.umd.js +38 -0
  336. package/select/package.json +7 -0
  337. package/select/style.css +1 -0
  338. package/skeleton/index.d.ts +7 -0
  339. package/skeleton/index.es.js +145 -0
  340. package/skeleton/index.umd.js +1 -0
  341. package/skeleton/package.json +7 -0
  342. package/skeleton/style.css +1 -0
  343. package/slider/index.d.ts +7 -0
  344. package/slider/index.es.js +203 -0
  345. package/slider/index.umd.js +1 -0
  346. package/slider/package.json +7 -0
  347. package/slider/style.css +1 -0
  348. package/splitter/index.d.ts +7 -0
  349. package/splitter/index.es.js +6754 -0
  350. package/splitter/index.umd.js +27 -0
  351. package/splitter/package.json +7 -0
  352. package/splitter/style.css +1 -0
  353. package/statistic/index.d.ts +7 -0
  354. package/statistic/index.es.js +253 -0
  355. package/statistic/index.umd.js +1 -0
  356. package/statistic/package.json +7 -0
  357. package/statistic/style.css +1 -0
  358. package/status/index.d.ts +7 -0
  359. package/status/index.es.js +63 -0
  360. package/status/index.umd.js +1 -0
  361. package/status/package.json +7 -0
  362. package/status/style.css +1 -0
  363. package/steps/index.d.ts +7 -0
  364. package/steps/index.es.js +386 -0
  365. package/steps/index.umd.js +1 -0
  366. package/steps/package.json +7 -0
  367. package/steps/style.css +1 -0
  368. package/style.css +1 -1
  369. package/switch/index.d.ts +7 -0
  370. package/switch/index.es.js +7852 -0
  371. package/switch/index.umd.js +38 -0
  372. package/switch/package.json +7 -0
  373. package/switch/style.css +1 -0
  374. package/table/index.d.ts +7 -0
  375. package/table/index.es.js +11527 -0
  376. package/table/index.umd.js +38 -0
  377. package/table/package.json +7 -0
  378. package/table/style.css +1 -0
  379. package/tabs/index.d.ts +7 -0
  380. package/tabs/index.es.js +407 -0
  381. package/tabs/index.umd.js +1 -0
  382. package/tabs/package.json +7 -0
  383. package/tabs/style.css +1 -0
  384. package/tag/index.d.ts +7 -0
  385. package/tag/index.es.js +156 -0
  386. package/tag/index.umd.js +1 -0
  387. package/tag/package.json +7 -0
  388. package/tag/style.css +1 -0
  389. package/textarea/index.d.ts +7 -0
  390. package/textarea/index.es.js +7986 -0
  391. package/textarea/index.umd.js +46 -0
  392. package/textarea/package.json +7 -0
  393. package/textarea/style.css +1 -0
  394. package/theme/theme.scss +121 -0
  395. package/time-picker/index.d.ts +7 -0
  396. package/time-picker/index.es.js +9556 -0
  397. package/time-picker/index.umd.js +38 -0
  398. package/time-picker/package.json +7 -0
  399. package/time-picker/style.css +1 -0
  400. package/time-select/index.d.ts +7 -0
  401. package/time-select/index.es.js +9604 -0
  402. package/time-select/index.umd.js +38 -0
  403. package/time-select/package.json +7 -0
  404. package/time-select/style.css +1 -0
  405. package/timeline/index.d.ts +7 -0
  406. package/timeline/index.es.js +427 -0
  407. package/timeline/index.umd.js +1 -0
  408. package/timeline/package.json +7 -0
  409. package/timeline/style.css +1 -0
  410. package/tooltip/index.d.ts +7 -0
  411. package/tooltip/index.es.js +5900 -0
  412. package/tooltip/index.umd.js +27 -0
  413. package/tooltip/package.json +7 -0
  414. package/tooltip/style.css +1 -0
  415. package/tree/index.d.ts +7 -0
  416. package/tree/index.es.js +10336 -0
  417. package/tree/index.umd.js +38 -0
  418. package/tree/package.json +7 -0
  419. package/tree/style.css +1 -0
  420. package/upload/index.d.ts +7 -0
  421. package/upload/index.es.js +1398 -0
  422. package/upload/index.umd.js +1 -0
  423. package/upload/package.json +7 -0
  424. package/upload/style.css +1 -0
  425. package/vue-devui.es.js +27451 -1
  426. package/vue-devui.umd.js +50 -1
  427. package/favicon.ico +0 -0
  428. package/logo.svg +0 -30
@@ -0,0 +1,145 @@
1
+ import { toRefs, inject, computed, createVNode, defineComponent, provide } from "vue";
2
+ const skeletonItemProps = {
3
+ variant: {
4
+ type: String,
5
+ default: "square"
6
+ },
7
+ size: {
8
+ type: String,
9
+ default: "md"
10
+ }
11
+ };
12
+ const skeletonProps = {
13
+ rows: {
14
+ type: Number,
15
+ default: 3
16
+ },
17
+ round: {
18
+ type: Boolean,
19
+ default: false
20
+ },
21
+ loading: {
22
+ type: Boolean,
23
+ default: true
24
+ },
25
+ showAnimation: {
26
+ type: Boolean,
27
+ default: true
28
+ }
29
+ };
30
+ const roundInjectionKey = Symbol("round");
31
+ const animationInjectionKey = Symbol("showAnimation");
32
+ function createBem(namespace, element, modifier) {
33
+ let cls = namespace;
34
+ if (element) {
35
+ cls += `__${element}`;
36
+ }
37
+ if (modifier) {
38
+ cls += `--${modifier}`;
39
+ }
40
+ return cls;
41
+ }
42
+ function useNamespace(block, needDot = false) {
43
+ const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
44
+ const b = () => createBem(namespace);
45
+ const e = (element) => element ? createBem(namespace, element) : "";
46
+ const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
47
+ const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
48
+ return {
49
+ b,
50
+ e,
51
+ m,
52
+ em
53
+ };
54
+ }
55
+ function useSkeletonItem(props) {
56
+ const ns = useNamespace("skeleton-item");
57
+ const { variant, size } = toRefs(props);
58
+ const round = inject(roundInjectionKey, void 0);
59
+ const showAnimation = inject(animationInjectionKey, void 0);
60
+ const classes = computed(() => ({
61
+ [ns.b()]: true,
62
+ [ns.m(variant.value)]: true,
63
+ [ns.m(size.value)]: variant.value !== "square",
64
+ [ns.m("round")]: variant.value !== "circle" && Boolean(round == null ? void 0 : round.value),
65
+ [ns.m("animation")]: Boolean(showAnimation == null ? void 0 : showAnimation.value)
66
+ }));
67
+ return { classes };
68
+ }
69
+ function ImageIcon() {
70
+ return createVNode("svg", {
71
+ "width": "24px",
72
+ "height": "24px",
73
+ "viewBox": "0 0 24 24",
74
+ "version": "1.1",
75
+ "xmlns": "http://www.w3.org/2000/svg"
76
+ }, [createVNode("g", {
77
+ "stroke": "none",
78
+ "stroke-width": "1",
79
+ "fill": "none",
80
+ "fill-rule": "evenodd"
81
+ }, [createVNode("g", null, [createVNode("rect", {
82
+ "fill": "#d8d8d8",
83
+ "opacity": "0",
84
+ "x": "0",
85
+ "y": "0",
86
+ "width": "24",
87
+ "height": "24"
88
+ }, null), createVNode("path", {
89
+ "d": "M17.9783341,3.022 C19.5705758,3.022 20.8816065,4.27616494 20.9732206,5.84628917 L20.9783341,6.022 L20.9783341,15.4777069 L20.9783775,15.4946187 C20.9778434,15.509964 20.9768409,15.525296 20.9753698,15.5405914 L20.9783341,15.4777069 C20.9783341,15.8919205 20.6425477,16.2277069 20.2283341,16.2277069 C19.9841207,16.2277069 19.7671693,16.1109847 19.630224,15.9302845 L16.3835041,12.6846982 C15.9279377,12.2291319 15.2084078,12.1987608 14.7176463,12.593585 L14.6161642,12.6846982 L9.05907272,18.2417898 C8.76083183,18.5400306 8.28304152,18.5577535 7.96352506,18.2824274 C7.67269311,18.0318186 7.64008582,17.5928941 7.89069464,17.3020621 L7.9253008,17.2647549 L7.9253008,17.2647549 L13.5555041,11.6240381 C14.5846517,10.5948904 16.2263561,10.5520093 17.3065502,11.4953946 L17.4441642,11.6240381 L19.4783341,13.658 L19.4783341,6.022 C19.4783341,5.24761276 18.8784495,4.6021759 18.1219124,4.52892169 L17.9783341,4.522 L6.02133414,4.522 C5.24694691,4.522 4.60151004,5.12188468 4.52825583,5.87842174 L4.52133414,6.022 L4.52133414,17.978 C4.52133414,18.7529555 5.12086774,19.397891 5.87769393,19.4710842 L6.02133414,19.478 L17.9783341,19.478 C18.7530944,19.478 19.3982021,18.8786501 19.4714163,18.1216726 L19.4783341,17.978 C19.4783341,17.5637864 19.8141206,17.208 20.2283341,17.228 C20.6425477,17.228 20.9783341,17.5637864 20.9783341,17.978 C20.9783341,19.5709231 19.724442,20.881321 18.1540742,20.9728891 L17.9783341,20.978 L6.02133414,20.978 C4.42880954,20.978 3.11804157,19.7244922 3.02644657,18.1537812 L3.02133414,17.978 L3.02133414,6.022 C3.02133414,4.42975835 4.27549908,3.11872764 5.84562331,3.02711351 L6.02133414,3.022 L17.9783341,3.022 Z M8.99983414,7.7505 C9.6900477,7.7505 10.2498341,8.31028644 10.2498341,9.0005 C10.2498341,9.69071356 9.6900477,10.2505 8.99983414,10.3505 C8.30962058,10.2505 7.74983414,9.69071356 7.74983414,9.0005 C7.74983414,8.31028644 8.30962058,7.7505 8.99983414,7.7505 Z",
90
+ "fill": "#bfbfbf"
91
+ }, null)])])]);
92
+ }
93
+ var skeletonItem = "";
94
+ var SkeletonItem = defineComponent({
95
+ name: "DSkeletonItem",
96
+ props: skeletonItemProps,
97
+ setup(props) {
98
+ const {
99
+ variant
100
+ } = toRefs(props);
101
+ const {
102
+ classes
103
+ } = useSkeletonItem(props);
104
+ return () => createVNode("div", {
105
+ "class": classes.value
106
+ }, [variant.value === "image" && createVNode(ImageIcon, null, null)]);
107
+ }
108
+ });
109
+ var skeleton = "";
110
+ var Skeleton = defineComponent({
111
+ name: "DSkeleton",
112
+ props: skeletonProps,
113
+ setup(props, ctx) {
114
+ const ns = useNamespace("skeleton");
115
+ const {
116
+ loading,
117
+ rows,
118
+ showAnimation,
119
+ round
120
+ } = toRefs(props);
121
+ const paragraphs = computed(() => new Array(rows.value).fill(""));
122
+ provide(animationInjectionKey, showAnimation);
123
+ provide(roundInjectionKey, round);
124
+ return () => {
125
+ var _a, _b;
126
+ return loading.value ? ctx.slots.placeholder ? ctx.slots.placeholder() : createVNode("div", {
127
+ "class": ns.b()
128
+ }, [createVNode(SkeletonItem, {
129
+ "class": ns.e("title")
130
+ }, null), paragraphs.value.map(() => createVNode(SkeletonItem, {
131
+ "class": ns.e("paragraph")
132
+ }, null))]) : (_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a);
133
+ };
134
+ }
135
+ });
136
+ var index = {
137
+ title: "Skeleton \u9AA8\u67B6\u5C4F",
138
+ category: "\u6570\u636E\u5C55\u793A",
139
+ status: "100%",
140
+ install(app) {
141
+ app.component(Skeleton.name, Skeleton);
142
+ app.component(SkeletonItem.name, SkeletonItem);
143
+ }
144
+ };
145
+ export { Skeleton, SkeletonItem, animationInjectionKey, index as default, roundInjectionKey, skeletonItemProps, skeletonProps };
@@ -0,0 +1 @@
1
+ (function(l,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(l=typeof globalThis!="undefined"?globalThis:l||self,e(l.index={},l.Vue))})(this,function(l,e){"use strict";const C={variant:{type:String,default:"square"},size:{type:String,default:"md"}},y={rows:{type:Number,default:3},round:{type:Boolean,default:!1},loading:{type:Boolean,default:!0},showAnimation:{type:Boolean,default:!0}},m=Symbol("round"),f=Symbol("showAnimation");function d(o,n,t){let s=o;return n&&(s+=`__${n}`),t&&(s+=`--${t}`),s}function h(o,n=!1){const t=n?`.devui-${o}`:`devui-${o}`;return{b:()=>d(t),e:a=>a?d(t,a):"",m:a=>a?d(t,"",a):"",em:(a,u)=>a&&u?d(t,a,u):""}}function k(o){const n=h("skeleton-item"),{variant:t,size:s}=e.toRefs(o),i=e.inject(m,void 0),r=e.inject(f,void 0);return{classes:e.computed(()=>({[n.b()]:!0,[n.m(t.value)]:!0,[n.m(s.value)]:t.value!=="square",[n.m("round")]:t.value!=="circle"&&Boolean(i==null?void 0:i.value),[n.m("animation")]:Boolean(r==null?void 0:r.value)}))}}function v(){return e.createVNode("svg",{width:"24px",height:"24px",viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("g",null,[e.createVNode("rect",{fill:"#d8d8d8",opacity:"0",x:"0",y:"0",width:"24",height:"24"},null),e.createVNode("path",{d:"M17.9783341,3.022 C19.5705758,3.022 20.8816065,4.27616494 20.9732206,5.84628917 L20.9783341,6.022 L20.9783341,15.4777069 L20.9783775,15.4946187 C20.9778434,15.509964 20.9768409,15.525296 20.9753698,15.5405914 L20.9783341,15.4777069 C20.9783341,15.8919205 20.6425477,16.2277069 20.2283341,16.2277069 C19.9841207,16.2277069 19.7671693,16.1109847 19.630224,15.9302845 L16.3835041,12.6846982 C15.9279377,12.2291319 15.2084078,12.1987608 14.7176463,12.593585 L14.6161642,12.6846982 L9.05907272,18.2417898 C8.76083183,18.5400306 8.28304152,18.5577535 7.96352506,18.2824274 C7.67269311,18.0318186 7.64008582,17.5928941 7.89069464,17.3020621 L7.9253008,17.2647549 L7.9253008,17.2647549 L13.5555041,11.6240381 C14.5846517,10.5948904 16.2263561,10.5520093 17.3065502,11.4953946 L17.4441642,11.6240381 L19.4783341,13.658 L19.4783341,6.022 C19.4783341,5.24761276 18.8784495,4.6021759 18.1219124,4.52892169 L17.9783341,4.522 L6.02133414,4.522 C5.24694691,4.522 4.60151004,5.12188468 4.52825583,5.87842174 L4.52133414,6.022 L4.52133414,17.978 C4.52133414,18.7529555 5.12086774,19.397891 5.87769393,19.4710842 L6.02133414,19.478 L17.9783341,19.478 C18.7530944,19.478 19.3982021,18.8786501 19.4714163,18.1216726 L19.4783341,17.978 C19.4783341,17.5637864 19.8141206,17.208 20.2283341,17.228 C20.6425477,17.228 20.9783341,17.5637864 20.9783341,17.978 C20.9783341,19.5709231 19.724442,20.881321 18.1540742,20.9728891 L17.9783341,20.978 L6.02133414,20.978 C4.42880954,20.978 3.11804157,19.7244922 3.02644657,18.1537812 L3.02133414,17.978 L3.02133414,6.022 C3.02133414,4.42975835 4.27549908,3.11872764 5.84562331,3.02711351 L6.02133414,3.022 L17.9783341,3.022 Z M8.99983414,7.7505 C9.6900477,7.7505 10.2498341,8.31028644 10.2498341,9.0005 C10.2498341,9.69071356 9.6900477,10.2505 8.99983414,10.3505 C8.30962058,10.2505 7.74983414,9.69071356 7.74983414,9.0005 C7.74983414,8.31028644 8.30962058,7.7505 8.99983414,7.7505 Z",fill:"#bfbfbf"},null)])])])}var w="",c=e.defineComponent({name:"DSkeletonItem",props:C,setup(o){const{variant:n}=e.toRefs(o),{classes:t}=k(o);return()=>e.createVNode("div",{class:t.value},[n.value==="image"&&e.createVNode(v,null,null)])}}),I="",p=e.defineComponent({name:"DSkeleton",props:y,setup(o,n){const t=h("skeleton"),{loading:s,rows:i,showAnimation:r,round:L}=e.toRefs(o),a=e.computed(()=>new Array(i.value).fill(""));return e.provide(f,r),e.provide(m,L),()=>{var u,g;return s.value?n.slots.placeholder?n.slots.placeholder():e.createVNode("div",{class:t.b()},[e.createVNode(c,{class:t.e("title")},null),a.value.map(()=>e.createVNode(c,{class:t.e("paragraph")},null))]):(g=(u=n.slots).default)==null?void 0:g.call(u)}}}),S={title:"Skeleton \u9AA8\u67B6\u5C4F",category:"\u6570\u636E\u5C55\u793A",status:"100%",install(o){o.component(p.name,p),o.component(c.name,c)}};l.Skeleton=p,l.SkeletonItem=c,l.animationInjectionKey=f,l.default=S,l.roundInjectionKey=m,l.skeletonItemProps=C,l.skeletonProps=y,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "skeleton",
3
+ "version": "0.0.0",
4
+ "main": "index.umd.js",
5
+ "module": "index.es.js",
6
+ "style": "style.css"
7
+ }
@@ -0,0 +1 @@
1
+ .devui-skeleton-item{background-color:var(--devui-list-item-hover-bg, #f2f2f3)}.devui-skeleton-item--round{border-radius:var(--devui-border-radius, 4px)}.devui-skeleton-item--square{width:100%;height:16px}.devui-skeleton-item--circle{border-radius:50%}.devui-skeleton-item--circle.devui-skeleton-item--sm{width:20px;height:20px}.devui-skeleton-item--circle.devui-skeleton-item--md{width:40px;height:40px}.devui-skeleton-item--circle.devui-skeleton-item--lg{width:60px;height:60px}.devui-skeleton-item--image{display:flex;justify-content:center;align-items:center}.devui-skeleton-item--image svg{width:40%;height:40%}.devui-skeleton-item--image.devui-skeleton-item--sm{width:50px;height:50px}.devui-skeleton-item--image.devui-skeleton-item--md{width:100px;height:100px}.devui-skeleton-item--image.devui-skeleton-item--lg{width:200px;height:200px}.devui-skeleton-item--animation.devui-skeleton-item{background:linear-gradient(100deg,rgba(255,255,255,0) 40%,rgba(255,255,255,.5) 50%,rgba(255,255,255,0) 60%) var(--devui-list-item-hover-bg, #f2f2f3);background-size:200% 100%;background-position-x:180%;animation:2s skeletonLoading ease-in-out infinite}@keyframes skeletonLoading{to{background-position-x:-20%}}.devui-skeleton{width:100%}.devui-skeleton__paragraph{margin-bottom:12px}.devui-skeleton__paragraph:last-child{width:60%;margin-bottom:0}.devui-skeleton-item.devui-skeleton__title{width:40%;margin-bottom:16px}
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+ declare function install(app: App): void
3
+ declare const _default: {
4
+ install: typeof install;
5
+ version: string;
6
+ };
7
+ export default _default;
@@ -0,0 +1,203 @@
1
+ import { ref, watch, onMounted, defineComponent, computed, createVNode } from "vue";
2
+ const sliderProps = {
3
+ disabled: {
4
+ type: Boolean,
5
+ default: false
6
+ },
7
+ max: {
8
+ type: Number,
9
+ default: 100
10
+ },
11
+ min: {
12
+ type: Number,
13
+ default: 0
14
+ },
15
+ modelValue: {
16
+ type: Number,
17
+ default: 0
18
+ },
19
+ step: {
20
+ type: Number,
21
+ default: 1
22
+ },
23
+ tipsRenderer: {
24
+ type: [Function, null],
25
+ default: () => (value) => `${value}`
26
+ }
27
+ };
28
+ function createBem(namespace, element, modifier) {
29
+ let cls = namespace;
30
+ if (element) {
31
+ cls += `__${element}`;
32
+ }
33
+ if (modifier) {
34
+ cls += `--${modifier}`;
35
+ }
36
+ return cls;
37
+ }
38
+ function useNamespace(block, needDot = false) {
39
+ const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
40
+ const b = () => createBem(namespace);
41
+ const e = (element) => element ? createBem(namespace, element) : "";
42
+ const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
43
+ const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
44
+ return {
45
+ b,
46
+ e,
47
+ m,
48
+ em
49
+ };
50
+ }
51
+ const isFunction = (value) => Object.prototype.toString.call(value) === "[object Function]";
52
+ function useSliderEvent(props, ctx) {
53
+ let isClick = true;
54
+ let startPosition = 0;
55
+ let startX = 0;
56
+ const sliderRunway = ref();
57
+ const currentValue = ref(Number(props.modelValue));
58
+ const currentPosition = ref(0);
59
+ const percentDisplay = ref("");
60
+ const popoverShow = ref(false);
61
+ const newPosition = ref(0);
62
+ function getSliderWidth() {
63
+ var _a;
64
+ return Boolean(sliderRunway.value) ? ((_a = sliderRunway.value) == null ? void 0 : _a.clientWidth) || 0 : 0;
65
+ }
66
+ function initCurrentPosition() {
67
+ const sliderWidth = getSliderWidth();
68
+ currentPosition.value = sliderWidth * (currentValue.value - props.min) / (props.max - props.min);
69
+ }
70
+ function setPosition(position) {
71
+ const clientWidth = getSliderWidth();
72
+ const sliderWidth = Math.round(clientWidth);
73
+ if (position < 0) {
74
+ position = 0;
75
+ }
76
+ const LengthPerStep = sliderWidth / ((props.max - props.min) / props.step);
77
+ const steps = Math.round(position / LengthPerStep);
78
+ const value = steps * LengthPerStep;
79
+ if (Math.round(value) >= sliderWidth) {
80
+ currentPosition.value = sliderWidth;
81
+ currentValue.value = props.max;
82
+ percentDisplay.value = "100%";
83
+ ctx.emit("update:modelValue", props.max);
84
+ return;
85
+ }
86
+ percentDisplay.value = Math.round(value * 100 / sliderWidth) + "%";
87
+ currentValue.value = Math.round(value * (props.max - props.min) / sliderWidth) + props.min;
88
+ currentPosition.value = position;
89
+ ctx.emit("update:modelValue", currentValue.value);
90
+ }
91
+ function dragStart(event) {
92
+ isClick = false;
93
+ startX = event.clientX;
94
+ startPosition = currentPosition.value;
95
+ newPosition.value = startPosition;
96
+ }
97
+ function onDragging(event) {
98
+ popoverShow.value = true;
99
+ const currentX = event.clientX;
100
+ const pxOffset = currentX - startX;
101
+ newPosition.value = startPosition + pxOffset;
102
+ setPosition(newPosition.value);
103
+ }
104
+ function onDragEnd() {
105
+ popoverShow.value = false;
106
+ setTimeout(() => {
107
+ isClick = true;
108
+ }, 100);
109
+ window.removeEventListener("mousemove", onDragging);
110
+ window.removeEventListener("mouseup", onDragEnd);
111
+ }
112
+ function handleButtonMousedown(event) {
113
+ popoverShow.value = true;
114
+ if (!props.disabled) {
115
+ event.preventDefault();
116
+ dragStart(event);
117
+ window.addEventListener("mousemove", onDragging);
118
+ window.addEventListener("mouseup", onDragEnd);
119
+ }
120
+ }
121
+ function handleRunwayMousedown(event) {
122
+ if (!props.disabled && isClick) {
123
+ const _e = event.target;
124
+ startX = _e.getBoundingClientRect().left;
125
+ const currentX = event.clientX;
126
+ setPosition(currentX - startX);
127
+ handleButtonMousedown(event);
128
+ }
129
+ }
130
+ watch(() => props.modelValue, () => {
131
+ currentValue.value = Number(props.modelValue);
132
+ if (currentValue.value > props.max) {
133
+ percentDisplay.value = "100%";
134
+ } else if (currentValue.value < props.min) {
135
+ percentDisplay.value = "0%";
136
+ } else {
137
+ percentDisplay.value = (currentValue.value - props.min) * 100 / (props.max - props.min) + "%";
138
+ }
139
+ initCurrentPosition();
140
+ }, { immediate: true });
141
+ onMounted(initCurrentPosition);
142
+ return { sliderRunway, popoverShow, percentDisplay, currentValue, handleRunwayMousedown, handleButtonMousedown };
143
+ }
144
+ var slider = "";
145
+ var Slider = defineComponent({
146
+ name: "DSlider",
147
+ props: sliderProps,
148
+ emits: ["update:modelValue"],
149
+ setup(props, ctx) {
150
+ const ns = useNamespace("slider");
151
+ const {
152
+ sliderRunway,
153
+ popoverShow,
154
+ percentDisplay,
155
+ currentValue,
156
+ handleRunwayMousedown,
157
+ handleButtonMousedown
158
+ } = useSliderEvent(props, ctx);
159
+ const disableClass = computed(() => {
160
+ return props.disabled ? " disabled" : "";
161
+ });
162
+ const tipsContent = computed(() => isFunction(props.tipsRenderer) ? props.tipsRenderer(currentValue.value) : "");
163
+ return () => createVNode("div", {
164
+ "class": ns.b()
165
+ }, [createVNode("div", {
166
+ "ref": sliderRunway,
167
+ "class": [ns.e("runway"), disableClass.value],
168
+ "onMousedown": handleRunwayMousedown,
169
+ "onMouseout": () => popoverShow.value = false
170
+ }, [createVNode("div", {
171
+ "class": [ns.e("bar"), disableClass.value],
172
+ "style": {
173
+ width: percentDisplay.value
174
+ }
175
+ }, null), createVNode("div", {
176
+ "class": [ns.e("button"), disableClass.value],
177
+ "style": {
178
+ left: percentDisplay.value
179
+ },
180
+ "onMousedown": handleButtonMousedown,
181
+ "onMouseenter": () => popoverShow.value = true,
182
+ "onMouseout": () => popoverShow.value = false
183
+ }, null), props.tipsRenderer === null ? null : popoverShow.value ? createVNode("div", {
184
+ "class": ns.e("popover"),
185
+ "style": {
186
+ left: percentDisplay.value
187
+ }
188
+ }, [createVNode("div", {
189
+ "class": ns.e("popover-arrow")
190
+ }, null), createVNode("div", {
191
+ "class": ns.e("popover-content")
192
+ }, [tipsContent.value])]) : null])]);
193
+ }
194
+ });
195
+ var index = {
196
+ title: "Slider \u6ED1\u5757",
197
+ category: "\u6570\u636E\u5F55\u5165",
198
+ status: "100%",
199
+ install(app) {
200
+ app.component(Slider.name, Slider);
201
+ }
202
+ };
203
+ export { Slider, index as default, sliderProps };
@@ -0,0 +1 @@
1
+ (function(s,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(s=typeof globalThis!="undefined"?globalThis:s||self,t(s.index={},s.Vue))})(this,function(s,t){"use strict";const M={disabled:{type:Boolean,default:!1},max:{type:Number,default:100},min:{type:Number,default:0},modelValue:{type:Number,default:0},step:{type:Number,default:1},tipsRenderer:{type:[Function,null],default:()=>e=>`${e}`}};function w(e,r,u){let i=e;return r&&(i+=`__${r}`),u&&(i+=`--${u}`),i}function E(e,r=!1){const u=r?`.devui-${e}`:`devui-${e}`;return{b:()=>w(u),e:l=>l?w(u,l):"",m:l=>l?w(u,"",l):"",em:(l,o)=>l&&o?w(u,l,o):""}}const D=e=>Object.prototype.toString.call(e)==="[object Function]";function X(e,r){let u=!0,i=0,d=0;const f=t.ref(),a=t.ref(Number(e.modelValue)),l=t.ref(0),o=t.ref(""),m=t.ref(!1),v=t.ref(0);function V(){var n;return Boolean(f.value)&&((n=f.value)==null?void 0:n.clientWidth)||0}function N(){const n=V();l.value=n*(a.value-e.min)/(e.max-e.min)}function g(n){const y=V(),c=Math.round(y);n<0&&(n=0);const R=c/((e.max-e.min)/e.step),b=Math.round(n/R)*R;if(Math.round(b)>=c){l.value=c,a.value=e.max,o.value="100%",r.emit("update:modelValue",e.max);return}o.value=Math.round(b*100/c)+"%",a.value=Math.round(b*(e.max-e.min)/c)+e.min,l.value=n,r.emit("update:modelValue",a.value)}function C(n){u=!1,d=n.clientX,i=l.value,v.value=i}function S(n){m.value=!0;const c=n.clientX-d;v.value=i+c,g(v.value)}function x(){m.value=!1,setTimeout(()=>{u=!0},100),window.removeEventListener("mousemove",S),window.removeEventListener("mouseup",x)}function P(n){m.value=!0,e.disabled||(n.preventDefault(),C(n),window.addEventListener("mousemove",S),window.addEventListener("mouseup",x))}function _(n){if(!e.disabled&&u){d=n.target.getBoundingClientRect().left;const c=n.clientX;g(c-d),P(n)}}return t.watch(()=>e.modelValue,()=>{a.value=Number(e.modelValue),a.value>e.max?o.value="100%":a.value<e.min?o.value="0%":o.value=(a.value-e.min)*100/(e.max-e.min)+"%",N()},{immediate:!0}),t.onMounted(N),{sliderRunway:f,popoverShow:m,percentDisplay:o,currentValue:a,handleRunwayMousedown:_,handleButtonMousedown:P}}var L="",h=t.defineComponent({name:"DSlider",props:M,emits:["update:modelValue"],setup(e,r){const u=E("slider"),{sliderRunway:i,popoverShow:d,percentDisplay:f,currentValue:a,handleRunwayMousedown:l,handleButtonMousedown:o}=X(e,r),m=t.computed(()=>e.disabled?" disabled":""),v=t.computed(()=>D(e.tipsRenderer)?e.tipsRenderer(a.value):"");return()=>t.createVNode("div",{class:u.b()},[t.createVNode("div",{ref:i,class:[u.e("runway"),m.value],onMousedown:l,onMouseout:()=>d.value=!1},[t.createVNode("div",{class:[u.e("bar"),m.value],style:{width:f.value}},null),t.createVNode("div",{class:[u.e("button"),m.value],style:{left:f.value},onMousedown:o,onMouseenter:()=>d.value=!0,onMouseout:()=>d.value=!1},null),e.tipsRenderer===null?null:d.value?t.createVNode("div",{class:u.e("popover"),style:{left:f.value}},[t.createVNode("div",{class:u.e("popover-arrow")},null),t.createVNode("div",{class:u.e("popover-content")},[v.value])]):null])])}}),B={title:"Slider \u6ED1\u5757",category:"\u6570\u636E\u5F55\u5165",status:"100%",install(e){e.component(h.name,h)}};s.Slider=h,s.default=B,s.sliderProps=M,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "slider",
3
+ "version": "0.0.0",
4
+ "main": "index.umd.js",
5
+ "module": "index.es.js",
6
+ "style": "style.css"
7
+ }
@@ -0,0 +1 @@
1
+ .devui-slider{position:relative;width:100%;display:block}.devui-slider.disabled{cursor:not-allowed;background-color:var(--devui-disabled-line, #dfe1e6);border-color:var(--devui-disabled-line, #dfe1e6)}.devui-slider__runway{position:relative;width:100%;padding:4px 0;margin:4px 0;cursor:pointer;box-sizing:border-box;height:5px;display:flex;align-items:center;border-radius:var(--devui-border-radius-full, 100px);background-color:var(--devui-area, #f8f8f8)}.devui-slider__runway.disabled{background-color:var(--devui-disabled-bg, #f5f5f5);cursor:not-allowed}.devui-slider__runway:hover .devui-slider__bar:not(.disabled){background-color:var(--devui-brand-hover, #7693f5)}.devui-slider__runway .devui-slider__bar{height:6px;background-color:var(--devui-brand, #5e7ce0);border-top-left-radius:var(--devui-border-radius-full, 100px);border-bottom-left-radius:var(--devui-border-radius-full, 100px);position:absolute}.devui-slider__runway .devui-slider__bar.disabled{background-color:var(--devui-disabled-line, #dfe1e6);border-color:var(--devui-disabled-line, #dfe1e6)}.devui-slider__runway .devui-slider__bar.disabled:hover{cursor:not-allowed}.devui-slider__runway .devui-slider__button{position:absolute;width:14px;height:14px;border:2px solid var(--devui-brand, #5e7ce0);background-color:var(--devui-base-bg, #ffffff);border-radius:50%;margin-left:-7px;transition:transform .2s ease-in-out}.devui-slider__runway .devui-slider__button:hover:not(.disabled){border-color:var(--devui-brand-hover, #7693f5);transform:scale(1.3)}.devui-slider__runway .devui-slider__button.disabled{border-color:var(--devui-disabled-line, #dfe1e6)}.devui-slider__runway .devui-slider__button.disabled{cursor:not-allowed}.devui-slider__runway .devui-slider__popover{position:relative;bottom:26px;transform:translate(-50%);border-radius:var(--devui-border-radius-feedback, 4px);font-size:var(--devui-font-size-sm, 12px);color:var(--devui-feedback-overlay-text, #dfe1e6)}.devui-slider__runway .devui-slider__popover .devui-slider__popover-arrow{position:absolute;left:50%;margin-left:-4px;bottom:-4px;width:8px;height:8px;transform:rotate(45deg);display:block;z-index:-1;background-color:var(--devui-feedback-overlay-bg, #464d6e)}.devui-slider__runway .devui-slider__popover .devui-slider__popover-content{padding:5px 14px;text-align:center;border-radius:var(--devui-border-radius-feedback, 4px);background-color:var(--devui-feedback-overlay-bg, #464d6e)}
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+ declare function install(app: App): void
3
+ declare const _default: {
4
+ install: typeof install;
5
+ version: string;
6
+ };
7
+ export default _default;