vue-devui 1.0.0-alpha.1 → 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 (425) hide show
  1. package/README.md +161 -172
  2. package/alert/index.d.ts +7 -0
  3. package/alert/index.es.js +204 -1
  4. package/alert/index.umd.js +1 -1
  5. package/alert/style.css +1 -1
  6. package/auto-complete/index.d.ts +7 -0
  7. package/auto-complete/index.es.js +9051 -0
  8. package/auto-complete/index.umd.js +40 -0
  9. package/auto-complete/package.json +7 -0
  10. package/auto-complete/style.css +1 -0
  11. package/avatar/index.d.ts +7 -0
  12. package/avatar/index.es.js +308 -1
  13. package/avatar/index.umd.js +1 -1
  14. package/avatar/style.css +1 -1
  15. package/badge/index.d.ts +7 -0
  16. package/badge/index.es.js +120 -1
  17. package/badge/index.umd.js +1 -1
  18. package/badge/style.css +1 -1
  19. package/button/index.d.ts +7 -0
  20. package/button/index.es.js +5964 -1
  21. package/button/index.umd.js +27 -1
  22. package/button/style.css +1 -1
  23. package/card/index.d.ts +7 -0
  24. package/card/index.es.js +89 -1
  25. package/card/index.umd.js +1 -1
  26. package/card/style.css +1 -1
  27. package/checkbox/index.d.ts +7 -0
  28. package/checkbox/index.es.js +8207 -1
  29. package/checkbox/index.umd.js +38 -1
  30. package/checkbox/style.css +1 -1
  31. package/collapse/index.d.ts +7 -0
  32. package/collapse/index.es.js +195 -0
  33. package/collapse/index.umd.js +1 -0
  34. package/{carousel → collapse}/package.json +1 -1
  35. package/collapse/style.css +1 -0
  36. package/countdown/index.d.ts +7 -0
  37. package/countdown/index.es.js +217 -0
  38. package/countdown/index.umd.js +1 -0
  39. package/{accordion → countdown}/package.json +1 -1
  40. package/countdown/style.css +1 -0
  41. package/date-picker-pro/index.d.ts +7 -0
  42. package/date-picker-pro/index.es.js +12031 -0
  43. package/date-picker-pro/index.umd.js +38 -0
  44. package/date-picker-pro/package.json +7 -0
  45. package/date-picker-pro/style.css +1 -0
  46. package/drawer/index.d.ts +7 -0
  47. package/drawer/index.es.js +248 -0
  48. package/drawer/index.umd.js +1 -0
  49. package/{anchor → drawer}/package.json +1 -1
  50. package/drawer/style.css +1 -0
  51. package/dropdown/index.d.ts +7 -0
  52. package/dropdown/index.es.js +743 -0
  53. package/dropdown/index.umd.js +1 -0
  54. package/dropdown/package.json +7 -0
  55. package/dropdown/style.css +1 -0
  56. package/editable-select/index.d.ts +7 -0
  57. package/editable-select/index.es.js +991 -1
  58. package/editable-select/index.umd.js +1 -1
  59. package/editable-select/style.css +1 -1
  60. package/form/index.d.ts +7 -0
  61. package/form/index.es.js +7751 -0
  62. package/form/index.umd.js +38 -0
  63. package/{toast → form}/package.json +1 -1
  64. package/form/style.css +1 -0
  65. package/fullscreen/index.d.ts +7 -0
  66. package/fullscreen/index.es.js +166 -0
  67. package/fullscreen/index.umd.js +1 -0
  68. package/fullscreen/package.json +7 -0
  69. package/fullscreen/style.css +1 -0
  70. package/grid/index.d.ts +7 -0
  71. package/grid/index.es.js +271 -0
  72. package/grid/index.umd.js +1 -0
  73. package/{sticky → grid}/package.json +1 -1
  74. package/grid/style.css +1 -0
  75. package/icon/index.d.ts +7 -0
  76. package/icon/index.es.js +218 -1
  77. package/icon/index.umd.js +1 -1
  78. package/icon/style.css +1 -0
  79. package/image-preview/index.d.ts +7 -0
  80. package/image-preview/index.es.js +511 -1
  81. package/image-preview/index.umd.js +1 -1
  82. package/image-preview/style.css +1 -1
  83. package/index.d.ts +7 -0
  84. package/input/index.d.ts +7 -0
  85. package/input/index.es.js +8311 -1
  86. package/input/index.umd.js +38 -1
  87. package/input/style.css +1 -1
  88. package/input-number/index.d.ts +7 -0
  89. package/input-number/index.es.js +308 -1
  90. package/input-number/index.umd.js +1 -1
  91. package/input-number/style.css +1 -1
  92. package/layout/index.d.ts +7 -0
  93. package/layout/index.es.js +115 -0
  94. package/layout/index.umd.js +1 -0
  95. package/layout/package.json +7 -0
  96. package/layout/style.css +1 -0
  97. package/loading/index.d.ts +7 -0
  98. package/loading/index.es.js +272 -1
  99. package/loading/index.umd.js +1 -1
  100. package/loading/style.css +1 -1
  101. package/message/index.d.ts +7 -0
  102. package/message/index.es.js +534 -0
  103. package/message/index.umd.js +1 -0
  104. package/message/package.json +7 -0
  105. package/message/style.css +1 -0
  106. package/modal/index.d.ts +7 -0
  107. package/modal/index.es.js +741 -0
  108. package/modal/index.umd.js +1 -0
  109. package/modal/package.json +7 -0
  110. package/modal/style.css +1 -0
  111. package/notification/index.d.ts +7 -0
  112. package/notification/index.es.js +528 -0
  113. package/notification/index.umd.js +1 -0
  114. package/notification/package.json +7 -0
  115. package/notification/style.css +1 -0
  116. package/nuxt/components/Alert.js +3 -0
  117. package/nuxt/components/Aside.js +3 -0
  118. package/nuxt/components/AutoComplete.js +3 -0
  119. package/nuxt/components/Avatar.js +3 -0
  120. package/nuxt/components/Badge.js +3 -0
  121. package/nuxt/components/Button.js +3 -0
  122. package/nuxt/components/ButtonGroup.js +3 -0
  123. package/nuxt/components/Card.js +3 -0
  124. package/nuxt/components/Checkbox.js +3 -0
  125. package/nuxt/components/CheckboxButton.js +3 -0
  126. package/nuxt/components/CheckboxGroup.js +3 -0
  127. package/nuxt/components/Col.js +3 -0
  128. package/nuxt/components/Collapse.js +3 -0
  129. package/nuxt/components/CollapseItem.js +3 -0
  130. package/nuxt/components/Column.js +3 -0
  131. package/nuxt/components/Content.js +3 -0
  132. package/nuxt/components/Countdown.js +3 -0
  133. package/nuxt/components/DRangeDatePickerPro.js +3 -0
  134. package/nuxt/components/DatePickerPro.js +3 -0
  135. package/nuxt/components/Drawer.js +3 -0
  136. package/nuxt/components/DrawerService.js +3 -0
  137. package/nuxt/components/Dropdown.js +3 -0
  138. package/nuxt/components/DropdownMenu.js +3 -0
  139. package/nuxt/components/DropdownPropsKey.js +3 -0
  140. package/nuxt/components/EditableSelect.js +3 -0
  141. package/nuxt/components/FORM_ITEM_TOKEN.js +3 -0
  142. package/nuxt/components/FORM_TOKEN.js +3 -0
  143. package/nuxt/components/FixedOverlay.js +3 -0
  144. package/nuxt/components/FlexibleOverlay.js +3 -0
  145. package/nuxt/components/Footer.js +3 -0
  146. package/nuxt/components/Form.js +3 -0
  147. package/nuxt/components/FormItem.js +3 -0
  148. package/nuxt/components/FormOperation.js +3 -0
  149. package/nuxt/components/Fullscreen.js +3 -0
  150. package/nuxt/components/Header.js +3 -0
  151. package/nuxt/components/IFileOptions.js +3 -0
  152. package/nuxt/components/IUploadOptions.js +3 -0
  153. package/nuxt/components/Icon.js +3 -0
  154. package/nuxt/components/IconGroup.js +3 -0
  155. package/nuxt/components/ImagePreviewService.js +3 -0
  156. package/nuxt/components/Input.js +3 -0
  157. package/nuxt/components/InputNumber.js +3 -0
  158. package/nuxt/components/LABEL_DATA.js +3 -0
  159. package/nuxt/components/Layout.js +3 -0
  160. package/nuxt/components/Loading.js +3 -0
  161. package/nuxt/components/LoadingOptions.js +3 -0
  162. package/nuxt/components/LoadingService.js +3 -0
  163. package/nuxt/components/Message.js +3 -0
  164. package/nuxt/components/Modal.js +3 -0
  165. package/nuxt/components/Notification.js +3 -0
  166. package/nuxt/components/NotificationService.js +3 -0
  167. package/nuxt/components/Option.js +3 -0
  168. package/nuxt/components/OptionGroup.js +3 -0
  169. package/nuxt/components/Pagination.js +3 -0
  170. package/nuxt/components/Panel.js +3 -0
  171. package/nuxt/components/PanelBody.js +3 -0
  172. package/nuxt/components/PanelFooter.js +3 -0
  173. package/nuxt/components/PanelHeader.js +3 -0
  174. package/nuxt/components/Popover.js +3 -0
  175. package/nuxt/components/Progress.js +3 -0
  176. package/nuxt/components/Radio.js +3 -0
  177. package/nuxt/components/RadioButton.js +3 -0
  178. package/nuxt/components/RadioGroup.js +3 -0
  179. package/nuxt/components/Rate.js +3 -0
  180. package/nuxt/components/Result.js +3 -0
  181. package/nuxt/components/Row.js +3 -0
  182. package/nuxt/components/Search.js +3 -0
  183. package/nuxt/components/Select.js +3 -0
  184. package/nuxt/components/Skeleton.js +3 -0
  185. package/nuxt/components/SkeletonItem.js +3 -0
  186. package/nuxt/components/Slider.js +3 -0
  187. package/nuxt/components/Splitter.js +3 -0
  188. package/nuxt/components/Statistic.js +3 -0
  189. package/nuxt/components/Status.js +3 -0
  190. package/nuxt/components/Step.js +3 -0
  191. package/nuxt/components/Steps.js +3 -0
  192. package/nuxt/components/Switch.js +3 -0
  193. package/nuxt/components/TABLE_TOKEN.js +3 -0
  194. package/nuxt/components/Tab.js +3 -0
  195. package/nuxt/components/Table.js +3 -0
  196. package/nuxt/components/Tabs.js +3 -0
  197. package/nuxt/components/Tag.js +3 -0
  198. package/nuxt/components/Textarea.js +3 -0
  199. package/nuxt/components/TimePicker.js +3 -0
  200. package/nuxt/components/TimeSelect.js +3 -0
  201. package/nuxt/components/Timeline.js +3 -0
  202. package/nuxt/components/TimelineItem.js +3 -0
  203. package/nuxt/components/Tooltip.js +3 -0
  204. package/nuxt/components/Tree.js +3 -0
  205. package/nuxt/components/Upload.js +3 -0
  206. package/nuxt/components/UploadStatus.js +3 -0
  207. package/nuxt/components/alertProps.js +3 -0
  208. package/nuxt/components/animationInjectionKey.js +3 -0
  209. package/nuxt/components/autoCompleteProps.js +3 -0
  210. package/nuxt/components/avatarProps.js +3 -0
  211. package/nuxt/components/badgeProps.js +3 -0
  212. package/nuxt/components/buttonGroupInjectionKey.js +3 -0
  213. package/nuxt/components/buttonGroupProps.js +3 -0
  214. package/nuxt/components/buttonProps.js +3 -0
  215. package/nuxt/components/cardProps.js +3 -0
  216. package/nuxt/components/checkboxGroupInjectionKey.js +3 -0
  217. package/nuxt/components/checkboxGroupProps.js +3 -0
  218. package/nuxt/components/checkboxProps.js +3 -0
  219. package/nuxt/components/colProps.js +3 -0
  220. package/nuxt/components/colPropsBaseClass.js +3 -0
  221. package/nuxt/components/colPropsBaseStyle.js +3 -0
  222. package/nuxt/components/collapseItemProps.js +3 -0
  223. package/nuxt/components/collapseProps.js +3 -0
  224. package/nuxt/components/countdownProps.js +3 -0
  225. package/nuxt/components/datePickerProCommonProps.js +3 -0
  226. package/nuxt/components/datePickerProPanelProps.js +3 -0
  227. package/nuxt/components/datePickerProProps.js +3 -0
  228. package/nuxt/components/dropdownMenuProps.js +3 -0
  229. package/nuxt/components/editableSelectProps.js +3 -0
  230. package/nuxt/components/fixedOverlayProps.js +3 -0
  231. package/nuxt/components/flexibleOverlayProps.js +3 -0
  232. package/nuxt/components/formItemProps.js +3 -0
  233. package/nuxt/components/formProps.js +3 -0
  234. package/nuxt/components/fullscreenProps.js +3 -0
  235. package/nuxt/components/iconProps.js +3 -0
  236. package/nuxt/components/imagePreviewProps.js +3 -0
  237. package/nuxt/components/inputProps.js +3 -0
  238. package/nuxt/components/loadingProps.js +3 -0
  239. package/nuxt/components/messageProps.js +3 -0
  240. package/nuxt/components/modalProps.js +3 -0
  241. package/nuxt/components/notificationProps.js +3 -0
  242. package/nuxt/components/paginationProps.js +3 -0
  243. package/nuxt/components/panelProps.js +3 -0
  244. package/nuxt/components/popoverProps.js +3 -0
  245. package/nuxt/components/progressProps.js +3 -0
  246. package/nuxt/components/rateProps.js +3 -0
  247. package/nuxt/components/resultProps.js +3 -0
  248. package/nuxt/components/roundInjectionKey.js +3 -0
  249. package/nuxt/components/rowProps.js +3 -0
  250. package/nuxt/components/screenSizes.js +3 -0
  251. package/nuxt/components/searchProps.js +3 -0
  252. package/nuxt/components/skeletonItemProps.js +3 -0
  253. package/nuxt/components/skeletonProps.js +3 -0
  254. package/nuxt/components/sliderProps.js +3 -0
  255. package/nuxt/components/splitterProps.js +3 -0
  256. package/nuxt/components/statisticProps.js +3 -0
  257. package/nuxt/components/stepProps.js +3 -0
  258. package/nuxt/components/stepsProps.js +3 -0
  259. package/nuxt/components/svgIconProps.js +3 -0
  260. package/nuxt/components/switchProps.js +3 -0
  261. package/nuxt/components/tableProps.js +3 -0
  262. package/nuxt/components/tabsProps.js +3 -0
  263. package/nuxt/components/tagProps.js +3 -0
  264. package/nuxt/components/textareaProps.js +3 -0
  265. package/nuxt/components/timeAxisProps.js +3 -0
  266. package/nuxt/components/timerPickerPanelProps.js +3 -0
  267. package/nuxt/components/tooltipProps.js +3 -0
  268. package/nuxt/components/treeProps.js +3 -0
  269. package/nuxt/components/uploadProps.js +3 -0
  270. package/nuxt/index.js +13 -0
  271. package/overlay/index.d.ts +7 -0
  272. package/overlay/index.es.js +293 -1
  273. package/overlay/index.umd.js +1 -1
  274. package/overlay/style.css +1 -1
  275. package/package.json +17 -82
  276. package/pagination/index.d.ts +7 -0
  277. package/pagination/index.es.js +820 -1
  278. package/pagination/index.umd.js +1 -1
  279. package/pagination/style.css +1 -1
  280. package/panel/index.d.ts +7 -0
  281. package/panel/index.es.js +218 -1
  282. package/panel/index.umd.js +1 -1
  283. package/panel/style.css +1 -1
  284. package/popover/index.d.ts +7 -0
  285. package/popover/index.es.js +6062 -1
  286. package/popover/index.umd.js +27 -1
  287. package/popover/style.css +1 -1
  288. package/progress/index.d.ts +7 -0
  289. package/progress/index.es.js +207 -1
  290. package/progress/index.umd.js +3 -1
  291. package/progress/style.css +1 -1
  292. package/radio/index.d.ts +7 -0
  293. package/radio/index.es.js +8056 -1
  294. package/radio/index.umd.js +38 -1
  295. package/radio/style.css +1 -1
  296. package/rate/index.d.ts +7 -0
  297. package/rate/index.es.js +242 -1
  298. package/rate/index.umd.js +1 -1
  299. package/rate/style.css +1 -1
  300. package/result/index.d.ts +7 -0
  301. package/result/index.es.js +248 -0
  302. package/result/index.umd.js +1 -0
  303. package/result/package.json +7 -0
  304. package/result/style.css +1 -0
  305. package/ripple/index.d.ts +7 -0
  306. package/ripple/index.es.js +173 -1
  307. package/ripple/index.umd.js +1 -1
  308. package/search/index.d.ts +7 -0
  309. package/search/index.es.js +8504 -2
  310. package/search/index.umd.js +38 -10
  311. package/search/style.css +1 -1
  312. package/select/index.d.ts +7 -0
  313. package/select/index.es.js +9423 -1
  314. package/select/index.umd.js +38 -1
  315. package/select/style.css +1 -1
  316. package/skeleton/index.d.ts +7 -0
  317. package/skeleton/index.es.js +145 -0
  318. package/skeleton/index.umd.js +1 -0
  319. package/skeleton/package.json +7 -0
  320. package/skeleton/style.css +1 -0
  321. package/slider/index.d.ts +7 -0
  322. package/slider/index.es.js +203 -1
  323. package/slider/index.umd.js +1 -1
  324. package/slider/style.css +1 -1
  325. package/splitter/index.d.ts +7 -0
  326. package/splitter/index.es.js +6754 -1
  327. package/splitter/index.umd.js +27 -1
  328. package/splitter/style.css +1 -1
  329. package/statistic/index.d.ts +7 -0
  330. package/statistic/index.es.js +253 -0
  331. package/statistic/index.umd.js +1 -0
  332. package/statistic/package.json +7 -0
  333. package/statistic/style.css +1 -0
  334. package/status/index.d.ts +7 -0
  335. package/status/index.es.js +63 -1
  336. package/status/index.umd.js +1 -1
  337. package/status/style.css +1 -1
  338. package/steps/index.d.ts +7 -0
  339. package/steps/index.es.js +386 -0
  340. package/steps/index.umd.js +1 -0
  341. package/steps/package.json +7 -0
  342. package/steps/style.css +1 -0
  343. package/style.css +1 -1
  344. package/switch/index.d.ts +7 -0
  345. package/switch/index.es.js +7852 -1
  346. package/switch/index.umd.js +38 -1
  347. package/switch/style.css +1 -1
  348. package/table/index.d.ts +7 -0
  349. package/table/index.es.js +11527 -0
  350. package/table/index.umd.js +38 -0
  351. package/table/package.json +7 -0
  352. package/table/style.css +1 -0
  353. package/tabs/index.d.ts +7 -0
  354. package/tabs/index.es.js +407 -1
  355. package/tabs/index.umd.js +1 -1
  356. package/tabs/style.css +1 -1
  357. package/tag/index.d.ts +7 -0
  358. package/tag/index.es.js +156 -0
  359. package/tag/index.umd.js +1 -0
  360. package/tag/package.json +7 -0
  361. package/tag/style.css +1 -0
  362. package/textarea/index.d.ts +7 -0
  363. package/textarea/index.es.js +7986 -0
  364. package/textarea/index.umd.js +46 -0
  365. package/textarea/package.json +7 -0
  366. package/textarea/style.css +1 -0
  367. package/{theme → theme/theme.scss} +0 -0
  368. package/time-picker/index.d.ts +7 -0
  369. package/time-picker/index.es.js +9556 -0
  370. package/time-picker/index.umd.js +38 -0
  371. package/{date-picker → time-picker}/package.json +1 -1
  372. package/time-picker/style.css +1 -0
  373. package/time-select/index.d.ts +7 -0
  374. package/time-select/index.es.js +9604 -0
  375. package/time-select/index.umd.js +38 -0
  376. package/time-select/package.json +7 -0
  377. package/time-select/style.css +1 -0
  378. package/timeline/index.d.ts +7 -0
  379. package/timeline/index.es.js +427 -0
  380. package/timeline/index.umd.js +1 -0
  381. package/timeline/package.json +7 -0
  382. package/timeline/style.css +1 -0
  383. package/tooltip/index.d.ts +7 -0
  384. package/tooltip/index.es.js +5900 -1
  385. package/tooltip/index.umd.js +27 -1
  386. package/tooltip/style.css +1 -1
  387. package/tree/index.d.ts +7 -0
  388. package/tree/index.es.js +10336 -1
  389. package/tree/index.umd.js +38 -1
  390. package/tree/style.css +1 -1
  391. package/upload/index.d.ts +7 -0
  392. package/upload/index.es.js +1398 -1
  393. package/upload/index.umd.js +1 -1
  394. package/upload/style.css +1 -1
  395. package/vue-devui.es.js +27443 -2
  396. package/vue-devui.umd.js +50 -10
  397. package/accordion/index.es.js +0 -1
  398. package/accordion/index.umd.js +0 -1
  399. package/accordion/style.css +0 -1
  400. package/anchor/index.es.js +0 -1
  401. package/anchor/index.umd.js +0 -1
  402. package/anchor/style.css +0 -1
  403. package/carousel/index.es.js +0 -1
  404. package/carousel/index.umd.js +0 -1
  405. package/carousel/style.css +0 -1
  406. package/date-picker/index.es.js +0 -1
  407. package/date-picker/index.umd.js +0 -1
  408. package/date-picker/style.css +0 -1
  409. package/quadrant-diagram/index.es.js +0 -10
  410. package/quadrant-diagram/index.umd.js +0 -10
  411. package/quadrant-diagram/package.json +0 -7
  412. package/quadrant-diagram/style.css +0 -1
  413. package/sticky/index.es.js +0 -1
  414. package/sticky/index.umd.js +0 -1
  415. package/tag-input/index.es.js +0 -1
  416. package/tag-input/index.umd.js +0 -1
  417. package/tag-input/package.json +0 -7
  418. package/tag-input/style.css +0 -1
  419. package/toast/index.es.js +0 -1
  420. package/toast/index.umd.js +0 -1
  421. package/toast/style.css +0 -1
  422. package/transfer/index.es.js +0 -10
  423. package/transfer/index.umd.js +0 -10
  424. package/transfer/package.json +0 -7
  425. package/transfer/style.css +0 -1
@@ -0,0 +1 @@
1
+ (function(h,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue"),require("@floating-ui/dom")):typeof define=="function"&&define.amd?define(["exports","vue","@floating-ui/dom"],t):(h=typeof globalThis!="undefined"?globalThis:h||self,t(h.index={},h.Vue,h.dom))})(this,function(h,t,g){"use strict";const k={modelValue:{type:Boolean,default:!1},title:{type:String,default:""},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},beforeClose:{type:Function},escapable:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},showOverlay:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!0}},M={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]}},P={name:{type:String,default:"",required:!0},color:{type:String,default:"inherit"},size:{type:[Number,String],default:"inherit"}};function C(n,e,o){let l=n;return e&&(l+=`__${e}`),o&&(l+=`--${o}`),l}function v(n,e=!1){const o=e?`.devui-${n}`:`devui-${n}`;return{b:()=>C(o),e:r=>r?C(o,r):"",m:r=>r?C(o,"",r):"",em:(r,s)=>r&&s?C(o,r,s):""}}var Q="",T=t.defineComponent({name:"DSvgIcon",props:P,setup(n){const{name:e,color:o,size:l}=t.toRefs(n),a=v("svg-icon"),d=t.computed(()=>`#icon-${e.value}`),i=t.computed(()=>typeof l.value=="number"?`${l.value}px`:l.value),r={width:i.value,height:i.value};return()=>t.createVNode("svg",{class:a.b(),style:r},[t.createVNode("use",{"xlink:href":d.value,fill:o.value},null)])}});function I(n){return/^((http|https):)?\/\//.test(n)}function $(n,e){const{component:o,name:l,size:a,color:d,classPrefix:i,rotate:r}=t.toRefs(n),s=v("icon"),c=t.computed(()=>typeof a.value=="number"?`${a.value}px`:a.value),u=o.value?t.resolveDynamicComponent(o.value):t.resolveDynamicComponent(T),f=()=>t.createVNode("img",t.mergeProps({src:l.value,alt:l.value.split("/")[l.value.split("/").length-1],class:[(r==null?void 0:r.value)==="infinite"&&s.m("spin")],style:{width:c.value||"",transform:`rotate(${r==null?void 0:r.value}deg)`,verticalAlign:"middle"}},e.attrs),null),m=()=>t.createVNode(u,t.mergeProps({name:l.value,color:d.value,size:c.value,class:[(r==null?void 0:r.value)==="infinite"&&s.m("spin")],style:{transform:`rotate(${r==null?void 0:r.value}deg)`}},e.attrs),null),y=()=>{const w=/^icon-/.test(l.value)?l.value:`${i.value}-${l.value}`;return t.createVNode("i",t.mergeProps({class:[i.value,w,(r==null?void 0:r.value)==="infinite"&&s.m("spin")],style:{fontSize:c.value,color:d.value,transform:`rotate(${r==null?void 0:r.value}deg)`}},e.attrs),null)};return{iconDom:()=>o.value?m():I(l.value)?f():y()}}var z=t.defineComponent({name:"DIcon",props:M,emits:["click"],setup(n,e){const{disabled:o,operable:l}=t.toRefs(n),{iconDom:a}=$(n,e),d=v("icon"),i=t.computed(()=>({[d.e("container")]:!0,[d.m("disabled")]:o.value,[d.m("operable")]:l.value})),r=s=>{o.value||e.emit("click",s)};return()=>{var s,c,u,f;return t.createVNode("div",{class:i.value,onClick:r},[(c=(s=e.slots).prefix)==null?void 0:c.call(s),a(),(f=(u=e.slots).suffix)==null?void 0:f.call(u)])}}}),W="";t.defineComponent({name:"DIconGroup",setup(n,e){const o=v("icon-group");return()=>{var l,a;return t.createVNode("div",{class:o.b()},[(a=(l=e.slots).default)==null?void 0:a.call(l)])}}});const R={modelValue:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}};function B(){if(document.documentElement.scrollHeight>document.documentElement.clientHeight){const n=document.documentElement.scrollTop,e=document.documentElement.getAttribute("style");return document.documentElement.style.position="fixed",document.documentElement.style.top=`-${n}px`,document.documentElement.style.width=document.documentElement.style.width||"100%",document.documentElement.style.overflowY="scroll",()=>{e?document.documentElement.setAttribute("style",e):document.documentElement.removeAttribute("style"),document.documentElement.scrollTop=n}}}function L(n,e){let o;const l=d=>{d.preventDefault(),e.emit("click",d),n.closeOnClickOverlay&&e.emit("update:modelValue",!1)},a=()=>{o==null||o()};return t.watch(()=>n.modelValue,d=>{d?n.lockScroll&&(o=B()):a()}),t.onUnmounted(a),{onClick:l}}var Z="";const F=t.defineComponent({name:"DFixedOverlay",inheritAttrs:!1,props:R,emits:["update:modelValue","click"],setup(n,e){const{modelValue:o}=t.toRefs(n),l=v("fixed-overlay"),{onClick:a}=L(n,e);return()=>t.createVNode(t.Transition,{name:l.m("fade")},{default:()=>{var d,i;return[o.value&&t.createVNode("div",t.mergeProps({class:l.b()},e.attrs,{onClick:a}),[(i=(d=e.slots).default)==null?void 0:i.call(d)])]}})}}),U={modelValue:{type:Boolean,default:!1},origin:{type:Object,require:!0},position:{type:Array,default:["bottom"]},offset:{type:[Number,Object],default:8},shiftOffset:{type:Number},align:{type:String,default:null},showArrow:{type:Boolean,default:!1},isArrowCenter:{type:Boolean,default:!0}};function _(n){const e=/(auto|scroll|hidden)/;for(let o=n;o=o.parentElement;o.parentElement!==document.body){const l=window.getComputedStyle(o);if(e.test(l.overflow+l.overflowX+l.overflowY))return o}return window}function j(n,e,o,l){let{x:a,y:d}=e;if(!n){const{width:i,height:r}=l;a&&o.includes("start")&&(a=12),a&&o.includes("end")&&(a=Math.round(i-24)),d&&o.includes("start")&&(d=10),d&&o.includes("end")&&(d=r-14)}return{x:a,y:d}}function H(n,e){const o=t.ref(),l=t.ref();let a=null;const d=(r,s,c,u)=>{const{x:f,y:m}=j(n.isArrowCenter,c,s,u.getBoundingClientRect()),y={top:"bottom",right:"left",bottom:"top",left:"right"}[s.split("-")[0]];Object.assign(r.style,{left:f?`${f}px`:"",top:m?`${m}px`:"",right:"",bottom:"",[y]:"-4px"})},i=async()=>{const r=n.origin,s=t.unref(o.value),c=t.unref(l.value),u=[g.offset(n.offset),g.autoPlacement({alignment:n.align,allowedPlacements:n.position})];n.showArrow&&u.push(g.arrow({element:c})),n.shiftOffset!==void 0&&u.push(g.shift());const{x:f,y:m,placement:y,middlewareData:p}=await g.computePosition(r,s,{strategy:"fixed",middleware:u});let w=f,x=m;if(n.shiftOffset!==void 0){const{x:D,y:A}=p.shift;D<0&&(w-=n.shiftOffset),D>0&&(w+=n.shiftOffset),A<0&&(x-=n.shiftOffset),A>0&&(x+=n.shiftOffset)}e("positionChange",y),Object.assign(s.style,{top:`${x}px`,left:`${w}px`}),n.showArrow&&d(c,y,p.arrow,s)};return t.watch(()=>n.modelValue,()=>{n.modelValue&&n.origin?(a=_(n.origin),t.nextTick(i),a==null||a.addEventListener("scroll",i),a!==window&&window.addEventListener("scroll",i),window.addEventListener("resize",i)):(a==null||a.removeEventListener("scroll",i),a!==window&&window.removeEventListener("scroll",i),window.removeEventListener("resize",i))}),t.onUnmounted(()=>{a==null||a.removeEventListener("scroll",i),a!==window&&window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}),{arrowRef:l,overlayRef:o,updatePosition:i}}var ee="";t.defineComponent({name:"DFlexibleOverlay",inheritAttrs:!1,props:U,emits:["update:modelValue","positionChange"],setup(n,{slots:e,attrs:o,emit:l,expose:a}){const d=v("flexible-overlay"),{arrowRef:i,overlayRef:r,updatePosition:s}=H(n,l);return a({updatePosition:s}),()=>{var c;return n.modelValue&&t.createVNode("div",t.mergeProps({ref:r,class:d.b()},o),[(c=e.default)==null?void 0:c.call(e),n.showArrow&&t.createVNode("div",{ref:i,class:d.e("arrow")},null)])}}});const q=typeof window!="undefined";function X(n,e){function o(){e("update:modelValue",!1)}function l(){n.beforeClose?n.beforeClose(o):o()}function a(){n.closeOnClickOverlay&&l()}function d(){l()}function i(r){r.keyCode===27&&l()}return t.onMounted(()=>{n.escapable&&window.addEventListener("keydown",i)}),t.onUnmounted(()=>{n.escapable&&window.addEventListener("keydown",i)}),{onCloseBtnClick:d,onOverlayClick:a}}function Y(n){const e=t.ref(!1),o=t.ref(!1);let l;const a=()=>{l==null||l()};return t.watch(()=>n.modelValue,d=>{d?(n.lockScroll&&(l=B()),e.value=!0,t.nextTick(()=>{o.value=!0})):(a(),o.value=!1,setTimeout(()=>{e.value=!1},100))},{immediate:!0}),t.onUnmounted(a),{showContainer:e,showModal:o}}var O=t.defineComponent({name:"DModalHeader",setup(n,{slots:e}){const o=v("modal");return()=>{var l;return t.createVNode("div",{class:o.e("header")},[(l=e.default)==null?void 0:l.call(e)])}}}),E=t.defineComponent({name:"DModalBody",setup(n,{slots:e}){const o=v("modal");return()=>{var l;return t.createVNode("div",{class:o.e("body")},[(l=e.default)==null?void 0:l.call(e)])}}}),te="",b=t.defineComponent({name:"DModal",inheritAttrs:!1,props:k,emits:["update:modelValue"],setup(n,{slots:e,attrs:o,emit:l}){const a=v("modal"),{modelValue:d,title:i,showClose:r,showOverlay:s,appendToBody:c}=t.toRefs(n),{onCloseBtnClick:u,onOverlayClick:f}=X(n,l),{showContainer:m,showModal:y}=Y(n);return()=>t.createVNode(t.Teleport,{to:"body",disabled:!c.value},{default:()=>[s.value&&t.createVNode(F,{modelValue:d.value,"onUpdate:modelValue":p=>d.value=p,"lock-scroll":!1,style:{zIndex:"calc(var(--devui-z-index-modal, 1050) - 1)"}},null),m.value&&t.createVNode("div",{class:a.e("container"),onClick:f},[t.createVNode(t.Transition,{name:a.m("wipe")},{default:()=>{var p;return[y.value&&t.createVNode("div",t.mergeProps({class:a.b()},o),[r.value&&t.createVNode(z,{name:"close",class:"btn-close",size:"var(--devui-font-size-md,12px)",onClick:u},null),e.header?e.header():i.value&&t.createVNode(O,null,{default:()=>[i.value]}),t.createVNode(E,null,{default:()=>{var w;return[(w=e.default)==null?void 0:w.call(e)]}}),(p=e.footer)==null?void 0:p.call(e)])]}})])]})}}),S=t.defineComponent({name:"DModalFooter",setup(n,{slots:e}){const o=v("modal");return()=>{var l;return t.createVNode("div",{class:o.e("footer")},[(l=e.default)==null?void 0:l.call(e)])}}});class G{constructor(e){this.anchorContainer=e}renderModal(e,o,l){const a=t.h(this.component(),o,l);return t.render(a,e),a}renderNull(e){setTimeout(()=>{t.render(null,e)},500)}}let V;class N extends G{component(){return b}open(e={}){const o=document.createElement("div");this.anchorContainer.appendChild(o);const{header:l,content:a,footer:d,...i}=e,r=(u,f)=>this.renderModal(o,{...u,modelValue:!0,"onUpdate:modelValue":f},{header:l,default:a,footer:d}),s=()=>{var f,m,y;const u=p=>{p||s()};r(i,p=>{p?r(i,u):(this.renderModal(o,{...i,modelValue:!1}),this.renderNull(o))}),(y=(m=(f=V==null?void 0:V.component)==null?void 0:f.exposed)==null?void 0:m.handleVisibleChange)==null||y.call(m,!1)},c=u=>{u||s()};return this.renderModal(o,{modelValue:!1}),V=r(i,c),{hide:s}}}N.token="MODAL_SERVICE_TOKEN";var K={title:"Modal \u5F39\u7A97",category:"\u53CD\u9988",status:"100%",install(n){if(n.component(b.name,b),n.component(O.name,O),n.component(E.name,E),n.component(S.name,S),!q)return;let e=document.getElementById("d-modal-anchors-container");e||(e=document.createElement("div"),e.setAttribute("id","d-modal-anchors-container"),document.body.appendChild(e)),n.provide(N.token,new N(e))}};h.Modal=b,h.default=K,h.modalProps=k,Object.defineProperties(h,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "modal",
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-icon-group{display:inline-flex;align-items:center}.devui-icon-group>.devui-icon__container:not(.devui-icon--operable){padding:8px;margin-left:0}.devui-icon-group>.devui-icon__container:not(.devui-icon--operable):first-child{margin-left:-8px}.devui-icon-group>*:not(:first-child){margin-left:0}.devui-fixed-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1050}.devui-fixed-overlay--fade-enter-active,.devui-fixed-overlay--fade-leave-active{transition:opacity .1s cubic-bezier(0,0,1,1)}.devui-fixed-overlay--fade-enter-from,.devui-fixed-overlay--fade-leave-to{opacity:0}.devui-flexible-overlay{position:fixed;border-radius:var(--devui-border-radius, 4px);background-color:var(--devui-connected-overlay-bg, #ffffff);box-shadow:var(--devui-shadow-length-connected-overlay, 0 4px 8px 0) var(--devui-shadow, rgba(37, 43, 58, .2));z-index:1000}.devui-flexible-overlay__arrow{position:absolute;width:8px;height:8px;transform:rotate(45deg);background-color:inherit}.devui-modal__container{position:fixed;top:0;right:0;bottom:0;left:0;z-index:var(--devui-z-index-modal, 1050);outline:0;overflow-y:auto;display:flex;flex-direction:column}.devui-modal{position:relative;width:300px;margin:auto;border-radius:var(--devui-border-radius, 4px);border:none;opacity:1;transform:translateY(0);background-color:var(--devui-fullscreen-overlay-bg, #ffffff);background-clip:padding-box;outline:0;box-shadow:var(--devui-shadow-length-fullscreen-overlay, 0 12px 24px 0) var(--devui-shadow, rgba(37, 43, 58, .2))}.devui-modal .btn-close{position:absolute;right:16px;top:16px;width:20px;height:20px;line-height:20px;text-align:center;color:#000;cursor:pointer;background:transparent;border:0;-webkit-appearance:none}.devui-modal .btn-close:hover{color:var(--devui-icon-fill-active-hover, #252b3a);background-color:var(--devui-list-item-hover-bg, #f2f2f3)}.devui-modal .btn-close i{position:absolute;right:0;top:0}.devui-modal-content{background:var(--devui-fullscreen-overlay-bg, #ffffff);border-radius:var(--devui-border-radius, 4px)}.devui-modal__header{width:100%;height:56px;padding:32px 32px 0;font-size:var(--devui-font-size-card-title, 16px);font-weight:700;box-sizing:border-box;border:none;user-select:none}.devui-modal__header .header-alert-icon{display:inline-block;vertical-align:middle;margin-right:8px;line-height:16px;text-align:center}.devui-modal__body{padding:20px 32px;font-size:var(--devui-font-size, 14px);color:var(--devui-text-weak, #575d6c);box-sizing:border-box}.devui-modal__footer{width:100%;border-top:none;text-align:center;padding:0 32px 24px;box-sizing:border-box}.devui-modal__footer>*{margin:0 4px}.devui-modal--wipe-enter-active{transition:opacity .1s cubic-bezier(.16,.75,.5,1),transform .1s cubic-bezier(0,0,1,1)}.devui-modal--wipe-leave-active{transition:opacity .1s cubic-bezier(.5,0,.84,.25),transform .1s cubic-bezier(0,0,1,1)}.devui-modal--wipe-enter-from,.devui-modal--wipe-leave-to{opacity:.2;transform:translateY(-24px)}
@@ -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,528 @@
1
+ import { defineComponent, toRefs, computed, createVNode, resolveDynamicComponent, mergeProps, watch, Transition, reactive, createApp, onUnmounted, isVNode } from "vue";
2
+ const notificationProps = {
3
+ modelValue: {
4
+ type: Boolean,
5
+ default: false
6
+ },
7
+ title: {
8
+ type: String,
9
+ default: ""
10
+ },
11
+ type: {
12
+ type: String,
13
+ default: "normal"
14
+ },
15
+ duration: {
16
+ type: Number,
17
+ default: 3e3
18
+ },
19
+ onClose: {
20
+ type: Function
21
+ }
22
+ };
23
+ const DEFAULT_PREFIX = "icon";
24
+ const iconProps = {
25
+ name: {
26
+ type: String,
27
+ default: "",
28
+ required: true
29
+ },
30
+ size: {
31
+ type: [Number, String],
32
+ default: "inherit"
33
+ },
34
+ color: {
35
+ type: String,
36
+ default: "inherit"
37
+ },
38
+ component: {
39
+ type: Object,
40
+ default: null
41
+ },
42
+ classPrefix: {
43
+ type: String,
44
+ default: DEFAULT_PREFIX
45
+ },
46
+ operable: {
47
+ type: Boolean,
48
+ default: false
49
+ },
50
+ disabled: {
51
+ type: Boolean,
52
+ default: false
53
+ },
54
+ rotate: {
55
+ type: [Number, String]
56
+ }
57
+ };
58
+ const svgIconProps = {
59
+ name: {
60
+ type: String,
61
+ default: "",
62
+ required: true
63
+ },
64
+ color: {
65
+ type: String,
66
+ default: "inherit"
67
+ },
68
+ size: {
69
+ type: [Number, String],
70
+ default: "inherit"
71
+ }
72
+ };
73
+ function createBem(namespace, element, modifier) {
74
+ let cls = namespace;
75
+ if (element) {
76
+ cls += `__${element}`;
77
+ }
78
+ if (modifier) {
79
+ cls += `--${modifier}`;
80
+ }
81
+ return cls;
82
+ }
83
+ function useNamespace(block, needDot = false) {
84
+ const namespace = needDot ? `.devui-${block}` : `devui-${block}`;
85
+ const b = () => createBem(namespace);
86
+ const e = (element) => element ? createBem(namespace, element) : "";
87
+ const m = (modifier) => modifier ? createBem(namespace, "", modifier) : "";
88
+ const em = (element, modifier) => element && modifier ? createBem(namespace, element, modifier) : "";
89
+ return {
90
+ b,
91
+ e,
92
+ m,
93
+ em
94
+ };
95
+ }
96
+ var icon = "";
97
+ var svgIcon = defineComponent({
98
+ name: "DSvgIcon",
99
+ props: svgIconProps,
100
+ setup(props) {
101
+ const {
102
+ name,
103
+ color,
104
+ size
105
+ } = toRefs(props);
106
+ const ns2 = useNamespace("svg-icon");
107
+ const iconName = computed(() => `#icon-${name.value}`);
108
+ const iconSize = computed(() => {
109
+ return typeof size.value === "number" ? `${size.value}px` : size.value;
110
+ });
111
+ const styles = {
112
+ width: iconSize.value,
113
+ height: iconSize.value
114
+ };
115
+ return () => {
116
+ return createVNode("svg", {
117
+ "class": ns2.b(),
118
+ "style": styles
119
+ }, [createVNode("use", {
120
+ "xlink:href": iconName.value,
121
+ "fill": color.value
122
+ }, null)]);
123
+ };
124
+ }
125
+ });
126
+ function isUrl(value) {
127
+ return /^((http|https):)?\/\//.test(value);
128
+ }
129
+ function useIconDom(props, ctx) {
130
+ const {
131
+ component,
132
+ name,
133
+ size,
134
+ color,
135
+ classPrefix,
136
+ rotate
137
+ } = toRefs(props);
138
+ const ns2 = useNamespace("icon");
139
+ const iconSize = computed(() => {
140
+ return typeof size.value === "number" ? `${size.value}px` : size.value;
141
+ });
142
+ const IconComponent = component.value ? resolveDynamicComponent(component.value) : resolveDynamicComponent(svgIcon);
143
+ const imgIconDom = () => {
144
+ return createVNode("img", mergeProps({
145
+ "src": name.value,
146
+ "alt": name.value.split("/")[name.value.split("/").length - 1],
147
+ "class": [(rotate == null ? void 0 : rotate.value) === "infinite" && ns2.m("spin")],
148
+ "style": {
149
+ width: iconSize.value || "",
150
+ transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`,
151
+ verticalAlign: "middle"
152
+ }
153
+ }, ctx.attrs), null);
154
+ };
155
+ const svgIconDom = () => {
156
+ return createVNode(IconComponent, mergeProps({
157
+ "name": name.value,
158
+ "color": color.value,
159
+ "size": iconSize.value,
160
+ "class": [(rotate == null ? void 0 : rotate.value) === "infinite" && ns2.m("spin")],
161
+ "style": {
162
+ transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`
163
+ }
164
+ }, ctx.attrs), null);
165
+ };
166
+ const fontIconDom = () => {
167
+ const fontIconClass = /^icon-/.test(name.value) ? name.value : `${classPrefix.value}-${name.value}`;
168
+ return createVNode("i", mergeProps({
169
+ "class": [classPrefix.value, fontIconClass, (rotate == null ? void 0 : rotate.value) === "infinite" && ns2.m("spin")],
170
+ "style": {
171
+ fontSize: iconSize.value,
172
+ color: color.value,
173
+ transform: `rotate(${rotate == null ? void 0 : rotate.value}deg)`
174
+ }
175
+ }, ctx.attrs), null);
176
+ };
177
+ const iconDom = () => {
178
+ return component.value ? svgIconDom() : isUrl(name.value) ? imgIconDom() : fontIconDom();
179
+ };
180
+ return {
181
+ iconDom
182
+ };
183
+ }
184
+ var Icon = defineComponent({
185
+ name: "DIcon",
186
+ props: iconProps,
187
+ emits: ["click"],
188
+ setup(props, ctx) {
189
+ const {
190
+ disabled,
191
+ operable
192
+ } = toRefs(props);
193
+ const {
194
+ iconDom
195
+ } = useIconDom(props, ctx);
196
+ const ns2 = useNamespace("icon");
197
+ const wrapClassed = computed(() => ({
198
+ [ns2.e("container")]: true,
199
+ [ns2.m("disabled")]: disabled.value,
200
+ [ns2.m("operable")]: operable.value
201
+ }));
202
+ const onClick = (e) => {
203
+ if (disabled.value) {
204
+ return;
205
+ }
206
+ ctx.emit("click", e);
207
+ };
208
+ return () => {
209
+ var _a, _b, _c, _d;
210
+ return createVNode("div", {
211
+ "class": wrapClassed.value,
212
+ "onClick": onClick
213
+ }, [(_b = (_a = ctx.slots).prefix) == null ? void 0 : _b.call(_a), iconDom(), (_d = (_c = ctx.slots).suffix) == null ? void 0 : _d.call(_c)]);
214
+ };
215
+ }
216
+ });
217
+ var iconGroup = "";
218
+ defineComponent({
219
+ name: "DIconGroup",
220
+ setup(_, ctx) {
221
+ const ns2 = useNamespace("icon-group");
222
+ return () => {
223
+ var _a, _b;
224
+ return createVNode("div", {
225
+ "class": ns2.b()
226
+ }, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a)]);
227
+ };
228
+ }
229
+ });
230
+ var Close = defineComponent({
231
+ emits: ["click"],
232
+ setup(props, {
233
+ emit
234
+ }) {
235
+ const ns2 = useNamespace("notification");
236
+ return () => createVNode("div", {
237
+ "class": ns2.e("icon-close"),
238
+ "onClick": (e) => emit("click", e)
239
+ }, [createVNode(Icon, {
240
+ "name": "close",
241
+ "size": "14px"
242
+ }, null)]);
243
+ }
244
+ });
245
+ const ns = useNamespace("notification");
246
+ const XLINK = {
247
+ "xmlns:xlink": "http://www.w3.org/1999/xlink"
248
+ };
249
+ const XLINK_HREF = {
250
+ "xlink:href": "#path-s"
251
+ };
252
+ function SuccessIcon() {
253
+ return createVNode("svg", mergeProps({
254
+ "width": "16px",
255
+ "height": "16px",
256
+ "viewBox": "0 0 16 16",
257
+ "version": "1.1",
258
+ "xmlns": "http://www.w3.org/2000/svg"
259
+ }, XLINK), [createVNode("defs", null, [createVNode("polygon", {
260
+ "id": "path-s",
261
+ "points": "6.53553391 9.77817459 12.1923882 4.12132034 13.6066017 5.53553391 6.53553391 12.6066017 3 9.07106781 4.41421356 7.65685425 6.53553391 9.77817459"
262
+ }, null)]), createVNode("g", {
263
+ "id": "correct",
264
+ "stroke": "none",
265
+ "stroke-width": "1",
266
+ "fill": "none",
267
+ "fill-rule": "evenodd"
268
+ }, [createVNode("mask", {
269
+ "id": "mask-2",
270
+ "fill": "white"
271
+ }, [createVNode("use", XLINK_HREF, null)]), createVNode("use", mergeProps({
272
+ "id": "Mask",
273
+ "class": ns.e("image-success-path")
274
+ }, XLINK_HREF), null)])]);
275
+ }
276
+ function WarningIcon() {
277
+ return createVNode("svg", mergeProps({
278
+ "width": "16px",
279
+ "height": "16px",
280
+ "viewBox": "0 0 16 16",
281
+ "version": "1.1",
282
+ "xmlns": "http://www.w3.org/2000/svg"
283
+ }, XLINK), [createVNode("g", {
284
+ "stroke": "none",
285
+ "stroke-width": "1",
286
+ "fill": "none",
287
+ "fill-rule": "evenodd"
288
+ }, [createVNode("path", {
289
+ "class": ns.e("warning-outer"),
290
+ "d": "M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506, 15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049, 0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071, 0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"
291
+ }, null), createVNode("path", {
292
+ "class": ns.e("warning-inner"),
293
+ "stroke-width": "0.3",
294
+ "fill-rule": "nonzero",
295
+ "d": "M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"
296
+ }, null)])]);
297
+ }
298
+ function InfoIcon() {
299
+ return createVNode("svg", mergeProps({
300
+ "width": "16px",
301
+ "height": "16px",
302
+ "viewBox": "0 0 16 16",
303
+ "version": "1.1",
304
+ "xmlns": "http://www.w3.org/2000/svg"
305
+ }, XLINK), [createVNode("g", {
306
+ "id": "info",
307
+ "stroke": "none",
308
+ "stroke-width": "1",
309
+ "fill": "none",
310
+ "fill-rule": "evenodd"
311
+ }, [createVNode("path", {
312
+ "class": ns.e("image-info-path"),
313
+ "d": "M7,13 L7,6 L9,6 L9,13 L7,13 Z M7,5 L7,3 L9,3 L9,5 L7,5 Z",
314
+ "id": "info"
315
+ }, null)])]);
316
+ }
317
+ function ErrorIcon() {
318
+ return createVNode("svg", mergeProps({
319
+ "width": "16px",
320
+ "height": "16px",
321
+ "viewBox": "0 0 16 16",
322
+ "version": "1.1",
323
+ "xmlns": "http://www.w3.org/2000/svg"
324
+ }, XLINK), [createVNode("defs", null, [createVNode("polygon", {
325
+ "id": "path-e",
326
+ "points": "8.07106781 6.65685425 10.8994949 3.82842712 12.3137085 5.24264069 9.48528137 8.07106781 12.3137085 10.8994949 10.8994949 12.3137085 8.07106781 9.48528137 5.24264069 12.3137085 3.82842712 10.8994949 6.65685425 8.07106781 3.82842712 5.24264069 5.24264069 3.82842712"
327
+ }, null)]), createVNode("g", {
328
+ "id": "error",
329
+ "stroke": "none",
330
+ "stroke-width": "1",
331
+ "fill": "none",
332
+ "fill-rule": "evenodd"
333
+ }, [createVNode("mask", {
334
+ "id": "mask-2",
335
+ "fill": "white"
336
+ }, [createVNode("use", XLINK_HREF, null)]), createVNode("use", mergeProps({
337
+ "id": "Mask",
338
+ "class": ns.e("image-error-path")
339
+ }, XLINK_HREF), null)])]);
340
+ }
341
+ var TypeIcon = defineComponent({
342
+ props: {
343
+ type: {
344
+ type: String,
345
+ default: "normal"
346
+ }
347
+ },
348
+ setup(props) {
349
+ const {
350
+ type
351
+ } = toRefs(props);
352
+ const ns2 = useNamespace("notification");
353
+ const classes = computed(() => ({
354
+ [ns2.e("image")]: true,
355
+ [ns2.em("image", type.value)]: true
356
+ }));
357
+ return () => createVNode("span", {
358
+ "class": classes.value
359
+ }, [type.value && type.value !== "normal" && (type.value === "success" && createVNode(SuccessIcon, null, null) || type.value === "info" && createVNode(InfoIcon, null, null) || type.value === "warning" && createVNode(WarningIcon, null, null) || type.value === "error" && createVNode(ErrorIcon, null, null))]);
360
+ }
361
+ });
362
+ function useNotification(props) {
363
+ const classes = computed(() => ({
364
+ "devui-notification-item-container": true,
365
+ [`devui-notification-message-${props.type}`]: true
366
+ }));
367
+ return { classes };
368
+ }
369
+ function useEvent(props, emit) {
370
+ let timer = null;
371
+ let timestamp;
372
+ const close2 = () => {
373
+ var _a;
374
+ timer && clearTimeout(timer);
375
+ timer = null;
376
+ (_a = props.onClose) == null ? void 0 : _a.call(props);
377
+ emit("update:modelValue", false);
378
+ };
379
+ const interrupt = () => {
380
+ if (timer) {
381
+ clearTimeout(timer);
382
+ timer = null;
383
+ }
384
+ };
385
+ const removeReset = () => {
386
+ if (!props.modelValue) {
387
+ const remainTime = props.duration - (Date.now() - timestamp);
388
+ timer = setTimeout(close2, remainTime);
389
+ }
390
+ };
391
+ const handleDestroy = () => {
392
+ emit("destroy");
393
+ };
394
+ watch(() => props.modelValue, (val) => {
395
+ if (val) {
396
+ timestamp = Date.now();
397
+ if (props.duration) {
398
+ timer = setTimeout(close2, props.duration);
399
+ }
400
+ }
401
+ });
402
+ return { interrupt, removeReset, close: close2, handleDestroy };
403
+ }
404
+ var notification = "";
405
+ var Notification = defineComponent({
406
+ name: "DNotification",
407
+ props: notificationProps,
408
+ emits: ["update:modelValue", "destroy"],
409
+ setup(props, {
410
+ emit,
411
+ slots
412
+ }) {
413
+ const {
414
+ modelValue,
415
+ title,
416
+ type
417
+ } = toRefs(props);
418
+ const {
419
+ classes
420
+ } = useNotification(props);
421
+ const {
422
+ interrupt,
423
+ removeReset,
424
+ close: close2,
425
+ handleDestroy
426
+ } = useEvent(props, emit);
427
+ const ns2 = useNamespace("notification");
428
+ return () => createVNode(Transition, {
429
+ "name": "notification-fade",
430
+ "onAfterLeave": handleDestroy
431
+ }, {
432
+ default: () => {
433
+ var _a;
434
+ return [modelValue.value && createVNode("div", {
435
+ "class": ns2.b()
436
+ }, [createVNode("div", {
437
+ "class": classes.value,
438
+ "onMouseenter": interrupt,
439
+ "onMouseleave": removeReset
440
+ }, [createVNode("div", {
441
+ "class": ns2.e("item")
442
+ }, [createVNode(Close, {
443
+ "onClick": close2
444
+ }, null), title.value && createVNode(TypeIcon, {
445
+ "type": type.value
446
+ }, null), createVNode("div", {
447
+ "class": ns2.e("message")
448
+ }, [createVNode("span", {
449
+ "class": ns2.e("title")
450
+ }, [title.value]), createVNode("span", {
451
+ "class": ns2.e("content")
452
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)])])])])])];
453
+ }
454
+ });
455
+ }
456
+ });
457
+ function _isSlot(s) {
458
+ return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
459
+ }
460
+ const defaultOptions = {
461
+ modelValue: false,
462
+ duration: 3e3,
463
+ type: "normal"
464
+ };
465
+ function initInstance(props, content) {
466
+ const container = document.createElement("div");
467
+ container.classList.add("notification__warpper");
468
+ const lastChild = document.body.lastElementChild;
469
+ let offset_Top = 50;
470
+ if (lastChild == null ? void 0 : lastChild.classList.contains("notification__warpper")) {
471
+ const notification2 = lastChild.lastElementChild;
472
+ const rects = notification2.getBoundingClientRect();
473
+ const height = rects.height;
474
+ const top = rects.top;
475
+ offset_Top = height + top;
476
+ }
477
+ const app = createApp({
478
+ setup() {
479
+ onUnmounted(() => {
480
+ document.body.removeChild(container);
481
+ });
482
+ return () => createVNode(Notification, mergeProps(props, {
483
+ "onDestroy": app.unmount,
484
+ "style": [`top: ${offset_Top}px`]
485
+ }), _isSlot(content) ? content : {
486
+ default: () => [content]
487
+ });
488
+ }
489
+ });
490
+ document.body.appendChild(container);
491
+ app.mount(container);
492
+ return app;
493
+ }
494
+ function close(props, originOnClose) {
495
+ props.modelValue = false;
496
+ originOnClose == null ? void 0 : originOnClose();
497
+ }
498
+ class NotificationService {
499
+ static open(options) {
500
+ const originOnClose = options.onClose || null;
501
+ const content = options.content;
502
+ let timer;
503
+ delete options.content;
504
+ const props = reactive({
505
+ ...defaultOptions,
506
+ ...options,
507
+ onClose: () => {
508
+ close(props, originOnClose);
509
+ }
510
+ });
511
+ initInstance(props, content);
512
+ props.modelValue = true;
513
+ clearTimeout(timer);
514
+ if (options.duration && props.onClose) {
515
+ timer = setTimeout(props.onClose, options.duration);
516
+ }
517
+ }
518
+ }
519
+ var index = {
520
+ title: "Notification \u5168\u5C40\u901A\u77E5",
521
+ category: "\u53CD\u9988",
522
+ status: "100%",
523
+ install(app) {
524
+ app.component(Notification.name, Notification);
525
+ app.config.globalProperties.$notificationService = NotificationService;
526
+ }
527
+ };
528
+ export { Notification, NotificationService, index as default, notificationProps };
@@ -0,0 +1 @@
1
+ (function(d,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(d=typeof globalThis!="undefined"?globalThis:d||self,e(d.index={},d.Vue))})(this,function(d,e){"use strict";const v={modelValue:{type:Boolean,default:!1},title:{type:String,default:""},type:{type:String,default:"normal"},duration:{type:Number,default:3e3},onClose:{type:Function}},b={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]}},k={name:{type:String,default:"",required:!0},color:{type:String,default:"inherit"},size:{type:[Number,String],default:"inherit"}};function N(n,t,o){let i=n;return t&&(i+=`__${t}`),o&&(i+=`--${o}`),i}function m(n,t=!1){const o=t?`.devui-${n}`:`devui-${n}`;return{b:()=>N(o),e:l=>l?N(o,l):"",m:l=>l?N(o,"",l):"",em:(l,c)=>l&&c?N(o,l,c):""}}var q="",L=e.defineComponent({name:"DSvgIcon",props:k,setup(n){const{name:t,color:o,size:i}=e.toRefs(n),a=m("svg-icon"),s=e.computed(()=>`#icon-${t.value}`),r=e.computed(()=>typeof i.value=="number"?`${i.value}px`:i.value),l={width:r.value,height:r.value};return()=>e.createVNode("svg",{class:a.b(),style:l},[e.createVNode("use",{"xlink:href":s.value,fill:o.value},null)])}});function x(n){return/^((http|https):)?\/\//.test(n)}function I(n,t){const{component:o,name:i,size:a,color:s,classPrefix:r,rotate:l}=e.toRefs(n),c=m("icon"),u=e.computed(()=>typeof a.value=="number"?`${a.value}px`:a.value),p=o.value?e.resolveDynamicComponent(o.value):e.resolveDynamicComponent(L),f=()=>e.createVNode("img",e.mergeProps({src:i.value,alt:i.value.split("/")[i.value.split("/").length-1],class:[(l==null?void 0:l.value)==="infinite"&&c.m("spin")],style:{width:u.value||"",transform:`rotate(${l==null?void 0:l.value}deg)`,verticalAlign:"middle"}},t.attrs),null),w=()=>e.createVNode(p,e.mergeProps({name:i.value,color:s.value,size:u.value,class:[(l==null?void 0:l.value)==="infinite"&&c.m("spin")],style:{transform:`rotate(${l==null?void 0:l.value}deg)`}},t.attrs),null),Z=()=>{const U=/^icon-/.test(i.value)?i.value:`${r.value}-${i.value}`;return e.createVNode("i",e.mergeProps({class:[r.value,U,(l==null?void 0:l.value)==="infinite"&&c.m("spin")],style:{fontSize:u.value,color:s.value,transform:`rotate(${l==null?void 0:l.value}deg)`}},t.attrs),null)};return{iconDom:()=>o.value?w():x(i.value)?f():Z()}}var S=e.defineComponent({name:"DIcon",props:b,emits:["click"],setup(n,t){const{disabled:o,operable:i}=e.toRefs(n),{iconDom:a}=I(n,t),s=m("icon"),r=e.computed(()=>({[s.e("container")]:!0,[s.m("disabled")]:o.value,[s.m("operable")]:i.value})),l=c=>{o.value||t.emit("click",c)};return()=>{var c,u,p,f;return e.createVNode("div",{class:r.value,onClick:l},[(u=(c=t.slots).prefix)==null?void 0:u.call(c),a(),(f=(p=t.slots).suffix)==null?void 0:f.call(p)])}}}),G="";e.defineComponent({name:"DIconGroup",setup(n,t){const o=m("icon-group");return()=>{var i,a;return e.createVNode("div",{class:o.b()},[(a=(i=t.slots).default)==null?void 0:a.call(i)])}}});var D=e.defineComponent({emits:["click"],setup(n,{emit:t}){const o=m("notification");return()=>e.createVNode("div",{class:o.e("icon-close"),onClick:i=>t("click",i)},[e.createVNode(S,{name:"close",size:"14px"},null)])}});const g=m("notification"),h={"xmlns:xlink":"http://www.w3.org/1999/xlink"},V={"xlink:href":"#path-s"};function P(){return e.createVNode("svg",e.mergeProps({width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h),[e.createVNode("defs",null,[e.createVNode("polygon",{id:"path-s",points:"6.53553391 9.77817459 12.1923882 4.12132034 13.6066017 5.53553391 6.53553391 12.6066017 3 9.07106781 4.41421356 7.65685425 6.53553391 9.77817459"},null)]),e.createVNode("g",{id:"correct",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("mask",{id:"mask-2",fill:"white"},[e.createVNode("use",V,null)]),e.createVNode("use",e.mergeProps({id:"Mask",class:g.e("image-success-path")},V),null)])])}function T(){return e.createVNode("svg",e.mergeProps({width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h),[e.createVNode("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{class:g.e("warning-outer"),d:"M8.96244623,0.57254229 L15.8714442,13.4101975 C16.1549662,13.9370117 15.9538562,14.5918482 15.4222523,14.8728158 C15.2642579,14.9563203 15.0879506, 15 14.9088903,15 L1.09089441,15 C0.488410063,15 0,14.5159904 0,13.9189343 C0,13.7414873 0.0440768395,13.5667684 0.128340519,13.4101975 L7.03733844,0.57254229 C7.32086049, 0.0457280838 7.98165058,-0.153569987 8.51325441,0.127397589 C8.70423071, 0.228333932 8.8605922,0.383286648 8.96244623,0.57254229 Z"},null),e.createVNode("path",{class:g.e("warning-inner"),"stroke-width":"0.3","fill-rule":"nonzero",d:"M8.87894737,13 L7.08947368,13 L7.08947368,11.2105263 L8.87894737,11.2105263 L8.87894737,13 Z M8.62102372,9.86842105 L7.32800539,9.86842105 L7,4.5 L8.96842105,4.5 L8.62102372,9.86842105 Z"},null)])])}function $(){return e.createVNode("svg",e.mergeProps({width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h),[e.createVNode("g",{id:"info",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("path",{class:g.e("image-info-path"),d:"M7,13 L7,6 L9,6 L9,13 L7,13 Z M7,5 L7,3 L9,3 L9,5 L7,5 Z",id:"info"},null)])])}function _(){return e.createVNode("svg",e.mergeProps({width:"16px",height:"16px",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},h),[e.createVNode("defs",null,[e.createVNode("polygon",{id:"path-e",points:"8.07106781 6.65685425 10.8994949 3.82842712 12.3137085 5.24264069 9.48528137 8.07106781 12.3137085 10.8994949 10.8994949 12.3137085 8.07106781 9.48528137 5.24264069 12.3137085 3.82842712 10.8994949 6.65685425 8.07106781 3.82842712 5.24264069 5.24264069 3.82842712"},null)]),e.createVNode("g",{id:"error",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createVNode("mask",{id:"mask-2",fill:"white"},[e.createVNode("use",V,null)]),e.createVNode("use",e.mergeProps({id:"Mask",class:g.e("image-error-path")},V),null)])])}var E=e.defineComponent({props:{type:{type:String,default:"normal"}},setup(n){const{type:t}=e.toRefs(n),o=m("notification"),i=e.computed(()=>({[o.e("image")]:!0,[o.em("image",t.value)]:!0}));return()=>e.createVNode("span",{class:i.value},[t.value&&t.value!=="normal"&&(t.value==="success"&&e.createVNode(P,null,null)||t.value==="info"&&e.createVNode($,null,null)||t.value==="warning"&&e.createVNode(T,null,null)||t.value==="error"&&e.createVNode(_,null,null))])}});function M(n){return{classes:e.computed(()=>({"devui-notification-item-container":!0,[`devui-notification-message-${n.type}`]:!0}))}}function R(n,t){let o=null,i;const a=()=>{var c;o&&clearTimeout(o),o=null,(c=n.onClose)==null||c.call(n),t("update:modelValue",!1)},s=()=>{o&&(clearTimeout(o),o=null)},r=()=>{if(!n.modelValue){const c=n.duration-(Date.now()-i);o=setTimeout(a,c)}},l=()=>{t("destroy")};return e.watch(()=>n.modelValue,c=>{c&&(i=Date.now(),n.duration&&(o=setTimeout(a,n.duration)))}),{interrupt:s,removeReset:r,close:a,handleDestroy:l}}var K="",y=e.defineComponent({name:"DNotification",props:v,emits:["update:modelValue","destroy"],setup(n,{emit:t,slots:o}){const{modelValue:i,title:a,type:s}=e.toRefs(n),{classes:r}=M(n),{interrupt:l,removeReset:c,close:u,handleDestroy:p}=R(n,t),f=m("notification");return()=>e.createVNode(e.Transition,{name:"notification-fade",onAfterLeave:p},{default:()=>{var w;return[i.value&&e.createVNode("div",{class:f.b()},[e.createVNode("div",{class:r.value,onMouseenter:l,onMouseleave:c},[e.createVNode("div",{class:f.e("item")},[e.createVNode(D,{onClick:u},null),a.value&&e.createVNode(E,{type:s.value},null),e.createVNode("div",{class:f.e("message")},[e.createVNode("span",{class:f.e("title")},[a.value]),e.createVNode("span",{class:f.e("content")},[(w=o.default)==null?void 0:w.call(o)])])])])])]}})}});function z(n){return typeof n=="function"||Object.prototype.toString.call(n)==="[object Object]"&&!e.isVNode(n)}const B={modelValue:!1,duration:3e3,type:"normal"};function j(n,t){const o=document.createElement("div");o.classList.add("notification__warpper");const i=document.body.lastElementChild;let a=50;if(i!=null&&i.classList.contains("notification__warpper")){const l=i.lastElementChild.getBoundingClientRect(),c=l.height,u=l.top;a=c+u}const s=e.createApp({setup(){return e.onUnmounted(()=>{document.body.removeChild(o)}),()=>e.createVNode(y,e.mergeProps(n,{onDestroy:s.unmount,style:[`top: ${a}px`]}),z(t)?t:{default:()=>[t]})}});return document.body.appendChild(o),s.mount(o),s}function A(n,t){n.modelValue=!1,t==null||t()}class C{static open(t){const o=t.onClose||null,i=t.content;let a;delete t.content;const s=e.reactive({...B,...t,onClose:()=>{A(s,o)}});j(s,i),s.modelValue=!0,clearTimeout(a),t.duration&&s.onClose&&(a=setTimeout(s.onClose,t.duration))}}var F={title:"Notification \u5168\u5C40\u901A\u77E5",category:"\u53CD\u9988",status:"100%",install(n){n.component(y.name,y),n.config.globalProperties.$notificationService=C}};d.Notification=y,d.NotificationService=C,d.default=F,d.notificationProps=v,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "notification",
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-icon-group{display:inline-flex;align-items:center}.devui-icon-group>.devui-icon__container:not(.devui-icon--operable){padding:8px;margin-left:0}.devui-icon-group>.devui-icon__container:not(.devui-icon--operable):first-child{margin-left:-8px}.devui-icon-group>*:not(:first-child){margin-left:0}.devui-notification{position:fixed;top:50px;right:20px;width:20em;word-break:normal;word-wrap:break-word;z-index:1060}.devui-notification a:link,.devui-notification a:visited{color:var(--devui-link-light, #96adfa)}.devui-notification a:hover,.devui-notification a:active{color:var(--devui-link-light-active, #beccfa)}.devui-notification-item-container{position:relative;margin:0 0 8px;opacity:.95;filter:alpha(opacity=95);box-shadow:var(--devui-shadow-length-feedback-overlay, 0 8px 16px 0) var(--devui-shadow, rgba(37, 43, 58, .2));border-radius:var(--devui-border-radius-feedback, 4px);color:var(--devui-feedback-overlay-text, #dfe1e6);background-color:var(--devui-feedback-overlay-bg, #464d6e)}.devui-notification__item{position:relative;display:block;padding:12px 16px}.devui-notification__icon-close{position:absolute;top:7px;right:10px;cursor:pointer}.devui-notification__icon-close i.icon{color:var(--devui-light-text, #ffffff)!important}.devui-notification__title{font-size:var(--devui-font-size-card-title, 16px);padding:0 0 calc(.5em - 2px) 0;display:block;font-weight:700}.devui-notification__image{position:absolute;display:inline-block;width:16px;height:16px;border-radius:50%;left:16px;top:14px;padding:0;line-height:1}.devui-notification__image.devui-notification__image--warning path.devui-notification__warning-outer{fill:var(--devui-warning-line, #fa9841)}.devui-notification__image.devui-notification__image--warning path.devui-notification__warning-inner{fill:var(--devui-light-text, #ffffff);stroke:var(--devui-light-text, #ffffff)}.devui-notification__image.devui-notification__image--info{background-color:var(--devui-info, #5e7ce0)}.devui-notification__image.devui-notification__image--error{background-color:var(--devui-danger, #f66f6a)}.devui-notification__image.devui-notification__image--success{background-color:var(--devui-success, #50d4ab)}.devui-notification__image .devui-notification__image-info-path,.devui-notification__image .devui-notification__image-error-path,.devui-notification__image .devui-notification__image-success-path{fill:var(--devui-light-text, #ffffff)}.devui-notification__message{margin-left:20px}.devui-notification__message .devui-notification__content{font-size:var(--devui-font-size, 14px);margin-top:4px}.devui-notification-message-common .devui-notification__message{margin-left:0}.devui-notification__message p{font-size:var(--devui-font-size, 14px);margin-top:4px}.notification-fade-enter-active,.notification-fade-leave-active{transition:transform var(--devui-animation-duration-slow, .3s) var(--devui-animation-ease-in-out, cubic-bezier(.5, .05, .5, .95))}.notification-fade-enter-from,.notification-fade-leave-to{transform:translate(100%)}
@@ -0,0 +1,3 @@
1
+ import '../../alert/style.css'
2
+
3
+ export { Alert as default } from '../../alert/index.es.js'
@@ -0,0 +1,3 @@
1
+ import '../../layout/style.css'
2
+
3
+ export { Aside as default } from '../../layout/index.es.js'
@@ -0,0 +1,3 @@
1
+ import '../../auto-complete/style.css'
2
+
3
+ export { AutoComplete as default } from '../../auto-complete/index.es.js'
@@ -0,0 +1,3 @@
1
+ import '../../avatar/style.css'
2
+
3
+ export { Avatar as default } from '../../avatar/index.es.js'
@@ -0,0 +1,3 @@
1
+ import '../../badge/style.css'
2
+
3
+ export { Badge as default } from '../../badge/index.es.js'
@@ -0,0 +1,3 @@
1
+ import '../../button/style.css'
2
+
3
+ export { Button as default } from '../../button/index.es.js'
@@ -0,0 +1,3 @@
1
+ import '../../button/style.css'
2
+
3
+ export { ButtonGroup as default } from '../../button/index.es.js'