iov-design 2.15.60 → 2.15.62

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 (242) hide show
  1. package/README.md +148 -148
  2. package/lib/alert.js +24 -105
  3. package/lib/aside.js +24 -34
  4. package/lib/autocomplete.js +36 -240
  5. package/lib/avatar.js +21 -20
  6. package/lib/backtop.js +27 -52
  7. package/lib/badge.js +30 -58
  8. package/lib/breadcrumb-item.js +24 -53
  9. package/lib/breadcrumb.js +24 -37
  10. package/lib/button-group.js +24 -29
  11. package/lib/button.js +38 -60
  12. package/lib/calendar.js +29 -146
  13. package/lib/card.js +24 -51
  14. package/lib/carousel-item.js +30 -68
  15. package/lib/carousel.js +27 -159
  16. package/lib/cascader-panel.js +41 -64
  17. package/lib/cascader.js +37 -470
  18. package/lib/checkbox-button.js +28 -164
  19. package/lib/checkbox-group.js +24 -37
  20. package/lib/checkbox.js +35 -189
  21. package/lib/col.js +1 -0
  22. package/lib/collapse-item.js +27 -125
  23. package/lib/collapse.js +24 -37
  24. package/lib/color-picker.js +104 -424
  25. package/lib/container.js +24 -34
  26. package/lib/date-picker.js +126 -1981
  27. package/lib/descriptions-item.js +1 -0
  28. package/lib/descriptions.js +1 -0
  29. package/lib/dialog.js +24 -137
  30. package/lib/divider.js +29 -64
  31. package/lib/drawer.js +24 -139
  32. package/lib/dropdown-item.js +27 -45
  33. package/lib/dropdown-menu.js +24 -51
  34. package/lib/dropdown.js +21 -20
  35. package/lib/empty.js +24 -61
  36. package/lib/footer.js +24 -34
  37. package/lib/form-item.js +42 -128
  38. package/lib/form.js +27 -40
  39. package/lib/header.js +24 -34
  40. package/lib/icon.js +24 -29
  41. package/lib/image.js +36 -220
  42. package/lib/index.js +1 -1
  43. package/lib/infinite-scroll.js +1 -0
  44. package/lib/input-number.js +30 -163
  45. package/lib/input.js +42 -274
  46. package/lib/iov-design.common.js +1635 -11132
  47. package/lib/link.js +31 -56
  48. package/lib/loading.js +24 -77
  49. package/lib/locale/format.js +10 -10
  50. package/lib/main.js +24 -29
  51. package/lib/menu-item-group.js +24 -40
  52. package/lib/menu-item.js +27 -83
  53. package/lib/menu.js +21 -20
  54. package/lib/message-box.js +24 -321
  55. package/lib/message.js +30 -82
  56. package/lib/mixins/migrating.js +20 -20
  57. package/lib/notification.js +24 -109
  58. package/lib/option-group.js +24 -50
  59. package/lib/option.js +27 -76
  60. package/lib/page-header.js +24 -56
  61. package/lib/pagination.js +24 -97
  62. package/lib/popconfirm.js +24 -97
  63. package/lib/popover.js +24 -89
  64. package/lib/progress.js +30 -133
  65. package/lib/radio-button.js +29 -111
  66. package/lib/radio-group.js +24 -39
  67. package/lib/radio.js +36 -152
  68. package/lib/rate.js +24 -94
  69. package/lib/result.js +72 -187
  70. package/lib/row.js +1 -0
  71. package/lib/scrollbar.js +1 -0
  72. package/lib/select.js +48 -637
  73. package/lib/skeleton-item.js +36 -68
  74. package/lib/skeleton.js +28 -70
  75. package/lib/slider.js +36 -267
  76. package/lib/spinner.js +24 -51
  77. package/lib/statistic.js +24 -76
  78. package/lib/step.js +29 -118
  79. package/lib/steps.js +27 -40
  80. package/lib/submenu.js +21 -20
  81. package/lib/switch.js +24 -130
  82. package/lib/tab-pane.js +24 -52
  83. package/lib/table-column.js +1 -0
  84. package/lib/table.js +93 -633
  85. package/lib/tabs.js +34 -49
  86. package/lib/tag.js +21 -20
  87. package/lib/theme-chalk/autocomplete.css +1 -1
  88. package/lib/theme-chalk/base.css +1 -1
  89. package/lib/theme-chalk/cascader.css +1 -1
  90. package/lib/theme-chalk/date-picker.css +1 -1
  91. package/lib/theme-chalk/index.css +1 -1
  92. package/lib/theme-chalk/input-number.css +1 -1
  93. package/lib/theme-chalk/input.css +1 -1
  94. package/lib/theme-chalk/iovfont.css +1 -1
  95. package/lib/theme-chalk/link.css +1 -1
  96. package/lib/theme-chalk/message-box.css +1 -1
  97. package/lib/theme-chalk/pagination.css +1 -1
  98. package/lib/theme-chalk/select.css +1 -1
  99. package/lib/theme-chalk/slider.css +1 -1
  100. package/lib/theme-chalk/time-picker.css +1 -1
  101. package/lib/theme-chalk/transfer.css +1 -1
  102. package/lib/time-picker.js +58 -820
  103. package/lib/time-select.js +42 -303
  104. package/lib/timeline-item.js +29 -75
  105. package/lib/timeline.js +21 -20
  106. package/lib/tooltip.js +1 -0
  107. package/lib/transfer.js +36 -299
  108. package/lib/tree.js +54 -243
  109. package/lib/upload.js +86 -654
  110. package/lib/utils/clickoutside.js +7 -7
  111. package/lib/utils/vue-popper.js +7 -7
  112. package/package.json +154 -154
  113. package/packages/autocomplete/src/autocomplete-suggestions.vue +76 -76
  114. package/packages/autocomplete/src/autocomplete.vue +285 -285
  115. package/packages/button/src/button.vue +90 -90
  116. package/packages/calendar/src/date-table.vue +200 -200
  117. package/packages/calendar/src/main.vue +280 -280
  118. package/packages/carousel/src/item.vue +138 -138
  119. package/packages/carousel/src/main.vue +315 -315
  120. package/packages/cascader/src/cascader.vue +776 -776
  121. package/packages/cascader-panel/src/cascader-menu.vue +138 -138
  122. package/packages/cascader-panel/src/cascader-node.vue +246 -246
  123. package/packages/cascader-panel/src/cascader-panel.vue +391 -391
  124. package/packages/cascader-panel/src/node.js +166 -166
  125. package/packages/cascader-panel/src/store.js +58 -58
  126. package/packages/checkbox/src/checkbox-button.vue +199 -199
  127. package/packages/checkbox/src/checkbox-group.vue +49 -49
  128. package/packages/checkbox/src/checkbox.vue +225 -225
  129. package/packages/collapse/src/collapse-item.vue +114 -114
  130. package/packages/color-picker/src/components/picker-dropdown.vue +121 -121
  131. package/packages/color-picker/src/main.vue +188 -188
  132. package/packages/date-picker/src/basic/date-table.vue +441 -441
  133. package/packages/date-picker/src/basic/month-table.vue +269 -269
  134. package/packages/date-picker/src/basic/time-spinner.vue +304 -304
  135. package/packages/date-picker/src/basic/year-table.vue +111 -111
  136. package/packages/date-picker/src/panel/date-range.vue +680 -680
  137. package/packages/date-picker/src/panel/date.vue +609 -609
  138. package/packages/date-picker/src/panel/month-range.vue +289 -289
  139. package/packages/date-picker/src/panel/time-range.vue +248 -248
  140. package/packages/date-picker/src/panel/time-select.vue +178 -178
  141. package/packages/date-picker/src/panel/time.vue +186 -186
  142. package/packages/date-picker/src/picker.vue +967 -967
  143. package/packages/descriptions/src/index.js +180 -180
  144. package/packages/dialog/src/component.vue +262 -262
  145. package/packages/drawer/src/main.vue +205 -205
  146. package/packages/dropdown/src/dropdown-item.vue +37 -37
  147. package/packages/dropdown/src/dropdown-menu.vue +63 -63
  148. package/packages/dropdown/src/dropdown.vue +293 -293
  149. package/packages/empty/src/index.vue +70 -70
  150. package/packages/form/src/form-item.vue +324 -324
  151. package/packages/form/src/form.vue +182 -182
  152. package/packages/image/src/image-viewer.vue +330 -330
  153. package/packages/image/src/main.vue +249 -249
  154. package/packages/infinite-scroll/src/main.js +150 -150
  155. package/packages/input/src/input.vue +477 -477
  156. package/packages/input-number/src/input-number.vue +283 -283
  157. package/packages/loading/src/directive.js +133 -133
  158. package/packages/loading/src/index.js +106 -106
  159. package/packages/menu/src/menu-item.vue +112 -112
  160. package/packages/menu/src/menu.vue +325 -325
  161. package/packages/menu/src/submenu.vue +349 -349
  162. package/packages/message/src/main.js +91 -91
  163. package/packages/message-box/src/main.js +216 -216
  164. package/packages/message-box/src/main.vue +333 -333
  165. package/packages/notification/src/main.js +94 -94
  166. package/packages/page-header/src/main.vue +30 -30
  167. package/packages/pagination/src/pagination.js +390 -390
  168. package/packages/popconfirm/src/main.vue +104 -104
  169. package/packages/popover/src/main.vue +239 -239
  170. package/packages/radio/src/radio-button.vue +115 -115
  171. package/packages/radio/src/radio-group.vue +115 -115
  172. package/packages/radio/src/radio.vue +148 -148
  173. package/packages/rate/src/main.vue +348 -348
  174. package/packages/scrollbar/src/bar.js +92 -92
  175. package/packages/scrollbar/src/main.js +130 -130
  176. package/packages/select/src/option-group.vue +60 -60
  177. package/packages/select/src/option.vue +171 -171
  178. package/packages/select/src/select-dropdown.vue +74 -74
  179. package/packages/select/src/select.vue +979 -979
  180. package/packages/slider/src/button.vue +238 -238
  181. package/packages/slider/src/main.vue +427 -427
  182. package/packages/statistic/src/main.vue +204 -204
  183. package/packages/steps/src/steps.vue +68 -68
  184. package/packages/switch/src/component.vue +182 -182
  185. package/packages/table/src/config.js +153 -153
  186. package/packages/table/src/filter-panel.vue +194 -194
  187. package/packages/table/src/store/current.js +76 -76
  188. package/packages/table/src/store/helper.js +41 -41
  189. package/packages/table/src/store/index.js +147 -147
  190. package/packages/table/src/store/watcher.js +502 -502
  191. package/packages/table/src/table-body.js +469 -469
  192. package/packages/table/src/table-column.js +328 -328
  193. package/packages/table/src/table-header.js +571 -571
  194. package/packages/table/src/table-layout.js +249 -249
  195. package/packages/table/src/table-row.js +101 -101
  196. package/packages/table/src/table.vue +740 -740
  197. package/packages/table/src/util.js +273 -273
  198. package/packages/tabs/src/tab-bar.vue +57 -57
  199. package/packages/tabs/src/tab-nav.vue +294 -294
  200. package/packages/tabs/src/tabs.vue +201 -201
  201. package/packages/theme-chalk/src/button.scss +416 -416
  202. package/packages/theme-chalk/src/cascader.scss +252 -252
  203. package/packages/theme-chalk/src/checkbox.scss +419 -419
  204. package/packages/theme-chalk/src/common/var.scss +795 -795
  205. package/packages/theme-chalk/src/form.scss +201 -201
  206. package/packages/theme-chalk/src/input.scss +591 -591
  207. package/packages/theme-chalk/src/iovfont.scss +818 -803
  208. package/packages/theme-chalk/src/link.scss +8 -8
  209. package/packages/theme-chalk/src/message-box.scss +207 -207
  210. package/packages/theme-chalk/src/mixins/_button.scss +136 -136
  211. package/packages/theme-chalk/src/mixins/mixins.scss +190 -190
  212. package/packages/theme-chalk/src/radio-button.scss +115 -115
  213. package/packages/theme-chalk/src/select.scss +270 -270
  214. package/packages/theme-chalk/src/tabs.scss +755 -755
  215. package/packages/theme-chalk/src/upload.scss +568 -568
  216. package/packages/tooltip/src/main.js +242 -242
  217. package/packages/transfer/src/main.vue +231 -231
  218. package/packages/transfer/src/transfer-panel.vue +251 -251
  219. package/packages/tree/src/model/node.js +484 -484
  220. package/packages/tree/src/tree-node.vue +279 -279
  221. package/packages/tree/src/tree.vue +496 -496
  222. package/packages/upload/src/index.vue +420 -420
  223. package/packages/upload/src/upload-file.vue +98 -98
  224. package/packages/upload/src/upload-list.vue +115 -115
  225. package/packages/upload/src/upload-picture.vue +98 -98
  226. package/packages/upload/src/upload.vue +231 -231
  227. package/packages/upload/src/utils.js +31 -31
  228. package/src/directives/repeat-click.js +26 -26
  229. package/src/index.js +259 -259
  230. package/src/locale/format.js +46 -46
  231. package/src/locale/index.js +48 -48
  232. package/src/locale/lang/lo-LA.js +126 -126
  233. package/src/mixins/locale.js +9 -9
  234. package/src/mixins/migrating.js +54 -54
  235. package/src/transitions/collapse-transition.js +77 -77
  236. package/src/utils/clickoutside.js +76 -76
  237. package/src/utils/date-util.js +282 -282
  238. package/src/utils/popup/index.js +218 -218
  239. package/src/utils/popup/popup-manager.js +194 -194
  240. package/src/utils/util.js +245 -245
  241. package/src/utils/vdom.js +5 -5
  242. package/src/utils/vue-popper.js +198 -198
package/README.md CHANGED
@@ -1,148 +1,148 @@
1
- <p align="center">
2
- <img src="https://cdn.rawgit.com/ElemeFE/element/dev/element_logo.svg">
3
- </p>
4
-
5
- <p align="center">
6
- <a href="https://travis-ci.org/ElemeFE/element">
7
- <img src="https://travis-ci.org/ElemeFE/element.svg?branch=master">
8
- </a>
9
- <a href="https://coveralls.io/github/ElemeFE/element?branch=master">
10
- <img src="https://coveralls.io/repos/github/ElemeFE/element/badge.svg?branch=master">
11
- </a>
12
- <a href="https://cdnjs.com/libraries/element-ui">
13
- <img src="https://img.shields.io/cdnjs/v/element-ui.svg">
14
- </a>
15
- <a href="https://www.npmjs.org/package/element-ui">
16
- <img src="https://img.shields.io/npm/v/element-ui.svg">
17
- </a>
18
- <a href="https://npmcharts.com/compare/element-ui?minimal=true">
19
- <img src="http://img.shields.io/npm/dm/element-ui.svg">
20
- </a>
21
- <br>
22
- <a href="http://img.badgesize.io/https://unpkg.com/element-ui/lib/index.js?compression=gzip&label=gzip%20size:%20JS">
23
- <img src="http://img.badgesize.io/https://unpkg.com/element-ui/lib/index.js?compression=gzip&label=gzip%20size:%20JS">
24
- </a>
25
- <a href="http://img.badgesize.io/https://unpkg.com/element-ui/lib/theme-chalk/index.css?compression=gzip&label=gzip%20size:%20CSS">
26
- <img src="http://img.badgesize.io/https://unpkg.com/element-ui/lib/theme-chalk/index.css?compression=gzip&label=gzip%20size:%20CSS">
27
- </a>
28
- <a href="#backers">
29
- <img src="https://opencollective.com/element/backers/badge.svg">
30
- </a>
31
- <a href="#sponsors">
32
- <img src="https://opencollective.com/element/sponsors/badge.svg">
33
- </a>
34
- <a href="LICENSE">
35
- <img src="https://img.shields.io/badge/License-MIT-yellow.svg">
36
- </a>
37
- </p>
38
-
39
- > A Vue.js 2.0 UI Toolkit for Web.
40
-
41
- Element will stay with Vue 2.x
42
-
43
- For Vue 3.0, we recommend using [Element Plus](https://github.com/element-plus/element-plus)(Element Plus is a community develop project)
44
-
45
- For MiniProgram development, we recommend using [MorJS](https://github.com/eleme/morjs)
46
-
47
- ## Links
48
- - Homepage and documentation
49
- - [International users](http://element.eleme.io/#/en-US)
50
- - [Chinese users](http://element.eleme.io/#/zh-CN)
51
- - [Spanish users](http://element.eleme.io/#/es)
52
- - [French users](http://element.eleme.io/#/fr-FR)
53
- - [awesome-element](https://github.com/ElementUI/awesome-element)
54
- - [FAQ](./FAQ.md)
55
- - [Vue.js 3.0 migration](https://github.com/element-plus/element-plus)
56
- - [Customize theme](http://element.eleme.io/#/en-US/component/custom-theme)
57
- - [Preview and generate theme online](https://elementui.github.io/theme-chalk-preview)
58
- - [Element for React](https://github.com/elemefe/element-react)
59
- - [Element for Angular](https://github.com/ElemeFE/element-angular)
60
- - [Atom helper](https://github.com/ElemeFE/element-helper)
61
- - [Visual Studio Code helper](https://github.com/ElemeFE/vscode-element-helper)
62
- - Starter kit
63
- - [element-starter](https://github.com/ElementUI/element-starter)
64
- - [element-in-laravel-starter](https://github.com/ElementUI/element-in-laravel-starter)
65
- - [Design resources](https://github.com/ElementUI/Resources)
66
- - Gitter
67
- - [International users](https://gitter.im/element-en/Lobby)
68
- - [Chinese users](https://gitter.im/ElemeFE/element)
69
-
70
- ## Install
71
- ```shell
72
- npm install iov-design -S
73
- ```
74
-
75
- ## Quick Start
76
- ``` javascript
77
- import Vue from 'vue'
78
- import Element from 'iov-design'
79
-
80
- Vue.use(Element)
81
-
82
- // or
83
- import {
84
- Select,
85
- Button
86
- // ...
87
- } from 'iov-design'
88
-
89
- Vue.component(Select.name, Select)
90
- Vue.component(Button.name, Button)
91
- ```
92
- For more information, please refer to [Quick Start](http://element.eleme.io/#/en-US/component/quickstart) in our documentation.
93
-
94
- ## Browser Support
95
- Modern browsers and Internet Explorer 10+.
96
-
97
- ## Development
98
- Skip this part if you just want to use Element.
99
-
100
- 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) | [Español](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.es.md) | [Français](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.fr-FR.md)) to see how to run this project.
101
-
102
- ## Changelog
103
- Detailed changes for each release are documented in the [release notes](https://github.com/ElemeFE/element/releases).
104
-
105
- ## FAQ
106
- 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.
107
-
108
- ## Contribution
109
- 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) | [Español](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.es.md) | [Français](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.fr-FR.md)) before making a pull request.
110
-
111
- ## Special Thanks
112
- English documentation is brought to you by SwiftGG Translation Team:
113
- - [raychenfj](https://github.com/raychenfj)
114
- - [kevin](http://thekevin.cn/)
115
- - [曾小涛](https://github.com/zengxiaotao)
116
- - [湾仔王二](https://github.com/wanzaiwanger)
117
- - [BlooDLine](http://www.ibloodline.com/)
118
- - [陈铭嘉](https://chenmingjia.github.io/)
119
- - [千叶知风](http://mpc6.com/)
120
- - [梁杰](http://numbbbbb.com)
121
- - [Changing](https://github.com/sunzhuo11)
122
- - [mmoaay](https://github.com/mmoaay)
123
-
124
- Spanish documentation is made possible by these community developers:
125
- - [adavie1](https://github.com/adavie1)
126
- - [carmencitaqiu](https://github.com/carmencitaqiu)
127
- - [coderdiaz](https://github.com/coderdiaz)
128
- - [fedegar33](https://github.com/fedegar33)
129
- - [Gonzalo2310](https://github.com/Gonzalo2310)
130
- - [lesterbx](https://github.com/lesterbx)
131
- - [ProgramerGuy](https://github.com/ProgramerGuy)
132
- - [SantiagoGdaR](https://github.com/SantiagoGdaR)
133
- - [sigfriedCub1990](https://github.com/sigfriedCub1990)
134
- - [thechosenjuan](https://github.com/thechosenjuan)
135
-
136
- French documentation is made possible by these community developers:
137
- - [smalesys](https://github.com/smalesys)
138
- - [blombard](https://github.com/blombard)
139
-
140
- ## Join Discussion Group
141
-
142
- Scan the QR code using [Dingtalk App](https://www.dingtalk.com/) to join in discussion group :
143
-
144
- <img alt="Join Discusion Group" src="https://user-images.githubusercontent.com/17680888/93177882-0ae92d80-f766-11ea-870d-3fa2d7f06454.png" width="300">
145
-
146
-
147
- ## LICENSE
148
- [MIT](LICENSE)
1
+ <p align="center">
2
+ <img src="https://cdn.rawgit.com/ElemeFE/element/dev/element_logo.svg">
3
+ </p>
4
+
5
+ <p align="center">
6
+ <a href="https://travis-ci.org/ElemeFE/element">
7
+ <img src="https://travis-ci.org/ElemeFE/element.svg?branch=master">
8
+ </a>
9
+ <a href="https://coveralls.io/github/ElemeFE/element?branch=master">
10
+ <img src="https://coveralls.io/repos/github/ElemeFE/element/badge.svg?branch=master">
11
+ </a>
12
+ <a href="https://cdnjs.com/libraries/element-ui">
13
+ <img src="https://img.shields.io/cdnjs/v/element-ui.svg">
14
+ </a>
15
+ <a href="https://www.npmjs.org/package/element-ui">
16
+ <img src="https://img.shields.io/npm/v/element-ui.svg">
17
+ </a>
18
+ <a href="https://npmcharts.com/compare/element-ui?minimal=true">
19
+ <img src="http://img.shields.io/npm/dm/element-ui.svg">
20
+ </a>
21
+ <br>
22
+ <a href="http://img.badgesize.io/https://unpkg.com/element-ui/lib/index.js?compression=gzip&label=gzip%20size:%20JS">
23
+ <img src="http://img.badgesize.io/https://unpkg.com/element-ui/lib/index.js?compression=gzip&label=gzip%20size:%20JS">
24
+ </a>
25
+ <a href="http://img.badgesize.io/https://unpkg.com/element-ui/lib/theme-chalk/index.css?compression=gzip&label=gzip%20size:%20CSS">
26
+ <img src="http://img.badgesize.io/https://unpkg.com/element-ui/lib/theme-chalk/index.css?compression=gzip&label=gzip%20size:%20CSS">
27
+ </a>
28
+ <a href="#backers">
29
+ <img src="https://opencollective.com/element/backers/badge.svg">
30
+ </a>
31
+ <a href="#sponsors">
32
+ <img src="https://opencollective.com/element/sponsors/badge.svg">
33
+ </a>
34
+ <a href="LICENSE">
35
+ <img src="https://img.shields.io/badge/License-MIT-yellow.svg">
36
+ </a>
37
+ </p>
38
+
39
+ > A Vue.js 2.0 UI Toolkit for Web.
40
+
41
+ Element will stay with Vue 2.x
42
+
43
+ For Vue 3.0, we recommend using [Element Plus](https://github.com/element-plus/element-plus)(Element Plus is a community develop project)
44
+
45
+ For MiniProgram development, we recommend using [MorJS](https://github.com/eleme/morjs)
46
+
47
+ ## Links
48
+ - Homepage and documentation
49
+ - [International users](http://element.eleme.io/#/en-US)
50
+ - [Chinese users](http://element.eleme.io/#/zh-CN)
51
+ - [Spanish users](http://element.eleme.io/#/es)
52
+ - [French users](http://element.eleme.io/#/fr-FR)
53
+ - [awesome-element](https://github.com/ElementUI/awesome-element)
54
+ - [FAQ](./FAQ.md)
55
+ - [Vue.js 3.0 migration](https://github.com/element-plus/element-plus)
56
+ - [Customize theme](http://element.eleme.io/#/en-US/component/custom-theme)
57
+ - [Preview and generate theme online](https://elementui.github.io/theme-chalk-preview)
58
+ - [Element for React](https://github.com/elemefe/element-react)
59
+ - [Element for Angular](https://github.com/ElemeFE/element-angular)
60
+ - [Atom helper](https://github.com/ElemeFE/element-helper)
61
+ - [Visual Studio Code helper](https://github.com/ElemeFE/vscode-element-helper)
62
+ - Starter kit
63
+ - [element-starter](https://github.com/ElementUI/element-starter)
64
+ - [element-in-laravel-starter](https://github.com/ElementUI/element-in-laravel-starter)
65
+ - [Design resources](https://github.com/ElementUI/Resources)
66
+ - Gitter
67
+ - [International users](https://gitter.im/element-en/Lobby)
68
+ - [Chinese users](https://gitter.im/ElemeFE/element)
69
+
70
+ ## Install
71
+ ```shell
72
+ npm install iov-design -S
73
+ ```
74
+
75
+ ## Quick Start
76
+ ``` javascript
77
+ import Vue from 'vue'
78
+ import Element from 'iov-design'
79
+
80
+ Vue.use(Element)
81
+
82
+ // or
83
+ import {
84
+ Select,
85
+ Button
86
+ // ...
87
+ } from 'iov-design'
88
+
89
+ Vue.component(Select.name, Select)
90
+ Vue.component(Button.name, Button)
91
+ ```
92
+ For more information, please refer to [Quick Start](http://element.eleme.io/#/en-US/component/quickstart) in our documentation.
93
+
94
+ ## Browser Support
95
+ Modern browsers and Internet Explorer 10+.
96
+
97
+ ## Development
98
+ Skip this part if you just want to use Element.
99
+
100
+ 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) | [Español](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.es.md) | [Français](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.fr-FR.md)) to see how to run this project.
101
+
102
+ ## Changelog
103
+ Detailed changes for each release are documented in the [release notes](https://github.com/ElemeFE/element/releases).
104
+
105
+ ## FAQ
106
+ 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.
107
+
108
+ ## Contribution
109
+ 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) | [Español](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.es.md) | [Français](https://github.com/ElemeFE/element/blob/master/.github/CONTRIBUTING.fr-FR.md)) before making a pull request.
110
+
111
+ ## Special Thanks
112
+ English documentation is brought to you by SwiftGG Translation Team:
113
+ - [raychenfj](https://github.com/raychenfj)
114
+ - [kevin](http://thekevin.cn/)
115
+ - [曾小涛](https://github.com/zengxiaotao)
116
+ - [湾仔王二](https://github.com/wanzaiwanger)
117
+ - [BlooDLine](http://www.ibloodline.com/)
118
+ - [陈铭嘉](https://chenmingjia.github.io/)
119
+ - [千叶知风](http://mpc6.com/)
120
+ - [梁杰](http://numbbbbb.com)
121
+ - [Changing](https://github.com/sunzhuo11)
122
+ - [mmoaay](https://github.com/mmoaay)
123
+
124
+ Spanish documentation is made possible by these community developers:
125
+ - [adavie1](https://github.com/adavie1)
126
+ - [carmencitaqiu](https://github.com/carmencitaqiu)
127
+ - [coderdiaz](https://github.com/coderdiaz)
128
+ - [fedegar33](https://github.com/fedegar33)
129
+ - [Gonzalo2310](https://github.com/Gonzalo2310)
130
+ - [lesterbx](https://github.com/lesterbx)
131
+ - [ProgramerGuy](https://github.com/ProgramerGuy)
132
+ - [SantiagoGdaR](https://github.com/SantiagoGdaR)
133
+ - [sigfriedCub1990](https://github.com/sigfriedCub1990)
134
+ - [thechosenjuan](https://github.com/thechosenjuan)
135
+
136
+ French documentation is made possible by these community developers:
137
+ - [smalesys](https://github.com/smalesys)
138
+ - [blombard](https://github.com/blombard)
139
+
140
+ ## Join Discussion Group
141
+
142
+ Scan the QR code using [Dingtalk App](https://www.dingtalk.com/) to join in discussion group :
143
+
144
+ <img alt="Join Discusion Group" src="https://user-images.githubusercontent.com/17680888/93177882-0ae92d80-f766-11ea-870d-3fa2d7f06454.png" width="300">
145
+
146
+
147
+ ## LICENSE
148
+ [MIT](LICENSE)
package/lib/alert.js CHANGED
@@ -98,20 +98,19 @@ module.exports =
98
98
  // This module is a runtime utility for cleaner component module output and will
99
99
  // be included in the final webpack user bundle.
100
100
 
101
- function normalizeComponent (
101
+ function normalizeComponent(
102
102
  scriptExports,
103
103
  render,
104
104
  staticRenderFns,
105
105
  functionalTemplate,
106
106
  injectStyles,
107
107
  scopeId,
108
- moduleIdentifier, /* server only */
108
+ moduleIdentifier /* server only */,
109
109
  shadowMode /* vue-cli only */
110
110
  ) {
111
111
  // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
115
114
 
116
115
  // render functions
117
116
  if (render) {
@@ -131,7 +130,8 @@ function normalizeComponent (
131
130
  }
132
131
 
133
132
  var hook
134
- if (moduleIdentifier) { // server build
133
+ if (moduleIdentifier) {
134
+ // server build
135
135
  hook = function (context) {
136
136
  // 2.3 injection
137
137
  context =
@@ -156,7 +156,12 @@ function normalizeComponent (
156
156
  options._ssrRegister = hook
157
157
  } else if (injectStyles) {
158
158
  hook = shadowMode
159
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
160
165
  : injectStyles
161
166
  }
162
167
 
@@ -165,18 +170,16 @@ function normalizeComponent (
165
170
  // for template-only hot-reload because in that case the render fn doesn't
166
171
  // go through the normalizer
167
172
  options._injectStyles = hook
168
- // register for functioal component in vue file
173
+ // register for functional component in vue file
169
174
  var originalRender = options.render
170
- options.render = function renderWithStyleInjection (h, context) {
175
+ options.render = function renderWithStyleInjection(h, context) {
171
176
  hook.call(context)
172
177
  return originalRender(h, context)
173
178
  }
174
179
  } else {
175
180
  // inject component registration as beforeCreate hook
176
181
  var existing = options.beforeCreate
177
- options.beforeCreate = existing
178
- ? [].concat(existing, hook)
179
- : [hook]
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
180
183
  }
181
184
  }
182
185
 
@@ -193,98 +196,17 @@ function normalizeComponent (
193
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
194
197
 
195
198
  "use strict";
199
+ // ESM COMPAT FLAG
196
200
  __webpack_require__.r(__webpack_exports__);
197
201
 
198
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/alert/src/main.vue?vue&type=template&id=6e53341b&
199
- var render = function() {
200
- var _vm = this
201
- var _h = _vm.$createElement
202
- var _c = _vm._self._c || _h
203
- return _c("transition", { attrs: { name: "el-alert-fade" } }, [
204
- _c(
205
- "div",
206
- {
207
- directives: [
208
- {
209
- name: "show",
210
- rawName: "v-show",
211
- value: _vm.visible,
212
- expression: "visible"
213
- }
214
- ],
215
- staticClass: "el-alert",
216
- class: [
217
- _vm.typeClass,
218
- _vm.center ? "is-center" : "",
219
- "is-" + _vm.effect
220
- ],
221
- attrs: { role: "alert" }
222
- },
223
- [
224
- _vm.showIcon
225
- ? _c("i", {
226
- staticClass: "el-alert__icon",
227
- class: [_vm.iconClass, _vm.isBigIcon]
228
- })
229
- : _vm._e(),
230
- _c("div", { staticClass: "el-alert__content" }, [
231
- _vm.title || _vm.$slots.title
232
- ? _c(
233
- "span",
234
- { staticClass: "el-alert__title", class: [_vm.isBoldTitle] },
235
- [_vm._t("title", [_vm._v(_vm._s(_vm.title))])],
236
- 2
237
- )
238
- : _vm._e(),
239
- _vm.$slots.default && !_vm.description
240
- ? _c(
241
- "p",
242
- { staticClass: "el-alert__description" },
243
- [_vm._t("default")],
244
- 2
245
- )
246
- : _vm._e(),
247
- _vm.description && !_vm.$slots.default
248
- ? _c("p", { staticClass: "el-alert__description" }, [
249
- _vm._v(_vm._s(_vm.description))
250
- ])
251
- : _vm._e(),
252
- _c(
253
- "i",
254
- {
255
- directives: [
256
- {
257
- name: "show",
258
- rawName: "v-show",
259
- value: _vm.closable,
260
- expression: "closable"
261
- }
262
- ],
263
- staticClass: "el-alert__closebtn",
264
- class: {
265
- "is-customed": _vm.closeText !== "",
266
- "iov-icon-close": _vm.closeText === ""
267
- },
268
- on: {
269
- click: function($event) {
270
- _vm.close()
271
- }
272
- }
273
- },
274
- [_vm._v(_vm._s(_vm.closeText))]
275
- )
276
- ])
277
- ]
278
- )
279
- ])
280
- }
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/alert/src/main.vue?vue&type=template&id=65c81f78
203
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{"name":"el-alert-fade"}},[_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.visible),expression:"visible"}],staticClass:"el-alert",class:[_vm.typeClass, _vm.center ? 'is-center' : '', 'is-' + _vm.effect],attrs:{"role":"alert"}},[(_vm.showIcon)?_c('i',{staticClass:"el-alert__icon",class:[ _vm.iconClass, _vm.isBigIcon ]}):_vm._e(),_c('div',{staticClass:"el-alert__content"},[(_vm.title || _vm.$slots.title)?_c('span',{staticClass:"el-alert__title",class:[ _vm.isBoldTitle ]},[_vm._t("title",[_vm._v(_vm._s(_vm.title))])],2):_vm._e(),(_vm.$slots.default && !_vm.description)?_c('p',{staticClass:"el-alert__description"},[_vm._t("default")],2):_vm._e(),(_vm.description && !_vm.$slots.default)?_c('p',{staticClass:"el-alert__description"},[_vm._v(_vm._s(_vm.description))]):_vm._e(),_c('i',{directives:[{name:"show",rawName:"v-show",value:(_vm.closable),expression:"closable"}],staticClass:"el-alert__closebtn",class:{ 'is-customed': _vm.closeText !== '', 'iov-icon-close': _vm.closeText === '' },on:{"click":function($event){_vm.close()}}},[_vm._v(_vm._s(_vm.closeText))])])])])}
281
204
  var staticRenderFns = []
282
205
  render._withStripped = true
283
206
 
207
+ // CONCATENATED MODULE: ./packages/alert/src/main.vue?vue&type=template&id=65c81f78
284
208
 
285
- // CONCATENATED MODULE: ./packages/alert/src/main.vue?vue&type=template&id=6e53341b&
286
-
287
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/alert/src/main.vue?vue&type=script&lang=js&
209
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/alert/src/main.vue?vue&type=script&lang=js
288
210
  //
289
211
  //
290
212
  //
@@ -312,7 +234,7 @@ var TYPE_CLASSES_MAP = {
312
234
  'warning': 'iov-icon-fill-warning',
313
235
  'error': 'iov-icon-fill-fail'
314
236
  };
315
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
237
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
316
238
  name: 'ElAlert',
317
239
 
318
240
  props: {
@@ -376,8 +298,8 @@ var TYPE_CLASSES_MAP = {
376
298
  }
377
299
  }
378
300
  });
379
- // CONCATENATED MODULE: ./packages/alert/src/main.vue?vue&type=script&lang=js&
380
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
301
+ // CONCATENATED MODULE: ./packages/alert/src/main.vue?vue&type=script&lang=js
302
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
381
303
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
382
304
  var componentNormalizer = __webpack_require__(0);
383
305
 
@@ -390,7 +312,7 @@ var componentNormalizer = __webpack_require__(0);
390
312
  /* normalize component */
391
313
 
392
314
  var component = Object(componentNormalizer["a" /* default */])(
393
- src_mainvue_type_script_lang_js_,
315
+ src_mainvue_type_script_lang_js,
394
316
  render,
395
317
  staticRenderFns,
396
318
  false,
@@ -400,9 +322,6 @@ var component = Object(componentNormalizer["a" /* default */])(
400
322
 
401
323
  )
402
324
 
403
- /* hot reload */
404
- if (false) { var api; }
405
- component.options.__file = "packages/alert/src/main.vue"
406
325
  /* harmony default export */ var main = (component.exports);
407
326
  // CONCATENATED MODULE: ./packages/alert/index.js
408
327
 
package/lib/aside.js CHANGED
@@ -98,20 +98,19 @@ module.exports =
98
98
  // This module is a runtime utility for cleaner component module output and will
99
99
  // be included in the final webpack user bundle.
100
100
 
101
- function normalizeComponent (
101
+ function normalizeComponent(
102
102
  scriptExports,
103
103
  render,
104
104
  staticRenderFns,
105
105
  functionalTemplate,
106
106
  injectStyles,
107
107
  scopeId,
108
- moduleIdentifier, /* server only */
108
+ moduleIdentifier /* server only */,
109
109
  shadowMode /* vue-cli only */
110
110
  ) {
111
111
  // Vue.extend constructor export interop
112
- var options = typeof scriptExports === 'function'
113
- ? scriptExports.options
114
- : scriptExports
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
115
114
 
116
115
  // render functions
117
116
  if (render) {
@@ -131,7 +130,8 @@ function normalizeComponent (
131
130
  }
132
131
 
133
132
  var hook
134
- if (moduleIdentifier) { // server build
133
+ if (moduleIdentifier) {
134
+ // server build
135
135
  hook = function (context) {
136
136
  // 2.3 injection
137
137
  context =
@@ -156,7 +156,12 @@ function normalizeComponent (
156
156
  options._ssrRegister = hook
157
157
  } else if (injectStyles) {
158
158
  hook = shadowMode
159
- ? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
160
165
  : injectStyles
161
166
  }
162
167
 
@@ -165,18 +170,16 @@ function normalizeComponent (
165
170
  // for template-only hot-reload because in that case the render fn doesn't
166
171
  // go through the normalizer
167
172
  options._injectStyles = hook
168
- // register for functioal component in vue file
173
+ // register for functional component in vue file
169
174
  var originalRender = options.render
170
- options.render = function renderWithStyleInjection (h, context) {
175
+ options.render = function renderWithStyleInjection(h, context) {
171
176
  hook.call(context)
172
177
  return originalRender(h, context)
173
178
  }
174
179
  } else {
175
180
  // inject component registration as beforeCreate hook
176
181
  var existing = options.beforeCreate
177
- options.beforeCreate = existing
178
- ? [].concat(existing, hook)
179
- : [hook]
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
180
183
  }
181
184
  }
182
185
 
@@ -193,27 +196,17 @@ function normalizeComponent (
193
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
194
197
 
195
198
  "use strict";
199
+ // ESM COMPAT FLAG
196
200
  __webpack_require__.r(__webpack_exports__);
197
201
 
198
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/aside/src/main.vue?vue&type=template&id=03411dbf&
199
- var render = function() {
200
- var _vm = this
201
- var _h = _vm.$createElement
202
- var _c = _vm._self._c || _h
203
- return _c(
204
- "aside",
205
- { staticClass: "el-aside", style: { width: _vm.width } },
206
- [_vm._t("default")],
207
- 2
208
- )
209
- }
202
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/aside/src/main.vue?vue&type=template&id=6f3c822c
203
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('aside',{staticClass:"el-aside",style:({ width: _vm.width })},[_vm._t("default")],2)}
210
204
  var staticRenderFns = []
211
205
  render._withStripped = true
212
206
 
207
+ // CONCATENATED MODULE: ./packages/aside/src/main.vue?vue&type=template&id=6f3c822c
213
208
 
214
- // CONCATENATED MODULE: ./packages/aside/src/main.vue?vue&type=template&id=03411dbf&
215
-
216
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/aside/src/main.vue?vue&type=script&lang=js&
209
+ // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/aside/src/main.vue?vue&type=script&lang=js
217
210
  //
218
211
  //
219
212
  //
@@ -221,7 +214,7 @@ render._withStripped = true
221
214
  //
222
215
  //
223
216
 
224
- /* harmony default export */ var mainvue_type_script_lang_js_ = ({
217
+ /* harmony default export */ var mainvue_type_script_lang_js = ({
225
218
  name: 'ElAside',
226
219
 
227
220
  componentName: 'ElAside',
@@ -233,8 +226,8 @@ render._withStripped = true
233
226
  }
234
227
  }
235
228
  });
236
- // CONCATENATED MODULE: ./packages/aside/src/main.vue?vue&type=script&lang=js&
237
- /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
229
+ // CONCATENATED MODULE: ./packages/aside/src/main.vue?vue&type=script&lang=js
230
+ /* harmony default export */ var src_mainvue_type_script_lang_js = (mainvue_type_script_lang_js);
238
231
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
239
232
  var componentNormalizer = __webpack_require__(0);
240
233
 
@@ -247,7 +240,7 @@ var componentNormalizer = __webpack_require__(0);
247
240
  /* normalize component */
248
241
 
249
242
  var component = Object(componentNormalizer["a" /* default */])(
250
- src_mainvue_type_script_lang_js_,
243
+ src_mainvue_type_script_lang_js,
251
244
  render,
252
245
  staticRenderFns,
253
246
  false,
@@ -257,9 +250,6 @@ var component = Object(componentNormalizer["a" /* default */])(
257
250
 
258
251
  )
259
252
 
260
- /* hot reload */
261
- if (false) { var api; }
262
- component.options.__file = "packages/aside/src/main.vue"
263
253
  /* harmony default export */ var main = (component.exports);
264
254
  // CONCATENATED MODULE: ./packages/aside/index.js
265
255