cy-element-ui 1.0.49 → 1.0.50

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 (98) hide show
  1. package/lib/alert.js +108 -108
  2. package/lib/aside.js +77 -77
  3. package/lib/autocomplete.js +359 -5198
  4. package/lib/avatar.js +4 -4
  5. package/lib/backtop.js +101 -192
  6. package/lib/badge.js +108 -108
  7. package/lib/breadcrumb-item.js +108 -108
  8. package/lib/breadcrumb.js +94 -94
  9. package/lib/button-group.js +4 -4
  10. package/lib/button.js +4 -4
  11. package/lib/calendar.js +137 -1734
  12. package/lib/card.js +96 -96
  13. package/lib/carousel-item.js +108 -452
  14. package/lib/carousel.js +105 -1256
  15. package/lib/cascader-panel.js +191 -3524
  16. package/lib/cascader.js +709 -8069
  17. package/lib/checkbox-button.js +119 -151
  18. package/lib/checkbox-group.js +15 -47
  19. package/lib/checkbox.js +15 -47
  20. package/lib/col.js +2 -2
  21. package/lib/collapse-item.js +110 -815
  22. package/lib/collapse.js +108 -108
  23. package/lib/color-picker.js +835 -4712
  24. package/lib/container.js +88 -88
  25. package/lib/date-picker.js +4596 -10622
  26. package/lib/descriptions-item.js +2 -2
  27. package/lib/descriptions.js +8 -63
  28. package/lib/dialog.js +22 -1200
  29. package/lib/divider.js +104 -104
  30. package/lib/drawer.js +105 -875
  31. package/lib/dropdown-item.js +96 -128
  32. package/lib/dropdown-menu.js +99 -2301
  33. package/lib/dropdown.js +54 -990
  34. package/lib/element-ui.common.js +29758 -47436
  35. package/lib/empty.js +99 -793
  36. package/lib/fileUpload.js +25 -2541
  37. package/lib/footer.js +77 -77
  38. package/lib/form-item.js +208 -3311
  39. package/lib/form.js +115 -129
  40. package/lib/header.js +77 -77
  41. package/lib/icon.js +67 -67
  42. package/lib/image.js +146 -1662
  43. package/lib/index.js +1 -1
  44. package/lib/infinite-scroll.js +26 -435
  45. package/lib/input-number.js +24 -1458
  46. package/lib/input.js +37 -509
  47. package/lib/link.js +4 -4
  48. package/lib/loading.js +149 -886
  49. package/lib/main.js +64 -64
  50. package/lib/menu-item-group.js +103 -103
  51. package/lib/menu-item.js +137 -3140
  52. package/lib/menu.js +123 -1058
  53. package/lib/message-box.js +179 -2734
  54. package/lib/message.js +118 -1196
  55. package/lib/notification.js +118 -1195
  56. package/lib/option-group.js +119 -151
  57. package/lib/option.js +16 -392
  58. package/lib/page-header.js +87 -781
  59. package/lib/pagination.js +642 -7743
  60. package/lib/popconfirm.js +219 -3606
  61. package/lib/popover.js +99 -2624
  62. package/lib/progress.js +4 -4
  63. package/lib/radio-button.js +119 -151
  64. package/lib/radio-group.js +119 -151
  65. package/lib/radio.js +15 -47
  66. package/lib/rate.js +113 -756
  67. package/lib/result.js +108 -108
  68. package/lib/row.js +2 -2
  69. package/lib/scrollbar.js +41 -1813
  70. package/lib/select.js +209 -5547
  71. package/lib/selectDisplayInput.js +4 -4
  72. package/lib/skeleton-item.js +108 -108
  73. package/lib/skeleton.js +108 -108
  74. package/lib/slider.js +815 -5053
  75. package/lib/spinner.js +100 -100
  76. package/lib/statistic.js +112 -9600
  77. package/lib/step.js +108 -108
  78. package/lib/steps.js +99 -514
  79. package/lib/subTitle.js +91 -91
  80. package/lib/submenu.js +76 -2397
  81. package/lib/switch.js +127 -582
  82. package/lib/tab-pane.js +108 -108
  83. package/lib/tabDialog.js +104 -1630
  84. package/lib/table-column.js +267 -1115
  85. package/lib/table.js +1289 -7121
  86. package/lib/tabs.js +113 -1615
  87. package/lib/tag.js +4 -4
  88. package/lib/time-picker.js +554 -6491
  89. package/lib/time-select.js +407 -6334
  90. package/lib/timeline-item.js +108 -108
  91. package/lib/timeline.js +4 -4
  92. package/lib/tooltip.js +44 -2688
  93. package/lib/transfer.js +146 -2238
  94. package/lib/tree.js +148 -1563
  95. package/lib/treeSelect.js +106 -3421
  96. package/lib/upload.js +31 -1198
  97. package/package.json +1 -1
  98. package/src/index.js +1 -1
package/lib/tree.js CHANGED
@@ -82,506 +82,159 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 141);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 64);
86
86
  /******/ })
87
87
  /************************************************************************/
88
88
  /******/ ({
89
89
 
90
90
  /***/ 0:
91
- /***/ (function(module, exports) {
92
-
93
- module.exports = require("vue");
94
-
95
- /***/ }),
96
-
97
- /***/ 1:
98
91
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
99
92
 
100
93
  "use strict";
101
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
102
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
103
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
104
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
105
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
106
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
107
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
108
- /* unused harmony export setStyle */
109
- /* unused harmony export isScroll */
110
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
111
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
112
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
113
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
114
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
115
-
116
- /* istanbul ignore next */
117
-
118
-
119
-
120
- var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
121
- var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
122
- var MOZ_HACK_REGEXP = /^moz([A-Z])/;
123
- var ieVersion = isServer ? 0 : Number(document.documentMode);
124
-
125
- /* istanbul ignore next */
126
- var trim = function trim(string) {
127
- return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
128
- };
129
- /* istanbul ignore next */
130
- var camelCase = function camelCase(name) {
131
- return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
132
- return offset ? letter.toUpperCase() : letter;
133
- }).replace(MOZ_HACK_REGEXP, 'Moz$1');
134
- };
135
-
136
- /* istanbul ignore next */
137
- var on = function () {
138
- if (!isServer && document.addEventListener) {
139
- return function (element, event, handler) {
140
- if (element && event && handler) {
141
- element.addEventListener(event, handler, false);
142
- }
143
- };
144
- } else {
145
- return function (element, event, handler) {
146
- if (element && event && handler) {
147
- element.attachEvent('on' + event, handler);
148
- }
149
- };
150
- }
151
- }();
152
-
153
- /* istanbul ignore next */
154
- var off = function () {
155
- if (!isServer && document.removeEventListener) {
156
- return function (element, event, handler) {
157
- if (element && event) {
158
- element.removeEventListener(event, handler, false);
159
- }
160
- };
161
- } else {
162
- return function (element, event, handler) {
163
- if (element && event) {
164
- element.detachEvent('on' + event, handler);
165
- }
166
- };
167
- }
168
- }();
169
-
170
- /* istanbul ignore next */
171
- var once = function once(el, event, fn) {
172
- var listener = function listener() {
173
- if (fn) {
174
- fn.apply(this, arguments);
175
- }
176
- off(el, event, listener);
177
- };
178
- on(el, event, listener);
179
- };
180
-
181
- /* istanbul ignore next */
182
- function hasClass(el, cls) {
183
- if (!el || !cls) return false;
184
- if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
185
- if (el.classList) {
186
- return el.classList.contains(cls);
187
- } else {
188
- return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
189
- }
190
- };
191
-
192
- /* istanbul ignore next */
193
- function addClass(el, cls) {
194
- if (!el) return;
195
- var curClass = el.className;
196
- var classes = (cls || '').split(' ');
197
-
198
- for (var i = 0, j = classes.length; i < j; i++) {
199
- var clsName = classes[i];
200
- if (!clsName) continue;
201
-
202
- if (el.classList) {
203
- el.classList.add(clsName);
204
- } else if (!hasClass(el, clsName)) {
205
- curClass += ' ' + clsName;
206
- }
207
- }
208
- if (!el.classList) {
209
- el.setAttribute('class', curClass);
210
- }
211
- };
212
-
213
- /* istanbul ignore next */
214
- function removeClass(el, cls) {
215
- if (!el || !cls) return;
216
- var classes = cls.split(' ');
217
- var curClass = ' ' + el.className + ' ';
218
-
219
- for (var i = 0, j = classes.length; i < j; i++) {
220
- var clsName = classes[i];
221
- if (!clsName) continue;
222
-
223
- if (el.classList) {
224
- el.classList.remove(clsName);
225
- } else if (hasClass(el, clsName)) {
226
- curClass = curClass.replace(' ' + clsName + ' ', ' ');
227
- }
228
- }
229
- if (!el.classList) {
230
- el.setAttribute('class', trim(curClass));
231
- }
232
- };
233
-
234
- /* istanbul ignore next */
235
- var getStyle = ieVersion < 9 ? function (element, styleName) {
236
- if (isServer) return;
237
- if (!element || !styleName) return null;
238
- styleName = camelCase(styleName);
239
- if (styleName === 'float') {
240
- styleName = 'styleFloat';
241
- }
242
- try {
243
- switch (styleName) {
244
- case 'opacity':
245
- try {
246
- return element.filters.item('alpha').opacity / 100;
247
- } catch (e) {
248
- return 1.0;
249
- }
250
- default:
251
- return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
252
- }
253
- } catch (e) {
254
- return element.style[styleName];
255
- }
256
- } : function (element, styleName) {
257
- if (isServer) return;
258
- if (!element || !styleName) return null;
259
- styleName = camelCase(styleName);
260
- if (styleName === 'float') {
261
- styleName = 'cssFloat';
262
- }
263
- try {
264
- var computed = document.defaultView.getComputedStyle(element, '');
265
- return element.style[styleName] || computed ? computed[styleName] : null;
266
- } catch (e) {
267
- return element.style[styleName];
268
- }
269
- };
270
-
271
- /* istanbul ignore next */
272
- function setStyle(element, styleName, value) {
273
- if (!element || !styleName) return;
274
-
275
- if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
276
- for (var prop in styleName) {
277
- if (styleName.hasOwnProperty(prop)) {
278
- setStyle(element, prop, styleName[prop]);
279
- }
280
- }
281
- } else {
282
- styleName = camelCase(styleName);
283
- if (styleName === 'opacity' && ieVersion < 9) {
284
- element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
285
- } else {
286
- element.style[styleName] = value;
287
- }
288
- }
289
- };
290
-
291
- var isScroll = function isScroll(el, vertical) {
292
- if (isServer) return;
94
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
95
+ /* globals __VUE_SSR_CONTEXT__ */
293
96
 
294
- var determinedDirection = vertical !== null && vertical !== undefined;
295
- var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
97
+ // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
98
+ // This module is a runtime utility for cleaner component module output and will
99
+ // be included in the final webpack user bundle.
296
100
 
297
- return overflow.match(/(scroll|auto|overlay)/);
298
- };
101
+ function normalizeComponent(
102
+ scriptExports,
103
+ render,
104
+ staticRenderFns,
105
+ functionalTemplate,
106
+ injectStyles,
107
+ scopeId,
108
+ moduleIdentifier /* server only */,
109
+ shadowMode /* vue-cli only */
110
+ ) {
111
+ // Vue.extend constructor export interop
112
+ var options =
113
+ typeof scriptExports === 'function' ? scriptExports.options : scriptExports
299
114
 
300
- var getScrollContainer = function getScrollContainer(el, vertical) {
301
- if (isServer) return;
115
+ // render functions
116
+ if (render) {
117
+ options.render = render
118
+ options.staticRenderFns = staticRenderFns
119
+ options._compiled = true
120
+ }
302
121
 
303
- var parent = el;
304
- while (parent) {
305
- if ([window, document, document.documentElement].includes(parent)) {
306
- return window;
307
- }
308
- if (isScroll(parent, vertical)) {
309
- return parent;
310
- }
311
- parent = parent.parentNode;
312
- }
122
+ // functional template
123
+ if (functionalTemplate) {
124
+ options.functional = true
125
+ }
313
126
 
314
- return parent;
315
- };
127
+ // scopedId
128
+ if (scopeId) {
129
+ options._scopeId = 'data-v-' + scopeId
130
+ }
316
131
 
317
- var isInContainer = function isInContainer(el, container) {
318
- if (isServer || !el || !container) return false;
132
+ var hook
133
+ if (moduleIdentifier) {
134
+ // server build
135
+ hook = function (context) {
136
+ // 2.3 injection
137
+ context =
138
+ context || // cached call
139
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
140
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
141
+ // 2.2 with runInNewContext: true
142
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
143
+ context = __VUE_SSR_CONTEXT__
144
+ }
145
+ // inject component styles
146
+ if (injectStyles) {
147
+ injectStyles.call(this, context)
148
+ }
149
+ // register component module identifier for async chunk inferrence
150
+ if (context && context._registeredComponents) {
151
+ context._registeredComponents.add(moduleIdentifier)
152
+ }
153
+ }
154
+ // used by ssr in case component is cached and beforeCreate
155
+ // never gets called
156
+ options._ssrRegister = hook
157
+ } else if (injectStyles) {
158
+ hook = shadowMode
159
+ ? function () {
160
+ injectStyles.call(
161
+ this,
162
+ (options.functional ? this.parent : this).$root.$options.shadowRoot
163
+ )
164
+ }
165
+ : injectStyles
166
+ }
319
167
 
320
- var elRect = el.getBoundingClientRect();
321
- var containerRect = void 0;
168
+ if (hook) {
169
+ if (options.functional) {
170
+ // for template-only hot-reload because in that case the render fn doesn't
171
+ // go through the normalizer
172
+ options._injectStyles = hook
173
+ // register for functional component in vue file
174
+ var originalRender = options.render
175
+ options.render = function renderWithStyleInjection(h, context) {
176
+ hook.call(context)
177
+ return originalRender(h, context)
178
+ }
179
+ } else {
180
+ // inject component registration as beforeCreate hook
181
+ var existing = options.beforeCreate
182
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
183
+ }
184
+ }
322
185
 
323
- if ([window, document, document.documentElement, null, undefined].includes(container)) {
324
- containerRect = {
325
- top: 0,
326
- right: window.innerWidth,
327
- bottom: window.innerHeight,
328
- left: 0
329
- };
330
- } else {
331
- containerRect = container.getBoundingClientRect();
332
- }
186
+ return {
187
+ exports: scriptExports,
188
+ options: options
189
+ }
190
+ }
333
191
 
334
- return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
335
- };
336
192
 
337
193
  /***/ }),
338
194
 
339
- /***/ 11:
340
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
341
-
342
- "use strict";
343
-
344
- // EXPORTS
345
- __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
346
-
347
- // UNUSED EXPORTS: use, i18n
348
-
349
- // CONCATENATED MODULE: ./src/locale/lang/zh-CN.js
350
- /* harmony default export */ var zh_CN = ({
351
- el: {
352
- colorpicker: {
353
- confirm: '确定',
354
- clear: '清空'
355
- },
356
- datepicker: {
357
- now: '此刻',
358
- today: '今天',
359
- cancel: '取消',
360
- clear: '清空',
361
- confirm: '确定',
362
- selectDate: '选择日期',
363
- selectTime: '选择时间',
364
- startDate: '开始日期',
365
- startTime: '开始时间',
366
- endDate: '结束日期',
367
- endTime: '结束时间',
368
- prevYear: '前一年',
369
- nextYear: '后一年',
370
- prevMonth: '上个月',
371
- nextMonth: '下个月',
372
- year: '年',
373
- month1: '1 月',
374
- month2: '2 月',
375
- month3: '3 月',
376
- month4: '4 月',
377
- month5: '5 月',
378
- month6: '6 月',
379
- month7: '7 月',
380
- month8: '8 月',
381
- month9: '9 月',
382
- month10: '10 月',
383
- month11: '11 月',
384
- month12: '12 月',
385
- // week: '周次',
386
- weeks: {
387
- sun: '日',
388
- mon: '一',
389
- tue: '二',
390
- wed: '三',
391
- thu: '四',
392
- fri: '五',
393
- sat: '六'
394
- },
395
- months: {
396
- jan: '一月',
397
- feb: '二月',
398
- mar: '三月',
399
- apr: '四月',
400
- may: '五月',
401
- jun: '六月',
402
- jul: '七月',
403
- aug: '八月',
404
- sep: '九月',
405
- oct: '十月',
406
- nov: '十一月',
407
- dec: '十二月'
408
- }
409
- },
410
- select: {
411
- loading: '加载中',
412
- noMatch: '无匹配数据',
413
- noData: '无数据',
414
- placeholder: '请选择'
415
- },
416
- cascader: {
417
- noMatch: '无匹配数据',
418
- loading: '加载中',
419
- placeholder: '请选择',
420
- noData: '暂无数据'
421
- },
422
- pagination: {
423
- goto: '前往',
424
- pagesize: '条/页',
425
- total: '共 {total} 条',
426
- pageClassifier: '页'
427
- },
428
- messagebox: {
429
- title: '提示',
430
- confirm: '确定',
431
- cancel: '取消',
432
- error: '输入的数据不合法!'
433
- },
434
- upload: {
435
- deleteTip: '按 delete 键可删除',
436
- delete: '删除',
437
- preview: '查看图片',
438
- continue: '继续上传'
439
- },
440
- table: {
441
- emptyText: '暂无数据',
442
- confirmFilter: '筛选',
443
- resetFilter: '重置',
444
- clearFilter: '全部',
445
- sumText: '合计'
446
- },
447
- tree: {
448
- emptyText: '暂无数据'
449
- },
450
- transfer: {
451
- noMatch: '无匹配数据',
452
- noData: '无数据',
453
- titles: ['列表 1', '列表 2'],
454
- filterPlaceholder: '请输入搜索内容',
455
- noCheckedFormat: '共 {total} 项',
456
- hasCheckedFormat: '已选 {checked}/{total} 项'
457
- },
458
- image: {
459
- error: '加载失败'
460
- },
461
- pageHeader: {
462
- title: '返回'
463
- },
464
- popconfirm: {
465
- confirmButtonText: '确定',
466
- cancelButtonText: '取消'
467
- },
468
- empty: {
469
- description: '暂无数据'
470
- }
471
- }
472
- });
473
- // EXTERNAL MODULE: external "vue"
474
- var external_vue_ = __webpack_require__(0);
475
- var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
476
-
477
- // EXTERNAL MODULE: ./node_modules/deepmerge/dist/cjs.js
478
- var cjs = __webpack_require__(15);
479
- var cjs_default = /*#__PURE__*/__webpack_require__.n(cjs);
480
-
481
- // EXTERNAL MODULE: ./src/utils/util.js
482
- var util = __webpack_require__(3);
483
-
484
- // CONCATENATED MODULE: ./src/locale/format.js
485
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
486
-
487
-
488
-
489
- var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
490
- /**
491
- * String format template
492
- * - Inspired:
493
- * https://github.com/Matt-Esch/string-template/index.js
494
- */
495
- /* harmony default export */ var format = (function (Vue) {
496
- /**
497
- * template
498
- *
499
- * @param {String} string
500
- * @param {Array} ...args
501
- * @return {String}
502
- */
503
-
504
- function template(string) {
505
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
506
- args[_key - 1] = arguments[_key];
507
- }
508
-
509
- if (args.length === 1 && _typeof(args[0]) === 'object') {
510
- args = args[0];
511
- }
195
+ /***/ 15:
196
+ /***/ (function(module, exports) {
512
197
 
513
- if (!args || !args.hasOwnProperty) {
514
- args = {};
515
- }
198
+ module.exports = require("element-ui/packages/checkbox");
516
199
 
517
- return string.replace(RE_NARGS, function (match, prefix, i, index) {
518
- var result = void 0;
200
+ /***/ }),
519
201
 
520
- if (string[index - 1] === '{' && string[index + match.length] === '}') {
521
- return i;
522
- } else {
523
- result = Object(util["j" /* hasOwn */])(args, i) ? args[i] : null;
524
- if (result === null || result === undefined) {
525
- return '';
526
- }
202
+ /***/ 2:
203
+ /***/ (function(module, exports) {
527
204
 
528
- return result;
529
- }
530
- });
531
- }
205
+ module.exports = require("element-ui/src/utils/dom");
532
206
 
533
- return template;
534
- });
535
- // CONCATENATED MODULE: ./src/locale/index.js
207
+ /***/ }),
536
208
 
209
+ /***/ 20:
210
+ /***/ (function(module, exports) {
537
211
 
212
+ module.exports = require("element-ui/src/locale");
538
213
 
214
+ /***/ }),
539
215
 
216
+ /***/ 28:
217
+ /***/ (function(module, exports) {
540
218
 
541
- var locale_format = format(external_vue_default.a);
542
- var lang = zh_CN;
543
- var merged = false;
544
- var locale_i18nHandler = function i18nHandler() {
545
- var vuei18n = Object.getPrototypeOf(this || external_vue_default.a).$t;
546
- if (typeof vuei18n === 'function' && !!external_vue_default.a.locale) {
547
- if (!merged) {
548
- merged = true;
549
- external_vue_default.a.locale(external_vue_default.a.config.lang, cjs_default()(lang, external_vue_default.a.locale(external_vue_default.a.config.lang) || {}, { clone: true }));
550
- }
551
- return vuei18n.apply(this, arguments);
552
- }
553
- };
219
+ module.exports = require("element-ui/src/transitions/collapse-transition");
554
220
 
555
- var t = function t(path, options) {
556
- var value = locale_i18nHandler.apply(this, arguments);
557
- if (value !== null && value !== undefined) return value;
221
+ /***/ }),
558
222
 
559
- var array = path.split('.');
560
- var current = lang;
223
+ /***/ 3:
224
+ /***/ (function(module, exports) {
561
225
 
562
- for (var i = 0, j = array.length; i < j; i++) {
563
- var property = array[i];
564
- value = current[property];
565
- if (i === j - 1) return locale_format(value, options);
566
- if (!value) return '';
567
- current = value;
568
- }
569
- return '';
570
- };
226
+ module.exports = require("element-ui/src/utils/util");
571
227
 
572
- var use = function use(l) {
573
- lang = l || lang;
574
- };
228
+ /***/ }),
575
229
 
576
- var i18n = function i18n(fn) {
577
- locale_i18nHandler = fn || locale_i18nHandler;
578
- };
230
+ /***/ 4:
231
+ /***/ (function(module, exports) {
579
232
 
580
- /* harmony default export */ var locale = ({ use: use, t: t, i18n: i18n });
233
+ module.exports = require("element-ui/src/mixins/emitter");
581
234
 
582
235
  /***/ }),
583
236
 
584
- /***/ 141:
237
+ /***/ 64:
585
238
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
586
239
 
587
240
  "use strict";
@@ -647,8 +300,9 @@ render._withStripped = true
647
300
 
648
301
  // CONCATENATED MODULE: ./packages/tree/src/tree.vue?vue&type=template&id=1b06c301
649
302
 
650
- // EXTERNAL MODULE: ./src/utils/merge.js
651
- var merge = __webpack_require__(7);
303
+ // EXTERNAL MODULE: external "element-ui/src/utils/merge"
304
+ var merge_ = __webpack_require__(9);
305
+ var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
652
306
 
653
307
  // CONCATENATED MODULE: ./packages/tree/src/model/util.js
654
308
  var NODE_KEY = '$treeNodeId';
@@ -678,8 +332,8 @@ var findNearestComponent = function findNearestComponent(element, componentName)
678
332
  }
679
333
  return null;
680
334
  };
681
- // EXTERNAL MODULE: ./src/utils/util.js
682
- var util = __webpack_require__(3);
335
+ // EXTERNAL MODULE: external "element-ui/src/utils/util"
336
+ var util_ = __webpack_require__(3);
683
337
 
684
338
  // CONCATENATED MODULE: ./packages/tree/src/model/node.js
685
339
  var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
@@ -889,7 +543,7 @@ var node_Node = function () {
889
543
  }
890
544
  }
891
545
  }
892
- Object(merge["a" /* default */])(child, {
546
+ merge_default()(child, {
893
547
  parent: this,
894
548
  store: this.store
895
549
  });
@@ -994,7 +648,7 @@ var node_Node = function () {
994
648
  var defaultProps = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
995
649
 
996
650
  array.forEach(function (item) {
997
- _this2.insertChild(Object(merge["a" /* default */])({ data: item }, defaultProps), undefined, true);
651
+ _this2.insertChild(merge_default()({ data: item }, defaultProps), undefined, true);
998
652
  });
999
653
  };
1000
654
 
@@ -1117,7 +771,7 @@ var node_Node = function () {
1117
771
 
1118
772
  newData.forEach(function (item, index) {
1119
773
  var key = item[NODE_KEY];
1120
- var isNodeExists = !!key && Object(util["b" /* arrayFindIndex */])(oldData, function (data) {
774
+ var isNodeExists = !!key && Object(util_["arrayFindIndex"])(oldData, function (data) {
1121
775
  return data[NODE_KEY] === key;
1122
776
  }) >= 0;
1123
777
  if (isNodeExists) {
@@ -1760,14 +1414,17 @@ tree_nodevue_type_template_id_0abb88b8_render._withStripped = true
1760
1414
 
1761
1415
  // CONCATENATED MODULE: ./packages/tree/src/tree-node.vue?vue&type=template&id=0abb88b8
1762
1416
 
1763
- // EXTERNAL MODULE: ./src/transitions/collapse-transition.js
1764
- var collapse_transition = __webpack_require__(43);
1417
+ // EXTERNAL MODULE: external "element-ui/src/transitions/collapse-transition"
1418
+ var collapse_transition_ = __webpack_require__(28);
1419
+ var collapse_transition_default = /*#__PURE__*/__webpack_require__.n(collapse_transition_);
1765
1420
 
1766
- // EXTERNAL MODULE: ./packages/checkbox/index.js + 5 modules
1767
- var packages_checkbox = __webpack_require__(27);
1421
+ // EXTERNAL MODULE: external "element-ui/packages/checkbox"
1422
+ var checkbox_ = __webpack_require__(15);
1423
+ var checkbox_default = /*#__PURE__*/__webpack_require__.n(checkbox_);
1768
1424
 
1769
- // EXTERNAL MODULE: ./src/mixins/emitter.js
1770
- var emitter = __webpack_require__(6);
1425
+ // EXTERNAL MODULE: external "element-ui/src/mixins/emitter"
1426
+ var emitter_ = __webpack_require__(4);
1427
+ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
1771
1428
 
1772
1429
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/tree-node.vue?vue&type=script&lang=js
1773
1430
 
@@ -1781,7 +1438,7 @@ var emitter = __webpack_require__(6);
1781
1438
 
1782
1439
  componentName: 'ElTreeNode',
1783
1440
 
1784
- mixins: [emitter["a" /* default */]],
1441
+ mixins: [emitter_default.a],
1785
1442
 
1786
1443
  props: {
1787
1444
  node: {
@@ -1802,8 +1459,8 @@ var emitter = __webpack_require__(6);
1802
1459
  },
1803
1460
 
1804
1461
  components: {
1805
- ElCollapseTransition: collapse_transition["a" /* default */],
1806
- ElCheckbox: packages_checkbox["default"],
1462
+ ElCollapseTransition: collapse_transition_default.a,
1463
+ ElCheckbox: checkbox_default.a,
1807
1464
  NodeContent: {
1808
1465
  props: {
1809
1466
  node: {
@@ -1975,7 +1632,7 @@ var emitter = __webpack_require__(6);
1975
1632
  // CONCATENATED MODULE: ./packages/tree/src/tree-node.vue?vue&type=script&lang=js
1976
1633
  /* harmony default export */ var src_tree_nodevue_type_script_lang_js = (tree_nodevue_type_script_lang_js);
1977
1634
  // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
1978
- var componentNormalizer = __webpack_require__(2);
1635
+ var componentNormalizer = __webpack_require__(0);
1979
1636
 
1980
1637
  // CONCATENATED MODULE: ./packages/tree/src/tree-node.vue
1981
1638
 
@@ -1997,11 +1654,11 @@ var component = Object(componentNormalizer["a" /* default */])(
1997
1654
  )
1998
1655
 
1999
1656
  /* harmony default export */ var tree_node = (component.exports);
2000
- // EXTERNAL MODULE: ./src/locale/index.js + 2 modules
2001
- var locale = __webpack_require__(11);
1657
+ // EXTERNAL MODULE: external "element-ui/src/locale"
1658
+ var locale_ = __webpack_require__(20);
2002
1659
 
2003
- // EXTERNAL MODULE: ./src/utils/dom.js
2004
- var dom = __webpack_require__(1);
1660
+ // EXTERNAL MODULE: external "element-ui/src/utils/dom"
1661
+ var dom_ = __webpack_require__(2);
2005
1662
 
2006
1663
  // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/tree/src/tree.vue?vue&type=script&lang=js
2007
1664
 
@@ -2015,7 +1672,7 @@ var dom = __webpack_require__(1);
2015
1672
  /* harmony default export */ var treevue_type_script_lang_js = ({
2016
1673
  name: 'ElTree',
2017
1674
 
2018
- mixins: [emitter["a" /* default */]],
1675
+ mixins: [emitter_default.a],
2019
1676
 
2020
1677
  components: {
2021
1678
  ElTreeNode: tree_node
@@ -2045,7 +1702,7 @@ var dom = __webpack_require__(1);
2045
1702
  emptyText: {
2046
1703
  type: String,
2047
1704
  default: function _default() {
2048
- return Object(locale["a" /* t */])('el.tree.emptyText');
1705
+ return Object(locale_["t"])('el.tree.emptyText');
2049
1706
  }
2050
1707
  },
2051
1708
  renderAfterExpand: {
@@ -2320,7 +1977,7 @@ var dom = __webpack_require__(1);
2320
1977
  var dropNode = findNearestComponent(event.target, 'ElTreeNode');
2321
1978
  var oldDropNode = dragState.dropNode;
2322
1979
  if (oldDropNode && oldDropNode !== dropNode) {
2323
- Object(dom["i" /* removeClass */])(oldDropNode.$el, 'is-drop-inner');
1980
+ Object(dom_["removeClass"])(oldDropNode.$el, 'is-drop-inner');
2324
1981
  }
2325
1982
  var draggingNode = dragState.draggingNode;
2326
1983
  if (!draggingNode || !dropNode) return;
@@ -2391,9 +2048,9 @@ var dom = __webpack_require__(1);
2391
2048
  dropIndicator.style.left = iconPosition.right - treePosition.left + 'px';
2392
2049
 
2393
2050
  if (dropType === 'inner') {
2394
- Object(dom["a" /* addClass */])(dropNode.$el, 'is-drop-inner');
2051
+ Object(dom_["addClass"])(dropNode.$el, 'is-drop-inner');
2395
2052
  } else {
2396
- Object(dom["i" /* removeClass */])(dropNode.$el, 'is-drop-inner');
2053
+ Object(dom_["removeClass"])(dropNode.$el, 'is-drop-inner');
2397
2054
  }
2398
2055
 
2399
2056
  dragState.showDropIndicator = dropType === 'before' || dropType === 'after';
@@ -2426,7 +2083,7 @@ var dom = __webpack_require__(1);
2426
2083
  _this.store.registerNode(draggingNodeCopy);
2427
2084
  }
2428
2085
 
2429
- Object(dom["i" /* removeClass */])(dropNode.$el, 'is-drop-inner');
2086
+ Object(dom_["removeClass"])(dropNode.$el, 'is-drop-inner');
2430
2087
 
2431
2088
  _this.$emit('node-drag-end', draggingNode.node, dropNode.node, dropType, event);
2432
2089
  if (dropType !== 'none') {
@@ -2486,1082 +2143,10 @@ tree.install = function (Vue) {
2486
2143
 
2487
2144
  /***/ }),
2488
2145
 
2489
- /***/ 15:
2490
- /***/ (function(module, exports, __webpack_require__) {
2491
-
2492
- "use strict";
2493
-
2494
-
2495
- var isMergeableObject = function isMergeableObject(value) {
2496
- return isNonNullObject(value)
2497
- && !isSpecial(value)
2498
- };
2499
-
2500
- function isNonNullObject(value) {
2501
- return !!value && typeof value === 'object'
2502
- }
2503
-
2504
- function isSpecial(value) {
2505
- var stringValue = Object.prototype.toString.call(value);
2506
-
2507
- return stringValue === '[object RegExp]'
2508
- || stringValue === '[object Date]'
2509
- || isReactElement(value)
2510
- }
2511
-
2512
- // see https://github.com/facebook/react/blob/b5ac963fb791d1298e7f396236383bc955f916c1/src/isomorphic/classic/element/ReactElement.js#L21-L25
2513
- var canUseSymbol = typeof Symbol === 'function' && Symbol.for;
2514
- var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for('react.element') : 0xeac7;
2515
-
2516
- function isReactElement(value) {
2517
- return value.$$typeof === REACT_ELEMENT_TYPE
2518
- }
2519
-
2520
- function emptyTarget(val) {
2521
- return Array.isArray(val) ? [] : {}
2522
- }
2523
-
2524
- function cloneIfNecessary(value, optionsArgument) {
2525
- var clone = optionsArgument && optionsArgument.clone === true;
2526
- return (clone && isMergeableObject(value)) ? deepmerge(emptyTarget(value), value, optionsArgument) : value
2527
- }
2528
-
2529
- function defaultArrayMerge(target, source, optionsArgument) {
2530
- var destination = target.slice();
2531
- source.forEach(function(e, i) {
2532
- if (typeof destination[i] === 'undefined') {
2533
- destination[i] = cloneIfNecessary(e, optionsArgument);
2534
- } else if (isMergeableObject(e)) {
2535
- destination[i] = deepmerge(target[i], e, optionsArgument);
2536
- } else if (target.indexOf(e) === -1) {
2537
- destination.push(cloneIfNecessary(e, optionsArgument));
2538
- }
2539
- });
2540
- return destination
2541
- }
2542
-
2543
- function mergeObject(target, source, optionsArgument) {
2544
- var destination = {};
2545
- if (isMergeableObject(target)) {
2546
- Object.keys(target).forEach(function(key) {
2547
- destination[key] = cloneIfNecessary(target[key], optionsArgument);
2548
- });
2549
- }
2550
- Object.keys(source).forEach(function(key) {
2551
- if (!isMergeableObject(source[key]) || !target[key]) {
2552
- destination[key] = cloneIfNecessary(source[key], optionsArgument);
2553
- } else {
2554
- destination[key] = deepmerge(target[key], source[key], optionsArgument);
2555
- }
2556
- });
2557
- return destination
2558
- }
2559
-
2560
- function deepmerge(target, source, optionsArgument) {
2561
- var sourceIsArray = Array.isArray(source);
2562
- var targetIsArray = Array.isArray(target);
2563
- var options = optionsArgument || { arrayMerge: defaultArrayMerge };
2564
- var sourceAndTargetTypesMatch = sourceIsArray === targetIsArray;
2565
-
2566
- if (!sourceAndTargetTypesMatch) {
2567
- return cloneIfNecessary(source, optionsArgument)
2568
- } else if (sourceIsArray) {
2569
- var arrayMerge = options.arrayMerge || defaultArrayMerge;
2570
- return arrayMerge(target, source, optionsArgument)
2571
- } else {
2572
- return mergeObject(target, source, optionsArgument)
2573
- }
2574
- }
2575
-
2576
- deepmerge.all = function deepmergeAll(array, optionsArgument) {
2577
- if (!Array.isArray(array) || array.length < 2) {
2578
- throw new Error('first argument should be an array with at least two elements')
2579
- }
2580
-
2581
- // we are sure there are at least 2 values, so it is safe to have no initial value
2582
- return array.reduce(function(prev, next) {
2583
- return deepmerge(prev, next, optionsArgument)
2584
- })
2585
- };
2586
-
2587
- var deepmerge_1 = deepmerge;
2588
-
2589
- module.exports = deepmerge_1;
2590
-
2591
-
2592
- /***/ }),
2593
-
2594
- /***/ 2:
2595
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2596
-
2597
- "use strict";
2598
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
2599
- /* globals __VUE_SSR_CONTEXT__ */
2600
-
2601
- // IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
2602
- // This module is a runtime utility for cleaner component module output and will
2603
- // be included in the final webpack user bundle.
2604
-
2605
- function normalizeComponent(
2606
- scriptExports,
2607
- render,
2608
- staticRenderFns,
2609
- functionalTemplate,
2610
- injectStyles,
2611
- scopeId,
2612
- moduleIdentifier /* server only */,
2613
- shadowMode /* vue-cli only */
2614
- ) {
2615
- // Vue.extend constructor export interop
2616
- var options =
2617
- typeof scriptExports === 'function' ? scriptExports.options : scriptExports
2618
-
2619
- // render functions
2620
- if (render) {
2621
- options.render = render
2622
- options.staticRenderFns = staticRenderFns
2623
- options._compiled = true
2624
- }
2625
-
2626
- // functional template
2627
- if (functionalTemplate) {
2628
- options.functional = true
2629
- }
2630
-
2631
- // scopedId
2632
- if (scopeId) {
2633
- options._scopeId = 'data-v-' + scopeId
2634
- }
2635
-
2636
- var hook
2637
- if (moduleIdentifier) {
2638
- // server build
2639
- hook = function (context) {
2640
- // 2.3 injection
2641
- context =
2642
- context || // cached call
2643
- (this.$vnode && this.$vnode.ssrContext) || // stateful
2644
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
2645
- // 2.2 with runInNewContext: true
2646
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
2647
- context = __VUE_SSR_CONTEXT__
2648
- }
2649
- // inject component styles
2650
- if (injectStyles) {
2651
- injectStyles.call(this, context)
2652
- }
2653
- // register component module identifier for async chunk inferrence
2654
- if (context && context._registeredComponents) {
2655
- context._registeredComponents.add(moduleIdentifier)
2656
- }
2657
- }
2658
- // used by ssr in case component is cached and beforeCreate
2659
- // never gets called
2660
- options._ssrRegister = hook
2661
- } else if (injectStyles) {
2662
- hook = shadowMode
2663
- ? function () {
2664
- injectStyles.call(
2665
- this,
2666
- (options.functional ? this.parent : this).$root.$options.shadowRoot
2667
- )
2668
- }
2669
- : injectStyles
2670
- }
2671
-
2672
- if (hook) {
2673
- if (options.functional) {
2674
- // for template-only hot-reload because in that case the render fn doesn't
2675
- // go through the normalizer
2676
- options._injectStyles = hook
2677
- // register for functional component in vue file
2678
- var originalRender = options.render
2679
- options.render = function renderWithStyleInjection(h, context) {
2680
- hook.call(context)
2681
- return originalRender(h, context)
2682
- }
2683
- } else {
2684
- // inject component registration as beforeCreate hook
2685
- var existing = options.beforeCreate
2686
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
2687
- }
2688
- }
2689
-
2690
- return {
2691
- exports: scriptExports,
2692
- options: options
2693
- }
2694
- }
2695
-
2696
-
2697
- /***/ }),
2698
-
2699
- /***/ 27:
2700
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
2701
-
2702
- "use strict";
2703
- // ESM COMPAT FLAG
2704
- __webpack_require__.r(__webpack_exports__);
2705
-
2706
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=7957d3f1
2707
- var render = function render() {
2708
- var _vm = this,
2709
- _c = _vm._self._c
2710
- return _c(
2711
- "label",
2712
- {
2713
- staticClass: "el-checkbox",
2714
- class: [
2715
- _vm.border && _vm.checkboxSize
2716
- ? "el-checkbox--" + _vm.checkboxSize
2717
- : "",
2718
- { "is-disabled": _vm.isDisabled },
2719
- { "is-bordered": _vm.border },
2720
- { "is-checked": _vm.isChecked },
2721
- ],
2722
- attrs: { id: _vm.id },
2723
- },
2724
- [
2725
- _c(
2726
- "span",
2727
- {
2728
- staticClass: "el-checkbox__input",
2729
- class: {
2730
- "is-disabled": _vm.isDisabled,
2731
- "is-checked": _vm.isChecked,
2732
- "is-indeterminate": _vm.indeterminate,
2733
- "is-focus": _vm.focus,
2734
- },
2735
- attrs: {
2736
- tabindex: _vm.indeterminate ? 0 : false,
2737
- role: _vm.indeterminate ? "checkbox" : false,
2738
- "aria-checked": _vm.indeterminate ? "mixed" : false,
2739
- },
2740
- },
2741
- [
2742
- _c("span", { staticClass: "el-checkbox__inner" }),
2743
- _vm.trueLabel || _vm.falseLabel
2744
- ? _c("input", {
2745
- directives: [
2746
- {
2747
- name: "model",
2748
- rawName: "v-model",
2749
- value: _vm.model,
2750
- expression: "model",
2751
- },
2752
- ],
2753
- staticClass: "el-checkbox__original",
2754
- attrs: {
2755
- type: "checkbox",
2756
- "aria-hidden": _vm.indeterminate ? "true" : "false",
2757
- name: _vm.name,
2758
- disabled: _vm.isDisabled,
2759
- "true-value": _vm.trueLabel,
2760
- "false-value": _vm.falseLabel,
2761
- },
2762
- domProps: {
2763
- checked: Array.isArray(_vm.model)
2764
- ? _vm._i(_vm.model, null) > -1
2765
- : _vm._q(_vm.model, _vm.trueLabel),
2766
- },
2767
- on: {
2768
- change: [
2769
- function ($event) {
2770
- var $$a = _vm.model,
2771
- $$el = $event.target,
2772
- $$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
2773
- if (Array.isArray($$a)) {
2774
- var $$v = null,
2775
- $$i = _vm._i($$a, $$v)
2776
- if ($$el.checked) {
2777
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
2778
- } else {
2779
- $$i > -1 &&
2780
- (_vm.model = $$a
2781
- .slice(0, $$i)
2782
- .concat($$a.slice($$i + 1)))
2783
- }
2784
- } else {
2785
- _vm.model = $$c
2786
- }
2787
- },
2788
- _vm.handleChange,
2789
- ],
2790
- focus: function ($event) {
2791
- _vm.focus = true
2792
- },
2793
- blur: function ($event) {
2794
- _vm.focus = false
2795
- },
2796
- },
2797
- })
2798
- : _c("input", {
2799
- directives: [
2800
- {
2801
- name: "model",
2802
- rawName: "v-model",
2803
- value: _vm.model,
2804
- expression: "model",
2805
- },
2806
- ],
2807
- staticClass: "el-checkbox__original",
2808
- attrs: {
2809
- type: "checkbox",
2810
- "aria-hidden": _vm.indeterminate ? "true" : "false",
2811
- disabled: _vm.isDisabled,
2812
- name: _vm.name,
2813
- },
2814
- domProps: {
2815
- value: _vm.label,
2816
- checked: Array.isArray(_vm.model)
2817
- ? _vm._i(_vm.model, _vm.label) > -1
2818
- : _vm.model,
2819
- },
2820
- on: {
2821
- change: [
2822
- function ($event) {
2823
- var $$a = _vm.model,
2824
- $$el = $event.target,
2825
- $$c = $$el.checked ? true : false
2826
- if (Array.isArray($$a)) {
2827
- var $$v = _vm.label,
2828
- $$i = _vm._i($$a, $$v)
2829
- if ($$el.checked) {
2830
- $$i < 0 && (_vm.model = $$a.concat([$$v]))
2831
- } else {
2832
- $$i > -1 &&
2833
- (_vm.model = $$a
2834
- .slice(0, $$i)
2835
- .concat($$a.slice($$i + 1)))
2836
- }
2837
- } else {
2838
- _vm.model = $$c
2839
- }
2840
- },
2841
- _vm.handleChange,
2842
- ],
2843
- focus: function ($event) {
2844
- _vm.focus = true
2845
- },
2846
- blur: function ($event) {
2847
- _vm.focus = false
2848
- },
2849
- },
2850
- }),
2851
- ]
2852
- ),
2853
- _vm.$slots.default || _vm.label
2854
- ? _c(
2855
- "span",
2856
- { staticClass: "el-checkbox__label" },
2857
- [
2858
- _vm._t("default"),
2859
- !_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e(),
2860
- ],
2861
- 2
2862
- )
2863
- : _vm._e(),
2864
- ]
2865
- )
2866
- }
2867
- var staticRenderFns = []
2868
- render._withStripped = true
2869
-
2870
-
2871
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=7957d3f1
2872
-
2873
- // EXTERNAL MODULE: ./src/mixins/emitter.js
2874
- var emitter = __webpack_require__(6);
2875
-
2876
- // CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js
2877
-
2878
-
2879
-
2880
- /* harmony default export */ var checkboxvue_type_script_lang_js = ({
2881
- name: 'ElCheckbox',
2882
-
2883
- mixins: [emitter["a" /* default */]],
2884
-
2885
- inject: {
2886
- elForm: {
2887
- default: ''
2888
- },
2889
- elFormItem: {
2890
- default: ''
2891
- }
2892
- },
2893
-
2894
- componentName: 'ElCheckbox',
2895
-
2896
- data: function data() {
2897
- return {
2898
- selfModel: false,
2899
- focus: false,
2900
- isLimitExceeded: false
2901
- };
2902
- },
2903
-
2904
-
2905
- computed: {
2906
- model: {
2907
- get: function get() {
2908
- return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
2909
- },
2910
- set: function set(val) {
2911
- if (this.isGroup) {
2912
- this.isLimitExceeded = false;
2913
- this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
2914
-
2915
- this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
2916
-
2917
- this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
2918
- } else {
2919
- this.$emit('input', val);
2920
- this.selfModel = val;
2921
- }
2922
- }
2923
- },
2924
-
2925
- isChecked: function isChecked() {
2926
- if ({}.toString.call(this.model) === '[object Boolean]') {
2927
- return this.model;
2928
- } else if (Array.isArray(this.model)) {
2929
- return this.model.indexOf(this.label) > -1;
2930
- } else if (this.model !== null && this.model !== undefined) {
2931
- return this.model === this.trueLabel;
2932
- }
2933
- },
2934
- isGroup: function isGroup() {
2935
- var parent = this.$parent;
2936
- while (parent) {
2937
- if (parent.$options.componentName !== 'ElCheckboxGroup') {
2938
- parent = parent.$parent;
2939
- } else {
2940
- this._checkboxGroup = parent;
2941
- return true;
2942
- }
2943
- }
2944
- return false;
2945
- },
2946
- store: function store() {
2947
- return this._checkboxGroup ? this._checkboxGroup.value : this.value;
2948
- },
2949
-
2950
-
2951
- /* used to make the isDisabled judgment under max/min props */
2952
- isLimitDisabled: function isLimitDisabled() {
2953
- var _checkboxGroup = this._checkboxGroup,
2954
- max = _checkboxGroup.max,
2955
- min = _checkboxGroup.min;
2956
-
2957
- return !!(max || min) && this.model.length >= max && !this.isChecked || this.model.length <= min && this.isChecked;
2958
- },
2959
- isDisabled: function isDisabled() {
2960
- return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled || this.isLimitDisabled : this.disabled || (this.elForm || {}).disabled;
2961
- },
2962
- _elFormItemSize: function _elFormItemSize() {
2963
- return (this.elFormItem || {}).elFormItemSize;
2964
- },
2965
- checkboxSize: function checkboxSize() {
2966
- var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
2967
- return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize;
2968
- }
2969
- },
2970
-
2971
- props: {
2972
- value: {},
2973
- label: {},
2974
- indeterminate: Boolean,
2975
- disabled: Boolean,
2976
- checked: Boolean,
2977
- name: String,
2978
- trueLabel: [String, Number],
2979
- falseLabel: [String, Number],
2980
- id: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
2981
- controls: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
2982
- border: Boolean,
2983
- size: String
2984
- },
2985
-
2986
- methods: {
2987
- addToStore: function addToStore() {
2988
- if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
2989
- this.model.push(this.label);
2990
- } else {
2991
- this.model = this.trueLabel || true;
2992
- }
2993
- },
2994
- handleChange: function handleChange(ev) {
2995
- var _this = this;
2996
-
2997
- if (this.isLimitExceeded) return;
2998
- var value = void 0;
2999
- if (ev.target.checked) {
3000
- value = this.trueLabel === undefined ? true : this.trueLabel;
3001
- } else {
3002
- value = this.falseLabel === undefined ? false : this.falseLabel;
3003
- }
3004
- this.$emit('change', value, ev);
3005
- this.$nextTick(function () {
3006
- if (_this.isGroup) {
3007
- _this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
3008
- }
3009
- });
3010
- }
3011
- },
3012
-
3013
- created: function created() {
3014
- this.checked && this.addToStore();
3015
- },
3016
- mounted: function mounted() {
3017
- // 为indeterminate元素 添加aria-controls 属性
3018
- if (this.indeterminate) {
3019
- this.$el.setAttribute('aria-controls', this.controls);
3020
- }
3021
- },
3022
-
3023
-
3024
- watch: {
3025
- value: function value(_value) {
3026
- this.dispatch('ElFormItem', 'el.form.change', _value);
3027
- }
3028
- }
3029
- });
3030
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js
3031
- /* harmony default export */ var src_checkboxvue_type_script_lang_js = (checkboxvue_type_script_lang_js);
3032
- // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
3033
- var componentNormalizer = __webpack_require__(2);
3034
-
3035
- // CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue
3036
-
3037
-
3038
-
3039
-
3040
-
3041
- /* normalize component */
3042
-
3043
- var component = Object(componentNormalizer["a" /* default */])(
3044
- src_checkboxvue_type_script_lang_js,
3045
- render,
3046
- staticRenderFns,
3047
- false,
3048
- null,
3049
- null,
3050
- null
3051
-
3052
- )
3053
-
3054
- /* harmony default export */ var src_checkbox = (component.exports);
3055
- // CONCATENATED MODULE: ./packages/checkbox/index.js
3056
-
3057
-
3058
- /* istanbul ignore next */
3059
- src_checkbox.install = function (Vue) {
3060
- Vue.component(src_checkbox.name, src_checkbox);
3061
- };
3062
-
3063
- /* harmony default export */ var packages_checkbox = __webpack_exports__["default"] = (src_checkbox);
3064
-
3065
- /***/ }),
3066
-
3067
- /***/ 3:
3068
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3069
-
3070
- "use strict";
3071
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
3072
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
3073
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
3074
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
3075
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
3076
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
3077
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
3078
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
3079
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
3080
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
3081
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
3082
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
3083
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
3084
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
3085
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
3086
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
3087
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
3088
- /* unused harmony export looseEqual */
3089
- /* unused harmony export arrayEquals */
3090
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
3091
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
3092
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
3093
- /* unused harmony export objToArray */
3094
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
3095
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
3096
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3097
- /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
3098
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3099
-
3100
-
3101
-
3102
-
3103
- var hasOwnProperty = Object.prototype.hasOwnProperty;
3104
-
3105
- function noop() {};
3106
-
3107
- function hasOwn(obj, key) {
3108
- return hasOwnProperty.call(obj, key);
3109
- };
3110
-
3111
- function extend(to, _from) {
3112
- for (var key in _from) {
3113
- to[key] = _from[key];
3114
- }
3115
- return to;
3116
- };
3117
-
3118
- function toObject(arr) {
3119
- var res = {};
3120
- for (var i = 0; i < arr.length; i++) {
3121
- if (arr[i]) {
3122
- extend(res, arr[i]);
3123
- }
3124
- }
3125
- return res;
3126
- };
3127
-
3128
- var getValueByPath = function getValueByPath(object, prop) {
3129
- prop = prop || '';
3130
- var paths = prop.split('.');
3131
- var current = object;
3132
- var result = null;
3133
- for (var i = 0, j = paths.length; i < j; i++) {
3134
- var path = paths[i];
3135
- if (!current) break;
3136
-
3137
- if (i === j - 1) {
3138
- result = current[path];
3139
- break;
3140
- }
3141
- current = current[path];
3142
- }
3143
- return result;
3144
- };
3145
-
3146
- function getPropByPath(obj, path, strict) {
3147
- var tempObj = obj;
3148
- path = path.replace(/\[(\w+)\]/g, '.$1');
3149
- path = path.replace(/^\./, '');
3150
-
3151
- var keyArr = path.split('.');
3152
- var i = 0;
3153
- for (var len = keyArr.length; i < len - 1; ++i) {
3154
- if (!tempObj && !strict) break;
3155
- var key = keyArr[i];
3156
- if (key in tempObj) {
3157
- tempObj = tempObj[key];
3158
- } else {
3159
- if (strict) {
3160
- throw new Error('please transfer a valid prop path to form item!');
3161
- }
3162
- break;
3163
- }
3164
- }
3165
- return {
3166
- o: tempObj,
3167
- k: keyArr[i],
3168
- v: tempObj ? tempObj[keyArr[i]] : null
3169
- };
3170
- };
3171
-
3172
- var generateId = function generateId() {
3173
- return Math.floor(Math.random() * 10000);
3174
- };
3175
-
3176
- var valueEquals = function valueEquals(a, b) {
3177
- // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
3178
- if (a === b) return true;
3179
- if (!(a instanceof Array)) return false;
3180
- if (!(b instanceof Array)) return false;
3181
- if (a.length !== b.length) return false;
3182
- for (var i = 0; i !== a.length; ++i) {
3183
- if (a[i] !== b[i]) return false;
3184
- }
3185
- return true;
3186
- };
3187
-
3188
- var escapeRegexpString = function escapeRegexpString() {
3189
- var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
3190
- return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
3191
- };
3192
-
3193
- // TODO: use native Array.find, Array.findIndex when IE support is dropped
3194
- var arrayFindIndex = function arrayFindIndex(arr, pred) {
3195
- for (var i = 0; i !== arr.length; ++i) {
3196
- if (pred(arr[i])) {
3197
- return i;
3198
- }
3199
- }
3200
- return -1;
3201
- };
3202
-
3203
- var arrayFind = function arrayFind(arr, pred) {
3204
- var idx = arrayFindIndex(arr, pred);
3205
- return idx !== -1 ? arr[idx] : undefined;
3206
- };
3207
-
3208
- // coerce truthy value to array
3209
- var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
3210
- if (Array.isArray(val)) {
3211
- return val;
3212
- } else if (val) {
3213
- return [val];
3214
- } else {
3215
- return [];
3216
- }
3217
- };
3218
-
3219
- var isIE = function isIE() {
3220
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
3221
- };
3222
-
3223
- var isEdge = function isEdge() {
3224
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
3225
- };
3226
-
3227
- var isFirefox = function isFirefox() {
3228
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
3229
- };
3230
-
3231
- var autoprefixer = function autoprefixer(style) {
3232
- if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
3233
- var rules = ['transform', 'transition', 'animation'];
3234
- var prefixes = ['ms-', 'webkit-'];
3235
- rules.forEach(function (rule) {
3236
- var value = style[rule];
3237
- if (rule && value) {
3238
- prefixes.forEach(function (prefix) {
3239
- style[prefix + rule] = value;
3240
- });
3241
- }
3242
- });
3243
- return style;
3244
- };
3245
-
3246
- var kebabCase = function kebabCase(str) {
3247
- var hyphenateRE = /([^-])([A-Z])/g;
3248
- return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
3249
- };
3250
-
3251
- var capitalize = function capitalize(str) {
3252
- if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
3253
- return str.charAt(0).toUpperCase() + str.slice(1);
3254
- };
3255
-
3256
- var looseEqual = function looseEqual(a, b) {
3257
- var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
3258
- var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
3259
- if (isObjectA && isObjectB) {
3260
- return JSON.stringify(a) === JSON.stringify(b);
3261
- } else if (!isObjectA && !isObjectB) {
3262
- return String(a) === String(b);
3263
- } else {
3264
- return false;
3265
- }
3266
- };
3267
-
3268
- var arrayEquals = function arrayEquals(arrayA, arrayB) {
3269
- arrayA = arrayA || [];
3270
- arrayB = arrayB || [];
3271
-
3272
- if (arrayA.length !== arrayB.length) {
3273
- return false;
3274
- }
3275
-
3276
- for (var i = 0; i < arrayA.length; i++) {
3277
- if (!looseEqual(arrayA[i], arrayB[i])) {
3278
- return false;
3279
- }
3280
- }
3281
-
3282
- return true;
3283
- };
3284
-
3285
- var isEqual = function isEqual(value1, value2) {
3286
- if (Array.isArray(value1) && Array.isArray(value2)) {
3287
- return arrayEquals(value1, value2);
3288
- }
3289
- return looseEqual(value1, value2);
3290
- };
3291
-
3292
- var isEmpty = function isEmpty(val) {
3293
- // null or undefined
3294
- if (val == null) return true;
3295
-
3296
- if (typeof val === 'boolean') return false;
3297
-
3298
- if (typeof val === 'number') return !val;
3299
-
3300
- if (val instanceof Error) return val.message === '';
3301
-
3302
- switch (Object.prototype.toString.call(val)) {
3303
- // String or Array
3304
- case '[object String]':
3305
- case '[object Array]':
3306
- return !val.length;
3307
-
3308
- // Map or Set or File
3309
- case '[object File]':
3310
- case '[object Map]':
3311
- case '[object Set]':
3312
- {
3313
- return !val.size;
3314
- }
3315
- // Plain Object
3316
- case '[object Object]':
3317
- {
3318
- return !Object.keys(val).length;
3319
- }
3320
- }
3321
-
3322
- return false;
3323
- };
3324
-
3325
- function rafThrottle(fn) {
3326
- var locked = false;
3327
- return function () {
3328
- var _this = this;
3329
-
3330
- for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
3331
- args[_key] = arguments[_key];
3332
- }
3333
-
3334
- if (locked) return;
3335
- locked = true;
3336
- window.requestAnimationFrame(function (_) {
3337
- fn.apply(_this, args);
3338
- locked = false;
3339
- });
3340
- };
3341
- }
3342
-
3343
- function objToArray(obj) {
3344
- if (Array.isArray(obj)) {
3345
- return obj;
3346
- }
3347
- return isEmpty(obj) ? [] : [obj];
3348
- }
3349
-
3350
- var isMac = function isMac() {
3351
- return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
3352
- };
3353
-
3354
- /***/ }),
3355
-
3356
- /***/ 4:
3357
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3358
-
3359
- "use strict";
3360
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
3361
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
3362
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
3363
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
3364
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
3365
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
3366
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
3367
- /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
3368
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3369
-
3370
-
3371
-
3372
- function isString(obj) {
3373
- return Object.prototype.toString.call(obj) === '[object String]';
3374
- }
3375
-
3376
- function isObject(obj) {
3377
- return Object.prototype.toString.call(obj) === '[object Object]';
3378
- }
3379
-
3380
- function isHtmlElement(node) {
3381
- return node && node.nodeType === Node.ELEMENT_NODE;
3382
- }
3383
-
3384
- /**
3385
- * - Inspired:
3386
- * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
3387
- */
3388
- var isFunction = function isFunction(functionToCheck) {
3389
- var getType = {};
3390
- return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
3391
- };
3392
-
3393
- if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
3394
- isFunction = function isFunction(obj) {
3395
- return typeof obj === 'function' || false;
3396
- };
3397
- }
3398
-
3399
-
3400
-
3401
- var isUndefined = function isUndefined(val) {
3402
- return val === void 0;
3403
- };
3404
-
3405
- var isDefined = function isDefined(val) {
3406
- return val !== undefined && val !== null;
3407
- };
3408
-
3409
- /***/ }),
3410
-
3411
- /***/ 43:
3412
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3413
-
3414
- "use strict";
3415
- /* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1);
3416
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
3417
-
3418
-
3419
-
3420
- var Transition = function () {
3421
- function Transition() {
3422
- _classCallCheck(this, Transition);
3423
- }
3424
-
3425
- Transition.prototype.beforeEnter = function beforeEnter(el) {
3426
- Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__[/* addClass */ "a"])(el, 'collapse-transition');
3427
- if (!el.dataset) el.dataset = {};
3428
-
3429
- el.dataset.oldPaddingTop = el.style.paddingTop;
3430
- el.dataset.oldPaddingBottom = el.style.paddingBottom;
3431
-
3432
- el.style.height = '0';
3433
- el.style.paddingTop = 0;
3434
- el.style.paddingBottom = 0;
3435
- };
3436
-
3437
- Transition.prototype.enter = function enter(el) {
3438
- el.dataset.oldOverflow = el.style.overflow;
3439
- if (el.scrollHeight !== 0) {
3440
- el.style.height = el.scrollHeight + 'px';
3441
- el.style.paddingTop = el.dataset.oldPaddingTop;
3442
- el.style.paddingBottom = el.dataset.oldPaddingBottom;
3443
- } else {
3444
- el.style.height = '';
3445
- el.style.paddingTop = el.dataset.oldPaddingTop;
3446
- el.style.paddingBottom = el.dataset.oldPaddingBottom;
3447
- }
3448
-
3449
- el.style.overflow = 'hidden';
3450
- };
3451
-
3452
- Transition.prototype.afterEnter = function afterEnter(el) {
3453
- // for safari: remove class then reset height is necessary
3454
- Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__[/* removeClass */ "i"])(el, 'collapse-transition');
3455
- el.style.height = '';
3456
- el.style.overflow = el.dataset.oldOverflow;
3457
- };
3458
-
3459
- Transition.prototype.beforeLeave = function beforeLeave(el) {
3460
- if (!el.dataset) el.dataset = {};
3461
- el.dataset.oldPaddingTop = el.style.paddingTop;
3462
- el.dataset.oldPaddingBottom = el.style.paddingBottom;
3463
- el.dataset.oldOverflow = el.style.overflow;
3464
-
3465
- el.style.height = el.scrollHeight + 'px';
3466
- el.style.overflow = 'hidden';
3467
- };
3468
-
3469
- Transition.prototype.leave = function leave(el) {
3470
- if (el.scrollHeight !== 0) {
3471
- // for safari: add class after set height, or it will jump to zero height suddenly, weired
3472
- Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__[/* addClass */ "a"])(el, 'collapse-transition');
3473
- el.style.height = 0;
3474
- el.style.paddingTop = 0;
3475
- el.style.paddingBottom = 0;
3476
- }
3477
- };
3478
-
3479
- Transition.prototype.afterLeave = function afterLeave(el) {
3480
- Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__[/* removeClass */ "i"])(el, 'collapse-transition');
3481
- el.style.height = '';
3482
- el.style.overflow = el.dataset.oldOverflow;
3483
- el.style.paddingTop = el.dataset.oldPaddingTop;
3484
- el.style.paddingBottom = el.dataset.oldPaddingBottom;
3485
- };
3486
-
3487
- return Transition;
3488
- }();
3489
-
3490
- /* harmony default export */ __webpack_exports__["a"] = ({
3491
- name: 'ElCollapseTransition',
3492
- functional: true,
3493
- render: function render(h, _ref) {
3494
- var children = _ref.children;
3495
-
3496
- var data = {
3497
- on: new Transition()
3498
- };
3499
-
3500
- return h('transition', data, children);
3501
- }
3502
- });
3503
-
3504
- /***/ }),
3505
-
3506
- /***/ 6:
3507
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3508
-
3509
- "use strict";
3510
- function _broadcast(componentName, eventName, params) {
3511
- this.$children.forEach(function (child) {
3512
- var name = child.$options.componentName;
3513
-
3514
- if (name === componentName) {
3515
- child.$emit.apply(child, [eventName].concat(params));
3516
- } else {
3517
- _broadcast.apply(child, [componentName, eventName].concat([params]));
3518
- }
3519
- });
3520
- }
3521
- /* harmony default export */ __webpack_exports__["a"] = ({
3522
- methods: {
3523
- dispatch: function dispatch(componentName, eventName, params) {
3524
- var parent = this.$parent || this.$root;
3525
- var name = parent.$options.componentName;
3526
-
3527
- while (parent && (!name || name !== componentName)) {
3528
- parent = parent.$parent;
3529
-
3530
- if (parent) {
3531
- name = parent.$options.componentName;
3532
- }
3533
- }
3534
- if (parent) {
3535
- parent.$emit.apply(parent, [eventName].concat(params));
3536
- }
3537
- },
3538
- broadcast: function broadcast(componentName, eventName, params) {
3539
- _broadcast.call(this, componentName, eventName, params);
3540
- }
3541
- }
3542
- });
3543
-
3544
- /***/ }),
3545
-
3546
- /***/ 7:
3547
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
3548
-
3549
- "use strict";
3550
- /* harmony default export */ __webpack_exports__["a"] = (function (target) {
3551
- for (var i = 1, j = arguments.length; i < j; i++) {
3552
- var source = arguments[i] || {};
3553
- for (var prop in source) {
3554
- if (source.hasOwnProperty(prop)) {
3555
- var value = source[prop];
3556
- if (value !== undefined) {
3557
- target[prop] = value;
3558
- }
3559
- }
3560
- }
3561
- }
2146
+ /***/ 9:
2147
+ /***/ (function(module, exports) {
3562
2148
 
3563
- return target;
3564
- });;
2149
+ module.exports = require("element-ui/src/utils/merge");
3565
2150
 
3566
2151
  /***/ })
3567
2152