cy-element-ui 1.0.52 → 1.0.53
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/alert.js +108 -108
- package/lib/aside.js +77 -77
- package/lib/autocomplete.js +5199 -360
- package/lib/avatar.js +4 -4
- package/lib/backtop.js +192 -101
- package/lib/badge.js +108 -108
- package/lib/breadcrumb-item.js +108 -108
- package/lib/breadcrumb.js +94 -94
- package/lib/button-group.js +4 -4
- package/lib/button.js +4 -4
- package/lib/calendar.js +1734 -137
- package/lib/card.js +96 -96
- package/lib/carousel-item.js +452 -108
- package/lib/carousel.js +1256 -105
- package/lib/cascader-panel.js +3524 -191
- package/lib/cascader.js +8077 -717
- package/lib/checkbox-button.js +151 -119
- package/lib/checkbox-group.js +47 -15
- package/lib/checkbox.js +47 -15
- package/lib/col.js +2 -2
- package/lib/collapse-item.js +815 -110
- package/lib/collapse.js +108 -108
- package/lib/color-picker.js +4705 -828
- package/lib/container.js +88 -88
- package/lib/date-picker.js +10735 -4709
- package/lib/descriptions-item.js +2 -2
- package/lib/descriptions.js +63 -8
- package/lib/dialog.js +1200 -22
- package/lib/directives/repeat-click.js +2 -2
- package/lib/divider.js +104 -104
- package/lib/drawer.js +875 -105
- package/lib/dropdown-item.js +128 -96
- package/lib/dropdown-menu.js +2301 -99
- package/lib/dropdown.js +990 -54
- package/lib/element-ui.common.js +31129 -13451
- package/lib/empty.js +793 -99
- package/lib/fileUpload.js +2542 -26
- package/lib/footer.js +77 -77
- package/lib/form-item.js +3305 -202
- package/lib/form.js +129 -115
- package/lib/header.js +77 -77
- package/lib/icon.js +67 -67
- package/lib/image.js +1662 -146
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +435 -26
- package/lib/input-number.js +1458 -24
- package/lib/input.js +509 -37
- package/lib/link.js +4 -4
- package/lib/loading.js +886 -149
- package/lib/locale/format.js +1 -1
- package/lib/main.js +64 -64
- package/lib/menu-item-group.js +103 -103
- package/lib/menu-item.js +3140 -137
- package/lib/menu.js +1058 -123
- package/lib/message-box.js +2743 -188
- package/lib/message.js +1196 -118
- package/lib/mixins/migrating.js +1 -1
- package/lib/notification.js +1196 -119
- package/lib/option-group.js +151 -119
- package/lib/option.js +392 -16
- package/lib/page-header.js +781 -87
- package/lib/pagination.js +7747 -646
- package/lib/popconfirm.js +3606 -219
- package/lib/popover.js +2604 -79
- package/lib/progress.js +4 -4
- package/lib/radio-button.js +151 -119
- package/lib/radio-group.js +151 -119
- package/lib/radio.js +47 -15
- package/lib/rate.js +756 -113
- package/lib/result.js +108 -108
- package/lib/row.js +2 -2
- package/lib/scrollbar.js +1813 -41
- package/lib/select.js +5547 -209
- package/lib/selectDisplayInput.js +4 -4
- package/lib/skeleton-item.js +108 -108
- package/lib/skeleton.js +108 -108
- package/lib/slider.js +4768 -530
- package/lib/spinner.js +100 -100
- package/lib/statistic.js +9600 -112
- package/lib/step.js +108 -108
- package/lib/steps.js +514 -99
- package/lib/subTitle.js +91 -91
- package/lib/submenu.js +2397 -76
- package/lib/switch.js +582 -127
- package/lib/tab-pane.js +108 -108
- package/lib/tabDialog.js +1630 -104
- package/lib/table-column.js +1115 -267
- package/lib/table.js +7085 -1253
- package/lib/tabs.js +1615 -113
- package/lib/tag.js +4 -4
- package/lib/time-picker.js +6487 -550
- package/lib/time-select.js +6334 -407
- package/lib/timeline-item.js +108 -108
- package/lib/timeline.js +4 -4
- package/lib/tooltip.js +2688 -44
- package/lib/transfer.js +2238 -146
- package/lib/transitions/collapse-transition.js +1 -1
- package/lib/tree.js +1563 -148
- package/lib/treeSelect.js +3421 -106
- package/lib/upload.js +1198 -31
- package/lib/utils/clickoutside.js +1 -1
- package/lib/utils/date-util.js +2 -2
- package/lib/utils/popup/index.js +2 -2
- package/lib/utils/popup/popup-manager.js +1 -1
- package/lib/utils/util.js +1 -1
- package/lib/utils/vdom.js +1 -1
- package/lib/utils/vue-popper.js +1 -1
- package/package.json +1 -1
- package/src/directives/repeat-click.js +2 -2
- package/src/index.js +1 -1
- package/src/locale/format.js +1 -1
- package/src/mixins/migrating.js +1 -1
- package/src/transitions/collapse-transition.js +1 -1
- package/src/utils/clickoutside.js +1 -1
- package/src/utils/date-util.js +2 -2
- package/src/utils/popup/index.js +2 -2
- package/src/utils/popup/popup-manager.js +1 -1
- package/src/utils/util.js +1 -1
- package/src/utils/vdom.js +1 -1
- package/src/utils/vue-popper.js +1 -1
package/lib/option.js
CHANGED
|
@@ -82,12 +82,19 @@ module.exports =
|
|
|
82
82
|
/******/
|
|
83
83
|
/******/
|
|
84
84
|
/******/ // Load entry module and return exports
|
|
85
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = 68);
|
|
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
|
+
/***/ 2:
|
|
91
98
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
99
|
|
|
93
100
|
"use strict";
|
|
@@ -193,9 +200,291 @@ function normalizeComponent(
|
|
|
193
200
|
/***/ }),
|
|
194
201
|
|
|
195
202
|
/***/ 3:
|
|
196
|
-
/***/ (function(module,
|
|
203
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
204
|
+
|
|
205
|
+
"use strict";
|
|
206
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
|
|
207
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
|
|
208
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
|
|
209
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
|
|
210
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
|
|
211
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
|
|
212
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
|
|
213
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
|
|
214
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
|
|
215
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
|
|
216
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
|
|
217
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
|
|
218
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
|
|
219
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
|
|
220
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
|
|
221
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
|
|
222
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
|
|
223
|
+
/* unused harmony export looseEqual */
|
|
224
|
+
/* unused harmony export arrayEquals */
|
|
225
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
|
|
226
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
|
|
227
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
|
|
228
|
+
/* unused harmony export objToArray */
|
|
229
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
|
|
230
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
231
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
232
|
+
/* harmony import */ var _types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
|
|
233
|
+
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; };
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
239
|
+
|
|
240
|
+
function noop() {};
|
|
241
|
+
|
|
242
|
+
function hasOwn(obj, key) {
|
|
243
|
+
return hasOwnProperty.call(obj, key);
|
|
244
|
+
};
|
|
245
|
+
|
|
246
|
+
function extend(to, _from) {
|
|
247
|
+
for (var key in _from) {
|
|
248
|
+
to[key] = _from[key];
|
|
249
|
+
}
|
|
250
|
+
return to;
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
function toObject(arr) {
|
|
254
|
+
var res = {};
|
|
255
|
+
for (var i = 0; i < arr.length; i++) {
|
|
256
|
+
if (arr[i]) {
|
|
257
|
+
extend(res, arr[i]);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
return res;
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
var getValueByPath = function getValueByPath(object, prop) {
|
|
264
|
+
prop = prop || '';
|
|
265
|
+
var paths = prop.split('.');
|
|
266
|
+
var current = object;
|
|
267
|
+
var result = null;
|
|
268
|
+
for (var i = 0, j = paths.length; i < j; i++) {
|
|
269
|
+
var path = paths[i];
|
|
270
|
+
if (!current) break;
|
|
271
|
+
|
|
272
|
+
if (i === j - 1) {
|
|
273
|
+
result = current[path];
|
|
274
|
+
break;
|
|
275
|
+
}
|
|
276
|
+
current = current[path];
|
|
277
|
+
}
|
|
278
|
+
return result;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
function getPropByPath(obj, path, strict) {
|
|
282
|
+
var tempObj = obj;
|
|
283
|
+
path = path.replace(/\[(\w+)\]/g, '.$1');
|
|
284
|
+
path = path.replace(/^\./, '');
|
|
285
|
+
|
|
286
|
+
var keyArr = path.split('.');
|
|
287
|
+
var i = 0;
|
|
288
|
+
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
289
|
+
if (!tempObj && !strict) break;
|
|
290
|
+
var key = keyArr[i];
|
|
291
|
+
if (key in tempObj) {
|
|
292
|
+
tempObj = tempObj[key];
|
|
293
|
+
} else {
|
|
294
|
+
if (strict) {
|
|
295
|
+
throw new Error('please transfer a valid prop path to form item!');
|
|
296
|
+
}
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return {
|
|
301
|
+
o: tempObj,
|
|
302
|
+
k: keyArr[i],
|
|
303
|
+
v: tempObj ? tempObj[keyArr[i]] : null
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
var generateId = function generateId() {
|
|
308
|
+
return Math.floor(Math.random() * 10000);
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
var valueEquals = function valueEquals(a, b) {
|
|
312
|
+
// see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
|
|
313
|
+
if (a === b) return true;
|
|
314
|
+
if (!(a instanceof Array)) return false;
|
|
315
|
+
if (!(b instanceof Array)) return false;
|
|
316
|
+
if (a.length !== b.length) return false;
|
|
317
|
+
for (var i = 0; i !== a.length; ++i) {
|
|
318
|
+
if (a[i] !== b[i]) return false;
|
|
319
|
+
}
|
|
320
|
+
return true;
|
|
321
|
+
};
|
|
322
|
+
|
|
323
|
+
var escapeRegexpString = function escapeRegexpString() {
|
|
324
|
+
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
325
|
+
return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
// TODO: use native Array.find, Array.findIndex when IE support is dropped
|
|
329
|
+
var arrayFindIndex = function arrayFindIndex(arr, pred) {
|
|
330
|
+
for (var i = 0; i !== arr.length; ++i) {
|
|
331
|
+
if (pred(arr[i])) {
|
|
332
|
+
return i;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
return -1;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
var arrayFind = function arrayFind(arr, pred) {
|
|
339
|
+
var idx = arrayFindIndex(arr, pred);
|
|
340
|
+
return idx !== -1 ? arr[idx] : undefined;
|
|
341
|
+
};
|
|
342
|
+
|
|
343
|
+
// coerce truthy value to array
|
|
344
|
+
var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
|
|
345
|
+
if (Array.isArray(val)) {
|
|
346
|
+
return val;
|
|
347
|
+
} else if (val) {
|
|
348
|
+
return [val];
|
|
349
|
+
} else {
|
|
350
|
+
return [];
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
var isIE = function isIE() {
|
|
355
|
+
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
var isEdge = function isEdge() {
|
|
359
|
+
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
|
|
360
|
+
};
|
|
361
|
+
|
|
362
|
+
var isFirefox = function isFirefox() {
|
|
363
|
+
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
|
|
364
|
+
};
|
|
365
|
+
|
|
366
|
+
var autoprefixer = function autoprefixer(style) {
|
|
367
|
+
if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
|
|
368
|
+
var rules = ['transform', 'transition', 'animation'];
|
|
369
|
+
var prefixes = ['ms-', 'webkit-'];
|
|
370
|
+
rules.forEach(function (rule) {
|
|
371
|
+
var value = style[rule];
|
|
372
|
+
if (rule && value) {
|
|
373
|
+
prefixes.forEach(function (prefix) {
|
|
374
|
+
style[prefix + rule] = value;
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
});
|
|
378
|
+
return style;
|
|
379
|
+
};
|
|
380
|
+
|
|
381
|
+
var kebabCase = function kebabCase(str) {
|
|
382
|
+
var hyphenateRE = /([^-])([A-Z])/g;
|
|
383
|
+
return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
var capitalize = function capitalize(str) {
|
|
387
|
+
if (!Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
|
|
388
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
389
|
+
};
|
|
390
|
+
|
|
391
|
+
var looseEqual = function looseEqual(a, b) {
|
|
392
|
+
var isObjectA = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
|
|
393
|
+
var isObjectB = Object(_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
|
|
394
|
+
if (isObjectA && isObjectB) {
|
|
395
|
+
return JSON.stringify(a) === JSON.stringify(b);
|
|
396
|
+
} else if (!isObjectA && !isObjectB) {
|
|
397
|
+
return String(a) === String(b);
|
|
398
|
+
} else {
|
|
399
|
+
return false;
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
var arrayEquals = function arrayEquals(arrayA, arrayB) {
|
|
404
|
+
arrayA = arrayA || [];
|
|
405
|
+
arrayB = arrayB || [];
|
|
406
|
+
|
|
407
|
+
if (arrayA.length !== arrayB.length) {
|
|
408
|
+
return false;
|
|
409
|
+
}
|
|
197
410
|
|
|
198
|
-
|
|
411
|
+
for (var i = 0; i < arrayA.length; i++) {
|
|
412
|
+
if (!looseEqual(arrayA[i], arrayB[i])) {
|
|
413
|
+
return false;
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
return true;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
var isEqual = function isEqual(value1, value2) {
|
|
421
|
+
if (Array.isArray(value1) && Array.isArray(value2)) {
|
|
422
|
+
return arrayEquals(value1, value2);
|
|
423
|
+
}
|
|
424
|
+
return looseEqual(value1, value2);
|
|
425
|
+
};
|
|
426
|
+
|
|
427
|
+
var isEmpty = function isEmpty(val) {
|
|
428
|
+
// null or undefined
|
|
429
|
+
if (val == null) return true;
|
|
430
|
+
|
|
431
|
+
if (typeof val === 'boolean') return false;
|
|
432
|
+
|
|
433
|
+
if (typeof val === 'number') return !val;
|
|
434
|
+
|
|
435
|
+
if (val instanceof Error) return val.message === '';
|
|
436
|
+
|
|
437
|
+
switch (Object.prototype.toString.call(val)) {
|
|
438
|
+
// String or Array
|
|
439
|
+
case '[object String]':
|
|
440
|
+
case '[object Array]':
|
|
441
|
+
return !val.length;
|
|
442
|
+
|
|
443
|
+
// Map or Set or File
|
|
444
|
+
case '[object File]':
|
|
445
|
+
case '[object Map]':
|
|
446
|
+
case '[object Set]':
|
|
447
|
+
{
|
|
448
|
+
return !val.size;
|
|
449
|
+
}
|
|
450
|
+
// Plain Object
|
|
451
|
+
case '[object Object]':
|
|
452
|
+
{
|
|
453
|
+
return !Object.keys(val).length;
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
return false;
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
function rafThrottle(fn) {
|
|
461
|
+
var locked = false;
|
|
462
|
+
return function () {
|
|
463
|
+
var _this = this;
|
|
464
|
+
|
|
465
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
466
|
+
args[_key] = arguments[_key];
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
if (locked) return;
|
|
470
|
+
locked = true;
|
|
471
|
+
window.requestAnimationFrame(function (_) {
|
|
472
|
+
fn.apply(_this, args);
|
|
473
|
+
locked = false;
|
|
474
|
+
});
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
function objToArray(obj) {
|
|
479
|
+
if (Array.isArray(obj)) {
|
|
480
|
+
return obj;
|
|
481
|
+
}
|
|
482
|
+
return isEmpty(obj) ? [] : [obj];
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
var isMac = function isMac() {
|
|
486
|
+
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
|
|
487
|
+
};
|
|
199
488
|
|
|
200
489
|
/***/ }),
|
|
201
490
|
|
|
@@ -247,12 +536,11 @@ render._withStripped = true
|
|
|
247
536
|
|
|
248
537
|
// CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=template&id=f9fadb56
|
|
249
538
|
|
|
250
|
-
// EXTERNAL MODULE:
|
|
251
|
-
var
|
|
252
|
-
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
539
|
+
// EXTERNAL MODULE: ./src/mixins/emitter.js
|
|
540
|
+
var emitter = __webpack_require__(6);
|
|
253
541
|
|
|
254
|
-
// EXTERNAL MODULE:
|
|
255
|
-
var
|
|
542
|
+
// EXTERNAL MODULE: ./src/utils/util.js
|
|
543
|
+
var util = __webpack_require__(3);
|
|
256
544
|
|
|
257
545
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option.vue?vue&type=script&lang=js
|
|
258
546
|
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; };
|
|
@@ -261,7 +549,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
261
549
|
|
|
262
550
|
|
|
263
551
|
/* harmony default export */ var optionvue_type_script_lang_js = ({
|
|
264
|
-
mixins: [
|
|
552
|
+
mixins: [emitter["a" /* default */]],
|
|
265
553
|
|
|
266
554
|
name: 'ElOption',
|
|
267
555
|
|
|
@@ -342,7 +630,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
342
630
|
return a === b;
|
|
343
631
|
} else {
|
|
344
632
|
var valueKey = this.select.valueKey;
|
|
345
|
-
return Object(
|
|
633
|
+
return Object(util["i" /* getValueByPath */])(a, valueKey) === Object(util["i" /* getValueByPath */])(b, valueKey);
|
|
346
634
|
}
|
|
347
635
|
},
|
|
348
636
|
contains: function contains() {
|
|
@@ -354,7 +642,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
354
642
|
} else {
|
|
355
643
|
var valueKey = this.select.valueKey;
|
|
356
644
|
return arr && arr.some(function (item) {
|
|
357
|
-
return Object(
|
|
645
|
+
return Object(util["i" /* getValueByPath */])(item, valueKey) === Object(util["i" /* getValueByPath */])(target, valueKey);
|
|
358
646
|
});
|
|
359
647
|
}
|
|
360
648
|
},
|
|
@@ -372,7 +660,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
372
660
|
}
|
|
373
661
|
},
|
|
374
662
|
queryChange: function queryChange(query) {
|
|
375
|
-
this.visible = new RegExp(Object(
|
|
663
|
+
this.visible = new RegExp(Object(util["f" /* escapeRegexpString */])(query), 'i').test(this.currentLabel) || this.created;
|
|
376
664
|
if (!this.visible) {
|
|
377
665
|
this.select.filteredOptionsCount--;
|
|
378
666
|
}
|
|
@@ -407,7 +695,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
|
|
|
407
695
|
// CONCATENATED MODULE: ./packages/select/src/option.vue?vue&type=script&lang=js
|
|
408
696
|
/* harmony default export */ var src_optionvue_type_script_lang_js = (optionvue_type_script_lang_js);
|
|
409
697
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
410
|
-
var componentNormalizer = __webpack_require__(
|
|
698
|
+
var componentNormalizer = __webpack_require__(2);
|
|
411
699
|
|
|
412
700
|
// CONCATENATED MODULE: ./packages/select/src/option.vue
|
|
413
701
|
|
|
@@ -433,13 +721,101 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
433
721
|
/***/ }),
|
|
434
722
|
|
|
435
723
|
/***/ 4:
|
|
436
|
-
/***/ (function(module,
|
|
724
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
725
|
+
|
|
726
|
+
"use strict";
|
|
727
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
|
|
728
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
|
|
729
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
|
|
730
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
|
|
731
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
|
|
732
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
|
|
733
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
|
|
734
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
735
|
+
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; };
|
|
736
|
+
|
|
437
737
|
|
|
438
|
-
|
|
738
|
+
|
|
739
|
+
function isString(obj) {
|
|
740
|
+
return Object.prototype.toString.call(obj) === '[object String]';
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
function isObject(obj) {
|
|
744
|
+
return Object.prototype.toString.call(obj) === '[object Object]';
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
function isHtmlElement(node) {
|
|
748
|
+
return node && node.nodeType === Node.ELEMENT_NODE;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* - Inspired:
|
|
753
|
+
* https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
|
|
754
|
+
*/
|
|
755
|
+
var isFunction = function isFunction(functionToCheck) {
|
|
756
|
+
var getType = {};
|
|
757
|
+
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
|
|
761
|
+
isFunction = function isFunction(obj) {
|
|
762
|
+
return typeof obj === 'function' || false;
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
var isUndefined = function isUndefined(val) {
|
|
769
|
+
return val === void 0;
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
var isDefined = function isDefined(val) {
|
|
773
|
+
return val !== undefined && val !== null;
|
|
774
|
+
};
|
|
775
|
+
|
|
776
|
+
/***/ }),
|
|
777
|
+
|
|
778
|
+
/***/ 6:
|
|
779
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
780
|
+
|
|
781
|
+
"use strict";
|
|
782
|
+
function _broadcast(componentName, eventName, params) {
|
|
783
|
+
this.$children.forEach(function (child) {
|
|
784
|
+
var name = child.$options.componentName;
|
|
785
|
+
|
|
786
|
+
if (name === componentName) {
|
|
787
|
+
child.$emit.apply(child, [eventName].concat(params));
|
|
788
|
+
} else {
|
|
789
|
+
_broadcast.apply(child, [componentName, eventName].concat([params]));
|
|
790
|
+
}
|
|
791
|
+
});
|
|
792
|
+
}
|
|
793
|
+
/* harmony default export */ __webpack_exports__["a"] = ({
|
|
794
|
+
methods: {
|
|
795
|
+
dispatch: function dispatch(componentName, eventName, params) {
|
|
796
|
+
var parent = this.$parent || this.$root;
|
|
797
|
+
var name = parent.$options.componentName;
|
|
798
|
+
|
|
799
|
+
while (parent && (!name || name !== componentName)) {
|
|
800
|
+
parent = parent.$parent;
|
|
801
|
+
|
|
802
|
+
if (parent) {
|
|
803
|
+
name = parent.$options.componentName;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
if (parent) {
|
|
807
|
+
parent.$emit.apply(parent, [eventName].concat(params));
|
|
808
|
+
}
|
|
809
|
+
},
|
|
810
|
+
broadcast: function broadcast(componentName, eventName, params) {
|
|
811
|
+
_broadcast.call(this, componentName, eventName, params);
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
});
|
|
439
815
|
|
|
440
816
|
/***/ }),
|
|
441
817
|
|
|
442
|
-
/***/
|
|
818
|
+
/***/ 68:
|
|
443
819
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
444
820
|
|
|
445
821
|
"use strict";
|