cy-element-ui 1.0.68 → 1.0.70
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/autocomplete.js +4 -4
- package/lib/calendar.js +4 -4
- package/lib/carousel.js +2 -2
- package/lib/cascader-panel.js +12 -12
- package/lib/cascader.js +9 -9
- package/lib/color-picker.js +6 -6
- package/lib/date-picker.js +11 -11
- package/lib/descriptions.js +8 -8
- package/lib/dialog.js +2 -2
- package/lib/drawer.js +2 -2
- package/lib/dropdown.js +8 -8
- package/lib/element-ui.common.js +347 -41
- package/lib/empty.js +2 -2
- package/lib/fileUpload.js +8 -8
- package/lib/form-item.js +326 -31
- package/lib/image.js +10 -10
- package/lib/index.js +1 -1
- package/lib/infinite-scroll.js +8 -8
- package/lib/loading.js +4 -4
- package/lib/message-box.js +8 -8
- package/lib/message.js +8 -8
- package/lib/notification.js +4 -4
- package/lib/pagination.js +2 -2
- package/lib/popconfirm.js +8 -8
- package/lib/popover.js +2 -2
- package/lib/rate.js +2 -2
- package/lib/scrollbar.js +2 -2
- package/lib/select.js +12 -12
- package/lib/skeleton-item.js +2 -2
- package/lib/slider.js +2 -2
- package/lib/tabDialog.js +2 -2
- package/lib/table-column.js +2 -2
- package/lib/table.js +13 -13
- package/lib/tabs.js +4 -4
- package/lib/theme-chalk/base.css +1 -1
- package/lib/theme-chalk/element.css +1 -1
- package/lib/theme-chalk/fileUpload.css +1 -1
- package/lib/theme-chalk/index.css +1 -1
- package/lib/theme-chalk/selectDisplayInput.css +1 -1
- package/lib/theme-chalk/src/mixins/mixins.scss +210 -190
- package/lib/theme-chalk/subTitle.css +1 -1
- package/lib/theme-chalk/tabDialog.css +1 -1
- package/lib/theme-chalk/treeSelect.css +1 -1
- package/lib/time-picker.js +7 -7
- package/lib/time-select.js +4 -4
- package/lib/tooltip.js +2 -2
- package/lib/transfer.js +8 -8
- package/lib/tree.js +2 -2
- package/lib/treeSelect.js +2 -2
- package/lib/upload.js +8 -8
- package/package.json +1 -1
- package/packages/form/src/form-item.vue +3 -3
- package/src/index.js +1 -1
- package/lib/theme-chalk/alert.css +0 -1
- package/lib/theme-chalk/aside.css +0 -1
- package/lib/theme-chalk/autocomplete.css +0 -1
- package/lib/theme-chalk/avatar.css +0 -1
- package/lib/theme-chalk/backtop.css +0 -1
- package/lib/theme-chalk/badge.css +0 -1
- package/lib/theme-chalk/breadcrumb-item.css +0 -0
- package/lib/theme-chalk/breadcrumb.css +0 -1
- package/lib/theme-chalk/button-group.css +0 -0
- package/lib/theme-chalk/button.css +0 -1
- package/lib/theme-chalk/calendar.css +0 -1
- package/lib/theme-chalk/card.css +0 -1
- package/lib/theme-chalk/carousel-item.css +0 -1
- package/lib/theme-chalk/carousel.css +0 -1
- package/lib/theme-chalk/cascader-panel.css +0 -1
- package/lib/theme-chalk/cascader.css +0 -1
- package/lib/theme-chalk/checkbox-button.css +0 -0
- package/lib/theme-chalk/checkbox-group.css +0 -0
- package/lib/theme-chalk/checkbox.css +0 -1
- package/lib/theme-chalk/col.css +0 -1
- package/lib/theme-chalk/collapse-item.css +0 -0
- package/lib/theme-chalk/collapse.css +0 -1
- package/lib/theme-chalk/color-picker.css +0 -1
- package/lib/theme-chalk/container.css +0 -1
- package/lib/theme-chalk/date-picker.css +0 -1
- package/lib/theme-chalk/descriptions-item.css +0 -1
- package/lib/theme-chalk/descriptions.css +0 -1
- package/lib/theme-chalk/dialog.css +0 -1
- package/lib/theme-chalk/display.css +0 -1
- package/lib/theme-chalk/divider.css +0 -1
- package/lib/theme-chalk/drawer.css +0 -1
- package/lib/theme-chalk/dropdown-item.css +0 -0
- package/lib/theme-chalk/dropdown-menu.css +0 -0
- package/lib/theme-chalk/dropdown.css +0 -1
- package/lib/theme-chalk/empty.css +0 -1
- package/lib/theme-chalk/fonts/element-icons.ttf +0 -0
- package/lib/theme-chalk/fonts/element-icons.woff +0 -0
- package/lib/theme-chalk/footer.css +0 -1
- package/lib/theme-chalk/form-item.css +0 -0
- package/lib/theme-chalk/form.css +0 -1
- package/lib/theme-chalk/header.css +0 -1
- package/lib/theme-chalk/icon.css +0 -1
- package/lib/theme-chalk/image.css +0 -1
- package/lib/theme-chalk/infinite-scroll.css +0 -0
- package/lib/theme-chalk/infiniteScroll.css +0 -0
- package/lib/theme-chalk/input-number.css +0 -1
- package/lib/theme-chalk/input.css +0 -1
- package/lib/theme-chalk/link.css +0 -1
- package/lib/theme-chalk/loading.css +0 -1
- package/lib/theme-chalk/main.css +0 -1
- package/lib/theme-chalk/menu-item-group.css +0 -0
- package/lib/theme-chalk/menu-item.css +0 -0
- package/lib/theme-chalk/menu.css +0 -1
- package/lib/theme-chalk/message-box.css +0 -1
- package/lib/theme-chalk/message.css +0 -1
- package/lib/theme-chalk/notification.css +0 -1
- package/lib/theme-chalk/option-group.css +0 -1
- package/lib/theme-chalk/option.css +0 -1
- package/lib/theme-chalk/page-header.css +0 -1
- package/lib/theme-chalk/pagination.css +0 -1
- package/lib/theme-chalk/popconfirm.css +0 -1
- package/lib/theme-chalk/popover.css +0 -1
- package/lib/theme-chalk/popper.css +0 -1
- package/lib/theme-chalk/progress.css +0 -1
- package/lib/theme-chalk/radio-button.css +0 -1
- package/lib/theme-chalk/radio-group.css +0 -1
- package/lib/theme-chalk/radio.css +0 -1
- package/lib/theme-chalk/rate.css +0 -1
- package/lib/theme-chalk/reset.css +0 -1
- package/lib/theme-chalk/result.css +0 -1
- package/lib/theme-chalk/row.css +0 -1
- package/lib/theme-chalk/scrollbar.css +0 -1
- package/lib/theme-chalk/select-dropdown.css +0 -1
- package/lib/theme-chalk/select.css +0 -1
- package/lib/theme-chalk/skeleton-item.css +0 -1
- package/lib/theme-chalk/skeleton.css +0 -1
- package/lib/theme-chalk/slider.css +0 -1
- package/lib/theme-chalk/spinner.css +0 -1
- package/lib/theme-chalk/statistic.css +0 -1
- package/lib/theme-chalk/step.css +0 -1
- package/lib/theme-chalk/steps.css +0 -1
- package/lib/theme-chalk/submenu.css +0 -0
- package/lib/theme-chalk/switch.css +0 -1
- package/lib/theme-chalk/tab-pane.css +0 -0
- package/lib/theme-chalk/table-column.css +0 -1
- package/lib/theme-chalk/table.css +0 -1
- package/lib/theme-chalk/tabs.css +0 -1
- package/lib/theme-chalk/tag.css +0 -1
- package/lib/theme-chalk/time-picker.css +0 -1
- package/lib/theme-chalk/time-select.css +0 -1
- package/lib/theme-chalk/timeline-item.css +0 -1
- package/lib/theme-chalk/timeline.css +0 -1
- package/lib/theme-chalk/tooltip.css +0 -1
- package/lib/theme-chalk/transfer.css +0 -1
- package/lib/theme-chalk/tree.css +0 -1
- package/lib/theme-chalk/upload.css +0 -1
package/lib/form-item.js
CHANGED
|
@@ -82,7 +82,7 @@ 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 = 66);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,35 +192,35 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 13:
|
|
196
196
|
/***/ (function(module, exports) {
|
|
197
197
|
|
|
198
|
-
module.exports = require("cy-element-ui/lib/utils/
|
|
198
|
+
module.exports = require("cy-element-ui/lib/utils/types");
|
|
199
199
|
|
|
200
200
|
/***/ }),
|
|
201
201
|
|
|
202
|
-
/***/
|
|
202
|
+
/***/ 50:
|
|
203
203
|
/***/ (function(module, exports) {
|
|
204
204
|
|
|
205
|
-
module.exports = require("
|
|
205
|
+
module.exports = require("async-validator");
|
|
206
206
|
|
|
207
207
|
/***/ }),
|
|
208
208
|
|
|
209
|
-
/***/
|
|
209
|
+
/***/ 6:
|
|
210
210
|
/***/ (function(module, exports) {
|
|
211
211
|
|
|
212
|
-
module.exports = require("
|
|
212
|
+
module.exports = require("vue");
|
|
213
213
|
|
|
214
214
|
/***/ }),
|
|
215
215
|
|
|
216
|
-
/***/
|
|
216
|
+
/***/ 66:
|
|
217
217
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
218
218
|
|
|
219
219
|
"use strict";
|
|
220
220
|
// ESM COMPAT FLAG
|
|
221
221
|
__webpack_require__.r(__webpack_exports__);
|
|
222
222
|
|
|
223
|
-
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form-item.vue?vue&type=template&id=
|
|
223
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form-item.vue?vue&type=template&id=758ebcd1
|
|
224
224
|
var render = function render() {
|
|
225
225
|
var _vm = this,
|
|
226
226
|
_c = _vm._self._c
|
|
@@ -323,23 +323,325 @@ var staticRenderFns = []
|
|
|
323
323
|
render._withStripped = true
|
|
324
324
|
|
|
325
325
|
|
|
326
|
-
// CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=template&id=
|
|
326
|
+
// CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=template&id=758ebcd1
|
|
327
327
|
|
|
328
328
|
// EXTERNAL MODULE: external "async-validator"
|
|
329
329
|
var external_async_validator_ = __webpack_require__(50);
|
|
330
330
|
var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(external_async_validator_);
|
|
331
331
|
|
|
332
|
-
//
|
|
333
|
-
|
|
334
|
-
|
|
332
|
+
// CONCATENATED MODULE: ./src/mixins/emitter.js
|
|
333
|
+
function _broadcast(componentName, eventName, params) {
|
|
334
|
+
this.$children.forEach(function (child) {
|
|
335
|
+
var name = child.$options.componentName;
|
|
336
|
+
|
|
337
|
+
if (name === componentName) {
|
|
338
|
+
child.$emit.apply(child, [eventName].concat(params));
|
|
339
|
+
} else {
|
|
340
|
+
_broadcast.apply(child, [componentName, eventName].concat([params]));
|
|
341
|
+
}
|
|
342
|
+
});
|
|
343
|
+
}
|
|
344
|
+
/* harmony default export */ var emitter = ({
|
|
345
|
+
methods: {
|
|
346
|
+
dispatch: function dispatch(componentName, eventName, params) {
|
|
347
|
+
var parent = this.$parent || this.$root;
|
|
348
|
+
var name = parent.$options.componentName;
|
|
349
|
+
|
|
350
|
+
while (parent && (!name || name !== componentName)) {
|
|
351
|
+
parent = parent.$parent;
|
|
352
|
+
|
|
353
|
+
if (parent) {
|
|
354
|
+
name = parent.$options.componentName;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
if (parent) {
|
|
358
|
+
parent.$emit.apply(parent, [eventName].concat(params));
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
broadcast: function broadcast(componentName, eventName, params) {
|
|
362
|
+
_broadcast.call(this, componentName, eventName, params);
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
// CONCATENATED MODULE: ./src/utils/merge.js
|
|
367
|
+
/* harmony default export */ var merge = (function (target) {
|
|
368
|
+
for (var i = 1, j = arguments.length; i < j; i++) {
|
|
369
|
+
var source = arguments[i] || {};
|
|
370
|
+
for (var prop in source) {
|
|
371
|
+
if (source.hasOwnProperty(prop)) {
|
|
372
|
+
var value = source[prop];
|
|
373
|
+
if (value !== undefined) {
|
|
374
|
+
target[prop] = value;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
return target;
|
|
381
|
+
});;
|
|
382
|
+
// EXTERNAL MODULE: external "vue"
|
|
383
|
+
var external_vue_ = __webpack_require__(6);
|
|
384
|
+
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
|
385
|
+
|
|
386
|
+
// EXTERNAL MODULE: external "cy-element-ui/lib/utils/types"
|
|
387
|
+
var types_ = __webpack_require__(13);
|
|
388
|
+
|
|
389
|
+
// CONCATENATED MODULE: ./src/utils/util.js
|
|
390
|
+
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; };
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
var util_hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
335
396
|
|
|
336
|
-
|
|
337
|
-
var merge_ = __webpack_require__(9);
|
|
338
|
-
var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
|
|
397
|
+
function noop() {};
|
|
339
398
|
|
|
340
|
-
|
|
341
|
-
|
|
399
|
+
function hasOwn(obj, key) {
|
|
400
|
+
return util_hasOwnProperty.call(obj, key);
|
|
401
|
+
};
|
|
402
|
+
|
|
403
|
+
function extend(to, _from) {
|
|
404
|
+
for (var key in _from) {
|
|
405
|
+
to[key] = _from[key];
|
|
406
|
+
}
|
|
407
|
+
return to;
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
function toObject(arr) {
|
|
411
|
+
var res = {};
|
|
412
|
+
for (var i = 0; i < arr.length; i++) {
|
|
413
|
+
if (arr[i]) {
|
|
414
|
+
extend(res, arr[i]);
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
return res;
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
var getValueByPath = function getValueByPath(object, prop) {
|
|
421
|
+
prop = prop || '';
|
|
422
|
+
var paths = prop.split('.');
|
|
423
|
+
var current = object;
|
|
424
|
+
var result = null;
|
|
425
|
+
for (var i = 0, j = paths.length; i < j; i++) {
|
|
426
|
+
var path = paths[i];
|
|
427
|
+
if (!current) break;
|
|
428
|
+
|
|
429
|
+
if (i === j - 1) {
|
|
430
|
+
result = current[path];
|
|
431
|
+
break;
|
|
432
|
+
}
|
|
433
|
+
current = current[path];
|
|
434
|
+
}
|
|
435
|
+
return result;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
function getPropByPath(obj, path, strict) {
|
|
439
|
+
var tempObj = obj;
|
|
440
|
+
path = path.replace(/\[(\w+)\]/g, '.$1');
|
|
441
|
+
path = path.replace(/^\./, '');
|
|
442
|
+
|
|
443
|
+
var keyArr = path.split('.');
|
|
444
|
+
var i = 0;
|
|
445
|
+
for (var len = keyArr.length; i < len - 1; ++i) {
|
|
446
|
+
if (!tempObj && !strict) break;
|
|
447
|
+
var key = keyArr[i];
|
|
448
|
+
if (key in tempObj) {
|
|
449
|
+
tempObj = tempObj[key];
|
|
450
|
+
} else {
|
|
451
|
+
if (strict) {
|
|
452
|
+
throw new Error('please transfer a valid prop path to form item!');
|
|
453
|
+
}
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
return {
|
|
458
|
+
o: tempObj,
|
|
459
|
+
k: keyArr[i],
|
|
460
|
+
v: tempObj ? tempObj[keyArr[i]] : null
|
|
461
|
+
};
|
|
462
|
+
};
|
|
463
|
+
|
|
464
|
+
var generateId = function generateId() {
|
|
465
|
+
return Math.floor(Math.random() * 10000);
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
var valueEquals = function valueEquals(a, b) {
|
|
469
|
+
// see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
|
|
470
|
+
if (a === b) return true;
|
|
471
|
+
if (!(a instanceof Array)) return false;
|
|
472
|
+
if (!(b instanceof Array)) return false;
|
|
473
|
+
if (a.length !== b.length) return false;
|
|
474
|
+
for (var i = 0; i !== a.length; ++i) {
|
|
475
|
+
if (a[i] !== b[i]) return false;
|
|
476
|
+
}
|
|
477
|
+
return true;
|
|
478
|
+
};
|
|
479
|
+
|
|
480
|
+
var escapeRegexpString = function escapeRegexpString() {
|
|
481
|
+
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
482
|
+
return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
|
483
|
+
};
|
|
484
|
+
|
|
485
|
+
// TODO: use native Array.find, Array.findIndex when IE support is dropped
|
|
486
|
+
var arrayFindIndex = function arrayFindIndex(arr, pred) {
|
|
487
|
+
for (var i = 0; i !== arr.length; ++i) {
|
|
488
|
+
if (pred(arr[i])) {
|
|
489
|
+
return i;
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return -1;
|
|
493
|
+
};
|
|
342
494
|
|
|
495
|
+
var arrayFind = function arrayFind(arr, pred) {
|
|
496
|
+
var idx = arrayFindIndex(arr, pred);
|
|
497
|
+
return idx !== -1 ? arr[idx] : undefined;
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
// coerce truthy value to array
|
|
501
|
+
var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
|
|
502
|
+
if (Array.isArray(val)) {
|
|
503
|
+
return val;
|
|
504
|
+
} else if (val) {
|
|
505
|
+
return [val];
|
|
506
|
+
} else {
|
|
507
|
+
return [];
|
|
508
|
+
}
|
|
509
|
+
};
|
|
510
|
+
|
|
511
|
+
var util_isIE = function isIE() {
|
|
512
|
+
return !external_vue_default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
var util_isEdge = function isEdge() {
|
|
516
|
+
return !external_vue_default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
var util_isFirefox = function isFirefox() {
|
|
520
|
+
return !external_vue_default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
|
|
521
|
+
};
|
|
522
|
+
|
|
523
|
+
var autoprefixer = function autoprefixer(style) {
|
|
524
|
+
if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
|
|
525
|
+
var rules = ['transform', 'transition', 'animation'];
|
|
526
|
+
var prefixes = ['ms-', 'webkit-'];
|
|
527
|
+
rules.forEach(function (rule) {
|
|
528
|
+
var value = style[rule];
|
|
529
|
+
if (rule && value) {
|
|
530
|
+
prefixes.forEach(function (prefix) {
|
|
531
|
+
style[prefix + rule] = value;
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
});
|
|
535
|
+
return style;
|
|
536
|
+
};
|
|
537
|
+
|
|
538
|
+
var kebabCase = function kebabCase(str) {
|
|
539
|
+
var hyphenateRE = /([^-])([A-Z])/g;
|
|
540
|
+
return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
|
|
541
|
+
};
|
|
542
|
+
|
|
543
|
+
var util_capitalize = function capitalize(str) {
|
|
544
|
+
if (!Object(types_["isString"])(str)) return str;
|
|
545
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
546
|
+
};
|
|
547
|
+
|
|
548
|
+
var util_looseEqual = function looseEqual(a, b) {
|
|
549
|
+
var isObjectA = Object(types_["isObject"])(a);
|
|
550
|
+
var isObjectB = Object(types_["isObject"])(b);
|
|
551
|
+
if (isObjectA && isObjectB) {
|
|
552
|
+
return JSON.stringify(a) === JSON.stringify(b);
|
|
553
|
+
} else if (!isObjectA && !isObjectB) {
|
|
554
|
+
return String(a) === String(b);
|
|
555
|
+
} else {
|
|
556
|
+
return false;
|
|
557
|
+
}
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
var arrayEquals = function arrayEquals(arrayA, arrayB) {
|
|
561
|
+
arrayA = arrayA || [];
|
|
562
|
+
arrayB = arrayB || [];
|
|
563
|
+
|
|
564
|
+
if (arrayA.length !== arrayB.length) {
|
|
565
|
+
return false;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
for (var i = 0; i < arrayA.length; i++) {
|
|
569
|
+
if (!util_looseEqual(arrayA[i], arrayB[i])) {
|
|
570
|
+
return false;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
return true;
|
|
575
|
+
};
|
|
576
|
+
|
|
577
|
+
var isEqual = function isEqual(value1, value2) {
|
|
578
|
+
if (Array.isArray(value1) && Array.isArray(value2)) {
|
|
579
|
+
return arrayEquals(value1, value2);
|
|
580
|
+
}
|
|
581
|
+
return util_looseEqual(value1, value2);
|
|
582
|
+
};
|
|
583
|
+
|
|
584
|
+
var isEmpty = function isEmpty(val) {
|
|
585
|
+
// null or undefined
|
|
586
|
+
if (val == null) return true;
|
|
587
|
+
|
|
588
|
+
if (typeof val === 'boolean') return false;
|
|
589
|
+
|
|
590
|
+
if (typeof val === 'number') return !val;
|
|
591
|
+
|
|
592
|
+
if (val instanceof Error) return val.message === '';
|
|
593
|
+
|
|
594
|
+
switch (Object.prototype.toString.call(val)) {
|
|
595
|
+
// String or Array
|
|
596
|
+
case '[object String]':
|
|
597
|
+
case '[object Array]':
|
|
598
|
+
return !val.length;
|
|
599
|
+
|
|
600
|
+
// Map or Set or File
|
|
601
|
+
case '[object File]':
|
|
602
|
+
case '[object Map]':
|
|
603
|
+
case '[object Set]':
|
|
604
|
+
{
|
|
605
|
+
return !val.size;
|
|
606
|
+
}
|
|
607
|
+
// Plain Object
|
|
608
|
+
case '[object Object]':
|
|
609
|
+
{
|
|
610
|
+
return !Object.keys(val).length;
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
return false;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
function rafThrottle(fn) {
|
|
618
|
+
var locked = false;
|
|
619
|
+
return function () {
|
|
620
|
+
var _this = this;
|
|
621
|
+
|
|
622
|
+
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
623
|
+
args[_key] = arguments[_key];
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
if (locked) return;
|
|
627
|
+
locked = true;
|
|
628
|
+
window.requestAnimationFrame(function (_) {
|
|
629
|
+
fn.apply(_this, args);
|
|
630
|
+
locked = false;
|
|
631
|
+
});
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
function objToArray(obj) {
|
|
636
|
+
if (Array.isArray(obj)) {
|
|
637
|
+
return obj;
|
|
638
|
+
}
|
|
639
|
+
return isEmpty(obj) ? [] : [obj];
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
var util_isMac = function isMac() {
|
|
643
|
+
return !external_vue_default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
|
|
644
|
+
};
|
|
343
645
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/label-wrap.vue?vue&type=script&lang=js
|
|
344
646
|
|
|
345
647
|
|
|
@@ -459,7 +761,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
459
761
|
|
|
460
762
|
componentName: 'ElFormItem',
|
|
461
763
|
|
|
462
|
-
mixins: [
|
|
764
|
+
mixins: [emitter],
|
|
463
765
|
|
|
464
766
|
provide: function provide() {
|
|
465
767
|
return {
|
|
@@ -566,7 +868,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
566
868
|
path = path.replace(/:/, '.');
|
|
567
869
|
}
|
|
568
870
|
|
|
569
|
-
return
|
|
871
|
+
return getPropByPath(model, path, true).v;
|
|
570
872
|
},
|
|
571
873
|
isRequired: function isRequired() {
|
|
572
874
|
var rules = this.getRules();
|
|
@@ -608,7 +910,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
608
910
|
validate: function validate(trigger) {
|
|
609
911
|
var _this = this;
|
|
610
912
|
|
|
611
|
-
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] :
|
|
913
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : noop;
|
|
612
914
|
|
|
613
915
|
this.validateDisabled = false;
|
|
614
916
|
var rules = this.getFilteredRule(trigger);
|
|
@@ -658,7 +960,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
658
960
|
path = path.replace(/:/, '.');
|
|
659
961
|
}
|
|
660
962
|
|
|
661
|
-
var prop =
|
|
963
|
+
var prop = getPropByPath(model, path, true);
|
|
662
964
|
|
|
663
965
|
this.validateDisabled = true;
|
|
664
966
|
if (Array.isArray(value)) {
|
|
@@ -679,7 +981,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
679
981
|
var selfRules = this.rules;
|
|
680
982
|
var requiredRule = this.required !== undefined ? { required: !!this.required } : [];
|
|
681
983
|
|
|
682
|
-
var prop =
|
|
984
|
+
var prop = getPropByPath(formRules, this.prop || '');
|
|
683
985
|
formRules = formRules ? prop.o[this.prop || ''] || prop.v : [];
|
|
684
986
|
|
|
685
987
|
return [].concat(selfRules || formRules || []).concat(requiredRule);
|
|
@@ -695,7 +997,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
695
997
|
return rule.trigger === trigger;
|
|
696
998
|
}
|
|
697
999
|
}).map(function (rule) {
|
|
698
|
-
return
|
|
1000
|
+
return merge({}, rule);
|
|
699
1001
|
});
|
|
700
1002
|
},
|
|
701
1003
|
onFieldBlur: function onFieldBlur() {
|
|
@@ -775,13 +1077,6 @@ form_item.install = function (Vue) {
|
|
|
775
1077
|
|
|
776
1078
|
/* harmony default export */ var packages_form_item = __webpack_exports__["default"] = (form_item);
|
|
777
1079
|
|
|
778
|
-
/***/ }),
|
|
779
|
-
|
|
780
|
-
/***/ 9:
|
|
781
|
-
/***/ (function(module, exports) {
|
|
782
|
-
|
|
783
|
-
module.exports = require("cy-element-ui/lib/utils/merge");
|
|
784
|
-
|
|
785
1080
|
/***/ })
|
|
786
1081
|
|
|
787
1082
|
/******/ });
|
package/lib/image.js
CHANGED
|
@@ -82,7 +82,7 @@ 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 = 71);
|
|
86
86
|
/******/ })
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
@@ -192,17 +192,17 @@ function normalizeComponent(
|
|
|
192
192
|
|
|
193
193
|
/***/ }),
|
|
194
194
|
|
|
195
|
-
/***/
|
|
195
|
+
/***/ 13:
|
|
196
196
|
/***/ (function(module, exports) {
|
|
197
197
|
|
|
198
|
-
module.exports = require("cy-element-ui/lib/utils/
|
|
198
|
+
module.exports = require("cy-element-ui/lib/utils/types");
|
|
199
199
|
|
|
200
200
|
/***/ }),
|
|
201
201
|
|
|
202
|
-
/***/
|
|
202
|
+
/***/ 15:
|
|
203
203
|
/***/ (function(module, exports) {
|
|
204
204
|
|
|
205
|
-
module.exports = require("cy-element-ui/lib/utils/
|
|
205
|
+
module.exports = require("cy-element-ui/lib/utils/popup");
|
|
206
206
|
|
|
207
207
|
/***/ }),
|
|
208
208
|
|
|
@@ -227,14 +227,14 @@ module.exports = require("cy-element-ui/lib/utils/util");
|
|
|
227
227
|
|
|
228
228
|
/***/ }),
|
|
229
229
|
|
|
230
|
-
/***/
|
|
230
|
+
/***/ 7:
|
|
231
231
|
/***/ (function(module, exports) {
|
|
232
232
|
|
|
233
233
|
module.exports = require("cy-element-ui/lib/mixins/locale");
|
|
234
234
|
|
|
235
235
|
/***/ }),
|
|
236
236
|
|
|
237
|
-
/***/
|
|
237
|
+
/***/ 71:
|
|
238
238
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
239
239
|
|
|
240
240
|
"use strict";
|
|
@@ -442,7 +442,7 @@ var dom_ = __webpack_require__(2);
|
|
|
442
442
|
var util_ = __webpack_require__(3);
|
|
443
443
|
|
|
444
444
|
// EXTERNAL MODULE: external "cy-element-ui/lib/utils/popup"
|
|
445
|
-
var popup_ = __webpack_require__(
|
|
445
|
+
var popup_ = __webpack_require__(15);
|
|
446
446
|
|
|
447
447
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/image/src/image-viewer.vue?vue&type=script&lang=js
|
|
448
448
|
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
@@ -773,11 +773,11 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
773
773
|
|
|
774
774
|
/* harmony default export */ var image_viewer = (component.exports);
|
|
775
775
|
// EXTERNAL MODULE: external "cy-element-ui/lib/mixins/locale"
|
|
776
|
-
var locale_ = __webpack_require__(
|
|
776
|
+
var locale_ = __webpack_require__(7);
|
|
777
777
|
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
778
778
|
|
|
779
779
|
// EXTERNAL MODULE: external "cy-element-ui/lib/utils/types"
|
|
780
|
-
var types_ = __webpack_require__(
|
|
780
|
+
var types_ = __webpack_require__(13);
|
|
781
781
|
|
|
782
782
|
// EXTERNAL MODULE: external "throttle-debounce/throttle"
|
|
783
783
|
var throttle_ = __webpack_require__(25);
|