cy-element-ui 1.1.18 → 1.1.20

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 (255) hide show
  1. package/lib/index.js +1 -1
  2. package/lib/theme-chalk/BreadcrumbItem.css +0 -0
  3. package/lib/theme-chalk/ButtonGroup.css +0 -0
  4. package/lib/theme-chalk/CarouselItem.css +0 -0
  5. package/lib/theme-chalk/CascaderPanel.css +0 -0
  6. package/lib/theme-chalk/CheckboxButton.css +0 -0
  7. package/lib/theme-chalk/CheckboxGroup.css +0 -0
  8. package/lib/theme-chalk/CollapseItem.css +0 -0
  9. package/lib/theme-chalk/ColorPicker.css +0 -0
  10. package/lib/theme-chalk/DatePicker.css +0 -0
  11. package/lib/theme-chalk/DescriptionsItem.css +0 -0
  12. package/lib/theme-chalk/DropdownItem.css +0 -0
  13. package/lib/theme-chalk/DropdownMenu.css +0 -0
  14. package/lib/theme-chalk/FormItem.css +0 -0
  15. package/lib/theme-chalk/InputNumber.css +0 -0
  16. package/lib/theme-chalk/MenuItem.css +0 -0
  17. package/lib/theme-chalk/MenuItemGroup.css +0 -0
  18. package/lib/theme-chalk/MessageBox.css +0 -0
  19. package/lib/theme-chalk/OptionGroup.css +0 -0
  20. package/lib/theme-chalk/PageHeader.css +0 -0
  21. package/lib/theme-chalk/RadioButton.css +0 -0
  22. package/lib/theme-chalk/RadioGroup.css +0 -0
  23. package/lib/theme-chalk/SkeletonItem.css +0 -0
  24. package/lib/theme-chalk/TabPane.css +0 -0
  25. package/lib/theme-chalk/TableColumn.css +0 -0
  26. package/lib/theme-chalk/TimePicker.css +0 -0
  27. package/lib/theme-chalk/TimeSelect.css +0 -0
  28. package/lib/theme-chalk/TimelineItem.css +0 -0
  29. package/lib/theme-chalk/alert.css +1 -0
  30. package/lib/theme-chalk/aside.css +1 -0
  31. package/lib/theme-chalk/autocomplete.css +1 -0
  32. package/lib/theme-chalk/avatar.css +1 -0
  33. package/lib/theme-chalk/backtop.css +1 -0
  34. package/lib/theme-chalk/badge.css +1 -0
  35. package/lib/theme-chalk/base.css +1 -0
  36. package/lib/theme-chalk/breadcrumb-item.css +0 -0
  37. package/lib/theme-chalk/breadcrumb.css +1 -0
  38. package/lib/theme-chalk/button-group.css +0 -0
  39. package/lib/theme-chalk/button.css +1 -0
  40. package/lib/theme-chalk/calendar.css +1 -0
  41. package/lib/theme-chalk/card.css +1 -0
  42. package/lib/theme-chalk/carousel-item.css +1 -0
  43. package/lib/theme-chalk/carousel.css +1 -0
  44. package/lib/theme-chalk/cascader-panel.css +1 -0
  45. package/lib/theme-chalk/cascader.css +1 -0
  46. package/lib/theme-chalk/checkbox-button.css +0 -0
  47. package/lib/theme-chalk/checkbox-group.css +0 -0
  48. package/lib/theme-chalk/checkbox.css +1 -0
  49. package/lib/theme-chalk/col.css +1 -0
  50. package/lib/theme-chalk/collapse-item.css +0 -0
  51. package/lib/theme-chalk/collapse.css +1 -0
  52. package/lib/theme-chalk/color-picker.css +1 -0
  53. package/lib/theme-chalk/container.css +1 -0
  54. package/lib/theme-chalk/date-picker.css +1 -0
  55. package/lib/theme-chalk/descriptions-item.css +1 -0
  56. package/lib/theme-chalk/descriptions.css +1 -0
  57. package/lib/theme-chalk/dialog.css +1 -0
  58. package/lib/theme-chalk/display.css +1 -0
  59. package/lib/theme-chalk/divider.css +1 -0
  60. package/lib/theme-chalk/drawer.css +1 -0
  61. package/lib/theme-chalk/dropdown-item.css +0 -0
  62. package/lib/theme-chalk/dropdown-menu.css +0 -0
  63. package/lib/theme-chalk/dropdown.css +1 -0
  64. package/lib/theme-chalk/element.css +1 -0
  65. package/lib/theme-chalk/empty.css +1 -0
  66. package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
  67. package/lib/theme-chalk/fonts/element-icons.woff +0 -0
  68. package/lib/theme-chalk/footer.css +1 -0
  69. package/lib/theme-chalk/form-item.css +0 -0
  70. package/lib/theme-chalk/form.css +1 -0
  71. package/lib/theme-chalk/header.css +1 -0
  72. package/lib/theme-chalk/icon.css +1 -0
  73. package/lib/theme-chalk/image.css +1 -0
  74. package/lib/theme-chalk/index.css +1 -0
  75. package/lib/theme-chalk/infinite-scroll.css +0 -0
  76. package/lib/theme-chalk/infiniteScroll.css +0 -0
  77. package/lib/theme-chalk/input-number.css +1 -0
  78. package/lib/theme-chalk/input.css +1 -0
  79. package/lib/theme-chalk/link.css +1 -0
  80. package/lib/theme-chalk/loading.css +1 -0
  81. package/lib/theme-chalk/main.css +1 -0
  82. package/lib/theme-chalk/menu-item-group.css +0 -0
  83. package/lib/theme-chalk/menu-item.css +0 -0
  84. package/lib/theme-chalk/menu.css +1 -0
  85. package/lib/theme-chalk/message-box.css +1 -0
  86. package/lib/theme-chalk/message.css +1 -0
  87. package/lib/theme-chalk/notification.css +1 -0
  88. package/lib/theme-chalk/option-group.css +1 -0
  89. package/lib/theme-chalk/option.css +1 -0
  90. package/lib/theme-chalk/page-header.css +1 -0
  91. package/lib/theme-chalk/pagination.css +1 -0
  92. package/lib/theme-chalk/popconfirm.css +1 -0
  93. package/lib/theme-chalk/popover.css +1 -0
  94. package/lib/theme-chalk/popper.css +1 -0
  95. package/lib/theme-chalk/progress.css +1 -0
  96. package/lib/theme-chalk/radio-button.css +1 -0
  97. package/lib/theme-chalk/radio-group.css +1 -0
  98. package/lib/theme-chalk/radio.css +1 -0
  99. package/lib/theme-chalk/rate.css +1 -0
  100. package/lib/theme-chalk/reset.css +1 -0
  101. package/lib/theme-chalk/result.css +1 -0
  102. package/lib/theme-chalk/row.css +1 -0
  103. package/lib/theme-chalk/scrollbar.css +1 -0
  104. package/lib/theme-chalk/select-dropdown.css +1 -0
  105. package/lib/theme-chalk/select.css +1 -0
  106. package/lib/theme-chalk/selectDisplayInput.css +1 -0
  107. package/lib/theme-chalk/skeleton-item.css +1 -0
  108. package/lib/theme-chalk/skeleton.css +1 -0
  109. package/lib/theme-chalk/slider.css +1 -0
  110. package/lib/theme-chalk/spinner.css +1 -0
  111. package/lib/theme-chalk/statistic.css +1 -0
  112. package/lib/theme-chalk/step.css +1 -0
  113. package/lib/theme-chalk/steps.css +1 -0
  114. package/lib/theme-chalk/subTitle.css +1 -0
  115. package/lib/theme-chalk/submenu.css +0 -0
  116. package/lib/theme-chalk/switch.css +1 -0
  117. package/lib/theme-chalk/tab-pane.css +0 -0
  118. package/lib/theme-chalk/tabDialog.css +1 -0
  119. package/lib/theme-chalk/table-column.css +1 -0
  120. package/lib/theme-chalk/table.css +1 -0
  121. package/lib/theme-chalk/tabs.css +1 -0
  122. package/lib/theme-chalk/tag.css +1 -0
  123. package/lib/theme-chalk/time-picker.css +1 -0
  124. package/lib/theme-chalk/time-select.css +1 -0
  125. package/lib/theme-chalk/timeline-item.css +1 -0
  126. package/lib/theme-chalk/timeline.css +1 -0
  127. package/lib/theme-chalk/tooltip.css +1 -0
  128. package/lib/theme-chalk/transfer.css +1 -0
  129. package/lib/theme-chalk/tree.css +1 -0
  130. package/lib/theme-chalk/treeSelect.css +1 -0
  131. package/lib/theme-chalk/upload.css +1 -0
  132. package/package.json +1 -1
  133. package/packages/theme-chalk/gulpfile.js +0 -1
  134. package/packages/theme-chalk/src/BreadcrumbItem.scss +0 -0
  135. package/packages/theme-chalk/src/ButtonGroup.scss +0 -0
  136. package/packages/theme-chalk/src/CarouselItem.scss +0 -0
  137. package/packages/theme-chalk/src/CascaderPanel.scss +0 -0
  138. package/packages/theme-chalk/src/CheckboxButton.scss +0 -0
  139. package/packages/theme-chalk/src/CheckboxGroup.scss +0 -0
  140. package/packages/theme-chalk/src/CollapseItem.scss +0 -0
  141. package/packages/theme-chalk/src/ColorPicker.scss +0 -0
  142. package/packages/theme-chalk/src/DatePicker.scss +0 -0
  143. package/packages/theme-chalk/src/DescriptionsItem.scss +0 -0
  144. package/packages/theme-chalk/src/DropdownItem.scss +0 -0
  145. package/packages/theme-chalk/src/DropdownMenu.scss +0 -0
  146. package/packages/theme-chalk/src/FormItem.scss +0 -0
  147. package/packages/theme-chalk/src/InputNumber.scss +0 -0
  148. package/packages/theme-chalk/src/MenuItem.scss +0 -0
  149. package/packages/theme-chalk/src/MenuItemGroup.scss +0 -0
  150. package/packages/theme-chalk/src/MessageBox.scss +0 -0
  151. package/packages/theme-chalk/src/OptionGroup.scss +0 -0
  152. package/packages/theme-chalk/src/PageHeader.scss +0 -0
  153. package/packages/theme-chalk/src/RadioButton.scss +0 -0
  154. package/packages/theme-chalk/src/RadioGroup.scss +0 -0
  155. package/packages/theme-chalk/src/SkeletonItem.scss +0 -0
  156. package/packages/theme-chalk/src/TabPane.scss +0 -0
  157. package/packages/theme-chalk/src/TableColumn.scss +0 -0
  158. package/packages/theme-chalk/src/TimePicker.scss +0 -0
  159. package/packages/theme-chalk/src/TimeSelect.scss +0 -0
  160. package/packages/theme-chalk/src/TimelineItem.scss +0 -0
  161. package/packages/theme-chalk/src/index.scss +89 -89
  162. package/src/index.js +1 -1
  163. package/lib/Alert.js +0 -420
  164. package/lib/Aside.js +0 -277
  165. package/lib/Autocomplete.js +0 -2051
  166. package/lib/Avatar.js +0 -363
  167. package/lib/Backtop.js +0 -404
  168. package/lib/Badge.js +0 -334
  169. package/lib/Breadcrumb.js +0 -293
  170. package/lib/BreadcrumbItem.js +0 -322
  171. package/lib/Button.js +0 -357
  172. package/lib/ButtonGroup.js +0 -262
  173. package/lib/Calendar.js +0 -1146
  174. package/lib/Card.js +0 -297
  175. package/lib/Carousel.js +0 -707
  176. package/lib/CarouselItem.js +0 -434
  177. package/lib/Cascader.js +0 -4641
  178. package/lib/CascaderPanel.js +0 -2602
  179. package/lib/Checkbox.js +0 -627
  180. package/lib/CheckboxButton.js +0 -583
  181. package/lib/CheckboxGroup.js +0 -313
  182. package/lib/Col.js +0 -177
  183. package/lib/Collapse.js +0 -329
  184. package/lib/CollapseItem.js +0 -497
  185. package/lib/ColorPicker.js +0 -2885
  186. package/lib/Container.js +0 -288
  187. package/lib/CySelectDisplayInput.js +0 -367
  188. package/lib/CySubTitle.js +0 -295
  189. package/lib/CyTabDialog.js +0 -1184
  190. package/lib/CyTreeSelect.js +0 -4422
  191. package/lib/DatePicker.js +0 -7574
  192. package/lib/Descriptions.js +0 -457
  193. package/lib/DescriptionsItem.js +0 -140
  194. package/lib/Dialog.js +0 -598
  195. package/lib/Divider.js +0 -313
  196. package/lib/Drawer.js +0 -592
  197. package/lib/Dropdown.js +0 -856
  198. package/lib/DropdownItem.js +0 -316
  199. package/lib/DropdownMenu.js +0 -351
  200. package/lib/Empty.js +0 -730
  201. package/lib/Footer.js +0 -277
  202. package/lib/Form.js +0 -466
  203. package/lib/FormItem.js +0 -826
  204. package/lib/Header.js +0 -277
  205. package/lib/Icon.js +0 -265
  206. package/lib/Image.js +0 -1138
  207. package/lib/InfiniteScroll.js +0 -301
  208. package/lib/Input.js +0 -999
  209. package/lib/InputNumber.js +0 -1552
  210. package/lib/Link.js +0 -332
  211. package/lib/Loading.js +0 -631
  212. package/lib/Main.js +0 -264
  213. package/lib/Menu.js +0 -865
  214. package/lib/MenuItem.js +0 -818
  215. package/lib/MenuItemGroup.js +0 -308
  216. package/lib/Message.js +0 -548
  217. package/lib/MessageBox.js +0 -2134
  218. package/lib/Notification.js +0 -615
  219. package/lib/Option.js +0 -474
  220. package/lib/OptionGroup.js +0 -344
  221. package/lib/PageHeader.js +0 -319
  222. package/lib/Pagination.js +0 -4123
  223. package/lib/Popconfirm.js +0 -1025
  224. package/lib/Popover.js +0 -617
  225. package/lib/Progress.js +0 -595
  226. package/lib/Radio.js +0 -497
  227. package/lib/RadioButton.js +0 -463
  228. package/lib/RadioGroup.js +0 -391
  229. package/lib/Rate.js +0 -670
  230. package/lib/Result.js +0 -578
  231. package/lib/Row.js +0 -149
  232. package/lib/Scrollbar.js +0 -423
  233. package/lib/Select.js +0 -3368
  234. package/lib/Skeleton.js +0 -372
  235. package/lib/SkeletonItem.js +0 -342
  236. package/lib/Slider.js +0 -2854
  237. package/lib/Spinner.js +0 -301
  238. package/lib/Statistic.js +0 -533
  239. package/lib/Step.js +0 -522
  240. package/lib/Steps.js +0 -342
  241. package/lib/Submenu.js +0 -700
  242. package/lib/Switch.js +0 -554
  243. package/lib/TabPane.js +0 -332
  244. package/lib/Table.js +0 -6125
  245. package/lib/TableColumn.js +0 -1481
  246. package/lib/Tabs.js +0 -920
  247. package/lib/Tag.js +0 -304
  248. package/lib/TimePicker.js +0 -4059
  249. package/lib/TimeSelect.js +0 -2871
  250. package/lib/Timeline.js +0 -275
  251. package/lib/TimelineItem.js +0 -371
  252. package/lib/Tooltip.js +0 -425
  253. package/lib/Transfer.js +0 -2557
  254. package/lib/Tree.js +0 -2680
  255. package/lib/Upload.js +0 -1782
@@ -1,457 +0,0 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "/dist/";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 127);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 127:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
94
- // ESM COMPAT FLAG
95
- __webpack_require__.r(__webpack_exports__);
96
-
97
- // CONCATENATED MODULE: ./packages/descriptions/src/descriptions-row.js
98
- var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
99
-
100
- /* harmony default export */ var descriptions_row = ({
101
- name: 'ElDescriptionsRow',
102
- props: {
103
- row: {
104
- type: Array
105
- }
106
- },
107
- inject: ['elDescriptions'],
108
- render: function render(h) {
109
- var elDescriptions = this.elDescriptions;
110
-
111
- var row = (this.row || []).map(function (item) {
112
- return _extends({}, item, {
113
- label: item.slots.label || item.props.label
114
- }, ['labelClassName', 'contentClassName', 'labelStyle', 'contentStyle'].reduce(function (res, key) {
115
- res[key] = item.props[key] || elDescriptions[key];
116
- return res;
117
- }, {}));
118
- });
119
- if (elDescriptions.direction === 'vertical') {
120
- return h('tbody', [h(
121
- 'tr',
122
- { 'class': 'el-descriptions-row' },
123
- [row.map(function (item) {
124
- var _ref;
125
-
126
- return h(
127
- 'th',
128
- {
129
- 'class': (_ref = {
130
- 'el-descriptions-item__cell': true,
131
- 'el-descriptions-item__label': true,
132
- 'has-colon': elDescriptions.border ? false : elDescriptions.colon,
133
- 'is-bordered-label': elDescriptions.border
134
- }, _ref[item.labelClassName] = true, _ref),
135
- style: item.labelStyle,
136
- attrs: { colSpan: item.props.span
137
- }
138
- },
139
- [item.label]
140
- );
141
- })]
142
- ), h(
143
- 'tr',
144
- { 'class': 'el-descriptions-row' },
145
- [row.map(function (item) {
146
- return h(
147
- 'td',
148
- {
149
- 'class': ['el-descriptions-item__cell', 'el-descriptions-item__content', item.contentClassName],
150
- style: item.contentStyle,
151
- attrs: { colSpan: item.props.span
152
- }
153
- },
154
- [item.slots.default]
155
- );
156
- })]
157
- )]);
158
- }
159
- if (elDescriptions.border) {
160
- return h('tbody', [h(
161
- 'tr',
162
- { 'class': 'el-descriptions-row' },
163
- [row.map(function (item) {
164
- var _ref2;
165
-
166
- return [h(
167
- 'th',
168
- {
169
- 'class': (_ref2 = {
170
- 'el-descriptions-item__cell': true,
171
- 'el-descriptions-item__label': true,
172
- 'is-bordered-label': elDescriptions.border
173
- }, _ref2[item.labelClassName] = true, _ref2),
174
- style: item.labelStyle,
175
- attrs: { colSpan: '1'
176
- }
177
- },
178
- [item.label]
179
- ), h(
180
- 'td',
181
- {
182
- 'class': ['el-descriptions-item__cell', 'el-descriptions-item__content', item.contentClassName],
183
- style: item.contentStyle,
184
- attrs: { colSpan: item.props.span * 2 - 1
185
- }
186
- },
187
- [item.slots.default]
188
- )];
189
- })]
190
- )]);
191
- }
192
- return h('tbody', [h(
193
- 'tr',
194
- { 'class': 'el-descriptions-row' },
195
- [row.map(function (item) {
196
- var _ref3;
197
-
198
- return h(
199
- 'td',
200
- { 'class': 'el-descriptions-item el-descriptions-item__cell', attrs: { colSpan: item.props.span }
201
- },
202
- [h(
203
- 'div',
204
- { 'class': 'el-descriptions-item__container' },
205
- [h(
206
- 'span',
207
- {
208
- 'class': (_ref3 = {
209
- 'el-descriptions-item__label': true,
210
- 'has-colon': elDescriptions.colon
211
- }, _ref3[item.labelClassName] = true, _ref3),
212
- style: item.labelStyle
213
- },
214
- [item.label]
215
- ), h(
216
- 'span',
217
- {
218
- 'class': ['el-descriptions-item__content', item.contentClassName],
219
- style: item.contentStyle
220
- },
221
- [item.slots.default]
222
- )]
223
- )]
224
- );
225
- })]
226
- )]);
227
- }
228
- });
229
- // EXTERNAL MODULE: external "element-ui/lib/utils/types"
230
- var types_ = __webpack_require__(21);
231
-
232
- // CONCATENATED MODULE: ./packages/descriptions/src/index.js
233
- var src_extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
234
-
235
- var _components;
236
-
237
-
238
-
239
-
240
- /* harmony default export */ var src = ({
241
- name: 'ElDescriptions',
242
- components: (_components = {}, _components[descriptions_row.name] = descriptions_row, _components),
243
- props: {
244
- border: {
245
- type: Boolean,
246
- default: false
247
- },
248
- column: {
249
- type: Number,
250
- default: 3
251
- },
252
- direction: {
253
- type: String,
254
- default: 'horizontal'
255
- },
256
- size: {
257
- type: String
258
- // validator: isValidComponentSize,
259
- },
260
- title: {
261
- type: String,
262
- default: ''
263
- },
264
- extra: {
265
- type: String,
266
- default: ''
267
- },
268
- labelStyle: {
269
- type: Object
270
- },
271
- contentStyle: {
272
- type: Object
273
- },
274
- labelClassName: {
275
- type: String,
276
- default: ''
277
- },
278
- contentClassName: {
279
- type: String,
280
- default: ''
281
- },
282
- colon: {
283
- type: Boolean,
284
- default: true
285
- }
286
- },
287
- computed: {
288
- descriptionsSize: function descriptionsSize() {
289
- return this.size || (this.$ELEMENT || {}).size;
290
- }
291
- },
292
- provide: function provide() {
293
- return {
294
- elDescriptions: this
295
- };
296
- },
297
-
298
- methods: {
299
- getOptionProps: function getOptionProps(vnode) {
300
- if (vnode.componentOptions) {
301
- var componentOptions = vnode.componentOptions;
302
- var _componentOptions$pro = componentOptions.propsData,
303
- propsData = _componentOptions$pro === undefined ? {} : _componentOptions$pro,
304
- _componentOptions$Cto = componentOptions.Ctor,
305
- Ctor = _componentOptions$Cto === undefined ? {} : _componentOptions$Cto;
306
-
307
- var props = (Ctor.options || {}).props || {};
308
- var res = {};
309
- for (var k in props) {
310
- var v = props[k];
311
- var defaultValue = v.default;
312
- if (defaultValue !== undefined) {
313
- res[k] = Object(types_["isFunction"])(defaultValue) ? defaultValue.call(vnode) : defaultValue;
314
- }
315
- }
316
- return src_extends({}, res, propsData);
317
- }
318
- return {};
319
- },
320
- getSlots: function getSlots(vnode) {
321
- var _this = this;
322
-
323
- var componentOptions = vnode.componentOptions || {};
324
- var children = vnode.children || componentOptions.children || [];
325
- var slots = {};
326
- children.forEach(function (child) {
327
- if (!_this.isEmptyElement(child)) {
328
- var name = child.data && child.data.slot || 'default';
329
- slots[name] = slots[name] || [];
330
- if (child.tag === 'template') {
331
- slots[name].push(child.children);
332
- } else {
333
- slots[name].push(child);
334
- }
335
- }
336
- });
337
- return src_extends({}, slots);
338
- },
339
- isEmptyElement: function isEmptyElement(c) {
340
- return !(c.tag || c.text && c.text.trim() !== '');
341
- },
342
- filledNode: function filledNode(node, span, count) {
343
- var isLast = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
344
-
345
- if (!node.props) {
346
- node.props = {};
347
- }
348
- if (span > count) {
349
- node.props.span = count;
350
- }
351
- if (isLast) {
352
- // set the max span, cause of the last td
353
- node.props.span = count;
354
- }
355
- return node;
356
- },
357
- getRows: function getRows() {
358
- var _this2 = this;
359
-
360
- var children = (this.$slots.default || []).filter(function (vnode) {
361
- return vnode.tag && vnode.componentOptions && vnode.componentOptions.Ctor.options.name === 'ElDescriptionsItem';
362
- });
363
- var nodes = children.map(function (vnode) {
364
- return {
365
- props: _this2.getOptionProps(vnode),
366
- slots: _this2.getSlots(vnode),
367
- vnode: vnode
368
- };
369
- });
370
- var rows = [];
371
- var temp = [];
372
- var count = this.column;
373
-
374
- nodes.forEach(function (node, index) {
375
- var span = node.props.span || 1;
376
-
377
- if (index === children.length - 1) {
378
- temp.push(_this2.filledNode(node, span, count, true));
379
- rows.push(temp);
380
- return;
381
- }
382
-
383
- if (span < count) {
384
- count -= span;
385
- temp.push(node);
386
- } else {
387
- temp.push(_this2.filledNode(node, span, count));
388
- rows.push(temp);
389
- count = _this2.column;
390
- temp = [];
391
- }
392
- });
393
-
394
- return rows;
395
- }
396
- },
397
- render: function render() {
398
- var h = arguments[0];
399
- var title = this.title,
400
- extra = this.extra,
401
- border = this.border,
402
- descriptionsSize = this.descriptionsSize,
403
- $slots = this.$slots;
404
-
405
- var rows = this.getRows();
406
-
407
- return h(
408
- 'div',
409
- { 'class': 'el-descriptions' },
410
- [title || extra || $slots.title || $slots.extra ? h(
411
- 'div',
412
- { 'class': 'el-descriptions__header' },
413
- [h(
414
- 'div',
415
- { 'class': 'el-descriptions__title' },
416
- [$slots.title ? $slots.title : title]
417
- ), h(
418
- 'div',
419
- { 'class': 'el-descriptions__extra' },
420
- [$slots.extra ? $slots.extra : extra]
421
- )]
422
- ) : null, h(
423
- 'div',
424
- { 'class': 'el-descriptions__body' },
425
- [h(
426
- 'table',
427
- { 'class': ['el-descriptions__table', { 'is-bordered': border }, descriptionsSize ? 'el-descriptions--' + descriptionsSize : ''] },
428
- [rows.map(function (row) {
429
- return h(descriptions_row, {
430
- attrs: { row: row }
431
- });
432
- })]
433
- )]
434
- )]
435
- );
436
- }
437
- });
438
- // CONCATENATED MODULE: ./packages/descriptions/index.js
439
-
440
-
441
- /* istanbul ignore next */
442
- src.install = function install(Vue) {
443
- Vue.component(src.name, src);
444
- };
445
-
446
- /* harmony default export */ var descriptions = __webpack_exports__["default"] = (src);
447
-
448
- /***/ }),
449
-
450
- /***/ 21:
451
- /***/ (function(module, exports) {
452
-
453
- module.exports = require("element-ui/lib/utils/types");
454
-
455
- /***/ })
456
-
457
- /******/ });
@@ -1,140 +0,0 @@
1
- module.exports =
2
- /******/ (function(modules) { // webpackBootstrap
3
- /******/ // The module cache
4
- /******/ var installedModules = {};
5
- /******/
6
- /******/ // The require function
7
- /******/ function __webpack_require__(moduleId) {
8
- /******/
9
- /******/ // Check if module is in cache
10
- /******/ if(installedModules[moduleId]) {
11
- /******/ return installedModules[moduleId].exports;
12
- /******/ }
13
- /******/ // Create a new module (and put it into the cache)
14
- /******/ var module = installedModules[moduleId] = {
15
- /******/ i: moduleId,
16
- /******/ l: false,
17
- /******/ exports: {}
18
- /******/ };
19
- /******/
20
- /******/ // Execute the module function
21
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
22
- /******/
23
- /******/ // Flag the module as loaded
24
- /******/ module.l = true;
25
- /******/
26
- /******/ // Return the exports of the module
27
- /******/ return module.exports;
28
- /******/ }
29
- /******/
30
- /******/
31
- /******/ // expose the modules object (__webpack_modules__)
32
- /******/ __webpack_require__.m = modules;
33
- /******/
34
- /******/ // expose the module cache
35
- /******/ __webpack_require__.c = installedModules;
36
- /******/
37
- /******/ // define getter function for harmony exports
38
- /******/ __webpack_require__.d = function(exports, name, getter) {
39
- /******/ if(!__webpack_require__.o(exports, name)) {
40
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
41
- /******/ }
42
- /******/ };
43
- /******/
44
- /******/ // define __esModule on exports
45
- /******/ __webpack_require__.r = function(exports) {
46
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
47
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
48
- /******/ }
49
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
50
- /******/ };
51
- /******/
52
- /******/ // create a fake namespace object
53
- /******/ // mode & 1: value is a module id, require it
54
- /******/ // mode & 2: merge all properties of value into the ns
55
- /******/ // mode & 4: return value when already ns object
56
- /******/ // mode & 8|1: behave like require
57
- /******/ __webpack_require__.t = function(value, mode) {
58
- /******/ if(mode & 1) value = __webpack_require__(value);
59
- /******/ if(mode & 8) return value;
60
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
61
- /******/ var ns = Object.create(null);
62
- /******/ __webpack_require__.r(ns);
63
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
64
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
65
- /******/ return ns;
66
- /******/ };
67
- /******/
68
- /******/ // getDefaultExport function for compatibility with non-harmony modules
69
- /******/ __webpack_require__.n = function(module) {
70
- /******/ var getter = module && module.__esModule ?
71
- /******/ function getDefault() { return module['default']; } :
72
- /******/ function getModuleExports() { return module; };
73
- /******/ __webpack_require__.d(getter, 'a', getter);
74
- /******/ return getter;
75
- /******/ };
76
- /******/
77
- /******/ // Object.prototype.hasOwnProperty.call
78
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
79
- /******/
80
- /******/ // __webpack_public_path__
81
- /******/ __webpack_require__.p = "/dist/";
82
- /******/
83
- /******/
84
- /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 131);
86
- /******/ })
87
- /************************************************************************/
88
- /******/ ({
89
-
90
- /***/ 131:
91
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
-
93
- "use strict";
94
- // ESM COMPAT FLAG
95
- __webpack_require__.r(__webpack_exports__);
96
-
97
- // CONCATENATED MODULE: ./packages/descriptions/src/descriptions-item.js
98
- /* harmony default export */ var descriptions_item = ({
99
- name: 'ElDescriptionsItem',
100
- props: {
101
- label: {
102
- type: String,
103
- default: ''
104
- },
105
- span: {
106
- type: Number,
107
- default: 1
108
- },
109
- contentClassName: {
110
- type: String,
111
- default: ''
112
- },
113
- contentStyle: {
114
- type: Object
115
- },
116
- labelClassName: {
117
- type: String,
118
- default: ''
119
- },
120
- labelStyle: {
121
- type: Object
122
- }
123
- },
124
- render: function render() {
125
- return null;
126
- }
127
- });
128
- // CONCATENATED MODULE: ./packages/descriptions-item/index.js
129
-
130
-
131
- /* istanbul ignore next */
132
- descriptions_item.install = function install(Vue) {
133
- Vue.component(descriptions_item.name, descriptions_item);
134
- };
135
-
136
- /* harmony default export */ var packages_descriptions_item = __webpack_exports__["default"] = (descriptions_item);
137
-
138
- /***/ })
139
-
140
- /******/ });