forward
This commit is contained in:
parent
d93fdf6a0e
commit
e494376855
6 changed files with 62 additions and 75 deletions
127
dist/iview.js
vendored
127
dist/iview.js
vendored
|
@ -680,7 +680,7 @@ exports.default = {
|
|||
/* 5 */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
var core = module.exports = { version: '2.6.12' };
|
||||
var core = module.exports = { version: '2.6.9' };
|
||||
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
|
||||
|
||||
|
||||
|
@ -2590,7 +2590,7 @@ var store = global[SHARED] || (global[SHARED] = {});
|
|||
})('versions', []).push({
|
||||
version: core.version,
|
||||
mode: __webpack_require__(42) ? 'pure' : 'global',
|
||||
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
|
||||
copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
|
||||
});
|
||||
|
||||
|
||||
|
@ -6142,7 +6142,7 @@ var Popper = isServer ? function () {} : __webpack_require__(114);exports.defaul
|
|||
|
||||
/* WEBPACK VAR INJECTION */(function(global) {/**!
|
||||
* @fileOverview Kickass library to create and place poppers near their reference elements.
|
||||
* @version 1.16.1
|
||||
* @version 1.15.0
|
||||
* @license
|
||||
* Copyright (c) 2016 Federico Zivolo and contributors
|
||||
*
|
||||
|
@ -6170,17 +6170,16 @@ var Popper = isServer ? function () {} : __webpack_require__(114);exports.defaul
|
|||
(global.Popper = factory());
|
||||
}(this, (function () { 'use strict';
|
||||
|
||||
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';
|
||||
var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined';
|
||||
|
||||
var timeoutDuration = function () {
|
||||
var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
|
||||
for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
|
||||
if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
|
||||
return 1;
|
||||
}
|
||||
var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];
|
||||
var timeoutDuration = 0;
|
||||
for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {
|
||||
if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {
|
||||
timeoutDuration = 1;
|
||||
break;
|
||||
}
|
||||
return 0;
|
||||
}();
|
||||
}
|
||||
|
||||
function microtaskDebounce(fn) {
|
||||
var called = false;
|
||||
|
@ -6300,17 +6299,6 @@ function getScrollParent(element) {
|
|||
return getScrollParent(getParentNode(element));
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the reference node of the reference object, or the reference object itself.
|
||||
* @method
|
||||
* @memberof Popper.Utils
|
||||
* @param {Element|Object} reference - the reference element (the popper will be relative to this)
|
||||
* @returns {Element} parent
|
||||
*/
|
||||
function getReferenceNode(reference) {
|
||||
return reference && reference.referenceNode ? reference.referenceNode : reference;
|
||||
}
|
||||
|
||||
var isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);
|
||||
var isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);
|
||||
|
||||
|
@ -6494,7 +6482,7 @@ function getBordersSize(styles, axis) {
|
|||
var sideA = axis === 'x' ? 'Left' : 'Top';
|
||||
var sideB = sideA === 'Left' ? 'Right' : 'Bottom';
|
||||
|
||||
return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);
|
||||
return parseFloat(styles['border' + sideA + 'Width'], 10) + parseFloat(styles['border' + sideB + 'Width'], 10);
|
||||
}
|
||||
|
||||
function getSize(axis, body, html, computedStyle) {
|
||||
|
@ -6619,8 +6607,8 @@ function getBoundingClientRect(element) {
|
|||
|
||||
// subtract scrollbar size from sizes
|
||||
var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};
|
||||
var width = sizes.width || element.clientWidth || result.width;
|
||||
var height = sizes.height || element.clientHeight || result.height;
|
||||
var width = sizes.width || element.clientWidth || result.right - result.left;
|
||||
var height = sizes.height || element.clientHeight || result.bottom - result.top;
|
||||
|
||||
var horizScrollbar = element.offsetWidth - width;
|
||||
var vertScrollbar = element.offsetHeight - height;
|
||||
|
@ -6649,8 +6637,8 @@ function getOffsetRectRelativeToArbitraryNode(children, parent) {
|
|||
var scrollParent = getScrollParent(children);
|
||||
|
||||
var styles = getStyleComputedProperty(parent);
|
||||
var borderTopWidth = parseFloat(styles.borderTopWidth);
|
||||
var borderLeftWidth = parseFloat(styles.borderLeftWidth);
|
||||
var borderTopWidth = parseFloat(styles.borderTopWidth, 10);
|
||||
var borderLeftWidth = parseFloat(styles.borderLeftWidth, 10);
|
||||
|
||||
// In cases where the parent is fixed, we must ignore negative scroll in offset calc
|
||||
if (fixedPosition && isHTML) {
|
||||
|
@ -6671,8 +6659,8 @@ function getOffsetRectRelativeToArbitraryNode(children, parent) {
|
|||
// differently when margins are applied to it. The margins are included in
|
||||
// the box of the documentElement, in the other cases not.
|
||||
if (!isIE10 && isHTML) {
|
||||
var marginTop = parseFloat(styles.marginTop);
|
||||
var marginLeft = parseFloat(styles.marginLeft);
|
||||
var marginTop = parseFloat(styles.marginTop, 10);
|
||||
var marginLeft = parseFloat(styles.marginLeft, 10);
|
||||
|
||||
offsets.top -= borderTopWidth - marginTop;
|
||||
offsets.bottom -= borderTopWidth - marginTop;
|
||||
|
@ -6772,7 +6760,7 @@ function getBoundaries(popper, reference, padding, boundariesElement) {
|
|||
// NOTE: 1 DOM access here
|
||||
|
||||
var boundaries = { top: 0, left: 0 };
|
||||
var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
|
||||
var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);
|
||||
|
||||
// Handle viewport case
|
||||
if (boundariesElement === 'viewport') {
|
||||
|
@ -6900,7 +6888,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
|
|||
function getReferenceOffsets(state, popper, reference) {
|
||||
var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
|
||||
|
||||
var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));
|
||||
var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, reference);
|
||||
return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);
|
||||
}
|
||||
|
||||
|
@ -7162,7 +7150,7 @@ function destroy() {
|
|||
|
||||
this.disableEventListeners();
|
||||
|
||||
// remove the popper if user explicitly asked for the deletion on destroy
|
||||
// remove the popper if user explicity asked for the deletion on destroy
|
||||
// do not use `remove` because IE11 doesn't support it
|
||||
if (this.options.removeOnDestroy) {
|
||||
this.popper.parentNode.removeChild(this.popper);
|
||||
|
@ -7611,8 +7599,8 @@ function arrow(data, options) {
|
|||
// Compute the sideValue using the updated popper offsets
|
||||
// take popper margin in account because we don't have this info available
|
||||
var css = getStyleComputedProperty(data.instance.popper);
|
||||
var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);
|
||||
var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);
|
||||
var popperMarginSide = parseFloat(css['margin' + sideCapitalized], 10);
|
||||
var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width'], 10);
|
||||
var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
|
||||
|
||||
// prevent arrowElement from being placed not contiguously to its popper
|
||||
|
@ -12808,7 +12796,7 @@ exports.default = {
|
|||
/* 147 */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2
|
||||
var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1
|
||||
// https://github.com/bgrins/TinyColor
|
||||
// Brian Grinstead, MIT License
|
||||
|
||||
|
@ -22079,8 +22067,8 @@ Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_poptip_vue__ = __webpack_require__(218);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_poptip_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_poptip_vue__);
|
||||
/* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_poptip_vue__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_poptip_vue__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8f54439e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue__ = __webpack_require__(513);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8f54439e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8f54439e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue__);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_9431d290_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue__ = __webpack_require__(513);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_9431d290_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_9431d290_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue__);
|
||||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__ = __webpack_require__(0);
|
||||
/* script */
|
||||
|
||||
|
@ -22098,8 +22086,8 @@ var __vue_module_identifier__ = null
|
|||
|
||||
var Component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__["a" /* default */])(
|
||||
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_poptip_vue___default.a,
|
||||
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8f54439e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue__["render"],
|
||||
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_8f54439e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue__["staticRenderFns"],
|
||||
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_9431d290_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue__["render"],
|
||||
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_9431d290_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_poptip_vue__["staticRenderFns"],
|
||||
__vue_template_functional__,
|
||||
__vue_styles__,
|
||||
__vue_scopeId__,
|
||||
|
@ -22205,6 +22193,9 @@ exports.default = {
|
|||
popperClass: {
|
||||
type: String
|
||||
},
|
||||
popperStyle: {
|
||||
type: String
|
||||
},
|
||||
wordWrap: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
|
@ -22254,15 +22245,17 @@ exports.default = {
|
|||
return [prefixCls + '-popper', (_ref2 = {}, (0, _defineProperty3.default)(_ref2, prefixCls + '-confirm', this.transfer && this.confirm), (0, _defineProperty3.default)(_ref2, '' + String(this.popperClass), !!this.popperClass), (0, _defineProperty3.default)(_ref2, prefixCls + '-transfer', this.transfer), (0, _defineProperty3.default)(_ref2, this.transferClassName, this.transferClassName), _ref2)];
|
||||
},
|
||||
styles: function styles() {
|
||||
var style = {};
|
||||
|
||||
var style = [];
|
||||
if (this.width) {
|
||||
style.width = String(this.width) + 'px';
|
||||
style.push('width: ' + String(this.width) + 'px');
|
||||
}
|
||||
|
||||
if (this.transfer) style['z-index'] = 1060 + this.tIndex;
|
||||
|
||||
return style;
|
||||
if (this.transfer) {
|
||||
style.push('z-index: ' + String(1060 + this.tIndex));
|
||||
}
|
||||
if (this.popperStyle) {
|
||||
style.push(this.popperStyle);
|
||||
}
|
||||
return style.join(';');
|
||||
},
|
||||
localeOkText: function localeOkText() {
|
||||
if (this.okText === undefined) {
|
||||
|
@ -36463,6 +36456,11 @@ function format() {
|
|||
return x;
|
||||
}
|
||||
});
|
||||
|
||||
for (var arg = args[i]; i < len; arg = args[++i]) {
|
||||
str += " " + arg;
|
||||
}
|
||||
|
||||
return str;
|
||||
}
|
||||
|
||||
|
@ -36470,7 +36468,7 @@ function format() {
|
|||
}
|
||||
|
||||
function isNativeStringType(type) {
|
||||
return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'date' || type === 'pattern';
|
||||
return type === 'string' || type === 'url' || type === 'hex' || type === 'email' || type === 'pattern';
|
||||
}
|
||||
|
||||
function isEmptyValue(value, type) {
|
||||
|
@ -36710,7 +36708,7 @@ var types = {
|
|||
}
|
||||
},
|
||||
date: function date(value) {
|
||||
return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function' && !isNaN(value.getTime());
|
||||
return typeof value.getTime === 'function' && typeof value.getMonth === 'function' && typeof value.getYear === 'function';
|
||||
},
|
||||
number: function number(value) {
|
||||
if (isNaN(value)) {
|
||||
|
@ -37129,13 +37127,13 @@ function array(rule, value, callback, source, options) {
|
|||
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
|
||||
|
||||
if (validate) {
|
||||
if ((value === undefined || value === null) && !rule.required) {
|
||||
if (isEmptyValue(value, 'array') && !rule.required) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
rules.required(rule, value, source, errors, options, 'array');
|
||||
|
||||
if (value !== undefined && value !== null) {
|
||||
if (!isEmptyValue(value, 'array')) {
|
||||
rules.type(rule, value, source, errors, options);
|
||||
rules.range(rule, value, source, errors, options);
|
||||
}
|
||||
|
@ -37244,19 +37242,19 @@ function date(rule, value, callback, source, options) {
|
|||
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field); // console.log('validate on %s value', value);
|
||||
|
||||
if (validate) {
|
||||
if (isEmptyValue(value, 'date') && !rule.required) {
|
||||
if (isEmptyValue(value) && !rule.required) {
|
||||
return callback();
|
||||
}
|
||||
|
||||
rules.required(rule, value, source, errors, options);
|
||||
|
||||
if (!isEmptyValue(value, 'date')) {
|
||||
if (!isEmptyValue(value)) {
|
||||
var dateObject;
|
||||
|
||||
if (value instanceof Date) {
|
||||
dateObject = value;
|
||||
} else {
|
||||
if (typeof value === 'number') {
|
||||
dateObject = new Date(value);
|
||||
} else {
|
||||
dateObject = value;
|
||||
}
|
||||
|
||||
rules.type(rule, dateObject, source, errors, options);
|
||||
|
@ -37582,7 +37580,7 @@ Schema.prototype = {
|
|||
Schema.warning('async-validator:', errors);
|
||||
}
|
||||
|
||||
if (errors.length && rule.message !== undefined) {
|
||||
if (errors.length && rule.message) {
|
||||
errors = [].concat(rule.message);
|
||||
}
|
||||
|
||||
|
@ -37600,7 +37598,7 @@ Schema.prototype = {
|
|||
// does not exist fail at the rule level and don't
|
||||
// go deeper
|
||||
if (rule.required && !data.value) {
|
||||
if (rule.message !== undefined) {
|
||||
if (rule.message) {
|
||||
errors = [].concat(rule.message).map(complementError(rule));
|
||||
} else if (options.error) {
|
||||
errors = [options.error(rule, format(options.messages.required, rule.field))];
|
||||
|
@ -41645,12 +41643,7 @@ module.exports = function(options) {
|
|||
//So if it is not present, poll it with an timeout until it is present.
|
||||
//TODO: Could maybe be handled better with object.onreadystatechange or similar.
|
||||
if(!element.contentDocument) {
|
||||
var state = getState(element);
|
||||
if (state.checkForObjectDocumentTimeoutId) {
|
||||
window.clearTimeout(state.checkForObjectDocumentTimeoutId);
|
||||
}
|
||||
state.checkForObjectDocumentTimeoutId = setTimeout(function checkForObjectDocument() {
|
||||
state.checkForObjectDocumentTimeoutId = 0;
|
||||
setTimeout(function checkForObjectDocument() {
|
||||
getDocument(element, callback);
|
||||
}, 100);
|
||||
|
||||
|
@ -41683,7 +41676,6 @@ module.exports = function(options) {
|
|||
object.style.cssText = OBJECT_STYLE;
|
||||
object.tabIndex = -1;
|
||||
object.type = "text/html";
|
||||
object.setAttribute("aria-hidden", "true");
|
||||
object.onload = onObjectLoad;
|
||||
|
||||
//Safari: This must occur before adding the object to the DOM.
|
||||
|
@ -41749,11 +41741,6 @@ module.exports = function(options) {
|
|||
} else {
|
||||
element.removeChild(object);
|
||||
}
|
||||
|
||||
if (getState(element).checkForObjectDocumentTimeoutId) {
|
||||
window.clearTimeout(getState(element).checkForObjectDocumentTimeoutId);
|
||||
}
|
||||
|
||||
delete getState(element).object;
|
||||
}
|
||||
|
||||
|
|
2
dist/iview.js.map
vendored
2
dist/iview.js.map
vendored
File diff suppressed because one or more lines are too long
6
dist/iview.min.js
vendored
6
dist/iview.min.js
vendored
File diff suppressed because one or more lines are too long
BIN
dist/iview.min.js.gz
vendored
BIN
dist/iview.min.js.gz
vendored
Binary file not shown.
2
dist/iview.min.js.map
vendored
2
dist/iview.min.js.map
vendored
File diff suppressed because one or more lines are too long
BIN
view-design-v4.x.2.tar.gz
Normal file
BIN
view-design-v4.x.2.tar.gz
Normal file
Binary file not shown.
Loading…
Add table
Reference in a new issue