cy-element-ui 1.0.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 (569) hide show
  1. package/CHANGELOG.md +280 -0
  2. package/LICENSE +21 -0
  3. package/README.md +96 -0
  4. package/package.json +156 -0
  5. package/packages/alert/index.js +8 -0
  6. package/packages/alert/src/main.vue +94 -0
  7. package/packages/aside/index.js +8 -0
  8. package/packages/aside/src/main.vue +20 -0
  9. package/packages/autocomplete/index.js +8 -0
  10. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -0
  11. package/packages/autocomplete/src/autocomplete.vue +285 -0
  12. package/packages/avatar/index.js +8 -0
  13. package/packages/avatar/src/main.vue +107 -0
  14. package/packages/backtop/index.js +8 -0
  15. package/packages/backtop/src/main.vue +110 -0
  16. package/packages/badge/index.js +8 -0
  17. package/packages/badge/src/main.vue +53 -0
  18. package/packages/breadcrumb/index.js +8 -0
  19. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -0
  20. package/packages/breadcrumb/src/breadcrumb.vue +34 -0
  21. package/packages/breadcrumb-item/index.js +8 -0
  22. package/packages/button/index.js +8 -0
  23. package/packages/button/src/button-group.vue +10 -0
  24. package/packages/button/src/button.vue +78 -0
  25. package/packages/button-group/index.js +8 -0
  26. package/packages/calendar/index.js +8 -0
  27. package/packages/calendar/src/date-table.vue +200 -0
  28. package/packages/calendar/src/main.vue +280 -0
  29. package/packages/card/index.js +8 -0
  30. package/packages/card/src/main.vue +23 -0
  31. package/packages/carousel/index.js +8 -0
  32. package/packages/carousel/src/item.vue +138 -0
  33. package/packages/carousel/src/main.vue +315 -0
  34. package/packages/carousel-item/index.js +8 -0
  35. package/packages/cascader/index.js +8 -0
  36. package/packages/cascader/src/cascader.vue +663 -0
  37. package/packages/cascader-panel/index.js +8 -0
  38. package/packages/cascader-panel/src/cascader-menu.vue +138 -0
  39. package/packages/cascader-panel/src/cascader-node.vue +246 -0
  40. package/packages/cascader-panel/src/cascader-panel.vue +391 -0
  41. package/packages/cascader-panel/src/node.js +166 -0
  42. package/packages/cascader-panel/src/store.js +58 -0
  43. package/packages/checkbox/index.js +8 -0
  44. package/packages/checkbox/src/checkbox-button.vue +199 -0
  45. package/packages/checkbox/src/checkbox-group.vue +48 -0
  46. package/packages/checkbox/src/checkbox.vue +222 -0
  47. package/packages/checkbox-button/index.js +8 -0
  48. package/packages/checkbox-group/index.js +8 -0
  49. package/packages/col/index.js +9 -0
  50. package/packages/col/src/col.js +71 -0
  51. package/packages/collapse/index.js +9 -0
  52. package/packages/collapse/src/collapse-item.vue +114 -0
  53. package/packages/collapse/src/collapse.vue +73 -0
  54. package/packages/collapse-item/index.js +8 -0
  55. package/packages/color-picker/index.js +8 -0
  56. package/packages/color-picker/src/color.js +317 -0
  57. package/packages/color-picker/src/components/alpha-slider.vue +132 -0
  58. package/packages/color-picker/src/components/hue-slider.vue +123 -0
  59. package/packages/color-picker/src/components/picker-dropdown.vue +121 -0
  60. package/packages/color-picker/src/components/predefine.vue +61 -0
  61. package/packages/color-picker/src/components/sv-panel.vue +100 -0
  62. package/packages/color-picker/src/draggable.js +36 -0
  63. package/packages/color-picker/src/main.vue +188 -0
  64. package/packages/container/index.js +8 -0
  65. package/packages/container/src/main.vue +33 -0
  66. package/packages/date-picker/index.js +8 -0
  67. package/packages/date-picker/src/basic/date-table.vue +441 -0
  68. package/packages/date-picker/src/basic/month-table.vue +269 -0
  69. package/packages/date-picker/src/basic/time-spinner.vue +304 -0
  70. package/packages/date-picker/src/basic/year-table.vue +111 -0
  71. package/packages/date-picker/src/panel/date-range.vue +680 -0
  72. package/packages/date-picker/src/panel/date.vue +609 -0
  73. package/packages/date-picker/src/panel/month-range.vue +289 -0
  74. package/packages/date-picker/src/panel/time-range.vue +248 -0
  75. package/packages/date-picker/src/panel/time-select.vue +178 -0
  76. package/packages/date-picker/src/panel/time.vue +186 -0
  77. package/packages/date-picker/src/picker/date-picker.js +43 -0
  78. package/packages/date-picker/src/picker/time-picker.js +39 -0
  79. package/packages/date-picker/src/picker/time-select.js +21 -0
  80. package/packages/date-picker/src/picker.vue +956 -0
  81. package/packages/descriptions/index.js +8 -0
  82. package/packages/descriptions/src/descriptions-item.js +30 -0
  83. package/packages/descriptions/src/descriptions-row.js +116 -0
  84. package/packages/descriptions/src/index.js +180 -0
  85. package/packages/descriptions-item/index.js +8 -0
  86. package/packages/dialog/index.js +8 -0
  87. package/packages/dialog/src/component.vue +212 -0
  88. package/packages/divider/index.js +8 -0
  89. package/packages/divider/src/main.vue +37 -0
  90. package/packages/drawer/index.js +8 -0
  91. package/packages/drawer/src/main.vue +205 -0
  92. package/packages/dropdown/index.js +8 -0
  93. package/packages/dropdown/src/dropdown-item.vue +37 -0
  94. package/packages/dropdown/src/dropdown-menu.vue +63 -0
  95. package/packages/dropdown/src/dropdown.vue +293 -0
  96. package/packages/dropdown-item/index.js +8 -0
  97. package/packages/dropdown-menu/index.js +8 -0
  98. package/packages/empty/index.js +7 -0
  99. package/packages/empty/src/img-empty.vue +132 -0
  100. package/packages/empty/src/index.vue +50 -0
  101. package/packages/footer/index.js +8 -0
  102. package/packages/footer/src/main.vue +20 -0
  103. package/packages/form/index.js +8 -0
  104. package/packages/form/src/form-item.vue +324 -0
  105. package/packages/form/src/form.vue +182 -0
  106. package/packages/form/src/label-wrap.vue +78 -0
  107. package/packages/form-item/index.js +8 -0
  108. package/packages/header/index.js +8 -0
  109. package/packages/header/src/main.vue +20 -0
  110. package/packages/icon/index.js +8 -0
  111. package/packages/icon/src/icon.vue +13 -0
  112. package/packages/image/index.js +8 -0
  113. package/packages/image/src/image-viewer.vue +330 -0
  114. package/packages/image/src/main.vue +249 -0
  115. package/packages/infinite-scroll/index.js +8 -0
  116. package/packages/infinite-scroll/src/main.js +150 -0
  117. package/packages/input/index.js +8 -0
  118. package/packages/input/src/calcTextareaHeight.js +104 -0
  119. package/packages/input/src/input.vue +440 -0
  120. package/packages/input-number/index.js +8 -0
  121. package/packages/input-number/src/input-number.vue +283 -0
  122. package/packages/link/index.js +8 -0
  123. package/packages/link/src/main.vue +53 -0
  124. package/packages/loading/index.js +11 -0
  125. package/packages/loading/src/directive.js +133 -0
  126. package/packages/loading/src/index.js +106 -0
  127. package/packages/loading/src/loading.vue +41 -0
  128. package/packages/main/index.js +8 -0
  129. package/packages/main/src/main.vue +12 -0
  130. package/packages/menu/index.js +8 -0
  131. package/packages/menu/src/menu-item-group.vue +45 -0
  132. package/packages/menu/src/menu-item.vue +112 -0
  133. package/packages/menu/src/menu-mixin.js +44 -0
  134. package/packages/menu/src/menu.vue +325 -0
  135. package/packages/menu/src/submenu.vue +349 -0
  136. package/packages/menu-item/index.js +8 -0
  137. package/packages/menu-item-group/index.js +8 -0
  138. package/packages/message/index.js +2 -0
  139. package/packages/message/src/main.js +91 -0
  140. package/packages/message/src/main.vue +117 -0
  141. package/packages/message-box/index.js +2 -0
  142. package/packages/message-box/src/main.js +216 -0
  143. package/packages/message-box/src/main.vue +332 -0
  144. package/packages/notification/index.js +2 -0
  145. package/packages/notification/src/main.js +94 -0
  146. package/packages/notification/src/main.vue +152 -0
  147. package/packages/option/index.js +8 -0
  148. package/packages/option-group/index.js +8 -0
  149. package/packages/page-header/index.js +8 -0
  150. package/packages/page-header/src/main.vue +30 -0
  151. package/packages/pagination/index.js +8 -0
  152. package/packages/pagination/src/pager.vue +163 -0
  153. package/packages/pagination/src/pagination.js +386 -0
  154. package/packages/popconfirm/index.js +8 -0
  155. package/packages/popconfirm/src/main.vue +104 -0
  156. package/packages/popover/index.js +14 -0
  157. package/packages/popover/src/directive.js +20 -0
  158. package/packages/popover/src/main.vue +237 -0
  159. package/packages/progress/index.js +8 -0
  160. package/packages/progress/src/progress.vue +235 -0
  161. package/packages/radio/index.js +8 -0
  162. package/packages/radio/src/radio-button.vue +115 -0
  163. package/packages/radio/src/radio-group.vue +113 -0
  164. package/packages/radio/src/radio.vue +134 -0
  165. package/packages/radio-button/index.js +8 -0
  166. package/packages/radio-group/index.js +8 -0
  167. package/packages/rate/index.js +8 -0
  168. package/packages/rate/src/main.vue +348 -0
  169. package/packages/result/index.js +8 -0
  170. package/packages/result/src/icon-error.vue +13 -0
  171. package/packages/result/src/icon-info.vue +13 -0
  172. package/packages/result/src/icon-success.vue +13 -0
  173. package/packages/result/src/icon-warning.vue +13 -0
  174. package/packages/result/src/index.vue +65 -0
  175. package/packages/row/index.js +9 -0
  176. package/packages/row/src/row.js +44 -0
  177. package/packages/scrollbar/index.js +8 -0
  178. package/packages/scrollbar/src/bar.js +92 -0
  179. package/packages/scrollbar/src/main.js +130 -0
  180. package/packages/scrollbar/src/util.js +34 -0
  181. package/packages/select/index.js +8 -0
  182. package/packages/select/src/navigation-mixin.js +54 -0
  183. package/packages/select/src/option-group.vue +60 -0
  184. package/packages/select/src/option.vue +168 -0
  185. package/packages/select/src/select-dropdown.vue +74 -0
  186. package/packages/select/src/select.vue +900 -0
  187. package/packages/skeleton/index.js +8 -0
  188. package/packages/skeleton/src/img-placeholder.vue +16 -0
  189. package/packages/skeleton/src/index.vue +76 -0
  190. package/packages/skeleton/src/item.vue +22 -0
  191. package/packages/skeleton-item/index.js +8 -0
  192. package/packages/slider/index.js +8 -0
  193. package/packages/slider/src/button.vue +238 -0
  194. package/packages/slider/src/main.vue +427 -0
  195. package/packages/slider/src/marker.js +18 -0
  196. package/packages/spinner/index.js +8 -0
  197. package/packages/spinner/src/spinner.vue +27 -0
  198. package/packages/statistic/index.js +8 -0
  199. package/packages/statistic/src/main.vue +204 -0
  200. package/packages/step/index.js +8 -0
  201. package/packages/steps/README.md +69 -0
  202. package/packages/steps/index.js +8 -0
  203. package/packages/steps/src/step.vue +184 -0
  204. package/packages/steps/src/steps.vue +68 -0
  205. package/packages/submenu/index.js +8 -0
  206. package/packages/switch/index.js +9 -0
  207. package/packages/switch/src/component.vue +174 -0
  208. package/packages/tab-pane/index.js +8 -0
  209. package/packages/table/index.js +8 -0
  210. package/packages/table/src/config.js +124 -0
  211. package/packages/table/src/dropdown.js +28 -0
  212. package/packages/table/src/filter-panel.vue +194 -0
  213. package/packages/table/src/layout-observer.js +68 -0
  214. package/packages/table/src/store/current.js +76 -0
  215. package/packages/table/src/store/expand.js +65 -0
  216. package/packages/table/src/store/helper.js +41 -0
  217. package/packages/table/src/store/index.js +147 -0
  218. package/packages/table/src/store/tree.js +209 -0
  219. package/packages/table/src/store/watcher.js +381 -0
  220. package/packages/table/src/table-body.js +469 -0
  221. package/packages/table/src/table-column.js +319 -0
  222. package/packages/table/src/table-footer.js +153 -0
  223. package/packages/table/src/table-header.js +511 -0
  224. package/packages/table/src/table-layout.js +249 -0
  225. package/packages/table/src/table-row.js +101 -0
  226. package/packages/table/src/table.vue +712 -0
  227. package/packages/table/src/util.js +273 -0
  228. package/packages/table-column/index.js +8 -0
  229. package/packages/tabs/index.js +8 -0
  230. package/packages/tabs/src/tab-bar.vue +57 -0
  231. package/packages/tabs/src/tab-nav.vue +294 -0
  232. package/packages/tabs/src/tab-pane.vue +56 -0
  233. package/packages/tabs/src/tabs.vue +191 -0
  234. package/packages/tag/index.js +8 -0
  235. package/packages/tag/src/tag.vue +58 -0
  236. package/packages/theme-chalk/README.md +33 -0
  237. package/packages/theme-chalk/package.json +35 -0
  238. package/packages/theme-chalk/src/alert.scss +147 -0
  239. package/packages/theme-chalk/src/aside.scss +7 -0
  240. package/packages/theme-chalk/src/autocomplete.scss +80 -0
  241. package/packages/theme-chalk/src/avatar.scss +51 -0
  242. package/packages/theme-chalk/src/backtop.scss +22 -0
  243. package/packages/theme-chalk/src/badge.scss +57 -0
  244. package/packages/theme-chalk/src/base.scss +2 -0
  245. package/packages/theme-chalk/src/breadcrumb-item.scss +0 -0
  246. package/packages/theme-chalk/src/breadcrumb.scss +55 -0
  247. package/packages/theme-chalk/src/button-group.scss +0 -0
  248. package/packages/theme-chalk/src/button.scss +262 -0
  249. package/packages/theme-chalk/src/calendar.scss +79 -0
  250. package/packages/theme-chalk/src/card.scss +32 -0
  251. package/packages/theme-chalk/src/carousel-item.scss +50 -0
  252. package/packages/theme-chalk/src/carousel.scss +161 -0
  253. package/packages/theme-chalk/src/cascader-panel.scss +120 -0
  254. package/packages/theme-chalk/src/cascader.scss +182 -0
  255. package/packages/theme-chalk/src/checkbox-button.scss +0 -0
  256. package/packages/theme-chalk/src/checkbox-group.scss +0 -0
  257. package/packages/theme-chalk/src/checkbox.scss +359 -0
  258. package/packages/theme-chalk/src/col.scss +156 -0
  259. package/packages/theme-chalk/src/collapse-item.scss +0 -0
  260. package/packages/theme-chalk/src/collapse.scss +63 -0
  261. package/packages/theme-chalk/src/color-picker.scss +384 -0
  262. package/packages/theme-chalk/src/common/popup.scss +42 -0
  263. package/packages/theme-chalk/src/common/transition.scss +99 -0
  264. package/packages/theme-chalk/src/common/var.scss +1028 -0
  265. package/packages/theme-chalk/src/container.scss +14 -0
  266. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -0
  267. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  268. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -0
  269. package/packages/theme-chalk/src/date-picker/month-table.scss +82 -0
  270. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  271. package/packages/theme-chalk/src/date-picker/picker.scss +197 -0
  272. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -0
  273. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  274. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  275. package/packages/theme-chalk/src/date-picker/year-table.scss +51 -0
  276. package/packages/theme-chalk/src/date-picker.scss +12 -0
  277. package/packages/theme-chalk/src/descriptions-item.scss +42 -0
  278. package/packages/theme-chalk/src/descriptions.scss +111 -0
  279. package/packages/theme-chalk/src/dialog.scss +123 -0
  280. package/packages/theme-chalk/src/display.scss +12 -0
  281. package/packages/theme-chalk/src/divider.scss +47 -0
  282. package/packages/theme-chalk/src/drawer.scss +219 -0
  283. package/packages/theme-chalk/src/dropdown-item.scss +0 -0
  284. package/packages/theme-chalk/src/dropdown-menu.scss +0 -0
  285. package/packages/theme-chalk/src/dropdown.scss +182 -0
  286. package/packages/theme-chalk/src/empty.scss +45 -0
  287. package/packages/theme-chalk/src/fonts/element-icons.ttf +0 -0
  288. package/packages/theme-chalk/src/fonts/element-icons.woff +0 -0
  289. package/packages/theme-chalk/src/footer.scss +8 -0
  290. package/packages/theme-chalk/src/form-item.scss +0 -0
  291. package/packages/theme-chalk/src/form.scss +167 -0
  292. package/packages/theme-chalk/src/header.scss +8 -0
  293. package/packages/theme-chalk/src/icon.scss +1167 -0
  294. package/packages/theme-chalk/src/image.scss +179 -0
  295. package/packages/theme-chalk/src/index.scss +87 -0
  296. package/packages/theme-chalk/src/infinite-scroll.scss +0 -0
  297. package/packages/theme-chalk/src/infiniteScroll.scss +0 -0
  298. package/packages/theme-chalk/src/input-number.scss +180 -0
  299. package/packages/theme-chalk/src/input.scss +360 -0
  300. package/packages/theme-chalk/src/link.scss +81 -0
  301. package/packages/theme-chalk/src/loading.scss +96 -0
  302. package/packages/theme-chalk/src/main.scss +12 -0
  303. package/packages/theme-chalk/src/menu-item-group.scss +0 -0
  304. package/packages/theme-chalk/src/menu-item.scss +0 -0
  305. package/packages/theme-chalk/src/menu.scss +289 -0
  306. package/packages/theme-chalk/src/message-box.scss +226 -0
  307. package/packages/theme-chalk/src/message.scss +120 -0
  308. package/packages/theme-chalk/src/mixins/_button.scss +81 -0
  309. package/packages/theme-chalk/src/mixins/config.scss +4 -0
  310. package/packages/theme-chalk/src/mixins/function.scss +44 -0
  311. package/packages/theme-chalk/src/mixins/mixins.scss +190 -0
  312. package/packages/theme-chalk/src/mixins/utils.scss +39 -0
  313. package/packages/theme-chalk/src/notification.scss +99 -0
  314. package/packages/theme-chalk/src/option-group.scss +42 -0
  315. package/packages/theme-chalk/src/option.scss +36 -0
  316. package/packages/theme-chalk/src/page-header.scss +41 -0
  317. package/packages/theme-chalk/src/pagination.scss +295 -0
  318. package/packages/theme-chalk/src/popconfirm.scss +16 -0
  319. package/packages/theme-chalk/src/popover.scss +40 -0
  320. package/packages/theme-chalk/src/popper.scss +101 -0
  321. package/packages/theme-chalk/src/progress.scss +141 -0
  322. package/packages/theme-chalk/src/radio-button.scss +113 -0
  323. package/packages/theme-chalk/src/radio-group.scss +9 -0
  324. package/packages/theme-chalk/src/radio.scss +199 -0
  325. package/packages/theme-chalk/src/rate.scss +49 -0
  326. package/packages/theme-chalk/src/reset.scss +79 -0
  327. package/packages/theme-chalk/src/result.scss +61 -0
  328. package/packages/theme-chalk/src/row.scss +43 -0
  329. package/packages/theme-chalk/src/scrollbar.scss +72 -0
  330. package/packages/theme-chalk/src/select-dropdown.scss +62 -0
  331. package/packages/theme-chalk/src/select.scss +152 -0
  332. package/packages/theme-chalk/src/skeleton-item.scss +84 -0
  333. package/packages/theme-chalk/src/skeleton.scss +40 -0
  334. package/packages/theme-chalk/src/slider.scss +250 -0
  335. package/packages/theme-chalk/src/spinner.scss +44 -0
  336. package/packages/theme-chalk/src/statistic.scss +38 -0
  337. package/packages/theme-chalk/src/step.scss +317 -0
  338. package/packages/theme-chalk/src/steps.scss +20 -0
  339. package/packages/theme-chalk/src/submenu.scss +0 -0
  340. package/packages/theme-chalk/src/switch.scss +116 -0
  341. package/packages/theme-chalk/src/tab-pane.scss +0 -0
  342. package/packages/theme-chalk/src/table-column.scss +97 -0
  343. package/packages/theme-chalk/src/table.scss +564 -0
  344. package/packages/theme-chalk/src/tabs.scss +602 -0
  345. package/packages/theme-chalk/src/tag.scss +163 -0
  346. package/packages/theme-chalk/src/time-picker.scss +8 -0
  347. package/packages/theme-chalk/src/time-select.scss +37 -0
  348. package/packages/theme-chalk/src/timeline-item.scss +86 -0
  349. package/packages/theme-chalk/src/timeline.scss +14 -0
  350. package/packages/theme-chalk/src/tooltip.scss +141 -0
  351. package/packages/theme-chalk/src/transfer.scss +227 -0
  352. package/packages/theme-chalk/src/tree.scss +123 -0
  353. package/packages/theme-chalk/src/upload.scss +603 -0
  354. package/packages/theme-cy/README.md +38 -0
  355. package/packages/theme-cy/package.json +35 -0
  356. package/packages/theme-cy/src/base.scss +0 -0
  357. package/packages/theme-cy/src/index.scss +2 -0
  358. package/packages/theme-cy/src/treeselect.scss +4 -0
  359. package/packages/time-picker/index.js +8 -0
  360. package/packages/time-select/index.js +8 -0
  361. package/packages/timeline/index.js +8 -0
  362. package/packages/timeline/src/item.vue +73 -0
  363. package/packages/timeline/src/main.vue +33 -0
  364. package/packages/timeline-item/index.js +8 -0
  365. package/packages/tooltip/index.js +8 -0
  366. package/packages/tooltip/src/main.js +242 -0
  367. package/packages/transfer/index.js +8 -0
  368. package/packages/transfer/src/main.vue +231 -0
  369. package/packages/transfer/src/transfer-panel.vue +251 -0
  370. package/packages/tree/index.js +8 -0
  371. package/packages/tree/src/model/node.js +484 -0
  372. package/packages/tree/src/model/tree-store.js +340 -0
  373. package/packages/tree/src/model/util.js +27 -0
  374. package/packages/tree/src/tree-node.vue +279 -0
  375. package/packages/tree/src/tree.vue +496 -0
  376. package/packages/treeselect/index.js +8 -0
  377. package/packages/treeselect/src/main.vue +331 -0
  378. package/packages/upload/index.js +8 -0
  379. package/packages/upload/src/ajax.js +85 -0
  380. package/packages/upload/src/index.vue +338 -0
  381. package/packages/upload/src/upload-dragger.vue +70 -0
  382. package/packages/upload/src/upload-list.vue +105 -0
  383. package/packages/upload/src/upload.vue +211 -0
  384. package/src/directives/mousewheel.js +18 -0
  385. package/src/directives/repeat-click.js +26 -0
  386. package/src/index.js +312 -0
  387. package/src/locale/format.js +46 -0
  388. package/src/locale/index.js +48 -0
  389. package/src/locale/lang/af-ZA.js +123 -0
  390. package/src/locale/lang/ar.js +122 -0
  391. package/src/locale/lang/az.js +126 -0
  392. package/src/locale/lang/bg.js +123 -0
  393. package/src/locale/lang/bn.js +126 -0
  394. package/src/locale/lang/ca.js +122 -0
  395. package/src/locale/lang/cs-CZ.js +125 -0
  396. package/src/locale/lang/da.js +122 -0
  397. package/src/locale/lang/de.js +124 -0
  398. package/src/locale/lang/ee.js +123 -0
  399. package/src/locale/lang/el.js +123 -0
  400. package/src/locale/lang/en.js +123 -0
  401. package/src/locale/lang/eo.js +123 -0
  402. package/src/locale/lang/es.js +122 -0
  403. package/src/locale/lang/eu.js +123 -0
  404. package/src/locale/lang/fa.js +123 -0
  405. package/src/locale/lang/fi.js +123 -0
  406. package/src/locale/lang/fr.js +122 -0
  407. package/src/locale/lang/he.js +123 -0
  408. package/src/locale/lang/hr.js +123 -0
  409. package/src/locale/lang/hu.js +122 -0
  410. package/src/locale/lang/hy-AM.js +123 -0
  411. package/src/locale/lang/id.js +123 -0
  412. package/src/locale/lang/is.js +124 -0
  413. package/src/locale/lang/it.js +122 -0
  414. package/src/locale/lang/ja.js +123 -0
  415. package/src/locale/lang/kg.js +123 -0
  416. package/src/locale/lang/km.js +123 -0
  417. package/src/locale/lang/ko.js +123 -0
  418. package/src/locale/lang/ku.js +123 -0
  419. package/src/locale/lang/kz.js +123 -0
  420. package/src/locale/lang/lo-LA.js +126 -0
  421. package/src/locale/lang/lt.js +123 -0
  422. package/src/locale/lang/lv.js +123 -0
  423. package/src/locale/lang/mn.js +123 -0
  424. package/src/locale/lang/ms.js +122 -0
  425. package/src/locale/lang/nb-NO.js +122 -0
  426. package/src/locale/lang/nl.js +123 -0
  427. package/src/locale/lang/pl.js +123 -0
  428. package/src/locale/lang/pt-br.js +123 -0
  429. package/src/locale/lang/pt.js +123 -0
  430. package/src/locale/lang/ro.js +123 -0
  431. package/src/locale/lang/ru-RU.js +123 -0
  432. package/src/locale/lang/si.js +123 -0
  433. package/src/locale/lang/sk.js +125 -0
  434. package/src/locale/lang/sl.js +123 -0
  435. package/src/locale/lang/sr-Latn.js +123 -0
  436. package/src/locale/lang/sr.js +123 -0
  437. package/src/locale/lang/sv-SE.js +123 -0
  438. package/src/locale/lang/sw.js +123 -0
  439. package/src/locale/lang/ta.js +122 -0
  440. package/src/locale/lang/th.js +123 -0
  441. package/src/locale/lang/tk.js +123 -0
  442. package/src/locale/lang/tr-TR.js +123 -0
  443. package/src/locale/lang/ua.js +123 -0
  444. package/src/locale/lang/ug-CN.js +123 -0
  445. package/src/locale/lang/uz-UZ.js +123 -0
  446. package/src/locale/lang/vi.js +123 -0
  447. package/src/locale/lang/zh-CN.js +123 -0
  448. package/src/locale/lang/zh-TW.js +123 -0
  449. package/src/mixins/emitter.js +33 -0
  450. package/src/mixins/focus.js +9 -0
  451. package/src/mixins/locale.js +9 -0
  452. package/src/mixins/migrating.js +54 -0
  453. package/src/transitions/collapse-transition.js +77 -0
  454. package/src/utils/after-leave.js +27 -0
  455. package/src/utils/aria-dialog.js +90 -0
  456. package/src/utils/aria-utils.js +122 -0
  457. package/src/utils/clickoutside.js +76 -0
  458. package/src/utils/date-util.js +282 -0
  459. package/src/utils/date.js +368 -0
  460. package/src/utils/dom.js +227 -0
  461. package/src/utils/lodash.js +18075 -0
  462. package/src/utils/menu/aria-menubar.js +14 -0
  463. package/src/utils/menu/aria-menuitem.js +49 -0
  464. package/src/utils/menu/aria-submenu.js +59 -0
  465. package/src/utils/merge.js +15 -0
  466. package/src/utils/popper.js +1276 -0
  467. package/src/utils/popup/index.js +218 -0
  468. package/src/utils/popup/popup-manager.js +194 -0
  469. package/src/utils/resize-event.js +36 -0
  470. package/src/utils/scroll-into-view.js +27 -0
  471. package/src/utils/scrollbar-width.js +29 -0
  472. package/src/utils/shared.js +7 -0
  473. package/src/utils/types.js +40 -0
  474. package/src/utils/util.js +245 -0
  475. package/src/utils/vdom.js +5 -0
  476. package/src/utils/vue-popper.js +198 -0
  477. package/types/alert.d.ts +31 -0
  478. package/types/aside.d.ts +7 -0
  479. package/types/autocomplete.d.ts +78 -0
  480. package/types/avatar.d.ts +20 -0
  481. package/types/backtop.d.ts +16 -0
  482. package/types/badge.d.ts +16 -0
  483. package/types/breadcrumb-item.d.ts +10 -0
  484. package/types/breadcrumb.d.ts +10 -0
  485. package/types/button-group.d.ts +4 -0
  486. package/types/button.d.ts +37 -0
  487. package/types/calendar.d.ts +15 -0
  488. package/types/card.d.ts +26 -0
  489. package/types/carousel-item.d.ts +10 -0
  490. package/types/carousel.d.ts +57 -0
  491. package/types/cascader-panel.d.ts +72 -0
  492. package/types/cascader.d.ts +65 -0
  493. package/types/checkbox-button.d.ts +22 -0
  494. package/types/checkbox-group.d.ts +22 -0
  495. package/types/checkbox.d.ts +34 -0
  496. package/types/col.d.ts +46 -0
  497. package/types/collapse-item.d.ts +26 -0
  498. package/types/collapse.d.ts +10 -0
  499. package/types/color-picker.d.ts +21 -0
  500. package/types/component.d.ts +13 -0
  501. package/types/container.d.ts +7 -0
  502. package/types/date-picker.d.ts +124 -0
  503. package/types/descriptions-item.d.ts +37 -0
  504. package/types/descriptions.d.ts +52 -0
  505. package/types/dialog.d.ts +62 -0
  506. package/types/divider.d.ts +12 -0
  507. package/types/drawer.d.ts +63 -0
  508. package/types/dropdown-item.d.ts +16 -0
  509. package/types/dropdown-menu.d.ts +4 -0
  510. package/types/dropdown.d.ts +38 -0
  511. package/types/element-ui.d.ts +386 -0
  512. package/types/empty.d.ts +31 -0
  513. package/types/footer.d.ts +7 -0
  514. package/types/form-item.d.ts +37 -0
  515. package/types/form.d.ts +82 -0
  516. package/types/header.d.ts +7 -0
  517. package/types/icon.d.ts +7 -0
  518. package/types/image.d.ts +43 -0
  519. package/types/index.d.ts +4 -0
  520. package/types/infinite-scroll.d.ts +6 -0
  521. package/types/input-number.d.ts +47 -0
  522. package/types/input.d.ts +107 -0
  523. package/types/link.d.ts +25 -0
  524. package/types/loading.d.ts +62 -0
  525. package/types/main.d.ts +4 -0
  526. package/types/menu-item-group.d.ts +7 -0
  527. package/types/menu-item.d.ts +10 -0
  528. package/types/menu.d.ts +46 -0
  529. package/types/message-box.d.ts +176 -0
  530. package/types/message.d.ts +90 -0
  531. package/types/notification.d.ts +84 -0
  532. package/types/option-group.d.ts +10 -0
  533. package/types/option.d.ts +13 -0
  534. package/types/page-header.d.ts +10 -0
  535. package/types/pagination.d.ts +43 -0
  536. package/types/popconfirm.d.ts +29 -0
  537. package/types/popover.d.ts +71 -0
  538. package/types/progress.d.ts +37 -0
  539. package/types/radio-button.d.ts +16 -0
  540. package/types/radio-group.d.ts +18 -0
  541. package/types/radio.d.ts +19 -0
  542. package/types/rate.d.ts +64 -0
  543. package/types/result.d.ts +33 -0
  544. package/types/row.d.ts +25 -0
  545. package/types/select.d.ts +90 -0
  546. package/types/skeleton-item.d.ts +7 -0
  547. package/types/skeleton.d.ts +33 -0
  548. package/types/slider.d.ts +68 -0
  549. package/types/spinner.d.ts +16 -0
  550. package/types/statistic.d.ts +37 -0
  551. package/types/step.d.ts +34 -0
  552. package/types/steps.d.ts +28 -0
  553. package/types/submenu.d.ts +22 -0
  554. package/types/switch.d.ts +43 -0
  555. package/types/tab-pane.d.ts +19 -0
  556. package/types/table-column.d.ts +117 -0
  557. package/types/table.d.ts +177 -0
  558. package/types/tabs.d.ts +31 -0
  559. package/types/tag.d.ts +28 -0
  560. package/types/time-picker.d.ts +63 -0
  561. package/types/time-select.d.ts +56 -0
  562. package/types/timeline-item.d.ts +20 -0
  563. package/types/timeline.d.ts +6 -0
  564. package/types/tooltip.d.ts +52 -0
  565. package/types/transfer.d.ts +73 -0
  566. package/types/tree.d.ts +266 -0
  567. package/types/treeselect.d.ts +5 -0
  568. package/types/upload.d.ts +124 -0
  569. package/web-types.json +4195 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,280 @@
1
+ ## 更新日志
2
+
3
+ ### 2.15.14
4
+
5
+ *2023-08-24*
6
+
7
+ #### Bug 修复
8
+ - Img
9
+ - 删除 referrerpolicy 属性 (#22651 by @xinguanhua)
10
+ #### 优化
11
+ - Docs
12
+ - 更新 readme and website example links (#22642 by @lyfeyaj)
13
+ - 更新 popper 官方文档链接 (#22539 by @brizer)
14
+ - I18n
15
+ - 更新 西班牙语 翻译 (#22430 by @jcardus)
16
+ - 新增 塞尔维亚语(拉丁) 翻译 (#22567 by @N-M)
17
+ - 更新 乌兹别克语 翻译 (#22390 by @akahon)
18
+ - Statistics
19
+ - 文档更新; 代码优化 (#22384 by @webvs2)
20
+ - Table
21
+ - 增加高亮选中行属性 (#22382 by @wangdaodao)
22
+
23
+ ### 2.15.13
24
+
25
+ *2023-02-12*
26
+
27
+ #### Bug 修复
28
+ - Docs
29
+ - 修复 Statistic 文案 (#22383 by @JUST-Limbo)
30
+ - 修复 Input 文案 (#22093 by @lm312)
31
+ - 修复 en-US 文案 (#22268 #22269 #22270 by @Hazel-Lin)
32
+ - 修复 Pagination 文案 (#22288 by @xujintai123)
33
+ - 修复 Links 文案 (#22370 by @itmier)
34
+ - Statistics
35
+ - 修复 slot 显示问题 (#22375 by @webvs2)
36
+ - Chore
37
+ - 修复 web-type 文件丢失问题 (#22271 by @loosheng)
38
+ #### 优化
39
+ - InputNumber
40
+ - windows触摸屏响应优化 (#22185 by @mrsai)
41
+ - Image
42
+ - 新增 initialIndex 属性 (#22346 by @inkroom)
43
+ - Statistics
44
+ - countdown 特性更新 (#22260 by @webvs2)
45
+ - 代码优化及doc更新 (#22276 by @webvs2)
46
+ - 其他
47
+ - web-type代码优化 (#22281 by @whzxc)
48
+
49
+ ### 2.15.12
50
+
51
+ *2022-11-16*
52
+
53
+ #### Bug 修复
54
+ - Statistics
55
+ - 修改 千分位 问题 (#22252 by @webvs2)
56
+ - 其他
57
+ - 修复 2.15.11版本element-theme-chalk未成功发布 问题
58
+
59
+ ### 2.15.11
60
+
61
+ *2022-11-15*
62
+
63
+ #### Bug 修复
64
+ - Docs
65
+ - 修复 Radio 文案 (#22178 by @bchen1029)
66
+ - 修复 Progress 文案
67
+ #### 优化
68
+ - I18n
69
+ - 更新 马来西亚语 翻译 (#22185 by @z4q)
70
+ - 更新 挪威语 翻译 (#22145 by @Barsnes)
71
+ - Progress
72
+ - 新增 defineBackColor 和 textColor 属性 (#22089 by @lm312)
73
+ - Statistics
74
+ - 新增组件 Statistics (#22159 by @webvs2)
75
+ - Other
76
+ - 改进WebStorm IDE和其他JetBrains IDE中的代码帮助 (#22135 by @piotrtomiak)
77
+
78
+ ### 2.15.10
79
+
80
+ *2022-09-13*
81
+
82
+ #### Bug 修复
83
+
84
+ - DatePicker
85
+ - 修复 props placement 报错信息 问题 (#21908 by @lqzhgood)
86
+ - Loading
87
+ - 修复 使用 Loading 的DOM元素 sticky失效 问题 (#22087 by @zzjjhh001)
88
+ - Docs
89
+ - 修复 Popover 文案 (#22083 by @lm312)
90
+ - 修复 Skeleton 文案 (#22092 by @lm312)
91
+ - 修复 DatePicker 文案 (#21970 by @guojiongwei)
92
+ - Tree
93
+ - 修复 懒加载默认选中 问题 (#21934 by @kiss-yu)
94
+
95
+ #### 优化
96
+
97
+ - I18n
98
+ - 新增 僧伽罗语 翻译 (#21936 by @sayuri-gi)
99
+ - 更新 西班牙语 翻译 (#21924 by @jcardus)
100
+ - 新增 马来西亚语 翻译 (#22028 by @iorange0411)
101
+ - 更新 斯瓦希里语 翻译 (#21904 by @Cholowao)
102
+ - Utils
103
+ - 更新 date-util.js (#22099 by @Due07)
104
+ - DatePicker
105
+ - 新增 months 和 years 类型 (#21918 by @akiko123456)
106
+
107
+ *2017-10-27*
108
+
109
+ #### 新特性
110
+ - 综合
111
+ - 新增 `theme-chalk` 主题
112
+ - 增强以下组件的可访问性:Alert、AutoComplete、Breadcrumb、Button、Checkbox、Collapse、Input、InputNumber、Menu、Progress、Radio、Rate、Slider、Switch 和 Upload
113
+ - 新增布局组件 Container、Header、Aside、Main 和 Footer
114
+ - 新增 TypeScript 类型声明
115
+ - 重绘了全部图标,并新增了部分图标
116
+ - 新增了一系列基于断点的工具类,用于当视口尺寸满足一定条件时隐藏元素
117
+ - 新增全局配置组件尺寸的功能。在引入 Element 时,配置 `size` 字段可以改变所有组件的默认尺寸
118
+ - Button
119
+ - 新增 `round` 属性,用于圆角按钮 #6643
120
+ - TimeSelect
121
+ - 可以用 `Up`、`Down` 导航,用 `Enter` 选中时间 #6023
122
+ - TimePicker
123
+ - 可以用方向键导航,用 `Enter` 选中时间 #6050
124
+ - 新增 `start-placeholder` 和 `end-placeholder`,用于设置范围选择时两个输入框的占位符 #7169
125
+ - 新增 `arrow-control` 属性,提供另一种交互形式,#7438
126
+ - Tree
127
+ - 子节点在首次被展开之前不进行渲染 #6257
128
+ - 新增 `check-descendants` 属性,设置 `lazy` 模式下勾选节点时,是否完全展开整个子树 #6235
129
+ - Tag
130
+ - 新增 `size` 属性 #7203
131
+ - Datepicker
132
+ - type 为 `datetimerange` 时可以使用 `timeFormat` 格式化时间选择器 #6052
133
+ - 新增 `start-placeholder` 和 `end-placeholder`,用于设置范围选择时两个输入框的占位符 #7169
134
+ - 新增 `value-format` 属性,支持对绑定值的格式进行自定义,#7367
135
+ - 新增 `unlink-panels` 属性,用于在选择日期范围时取消两个日期面板之间的联动
136
+ - MessageBox
137
+ - 新增 `closeOnHashChange` 属性 #6043
138
+ - 新增 `center` 属性,提供居中布局 #7029
139
+ - 新增 `roundButton` 属性,使得内部按钮为圆角按钮 #7029
140
+ - 新增 `dangerouslyUseHTMLString` 属性,使得 `message` 支持传入 HTML 字符串<sup>*</sup> #6043
141
+ - 新增 `inputType` 属性,用户指定内部输入框的类型,#7651
142
+ - Dialog
143
+ - 新增 `width`、`fullscreen`、`append-to-body` 属性,支持嵌套使用
144
+ - 新增 `center` 属性,提供居中布局 #7042
145
+ - 新增 `focus-after-closed`、`focus-after-open`属性,支持无障碍访问 #6511
146
+ - ColorPicker
147
+ - 增加手动输入色值的支持 #6167
148
+ - 新增 `size` 属性,用于控制组件的大小 #7026
149
+ - 新增 `disabled` 属性,用于禁用组件 #7026
150
+ - 新增 `popper-class` 属性,#7351
151
+ - Message
152
+ - 图标部分使用 icon 代替图片,从而支持通过 CSS 修改图标背景色 #6207
153
+ - 新增 `dangerouslyUseHTMLString` 属性,使得 `message` 属性支持传入 HTML 字符串<sup>*</sup> #6207
154
+ - 新增 `center` 属性,提供居中布局 #6875
155
+ - Notification
156
+ - 新增 `position` 属性,用于配置 Notification 出现的位置 #6231
157
+ - 新增 `dangerouslyUseHTMLString` 属性,使得 `message` 属性支持传入 HTML 字符串<sup>*</sup> #6231
158
+ - 新增 `showClose` 属性,用于隐藏关闭按钮 #6402
159
+ - Rate
160
+ - 新增 `show-score` 属性,控制是否在右侧显示当前分数 #6295
161
+ - Tabs
162
+ - 新增 `tab-position` 属性,控制选项面板内容显示的上、下、左、右四个方向 #6096
163
+ - Radio
164
+ - 增加 `border` 属性和 `size` 属性 #6690
165
+ - Checkbox
166
+ - 增加 `border` 属性和 `size` 属性 #6690
167
+ - Alert
168
+ - 新增 `center` 属性,提供居中布局 #6876
169
+ - Menu
170
+ - 新增 `background-color`、`text-color` 和 `active-text-color` 属性,分别用于设置菜单的背景色、菜单的文字颜色和当前激活菜单的文字颜色 #7064
171
+ - 新增 `open` 和 `close` 方法,支持手动打开和关闭 SubMenu,#7412
172
+ - Form
173
+ - 新增 `inline-message` 属性,设置后校验信息会以行内样式显示 #7032
174
+ - 新增 `status-icon` 属性,用于在输入框中显示校验结果反馈图标 #7032
175
+ - Form 和 FormItem 新增 `size` 属性,用于控制表单内组件的尺寸,#7428
176
+ - `validate` 方法在不传入 callback 的情况下返回 promise,#7405
177
+ - 新增 `clearValidate` 方法,用于清空所有表单项的验证信息,#7623
178
+ - Input
179
+ - 新增 `suffix`、`prefix` 的 slot,以及 `suffixIcon`、`prefixIcon` 属性,用于给输入框内部增加前置和后置内容 #7032
180
+ - Breadcrumb
181
+ - 新增 `separator-class` 属性,可使用图标作为分隔符 #7203
182
+ - Steps
183
+ - 新增 `simple` 属性,用于开启简洁风格的步骤条 #7274
184
+ - Pagination
185
+ - 新增 `prev-text` 和 `next-text` 属性,用于自定义上一页和下一页的文本 #7005
186
+ - Loading
187
+ - 配置对象新增 `spinner` 和 `background` 字段,支持自定义加载图标和背景色,#7390
188
+ - Autocomplete
189
+ - 新增 `debounce` 属性,#7413
190
+ - Upload
191
+ - 新增 `limit` 和 `on-exceed` 属性,支持对上传文件的个数进行限制,#7405
192
+ - DateTimePicker
193
+ - 新增 `time-arrow-control` 属性,用于开启时间选择器的 `arrow-control`,#7438
194
+ - Layout
195
+ - 新增断点 `xl`,适用于宽度大于 1920px 的视口
196
+ - Table
197
+ - 新增 `span-method` 属性,用于合并行或列
198
+ - 新增 `clearSort` 方法,用于清空排序状态
199
+ - 新增 `clearFilter` 方法,用于清空过滤状态
200
+ - 对于可展开行,当该行展开时会获得一个 `.expanded` 类名,方便自定义样式
201
+ - 新增 `size` 属性,用于控制表格尺寸
202
+ - 新增 `toggleRowExpansion` 方法,用于手动展开或关闭行
203
+ - 新增 `cell-class-name` 属性,用于指定单元格的类名
204
+ - 新增 `cell-style` 属性,用于指定单元格的样式
205
+ - 新增 `header-row-class-name` 属性,用于指定表头行的类名
206
+ - 新增 `header-row-style` 属性,用于指定表头行的样式
207
+ - 新增 `header-cell-class-name` 属性,用于指定表头单元格的类名
208
+ - 新增 `header-cell-style` 属性,用于指定表头单元格的样式
209
+ - TableColumn 的 `prop` 属性支持 `object[key]` 格式
210
+ - TableColumn 新增 `index` 属性,用于自定义索引值
211
+ - Select
212
+ - 新增 `reserve-keyword` 属性,用于在选择某个选项后保留当前的搜索关键词
213
+
214
+ #### 修复
215
+ - DatePicker
216
+ - 选择周数时,`v-model` 结果返回该周第二天的问题 #6038
217
+ - 在 `daterange` 类型中,第一次的输入会被清空的问题 #6021
218
+ - DateTimePicker
219
+ - 和 TimePicker 相互影响的问题 #6090
220
+ - 选择时间小时和秒可超出限制的问题 #6076
221
+ - TimePicker
222
+ - 失去焦点时无法正确改变 `v-model` 值的问题 #6023
223
+ - Dialog
224
+ - 当含有下拉框时,下拉框的打开和关闭会造成文字虚晃的问题 #6088
225
+ - Select
226
+ - 提升性能,修复组件销毁时可能导致 Vue dev-tool 卡死的问题 #6151
227
+ - Table
228
+ - 修复 Table 在父元素从 `display: none` 变成其他状态时会隐藏的问题
229
+ - 修复 Table 在父元素为 `display: flex` 时可能出现的宽度逐渐变大的问题
230
+ - 修复 `append` 具名 slot 和固定列并存时,动态获取表格数据会导致固定列消失的问题
231
+ - 修复 `expand-row-keys` 属性初始化无效的问题
232
+ - 修复 `data` 改变时过滤条件失效的问题
233
+ - 修复多级表头时固定列隐藏情况计算错误的问题
234
+ - 修复 `max-height` 变更后无法恢复的问题
235
+ - 修复一些样式上的计算错误
236
+
237
+ #### 非兼容性更新
238
+ - 综合
239
+ - 移除 `theme-default`
240
+ - 最低兼容 Vue 2.5.2 和 IE 10
241
+ - 表单组件的 `change` 事件和 Pagination 的 `current-change` 事件现在仅响应用户交互
242
+ - Button 和表单组件的 `size` 属性现在可接受 `medium`、`small` 和 `mini`
243
+ - 为了方便使用第三方图标,Button 的 `icon` 属性、Input 的 `prefix-icon` 和 `suffix-icon` 属性、Steps 的 `icon` 属性现在需要传入完整的图标类名
244
+ - Dialog
245
+ - 移除 `size` 属性。现在 Dialog 的尺寸由 `width` 和 `fullscreen` 控制
246
+ - 移除通过 `v-model` 控制 Dialog 显示和隐藏的功能
247
+ - Rate
248
+ - `text-template` 属性更名为 `score-template`
249
+ - Dropdown
250
+ - `menu-align` 属性变更为 `placement`,增加更多方位属性
251
+ - Transfer
252
+ - `footer-format` 属性更名为 `format`
253
+ - Switch
254
+ - 由于 `on-*` 属性在 JSX 中会被识别为事件,导致 Switch 所有 `on-*` 属性在 JSX 中无法正常工作,所以 `on-*` 属性更名为 `active-*`,对应地,`off-*` 属性更名为 `inactive-*`。受到影响的属性有:`on-icon-class`、`off-icon-class`、`on-text`、`off-text`、`on-color`、`off-color`、`on-value`、`off-value`
255
+ - `active-text` 和 `inactive-text` 属性不再有默认值
256
+ - Tag
257
+ - `type` 属性现在支持 `success`、`info`、`warning` 和 `danger` 四个值
258
+ - Menu
259
+ - 移除 `theme` 属性。现在通过 `background-color`、`text-color` 和 `active-text-color` 属性进行颜色的自定义
260
+ - Input
261
+ - 移除 `icon` 属性。现在通过 `suffix-icon` 属性或者 `suffix` 具名 slot 来加入尾部图标
262
+ - 移除 `on-icon-click` 属性和 `click` 事件。现在如果需要为输入框中的图标添加点击事件,请以具名 slot 的方式添加图标
263
+ - `change` 事件现在仅在输入框失去焦点或用户按下回车时触发,与原生 input 元素一致。如果需要实时响应用户的输入,可以使用 `input` 事件
264
+ - Autocomplete
265
+ - 移除 `custom-item` 属性。现在通过 `scoped slot` 自定义输入建议列表项的内容
266
+ - 移除 `props` 属性,现在使用 `value-key` 属性指定输入建议对象中用于显示的键名
267
+ - Steps
268
+ - 移除 `center` 属性
269
+ - 现在步骤条将默认充满父容器
270
+ - DatePicker
271
+ - `change` 事件参数现在为组件的绑定值,格式由 `value-format` 控制
272
+ - Table
273
+ - 移除通过 `inline-template` 自定义列模板的功能
274
+ - `sort-method` 现在和 `Array.sort` 保持一致的逻辑,要求返回一个数字
275
+ - 将 `append` slot 移至 `tbody` 元素以外,以保证其只被渲染一次
276
+ - `expand` 事件更名为 `expand-change`,以保证 API 的命名一致性
277
+ - `row-class-name` 和 `row-style` 的函数参数改为对象,以保证 API 的一致性
278
+
279
+ ##
280
+ <i><sup>*</sup> 在网站上动态渲染任意 HTML 是非常危险的,因为容易导致 [XSS 攻击](https://en.wikipedia.org/wiki/Cross-site_scripting)。因此请在 `dangerouslyUseHTMLString` 打开的情况下,确保 `message` 的内容是可信的,**永远不要**将用户提交的内容赋值给 `message` 属性。</i>
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016-present ElemeFE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,96 @@
1
+ ## node版本
2
+ node:14.21.3
3
+
4
+ ## make
5
+ - 最好安装一下make,后期的npm命令会特别长,这个可以省略大量你需要敲打的命令
6
+ - 使用 MYSY2 安装 make,可以去官网下载,免费的
7
+ - 安装好后打开 MYSY2 终端,运行以下命令
8
+ - bash
9
+ - pacman -Syu
10
+ - 全部点 Y,如果提示关闭终端,重新打开终端,再次运行 pacman -Syu
11
+ - 安装 make,运行以下命令
12
+ - bash
13
+ - pacman -S make
14
+ - 配置环境变量
15
+ - 路径示例:F:\msys2\usr\bin,我是把 MYSY2 装到了F盘
16
+ - 打开cmd,运行 make --version 验证是否安装成功
17
+
18
+ ## Install
19
+ ```shell
20
+ npm install element-ui -S
21
+ ```
22
+
23
+ ## Quick Start
24
+ ``` javascript
25
+ import Vue from 'vue'
26
+ import Element from 'element-ui'
27
+
28
+ Vue.use(Element)
29
+
30
+ // or
31
+ import {
32
+ Select,
33
+ Button
34
+ // ...
35
+ } from 'element-ui'
36
+
37
+ Vue.component(Select.name, Select)
38
+ Vue.component(Button.name, Button)
39
+ ```
40
+ For more information, please refer to [Quick Start](http://element.eleme.io/#/en-US/component/quickstart) in our documentation.
41
+
42
+ ## Browser Support
43
+ Modern browsers and Internet Explorer 10+.
44
+
45
+ ## Development
46
+ Skip this part if you just want to use Element.
47
+
48
+ For those who are interested in contributing to Element, please refer to our contributing guide ([中文](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.zh-CN.md) | [English](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.en-US.md)) to see how to run this project.
49
+
50
+ ## Changelog
51
+ Detailed changes for each release are documented in the [release notes](https://github.com/ElemeFE/element/releases).
52
+
53
+ ## FAQ
54
+ We have collected some [frequently asked questions](https://github.com/ElemeFE/element/blob/master/FAQ.md). Before reporting an issue, please search if the FAQ has the answer to your problem.
55
+
56
+ ## Contribution
57
+ Please make sure to read the contributing guide ([中文](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.zh-CN.md) | [English](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.en-US.md)) before making a pull request.
58
+
59
+ ## Special Thanks
60
+ English documentation is brought to you by SwiftGG Translation Team:
61
+ - [raychenfj](https://github.com/raychenfj)
62
+ - [kevin](http://thekevin.cn/)
63
+ - [曾小涛](https://github.com/zengxiaotao)
64
+ - [湾仔王二](https://github.com/wanzaiwanger)
65
+ - [BlooDLine](http://www.ibloodline.com/)
66
+ - [陈铭嘉](https://chenmingjia.github.io/)
67
+ - [千叶知风](http://mpc6.com/)
68
+ - [梁杰](http://numbbbbb.com)
69
+ - [Changing](https://github.com/sunzhuo11)
70
+ - [mmoaay](https://github.com/mmoaay)
71
+
72
+ Spanish documentation is made possible by these community developers:
73
+ - [adavie1](https://github.com/adavie1)
74
+ - [carmencitaqiu](https://github.com/carmencitaqiu)
75
+ - [coderdiaz](https://github.com/coderdiaz)
76
+ - [fedegar33](https://github.com/fedegar33)
77
+ - [Gonzalo2310](https://github.com/Gonzalo2310)
78
+ - [lesterbx](https://github.com/lesterbx)
79
+ - [ProgramerGuy](https://github.com/ProgramerGuy)
80
+ - [SantiagoGdaR](https://github.com/SantiagoGdaR)
81
+ - [sigfriedCub1990](https://github.com/sigfriedCub1990)
82
+ - [thechosenjuan](https://github.com/thechosenjuan)
83
+
84
+ French documentation is made possible by these community developers:
85
+ - [smalesys](https://github.com/smalesys)
86
+ - [blombard](https://github.com/blombard)
87
+
88
+ ## Join Discussion Group
89
+
90
+ Scan the QR code using [Dingtalk App](https://www.dingtalk.com/) to join in discussion group :
91
+
92
+ <img alt="Join Discusion Group" src="https://user-images.githubusercontent.com/17680888/93177882-0ae92d80-f766-11ea-870d-3fa2d7f06454.png" width="300">
93
+
94
+
95
+ ## LICENSE
96
+ [MIT](LICENSE)
package/package.json ADDED
@@ -0,0 +1,156 @@
1
+ {
2
+ "name": "cy-element-ui",
3
+ "version": "1.0.0",
4
+ "description": "基于ElementUI开发的组件",
5
+ "main": "lib/element-ui.common.js",
6
+ "files": [
7
+ "lib",
8
+ "src",
9
+ "packages",
10
+ "types",
11
+ "web-types.json"
12
+ ],
13
+ "typings": "types/index.d.ts",
14
+ "scripts": {
15
+ "bootstrap": "yarn || npm i",
16
+ "gen-cssfile:comment": "在 /packages/theme-cy/src/index.less 中自动引入各个组件的覆写样式文件",
17
+ "gen-cssfile": "node build/bin/gen-cssfile",
18
+ "build:theme:comment": "构建主题样式:在 index.less 中自动引入各个组件的覆写样式文件 && 通过 gulp 将 less 文件编译成 css 并输出到 lib 目录 && 拷贝基础样式 theme-chalk 到 lib/theme-chalk && 拷贝 编译后的 theme-cy/lib/* 目录到 lib/theme-cy && 合并 theme-chalk 和 theme-cy",
19
+ "build:theme": "npm run gen-cssfile && gulp build --gulpfile packages/theme-cy/gulpfile.js && cp-cli packages/theme-cy/lib lib/theme-cy && cp-cli packages/theme-chalk lib/theme-chalk && node build/bin/compose-css-file.js",
20
+ "build:file": "node build/bin/iconInit.js & node build/bin/build-entry.js & node build/bin/version.js",
21
+ "build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
22
+ "build:umd": "node build/bin/build-locale.js",
23
+ "clean": "rimraf lib && rimraf packages/*/lib && rimraf test/**/coverage",
24
+ "deploy:build": "npm run build:file && cross-env NODE_ENV=production webpack --config build/webpack.demo.js && echo element.eleme.io>>examples/element-ui/CNAME",
25
+ "deploy:extension": "cross-env NODE_ENV=production webpack --config build/webpack.extension.js",
26
+ "dev": "npm run bootstrap && npm run build:file && cross-env NODE_ENV=development webpack-dev-server --config build/webpack.demo.js",
27
+ "dev:play": "npm run build:file && cross-env NODE_ENV=development PLAY_ENV=true webpack-dev-server --config build/webpack.demo.js",
28
+ "dist": "npm run clean && npm run build:file && npm run lint && webpack --config build/webpack.conf.js && webpack --config build/webpack.common.js && webpack --config build/webpack.component.js && npm run build:utils && npm run build:umd && npm run build:theme",
29
+ "lint": "eslint src/**/* test/**/* packages/**/* build/**/* --quiet",
30
+ "pub": "npm run bootstrap && sh build/git-release.sh && sh build/release.sh && node build/bin/gen-indices.js",
31
+ "test": "npm run lint && npm run build:theme && cross-env CI_ENV=/dev/ BABEL_ENV=test karma start test/unit/karma.conf.js --single-run",
32
+ "test:watch": "npm run build:theme && cross-env BABEL_ENV=test karma start test/unit/karma.conf.js"
33
+ },
34
+ "faas": [
35
+ {
36
+ "domain": "element",
37
+ "public": "temp_web/element"
38
+ },
39
+ {
40
+ "domain": "element-theme",
41
+ "public": "examples/element-ui",
42
+ "build": [
43
+ "yarn",
44
+ "npm run deploy:build"
45
+ ]
46
+ }
47
+ ],
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git@github.com:ElemeFE/element.git"
51
+ },
52
+ "homepage": "http://element.eleme.io",
53
+ "keywords": [
54
+ "element",
55
+ "vue2",
56
+ "components",
57
+ "cy",
58
+ "cy-element",
59
+ "产研"
60
+ ],
61
+ "license": "MIT",
62
+ "bugs": {
63
+ "url": "https://github.com/ElemeFE/element/issues"
64
+ },
65
+ "unpkg": "lib/index.js",
66
+ "style": "lib/theme-chalk/index.css",
67
+ "web-types": "./web-types.json",
68
+ "dependencies": {
69
+ "async-validator": "~1.8.1",
70
+ "babel-helper-vue-jsx-merge-props": "^2.0.0",
71
+ "deepmerge": "^1.2.0",
72
+ "normalize-wheel": "^1.0.1",
73
+ "resize-observer-polyfill": "^1.5.0",
74
+ "throttle-debounce": "^1.0.1"
75
+ },
76
+ "peerDependencies": {
77
+ "vue": "^2.6.12"
78
+ },
79
+ "devDependencies": {
80
+ "@vue/component-compiler-utils": "^3.2.0",
81
+ "algoliasearch": "^3.24.5",
82
+ "babel-cli": "^6.26.0",
83
+ "babel-core": "^6.26.3",
84
+ "babel-loader": "^7.1.5",
85
+ "babel-plugin-add-module-exports": "^0.2.1",
86
+ "babel-plugin-istanbul": "^4.1.1",
87
+ "babel-plugin-module-resolver": "^2.2.0",
88
+ "babel-plugin-syntax-jsx": "^6.18.0",
89
+ "babel-plugin-transform-vue-jsx": "^3.7.0",
90
+ "babel-preset-env": "^1.7.0",
91
+ "babel-preset-stage-2": "^6.24.1",
92
+ "babel-regenerator-runtime": "^6.5.0",
93
+ "chai": "^4.2.0",
94
+ "chokidar": "^1.7.0",
95
+ "copy-webpack-plugin": "^5.0.0",
96
+ "coveralls": "^3.0.3",
97
+ "cp-cli": "^1.0.2",
98
+ "cross-env": "^3.1.3",
99
+ "css-loader": "^2.1.0",
100
+ "es6-promise": "^4.0.5",
101
+ "eslint": "4.18.2",
102
+ "eslint-config-elemefe": "0.1.1",
103
+ "eslint-loader": "^2.0.0",
104
+ "eslint-plugin-html": "^4.0.1",
105
+ "eslint-plugin-json": "^1.2.0",
106
+ "file-loader": "^1.1.11",
107
+ "file-save": "^0.2.0",
108
+ "gulp": "^4.0.0",
109
+ "gulp-autoprefixer": "^6.0.0",
110
+ "gulp-cssmin": "^0.2.0",
111
+ "gulp-sass": "^4.0.2",
112
+ "highlight.js": "^9.3.0",
113
+ "html-webpack-plugin": "^3.2.0",
114
+ "json-loader": "^0.5.7",
115
+ "json-templater": "^1.0.4",
116
+ "karma": "^4.0.1",
117
+ "karma-chrome-launcher": "^2.2.0",
118
+ "karma-coverage": "^1.1.2",
119
+ "karma-mocha": "^1.3.0",
120
+ "karma-sinon-chai": "^2.0.2",
121
+ "karma-sourcemap-loader": "^0.3.7",
122
+ "karma-spec-reporter": "^0.0.32",
123
+ "karma-webpack": "^3.0.5",
124
+ "launch-editor-middleware": "^2.3.0",
125
+ "markdown-it": "^8.4.1",
126
+ "markdown-it-anchor": "^5.0.2",
127
+ "markdown-it-chain": "^1.3.0",
128
+ "markdown-it-container": "^2.0.0",
129
+ "mini-css-extract-plugin": "^0.4.1",
130
+ "mocha": "^6.0.2",
131
+ "node-sass": "^4.11.0",
132
+ "optimize-css-assets-webpack-plugin": "^5.0.1",
133
+ "postcss": "^7.0.14",
134
+ "progress-bar-webpack-plugin": "^1.11.0",
135
+ "rimraf": "^2.5.4",
136
+ "sass-loader": "^7.1.0",
137
+ "select-version-cli": "^0.0.2",
138
+ "shelljs": "^0.10.0",
139
+ "sinon": "^7.2.7",
140
+ "sinon-chai": "^3.3.0",
141
+ "style-loader": "^0.23.1",
142
+ "transliteration": "^1.1.11",
143
+ "uglifyjs-webpack-plugin": "^2.1.1",
144
+ "uppercamelcase": "^1.1.0",
145
+ "url-loader": "^1.0.1",
146
+ "vue": "^2.6.12",
147
+ "vue-loader": "^15.7.0",
148
+ "vue-router": "^3.0.1",
149
+ "vue-template-compiler": "^2.6.12",
150
+ "vue-template-es2015-compiler": "^1.6.0",
151
+ "webpack": "^4.14.0",
152
+ "webpack-cli": "^3.0.8",
153
+ "webpack-dev-server": "^3.1.11",
154
+ "webpack-node-externals": "^1.7.2"
155
+ }
156
+ }
@@ -0,0 +1,8 @@
1
+ import Alert from './src/main';
2
+
3
+ /* istanbul ignore next */
4
+ Alert.install = function(Vue) {
5
+ Vue.component(Alert.name, Alert);
6
+ };
7
+
8
+ export default Alert;
@@ -0,0 +1,94 @@
1
+ <template>
2
+ <transition name="el-alert-fade">
3
+ <div
4
+ class="el-alert"
5
+ :class="[typeClass, center ? 'is-center' : '', 'is-' + effect]"
6
+ v-show="visible"
7
+ role="alert"
8
+ >
9
+ <i class="el-alert__icon" :class="[ iconClass, isBigIcon ]" v-if="showIcon"></i>
10
+ <div class="el-alert__content">
11
+ <span class="el-alert__title" :class="[ isBoldTitle ]" v-if="title || $slots.title">
12
+ <slot name="title">{{ title }}</slot>
13
+ </span>
14
+ <p class="el-alert__description" v-if="$slots.default && !description"><slot></slot></p>
15
+ <p class="el-alert__description" v-if="description && !$slots.default">{{ description }}</p>
16
+ <i class="el-alert__closebtn" :class="{ 'is-customed': closeText !== '', 'el-icon-close': closeText === '' }" v-show="closable" @click="close()">{{closeText}}</i>
17
+ </div>
18
+ </div>
19
+ </transition>
20
+ </template>
21
+
22
+ <script type="text/babel">
23
+ const TYPE_CLASSES_MAP = {
24
+ 'success': 'el-icon-success',
25
+ 'warning': 'el-icon-warning',
26
+ 'error': 'el-icon-error'
27
+ };
28
+ export default {
29
+ name: 'ElAlert',
30
+
31
+ props: {
32
+ title: {
33
+ type: String,
34
+ default: ''
35
+ },
36
+ description: {
37
+ type: String,
38
+ default: ''
39
+ },
40
+ type: {
41
+ type: String,
42
+ default: 'info'
43
+ },
44
+ closable: {
45
+ type: Boolean,
46
+ default: true
47
+ },
48
+ closeText: {
49
+ type: String,
50
+ default: ''
51
+ },
52
+ showIcon: Boolean,
53
+ center: Boolean,
54
+ effect: {
55
+ type: String,
56
+ default: 'light',
57
+ validator: function(value) {
58
+ return ['light', 'dark'].indexOf(value) !== -1;
59
+ }
60
+ }
61
+ },
62
+
63
+ data() {
64
+ return {
65
+ visible: true
66
+ };
67
+ },
68
+
69
+ methods: {
70
+ close() {
71
+ this.visible = false;
72
+ this.$emit('close');
73
+ }
74
+ },
75
+
76
+ computed: {
77
+ typeClass() {
78
+ return `el-alert--${ this.type }`;
79
+ },
80
+
81
+ iconClass() {
82
+ return TYPE_CLASSES_MAP[this.type] || 'el-icon-info';
83
+ },
84
+
85
+ isBigIcon() {
86
+ return this.description || this.$slots.default ? 'is-big' : '';
87
+ },
88
+
89
+ isBoldTitle() {
90
+ return this.description || this.$slots.default ? 'is-bold' : '';
91
+ }
92
+ }
93
+ };
94
+ </script>
@@ -0,0 +1,8 @@
1
+ import Aside from './src/main';
2
+
3
+ /* istanbul ignore next */
4
+ Aside.install = function(Vue) {
5
+ Vue.component(Aside.name, Aside);
6
+ };
7
+
8
+ export default Aside;