cy-element-ui 1.1.19 → 1.1.21
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.
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
- package/lib/Alert.js +0 -420
- package/lib/Aside.js +0 -277
- package/lib/Autocomplete.js +0 -2051
- package/lib/Avatar.js +0 -363
- package/lib/Backtop.js +0 -404
- package/lib/Badge.js +0 -334
- package/lib/Breadcrumb.js +0 -293
- package/lib/BreadcrumbItem.js +0 -322
- package/lib/Button.js +0 -357
- package/lib/ButtonGroup.js +0 -262
- package/lib/Calendar.js +0 -1146
- package/lib/Card.js +0 -297
- package/lib/Carousel.js +0 -707
- package/lib/CarouselItem.js +0 -434
- package/lib/Cascader.js +0 -4641
- package/lib/CascaderPanel.js +0 -2602
- package/lib/Checkbox.js +0 -627
- package/lib/CheckboxButton.js +0 -583
- package/lib/CheckboxGroup.js +0 -313
- package/lib/Col.js +0 -177
- package/lib/Collapse.js +0 -329
- package/lib/CollapseItem.js +0 -497
- package/lib/ColorPicker.js +0 -2885
- package/lib/Container.js +0 -288
- package/lib/CySelectDisplayInput.js +0 -367
- package/lib/CySubTitle.js +0 -295
- package/lib/CyTabDialog.js +0 -1184
- package/lib/CyTreeSelect.js +0 -4422
- package/lib/DatePicker.js +0 -7574
- package/lib/Descriptions.js +0 -457
- package/lib/DescriptionsItem.js +0 -140
- package/lib/Dialog.js +0 -598
- package/lib/Divider.js +0 -313
- package/lib/Drawer.js +0 -592
- package/lib/Dropdown.js +0 -856
- package/lib/DropdownItem.js +0 -316
- package/lib/DropdownMenu.js +0 -351
- package/lib/Empty.js +0 -730
- package/lib/Footer.js +0 -277
- package/lib/Form.js +0 -466
- package/lib/FormItem.js +0 -826
- package/lib/Header.js +0 -277
- package/lib/Icon.js +0 -265
- package/lib/Image.js +0 -1138
- package/lib/InfiniteScroll.js +0 -301
- package/lib/Input.js +0 -999
- package/lib/InputNumber.js +0 -1552
- package/lib/Link.js +0 -332
- package/lib/Loading.js +0 -631
- package/lib/Main.js +0 -264
- package/lib/Menu.js +0 -865
- package/lib/MenuItem.js +0 -818
- package/lib/MenuItemGroup.js +0 -308
- package/lib/Message.js +0 -548
- package/lib/MessageBox.js +0 -2134
- package/lib/Notification.js +0 -615
- package/lib/Option.js +0 -474
- package/lib/OptionGroup.js +0 -344
- package/lib/PageHeader.js +0 -319
- package/lib/Pagination.js +0 -4123
- package/lib/Popconfirm.js +0 -1025
- package/lib/Popover.js +0 -617
- package/lib/Progress.js +0 -595
- package/lib/Radio.js +0 -497
- package/lib/RadioButton.js +0 -463
- package/lib/RadioGroup.js +0 -391
- package/lib/Rate.js +0 -670
- package/lib/Result.js +0 -578
- package/lib/Row.js +0 -149
- package/lib/Scrollbar.js +0 -423
- package/lib/Select.js +0 -3368
- package/lib/Skeleton.js +0 -372
- package/lib/SkeletonItem.js +0 -342
- package/lib/Slider.js +0 -2854
- package/lib/Spinner.js +0 -301
- package/lib/Statistic.js +0 -533
- package/lib/Step.js +0 -522
- package/lib/Steps.js +0 -342
- package/lib/Submenu.js +0 -700
- package/lib/Switch.js +0 -554
- package/lib/TabPane.js +0 -332
- package/lib/Table.js +0 -6125
- package/lib/TableColumn.js +0 -1481
- package/lib/Tabs.js +0 -920
- package/lib/Tag.js +0 -304
- package/lib/TimePicker.js +0 -4059
- package/lib/TimeSelect.js +0 -2871
- package/lib/Timeline.js +0 -275
- package/lib/TimelineItem.js +0 -371
- package/lib/Tooltip.js +0 -425
- package/lib/Transfer.js +0 -2557
- package/lib/Tree.js +0 -2680
- package/lib/Upload.js +0 -1782
package/lib/Descriptions.js
DELETED
|
@@ -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
|
-
/******/ });
|
package/lib/DescriptionsItem.js
DELETED
|
@@ -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
|
-
/******/ });
|