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,427 @@
1
+ import { defineComponent, toRefs, computed, createVNode, resolveDynamicComponent, mergeProps, inject, provide, ref, reactive, onMounted, watch, toRef, nextTick, Fragment } from "vue";
2
+ const timeAxisProps = {
3
+ direction: {
4
+ type: String,
5
+ default: "vertical"
6
+ },
7
+ center: {
8
+ type: Boolean,
9
+ default: false
10
+ },
11
+ mode: {
12
+ type: String,
13
+ default: "normal"
14
+ },
15
+ timePosition: {
16
+ type: String,
17
+ default: "left"
18
+ }
19
+ };
20
+ const DEFAULT_PREFIX = "icon";
21
+ const iconProps = {
22
+ name: {
23
+ type: String,
24
+ default: "",
25
+ required: true
26
+ },
27
+ size: {
28
+ type: [Number, String],
29
+ default: "inherit"
30
+ },
31
+ color: {
32
+ type: String,
33
+ default: "inherit"
34
+ },
35
+ component: {
36
+ type: Object,
37
+ default: null
38
+ },
39
+ classPrefix: {
40
+ type: String,
41
+ default: DEFAULT_PREFIX
42
+ },
43
+ operable: {
44
+ type: Boolean,
45
+ default: false
46
+ },
47
+ disabled: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ rotate: {
52
+ type: [Number, String]
53
+ }
54
+ };
55
+ const svgIconProps = {
56
+ name: {
57
+ type: String,
58
+ default: "",
59
+ required: true
60
+ },
61
+ color: {
62
+ type: String,
63
+ default: "inherit"
64
+ },
65
+ size: {
66
+ type: [Number, String],
67
+ default: "inherit"
68
+ }
69
+ };
70
+ function createBem(namespace, element, modifier) {
71
+ let cls = namespace;
72
+ if (element) {
73
+ cls += `__${element}`;
74
+ }
75
+ if (modifier) {
76
+ cls += `--${modifier}`;
77
+ }
78
+ return cls;
79
+ }
80
+ function useNamespace(block, needDot = false) {
81
+ const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
82
+ const b = () => createBem(namespace);
83
+ const e = (element) => element ? createBem(namespace, element) : "";
84
+ const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
85
+ const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
86
+ return {
87
+ b,
88
+ e,
89
+ m,
90
+ em
91
+ };
92
+ }
93
+ var icon = "";
94
+ var svgIcon = defineComponent({
95
+ name: "DSvgIcon",
96
+ props: svgIconProps,
97
+ setup(props) {
98
+ const {
99
+ name,
100
+ color,
101
+ size
102
+ } = toRefs(props);
103
+ const ns = useNamespace("svg-icon");
104
+ const iconName = computed(() => `#icon-${name.value}`);
105
+ const iconSize = computed(() => {
106
+ return typeof size.value === "number" ? `${size.value}px` : size.value;
107
+ });
108
+ const styles = {
109
+ width: iconSize.value,
110
+ height: iconSize.value
111
+ };
112
+ return () => {
113
+ return createVNode("svg", {
114
+ "class": ns.b(),
115
+ "style": styles
116
+ }, [createVNode("use", {
117
+ "xlink:href": iconName.value,
118
+ "fill": color.value
119
+ }, null)]);
120
+ };
121
+ }
122
+ });
123
+ function isUrl(value) {
124
+ return /^((http|https):)?\/\//.test(value);
125
+ }
126
+ function useIconDom(props, ctx) {
127
+ const {
128
+ component,
129
+ name,
130
+ size,
131
+ color,
132
+ classPrefix,
133
+ rotate
134
+ } = toRefs(props);
135
+ const ns = useNamespace("icon");
136
+ const iconSize = computed(() => {
137
+ return typeof size.value === "number" ? `${size.value}px` : size.value;
138
+ });
139
+ const IconComponent = component.value ? resolveDynamicComponent(component.value) : resolveDynamicComponent(svgIcon);
140
+ const imgIconDom = () => {
141
+ return createVNode("img", mergeProps({
142
+ "src": name.value,
143
+ "alt": name.value.split("/")[name.value.split("/").length - 1],
144
+ "class": [(rotate == null ? void 0 : rotate.value) === "infinite" && ns.m("spin")],
145
+ "style": {
146
+ width: iconSize.value || "",
147
+ transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`,
148
+ verticalAlign: "middle"
149
+ }
150
+ }, ctx.attrs), null);
151
+ };
152
+ const svgIconDom = () => {
153
+ return createVNode(IconComponent, mergeProps({
154
+ "name": name.value,
155
+ "color": color.value,
156
+ "size": iconSize.value,
157
+ "class": [(rotate == null ? void 0 : rotate.value) === "infinite" && ns.m("spin")],
158
+ "style": {
159
+ transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`
160
+ }
161
+ }, ctx.attrs), null);
162
+ };
163
+ const fontIconDom = () => {
164
+ const fontIconClass = /^icon-/.test(name.value) ? name.value : `${classPrefix.value}-${name.value}`;
165
+ return createVNode("i", mergeProps({
166
+ "class": [classPrefix.value, fontIconClass, (rotate == null ? void 0 : rotate.value) === "infinite" && ns.m("spin")],
167
+ "style": {
168
+ fontSize: iconSize.value,
169
+ color: color.value,
170
+ transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`
171
+ }
172
+ }, ctx.attrs), null);
173
+ };
174
+ const iconDom = () => {
175
+ return component.value ? svgIconDom() : isUrl(name.value) ? imgIconDom() : fontIconDom();
176
+ };
177
+ return {
178
+ iconDom
179
+ };
180
+ }
181
+ var DIcon = defineComponent({
182
+ name: "DIcon",
183
+ props: iconProps,
184
+ emits: ["click"],
185
+ setup(props, ctx) {
186
+ const {
187
+ disabled,
188
+ operable
189
+ } = toRefs(props);
190
+ const {
191
+ iconDom
192
+ } = useIconDom(props, ctx);
193
+ const ns = useNamespace("icon");
194
+ const wrapClassed = computed(() => ({
195
+ [ns.e("container")]: true,
196
+ [ns.m("disabled")]: disabled.value,
197
+ [ns.m("operable")]: operable.value
198
+ }));
199
+ const onClick = (e) => {
200
+ if (disabled.value) {
201
+ return;
202
+ }
203
+ ctx.emit("click", e);
204
+ };
205
+ return () => {
206
+ var _a, _b, _c, _d;
207
+ return createVNode("div", {
208
+ "class": wrapClassed.value,
209
+ "onClick": onClick
210
+ }, [(_b = (_a = ctx.slots).prefix) == null ? void 0 : _b.call(_a), iconDom(), (_d = (_c = ctx.slots).suffix) == null ? void 0 : _d.call(_c)]);
211
+ };
212
+ }
213
+ });
214
+ const timeAxisItemProps = {
215
+ time: {
216
+ type: String
217
+ },
218
+ dotColor: {
219
+ type: String
220
+ },
221
+ lineStyle: {
222
+ type: String,
223
+ default: "solid"
224
+ },
225
+ lineColor: {
226
+ type: String
227
+ },
228
+ position: {
229
+ type: String
230
+ },
231
+ timePosition: {
232
+ type: String,
233
+ default: "left"
234
+ },
235
+ type: {
236
+ type: String,
237
+ default: "primary"
238
+ }
239
+ };
240
+ var TimelineItem = defineComponent({
241
+ name: "DTimelineItem",
242
+ components: {
243
+ DIcon
244
+ },
245
+ props: timeAxisItemProps,
246
+ emits: [],
247
+ setup(props, ctx) {
248
+ const timeAxis = inject("timeAxis");
249
+ const itemClass = "devui-timeline-item";
250
+ const renderTime = () => {
251
+ var _a, _b;
252
+ return createVNode("div", {
253
+ "class": `${itemClass}-time`
254
+ }, [ctx.slots.time ? (_b = (_a = ctx.slots).time) == null ? void 0 : _b.call(_a) : props.time]);
255
+ };
256
+ const renderContent = () => {
257
+ var _a, _b;
258
+ return createVNode("div", {
259
+ "class": `${itemClass}-content`
260
+ }, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a, props)]);
261
+ };
262
+ const renderPosition = (types) => {
263
+ if (types.includes(props.position)) {
264
+ return renderContent();
265
+ } else {
266
+ if (timeAxis.props.direction === "horizontal") {
267
+ return renderTime();
268
+ } else {
269
+ return props.timePosition === "left" ? renderTime() : "";
270
+ }
271
+ }
272
+ };
273
+ const setTypeIcon = (type) => {
274
+ if (type === "primary") {
275
+ return "";
276
+ }
277
+ return createVNode("i", {
278
+ "class": `icon-${type === "success" ? "right" : type}-o`
279
+ }, null);
280
+ };
281
+ const renderDot = () => {
282
+ var _a, _b;
283
+ if (ctx.slots.dot) {
284
+ return createVNode("div", {
285
+ "style": {
286
+ color: props.dotColor
287
+ },
288
+ "class": `${itemClass}-dot`
289
+ }, [" ", (_b = (_a = ctx.slots).dot) == null ? void 0 : _b.call(_a)]);
290
+ } else {
291
+ return createVNode("div", {
292
+ "class": `${itemClass}-dot ${itemClass}-type-${props.type}`,
293
+ "style": {
294
+ borderColor: props.dotColor
295
+ }
296
+ }, [setTypeIcon(props.type)]);
297
+ }
298
+ };
299
+ return () => {
300
+ return createVNode("div", {
301
+ "class": itemClass
302
+ }, [createVNode("div", {
303
+ "class": `${itemClass}-data-left ${itemClass}-data-top`
304
+ }, [renderPosition(["top", "left"])]), createVNode("div", {
305
+ "class": `${itemClass}-axis`
306
+ }, [renderDot(), timeAxis.props.direction === "vertical" && props.timePosition === "bottom" ? renderTime() : "", createVNode("div", {
307
+ "class": `${itemClass}-line ${itemClass}-line-style-${props.lineStyle}`,
308
+ "style": {
309
+ borderColor: props.lineColor
310
+ }
311
+ }, [ctx.slots.extra ? createVNode("div", {
312
+ "class": `${itemClass}-line-extra`
313
+ }, [ctx.slots.extra()]) : ""])]), createVNode("div", {
314
+ "class": `${itemClass}-data-right ${itemClass}-data-bottom`
315
+ }, [renderPosition(["right", "bottom"])])]);
316
+ };
317
+ }
318
+ });
319
+ var timeline = "";
320
+ var Timeline = defineComponent({
321
+ name: "DTimeline",
322
+ components: {
323
+ TimelineItem
324
+ },
325
+ props: timeAxisProps,
326
+ emits: [],
327
+ setup(props, ctx) {
328
+ provide("timeAxis", {
329
+ ctx,
330
+ props
331
+ });
332
+ const timeAxis = ref();
333
+ const style = reactive({
334
+ marginLeft: "0px",
335
+ height: "auto"
336
+ });
337
+ const setStyle = () => {
338
+ style.height = "auto";
339
+ style.marginLeft = "0px";
340
+ if (props.direction === "horizontal") {
341
+ nextTick(() => {
342
+ var _a;
343
+ const element = timeAxis.value;
344
+ if (props.center) {
345
+ style.marginLeft = (((_a = element == null ? void 0 : element.firstElementChild) == null ? void 0 : _a.clientWidth) || 0) / 2 + "px";
346
+ }
347
+ style.height = Math.max(...Array.from(element == null ? void 0 : element.querySelectorAll(".devui-timeline-item-data-top")).map((el) => el.clientHeight), ...Array.from(element == null ? void 0 : element.querySelectorAll(".devui-timeline-item-data-bottom")).map((el) => el.clientHeight)) * 2 + Math.max(...Array.from(element == null ? void 0 : element.querySelectorAll(".devui-timeline-item-axis")).map((el) => el.clientHeight)) + "px";
348
+ });
349
+ }
350
+ };
351
+ onMounted(() => {
352
+ setStyle();
353
+ });
354
+ watch(toRef(props, "direction"), () => {
355
+ setStyle();
356
+ });
357
+ return () => {
358
+ const renderItemPosition = (item, position) => {
359
+ return position ? createVNode(item, {
360
+ "position": position
361
+ }, null) : createVNode(item, null, null);
362
+ };
363
+ const renderItem = () => {
364
+ var _a, _b, _c;
365
+ const slots = (_c = (_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)) != null ? _c : [];
366
+ let children;
367
+ if (slots.length === 1 && slots[0].type === Fragment) {
368
+ children = slots[0].children || [];
369
+ } else {
370
+ children = slots;
371
+ }
372
+ return children.map((item, index2) => {
373
+ var _a2, _b2, _c2, _d, _e, _f, _g, _h;
374
+ if (index2 + 1 === children.length) {
375
+ if (!((_a2 = item.props) == null ? void 0 : _a2.lineStyle) && !((_b2 = item.props) == null ? void 0 : _b2["line-style"])) {
376
+ item = createVNode(item, {
377
+ "line-style": "none"
378
+ }, null);
379
+ }
380
+ }
381
+ if (!((_c2 = item.props) == null ? void 0 : _c2.timePosition) && !((_d = item.props) == null ? void 0 : _d["time-position"])) {
382
+ item = createVNode(item, {
383
+ "time-position": props.timePosition ? props.timePosition : "left"
384
+ }, null);
385
+ }
386
+ if (props.direction === "horizontal") {
387
+ if (((_e = item.props) == null ? void 0 : _e.position) === "top" || ((_f = item.props) == null ? void 0 : _f.position) === "bottom") {
388
+ return item;
389
+ }
390
+ if (props.mode === "alternative") {
391
+ return renderItemPosition(item, index2 % 2 === 0 ? "bottom" : "top");
392
+ } else {
393
+ return renderItemPosition(item, "bottom");
394
+ }
395
+ } else {
396
+ if (((_g = item.props) == null ? void 0 : _g.position) === "left" || ((_h = item.props) == null ? void 0 : _h.position) === "right") {
397
+ return item;
398
+ }
399
+ if (props.mode === "alternative") {
400
+ return renderItemPosition(item, index2 % 2 === 0 ? "left" : "right");
401
+ } else {
402
+ return renderItemPosition(item, "right");
403
+ }
404
+ }
405
+ });
406
+ };
407
+ const getDirection = () => {
408
+ return props.direction === "horizontal" ? "horizontal" : "vertical";
409
+ };
410
+ return createVNode("div", {
411
+ "class": `devui-timeline devui-timeline-${getDirection()} ${props.center ? "devui-timeline-" + getDirection() + "-center" : ""} `,
412
+ "ref": timeAxis,
413
+ "style": style
414
+ }, [renderItem()]);
415
+ };
416
+ }
417
+ });
418
+ var index = {
419
+ title: "Timeline \u65F6\u95F4\u8F74",
420
+ category: "\u6570\u636E\u5C55\u793A",
421
+ status: "100%",
422
+ install(app) {
423
+ app.component(Timeline.name, Timeline);
424
+ app.component(TimelineItem.name, TimelineItem);
425
+ }
426
+ };
427
+ export { Timeline, TimelineItem, index as default, timeAxisProps };
@@ -0,0 +1 @@
1
+ (function(f,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(f=typeof globalThis!="undefined"?globalThis:f||self,e(f.index={},f.Vue))})(this,function(f,e){"use strict";const b={direction:{type:String,default:"vertical"},center:{type:Boolean,default:!1},mode:{type:String,default:"normal"},timePosition:{type:String,default:"left"}},x={name:{type:String,default:"",required:!0},size:{type:[Number,String],default:"inherit"},color:{type:String,default:"inherit"},component:{type:Object,default:null},classPrefix:{type:String,default:"icon"},operable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},rotate:{type:[Number,String]}},z={name:{type:String,default:"",required:!0},color:{type:String,default:"inherit"},size:{type:[Number,String],default:"inherit"}};function y(n,l,s){let i=n;return l&&(i+=`__${l}`),s&&(i+=`--${s}`),i}function $(n,l=!1){const s=l?`.devui-${n}`:`devui-${n}`;return{b:()=>y(s),e:t=>t?y(s,t):"",m:t=>t?y(s,"",t):"",em:(t,a)=>t&&a?y(s,t,a):""}}var M="",F=e.defineComponent({name:"DSvgIcon",props:z,setup(n){const{name:l,color:s,size:i}=e.toRefs(n),m=$("svg-icon"),o=e.computed(()=>`#icon-${l.value}`),d=e.computed(()=>typeof i.value=="number"?`${i.value}px`:i.value),t={width:d.value,height:d.value};return()=>e.createVNode("svg",{class:m.b(),style:t},[e.createVNode("use",{"xlink:href":o.value,fill:s.value},null)])}});function q(n){return/^((http|https):)?\/\//.test(n)}function E(n,l){const{component:s,name:i,size:m,color:o,classPrefix:d,rotate:t}=e.toRefs(n),a=$("icon"),r=e.computed(()=>typeof m.value=="number"?`${m.value}px`:m.value),u=s.value?e.resolveDynamicComponent(s.value):e.resolveDynamicComponent(F),p=()=>e.createVNode("img",e.mergeProps({src:i.value,alt:i.value.split("/")[i.value.split("/").length-1],class:[(t==null?void 0:t.value)==="infinite"&&a.m("spin")],style:{width:r.value||"",transform:`rotate(${t==null?void 0:t.value}deg)`,verticalAlign:"middle"}},l.attrs),null),h=()=>e.createVNode(u,e.mergeProps({name:i.value,color:o.value,size:r.value,class:[(t==null?void 0:t.value)==="infinite"&&a.m("spin")],style:{transform:`rotate(${t==null?void 0:t.value}deg)`}},l.attrs),null),c=()=>{const S=/^icon-/.test(i.value)?i.value:`${d.value}-${i.value}`;return e.createVNode("i",e.mergeProps({class:[d.value,S,(t==null?void 0:t.value)==="infinite"&&a.m("spin")],style:{fontSize:r.value,color:o.value,transform:`rotate(${t==null?void 0:t.value}deg)`}},l.attrs),null)};return{iconDom:()=>s.value?h():q(i.value)?p():c()}}var R=e.defineComponent({name:"DIcon",props:x,emits:["click"],setup(n,l){const{disabled:s,operable:i}=e.toRefs(n),{iconDom:m}=E(n,l),o=$("icon"),d=e.computed(()=>({[o.e("container")]:!0,[o.m("disabled")]:s.value,[o.m("operable")]:i.value})),t=a=>{s.value||l.emit("click",a)};return()=>{var a,r,u,p;return e.createVNode("div",{class:d.value,onClick:t},[(r=(a=l.slots).prefix)==null?void 0:r.call(a),m(),(p=(u=l.slots).suffix)==null?void 0:p.call(u)])}}});const _={time:{type:String},dotColor:{type:String},lineStyle:{type:String,default:"solid"},lineColor:{type:String},position:{type:String},timePosition:{type:String,default:"left"},type:{type:String,default:"primary"}};var g=e.defineComponent({name:"DTimelineItem",components:{DIcon:R},props:_,emits:[],setup(n,l){const s=e.inject("timeAxis"),i="devui-timeline-item",m=()=>{var r,u;return e.createVNode("div",{class:`${i}-time`},[l.slots.time?(u=(r=l.slots).time)==null?void 0:u.call(r):n.time])},o=()=>{var r,u;return e.createVNode("div",{class:`${i}-content`},[(u=(r=l.slots).default)==null?void 0:u.call(r,n)])},d=r=>r.includes(n.position)?o():s.props.direction==="horizontal"||n.timePosition==="left"?m():"",t=r=>r==="primary"?"":e.createVNode("i",{class:`icon-${r==="success"?"right":r}-o`},null),a=()=>{var r,u;return l.slots.dot?e.createVNode("div",{style:{color:n.dotColor},class:`${i}-dot`},[" ",(u=(r=l.slots).dot)==null?void 0:u.call(r)]):e.createVNode("div",{class:`${i}-dot ${i}-type-${n.type}`,style:{borderColor:n.dotColor}},[t(n.type)])};return()=>e.createVNode("div",{class:i},[e.createVNode("div",{class:`${i}-data-left ${i}-data-top`},[d(["top","left"])]),e.createVNode("div",{class:`${i}-axis`},[a(),s.props.direction==="vertical"&&n.timePosition==="bottom"?m():"",e.createVNode("div",{class:`${i}-line ${i}-line-style-${n.lineStyle}`,style:{borderColor:n.lineColor}},[l.slots.extra?e.createVNode("div",{class:`${i}-line-extra`},[l.slots.extra()]):""])]),e.createVNode("div",{class:`${i}-data-right ${i}-data-bottom`},[d(["right","bottom"])])])}}),j="",N=e.defineComponent({name:"DTimeline",components:{TimelineItem:g},props:b,emits:[],setup(n,l){e.provide("timeAxis",{ctx:l,props:n});const s=e.ref(),i=e.reactive({marginLeft:"0px",height:"auto"}),m=()=>{i.height="auto",i.marginLeft="0px",n.direction==="horizontal"&&e.nextTick(()=>{var d;const o=s.value;n.center&&(i.marginLeft=(((d=o==null?void 0:o.firstElementChild)==null?void 0:d.clientWidth)||0)/2+"px"),i.height=Math.max(...Array.from(o==null?void 0:o.querySelectorAll(".devui-timeline-item-data-top")).map(t=>t.clientHeight),...Array.from(o==null?void 0:o.querySelectorAll(".devui-timeline-item-data-bottom")).map(t=>t.clientHeight))*2+Math.max(...Array.from(o==null?void 0:o.querySelectorAll(".devui-timeline-item-axis")).map(t=>t.clientHeight))+"px"})};return e.onMounted(()=>{m()}),e.watch(e.toRef(n,"direction"),()=>{m()}),()=>{const o=(a,r)=>r?e.createVNode(a,{position:r},null):e.createVNode(a,null,null),d=()=>{var u,p,h;const a=(h=(p=(u=l.slots).default)==null?void 0:p.call(u))!=null?h:[];let r;return a.length===1&&a[0].type===e.Fragment?r=a[0].children||[]:r=a,r.map((c,v)=>{var S,V,C,P,I,D,A,T;return v+1===r.length&&!((S=c.props)!=null&&S.lineStyle)&&!((V=c.props)!=null&&V["line-style"])&&(c=e.createVNode(c,{"line-style":"none"},null)),!((C=c.props)!=null&&C.timePosition)&&!((P=c.props)!=null&&P["time-position"])&&(c=e.createVNode(c,{"time-position":n.timePosition?n.timePosition:"left"},null)),n.direction==="horizontal"?((I=c.props)==null?void 0:I.position)==="top"||((D=c.props)==null?void 0:D.position)==="bottom"?c:n.mode==="alternative"?o(c,v%2===0?"bottom":"top"):o(c,"bottom"):((A=c.props)==null?void 0:A.position)==="left"||((T=c.props)==null?void 0:T.position)==="right"?c:n.mode==="alternative"?o(c,v%2===0?"left":"right"):o(c,"right")})},t=()=>n.direction==="horizontal"?"horizontal":"vertical";return e.createVNode("div",{class:`devui-timeline devui-timeline-${t()} ${n.center?"devui-timeline-"+t()+"-center":""} `,ref:s,style:i},[d()])}}}),k={title:"Timeline \u65F6\u95F4\u8F74",category:"\u6570\u636E\u5C55\u793A",status:"100%",install(n){n.component(N.name,N),n.component(g.name,g)}};f.Timeline=N,f.TimelineItem=g,f.default=k,f.timeAxisProps=b,Object.defineProperties(f,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "timeline",
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-icon__container{display:inline-block;color:var(--devui-icon-fill, #71757f)}.devui-icon__container>*:not(:last-child){vertical-align:middle;margin-right:8px}.devui-icon__container i{vertical-align:middle;transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--disabled{color:var(--devui-disabled-text, #adb0b8);cursor:not-allowed}.devui-icon--disabled i{color:var(--devui-disabled-text, #adb0b8)}.devui-icon--operable:not(.devui-icon--disabled){cursor:pointer;transition:color var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--operable:not(.devui-icon--disabled) i{cursor:pointer}.devui-icon--operable:hover:not(.devui-icon--disabled){color:var(--devui-icon-fill-hover, #252b3a)}.devui-icon--operable:hover:not(.devui-icon--disabled).devui-icon__container{background-color:var(--devui-icon-background-hover, var(--devui-list-item-hover-bg, #f2f2f3))}.devui-icon--operable:hover:not(.devui-icon--disabled) i{color:var(--devui-icon-fill-hover, #252b3a)}.devui-icon--operable:active:not(.devui-icon--disabled){color:var(--devui-icon-active-color, var(--devui-icon-fill-active, #252b3a))}.devui-icon--operable:active:not(.devui-icon--disabled).devui-icon__container{background-color:var(--devui-icon-background-active, var(--devui-list-item-active-bg, #f2f5fc))}.devui-icon--operable:active:not(.devui-icon--disabled) i{color:var(--devui-icon-active-color, var(--devui-icon-fill-active, #252b3a))}.devui-icon--operable.devui-icon__container{height:32px;line-height:32px;padding:0 8px;margin-left:-8px;border-radius:var(--devui-border-radius, 4px);transition:all var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out-smooth, cubic-bezier(.645, .045, .355, 1))}.devui-icon--spin{animation:iconSpin 2.5s linear infinite}.devui-svg-icon{vertical-align:middle}@keyframes iconSpin{0%{transform:rotate(0)}50%{transform:rotate(180deg)}to{transform:rotate(360deg)}}.devui-timeline-vertical{display:flex;flex-direction:column;align-items:center;position:relative}.devui-timeline-vertical .devui-timeline-item{display:flex;flex-direction:row;width:100%}.devui-timeline-vertical .devui-timeline-item-axis{display:flex;flex-direction:column;align-items:center;padding:0 12px}.devui-timeline-vertical .devui-timeline-item-line{position:relative;height:calc(100% - 18px);min-height:20px;border-left-width:2px;border-left-color:var(--devui-dividing-line, #f2f2f3)}.devui-timeline-vertical .devui-timeline-item-line-extra{position:absolute;top:50%;transform:translate(-50%,-50%)}.devui-timeline-vertical .devui-timeline-item-line:first-child{display:none}.devui-timeline-vertical .devui-timeline-item-data-left{text-align:end}.devui-timeline-vertical .devui-timeline-item-data-left,.devui-timeline-vertical .devui-timeline-item-data-right{margin-bottom:24px;margin-top:-2px;flex:1}.devui-timeline-vertical .devui-timeline-item-line-style-dashed{border-left-style:dashed}.devui-timeline-vertical .devui-timeline-item-line-style-solid{border-left-style:solid}.devui-timeline-vertical .devui-timeline-item-line-style-dotted{border-left-style:dotted}.devui-timeline-vertical .devui-timeline-item-line-style-none{border-left-style:none}.devui-timeline-vertical .devui-timeline-item .devui-timeline-middle-zone{position:absolute;top:50%;transform:translate(-50%,-50%)}.devui-timeline-horizontal{display:flex;flex-direction:row;align-items:center;position:relative}.devui-timeline-horizontal-center .devui-timeline-item-data-top,.devui-timeline-horizontal-center .devui-timeline-item-data-bottom{text-align:center;padding:0 6px}.devui-timeline-horizontal-center .devui-timeline-item-data-top>div,.devui-timeline-horizontal-center .devui-timeline-item-data-bottom>div{transform:translate(-50%)}.devui-timeline-horizontal .devui-timeline-item{display:flex;flex-direction:column;height:100%}.devui-timeline-horizontal .devui-timeline-item-axis{display:flex;flex-direction:row;align-items:center;padding:12px 0}.devui-timeline-horizontal .devui-timeline-item-line{position:relative;min-width:60px;width:calc(100% - 18px);border-bottom-width:2px;border-bottom-color:var(--devui-dividing-line, #f2f2f3)}.devui-timeline-horizontal .devui-timeline-item-line-extra{position:absolute;left:50%;transform:translate(-50%,-50%)}.devui-timeline-horizontal .devui-timeline-item:first-child .devui-timeline-item-line:first-child{opacity:0}.devui-timeline-horizontal .devui-timeline-item-data-top,.devui-timeline-horizontal .devui-timeline-item-data-bottom{padding-right:12px;flex:1}.devui-timeline-horizontal .devui-timeline-item-line-style-dashed{border-bottom-style:dashed}.devui-timeline-horizontal .devui-timeline-item-line-style-solid{border-bottom-style:solid}.devui-timeline-horizontal .devui-timeline-item-line-style-dotted{border-bottom-style:dotted}.devui-timeline-horizontal .devui-timeline-item-line-style-none{border-bottom-style:none}.devui-timeline-horizontal .devui-timeline-item .devui-timeline-middle-zone{position:absolute;left:50%;transform:translate(-50%,-50%)}.devui-timeline-item-dot,.devui-timeline-item-dot>svg{width:18px;height:18px;flex-shrink:0}.devui-timeline-item-dot>i{font-size:18px;vertical-align:0}.devui-timeline-item-type-primary{border:2px solid var(--devui-placeholder, #babbc0);border-radius:50%}.devui-timeline-item-type-success i{color:var(--devui-success, #50d4ab)}.devui-timeline-item-type-error i{color:var(--devui-danger, #f66f6a)}.devui-timeline-item-type-warning i{color:var(--devui-warning, #fac20a)}.devui-timeline-item-type-running{line-height:16px;text-align:center;animation:devui-timeline-running 1.5s linear infinite;border:2px solid var(--devui-success, #50d4ab);border-radius:50%}@keyframes devui-timeline-running{0%{transform:rotate(0);color:var(--devui-success, #50d4ab);border-color:var(--devui-success, #50d4ab)}50%{transform:rotate(180deg);color:var(--devui-success, #50d4ab);border-color:var(--devui-success, #50d4ab)}to{transform:rotate(360deg);color:var(--devui-success, #50d4ab);border-color:var(--devui-success, #50d4ab)}}
@@ -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;