easy-component-ui 2.0.5 → 2.1.0

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 (483) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +90 -0
  3. package/build/components/Base.js +1 -0
  4. package/build/components/ea-alert/index.js +1 -0
  5. package/build/components/ea-alert/src/style/stylesheet.js +1 -0
  6. package/build/components/ea-aside/index.js +1 -0
  7. package/build/components/ea-avatar/index.js +1 -0
  8. package/build/components/ea-avatar/src/assets/defaultAvatar.js +1 -0
  9. package/build/components/ea-avatar/src/assets/errorAvatar.js +1 -0
  10. package/build/components/ea-avatar/src/assets/iconAndTextAvatar.js +1 -0
  11. package/build/components/ea-avatar/src/style/stylesheet.js +1 -0
  12. package/build/components/ea-backtop/index.js +1 -0
  13. package/build/components/ea-backtop/src/style/stylesheet.js +1 -0
  14. package/build/components/ea-badge/index.js +1 -0
  15. package/build/components/ea-badge/src/style/stylesheet.js +1 -0
  16. package/build/components/ea-breadcrumb/index.js +1 -0
  17. package/build/components/ea-breadcrumb/src/style/stylesheet.js +1 -0
  18. package/build/components/ea-breadcrumb-item/index.js +1 -0
  19. package/build/components/ea-breadcrumb-item/src/style/style.js +1 -0
  20. package/build/components/ea-button/index.js +1 -0
  21. package/build/components/ea-button/src/components/ButtonComm.js +1 -0
  22. package/build/components/ea-button/src/components/HrefComm.js +1 -0
  23. package/build/components/ea-button/src/style/stylesheet.js +1 -0
  24. package/build/components/ea-button-group/index.js +1 -0
  25. package/build/components/ea-button-group/src/style/stylesheet.js +1 -0
  26. package/build/components/ea-calendar/index.js +1 -0
  27. package/build/components/ea-calendar/src/style/stylesheet.js +1 -0
  28. package/build/components/ea-calendar/src/utils/createChangerElement.js +1 -0
  29. package/build/components/ea-calendar/src/utils/createThead.js +1 -0
  30. package/build/components/ea-calendar/src/utils/getDate.js +1 -0
  31. package/build/components/ea-calendar/src/utils/getUserWeekStart.js +1 -0
  32. package/build/components/ea-card/index.js +1 -0
  33. package/build/components/ea-card/src/style/stylesheet.js +1 -0
  34. package/build/components/ea-carousel/index.js +1 -0
  35. package/build/components/ea-carousel/src/style/stylesheet.js +1 -0
  36. package/build/components/ea-carousel/src/utils/handleIndexOverflow.js +1 -0
  37. package/build/components/ea-carousel-item/index.js +1 -0
  38. package/build/components/ea-carousel-item/src/style/stylesheet.js +1 -0
  39. package/build/components/ea-checkbox/index.js +1 -0
  40. package/build/components/ea-checkbox/src/style/stylesheet.js +1 -0
  41. package/build/components/ea-checkbox-group/index.js +1 -0
  42. package/build/components/ea-checkbox-group/src/style/stylesheet.js +1 -0
  43. package/build/components/ea-collapse/index.js +1 -0
  44. package/build/components/ea-collapse-item/index.js +1 -0
  45. package/build/components/ea-collapse-item/src/style/stylesheet.js +1 -0
  46. package/build/components/ea-container/index.js +1 -0
  47. package/build/components/ea-date-picker/index.js +1 -0
  48. package/build/components/ea-date-picker/src/style/stylesheet.js +1 -0
  49. package/build/components/ea-descriptions/index.js +1 -0
  50. package/build/components/ea-descriptions/src/components/contentTemplate.js +1 -0
  51. package/build/components/ea-descriptions/src/components/getTdTemplate_border.js +1 -0
  52. package/build/components/ea-descriptions/src/components/getTdTemplate_direction.js +1 -0
  53. package/build/components/ea-descriptions/src/components/getThTemplate_direction.js +1 -0
  54. package/build/components/ea-descriptions/src/components/getThTemplate_normal.js +1 -0
  55. package/build/components/ea-descriptions/src/style/stylesheet.js +1 -0
  56. package/build/components/ea-descriptions-item/index.js +1 -0
  57. package/build/components/ea-descriptions-item/src/stylesheet.js +1 -0
  58. package/build/components/ea-drawer/index.js +1 -0
  59. package/build/components/ea-drawer/src/style/stylesheet.js +1 -0
  60. package/build/components/ea-empty/index.js +1 -0
  61. package/build/components/ea-empty/src/assets/emptyStatusSVG.js +1 -0
  62. package/build/components/ea-empty/src/style/stylesheet.js +1 -0
  63. package/build/components/ea-footer/index.js +1 -0
  64. package/build/components/ea-form/index.js +1 -0
  65. package/build/components/ea-form-item/index.js +1 -0
  66. package/build/components/ea-form-item/src/style/stylesheet.js +1 -0
  67. package/build/components/ea-header/index.js +1 -0
  68. package/build/components/ea-icon/config.json +1030 -0
  69. package/{components/ea-icon/css/fontello-codes.css → build/components/ea-icon/css/fontello.css} +312 -123
  70. package/build/components/ea-icon/font/fontello.eot +0 -0
  71. package/build/components/ea-icon/font/fontello.svg +350 -0
  72. package/build/components/ea-icon/font/fontello.ttf +0 -0
  73. package/build/components/ea-icon/font/fontello.woff +0 -0
  74. package/build/components/ea-icon/font/fontello.woff2 +0 -0
  75. package/build/components/ea-icon/index.css +1 -0
  76. package/build/components/ea-icon/index.js +1 -0
  77. package/build/components/ea-image/index.js +1 -0
  78. package/build/components/ea-image/src/assets/errorImage.js +1 -0
  79. package/build/components/ea-image/src/style/stylesheet.js +1 -0
  80. package/build/components/ea-image/src/utils/createPreviewTools.js +1 -0
  81. package/build/components/ea-infinite-scroll/index.js +1 -0
  82. package/build/components/ea-infinite-scroll-item/index.js +1 -0
  83. package/build/components/ea-input/index.js +1 -0
  84. package/build/components/ea-input/src/components/createFixIcon.js +1 -0
  85. package/build/components/ea-input/src/components/createSuggestionBoard.js +1 -0
  86. package/build/components/ea-input/src/components/createWordLimitElement.js +1 -0
  87. package/build/components/ea-input/src/style/stylesheet.js +1 -0
  88. package/build/components/ea-input/src/utils/dispatchEvent.js +1 -0
  89. package/build/components/ea-input/src/utils/handleSearchResult.js +1 -0
  90. package/build/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +1 -0
  91. package/build/components/ea-input-number/index.js +1 -0
  92. package/build/components/ea-input-number/src/style/stylesheet.js +1 -0
  93. package/build/components/ea-input-number/src/utils/handleCustomEvent.js +1 -0
  94. package/build/components/ea-link/index.js +1 -0
  95. package/build/components/ea-link/src/style/stylesheet.js +1 -0
  96. package/build/components/ea-loading/index.js +1 -0
  97. package/build/components/ea-loading/src/style/stylesheet.js +1 -0
  98. package/build/components/ea-main/index.js +1 -0
  99. package/build/components/ea-menu/index.js +1 -0
  100. package/build/components/ea-menu/src/style/stylesheet.js +1 -0
  101. package/build/components/ea-menu/src/utils/handleMenuItemEvent.js +1 -0
  102. package/build/components/ea-menu-item/index.js +1 -0
  103. package/build/components/ea-menu-item/src/style/stylesheet.js +1 -0
  104. package/build/components/ea-menu-item-group/index.js +1 -0
  105. package/build/components/ea-menu-item-group/src/style/stylesheet.js +1 -0
  106. package/build/components/ea-message/index.js +1 -0
  107. package/build/components/ea-message/src/style/stylesheet.js +1 -0
  108. package/build/components/ea-message/src/utils/MessageClass.js +1 -0
  109. package/build/components/ea-message-box/index.js +1 -0
  110. package/build/components/ea-message-box/src/style/stylesheet.js +1 -0
  111. package/build/components/ea-message-box/src/utils/EaMessageBoxClass.js +1 -0
  112. package/build/components/ea-option/index.js +1 -0
  113. package/build/components/ea-option/src/style/stylesheet.js +1 -0
  114. package/build/components/ea-option-gropu/index.js +1 -0
  115. package/build/components/ea-page-header/index.js +1 -0
  116. package/build/components/ea-page-header/src/style/stylesheet.js +1 -0
  117. package/build/components/ea-pagination/index.js +1 -0
  118. package/build/components/ea-pagination/src/components/getMoreItem.js +1 -0
  119. package/build/components/ea-pagination/src/components/getPageItem.js +1 -0
  120. package/build/components/ea-pagination/src/components/getShowTotalItem.js +1 -0
  121. package/build/components/ea-pagination/src/style/stylesheet.js +1 -0
  122. package/build/components/ea-pane/index.js +1 -0
  123. package/build/components/ea-pane/src/stylesheet.js +1 -0
  124. package/build/components/ea-progress/index.js +1 -0
  125. package/build/components/ea-progress/src/components/SVGComm.js +1 -0
  126. package/build/components/ea-progress/src/style/stylesheet.js +1 -0
  127. package/build/components/ea-radio/index.js +1 -0
  128. package/build/components/ea-radio/src/style/stylesheet.js +1 -0
  129. package/build/components/ea-radio-group/index.js +1 -0
  130. package/build/components/ea-rate/index.js +1 -0
  131. package/build/components/ea-rate/src/components/rateComm.js +1 -0
  132. package/build/components/ea-rate/src/style/stylesheet.js +1 -0
  133. package/build/components/ea-result/index.js +1 -0
  134. package/build/components/ea-result/src/style/stylesheet.js +1 -0
  135. package/build/components/ea-select/index.js +1 -0
  136. package/build/components/ea-select/src/style/stylesheet.js +1 -0
  137. package/build/components/ea-skeleton/index.js +1 -0
  138. package/build/components/ea-skeleton/src/style/stylesheet.js +1 -0
  139. package/build/components/ea-skeleton/src/utils/createSkeletonElement.js +1 -0
  140. package/build/components/ea-skeleton-item/index.js +1 -0
  141. package/build/components/ea-skeleton-item/src/assets/imageSVG.js +1 -0
  142. package/build/components/ea-skeleton-item/src/style/stylesheet.js +1 -0
  143. package/build/components/ea-step/index.js +1 -0
  144. package/build/components/ea-step/src/style/stylesheet.js +1 -0
  145. package/build/components/ea-steps/index.js +1 -0
  146. package/build/components/ea-steps/src/style/stylesheet.js +1 -0
  147. package/build/components/ea-submenu/index.js +1 -0
  148. package/build/components/ea-submenu/src/style/stylesheet.js +1 -0
  149. package/build/components/ea-switch/index.js +1 -0
  150. package/build/components/ea-switch/src/style/stylesheet.js +1 -0
  151. package/build/components/ea-tab/index.js +1 -0
  152. package/build/components/ea-tab/src/style/stylesheet.js +1 -0
  153. package/build/components/ea-table/index.js +1 -0
  154. package/build/components/ea-table/src/style/stylesheet.js +1 -0
  155. package/build/components/ea-table-column/index.js +1 -0
  156. package/build/components/ea-tabs/index.js +1 -0
  157. package/build/components/ea-tabs/src/style/stylesheet.js +1 -0
  158. package/build/components/ea-tag/index.js +1 -0
  159. package/build/components/ea-tag/src/style/stylesheet.js +1 -0
  160. package/build/components/ea-textarea/index.js +1 -0
  161. package/build/components/ea-textarea/src/style/stylesheet.js +1 -0
  162. package/build/components/ea-time-picker/index.js +1 -0
  163. package/build/components/ea-time-picker/src/style/stylesheet.js +1 -0
  164. package/build/components/ea-timeline/index.js +1 -0
  165. package/build/components/ea-timeline/style/stylesheet.js +1 -0
  166. package/build/components/ea-timeline-item/index.js +1 -0
  167. package/build/components/ea-timeline-item/src/style/stylesheet.js +1 -0
  168. package/build/components/globalConfig.js +1 -0
  169. package/build/components/index.js +1 -0
  170. package/build/utils/Validator.js +1 -0
  171. package/build/utils/createElement.js +1 -0
  172. package/build/utils/handleDefaultAttrIsTrue.js +1 -0
  173. package/build/utils/handleTemplate.js +1 -0
  174. package/build/utils/setStyle.js +1 -0
  175. package/build/utils/timeout.js +1 -0
  176. package/components/Base.js +75 -1
  177. package/components/ea-alert/index.css +91 -0
  178. package/components/ea-alert/index.js +210 -1
  179. package/components/ea-alert/index.scss +108 -0
  180. package/components/ea-alert/src/style/stylesheet.js +85 -1
  181. package/components/ea-aside/index.css +9 -0
  182. package/components/ea-aside/index.js +54 -1
  183. package/components/ea-aside/index.scss +12 -0
  184. package/components/ea-avatar/index.css +66 -0
  185. package/components/ea-avatar/index.js +156 -1
  186. package/components/ea-avatar/index.scss +59 -0
  187. package/components/ea-avatar/src/assets/defaultAvatar.js +12 -1
  188. package/components/ea-avatar/src/assets/errorAvatar.js +9 -1
  189. package/components/ea-avatar/src/assets/iconAndTextAvatar.js +18 -1
  190. package/components/ea-avatar/src/style/stylesheet.js +61 -1
  191. package/components/ea-backtop/index.css +27 -0
  192. package/components/ea-backtop/index.js +167 -1
  193. package/components/ea-backtop/index.scss +29 -0
  194. package/components/ea-backtop/src/style/stylesheet.js +21 -1
  195. package/components/ea-badge/index.css +49 -0
  196. package/components/ea-badge/index.js +103 -1
  197. package/components/ea-badge/index.scss +56 -0
  198. package/components/ea-badge/src/style/stylesheet.js +43 -1
  199. package/components/ea-breadcrumb/index.css +6 -0
  200. package/components/ea-breadcrumb/index.js +90 -1
  201. package/components/ea-breadcrumb/index.scss +7 -0
  202. package/components/ea-breadcrumb/src/style/stylesheet.js +8 -1
  203. package/components/ea-breadcrumb-item/index.css +10 -0
  204. package/components/ea-breadcrumb-item/index.js +23 -1
  205. package/components/ea-breadcrumb-item/index.scss +12 -0
  206. package/components/ea-breadcrumb-item/src/style/style.js +12 -1
  207. package/components/ea-button/index.css +206 -0
  208. package/components/ea-button/index.js +198 -1
  209. package/components/ea-button/index.scss +143 -0
  210. package/components/ea-button/src/components/ButtonComm.js +5 -1
  211. package/components/ea-button/src/components/HrefComm.js +5 -1
  212. package/components/ea-button/src/style/stylesheet.js +208 -1
  213. package/components/ea-button-group/index.css +16 -0
  214. package/components/ea-button-group/index.js +44 -1
  215. package/components/ea-button-group/index.scss +20 -0
  216. package/components/ea-button-group/src/style/stylesheet.js +18 -1
  217. package/components/ea-calendar/index.css +72 -0
  218. package/components/ea-calendar/index.js +298 -1
  219. package/components/ea-calendar/index.scss +106 -0
  220. package/components/ea-calendar/src/style/stylesheet.js +74 -1
  221. package/components/ea-calendar/src/utils/createChangerElement.js +10 -1
  222. package/components/ea-calendar/src/utils/createThead.js +18 -1
  223. package/components/ea-calendar/src/utils/getDate.js +11 -1
  224. package/components/ea-calendar/src/utils/getUserWeekStart.js +11 -1
  225. package/components/ea-card/index.css +25 -0
  226. package/components/ea-card/index.js +51 -1
  227. package/components/ea-card/index.scss +24 -0
  228. package/components/ea-card/src/style/stylesheet.js +19 -1
  229. package/components/ea-carousel/index.css +103 -0
  230. package/components/ea-carousel/index.js +222 -1
  231. package/components/ea-carousel/index.scss +140 -0
  232. package/components/ea-carousel/src/style/stylesheet.js +105 -1
  233. package/components/ea-carousel/src/utils/handleIndexOverflow.js +9 -1
  234. package/components/ea-carousel-item/index.css +20 -0
  235. package/components/ea-carousel-item/index.js +23 -1
  236. package/components/ea-carousel-item/index.scss +26 -0
  237. package/components/ea-carousel-item/src/style/stylesheet.js +22 -1
  238. package/components/ea-checkbox/index.css +108 -0
  239. package/components/ea-checkbox/index.js +160 -1
  240. package/components/ea-checkbox/index.scss +141 -0
  241. package/components/ea-checkbox/src/style/stylesheet.js +110 -1
  242. package/components/ea-checkbox-group/index.css +6 -0
  243. package/components/ea-checkbox-group/index.js +120 -1
  244. package/components/ea-checkbox-group/index.scss +7 -0
  245. package/components/ea-checkbox-group/src/style/stylesheet.js +8 -1
  246. package/components/ea-collapse/index.css +0 -0
  247. package/components/ea-collapse/index.js +109 -1
  248. package/components/ea-collapse/index.scss +4 -0
  249. package/components/ea-collapse-item/index.css +31 -0
  250. package/components/ea-collapse-item/index.js +111 -1
  251. package/components/ea-collapse-item/index.scss +46 -0
  252. package/components/ea-collapse-item/src/style/stylesheet.js +33 -1
  253. package/components/ea-container/index.css +14 -0
  254. package/components/ea-container/index.js +85 -1
  255. package/components/ea-container/index.scss +18 -0
  256. package/components/ea-date-picker/index.css +17 -0
  257. package/components/ea-date-picker/index.js +191 -1
  258. package/components/ea-date-picker/index.scss +29 -0
  259. package/components/ea-date-picker/src/style/stylesheet.js +19 -1
  260. package/components/ea-descriptions/index.css +33 -0
  261. package/components/ea-descriptions/index.js +171 -1
  262. package/components/ea-descriptions/index.scss +45 -0
  263. package/components/ea-descriptions/src/components/contentTemplate.js +11 -1
  264. package/components/ea-descriptions/src/components/getTdTemplate_border.js +6 -1
  265. package/components/ea-descriptions/src/components/getTdTemplate_direction.js +7 -1
  266. package/components/ea-descriptions/src/components/getThTemplate_direction.js +7 -1
  267. package/components/ea-descriptions/src/components/getThTemplate_normal.js +8 -1
  268. package/components/ea-descriptions/src/style/stylesheet.js +35 -1
  269. package/components/ea-descriptions-item/index.css +21 -0
  270. package/components/ea-descriptions-item/index.js +71 -1
  271. package/components/ea-descriptions-item/index.scss +29 -0
  272. package/components/ea-descriptions-item/src/stylesheet.js +23 -1
  273. package/components/ea-drawer/index.css +138 -0
  274. package/components/ea-drawer/index.js +251 -1
  275. package/components/ea-drawer/index.scss +208 -0
  276. package/components/ea-drawer/src/style/stylesheet.js +141 -1
  277. package/components/ea-empty/index.css +30 -0
  278. package/components/ea-empty/index.js +93 -1
  279. package/components/ea-empty/index.scss +30 -0
  280. package/components/ea-empty/src/assets/emptyStatusSVG.js +6 -1
  281. package/components/ea-empty/src/style/stylesheet.js +24 -1
  282. package/components/ea-footer/index.css +7 -0
  283. package/components/ea-footer/index.js +57 -1
  284. package/components/ea-footer/index.scss +10 -0
  285. package/components/ea-form/index.css +0 -0
  286. package/components/ea-form/index.js +121 -1
  287. package/components/ea-form/index.scss +0 -0
  288. package/components/ea-form-item/index.css +62 -0
  289. package/components/ea-form-item/index.js +152 -1
  290. package/components/ea-form-item/index.scss +83 -0
  291. package/components/ea-form-item/src/style/stylesheet.js +64 -1
  292. package/components/ea-header/index.css +7 -0
  293. package/components/ea-header/index.js +55 -1
  294. package/components/ea-header/index.scss +10 -0
  295. package/components/ea-icon/css/fontello.css +312 -226
  296. package/components/ea-icon/index.css +1 -2
  297. package/components/ea-icon/index.js +84 -1
  298. package/components/ea-image/index.css +84 -0
  299. package/components/ea-image/index.js +182 -1
  300. package/components/ea-image/index.scss +111 -0
  301. package/components/ea-image/src/assets/errorImage.js +9 -1
  302. package/components/ea-image/src/assets/errorImage.svg +7 -0
  303. package/components/ea-image/src/style/stylesheet.js +86 -1
  304. package/components/ea-image/src/utils/createPreviewTools.js +140 -1
  305. package/components/ea-infinite-scroll/index.css +0 -0
  306. package/components/ea-infinite-scroll/index.js +119 -1
  307. package/components/ea-infinite-scroll/index.scss +0 -0
  308. package/components/ea-infinite-scroll-item/index.css +0 -0
  309. package/components/ea-infinite-scroll-item/index.js +18 -1
  310. package/components/ea-infinite-scroll-item/index.scss +0 -0
  311. package/components/ea-input/index.css +139 -0
  312. package/components/ea-input/index.js +398 -1
  313. package/components/ea-input/index.scss +178 -0
  314. package/components/ea-input/src/components/createFixIcon.js +108 -1
  315. package/components/ea-input/src/components/createSuggestionBoard.js +43 -1
  316. package/components/ea-input/src/components/createWordLimitElement.js +18 -1
  317. package/components/ea-input/src/style/stylesheet.js +141 -1
  318. package/components/ea-input/src/utils/dispatchEvent.js +9 -1
  319. package/components/ea-input/src/utils/handleSearchResult.js +9 -1
  320. package/components/ea-input/src/utils/handleSuggestionBoardTrigger.js +31 -1
  321. package/components/ea-input-number/index.css +120 -0
  322. package/components/ea-input-number/index.js +308 -1
  323. package/components/ea-input-number/index.scss +132 -0
  324. package/components/ea-input-number/src/style/stylesheet.js +122 -1
  325. package/components/ea-input-number/src/utils/handleCustomEvent.js +5 -1
  326. package/components/ea-link/index.css +48 -0
  327. package/components/ea-link/index.js +122 -1
  328. package/components/ea-link/index.scss +36 -0
  329. package/components/ea-link/src/style/stylesheet.js +50 -1
  330. package/components/ea-loading/index.css +38 -0
  331. package/components/ea-loading/index.js +166 -1
  332. package/components/ea-loading/index.scss +55 -0
  333. package/components/ea-loading/src/style/stylesheet.js +40 -1
  334. package/components/ea-main/index.css +8 -0
  335. package/components/ea-main/index.js +32 -1
  336. package/components/ea-main/index.scss +11 -0
  337. package/components/ea-menu/index.css +19 -0
  338. package/components/ea-menu/index.js +131 -1
  339. package/components/ea-menu/index.scss +22 -0
  340. package/components/ea-menu/src/style/stylesheet.js +21 -1
  341. package/components/ea-menu/src/utils/handleMenuItemEvent.js +32 -1
  342. package/components/ea-menu-item/index.css +48 -0
  343. package/components/ea-menu-item/index.js +130 -1
  344. package/components/ea-menu-item/index.scss +62 -0
  345. package/components/ea-menu-item/src/style/stylesheet.js +50 -1
  346. package/components/ea-menu-item-group/index.css +42 -0
  347. package/components/ea-menu-item-group/index.js +130 -1
  348. package/components/ea-menu-item-group/index.scss +60 -0
  349. package/components/ea-menu-item-group/src/style/stylesheet.js +44 -1
  350. package/components/ea-message/index.css +47 -0
  351. package/components/ea-message/index.js +171 -1
  352. package/components/ea-message/index.scss +70 -0
  353. package/components/ea-message/src/style/stylesheet.js +48 -1
  354. package/components/ea-message/src/utils/MessageClass.js +67 -1
  355. package/components/ea-message-box/index.css +85 -0
  356. package/components/ea-message-box/index.js +211 -1
  357. package/components/ea-message-box/index.scss +113 -0
  358. package/components/ea-message-box/src/style/stylesheet.js +87 -1
  359. package/components/ea-message-box/src/utils/EaMessageBoxClass.js +60 -1
  360. package/components/ea-option/index.css +24 -0
  361. package/components/ea-option/index.js +74 -1
  362. package/components/ea-option/index.scss +31 -0
  363. package/components/ea-option/src/style/stylesheet.js +26 -1
  364. package/components/ea-option-gropu/index.css +6 -0
  365. package/components/ea-option-gropu/index.js +57 -1
  366. package/components/ea-option-gropu/index.scss +8 -0
  367. package/components/ea-page-header/index.css +33 -0
  368. package/components/ea-page-header/index.js +91 -1
  369. package/components/ea-page-header/index.scss +44 -0
  370. package/components/ea-page-header/src/style/stylesheet.js +35 -1
  371. package/components/ea-pagination/index.css +69 -0
  372. package/components/ea-pagination/index.js +305 -1
  373. package/components/ea-pagination/index.scss +89 -0
  374. package/components/ea-pagination/src/components/getMoreItem.js +20 -1
  375. package/components/ea-pagination/src/components/getPageItem.js +11 -1
  376. package/components/ea-pagination/src/components/getShowTotalItem.js +7 -1
  377. package/components/ea-pagination/src/style/stylesheet.js +71 -1
  378. package/components/ea-pane/index.css +6 -0
  379. package/components/ea-pane/index.js +52 -1
  380. package/components/ea-pane/index.scss +7 -0
  381. package/components/ea-pane/src/stylesheet.js +8 -1
  382. package/components/ea-progress/index.css +61 -0
  383. package/components/ea-progress/index.js +249 -1
  384. package/components/ea-progress/index.scss +74 -0
  385. package/components/ea-progress/src/components/SVGComm.js +18 -1
  386. package/components/ea-progress/src/style/stylesheet.js +55 -1
  387. package/components/ea-radio/index.css +82 -0
  388. package/components/ea-radio/index.js +137 -1
  389. package/components/ea-radio/index.scss +119 -0
  390. package/components/ea-radio/src/style/stylesheet.js +84 -1
  391. package/components/ea-radio-group/index.css +3 -0
  392. package/components/ea-radio-group/index.js +96 -1
  393. package/components/ea-radio-group/index.scss +3 -0
  394. package/components/ea-rate/index.css +44 -0
  395. package/components/ea-rate/index.js +243 -1
  396. package/components/ea-rate/index.scss +55 -0
  397. package/components/ea-rate/src/components/rateComm.js +20 -1
  398. package/components/ea-rate/src/style/stylesheet.js +45 -1
  399. package/components/ea-result/index.css +37 -0
  400. package/components/ea-result/index.js +109 -1
  401. package/components/ea-result/index.scss +46 -0
  402. package/components/ea-result/src/style/stylesheet.js +39 -1
  403. package/components/ea-select/index.css +47 -0
  404. package/components/ea-select/index.js +312 -1
  405. package/components/ea-select/index.scss +70 -0
  406. package/components/ea-select/src/style/stylesheet.js +49 -1
  407. package/components/ea-skeleton/index.css +12 -0
  408. package/components/ea-skeleton/index.js +148 -1
  409. package/components/ea-skeleton/index.scss +16 -0
  410. package/components/ea-skeleton/src/style/stylesheet.js +14 -1
  411. package/components/ea-skeleton/src/utils/createSkeletonElement.js +7 -1
  412. package/components/ea-skeleton-item/index.css +69 -0
  413. package/components/ea-skeleton-item/index.js +82 -1
  414. package/components/ea-skeleton-item/index.scss +107 -0
  415. package/components/ea-skeleton-item/src/assets/imageSVG.js +8 -1
  416. package/components/ea-skeleton-item/src/style/stylesheet.js +71 -1
  417. package/components/ea-step/index.css +84 -0
  418. package/components/ea-step/index.js +230 -1
  419. package/components/ea-step/index.scss +110 -0
  420. package/components/ea-step/src/style/stylesheet.js +86 -1
  421. package/components/ea-steps/index.css +19 -0
  422. package/components/ea-steps/index.js +104 -1
  423. package/components/ea-steps/index.scss +23 -0
  424. package/components/ea-steps/src/style/stylesheet.js +21 -1
  425. package/components/ea-submenu/index.css +65 -0
  426. package/components/ea-submenu/index.js +141 -1
  427. package/components/ea-submenu/index.scss +88 -0
  428. package/components/ea-submenu/src/style/stylesheet.js +67 -1
  429. package/components/ea-switch/index.css +90 -0
  430. package/components/ea-switch/index.js +189 -1
  431. package/components/ea-switch/index.scss +117 -0
  432. package/components/ea-switch/src/style/stylesheet.js +92 -1
  433. package/components/ea-tab/index.css +68 -0
  434. package/components/ea-tab/index.js +138 -1
  435. package/components/ea-tab/index.scss +96 -0
  436. package/components/ea-tab/src/style/stylesheet.js +70 -1
  437. package/components/ea-table/index.css +98 -0
  438. package/components/ea-table/index.js +555 -1
  439. package/components/ea-table/index.scss +90 -0
  440. package/components/ea-table/src/style/stylesheet.js +100 -1
  441. package/components/ea-table-column/index.css +0 -0
  442. package/components/ea-table-column/index.js +164 -1
  443. package/components/ea-table-column/index.scss +0 -0
  444. package/components/ea-tabs/index.css +45 -0
  445. package/components/ea-tabs/index.js +245 -1
  446. package/components/ea-tabs/index.scss +64 -0
  447. package/components/ea-tabs/src/style/stylesheet.js +47 -1
  448. package/components/ea-tag/index.css +90 -0
  449. package/components/ea-tag/index.js +107 -1
  450. package/components/ea-tag/index.scss +71 -0
  451. package/components/ea-tag/src/style/stylesheet.js +92 -1
  452. package/components/ea-textarea/index.css +37 -0
  453. package/components/ea-textarea/index.js +277 -1
  454. package/components/ea-textarea/index.scss +48 -0
  455. package/components/ea-textarea/src/style/stylesheet.js +39 -1
  456. package/components/ea-time-picker/index.css +82 -0
  457. package/components/ea-time-picker/index.js +379 -1
  458. package/components/ea-time-picker/index.scss +110 -0
  459. package/components/ea-time-picker/src/style/stylesheet.js +84 -1
  460. package/components/ea-timeline/index.css +0 -0
  461. package/components/ea-timeline/index.js +74 -1
  462. package/components/ea-timeline/index.scss +1 -0
  463. package/components/ea-timeline/style/stylesheet.js +3 -1
  464. package/components/ea-timeline-item/index.css +79 -0
  465. package/components/ea-timeline-item/index.js +146 -1
  466. package/components/ea-timeline-item/index.scss +92 -0
  467. package/components/ea-timeline-item/src/style/stylesheet.js +81 -1
  468. package/components/ea-ui-base-style.css +0 -0
  469. package/components/ea-ui-base-style.scss +153 -0
  470. package/components/globalConfig.js +10 -0
  471. package/components/index.js +67 -0
  472. package/package.json +1 -1
  473. package/public/logo.png +0 -0
  474. package/utils/Validator.js +16 -1
  475. package/utils/createElement.js +30 -1
  476. package/utils/handleDefaultAttrIsTrue.js +11 -1
  477. package/utils/handleTemplate.js +19 -1
  478. package/utils/setStyle.js +8 -1
  479. package/utils/timeout.js +16 -1
  480. package/components/ea-icon/css/animation.css +0 -85
  481. package/components/ea-icon/css/fontello-embedded.css +0 -181
  482. package/components/ea-icon/css/fontello-ie7-codes.css +0 -123
  483. package/components/ea-icon/css/fontello-ie7.css +0 -134
@@ -0,0 +1 @@
1
+ import Base from"../Base.js";import"../ea-icon/index.js";import{createElement}from"../../utils/createElement.js";import{timeout}from"../../utils/timeout.js";import{stylesheet}from"./src/style/stylesheet.js";import"../ea-input/index.js";import"../ea-button/index.js";export class EaTimePicker extends Base{#e;#t;#i;#n;#r;#s;#a=!1;constructor(){super();const e=this.attachShadow({mode:"open"});e.innerHTML="\n <div class='ea-time-picker_wrap' part='container'>\n <ea-input part='input' autocomplete=\"off\" readonly prefix-icon=\"icon-clock\"></ea-input>\n <div class=\"ea-time-picker_dropdown-wrap\" part='dropdown-wrap'>\n <div class=\"ea-time-picker_dropdown-inner-wrap\" part='dropdown-inner-wrap'>\n <ul class=\"ea-time-picker_dropdown-inner ea-time-picker_dropdown-inner-hour\" part='dropdown-time'>\n </ul>\n <ul class=\"ea-time-picker_dropdown-inner ea-time-picker_dropdown-inner-minute\" part='dropdown-time'>\n </ul>\n <ul class=\"ea-time-picker_dropdown-inner ea-time-picker_dropdown-inner-second\" part='dropdown-time'>\n </ul>\n </div>\n </div>\n </div>\n ",this.#e=e.querySelector(".ea-time-picker_wrap"),this.#t=e.querySelector("ea-input"),this.#i=e.querySelector(".ea-time-picker_dropdown-wrap"),this.#n=e.querySelector(".ea-time-picker_dropdown-inner-hour"),this.#r=e.querySelector(".ea-time-picker_dropdown-inner-minute"),this.#s=e.querySelector(".ea-time-picker_dropdown-inner-second"),this.build(e,stylesheet)}get width(){return this.getAttribute("width")||"200px"}set width(e){this.setAttribute("width",e),this.#e.style.width=e}get time(){return this.getAttribute("time")||"00:00:00"}set time(e){this.setAttribute("time",e);const[t,i,n]=e.split(":");this.hour=t,this.minute=i,this.second=n}get name(){return this.getAttribute("name")||"timePicker"}set name(e){this.setAttribute("name",e)}get hour(){const e=this.getAttrNumber("hour");return this.#o(e)}set hour(e){this.setAttribute("hour",e),this.#h(this.#n,e)}get minute(){const e=this.getAttrNumber("minute");return this.#o(e)}set minute(e){this.setAttribute("minute",e),this.#h(this.#r,e)}get second(){const e=this.getAttrNumber("second");return this.#o(e)}set second(e){this.setAttribute("second",e),this.#h(this.#s,e)}get value(){return this.time}set value(e){this.time=e}get disabled(){return this.getAttrBoolean("disabled")||!1}set disabled(e){this.setAttribute("disabled",e),this.#t.disabled=e}get align(){return this.getAttribute("align")||"left"}set align(e){this.setAttribute("align",e),this.#t.shadowRoot.querySelector("input").style.textAlign=e}get limitRangeStart(){if(this.getAttribute("limit-range-start")){const[e,t,i]=this.getAttribute("limit-range-start")?.split(":");return`${this.#o(e)}:${this.#o(t)}:${this.#o(i)}`}return"00:00:00"}set limitRangeStart(e){this.setAttribute("limit-range-start",e)}get limitRangeEnd(){if(this.getAttribute("limit-range-end")){const[e,t,i]=this.getAttribute("limit-range-end")?.split(":");return`${this.#o(e)}:${this.#o(t)}:${this.#o(i)}`}return"23:59:59"}set limitRangeEnd(e){this.setAttribute("limit-range-end",e)}#o(e,t="00"){return(e=Number(e))<10?`0${e}`:e||t}#h(e,t){e.querySelectorAll("li").forEach((e=>{Number(e.innerText)===Number(this.#o(t))&&e.click()}))}#d(){this.#i.style.width=this.#t.getBoundingClientRect().width+"px",timeout((()=>{this.#e.classList.add("with-transition")}),50)}#l(e,t,i,n){e.addEventListener("click",(()=>{i.querySelectorAll("li").forEach((e=>{e.classList.remove("is-active")})),e.classList.add("is-active");const r=this.#o(t);switch(n){case"hour":this.hour=r;break;case"minute":this.minute=r;break;case"second":this.second=r}this.#a&&this.dispatchEvent(new CustomEvent("change",{detail:{time:this.time}})),this.#t.value=`${this.hour}:${this.minute}:${this.second}`,this.time=`${this.hour}:${this.minute}:${this.second}`;const s=e.getBoundingClientRect().height*t;i.scrollTo({top:s,behavior:"smooth"})}))}#c(e){e.addEventListener("wheel",(()=>{timeout((()=>{const t=e.querySelectorAll("li"),i=t[0].getBoundingClientRect().height,{scrollTop:n}=e,r=Math.floor(n/i);t[r]&&t[r].click()}),100)}))}#m(){const[e,t,i]=this.limitRangeStart.split(":"),[n,r,s]=this.limitRangeEnd.split(":"),a=new Date;if(new Date(a.getFullYear(),a.getMonth(),a.getDate(),e,t,i)>new Date(a.getFullYear(),a.getMonth(),a.getDate(),n,r,s))throw new Error("limit-range-start must be less than limit-range-end");const o=(t,i,r,s)=>{t=Number(t),i=Number(i);let a=0,o=0;if("hour"===s)a=0,o=23;else a=0,o=59,String(t).localeCompare(i)||e===n||(i=0===i?59:i);for(let e=a;e<=o;e++){const n=createElement("li","ea-time-picker_dropdown-item");n.innerText=this.#o(e),r.appendChild(n),e>=t&&e<=i?this.#l(n,e,r,s):n.classList.add("is-disabled")}};o(e,n,this.#n,"hour"),o(t,r,this.#r,"minute"),o(i,s,this.#s,"second"),this.#c(this.#n),this.#c(this.#r),this.#c(this.#s)}#u(){let e=!1;const t=()=>{this.time=this.time,e=!0,this.#a=!0,this.#i.removeEventListener("transitionend",t)};this.#t.addEventListener("focus",(()=>{this.#e.classList.add("is-open"),e||this.#i.addEventListener("transitionend",t)})),window.addEventListener("click",(e=>{this.contains(e.target)?this.#t.shadowRoot.querySelector(".ea-input_inner").focus():this.#e.classList.remove("is-open")}))}connectedCallback(){this.setAttribute("data-ea-component",!0),this.name=this.name,this.width=this.width,this.disabled=this.disabled,this.align=this.align,this.limitRangeStart=this.limitRangeStart,this.limitRangeEnd=this.limitRangeEnd,this.#d(),this.#m(),this.time=this.time,this.#t.value=`${this.hour}:${this.minute}:${this.second}`,this.#u()}}customElements.get("ea-time-picker")||customElements.define("ea-time-picker",EaTimePicker);
@@ -0,0 +1 @@
1
+ export const stylesheet='\n.ea-time-picker_wrap {\n position: relative;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap {\n position: absolute;\n bottom: -12px;\n left: 0;\n transform-origin: center top;\n transform: translateY(100%) scaleY(0);\n box-sizing: border-box;\n background-color: #fff;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n z-index: 2;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap::before {\n content: "";\n position: absolute;\n top: 0;\n left: 0.5rem;\n border: 0.5rem solid transparent;\n border-bottom-color: #fff;\n transform: translateY(-100%);\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap {\n display: flex;\n position: relative;\n margin: 1rem 0;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap::before, .ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap::after {\n content: "";\n position: absolute;\n left: 0;\n transform: translateY(-50%);\n width: 100%;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap::before {\n top: calc(50% - 16px);\n border-bottom: 1px solid #e4e7ed;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap::after {\n top: calc(50% + 16px);\n border-bottom: 1px solid #e4e7ed;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap .ea-time-picker_dropdown-inner {\n flex: 1;\n max-height: 190px;\n box-sizing: border-box;\n padding: 5rem 0;\n text-align: center;\n overflow: auto;\n scrollbar-width: none;\n margin-block-start: 0;\n margin-block-end: 0;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 0px;\n list-style-type: none;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap .ea-time-picker_dropdown-inner .ea-time-picker_dropdown-item {\n height: 32px;\n line-height: 32px;\n font-size: 12px;\n color: #606266;\n transition: color 0.3s;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap .ea-time-picker_dropdown-inner .ea-time-picker_dropdown-item.is-active {\n color: #409eff;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-inner-wrap .ea-time-picker_dropdown-inner .ea-time-picker_dropdown-item.is-disabled {\n color: #c0c4cc;\n}\n.ea-time-picker_wrap .ea-time-picker_dropdown-wrap .ea-time-picker_dropdown-button-group {\n text-align: right;\n box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.1);\n border-top: 1px solid rgba(0, 0, 0, 0.1);\n}\n.ea-time-picker_wrap.is-open .ea-time-picker_dropdown-wrap {\n transform: translateY(100%) scaleY(1);\n}\n.ea-time-picker_wrap.with-transition .ea-time-picker_dropdown-wrap {\n transition: transform 0.3s ease-in-out;\n}\n';
@@ -0,0 +1 @@
1
+ import Base from"../Base.js";import"../ea-timeline-item/index.js";import{handleDefaultAttrIsTrue}from"../../utils/handleDefaultAttrIsTrue.js";import{timeout}from"../../utils/timeout.js";import{stylesheet}from"./style/stylesheet.js";export class EaTimeline extends Base{#e;#t;constructor(){super();const e=this.attachShadow({mode:"open"});e.innerHTML="\n <div class='ea-timeline_wrap' part='container'>\n <ul class='ea-timeline-item_container' part='list-wrap'>\n <slot></slot>\n </ul>\n </div>\n ",this.#e=e.querySelector(".ea-timeline_wrap"),this.#t=e.querySelector(".ea-timeline-item_container"),this.build(e,stylesheet)}get reverse(){const e=this.getAttribute("reverse");return handleDefaultAttrIsTrue(e)}set reverse(e){this.setAttribute("reverse",e),this.#i(e)}#i(e){e="true"===e||!0===e;Array.from(this.querySelectorAll("ea-timeline-item")).sort(((t,i)=>{const r=new Date(t.time),s=new Date(i.time);return e?s-r:r-s})).forEach(((e,t)=>{this.appendChild(e)}))}connectedCallback(){this.reverse=this.reverse}}customElements.get("ea-timeline")||customElements.define("ea-timeline",EaTimeline);
@@ -0,0 +1 @@
1
+ export const stylesheet="\n\n";
@@ -0,0 +1 @@
1
+ import Base from"../Base.js";import{stylesheet}from"./src/style/stylesheet.js";export class EaTimelineItem extends Base{#t;#e;#i;#s;constructor(){super();const t=this.attachShadow({mode:"open"});t.innerHTML="\n <div class='ea-timeline-item_wrap' part='container'>\n <div class='ea-timeline-item_circle' part='circle'></div>\n <div class='ea-timeline-item_tail' part='tail'></div>\n <div class='ea-timeline-item_container' part='body'>\n <div class='ea-timeline-item_content' part='content'>\n <slot></slot>\n </div>\n <div class='ea-timeline-item_timestamp' part='timestamp'></div>\n </div>\n </div>\n ",this.#t=t.querySelector(".ea-timeline-item_wrap"),this.#e=t.querySelector(".ea-timeline-item_timestamp"),this.#i=t.querySelector(".ea-timeline-item_circle"),this.#s=t.querySelector(".ea-timeline-item_timestamp"),this.build(t,stylesheet)}get time(){return this.getAttribute("time")||""}set time(t){t&&(this.setAttribute("time",t),this.#s.innerText=t)}get typeList(){return["primary","success","warning","danger","info"]}get type(){const t=this.getAttribute("type");return this.typeList.includes(t)?t:"info"}set type(t){this.setAttribute("type",t),this.#i.classList.add(`ea-timeline-item--${t}`)}get color(){return this.getAttribute("color")||""}set color(t){if(!t)return;this.setAttribute("color",t);""!==((new Option).style.color=t)&&(this.#i.style.backgroundColor=t)}get sizeList(){return["normal","large"]}get size(){const t=this.getAttribute("size");return this.sizeList.includes(t)?t:"normal"}set size(t){this.setAttribute("size",t),this.#t.classList.add(`ea-timeline-item_circle--${t}`)}get placementList(){return["top","bottom"]}get placement(){const t=this.getAttribute("placement");return this.placementList.includes(t)?t:"bottom"}set placement(t){this.setAttribute("placement",t),this.#e.classList.add(`ea-timeline-item_timestamp--${t}`)}connectedCallback(){this.time=this.time,this.type=this.type,this.color=this.color,this.size=this.size,this.placement=this.placement}}customElements.get("ea-timeline-item")||customElements.define("ea-timeline-item",EaTimelineItem);
@@ -0,0 +1 @@
1
+ export const stylesheet="\n.ea-timeline-item_wrap {\n position: relative;\n padding-bottom: 20px;\n padding-left: 28px;\n list-style: none;\n}\n.ea-timeline-item_wrap .ea-timeline-item_circle {\n position: absolute;\n left: 0;\n z-index: 1;\n display: block;\n width: 12px;\n height: 12px;\n font-size: 12px;\n border-radius: 50%;\n background-color: #e4e7ed;\n}\n.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--primary {\n background-color: #409eff;\n color: #409eff;\n}\n.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--success {\n background-color: #67c23a;\n color: #67c23a;\n}\n.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--warning {\n background-color: #e6a23c;\n color: #e6a23c;\n}\n.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--danger {\n background-color: #f56c6c;\n color: #f56c6c;\n}\n.ea-timeline-item_wrap .ea-timeline-item_circle.ea-timeline-item--info {\n background-color: #e4e7ed;\n color: #e4e7ed;\n}\n.ea-timeline-item_wrap .ea-timeline-item_tail {\n z-index: 0;\n position: absolute;\n left: 0.3281rem;\n height: 100%;\n border-left: 2px solid #e4e7ed;\n}\n.ea-timeline-item_wrap .ea-timeline-item_container {\n position: relative;\n top: -4px;\n font-size: 14px;\n display: flex;\n flex-direction: column;\n}\n.ea-timeline-item_wrap .ea-timeline-item_container .ea-timeline-item_timestamp {\n color: #909399;\n line-height: 1;\n margin-top: 8px;\n}\n.ea-timeline-item_wrap .ea-timeline-item_container .ea-timeline-item_content {\n color: #303133;\n}\n.ea-timeline-item_wrap .ea-timeline-item_container.ea-timeline-item_timestamp--top {\n flex-direction: column-reverse;\n}\n.ea-timeline-item_wrap .ea-timeline-item_container.ea-timeline-item_timestamp--top .ea-timeline-item_timestamp {\n margin-top: 0;\n margin-bottom: 8px;\n}\n.ea-timeline-item_wrap .ea-timeline-item_container.ea-timeline-item_timestamp--bottom {\n flex-direction: column;\n}\n.ea-timeline-item_wrap.ea-timeline-item_circle--large .ea-timeline-item_circle {\n width: 14px;\n height: 14px;\n}\n.ea-timeline-item_wrap.ea-timeline-item_circle--large .ea-timeline-item_tail {\n left: 0.3906rem;\n}\n.ea-timeline-item_wrap.ea-timeline-item_circle--large .ea-timeline-item_container {\n font-size: 16px;\n}\n";
@@ -0,0 +1 @@
1
+ const globalConfig={fontelloCSS:"https://cdn.jsdelivr.net/npm/easy-component-ui/components/ea-icon/css/fontello.css"};function setConfig(n){Object.assign(globalConfig,n),document.dispatchEvent(new CustomEvent("configChanged",{detail:globalConfig}))}export{setConfig};
@@ -0,0 +1 @@
1
+ import"./ea-alert";import"./ea-aside";import"./ea-badge";import"./ea-backtop";import"./ea-breadcrumb-item";import"./ea-breadcrumb";import"./ea-button-group";import"./ea-button";import"./ea-calendar";import"./ea-avatar";import"./ea-carousel";import"./ea-carousel-item";import"./ea-checkbox-group";import"./ea-checkbox";import"./ea-collapse-item";import"./ea-collapse";import"./ea-container";import"./ea-date-picker";import"./ea-descriptions-item";import"./ea-drawer";import"./ea-descriptions";import"./ea-empty";import"./ea-footer";import"./ea-form-item";import"./ea-header";import"./ea-icon";import"./ea-image";import"./ea-infinite-scroll";import"./ea-form";import"./ea-infinite-scroll-item";import"./ea-input";import"./ea-card";import"./ea-link";import"./ea-loading";import"./ea-input-number";import"./ea-main";import"./ea-menu-item";import"./ea-menu";import"./ea-message";import"./ea-menu-item-group";import"./ea-message-box";import"./ea-option-gropu";import"./ea-option";import"./ea-page-header";import"./ea-progress";import"./ea-pagination";import"./ea-radio-group";import"./ea-pane";import"./ea-radio";import"./ea-result";import"./ea-skeleton";import"./ea-rate";import"./ea-select";import"./ea-skeleton-item";import"./ea-step";import"./ea-submenu";import"./ea-steps";import"./ea-switch";import"./ea-table-column";import"./ea-tab";import"./ea-table";import"./ea-textarea";import"./ea-tag";import"./ea-time-picker";import"./ea-tabs";import"./ea-timeline";import"./ea-timeline-item";
@@ -0,0 +1 @@
1
+ export const Validator={required:r=>"string"==typeof r?""!==r:!!Array.isArray(r)&&r.length>0,min:(r,t)=>r.length>=t,max:(r,t)=>r.length<=t,reg:(r,t)=>t.test(r)};
@@ -0,0 +1 @@
1
+ export const createElement=(e,t,n)=>{const r=document.createElement(e||"div");return r.className=t||"",n&&(Array.isArray(n)?n.forEach((e=>{r.appendChild(e)})):r.appendChild(n)),r};export const createSlotElement=e=>{const t=document.createElement("slot");return e&&(t.name=e),t};
@@ -0,0 +1 @@
1
+ export const handleDefaultAttrIsTrue=e=>e="false"!==e&&!1!==e;
@@ -0,0 +1 @@
1
+ export const handleTemplate=(e,n,o,r)=>{const c=e.querySelector(`[slot="${n}"]`);if(c)try{if(0===c.childNodes.length)o.innerHTML=c.innerHTML;else if(""===c.innerHTML){const e=c.childNodes;o.innerHTML="",Array.from(e).forEach((e=>{o.appendChild(e.cloneNode(!0))}))}c.remove(),r.remove()}catch(e){}};
@@ -0,0 +1 @@
1
+ export default function setStyle(e,t){const l=document.createElement("link");l.href=t,l.rel="stylesheet",e.appendChild(l)}
@@ -0,0 +1 @@
1
+ export const timeout=(t,e=0)=>{let i=setTimeout((()=>{clearTimeout(i),i=null,t()}),e)};export const withTransitionTimeOut=(t,e=300)=>{let i=setTimeout((()=>{clearTimeout(i),i=null,t.classList.add("with-transition")}),e)};
@@ -1 +1,75 @@
1
- import setStyle from"../utils/setStyle.js";export default class Base extends HTMLElement{constructor(){super(),this.isProduction=!1,this.isProduction=!0}toggleAttribute(t,e,s){e?(this.setAttribute(t,e),s&&this.dom.classList.add(s)):(this.hasAttribute(t)&&this.removeAttribute(t),s&&this.dom.classList.remove(s))}toggleAttr(t,e){e?this.setAttribute(t,e):this.removeAttribute(t)}getAttrBoolean(t){const e=this.getAttribute(t);return"true"===e||""===e}getAttrNumber(t){const e=this.getAttribute(t);return e?Number(e):0}build(t,e){if(this.isProduction){const t=document.createElement("style");t.innerHTML=e,this.shadowRoot.appendChild(t)}else setStyle(t,new URL(this.nodeName.toLowerCase()+"/index.css",import.meta.url).href)}}
1
+ // @ts-nocheck
2
+
3
+ import setStyle from '../utils/setStyle.js';
4
+
5
+ export default class Base extends HTMLElement {
6
+ constructor() {
7
+ super();
8
+
9
+ this.isProduction = false;
10
+ this.isProduction = true;
11
+ }
12
+
13
+ /**
14
+ * 设置属性值,并切换className
15
+ * @param {string} attr 属性名
16
+ * @param {boolean} flag 属性值
17
+ * @param {string} className class名
18
+ */
19
+ toggleAttribute(attr, flag, className) {
20
+ if (flag) {
21
+ this.setAttribute(attr, flag);
22
+
23
+ if (className) this.dom.classList.add(className);
24
+ } else {
25
+
26
+ if (this.hasAttribute(attr)) this.removeAttribute(attr);
27
+ if (className) this.dom.classList.remove(className);
28
+ }
29
+ }
30
+
31
+ /**
32
+ * 设置属性值
33
+ * @param {string} attr 属性名
34
+ * @param {boolean} flag 属性值
35
+ */
36
+ toggleAttr(attr, flag) {
37
+ if (flag) {
38
+ this.setAttribute(attr, flag);
39
+ } else {
40
+ this.removeAttribute(attr);
41
+ }
42
+ }
43
+
44
+ /**
45
+ * 获取属性值,并转换为布尔值
46
+ * @param {string} attrName 属性名
47
+ * @returns {boolean}
48
+ */
49
+ getAttrBoolean(attrName) {
50
+ const attr = this.getAttribute(attrName);
51
+ return attr === 'true' || attr === '';
52
+ }
53
+
54
+ /**
55
+ * 获取属性值,并转换为数字
56
+ * @param {string} attrName 属性名
57
+ * @returns {number}
58
+ */
59
+ getAttrNumber(attrName) {
60
+ const attr = this.getAttribute(attrName);
61
+
62
+ return attr ? Number(attr) : 0;
63
+ }
64
+
65
+ // 样式构建
66
+ build(shadowRoot, stylesheet) {
67
+ if (this.isProduction) {
68
+ const styleNode = document.createElement('style');
69
+ styleNode.innerHTML = stylesheet;
70
+ this.shadowRoot.appendChild(styleNode);
71
+ } else {
72
+ setStyle(shadowRoot, new URL(this.nodeName.toLowerCase() + '/index.css', import.meta.url).href);
73
+ }
74
+ }
75
+ }
@@ -0,0 +1,91 @@
1
+ @import "../ea-icon/css/fontello.css";
2
+ @import "../ea-icon/css/animation.css";
3
+ @font-face {
4
+ font-size: 1rem;
5
+ font-size: 16px;
6
+ font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
7
+ src: url("../ea-icon/font/fontello.eot") format("embedded-opentype"), url("../ea-icon/font/fontello.ttf") format("truetype"), url("../ea-icon/font/fontello.woff") format("woff"), url("../ea-icon/font/fontello.woff2") format("woff2"), url("../ea-icon/font/fontello.svg") format("svg");
8
+ }
9
+ .ea-alert_wrap {
10
+ position: relative;
11
+ box-sizing: border-box;
12
+ overflow: hidden;
13
+ border-radius: 4px;
14
+ padding: 8px 16px;
15
+ margin: 20px 0 0;
16
+ display: flex;
17
+ align-items: center;
18
+ width: 100%;
19
+ opacity: 1;
20
+ transition: opacity 0.2s;
21
+ }
22
+ .ea-alert_wrap .ea-alert_content {
23
+ width: 100%;
24
+ display: flex;
25
+ align-items: center;
26
+ justify-content: space-between;
27
+ }
28
+ .ea-alert_wrap .ea-alert_content .ea-alert_title {
29
+ display: flex;
30
+ align-items: center;
31
+ }
32
+ .ea-alert_wrap .ea-alert_content .ea-alert_title i {
33
+ margin-right: 0.5rem;
34
+ }
35
+ .ea-alert_wrap .ea-alert_content .ea-alert_close-icon {
36
+ color: #c0c4cc;
37
+ cursor: pointer;
38
+ }
39
+ .ea-alert_wrap .ea-alert_content.ea-alert--center .ea-alert_title,
40
+ .ea-alert_wrap .ea-alert_content.ea-alert--center .ea-alert_close-icon {
41
+ margin-left: auto;
42
+ }
43
+ .ea-alert_wrap .ea-alert_description {
44
+ width: 100%;
45
+ margin: 5px 0 0;
46
+ font-size: 12px;
47
+ }
48
+ .ea-alert_wrap.ea-alert--success {
49
+ background-color: #f0f9eb;
50
+ color: #67c23a;
51
+ }
52
+ .ea-alert_wrap.ea-alert--success.ea-alert--dark {
53
+ color: #fff;
54
+ background-color: #67c23a;
55
+ }
56
+ .ea-alert_wrap.ea-alert--success.ea-alert--dark .ea-alert_close-icon {
57
+ color: #fff;
58
+ }
59
+ .ea-alert_wrap.ea-alert--info {
60
+ background-color: #f4f4f5;
61
+ color: #909399;
62
+ }
63
+ .ea-alert_wrap.ea-alert--info.ea-alert--dark {
64
+ color: #fff;
65
+ background-color: #909399;
66
+ }
67
+ .ea-alert_wrap.ea-alert--info.ea-alert--dark .ea-alert_close-icon {
68
+ color: #fff;
69
+ }
70
+ .ea-alert_wrap.ea-alert--warning {
71
+ background-color: #fdf6ec;
72
+ color: #e6a23c;
73
+ }
74
+ .ea-alert_wrap.ea-alert--warning.ea-alert--dark {
75
+ color: #fff;
76
+ background-color: #e6a23c;
77
+ }
78
+ .ea-alert_wrap.ea-alert--warning.ea-alert--dark .ea-alert_close-icon {
79
+ color: #fff;
80
+ }
81
+ .ea-alert_wrap.ea-alert--error {
82
+ background-color: #fef0f0;
83
+ color: #f56c6c;
84
+ }
85
+ .ea-alert_wrap.ea-alert--error.ea-alert--dark {
86
+ color: #fff;
87
+ background-color: #f56c6c;
88
+ }
89
+ .ea-alert_wrap.ea-alert--error.ea-alert--dark .ea-alert_close-icon {
90
+ color: #fff;
91
+ }
@@ -1 +1,210 @@
1
- import Base from"../Base.js";import"../ea-icon/index.js";import{handleDefaultAttrIsTrue}from"../../utils/handleDefaultAttrIsTrue.js";import{createElement}from"../../utils/createElement.js";import{stylesheet}from"./src/style/stylesheet.js";export class EaAlert extends Base{#t;#e;#s;#i;constructor(){super();const t=this.attachShadow({mode:"open"});t.innerHTML="\n <div class='ea-alert_wrap' part='container'>\n <div class=\"ea-alert_content\" part='content-wrap'>\n <span class=\"ea-alert_title\" part='title'></span>\n <ea-icon class=\"ea-alert_close-icon\" part='icon'></ea-icon>\n </div>\n </div>\n ",this.#t=t.querySelector(".ea-alert_wrap"),this.#e=t.querySelector(".ea-alert_content"),this.#s=t.querySelector(".ea-alert_title"),this.#i=t.querySelector(".ea-alert_close-icon"),this.build(t,stylesheet)}get type(){return this.getAttribute("type")||"info"}set type(t){this.setAttribute("type",t),this.#t.classList.add(`ea-alert--${t}`)}get title(){return this.getAttribute("title")||""}set title(t){this.setAttribute("title",t),this.#s.innerText=t}get closable(){return handleDefaultAttrIsTrue("closable")}set closable(t){this.setAttribute("closable",t),this.#i.style.display=t?"block":"none"}get closeText(){return this.getAttribute("close-text")||""}set closeText(t){this.setAttribute("close-text",t)}get effect(){return this.getAttribute("effect")||"light"}set effect(t){this.setAttribute("effect",t),this.#t.classList.toggle("ea-alert--dark","dark"===t)}get showIcon(){return this.getAttrBoolean("show-icon")||!1}set showIcon(t){this.setAttribute("show-icon",t)}get center(){return this.getAttrBoolean("center")||!1}set center(t){this.setAttribute("center",t),this.#e.classList.toggle("ea-alert--center",t)}get description(){return this.getAttribute("description")||""}set description(t){this.setAttribute("description",t)}#r(){this.closable&&(!0===this.closable&&""===this.closeText?this.#i.icon="icon-cancel":this.#i.innerText=this.closeText,this.#i.addEventListener("click",(()=>{this.#t.style.opacity=0,this.dispatchEvent(new CustomEvent("close",{detail:{target:this.#i}}))})),this.#t.addEventListener("transitionend",(()=>{this.remove()})))}get iconList(){return{success:"ok-circled",info:"info",warning:"attention-alt",error:"cancel-circled"}}#n(){if(!this.showIcon)return;const t=createElement("ea-icon");t.icon=`icon-${this.iconList[this.type]}`,t.classList.add(`ea-alert--${this.type}`),this.#s.insertBefore(t,this.#s.firstChild)}#l(){if(!this.description)return;const t=createElement("p","ea-alert_description");t.part="description",this.#t.style.flexDirection="column",t.innerText=this.description,this.#t.appendChild(t)}connectedCallback(){this.type=this.type,this.title=this.title,this.closable=this.closable,this.closeText=this.closeText,this.effect=this.effect,this.center=this.center,this.#r(),this.#n(),this.#l()}}customElements.get("ea-alert")||customElements.define("ea-alert",EaAlert);
1
+ import Base from '../Base.js';
2
+ import "../ea-icon/index.js"
3
+ import { handleDefaultAttrIsTrue } from '../../utils/handleDefaultAttrIsTrue.js';
4
+
5
+ import { createElement } from '../../utils/createElement.js';
6
+
7
+ import { stylesheet } from './src/style/stylesheet.js';
8
+
9
+ export class EaAlert extends Base {
10
+ #wrap;
11
+
12
+ #alertContent;
13
+ #alertTitle;
14
+ #closeIcon;
15
+
16
+ constructor() {
17
+ super();
18
+
19
+ const shadowRoot = this.attachShadow({ mode: 'open' });
20
+ shadowRoot.innerHTML = `
21
+ <div class='ea-alert_wrap' part='container'>
22
+ <div class="ea-alert_content" part='content-wrap'>
23
+ <span class="ea-alert_title" part='title'></span>
24
+ <ea-icon class="ea-alert_close-icon" part='icon'></ea-icon>
25
+ </div>
26
+ </div>
27
+ `;
28
+
29
+ this.#wrap = shadowRoot.querySelector('.ea-alert_wrap');
30
+ this.#alertContent = shadowRoot.querySelector('.ea-alert_content');
31
+ this.#alertTitle = shadowRoot.querySelector('.ea-alert_title');
32
+ this.#closeIcon = shadowRoot.querySelector('.ea-alert_close-icon');
33
+
34
+ this.build(shadowRoot, stylesheet);
35
+ }
36
+
37
+ // ------- type 获取提示类型 -------
38
+ // #region
39
+ get type() {
40
+ return this.getAttribute('type') || "info";
41
+ }
42
+
43
+ set type(value) {
44
+ this.setAttribute('type', value);
45
+
46
+ this.#wrap.classList.add(`ea-alert--${value}`);
47
+ }
48
+ // #endregion
49
+ // ------- end -------
50
+
51
+ // ------- title 获取提示标题 -------
52
+ // #region
53
+ get title() {
54
+ return this.getAttribute('title') || "";
55
+ }
56
+
57
+ set title(value) {
58
+ this.setAttribute('title', value);
59
+
60
+ this.#alertTitle.innerText = value;
61
+ }
62
+ // #endregion
63
+ // ------- end -------
64
+
65
+ // ------- closable 是否可关闭 -------
66
+ // #region
67
+ get closable() {
68
+ return handleDefaultAttrIsTrue('closable');
69
+ }
70
+
71
+ set closable(value) {
72
+ this.setAttribute('closable', value);
73
+
74
+ this.#closeIcon.style.display = value ? 'block' : 'none';
75
+ }
76
+ // #endregion
77
+ // ------- end -------
78
+
79
+ // ------- close-text 关闭按钮文字 -------
80
+ // #region
81
+ get closeText() {
82
+ return this.getAttribute('close-text') || "";
83
+ }
84
+
85
+ set closeText(value) {
86
+ this.setAttribute('close-text', value);
87
+ }
88
+ // #endregion
89
+ // ------- end -------
90
+
91
+ // ------- effect 亮色与暗色主题 -------
92
+ // #region
93
+ get effect() {
94
+ return this.getAttribute('effect') || "light";
95
+ }
96
+
97
+ set effect(value) {
98
+ this.setAttribute('effect', value);
99
+
100
+ this.#wrap.classList.toggle('ea-alert--dark', value === "dark");
101
+ }
102
+ // #endregion
103
+ // ------- end -------
104
+
105
+ // ------- show-icon 是否显示图标 -------
106
+ // #region
107
+ get showIcon() {
108
+ return this.getAttrBoolean('show-icon') || false;
109
+ }
110
+
111
+ set showIcon(value) {
112
+ this.setAttribute('show-icon', value);
113
+ }
114
+ // #endregion
115
+ // ------- end -------
116
+
117
+ // ------- center 是否居中 -------
118
+ // #region
119
+ get center() {
120
+ return this.getAttrBoolean('center') || false;
121
+ }
122
+
123
+ set center(value) {
124
+ this.setAttribute('center', value);
125
+
126
+ this.#alertContent.classList.toggle('ea-alert--center', value);
127
+ }
128
+ // #endregion
129
+ // ------- end -------
130
+
131
+ // ------- description 提示描述 -------
132
+ // #region
133
+ get description() {
134
+ return this.getAttribute('description') || "";
135
+ }
136
+
137
+ set description(value) {
138
+ this.setAttribute('description', value);
139
+ }
140
+ // #endregion
141
+ // ------- end -------
142
+
143
+ #initClosableElement() {
144
+ if (!this.closable) return;
145
+
146
+ this.closable === true && this.closeText === "" ? this.#closeIcon.icon = 'icon-cancel' : this.#closeIcon.innerText = this.closeText;
147
+
148
+ this.#closeIcon.addEventListener('click', () => {
149
+ this.#wrap.style.opacity = 0;
150
+
151
+ this.dispatchEvent(new CustomEvent('close', { detail: { target: this.#closeIcon } }));
152
+ });
153
+
154
+ this.#wrap.addEventListener('transitionend', () => {
155
+ this.remove();
156
+ });
157
+ }
158
+
159
+ get iconList() {
160
+ return {
161
+ success: 'ok-circled',
162
+ info: 'info',
163
+ warning: 'attention-alt',
164
+ error: 'cancel-circled'
165
+ }
166
+ }
167
+
168
+ #initShowIconElement() {
169
+ if (!this.showIcon) return;
170
+
171
+ const icon = createElement('ea-icon');
172
+ icon.icon = `icon-${this.iconList[this.type]}`;
173
+ icon.classList.add(`ea-alert--${this.type}`);
174
+
175
+ this.#alertTitle.insertBefore(icon, this.#alertTitle.firstChild);
176
+ }
177
+
178
+ #initDescriptionElement() {
179
+ if (!this.description) return;
180
+
181
+ const descriptionElement = createElement('p', 'ea-alert_description');
182
+ descriptionElement.part = 'description';
183
+ this.#wrap.style.flexDirection = 'column';
184
+
185
+ descriptionElement.innerText = this.description;
186
+ this.#wrap.appendChild(descriptionElement);
187
+ }
188
+
189
+ connectedCallback() {
190
+ this.type = this.type;
191
+
192
+ this.title = this.title;
193
+
194
+ this.closable = this.closable;
195
+
196
+ this.closeText = this.closeText;
197
+
198
+ this.effect = this.effect;
199
+
200
+ this.center = this.center;
201
+
202
+ this.#initClosableElement();
203
+ this.#initShowIconElement();
204
+ this.#initDescriptionElement();
205
+ }
206
+ }
207
+
208
+ if (!customElements.get('ea-alert')) {
209
+ customElements.define('ea-alert', EaAlert);
210
+ }
@@ -0,0 +1,108 @@
1
+ @import "../ea-ui-base-style.scss";
2
+ @import "../ea-icon/index.scss";
3
+
4
+ $themes-light: (
5
+ success: (
6
+ bgc: #f0f9eb,
7
+ text: #67c23a,
8
+ ),
9
+ info: (
10
+ bgc: #f4f4f5,
11
+ text: #909399,
12
+ ),
13
+ warning: (
14
+ bgc: #fdf6ec,
15
+ text: #e6a23c,
16
+ ),
17
+ error: (
18
+ bgc: #fef0f0,
19
+ text: #f56c6c,
20
+ ),
21
+ );
22
+
23
+ $themes-dark: (
24
+ success: (
25
+ bgc: #1f2d3d,
26
+ text: #67c23a,
27
+ ),
28
+ info: (
29
+ bgc: #1f2d3d,
30
+ text: #909399,
31
+ ),
32
+ warning: (
33
+ bgc: #1f2d3d,
34
+ text: #e6a23c,
35
+ ),
36
+ error: (
37
+ bgc: #1f2d3d,
38
+ text: #f56c6c,
39
+ ),
40
+ );
41
+
42
+ .ea-alert_wrap {
43
+ position: relative;
44
+ box-sizing: border-box;
45
+ overflow: hidden;
46
+ border-radius: 4px;
47
+ padding: 8px 16px;
48
+ margin: 20px 0 0;
49
+
50
+ display: flex;
51
+ align-items: center;
52
+ width: 100%;
53
+
54
+ opacity: 1;
55
+
56
+ transition: opacity 0.2s;
57
+
58
+ .ea-alert_content {
59
+ width: 100%;
60
+
61
+ display: flex;
62
+ align-items: center;
63
+ justify-content: space-between;
64
+
65
+ .ea-alert_title {
66
+ display: flex;
67
+ align-items: center;
68
+
69
+ i {
70
+ margin-right: 0.5rem;
71
+ }
72
+ }
73
+
74
+ .ea-alert_close-icon {
75
+ color: #c0c4cc;
76
+ cursor: pointer;
77
+ }
78
+
79
+ &.ea-alert--center {
80
+ .ea-alert_title,
81
+ .ea-alert_close-icon {
82
+ margin-left: auto;
83
+ }
84
+ }
85
+ }
86
+
87
+ .ea-alert_description {
88
+ width: 100%;
89
+ margin: 5px 0 0;
90
+ font-size: 12px;
91
+ }
92
+
93
+ @each $theme-name, $theme-color in $themes-light {
94
+ &.ea-alert--#{$theme-name} {
95
+ background-color: map-get($theme-color, bgc);
96
+ color: map-get($theme-color, text);
97
+
98
+ &.ea-alert--dark {
99
+ color: #fff;
100
+ background-color: map-get($theme-color, text);
101
+
102
+ .ea-alert_close-icon {
103
+ color: #fff;
104
+ }
105
+ }
106
+ }
107
+ }
108
+ }
@@ -1 +1,85 @@
1
- export const stylesheet="\n.ea-alert_wrap {\n position: relative;\n box-sizing: border-box;\n overflow: hidden;\n border-radius: 4px;\n padding: 8px 16px;\n margin: 20px 0 0;\n display: flex;\n align-items: center;\n width: 100%;\n opacity: 1;\n transition: opacity 0.2s;\n}\n.ea-alert_wrap .ea-alert_content {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n.ea-alert_wrap .ea-alert_content .ea-alert_title {\n display: flex;\n align-items: center;\n}\n.ea-alert_wrap .ea-alert_content .ea-alert_title i {\n margin-right: 0.5rem;\n}\n.ea-alert_wrap .ea-alert_content .ea-alert_close-icon {\n color: #c0c4cc;\n cursor: pointer;\n}\n.ea-alert_wrap .ea-alert_content.ea-alert--center .ea-alert_title,\n.ea-alert_wrap .ea-alert_content.ea-alert--center .ea-alert_close-icon {\n margin-left: auto;\n}\n.ea-alert_wrap .ea-alert_description {\n width: 100%;\n margin: 5px 0 0;\n font-size: 12px;\n}\n.ea-alert_wrap.ea-alert--success {\n background-color: #f0f9eb;\n color: #67c23a;\n}\n.ea-alert_wrap.ea-alert--success.ea-alert--dark {\n color: #fff;\n background-color: #67c23a;\n}\n.ea-alert_wrap.ea-alert--success.ea-alert--dark .ea-alert_close-icon {\n color: #fff;\n}\n.ea-alert_wrap.ea-alert--info {\n background-color: #f4f4f5;\n color: #909399;\n}\n.ea-alert_wrap.ea-alert--info.ea-alert--dark {\n color: #fff;\n background-color: #909399;\n}\n.ea-alert_wrap.ea-alert--info.ea-alert--dark .ea-alert_close-icon {\n color: #fff;\n}\n.ea-alert_wrap.ea-alert--warning {\n background-color: #fdf6ec;\n color: #e6a23c;\n}\n.ea-alert_wrap.ea-alert--warning.ea-alert--dark {\n color: #fff;\n background-color: #e6a23c;\n}\n.ea-alert_wrap.ea-alert--warning.ea-alert--dark .ea-alert_close-icon {\n color: #fff;\n}\n.ea-alert_wrap.ea-alert--error {\n background-color: #fef0f0;\n color: #f56c6c;\n}\n.ea-alert_wrap.ea-alert--error.ea-alert--dark {\n color: #fff;\n background-color: #f56c6c;\n}\n.ea-alert_wrap.ea-alert--error.ea-alert--dark .ea-alert_close-icon {\n color: #fff;\n}\n";
1
+ export const stylesheet = `
2
+ .ea-alert_wrap {
3
+ position: relative;
4
+ box-sizing: border-box;
5
+ overflow: hidden;
6
+ border-radius: 4px;
7
+ padding: 8px 16px;
8
+ margin: 20px 0 0;
9
+ display: flex;
10
+ align-items: center;
11
+ width: 100%;
12
+ opacity: 1;
13
+ transition: opacity 0.2s;
14
+ }
15
+ .ea-alert_wrap .ea-alert_content {
16
+ width: 100%;
17
+ display: flex;
18
+ align-items: center;
19
+ justify-content: space-between;
20
+ }
21
+ .ea-alert_wrap .ea-alert_content .ea-alert_title {
22
+ display: flex;
23
+ align-items: center;
24
+ }
25
+ .ea-alert_wrap .ea-alert_content .ea-alert_title i {
26
+ margin-right: 0.5rem;
27
+ }
28
+ .ea-alert_wrap .ea-alert_content .ea-alert_close-icon {
29
+ color: #c0c4cc;
30
+ cursor: pointer;
31
+ }
32
+ .ea-alert_wrap .ea-alert_content.ea-alert--center .ea-alert_title,
33
+ .ea-alert_wrap .ea-alert_content.ea-alert--center .ea-alert_close-icon {
34
+ margin-left: auto;
35
+ }
36
+ .ea-alert_wrap .ea-alert_description {
37
+ width: 100%;
38
+ margin: 5px 0 0;
39
+ font-size: 12px;
40
+ }
41
+ .ea-alert_wrap.ea-alert--success {
42
+ background-color: #f0f9eb;
43
+ color: #67c23a;
44
+ }
45
+ .ea-alert_wrap.ea-alert--success.ea-alert--dark {
46
+ color: #fff;
47
+ background-color: #67c23a;
48
+ }
49
+ .ea-alert_wrap.ea-alert--success.ea-alert--dark .ea-alert_close-icon {
50
+ color: #fff;
51
+ }
52
+ .ea-alert_wrap.ea-alert--info {
53
+ background-color: #f4f4f5;
54
+ color: #909399;
55
+ }
56
+ .ea-alert_wrap.ea-alert--info.ea-alert--dark {
57
+ color: #fff;
58
+ background-color: #909399;
59
+ }
60
+ .ea-alert_wrap.ea-alert--info.ea-alert--dark .ea-alert_close-icon {
61
+ color: #fff;
62
+ }
63
+ .ea-alert_wrap.ea-alert--warning {
64
+ background-color: #fdf6ec;
65
+ color: #e6a23c;
66
+ }
67
+ .ea-alert_wrap.ea-alert--warning.ea-alert--dark {
68
+ color: #fff;
69
+ background-color: #e6a23c;
70
+ }
71
+ .ea-alert_wrap.ea-alert--warning.ea-alert--dark .ea-alert_close-icon {
72
+ color: #fff;
73
+ }
74
+ .ea-alert_wrap.ea-alert--error {
75
+ background-color: #fef0f0;
76
+ color: #f56c6c;
77
+ }
78
+ .ea-alert_wrap.ea-alert--error.ea-alert--dark {
79
+ color: #fff;
80
+ background-color: #f56c6c;
81
+ }
82
+ .ea-alert_wrap.ea-alert--error.ea-alert--dark .ea-alert_close-icon {
83
+ color: #fff;
84
+ }
85
+ `;
@@ -0,0 +1,9 @@
1
+ .ea-aside_wrap {
2
+ height: 100%;
3
+ overflow: auto;
4
+ display: flex;
5
+ flex-direction: column;
6
+ }
7
+ .ea-aside_wrap ::slotted(ea-main) {
8
+ overflow: auto;
9
+ }