cy-element-ui 1.0.85 → 1.1.1

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 (957) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +148 -172
  3. package/lib/index.js +1 -1
  4. package/package.json +150 -159
  5. package/packages/alert/index.js +8 -8
  6. package/packages/alert/src/main.vue +94 -94
  7. package/packages/aside/index.js +8 -8
  8. package/packages/aside/src/main.vue +20 -20
  9. package/packages/autocomplete/index.js +8 -8
  10. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  11. package/packages/autocomplete/src/autocomplete.vue +285 -285
  12. package/packages/avatar/index.js +8 -8
  13. package/packages/avatar/src/main.vue +107 -107
  14. package/packages/backtop/index.js +8 -8
  15. package/packages/backtop/src/main.vue +110 -110
  16. package/packages/badge/index.js +8 -8
  17. package/packages/badge/src/main.vue +53 -53
  18. package/packages/breadcrumb/index.js +8 -8
  19. package/packages/breadcrumb/src/breadcrumb-item.vue +41 -41
  20. package/packages/breadcrumb/src/breadcrumb.vue +34 -34
  21. package/packages/breadcrumb-item/index.js +8 -8
  22. package/packages/button/index.js +8 -8
  23. package/packages/button/src/button-group.vue +10 -10
  24. package/packages/button/src/button.vue +78 -78
  25. package/packages/button-group/index.js +8 -8
  26. package/packages/calendar/index.js +8 -8
  27. package/packages/calendar/src/date-table.vue +200 -200
  28. package/packages/calendar/src/main.vue +280 -280
  29. package/packages/card/index.js +8 -8
  30. package/packages/card/src/main.vue +23 -23
  31. package/packages/carousel/index.js +8 -8
  32. package/packages/carousel/src/item.vue +138 -138
  33. package/packages/carousel/src/main.vue +315 -315
  34. package/packages/carousel-item/index.js +8 -8
  35. package/packages/cascader/index.js +8 -8
  36. package/packages/cascader/src/cascader.vue +663 -663
  37. package/packages/cascader-panel/index.js +8 -8
  38. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  39. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  40. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  41. package/packages/cascader-panel/src/node.js +166 -165
  42. package/packages/cascader-panel/src/store.js +58 -57
  43. package/packages/checkbox/index.js +8 -8
  44. package/packages/checkbox/src/checkbox-button.vue +199 -199
  45. package/packages/checkbox/src/checkbox-group.vue +48 -48
  46. package/packages/checkbox/src/checkbox.vue +222 -222
  47. package/packages/checkbox-button/index.js +8 -8
  48. package/packages/checkbox-group/index.js +8 -8
  49. package/packages/col/index.js +9 -9
  50. package/packages/col/src/col.js +71 -71
  51. package/packages/collapse/index.js +9 -9
  52. package/packages/collapse/src/collapse-item.vue +114 -114
  53. package/packages/collapse/src/collapse.vue +73 -73
  54. package/packages/collapse-item/index.js +8 -8
  55. package/packages/color-picker/index.js +8 -8
  56. package/packages/color-picker/src/color.js +317 -317
  57. package/packages/color-picker/src/components/alpha-slider.vue +132 -132
  58. package/packages/color-picker/src/components/hue-slider.vue +123 -123
  59. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  60. package/packages/color-picker/src/components/predefine.vue +61 -61
  61. package/packages/color-picker/src/components/sv-panel.vue +100 -100
  62. package/packages/color-picker/src/draggable.js +36 -36
  63. package/packages/color-picker/src/main.vue +188 -188
  64. package/packages/container/index.js +8 -8
  65. package/packages/container/src/main.vue +33 -33
  66. package/packages/date-picker/index.js +8 -8
  67. package/packages/date-picker/src/basic/date-table.vue +441 -441
  68. package/packages/date-picker/src/basic/month-table.vue +269 -268
  69. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  70. package/packages/date-picker/src/basic/year-table.vue +111 -111
  71. package/packages/date-picker/src/panel/date-range.vue +680 -680
  72. package/packages/date-picker/src/panel/date.vue +609 -609
  73. package/packages/date-picker/src/panel/month-range.vue +289 -289
  74. package/packages/date-picker/src/panel/time-range.vue +248 -248
  75. package/packages/date-picker/src/panel/time-select.vue +178 -178
  76. package/packages/date-picker/src/panel/time.vue +186 -186
  77. package/packages/date-picker/src/picker/date-picker.js +43 -43
  78. package/packages/date-picker/src/picker/time-picker.js +39 -39
  79. package/packages/date-picker/src/picker/time-select.js +21 -21
  80. package/packages/date-picker/src/picker.vue +932 -390
  81. package/packages/descriptions/index.js +8 -8
  82. package/packages/descriptions/src/descriptions-item.js +30 -30
  83. package/packages/descriptions/src/descriptions-row.js +116 -116
  84. package/packages/descriptions/src/index.js +180 -180
  85. package/packages/descriptions-item/index.js +8 -8
  86. package/packages/dialog/index.js +8 -8
  87. package/packages/dialog/src/component.vue +212 -212
  88. package/packages/divider/index.js +8 -8
  89. package/packages/divider/src/main.vue +37 -37
  90. package/packages/drawer/index.js +8 -8
  91. package/packages/drawer/src/main.vue +205 -205
  92. package/packages/dropdown/index.js +8 -8
  93. package/packages/dropdown/src/dropdown-item.vue +37 -37
  94. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  95. package/packages/dropdown/src/dropdown.vue +293 -293
  96. package/packages/dropdown-item/index.js +8 -8
  97. package/packages/dropdown-menu/index.js +8 -8
  98. package/packages/empty/index.js +7 -7
  99. package/packages/empty/src/img-empty.vue +132 -132
  100. package/packages/empty/src/index.vue +50 -50
  101. package/packages/footer/index.js +8 -8
  102. package/packages/footer/src/main.vue +20 -20
  103. package/packages/form/index.js +8 -8
  104. package/packages/form/src/form-item.vue +294 -334
  105. package/packages/form/src/form.vue +182 -182
  106. package/packages/form/src/label-wrap.vue +78 -0
  107. package/packages/form-item/index.js +8 -8
  108. package/packages/header/index.js +8 -8
  109. package/packages/header/src/main.vue +20 -20
  110. package/packages/icon/index.js +8 -8
  111. package/packages/icon/src/icon.vue +13 -13
  112. package/packages/image/index.js +8 -8
  113. package/packages/image/src/image-viewer.vue +330 -330
  114. package/packages/image/src/main.vue +249 -249
  115. package/packages/infinite-scroll/index.js +8 -8
  116. package/packages/infinite-scroll/src/main.js +150 -149
  117. package/packages/input/index.js +8 -8
  118. package/packages/input/src/calcTextareaHeight.js +104 -104
  119. package/packages/input/src/input.vue +440 -440
  120. package/packages/input-number/index.js +8 -8
  121. package/packages/input-number/src/input-number.vue +286 -286
  122. package/packages/link/index.js +8 -8
  123. package/packages/link/src/main.vue +53 -53
  124. package/packages/loading/index.js +11 -11
  125. package/packages/loading/src/directive.js +133 -133
  126. package/packages/loading/src/index.js +106 -106
  127. package/packages/loading/src/loading.vue +41 -41
  128. package/packages/main/index.js +8 -8
  129. package/packages/main/src/main.vue +12 -12
  130. package/packages/menu/index.js +8 -8
  131. package/packages/menu/src/menu-item-group.vue +45 -45
  132. package/packages/menu/src/menu-item.vue +112 -112
  133. package/packages/menu/src/menu-mixin.js +44 -44
  134. package/packages/menu/src/menu.vue +325 -325
  135. package/packages/menu/src/submenu.vue +349 -348
  136. package/packages/menu-item/index.js +8 -8
  137. package/packages/menu-item-group/index.js +8 -8
  138. package/packages/message/index.js +2 -2
  139. package/packages/message/src/main.js +91 -91
  140. package/packages/message/src/main.vue +117 -117
  141. package/packages/message-box/index.js +2 -2
  142. package/packages/message-box/src/main.js +216 -216
  143. package/packages/message-box/src/main.vue +332 -332
  144. package/packages/notification/index.js +2 -2
  145. package/packages/notification/src/main.js +94 -94
  146. package/packages/notification/src/main.vue +152 -152
  147. package/packages/option/index.js +8 -8
  148. package/packages/option-group/index.js +8 -8
  149. package/packages/page-header/index.js +8 -8
  150. package/packages/page-header/src/main.vue +30 -30
  151. package/packages/pagination/index.js +8 -8
  152. package/packages/pagination/src/pager.vue +163 -163
  153. package/packages/pagination/src/pagination.js +386 -386
  154. package/packages/popconfirm/index.js +8 -8
  155. package/packages/popconfirm/src/main.vue +104 -104
  156. package/packages/popover/index.js +14 -14
  157. package/packages/popover/src/directive.js +20 -20
  158. package/packages/popover/src/main.vue +237 -237
  159. package/packages/progress/index.js +8 -8
  160. package/packages/progress/src/progress.vue +235 -235
  161. package/packages/radio/index.js +8 -8
  162. package/packages/radio/src/radio-button.vue +115 -115
  163. package/packages/radio/src/radio-group.vue +113 -113
  164. package/packages/radio/src/radio.vue +134 -134
  165. package/packages/radio-button/index.js +8 -8
  166. package/packages/radio-group/index.js +8 -8
  167. package/packages/rate/index.js +8 -8
  168. package/packages/rate/src/main.vue +348 -348
  169. package/packages/result/index.js +8 -8
  170. package/packages/result/src/icon-error.vue +13 -13
  171. package/packages/result/src/icon-info.vue +13 -13
  172. package/packages/result/src/icon-success.vue +13 -13
  173. package/packages/result/src/icon-warning.vue +13 -13
  174. package/packages/result/src/index.vue +65 -65
  175. package/packages/row/index.js +9 -9
  176. package/packages/row/src/row.js +44 -44
  177. package/packages/scrollbar/index.js +8 -8
  178. package/packages/scrollbar/src/bar.js +92 -92
  179. package/packages/scrollbar/src/main.js +130 -130
  180. package/packages/scrollbar/src/util.js +34 -34
  181. package/packages/select/index.js +8 -8
  182. package/packages/select/src/navigation-mixin.js +54 -54
  183. package/packages/select/src/option-group.vue +60 -60
  184. package/packages/select/src/option.vue +168 -168
  185. package/packages/select/src/select-dropdown.vue +74 -74
  186. package/packages/select/src/select.vue +900 -900
  187. package/packages/skeleton/index.js +8 -8
  188. package/packages/skeleton/src/img-placeholder.vue +16 -16
  189. package/packages/skeleton/src/index.vue +76 -76
  190. package/packages/skeleton/src/item.vue +22 -22
  191. package/packages/skeleton-item/index.js +8 -8
  192. package/packages/slider/index.js +8 -8
  193. package/packages/slider/src/button.vue +238 -238
  194. package/packages/slider/src/main.vue +427 -427
  195. package/packages/slider/src/marker.js +18 -18
  196. package/packages/spinner/index.js +8 -8
  197. package/packages/spinner/src/spinner.vue +27 -27
  198. package/packages/statistic/index.js +8 -8
  199. package/packages/statistic/src/main.vue +204 -203
  200. package/packages/step/index.js +8 -8
  201. package/packages/steps/README.md +69 -69
  202. package/packages/steps/index.js +8 -8
  203. package/packages/steps/src/step.vue +184 -184
  204. package/packages/steps/src/steps.vue +68 -68
  205. package/packages/submenu/index.js +8 -8
  206. package/packages/switch/index.js +9 -9
  207. package/packages/switch/src/component.vue +174 -174
  208. package/packages/tab-pane/index.js +8 -8
  209. package/packages/table/index.js +8 -8
  210. package/packages/table/src/config.js +124 -124
  211. package/packages/table/src/dropdown.js +28 -28
  212. package/packages/table/src/filter-panel.vue +194 -194
  213. package/packages/table/src/layout-observer.js +68 -68
  214. package/packages/table/src/store/current.js +76 -76
  215. package/packages/table/src/store/expand.js +65 -65
  216. package/packages/table/src/store/helper.js +41 -41
  217. package/packages/table/src/store/index.js +147 -147
  218. package/packages/table/src/store/tree.js +209 -209
  219. package/packages/table/src/store/watcher.js +381 -381
  220. package/packages/table/src/table-body.js +469 -469
  221. package/packages/table/src/table-column.js +319 -319
  222. package/packages/table/src/table-footer.js +153 -153
  223. package/packages/table/src/table-header.js +511 -511
  224. package/packages/table/src/table-layout.js +249 -249
  225. package/packages/table/src/table-row.js +101 -101
  226. package/packages/table/src/table.vue +712 -718
  227. package/packages/table/src/util.js +273 -273
  228. package/packages/table-column/index.js +8 -8
  229. package/packages/tabs/index.js +8 -8
  230. package/packages/tabs/src/tab-bar.vue +57 -57
  231. package/packages/tabs/src/tab-nav.vue +294 -294
  232. package/packages/tabs/src/tab-pane.vue +56 -56
  233. package/packages/tabs/src/tabs.vue +191 -191
  234. package/packages/tag/index.js +8 -8
  235. package/packages/tag/src/tag.vue +58 -58
  236. package/packages/theme-chalk/README.md +33 -33
  237. package/packages/theme-chalk/gulpfile.js +25 -27
  238. package/packages/theme-chalk/package.json +35 -35
  239. package/packages/theme-chalk/src/alert.scss +147 -147
  240. package/packages/theme-chalk/src/aside.scss +7 -7
  241. package/packages/theme-chalk/src/autocomplete.scss +80 -80
  242. package/packages/theme-chalk/src/avatar.scss +51 -51
  243. package/packages/theme-chalk/src/backtop.scss +22 -22
  244. package/packages/theme-chalk/src/badge.scss +57 -57
  245. package/packages/theme-chalk/src/base.scss +2 -2
  246. package/packages/theme-chalk/src/breadcrumb.scss +55 -55
  247. package/packages/theme-chalk/src/button.scss +262 -262
  248. package/packages/theme-chalk/src/calendar.scss +79 -79
  249. package/packages/theme-chalk/src/card.scss +32 -32
  250. package/packages/theme-chalk/src/carousel-item.scss +50 -50
  251. package/packages/theme-chalk/src/carousel.scss +161 -161
  252. package/packages/theme-chalk/src/cascader-panel.scss +120 -120
  253. package/packages/theme-chalk/src/cascader.scss +182 -182
  254. package/packages/theme-chalk/src/checkbox.scss +359 -359
  255. package/packages/theme-chalk/src/col.scss +156 -156
  256. package/packages/theme-chalk/src/collapse.scss +63 -63
  257. package/packages/theme-chalk/src/color-picker.scss +384 -384
  258. package/packages/theme-chalk/src/common/popup.scss +42 -42
  259. package/packages/theme-chalk/src/common/transition.scss +99 -99
  260. package/packages/theme-chalk/src/common/var.scss +1028 -1028
  261. package/packages/theme-chalk/src/container.scss +14 -14
  262. package/packages/theme-chalk/src/date-picker/date-picker.scss +97 -97
  263. package/packages/theme-chalk/src/date-picker/date-range-picker.scss +101 -101
  264. package/packages/theme-chalk/src/date-picker/date-table.scss +151 -151
  265. package/packages/theme-chalk/src/date-picker/month-table.scss +82 -82
  266. package/packages/theme-chalk/src/date-picker/picker-panel.scss +117 -117
  267. package/packages/theme-chalk/src/date-picker/picker.scss +197 -197
  268. package/packages/theme-chalk/src/date-picker/time-picker.scss +85 -85
  269. package/packages/theme-chalk/src/date-picker/time-range-picker.scss +31 -31
  270. package/packages/theme-chalk/src/date-picker/time-spinner.scss +110 -110
  271. package/packages/theme-chalk/src/date-picker/year-table.scss +51 -51
  272. package/packages/theme-chalk/src/date-picker.scss +11 -11
  273. package/packages/theme-chalk/src/descriptions-item.scss +42 -42
  274. package/packages/theme-chalk/src/descriptions.scss +111 -111
  275. package/packages/theme-chalk/src/dialog.scss +123 -123
  276. package/packages/theme-chalk/src/display.scss +12 -12
  277. package/packages/theme-chalk/src/divider.scss +47 -47
  278. package/packages/theme-chalk/src/drawer.scss +219 -219
  279. package/packages/theme-chalk/src/dropdown.scss +182 -182
  280. package/packages/theme-chalk/src/empty.scss +45 -45
  281. package/packages/theme-chalk/src/footer.scss +8 -8
  282. package/packages/theme-chalk/src/form.scss +167 -167
  283. package/packages/theme-chalk/src/header.scss +8 -8
  284. package/packages/theme-chalk/src/icon.scss +1167 -1167
  285. package/packages/theme-chalk/src/image.scss +179 -179
  286. package/packages/theme-chalk/src/index.scss +87 -87
  287. package/packages/theme-chalk/src/input-number.scss +261 -180
  288. package/packages/theme-chalk/src/input.scss +360 -360
  289. package/packages/theme-chalk/src/link.scss +81 -81
  290. package/packages/theme-chalk/src/loading.scss +96 -96
  291. package/packages/theme-chalk/src/main.scss +12 -12
  292. package/packages/theme-chalk/src/menu.scss +289 -289
  293. package/packages/theme-chalk/src/message-box.scss +226 -226
  294. package/packages/theme-chalk/src/message.scss +120 -120
  295. package/packages/theme-chalk/src/mixins/_button.scss +81 -81
  296. package/packages/theme-chalk/src/mixins/config.scss +4 -4
  297. package/packages/theme-chalk/src/mixins/function.scss +44 -44
  298. package/packages/theme-chalk/src/mixins/mixins.scss +191 -190
  299. package/packages/theme-chalk/src/mixins/utils.scss +39 -39
  300. package/packages/theme-chalk/src/notification.scss +99 -99
  301. package/packages/theme-chalk/src/option-group.scss +42 -42
  302. package/packages/theme-chalk/src/option.scss +36 -36
  303. package/packages/theme-chalk/src/page-header.scss +41 -41
  304. package/packages/theme-chalk/src/pagination.scss +295 -295
  305. package/packages/theme-chalk/src/popconfirm.scss +16 -16
  306. package/packages/theme-chalk/src/popover.scss +40 -40
  307. package/packages/theme-chalk/src/popper.scss +101 -101
  308. package/packages/theme-chalk/src/progress.scss +141 -141
  309. package/packages/theme-chalk/src/radio-button.scss +113 -113
  310. package/packages/theme-chalk/src/radio-group.scss +9 -9
  311. package/packages/theme-chalk/src/radio.scss +199 -199
  312. package/packages/theme-chalk/src/rate.scss +49 -49
  313. package/packages/theme-chalk/src/reset.scss +79 -79
  314. package/packages/theme-chalk/src/result.scss +61 -61
  315. package/packages/theme-chalk/src/row.scss +43 -43
  316. package/packages/theme-chalk/src/scrollbar.scss +72 -72
  317. package/packages/theme-chalk/src/select-dropdown.scss +62 -62
  318. package/packages/theme-chalk/src/select.scss +152 -152
  319. package/packages/theme-chalk/src/skeleton-item.scss +84 -84
  320. package/packages/theme-chalk/src/skeleton.scss +40 -40
  321. package/packages/theme-chalk/src/slider.scss +250 -250
  322. package/packages/theme-chalk/src/spinner.scss +44 -44
  323. package/packages/theme-chalk/src/statistic.scss +38 -38
  324. package/packages/theme-chalk/src/step.scss +317 -317
  325. package/packages/theme-chalk/src/steps.scss +20 -20
  326. package/packages/theme-chalk/src/switch.scss +116 -116
  327. package/packages/theme-chalk/src/table-column.scss +97 -97
  328. package/packages/theme-chalk/src/table.scss +564 -564
  329. package/packages/theme-chalk/src/tabs.scss +602 -602
  330. package/packages/theme-chalk/src/tag.scss +163 -163
  331. package/packages/theme-chalk/src/time-picker.scss +8 -8
  332. package/packages/theme-chalk/src/time-select.scss +37 -37
  333. package/packages/theme-chalk/src/timeline-item.scss +86 -86
  334. package/packages/theme-chalk/src/timeline.scss +14 -14
  335. package/packages/theme-chalk/src/tooltip.scss +141 -141
  336. package/packages/theme-chalk/src/transfer.scss +227 -227
  337. package/packages/theme-chalk/src/tree.scss +123 -123
  338. package/packages/theme-chalk/src/upload.scss +603 -603
  339. package/packages/time-picker/index.js +8 -8
  340. package/packages/time-select/index.js +8 -8
  341. package/packages/timeline/index.js +8 -8
  342. package/packages/timeline/src/item.vue +73 -73
  343. package/packages/timeline/src/main.vue +33 -33
  344. package/packages/timeline-item/index.js +8 -8
  345. package/packages/tooltip/index.js +8 -8
  346. package/packages/tooltip/src/main.js +242 -242
  347. package/packages/transfer/index.js +8 -8
  348. package/packages/transfer/src/main.vue +231 -231
  349. package/packages/transfer/src/transfer-panel.vue +251 -251
  350. package/packages/tree/index.js +8 -8
  351. package/packages/tree/src/model/node.js +484 -484
  352. package/packages/tree/src/model/tree-store.js +340 -340
  353. package/packages/tree/src/model/util.js +27 -27
  354. package/packages/tree/src/tree-node.vue +279 -279
  355. package/packages/tree/src/tree.vue +496 -496
  356. package/packages/upload/index.js +8 -8
  357. package/packages/upload/src/ajax.js +85 -85
  358. package/packages/upload/src/index.vue +338 -338
  359. package/packages/upload/src/upload-dragger.vue +70 -70
  360. package/packages/upload/src/upload-list.vue +105 -105
  361. package/packages/upload/src/upload.vue +211 -211
  362. package/src/directives/mousewheel.js +18 -18
  363. package/src/directives/repeat-click.js +26 -26
  364. package/src/index.js +202 -216
  365. package/src/locale/format.js +46 -45
  366. package/src/locale/index.js +48 -48
  367. package/src/locale/lang/en.js +123 -123
  368. package/src/locale/lang/zh-CN.js +123 -123
  369. package/src/locale/lang/zh-TW.js +123 -123
  370. package/src/mixins/emitter.js +33 -33
  371. package/src/mixins/focus.js +9 -9
  372. package/src/mixins/locale.js +9 -9
  373. package/src/mixins/migrating.js +54 -54
  374. package/src/transitions/collapse-transition.js +77 -77
  375. package/src/utils/after-leave.js +27 -27
  376. package/src/utils/aria-dialog.js +90 -90
  377. package/src/utils/aria-utils.js +122 -122
  378. package/src/utils/clickoutside.js +76 -76
  379. package/src/utils/date-util.js +282 -282
  380. package/src/utils/date.js +368 -368
  381. package/src/utils/dom.js +227 -227
  382. package/src/utils/lodash.js +18075 -18075
  383. package/src/utils/menu/aria-menubar.js +14 -14
  384. package/src/utils/menu/aria-menuitem.js +49 -49
  385. package/src/utils/menu/aria-submenu.js +59 -59
  386. package/src/utils/merge.js +15 -15
  387. package/src/utils/popper.js +1276 -1276
  388. package/src/utils/popup/index.js +218 -218
  389. package/src/utils/popup/popup-manager.js +194 -194
  390. package/src/utils/resize-event.js +36 -36
  391. package/src/utils/scroll-into-view.js +27 -27
  392. package/src/utils/scrollbar-width.js +29 -29
  393. package/src/utils/shared.js +7 -7
  394. package/src/utils/types.js +40 -40
  395. package/src/utils/util.js +245 -245
  396. package/src/utils/vdom.js +5 -5
  397. package/src/utils/vue-popper.js +198 -198
  398. package/types/alert.d.ts +31 -31
  399. package/types/aside.d.ts +7 -7
  400. package/types/autocomplete.d.ts +78 -78
  401. package/types/avatar.d.ts +20 -20
  402. package/types/backtop.d.ts +16 -16
  403. package/types/badge.d.ts +16 -16
  404. package/types/breadcrumb-item.d.ts +10 -10
  405. package/types/breadcrumb.d.ts +10 -10
  406. package/types/button-group.d.ts +4 -4
  407. package/types/button.d.ts +37 -37
  408. package/types/calendar.d.ts +15 -15
  409. package/types/card.d.ts +26 -26
  410. package/types/carousel-item.d.ts +10 -10
  411. package/types/carousel.d.ts +57 -57
  412. package/types/cascader-panel.d.ts +72 -72
  413. package/types/cascader.d.ts +65 -65
  414. package/types/checkbox-button.d.ts +22 -22
  415. package/types/checkbox-group.d.ts +22 -22
  416. package/types/checkbox.d.ts +34 -34
  417. package/types/col.d.ts +46 -46
  418. package/types/collapse-item.d.ts +26 -26
  419. package/types/collapse.d.ts +10 -10
  420. package/types/color-picker.d.ts +21 -21
  421. package/types/component.d.ts +13 -13
  422. package/types/container.d.ts +7 -7
  423. package/types/date-picker.d.ts +124 -124
  424. package/types/descriptions-item.d.ts +37 -37
  425. package/types/descriptions.d.ts +52 -52
  426. package/types/dialog.d.ts +62 -62
  427. package/types/divider.d.ts +12 -12
  428. package/types/drawer.d.ts +63 -63
  429. package/types/dropdown-item.d.ts +16 -16
  430. package/types/dropdown-menu.d.ts +4 -4
  431. package/types/dropdown.d.ts +38 -38
  432. package/types/element-ui.d.ts +1 -22
  433. package/types/empty.d.ts +31 -31
  434. package/types/footer.d.ts +7 -7
  435. package/types/form-item.d.ts +37 -37
  436. package/types/form.d.ts +82 -82
  437. package/types/header.d.ts +7 -7
  438. package/types/icon.d.ts +7 -7
  439. package/types/image.d.ts +43 -43
  440. package/types/index.d.ts +4 -4
  441. package/types/infinite-scroll.d.ts +5 -5
  442. package/types/input-number.d.ts +47 -47
  443. package/types/input.d.ts +107 -107
  444. package/types/link.d.ts +25 -25
  445. package/types/loading.d.ts +62 -62
  446. package/types/main.d.ts +4 -4
  447. package/types/menu-item-group.d.ts +7 -7
  448. package/types/menu-item.d.ts +10 -10
  449. package/types/menu.d.ts +46 -46
  450. package/types/message-box.d.ts +176 -176
  451. package/types/message.d.ts +90 -90
  452. package/types/notification.d.ts +84 -84
  453. package/types/option-group.d.ts +10 -10
  454. package/types/option.d.ts +13 -13
  455. package/types/page-header.d.ts +10 -10
  456. package/types/pagination.d.ts +43 -43
  457. package/types/popconfirm.d.ts +29 -29
  458. package/types/popover.d.ts +71 -71
  459. package/types/progress.d.ts +37 -37
  460. package/types/radio-button.d.ts +16 -16
  461. package/types/radio-group.d.ts +18 -18
  462. package/types/radio.d.ts +19 -19
  463. package/types/rate.d.ts +64 -64
  464. package/types/result.d.ts +33 -33
  465. package/types/row.d.ts +25 -25
  466. package/types/select.d.ts +90 -90
  467. package/types/skeleton-item.d.ts +7 -7
  468. package/types/skeleton.d.ts +33 -33
  469. package/types/slider.d.ts +68 -68
  470. package/types/spinner.d.ts +16 -16
  471. package/types/statistic.d.ts +37 -37
  472. package/types/step.d.ts +34 -34
  473. package/types/steps.d.ts +28 -28
  474. package/types/submenu.d.ts +22 -22
  475. package/types/switch.d.ts +43 -43
  476. package/types/tab-pane.d.ts +19 -19
  477. package/types/table-column.d.ts +117 -117
  478. package/types/table.d.ts +177 -177
  479. package/types/tabs.d.ts +31 -31
  480. package/types/tag.d.ts +28 -28
  481. package/types/time-picker.d.ts +63 -63
  482. package/types/time-select.d.ts +56 -56
  483. package/types/timeline-item.d.ts +20 -20
  484. package/types/timeline.d.ts +6 -6
  485. package/types/tooltip.d.ts +52 -52
  486. package/types/transfer.d.ts +73 -73
  487. package/types/tree.d.ts +266 -266
  488. package/types/upload.d.ts +124 -124
  489. package/web-types.json +4195 -4195
  490. package/lib/alert.js +0 -402
  491. package/lib/aside.js +0 -270
  492. package/lib/autocomplete.js +0 -4651
  493. package/lib/avatar.js +0 -363
  494. package/lib/backtop.js +0 -386
  495. package/lib/badge.js +0 -313
  496. package/lib/breadcrumb-item.js +0 -309
  497. package/lib/breadcrumb.js +0 -287
  498. package/lib/button-group.js +0 -256
  499. package/lib/button.js +0 -332
  500. package/lib/calendar.js +0 -2373
  501. package/lib/card.js +0 -289
  502. package/lib/carousel-item.js +0 -755
  503. package/lib/carousel.js +0 -719
  504. package/lib/cascader-panel.js +0 -3623
  505. package/lib/cascader.js +0 -7498
  506. package/lib/checkbox-button.js +0 -573
  507. package/lib/checkbox-group.js +0 -344
  508. package/lib/checkbox.js +0 -603
  509. package/lib/col.js +0 -177
  510. package/lib/collapse-item.js +0 -1156
  511. package/lib/collapse.js +0 -323
  512. package/lib/color-picker.js +0 -5600
  513. package/lib/container.js +0 -281
  514. package/lib/date-picker.js +0 -9871
  515. package/lib/descriptions-item.js +0 -140
  516. package/lib/descriptions.js +0 -512
  517. package/lib/dialog.js +0 -1736
  518. package/lib/directives/mousewheel.js +0 -26
  519. package/lib/directives/repeat-click.js +0 -33
  520. package/lib/divider.js +0 -297
  521. package/lib/drawer.js +0 -1316
  522. package/lib/dropdown-item.js +0 -332
  523. package/lib/dropdown-menu.js +0 -2545
  524. package/lib/dropdown.js +0 -1579
  525. package/lib/element-ui.common.js +0 -54072
  526. package/lib/empty.js +0 -1186
  527. package/lib/fileUpload.js +0 -3276
  528. package/lib/footer.js +0 -270
  529. package/lib/form-item.js +0 -1129
  530. package/lib/form.js +0 -471
  531. package/lib/header.js +0 -270
  532. package/lib/icon.js +0 -260
  533. package/lib/image.js +0 -2386
  534. package/lib/infinite-scroll.js +0 -591
  535. package/lib/input-number.js +0 -2093
  536. package/lib/input.js +0 -1358
  537. package/lib/link.js +0 -308
  538. package/lib/loading.js +0 -1349
  539. package/lib/locale/format.js +0 -55
  540. package/lib/locale/index.js +0 -63
  541. package/lib/locale/lang/af-ZA.js +0 -126
  542. package/lib/locale/lang/ar.js +0 -125
  543. package/lib/locale/lang/az.js +0 -126
  544. package/lib/locale/lang/bg.js +0 -126
  545. package/lib/locale/lang/bn.js +0 -126
  546. package/lib/locale/lang/ca.js +0 -125
  547. package/lib/locale/lang/cs-CZ.js +0 -128
  548. package/lib/locale/lang/da.js +0 -125
  549. package/lib/locale/lang/de.js +0 -127
  550. package/lib/locale/lang/ee.js +0 -126
  551. package/lib/locale/lang/el.js +0 -126
  552. package/lib/locale/lang/en.js +0 -126
  553. package/lib/locale/lang/eo.js +0 -126
  554. package/lib/locale/lang/es.js +0 -125
  555. package/lib/locale/lang/eu.js +0 -126
  556. package/lib/locale/lang/fa.js +0 -126
  557. package/lib/locale/lang/fi.js +0 -126
  558. package/lib/locale/lang/fr.js +0 -125
  559. package/lib/locale/lang/he.js +0 -126
  560. package/lib/locale/lang/hr.js +0 -126
  561. package/lib/locale/lang/hu.js +0 -125
  562. package/lib/locale/lang/hy-AM.js +0 -126
  563. package/lib/locale/lang/id.js +0 -126
  564. package/lib/locale/lang/is.js +0 -126
  565. package/lib/locale/lang/it.js +0 -125
  566. package/lib/locale/lang/ja.js +0 -126
  567. package/lib/locale/lang/kg.js +0 -126
  568. package/lib/locale/lang/km.js +0 -126
  569. package/lib/locale/lang/ko.js +0 -126
  570. package/lib/locale/lang/ku.js +0 -126
  571. package/lib/locale/lang/kz.js +0 -126
  572. package/lib/locale/lang/lo-LA.js +0 -126
  573. package/lib/locale/lang/lt.js +0 -126
  574. package/lib/locale/lang/lv.js +0 -126
  575. package/lib/locale/lang/mn.js +0 -126
  576. package/lib/locale/lang/ms.js +0 -125
  577. package/lib/locale/lang/nb-NO.js +0 -125
  578. package/lib/locale/lang/nl.js +0 -126
  579. package/lib/locale/lang/pl.js +0 -126
  580. package/lib/locale/lang/pt-br.js +0 -126
  581. package/lib/locale/lang/pt.js +0 -126
  582. package/lib/locale/lang/ro.js +0 -126
  583. package/lib/locale/lang/ru-RU.js +0 -126
  584. package/lib/locale/lang/si.js +0 -126
  585. package/lib/locale/lang/sk.js +0 -128
  586. package/lib/locale/lang/sl.js +0 -126
  587. package/lib/locale/lang/sr-Latn.js +0 -126
  588. package/lib/locale/lang/sr.js +0 -126
  589. package/lib/locale/lang/sv-SE.js +0 -126
  590. package/lib/locale/lang/sw.js +0 -126
  591. package/lib/locale/lang/ta.js +0 -125
  592. package/lib/locale/lang/th.js +0 -126
  593. package/lib/locale/lang/tk.js +0 -126
  594. package/lib/locale/lang/tr-TR.js +0 -126
  595. package/lib/locale/lang/ua.js +0 -126
  596. package/lib/locale/lang/ug-CN.js +0 -126
  597. package/lib/locale/lang/uz-UZ.js +0 -126
  598. package/lib/locale/lang/vi.js +0 -126
  599. package/lib/locale/lang/zh-CN.js +0 -126
  600. package/lib/locale/lang/zh-TW.js +0 -126
  601. package/lib/main.js +0 -257
  602. package/lib/menu-item-group.js +0 -296
  603. package/lib/menu-item.js +0 -3344
  604. package/lib/menu.js +0 -1556
  605. package/lib/message-box.js +0 -3564
  606. package/lib/message.js +0 -1601
  607. package/lib/mixins/emitter.js +0 -36
  608. package/lib/mixins/focus.js +0 -15
  609. package/lib/mixins/locale.js +0 -17
  610. package/lib/mixins/migrating.js +0 -69
  611. package/lib/notification.js +0 -1662
  612. package/lib/option-group.js +0 -364
  613. package/lib/option.js +0 -835
  614. package/lib/page-header.js +0 -908
  615. package/lib/pagination.js +0 -6855
  616. package/lib/popconfirm.js +0 -3708
  617. package/lib/popover.js +0 -3118
  618. package/lib/progress.js +0 -542
  619. package/lib/radio-button.js +0 -456
  620. package/lib/radio-group.js +0 -412
  621. package/lib/radio.js +0 -482
  622. package/lib/rate.js +0 -1278
  623. package/lib/result.js +0 -528
  624. package/lib/row.js +0 -149
  625. package/lib/scrollbar.js +0 -1108
  626. package/lib/select.js +0 -6134
  627. package/lib/selectDisplayInput.js +0 -355
  628. package/lib/skeleton-item.js +0 -322
  629. package/lib/skeleton.js +0 -345
  630. package/lib/slider.js +0 -5231
  631. package/lib/spinner.js +0 -293
  632. package/lib/statistic.js +0 -9999
  633. package/lib/step.js +0 -476
  634. package/lib/steps.js +0 -745
  635. package/lib/subTitle.js +0 -284
  636. package/lib/submenu.js +0 -3021
  637. package/lib/switch.js +0 -970
  638. package/lib/tab-pane.js +0 -318
  639. package/lib/tabDialog.js +0 -2264
  640. package/lib/table-column.js +0 -1800
  641. package/lib/table.js +0 -8803
  642. package/lib/tabs.js +0 -1329
  643. package/lib/tag.js +0 -304
  644. package/lib/theme-chalk/README.md +0 -33
  645. package/lib/theme-chalk/base.css +0 -1
  646. package/lib/theme-chalk/element.css +0 -1
  647. package/lib/theme-chalk/fileUpload.css +0 -1
  648. package/lib/theme-chalk/gulpfile.js +0 -27
  649. package/lib/theme-chalk/index.css +0 -1
  650. package/lib/theme-chalk/package.json +0 -35
  651. package/lib/theme-chalk/selectDisplayInput.css +0 -1
  652. package/lib/theme-chalk/src/alert.scss +0 -147
  653. package/lib/theme-chalk/src/aside.scss +0 -7
  654. package/lib/theme-chalk/src/autocomplete.scss +0 -80
  655. package/lib/theme-chalk/src/avatar.scss +0 -51
  656. package/lib/theme-chalk/src/backtop.scss +0 -22
  657. package/lib/theme-chalk/src/badge.scss +0 -57
  658. package/lib/theme-chalk/src/base.scss +0 -2
  659. package/lib/theme-chalk/src/breadcrumb-item.scss +0 -0
  660. package/lib/theme-chalk/src/breadcrumb.scss +0 -55
  661. package/lib/theme-chalk/src/button-group.scss +0 -0
  662. package/lib/theme-chalk/src/button.scss +0 -262
  663. package/lib/theme-chalk/src/calendar.scss +0 -79
  664. package/lib/theme-chalk/src/card.scss +0 -32
  665. package/lib/theme-chalk/src/carousel-item.scss +0 -50
  666. package/lib/theme-chalk/src/carousel.scss +0 -161
  667. package/lib/theme-chalk/src/cascader-panel.scss +0 -120
  668. package/lib/theme-chalk/src/cascader.scss +0 -182
  669. package/lib/theme-chalk/src/checkbox-button.scss +0 -0
  670. package/lib/theme-chalk/src/checkbox-group.scss +0 -0
  671. package/lib/theme-chalk/src/checkbox.scss +0 -359
  672. package/lib/theme-chalk/src/col.scss +0 -156
  673. package/lib/theme-chalk/src/collapse-item.scss +0 -0
  674. package/lib/theme-chalk/src/collapse.scss +0 -63
  675. package/lib/theme-chalk/src/color-picker.scss +0 -384
  676. package/lib/theme-chalk/src/common/popup.scss +0 -42
  677. package/lib/theme-chalk/src/common/transition.scss +0 -99
  678. package/lib/theme-chalk/src/common/var.scss +0 -1028
  679. package/lib/theme-chalk/src/container.scss +0 -14
  680. package/lib/theme-chalk/src/date-picker/date-picker.scss +0 -97
  681. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +0 -101
  682. package/lib/theme-chalk/src/date-picker/date-table.scss +0 -151
  683. package/lib/theme-chalk/src/date-picker/month-table.scss +0 -82
  684. package/lib/theme-chalk/src/date-picker/picker-panel.scss +0 -117
  685. package/lib/theme-chalk/src/date-picker/picker.scss +0 -197
  686. package/lib/theme-chalk/src/date-picker/time-picker.scss +0 -85
  687. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +0 -31
  688. package/lib/theme-chalk/src/date-picker/time-spinner.scss +0 -110
  689. package/lib/theme-chalk/src/date-picker/year-table.scss +0 -51
  690. package/lib/theme-chalk/src/date-picker.scss +0 -12
  691. package/lib/theme-chalk/src/descriptions-item.scss +0 -42
  692. package/lib/theme-chalk/src/descriptions.scss +0 -111
  693. package/lib/theme-chalk/src/dialog.scss +0 -123
  694. package/lib/theme-chalk/src/display.scss +0 -12
  695. package/lib/theme-chalk/src/divider.scss +0 -47
  696. package/lib/theme-chalk/src/drawer.scss +0 -219
  697. package/lib/theme-chalk/src/dropdown-item.scss +0 -0
  698. package/lib/theme-chalk/src/dropdown-menu.scss +0 -0
  699. package/lib/theme-chalk/src/dropdown.scss +0 -182
  700. package/lib/theme-chalk/src/empty.scss +0 -45
  701. package/lib/theme-chalk/src/fonts/element-icons.ttf +0 -0
  702. package/lib/theme-chalk/src/fonts/element-icons.woff +0 -0
  703. package/lib/theme-chalk/src/footer.scss +0 -8
  704. package/lib/theme-chalk/src/form-item.scss +0 -0
  705. package/lib/theme-chalk/src/form.scss +0 -167
  706. package/lib/theme-chalk/src/header.scss +0 -8
  707. package/lib/theme-chalk/src/icon.scss +0 -1167
  708. package/lib/theme-chalk/src/image.scss +0 -179
  709. package/lib/theme-chalk/src/index.scss +0 -87
  710. package/lib/theme-chalk/src/infinite-scroll.scss +0 -0
  711. package/lib/theme-chalk/src/infiniteScroll.scss +0 -0
  712. package/lib/theme-chalk/src/input-number.scss +0 -180
  713. package/lib/theme-chalk/src/input.scss +0 -360
  714. package/lib/theme-chalk/src/link.scss +0 -81
  715. package/lib/theme-chalk/src/loading.scss +0 -96
  716. package/lib/theme-chalk/src/main.scss +0 -12
  717. package/lib/theme-chalk/src/menu-item-group.scss +0 -0
  718. package/lib/theme-chalk/src/menu-item.scss +0 -0
  719. package/lib/theme-chalk/src/menu.scss +0 -289
  720. package/lib/theme-chalk/src/message-box.scss +0 -226
  721. package/lib/theme-chalk/src/message.scss +0 -120
  722. package/lib/theme-chalk/src/mixins/_button.scss +0 -81
  723. package/lib/theme-chalk/src/mixins/config.scss +0 -4
  724. package/lib/theme-chalk/src/mixins/function.scss +0 -44
  725. package/lib/theme-chalk/src/mixins/mixins.scss +0 -190
  726. package/lib/theme-chalk/src/mixins/utils.scss +0 -39
  727. package/lib/theme-chalk/src/notification.scss +0 -99
  728. package/lib/theme-chalk/src/option-group.scss +0 -42
  729. package/lib/theme-chalk/src/option.scss +0 -36
  730. package/lib/theme-chalk/src/page-header.scss +0 -41
  731. package/lib/theme-chalk/src/pagination.scss +0 -295
  732. package/lib/theme-chalk/src/popconfirm.scss +0 -16
  733. package/lib/theme-chalk/src/popover.scss +0 -40
  734. package/lib/theme-chalk/src/popper.scss +0 -101
  735. package/lib/theme-chalk/src/progress.scss +0 -141
  736. package/lib/theme-chalk/src/radio-button.scss +0 -113
  737. package/lib/theme-chalk/src/radio-group.scss +0 -9
  738. package/lib/theme-chalk/src/radio.scss +0 -199
  739. package/lib/theme-chalk/src/rate.scss +0 -49
  740. package/lib/theme-chalk/src/reset.scss +0 -79
  741. package/lib/theme-chalk/src/result.scss +0 -61
  742. package/lib/theme-chalk/src/row.scss +0 -43
  743. package/lib/theme-chalk/src/scrollbar.scss +0 -72
  744. package/lib/theme-chalk/src/select-dropdown.scss +0 -62
  745. package/lib/theme-chalk/src/select.scss +0 -152
  746. package/lib/theme-chalk/src/skeleton-item.scss +0 -84
  747. package/lib/theme-chalk/src/skeleton.scss +0 -40
  748. package/lib/theme-chalk/src/slider.scss +0 -250
  749. package/lib/theme-chalk/src/spinner.scss +0 -44
  750. package/lib/theme-chalk/src/statistic.scss +0 -38
  751. package/lib/theme-chalk/src/step.scss +0 -317
  752. package/lib/theme-chalk/src/steps.scss +0 -20
  753. package/lib/theme-chalk/src/submenu.scss +0 -0
  754. package/lib/theme-chalk/src/switch.scss +0 -116
  755. package/lib/theme-chalk/src/tab-pane.scss +0 -0
  756. package/lib/theme-chalk/src/table-column.scss +0 -97
  757. package/lib/theme-chalk/src/table.scss +0 -564
  758. package/lib/theme-chalk/src/tabs.scss +0 -602
  759. package/lib/theme-chalk/src/tag.scss +0 -163
  760. package/lib/theme-chalk/src/time-picker.scss +0 -8
  761. package/lib/theme-chalk/src/time-select.scss +0 -37
  762. package/lib/theme-chalk/src/timeline-item.scss +0 -86
  763. package/lib/theme-chalk/src/timeline.scss +0 -14
  764. package/lib/theme-chalk/src/tooltip.scss +0 -141
  765. package/lib/theme-chalk/src/transfer.scss +0 -227
  766. package/lib/theme-chalk/src/tree.scss +0 -123
  767. package/lib/theme-chalk/src/upload.scss +0 -603
  768. package/lib/theme-chalk/subTitle.css +0 -1
  769. package/lib/theme-chalk/tabDialog.css +0 -1
  770. package/lib/theme-chalk/treeSelect.css +0 -1
  771. package/lib/theme-cy/base.css +0 -1
  772. package/lib/theme-cy/element.css +0 -1
  773. package/lib/theme-cy/fileUpload.css +0 -1
  774. package/lib/theme-cy/index.css +0 -1
  775. package/lib/theme-cy/selectDisplayInput.css +0 -1
  776. package/lib/theme-cy/subTitle.css +0 -1
  777. package/lib/theme-cy/tabDialog.css +0 -1
  778. package/lib/theme-cy/treeSelect.css +0 -1
  779. package/lib/time-picker.js +0 -6881
  780. package/lib/time-select.js +0 -5892
  781. package/lib/timeline-item.js +0 -329
  782. package/lib/timeline.js +0 -275
  783. package/lib/tooltip.js +0 -2950
  784. package/lib/transfer.js +0 -2998
  785. package/lib/transitions/collapse-transition.js +0 -91
  786. package/lib/tree.js +0 -3470
  787. package/lib/treeSelect.js +0 -4058
  788. package/lib/umd/locale/af-ZA.js +0 -142
  789. package/lib/umd/locale/ar.js +0 -141
  790. package/lib/umd/locale/az.js +0 -141
  791. package/lib/umd/locale/bg.js +0 -142
  792. package/lib/umd/locale/bn.js +0 -141
  793. package/lib/umd/locale/ca.js +0 -141
  794. package/lib/umd/locale/cs-CZ.js +0 -144
  795. package/lib/umd/locale/da.js +0 -141
  796. package/lib/umd/locale/de.js +0 -143
  797. package/lib/umd/locale/ee.js +0 -142
  798. package/lib/umd/locale/el.js +0 -142
  799. package/lib/umd/locale/en.js +0 -142
  800. package/lib/umd/locale/eo.js +0 -142
  801. package/lib/umd/locale/es.js +0 -141
  802. package/lib/umd/locale/eu.js +0 -142
  803. package/lib/umd/locale/fa.js +0 -142
  804. package/lib/umd/locale/fi.js +0 -142
  805. package/lib/umd/locale/fr.js +0 -141
  806. package/lib/umd/locale/he.js +0 -142
  807. package/lib/umd/locale/hr.js +0 -142
  808. package/lib/umd/locale/hu.js +0 -141
  809. package/lib/umd/locale/hy-AM.js +0 -142
  810. package/lib/umd/locale/id.js +0 -142
  811. package/lib/umd/locale/is.js +0 -142
  812. package/lib/umd/locale/it.js +0 -141
  813. package/lib/umd/locale/ja.js +0 -142
  814. package/lib/umd/locale/kg.js +0 -142
  815. package/lib/umd/locale/km.js +0 -142
  816. package/lib/umd/locale/ko.js +0 -142
  817. package/lib/umd/locale/ku.js +0 -142
  818. package/lib/umd/locale/kz.js +0 -142
  819. package/lib/umd/locale/lo-LA.js +0 -141
  820. package/lib/umd/locale/lt.js +0 -142
  821. package/lib/umd/locale/lv.js +0 -142
  822. package/lib/umd/locale/mn.js +0 -142
  823. package/lib/umd/locale/ms.js +0 -141
  824. package/lib/umd/locale/nb-NO.js +0 -141
  825. package/lib/umd/locale/nl.js +0 -142
  826. package/lib/umd/locale/pl.js +0 -142
  827. package/lib/umd/locale/pt-br.js +0 -142
  828. package/lib/umd/locale/pt.js +0 -142
  829. package/lib/umd/locale/ro.js +0 -142
  830. package/lib/umd/locale/ru-RU.js +0 -142
  831. package/lib/umd/locale/si.js +0 -142
  832. package/lib/umd/locale/sk.js +0 -144
  833. package/lib/umd/locale/sl.js +0 -142
  834. package/lib/umd/locale/sr-Latn.js +0 -142
  835. package/lib/umd/locale/sr.js +0 -142
  836. package/lib/umd/locale/sv-SE.js +0 -142
  837. package/lib/umd/locale/sw.js +0 -142
  838. package/lib/umd/locale/ta.js +0 -141
  839. package/lib/umd/locale/th.js +0 -142
  840. package/lib/umd/locale/tk.js +0 -142
  841. package/lib/umd/locale/tr-TR.js +0 -142
  842. package/lib/umd/locale/ua.js +0 -142
  843. package/lib/umd/locale/ug-CN.js +0 -142
  844. package/lib/umd/locale/uz-UZ.js +0 -142
  845. package/lib/umd/locale/vi.js +0 -142
  846. package/lib/umd/locale/zh-CN.js +0 -142
  847. package/lib/umd/locale/zh-TW.js +0 -142
  848. package/lib/upload.js +0 -2337
  849. package/lib/utils/after-leave.js +0 -35
  850. package/lib/utils/aria-dialog.js +0 -104
  851. package/lib/utils/aria-utils.js +0 -126
  852. package/lib/utils/clickoutside.js +0 -79
  853. package/lib/utils/date-util.js +0 -310
  854. package/lib/utils/date.js +0 -369
  855. package/lib/utils/dom.js +0 -234
  856. package/lib/utils/lodash.js +0 -9421
  857. package/lib/utils/menu/aria-menubar.js +0 -24
  858. package/lib/utils/menu/aria-menuitem.js +0 -62
  859. package/lib/utils/menu/aria-submenu.js +0 -69
  860. package/lib/utils/merge.js +0 -21
  861. package/lib/utils/popper.js +0 -1261
  862. package/lib/utils/popup/index.js +0 -233
  863. package/lib/utils/popup/popup-manager.js +0 -205
  864. package/lib/utils/resize-event.js +0 -59
  865. package/lib/utils/scroll-into-view.js +0 -38
  866. package/lib/utils/scrollbar-width.js +0 -39
  867. package/lib/utils/shared.js +0 -12
  868. package/lib/utils/types.js +0 -52
  869. package/lib/utils/util.js +0 -272
  870. package/lib/utils/vdom.js +0 -13
  871. package/lib/utils/vue-popper.js +0 -202
  872. package/packages/fileUpload/index.js +0 -8
  873. package/packages/fileUpload/src/main.vue +0 -430
  874. package/packages/selectDisplayInput/index.js +0 -8
  875. package/packages/selectDisplayInput/src/main.vue +0 -75
  876. package/packages/subTitle/index.js +0 -8
  877. package/packages/subTitle/src/main.vue +0 -33
  878. package/packages/tabDialog/index.js +0 -23
  879. package/packages/tabDialog/src/dialog/drag.js +0 -63
  880. package/packages/tabDialog/src/dialog/dragHeight.js +0 -34
  881. package/packages/tabDialog/src/dialog/dragWidth.js +0 -30
  882. package/packages/tabDialog/src/main.vue +0 -277
  883. package/packages/theme-cy/README.md +0 -38
  884. package/packages/theme-cy/gulpfile.js +0 -27
  885. package/packages/theme-cy/package.json +0 -35
  886. package/packages/theme-cy/src/base.scss +0 -3
  887. package/packages/theme-cy/src/element.scss +0 -45
  888. package/packages/theme-cy/src/fileUpload.scss +0 -30
  889. package/packages/theme-cy/src/index.scss +0 -7
  890. package/packages/theme-cy/src/selectDisplayInput.scss +0 -76
  891. package/packages/theme-cy/src/subTitle.scss +0 -26
  892. package/packages/theme-cy/src/tabDialog.scss +0 -43
  893. package/packages/theme-cy/src/treeSelect.scss +0 -98
  894. package/packages/treeSelect/index.js +0 -8
  895. package/packages/treeSelect/src/main.vue +0 -325
  896. package/src/locale/lang/af-ZA.js +0 -123
  897. package/src/locale/lang/ar.js +0 -122
  898. package/src/locale/lang/az.js +0 -126
  899. package/src/locale/lang/bg.js +0 -123
  900. package/src/locale/lang/bn.js +0 -126
  901. package/src/locale/lang/ca.js +0 -122
  902. package/src/locale/lang/cs-CZ.js +0 -125
  903. package/src/locale/lang/da.js +0 -122
  904. package/src/locale/lang/de.js +0 -124
  905. package/src/locale/lang/ee.js +0 -123
  906. package/src/locale/lang/el.js +0 -123
  907. package/src/locale/lang/eo.js +0 -123
  908. package/src/locale/lang/es.js +0 -122
  909. package/src/locale/lang/eu.js +0 -123
  910. package/src/locale/lang/fa.js +0 -123
  911. package/src/locale/lang/fi.js +0 -123
  912. package/src/locale/lang/fr.js +0 -122
  913. package/src/locale/lang/he.js +0 -123
  914. package/src/locale/lang/hr.js +0 -123
  915. package/src/locale/lang/hu.js +0 -122
  916. package/src/locale/lang/hy-AM.js +0 -123
  917. package/src/locale/lang/id.js +0 -123
  918. package/src/locale/lang/is.js +0 -124
  919. package/src/locale/lang/it.js +0 -122
  920. package/src/locale/lang/ja.js +0 -123
  921. package/src/locale/lang/kg.js +0 -123
  922. package/src/locale/lang/km.js +0 -123
  923. package/src/locale/lang/ko.js +0 -123
  924. package/src/locale/lang/ku.js +0 -123
  925. package/src/locale/lang/kz.js +0 -123
  926. package/src/locale/lang/lo-LA.js +0 -126
  927. package/src/locale/lang/lt.js +0 -123
  928. package/src/locale/lang/lv.js +0 -123
  929. package/src/locale/lang/mn.js +0 -123
  930. package/src/locale/lang/ms.js +0 -122
  931. package/src/locale/lang/nb-NO.js +0 -122
  932. package/src/locale/lang/nl.js +0 -123
  933. package/src/locale/lang/pl.js +0 -123
  934. package/src/locale/lang/pt-br.js +0 -123
  935. package/src/locale/lang/pt.js +0 -123
  936. package/src/locale/lang/ro.js +0 -123
  937. package/src/locale/lang/ru-RU.js +0 -123
  938. package/src/locale/lang/si.js +0 -123
  939. package/src/locale/lang/sk.js +0 -125
  940. package/src/locale/lang/sl.js +0 -123
  941. package/src/locale/lang/sr-Latn.js +0 -123
  942. package/src/locale/lang/sr.js +0 -123
  943. package/src/locale/lang/sv-SE.js +0 -123
  944. package/src/locale/lang/sw.js +0 -123
  945. package/src/locale/lang/ta.js +0 -122
  946. package/src/locale/lang/th.js +0 -123
  947. package/src/locale/lang/tk.js +0 -123
  948. package/src/locale/lang/tr-TR.js +0 -123
  949. package/src/locale/lang/ua.js +0 -123
  950. package/src/locale/lang/ug-CN.js +0 -123
  951. package/src/locale/lang/uz-UZ.js +0 -123
  952. package/src/locale/lang/vi.js +0 -123
  953. package/types/fileUpload.d.ts +0 -5
  954. package/types/selectDisplayInput.d.ts +0 -5
  955. package/types/subTitle.d.ts +0 -5
  956. package/types/tabDialog.d.ts +0 -5
  957. package/types/treeSelect.d.ts +0 -5
package/types/drawer.d.ts CHANGED
@@ -1,63 +1,63 @@
1
- import { ElementUIComponent } from './component'
2
- import { VNode } from 'vue'
3
-
4
- type hide = (shouldCancel: boolean) => void
5
- declare enum Direction {
6
- LTR = 'ltr', // left to right
7
- RTL = 'rtl', // right to left
8
- TTB = 'ttb', // top to bottom
9
- BTT = 'btt' // bottom to top
10
- }
11
-
12
- interface DrawerSlots {
13
- /* Main Content Slots */
14
- default: VNode[];
15
-
16
- /* Title Slots */
17
- title: VNode[];
18
-
19
- [key: string]: VNode[]
20
- }
21
- /** Drawer Component */
22
- export declare class ElDrawer extends ElementUIComponent {
23
- /* Equivalent to `Dialog`'s append to body attribute, when applying nested drawer, make sure this one is set to true */
24
- appendToBody: boolean
25
-
26
- /* Hook method called before close drawer, the first parameter is a function which should determine if the drawer should be closed */
27
- beforeClose: (done: hide) => void
28
-
29
- /** Whether the Drawer can be closed by pressing ESC */
30
- closeOnPressEscape: boolean
31
-
32
- /** Custom class names for Dialog */
33
- customClass: string
34
-
35
- /* Determine whether the wrapped children should be destroyed, if true, children's destroyed life cycle method will be called all local state will be destroyed */
36
- destroyOnClose: boolean
37
-
38
- /* Equivalent to `Dialog`'s modal attribute, determines whether the dark shadowing background should show */
39
- modal: boolean
40
-
41
- /* Equivalent to `Dialog`'s modal-append-to-body attribute, determines whether the shadowing background should be inserted direct to DocumentBody element */
42
- modalAppendToBody: boolean
43
-
44
- /* Attributes that controls the drawer's direction of display*/
45
- position: Direction
46
-
47
- /* Whether the close button should be rendered to control the drawer's visible state */
48
- showClose: boolean
49
-
50
- /* The size of the drawer component, supporting number with unit of pixel, string by percentage e.g. 30% */
51
- size: number | string
52
-
53
- /* The Drawer's title, also can be replaced by named slot `title` */
54
- title: string
55
-
56
- /* Whether the drawer component should show, also can be decorated by `.sync` */
57
- visible: boolean
58
-
59
- /* Flag attribute whi */
60
- wrapperClosable: boolean
61
-
62
- $slots: DrawerSlots
63
- }
1
+ import { ElementUIComponent } from './component'
2
+ import { VNode } from 'vue'
3
+
4
+ type hide = (shouldCancel: boolean) => void
5
+ declare enum Direction {
6
+ LTR = 'ltr', // left to right
7
+ RTL = 'rtl', // right to left
8
+ TTB = 'ttb', // top to bottom
9
+ BTT = 'btt' // bottom to top
10
+ }
11
+
12
+ interface DrawerSlots {
13
+ /* Main Content Slots */
14
+ default: VNode[];
15
+
16
+ /* Title Slots */
17
+ title: VNode[];
18
+
19
+ [key: string]: VNode[]
20
+ }
21
+ /** Drawer Component */
22
+ export declare class ElDrawer extends ElementUIComponent {
23
+ /* Equivalent to `Dialog`'s append to body attribute, when applying nested drawer, make sure this one is set to true */
24
+ appendToBody: boolean
25
+
26
+ /* Hook method called before close drawer, the first parameter is a function which should determine if the drawer should be closed */
27
+ beforeClose: (done: hide) => void
28
+
29
+ /** Whether the Drawer can be closed by pressing ESC */
30
+ closeOnPressEscape: boolean
31
+
32
+ /** Custom class names for Dialog */
33
+ customClass: string
34
+
35
+ /* Determine whether the wrapped children should be destroyed, if true, children's destroyed life cycle method will be called all local state will be destroyed */
36
+ destroyOnClose: boolean
37
+
38
+ /* Equivalent to `Dialog`'s modal attribute, determines whether the dark shadowing background should show */
39
+ modal: boolean
40
+
41
+ /* Equivalent to `Dialog`'s modal-append-to-body attribute, determines whether the shadowing background should be inserted direct to DocumentBody element */
42
+ modalAppendToBody: boolean
43
+
44
+ /* Attributes that controls the drawer's direction of display*/
45
+ position: Direction
46
+
47
+ /* Whether the close button should be rendered to control the drawer's visible state */
48
+ showClose: boolean
49
+
50
+ /* The size of the drawer component, supporting number with unit of pixel, string by percentage e.g. 30% */
51
+ size: number | string
52
+
53
+ /* The Drawer's title, also can be replaced by named slot `title` */
54
+ title: string
55
+
56
+ /* Whether the drawer component should show, also can be decorated by `.sync` */
57
+ visible: boolean
58
+
59
+ /* Flag attribute whi */
60
+ wrapperClosable: boolean
61
+
62
+ $slots: DrawerSlots
63
+ }
@@ -1,16 +1,16 @@
1
- import { ElementUIComponent } from './component'
2
-
3
- /** Toggleable menu for displaying lists of links and actions. */
4
- export declare class ElDropdownItem extends ElementUIComponent {
5
- /** A command to be dispatched to Dropdown's command callback */
6
- command: string | number | object
7
-
8
- /** Whether the item is disabled */
9
- disabled: boolean
10
-
11
- /** Whether a divider is displayed */
12
- divided: boolean
13
-
14
- /** Icon to show on left side of text */
15
- icon: string
16
- }
1
+ import { ElementUIComponent } from './component'
2
+
3
+ /** Toggleable menu for displaying lists of links and actions. */
4
+ export declare class ElDropdownItem extends ElementUIComponent {
5
+ /** A command to be dispatched to Dropdown's command callback */
6
+ command: string | number | object
7
+
8
+ /** Whether the item is disabled */
9
+ disabled: boolean
10
+
11
+ /** Whether a divider is displayed */
12
+ divided: boolean
13
+
14
+ /** Icon to show on left side of text */
15
+ icon: string
16
+ }
@@ -1,4 +1,4 @@
1
- import { ElementUIComponent } from './component'
2
-
3
- /** Dropdown Menu Component */
4
- export declare class ElDropdownMenu extends ElementUIComponent {}
1
+ import { ElementUIComponent } from './component'
2
+
3
+ /** Dropdown Menu Component */
4
+ export declare class ElDropdownMenu extends ElementUIComponent {}
@@ -1,38 +1,38 @@
1
- import { ElementUIComponent, ElementUIComponentSize } from './component'
2
- import { ButtonType } from './button'
3
-
4
- export type DropdownMenuAlignment = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'
5
- export type DropdownMenuTrigger = 'hover' | 'click'
6
-
7
- /** Toggleable menu for displaying lists of links and actions */
8
- export declare class ElDropdown extends ElementUIComponent {
9
- /** Menu button type. only works when split-button is true */
10
- type: ButtonType
11
-
12
- /** Whether a button group is displayed */
13
- splitButton: boolean
14
-
15
- /** menu size, also works on the split button */
16
- size: ElementUIComponentSize
17
-
18
- /** Placement of the menu */
19
- placement: DropdownMenuAlignment
20
-
21
- /** How to trigger */
22
- trigger: DropdownMenuTrigger
23
-
24
- /** Whether to hide menu after clicking menu-item */
25
- hideOnClick: boolean
26
-
27
- /** Delay time before show a dropdown */
28
- showTimeout: number
29
-
30
- /** Delay time before hide a dropdown */
31
- hideTimeout: number
32
-
33
- /** Dropdown tabindex */
34
- tabindex: number
35
-
36
- /** Whether Dropdown is disabled */
37
- disabled: boolean
38
- }
1
+ import { ElementUIComponent, ElementUIComponentSize } from './component'
2
+ import { ButtonType } from './button'
3
+
4
+ export type DropdownMenuAlignment = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end'
5
+ export type DropdownMenuTrigger = 'hover' | 'click'
6
+
7
+ /** Toggleable menu for displaying lists of links and actions */
8
+ export declare class ElDropdown extends ElementUIComponent {
9
+ /** Menu button type. only works when split-button is true */
10
+ type: ButtonType
11
+
12
+ /** Whether a button group is displayed */
13
+ splitButton: boolean
14
+
15
+ /** menu size, also works on the split button */
16
+ size: ElementUIComponentSize
17
+
18
+ /** Placement of the menu */
19
+ placement: DropdownMenuAlignment
20
+
21
+ /** How to trigger */
22
+ trigger: DropdownMenuTrigger
23
+
24
+ /** Whether to hide menu after clicking menu-item */
25
+ hideOnClick: boolean
26
+
27
+ /** Delay time before show a dropdown */
28
+ showTimeout: number
29
+
30
+ /** Delay time before hide a dropdown */
31
+ hideTimeout: number
32
+
33
+ /** Dropdown tabindex */
34
+ tabindex: number
35
+
36
+ /** Whether Dropdown is disabled */
37
+ disabled: boolean
38
+ }
@@ -90,12 +90,6 @@ import { ElDescriptionsItem } from './descriptions-item'
90
90
  import { ElResult } from './result'
91
91
  import { ElStatistic } from './statistic'
92
92
 
93
- import { CyTreeSelect } from './treeSelect'
94
- import { CySubTitle } from './subTitle'
95
- import { CyTabDialog } from './tabDialog'
96
- import { CyFileUpload } from './fileUpload'
97
-
98
-
99
93
  export interface InstallationOptions {
100
94
  locale: any,
101
95
  i18n: any,
@@ -385,19 +379,4 @@ export class DescriptionsItem extends ElDescriptionsItem {}
385
379
  export class Result extends ElResult {}
386
380
 
387
381
  /** Statistic Component */
388
- export class Statistic extends ElStatistic {}
389
-
390
- /** TreeSelect Component */
391
- export class TreeSelect extends CyTreeSelect {}
392
-
393
- /** SubTitle Component */
394
- export class SubTitle extends CySubTitle {}
395
-
396
- /** TabDialog Component */
397
- export class TabDialog extends CyTabDialog {}
398
-
399
- /** FileUpload Component */
400
- export class FileUpload extends CyFileUpload {}
401
-
402
- /** SelectDisplayInput Component */
403
- export class SelectDisplayInput extends CySelectDisplayInput {}
382
+ export class Statistic extends ElStatistic {}
package/types/empty.d.ts CHANGED
@@ -1,31 +1,31 @@
1
- import { ElementUIComponent } from './component'
2
- import { VNode } from 'vue'
3
-
4
- interface ELEmptySlots {
5
- /* default slot: Custom bottom content */
6
- default: VNode[]
7
-
8
- /* image slot: Custom image */
9
- image: VNode[]
10
-
11
- /* description slot: Custom description */
12
- description: VNode[]
13
-
14
-
15
- [key: string]: VNode[]
16
- }
17
-
18
- /** Placeholder hints for empty states. */
19
- export declare class ElEmpty extends ElementUIComponent {
20
- /* image URL */
21
- image: string
22
-
23
- /* image size (width) */
24
- imageSize: number
25
-
26
- /* description */
27
- description: string
28
-
29
- $slots: ELEmptySlots
30
-
31
- }
1
+ import { ElementUIComponent } from './component'
2
+ import { VNode } from 'vue'
3
+
4
+ interface ELEmptySlots {
5
+ /* default slot: Custom bottom content */
6
+ default: VNode[]
7
+
8
+ /* image slot: Custom image */
9
+ image: VNode[]
10
+
11
+ /* description slot: Custom description */
12
+ description: VNode[]
13
+
14
+
15
+ [key: string]: VNode[]
16
+ }
17
+
18
+ /** Placeholder hints for empty states. */
19
+ export declare class ElEmpty extends ElementUIComponent {
20
+ /* image URL */
21
+ image: string
22
+
23
+ /* image size (width) */
24
+ imageSize: number
25
+
26
+ /* description */
27
+ description: string
28
+
29
+ $slots: ELEmptySlots
30
+
31
+ }
package/types/footer.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ElementUIComponent } from './component'
2
-
3
- /** Footer Component */
4
- export declare class ElFooter extends ElementUIComponent {
5
- /** Height of the footer */
6
- height: string
7
- }
1
+ import { ElementUIComponent } from './component'
2
+
3
+ /** Footer Component */
4
+ export declare class ElFooter extends ElementUIComponent {
5
+ /** Height of the footer */
6
+ height: string
7
+ }
@@ -1,37 +1,37 @@
1
- import { ElementUIComponent, ElementUIComponentSize } from './component'
2
-
3
- /** FormItem Component */
4
- export declare class ElFormItem extends ElementUIComponent {
5
- /** A key of `model` of the enclosing `el-form` component */
6
- prop: string
7
-
8
- /** Label */
9
- label: string
10
-
11
- /** Width of label, e.g. '50px' */
12
- labelWidth: string
13
-
14
- /** Whether the field is required or not, will be determined by validation rules if omitted */
15
- required: boolean
16
-
17
- /** Validation rules of form */
18
- rules: object
19
-
20
- /** Field error message, set its value and the field will validate error and show this message immediately */
21
- error: string
22
-
23
- /** Whether to show the error message */
24
- showMessage: boolean
25
-
26
- /** Whether to display the error message inline with the form item */
27
- inlineMessage: boolean
28
-
29
- /** Controls the size of components in this form */
30
- size: ElementUIComponentSize
31
-
32
- /** Reset current field and remove validation result */
33
- resetField (): void
34
-
35
- /** Remove validation status of the field */
36
- clearValidate (): void
37
- }
1
+ import { ElementUIComponent, ElementUIComponentSize } from './component'
2
+
3
+ /** FormItem Component */
4
+ export declare class ElFormItem extends ElementUIComponent {
5
+ /** A key of `model` of the enclosing `el-form` component */
6
+ prop: string
7
+
8
+ /** Label */
9
+ label: string
10
+
11
+ /** Width of label, e.g. '50px' */
12
+ labelWidth: string
13
+
14
+ /** Whether the field is required or not, will be determined by validation rules if omitted */
15
+ required: boolean
16
+
17
+ /** Validation rules of form */
18
+ rules: object
19
+
20
+ /** Field error message, set its value and the field will validate error and show this message immediately */
21
+ error: string
22
+
23
+ /** Whether to show the error message */
24
+ showMessage: boolean
25
+
26
+ /** Whether to display the error message inline with the form item */
27
+ inlineMessage: boolean
28
+
29
+ /** Controls the size of components in this form */
30
+ size: ElementUIComponentSize
31
+
32
+ /** Reset current field and remove validation result */
33
+ resetField (): void
34
+
35
+ /** Remove validation status of the field */
36
+ clearValidate (): void
37
+ }
package/types/form.d.ts CHANGED
@@ -1,82 +1,82 @@
1
- import { ElementUIComponent, ElementUIComponentSize } from './component'
2
-
3
- export type FormItemLabelPosition = 'left' | 'right' | 'top'
4
-
5
- export interface ValidateCallback {
6
- /**
7
- * The callback to tell the validation result
8
- *
9
- * @param isValid Whether the form is valid
10
- * @param invalidFields fields that fail validation
11
- */
12
- (isValid: boolean, invalidFields: object): void
13
- }
14
-
15
- export interface ValidateFieldCallback {
16
- /**
17
- * The callback to tell the field validation result
18
- *
19
- * @param errorMessage The error message. It will be empty if there is no error
20
- */
21
- (errorMessage: string): void
22
- }
23
-
24
- /** Form Component */
25
- export declare class ElForm extends ElementUIComponent {
26
- /** Data of form component */
27
- model: object
28
-
29
- /** Validation rules of form */
30
- rules: object
31
-
32
- /** Whether the form is inline */
33
- inline: boolean
34
-
35
- /** Whether the form is disabled */
36
- disabled: boolean
37
-
38
- /** Position of label */
39
- labelPosition: FormItemLabelPosition
40
-
41
- /** Width of label, and all form items will inherit from Form */
42
- labelWidth: string
43
-
44
- /** Suffix of the label */
45
- labelSuffix: string
46
-
47
- /** Whether to show the error message */
48
- showMessage: boolean
49
-
50
- /** Whether to display the error message inline with the form item */
51
- inlineMessage: boolean
52
-
53
- /** Whether to display an icon indicating the validation result */
54
- statusIcon: boolean
55
-
56
- /** Whether to trigger validation when the `rules` prop is changed */
57
- validateOnRuleChange: boolean
58
-
59
- /** Controls the size of components in this form */
60
- size: ElementUIComponentSize
61
-
62
- /**
63
- * Validate the whole form
64
- *
65
- * @param callback A callback to tell the validation result
66
- */
67
- validate (callback: ValidateCallback): void
68
- validate (): Promise<boolean>
69
- /**
70
- * Validate certain form items
71
- *
72
- * @param props The property of `model` or array of prop which is going to validate
73
- * @param callback A callback to tell the field validation result
74
- */
75
- validateField (props: string | string[], callback?: ValidateFieldCallback): void
76
-
77
- /** reset all the fields and remove validation result */
78
- resetFields (): void
79
-
80
- /** clear validation message for certain fields */
81
- clearValidate (props?: string | string[]): void
82
- }
1
+ import { ElementUIComponent, ElementUIComponentSize } from './component'
2
+
3
+ export type FormItemLabelPosition = 'left' | 'right' | 'top'
4
+
5
+ export interface ValidateCallback {
6
+ /**
7
+ * The callback to tell the validation result
8
+ *
9
+ * @param isValid Whether the form is valid
10
+ * @param invalidFields fields that fail validation
11
+ */
12
+ (isValid: boolean, invalidFields: object): void
13
+ }
14
+
15
+ export interface ValidateFieldCallback {
16
+ /**
17
+ * The callback to tell the field validation result
18
+ *
19
+ * @param errorMessage The error message. It will be empty if there is no error
20
+ */
21
+ (errorMessage: string): void
22
+ }
23
+
24
+ /** Form Component */
25
+ export declare class ElForm extends ElementUIComponent {
26
+ /** Data of form component */
27
+ model: object
28
+
29
+ /** Validation rules of form */
30
+ rules: object
31
+
32
+ /** Whether the form is inline */
33
+ inline: boolean
34
+
35
+ /** Whether the form is disabled */
36
+ disabled: boolean
37
+
38
+ /** Position of label */
39
+ labelPosition: FormItemLabelPosition
40
+
41
+ /** Width of label, and all form items will inherit from Form */
42
+ labelWidth: string
43
+
44
+ /** Suffix of the label */
45
+ labelSuffix: string
46
+
47
+ /** Whether to show the error message */
48
+ showMessage: boolean
49
+
50
+ /** Whether to display the error message inline with the form item */
51
+ inlineMessage: boolean
52
+
53
+ /** Whether to display an icon indicating the validation result */
54
+ statusIcon: boolean
55
+
56
+ /** Whether to trigger validation when the `rules` prop is changed */
57
+ validateOnRuleChange: boolean
58
+
59
+ /** Controls the size of components in this form */
60
+ size: ElementUIComponentSize
61
+
62
+ /**
63
+ * Validate the whole form
64
+ *
65
+ * @param callback A callback to tell the validation result
66
+ */
67
+ validate (callback: ValidateCallback): void
68
+ validate (): Promise<boolean>
69
+ /**
70
+ * Validate certain form items
71
+ *
72
+ * @param props The property of `model` or array of prop which is going to validate
73
+ * @param callback A callback to tell the field validation result
74
+ */
75
+ validateField (props: string | string[], callback?: ValidateFieldCallback): void
76
+
77
+ /** reset all the fields and remove validation result */
78
+ resetFields (): void
79
+
80
+ /** clear validation message for certain fields */
81
+ clearValidate (props?: string | string[]): void
82
+ }
package/types/header.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ElementUIComponent } from './component'
2
-
3
- /** Header Component */
4
- export declare class ElHeader extends ElementUIComponent {
5
- /** Height of the header */
6
- height: string
7
- }
1
+ import { ElementUIComponent } from './component'
2
+
3
+ /** Header Component */
4
+ export declare class ElHeader extends ElementUIComponent {
5
+ /** Height of the header */
6
+ height: string
7
+ }
package/types/icon.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { ElementUIComponent } from './component'
2
-
3
- /** Icon Component */
4
- export declare class ElIcon extends ElementUIComponent {
5
- /** Icon name */
6
- name: string
7
- }
1
+ import { ElementUIComponent } from './component'
2
+
3
+ /** Icon Component */
4
+ export declare class ElIcon extends ElementUIComponent {
5
+ /** Icon name */
6
+ name: string
7
+ }