sync date-picker from v4.x.0

This commit is contained in:
rhyme 2020-12-28 10:01:26 +08:00
parent 9667898d15
commit ec7bc02abf
4 changed files with 133 additions and 114 deletions

244
dist/iview.js vendored
View file

@ -680,7 +680,7 @@ exports.default = {
/* 5 */
/***/ (function(module, exports) {
var core = module.exports = { version: '2.5.7' };
var core = module.exports = { version: '2.6.12' };
if (typeof __e == 'number') __e = core; // eslint-disable-line no-undef
@ -717,7 +717,7 @@ var global = __webpack_require__(9);
var core = __webpack_require__(5);
var ctx = __webpack_require__(24);
var hide = __webpack_require__(25);
var has = __webpack_require__(29);
var has = __webpack_require__(30);
var PROTOTYPE = 'prototype';
var $export = function (type, name, source) {
@ -930,12 +930,22 @@ var off = exports.off = function () {
/* 13 */
/***/ (function(module, exports, __webpack_require__) {
// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(31)(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
var anObject = __webpack_require__(22);
var IE8_DOM_DEFINE = __webpack_require__(96);
var toPrimitive = __webpack_require__(68);
var dP = Object.defineProperty;
exports.f = __webpack_require__(14) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
exports.f = __webpack_require__(13) ? Object.defineProperty : function defineProperty(O, P, Attributes) {
anObject(O);
P = toPrimitive(P, true);
anObject(Attributes);
@ -948,16 +958,6 @@ exports.f = __webpack_require__(14) ? Object.defineProperty : function definePro
};
/***/ }),
/* 14 */
/***/ (function(module, exports, __webpack_require__) {
// Thank's IE8 for his funny defineProperty
module.exports = !__webpack_require__(30)(function () {
return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
});
/***/ }),
/* 15 */
/***/ (function(module, exports, __webpack_require__) {
@ -1474,9 +1474,9 @@ module.exports = function (fn, that, length) {
/* 25 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(13);
var dP = __webpack_require__(14);
var createDesc = __webpack_require__(44);
module.exports = __webpack_require__(14) ? function (object, key, value) {
module.exports = __webpack_require__(13) ? function (object, key, value) {
return dP.f(object, key, createDesc(1, value));
} : function (object, key, value) {
object[key] = value;
@ -1609,6 +1609,17 @@ var Component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_
/***/ }),
/* 29 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
var defined = __webpack_require__(61);
module.exports = function (it) {
return Object(defined(it));
};
/***/ }),
/* 30 */
/***/ (function(module, exports) {
var hasOwnProperty = {}.hasOwnProperty;
@ -1618,7 +1629,7 @@ module.exports = function (it, key) {
/***/ }),
/* 30 */
/* 31 */
/***/ (function(module, exports) {
module.exports = function (exec) {
@ -1631,7 +1642,7 @@ module.exports = function (exec) {
/***/ }),
/* 31 */
/* 32 */
/***/ (function(module, exports, __webpack_require__) {
"use strict";
@ -1659,17 +1670,6 @@ exports.default = _assign2.default || function (target) {
return target;
};
/***/ }),
/* 32 */
/***/ (function(module, exports, __webpack_require__) {
// 7.1.13 ToObject(argument)
var defined = __webpack_require__(61);
module.exports = function (it) {
return Object(defined(it));
};
/***/ }),
/* 33 */
/***/ (function(module, exports, __webpack_require__) {
@ -2050,8 +2050,8 @@ for (var i = 0; i < DOMIterables.length; i++) {
/* 47 */
/***/ (function(module, exports, __webpack_require__) {
var def = __webpack_require__(13).f;
var has = __webpack_require__(29);
var def = __webpack_require__(14).f;
var has = __webpack_require__(30);
var TAG = __webpack_require__(10)('toStringTag');
module.exports = function (it, tag, stat) {
@ -2590,7 +2590,7 @@ var store = global[SHARED] || (global[SHARED] = {});
})('versions', []).push({
version: core.version,
mode: __webpack_require__(42) ? 'pure' : 'global',
copyright: '© 2018 Denis Pushkarev (zloirock.ru)'
copyright: '© 2020 Denis Pushkarev (zloirock.ru)'
});
@ -2793,7 +2793,7 @@ var _typeof2 = __webpack_require__(27);
var _typeof3 = _interopRequireDefault(_typeof2);
var _extends2 = __webpack_require__(31);
var _extends2 = __webpack_require__(32);
var _extends3 = _interopRequireDefault(_extends2);
@ -2969,13 +2969,13 @@ exports.f = __webpack_require__(10);
var META = __webpack_require__(53)('meta');
var isObject = __webpack_require__(18);
var has = __webpack_require__(29);
var setDesc = __webpack_require__(13).f;
var has = __webpack_require__(30);
var setDesc = __webpack_require__(14).f;
var id = 0;
var isExtensible = Object.isExtensible || function () {
return true;
};
var FREEZE = !__webpack_require__(30)(function () {
var FREEZE = !__webpack_require__(31)(function () {
return isExtensible(Object.preventExtensions({}));
});
var setMeta = function (it) {
@ -3030,7 +3030,7 @@ var global = __webpack_require__(9);
var core = __webpack_require__(5);
var LIBRARY = __webpack_require__(42);
var wksExt = __webpack_require__(75);
var defineProperty = __webpack_require__(13).f;
var defineProperty = __webpack_require__(14).f;
module.exports = function (name) {
var $Symbol = core.Symbol || (core.Symbol = LIBRARY ? {} : global.Symbol || {});
if (name.charAt(0) != '_' && !(name in $Symbol)) defineProperty($Symbol, name, { value: wksExt.f(name) });
@ -3378,7 +3378,9 @@ exports.default = {
}
},
methods: {
handleClick: function handleClick(cell) {
handleClick: function handleClick(cell, e) {
e.stopPropagation();
if (cell.disabled || cell.type === 'weekLabel') return;
var newDate = new Date((0, _util.clearHours)(cell.date));
@ -4018,7 +4020,7 @@ exports.default = {
/* 94 */
/***/ (function(module, exports, __webpack_require__) {
var has = __webpack_require__(29);
var has = __webpack_require__(30);
var toIObject = __webpack_require__(33);
var arrayIndexOf = __webpack_require__(260)(false);
var IE_PROTO = __webpack_require__(64)('IE_PROTO');
@ -4044,7 +4046,7 @@ module.exports = function (object, names) {
// most Object methods by ES6 should accept primitives
var $export = __webpack_require__(7);
var core = __webpack_require__(5);
var fails = __webpack_require__(30);
var fails = __webpack_require__(31);
module.exports = function (KEY, exec) {
var fn = (core.Object || {})[KEY] || Object[KEY];
var exp = {};
@ -4057,7 +4059,7 @@ module.exports = function (KEY, exec) {
/* 96 */
/***/ (function(module, exports, __webpack_require__) {
module.exports = !__webpack_require__(14) && !__webpack_require__(30)(function () {
module.exports = !__webpack_require__(13) && !__webpack_require__(31)(function () {
return Object.defineProperty(__webpack_require__(67)('div'), 'a', { get: function () { return 7; } }).a != 7;
});
@ -4406,11 +4408,11 @@ module.exports = __webpack_require__(25);
/* 102 */
/***/ (function(module, exports, __webpack_require__) {
var dP = __webpack_require__(13);
var dP = __webpack_require__(14);
var anObject = __webpack_require__(22);
var getKeys = __webpack_require__(40);
module.exports = __webpack_require__(14) ? Object.defineProperties : function defineProperties(O, Properties) {
module.exports = __webpack_require__(13) ? Object.defineProperties : function defineProperties(O, Properties) {
anObject(O);
var keys = getKeys(Properties);
var length = keys.length;
@ -4434,8 +4436,8 @@ module.exports = document && document.documentElement;
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
var has = __webpack_require__(29);
var toObject = __webpack_require__(32);
var has = __webpack_require__(30);
var toObject = __webpack_require__(29);
var IE_PROTO = __webpack_require__(64)('IE_PROTO');
var ObjectProto = Object.prototype;
@ -4968,7 +4970,7 @@ var _defineProperty2 = __webpack_require__(2);
var _defineProperty3 = _interopRequireDefault(_defineProperty2);
var _extends3 = __webpack_require__(31);
var _extends3 = __webpack_require__(32);
var _extends4 = _interopRequireDefault(_extends3);
@ -8769,27 +8771,27 @@ return Popper;
/* 115 */
/***/ (function(module, exports) {
var g;
// This works in non-strict mode
g = (function() {
return this;
})();
try {
// This works if eval is allowed (see CSP)
g = g || Function("return this")() || (1,eval)("this");
} catch(e) {
// This works if the window reference is available
if(typeof window === "object")
g = window;
}
// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
module.exports = g;
var g;
// This works in non-strict mode
g = (function() {
return this;
})();
try {
// This works if eval is allowed (see CSP)
g = g || Function("return this")() || (1,eval)("this");
} catch(e) {
// This works if the window reference is available
if(typeof window === "object")
g = window;
}
// g can still be undefined, but nothing to do about it...
// We return undefined, instead of nothing here, so it's
// easier to handle this case. if(!global) { ...}
module.exports = g;
/***/ }),
@ -12806,7 +12808,7 @@ exports.default = {
/* 147 */
/***/ (function(module, exports, __webpack_require__) {
var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.1
var __WEBPACK_AMD_DEFINE_RESULT__;// TinyColor v1.4.2
// https://github.com/bgrins/TinyColor
// Brian Grinstead, MIT License
@ -14015,7 +14017,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = __webpack_require__(31);
var _extends2 = __webpack_require__(32);
var _extends3 = _interopRequireDefault(_extends2);
@ -14592,7 +14594,7 @@ var _slicedToArray2 = __webpack_require__(26);
var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);
var _extends2 = __webpack_require__(31);
var _extends2 = __webpack_require__(32);
var _extends3 = _interopRequireDefault(_extends2);
@ -15681,7 +15683,7 @@ Object.defineProperty(exports, "__esModule", {
value: true
});
var _extends2 = __webpack_require__(31);
var _extends2 = __webpack_require__(32);
var _extends3 = _interopRequireDefault(_extends2);
@ -15806,8 +15808,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_year_table_vue__ = __webpack_require__(161);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_year_table_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_year_table_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_year_table_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_year_table_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_24032862_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue__ = __webpack_require__(413);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_24032862_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_24032862_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2bfabbb6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue__ = __webpack_require__(413);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2bfabbb6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2bfabbb6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__ = __webpack_require__(0);
/* script */
@ -15825,8 +15827,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_year_table_vue___default.a,
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_24032862_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_24032862_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue__["staticRenderFns"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2bfabbb6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2bfabbb6_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_year_table_vue__["staticRenderFns"],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
@ -15927,8 +15929,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_month_table_vue__ = __webpack_require__(163);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_month_table_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_month_table_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_month_table_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_month_table_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_4716c51e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue__ = __webpack_require__(414);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4716c51e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4716c51e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2ad59b08_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue__ = __webpack_require__(414);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2ad59b08_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2ad59b08_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_vue_loader_lib_runtime_component_normalizer__ = __webpack_require__(0);
/* script */
@ -15946,8 +15948,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_month_table_vue___default.a,
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4716c51e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_4716c51e_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue__["staticRenderFns"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2ad59b08_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue__["render"],
__WEBPACK_IMPORTED_MODULE_1__babel_loader_sourceMap_node_modules_vue_loader_lib_template_compiler_index_id_data_v_2ad59b08_hasScoped_false_optionsId_0_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_month_table_vue__["staticRenderFns"],
__vue_template_functional__,
__vue_styles__,
__vue_scopeId__,
@ -16334,7 +16336,7 @@ var _keys = __webpack_require__(21);
var _keys2 = _interopRequireDefault(_keys);
var _extends3 = __webpack_require__(31);
var _extends3 = __webpack_require__(32);
var _extends4 = _interopRequireDefault(_extends3);
@ -18468,8 +18470,8 @@ module.exports = function (C, x) {
var global = __webpack_require__(9);
var core = __webpack_require__(5);
var dP = __webpack_require__(13);
var DESCRIPTORS = __webpack_require__(14);
var dP = __webpack_require__(14);
var DESCRIPTORS = __webpack_require__(13);
var SPECIES = __webpack_require__(10)('species');
module.exports = function (KEY) {
@ -29985,7 +29987,7 @@ var _keys = __webpack_require__(21);
var _keys2 = _interopRequireDefault(_keys);
var _extends2 = __webpack_require__(31);
var _extends2 = __webpack_require__(32);
var _extends3 = _interopRequireDefault(_extends2);
@ -30445,7 +30447,7 @@ module.exports = __webpack_require__(5).Object.keys;
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.14 Object.keys(O)
var toObject = __webpack_require__(32);
var toObject = __webpack_require__(29);
var $keys = __webpack_require__(40);
__webpack_require__(95)('keys', function () {
@ -30522,15 +30524,16 @@ $export($export.S + $export.F, 'Object', { assign: __webpack_require__(264) });
"use strict";
// 19.1.2.1 Object.assign(target, source, ...)
var DESCRIPTORS = __webpack_require__(13);
var getKeys = __webpack_require__(40);
var gOPS = __webpack_require__(69);
var pIE = __webpack_require__(54);
var toObject = __webpack_require__(32);
var toObject = __webpack_require__(29);
var IObject = __webpack_require__(62);
var $assign = Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
module.exports = !$assign || __webpack_require__(30)(function () {
module.exports = !$assign || __webpack_require__(31)(function () {
var A = {};
var B = {};
// eslint-disable-next-line no-undef
@ -30551,7 +30554,10 @@ module.exports = !$assign || __webpack_require__(30)(function () {
var length = keys.length;
var j = 0;
var key;
while (length > j) if (isEnum.call(S, key = keys[j++])) T[key] = S[key];
while (length > j) {
key = keys[j++];
if (!DESCRIPTORS || isEnum.call(S, key)) T[key] = S[key];
}
} return T;
} : $assign;
@ -30637,7 +30643,7 @@ module.exports = function defineProperty(it, key, desc) {
var $export = __webpack_require__(7);
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperty: __webpack_require__(13).f });
$export($export.S + $export.F * !__webpack_require__(13), 'Object', { defineProperty: __webpack_require__(14).f });
/***/ }),
@ -31154,7 +31160,7 @@ module.exports = __webpack_require__(5).Array.from;
var ctx = __webpack_require__(24);
var $export = __webpack_require__(7);
var toObject = __webpack_require__(32);
var toObject = __webpack_require__(29);
var call = __webpack_require__(110);
var isArrayIter = __webpack_require__(111);
var toLength = __webpack_require__(52);
@ -31196,7 +31202,7 @@ $export($export.S + $export.F * !__webpack_require__(112)(function (iter) { Arra
"use strict";
var $defineProperty = __webpack_require__(13);
var $defineProperty = __webpack_require__(14);
var createDesc = __webpack_require__(44);
module.exports = function (object, index, value) {
@ -31262,12 +31268,12 @@ module.exports = __webpack_require__(5).Symbol;
// ECMAScript 6 symbols shim
var global = __webpack_require__(9);
var has = __webpack_require__(29);
var DESCRIPTORS = __webpack_require__(14);
var has = __webpack_require__(30);
var DESCRIPTORS = __webpack_require__(13);
var $export = __webpack_require__(7);
var redefine = __webpack_require__(101);
var META = __webpack_require__(76).KEY;
var $fails = __webpack_require__(30);
var $fails = __webpack_require__(31);
var shared = __webpack_require__(65);
var setToStringTag = __webpack_require__(47);
var uid = __webpack_require__(53);
@ -31278,13 +31284,15 @@ var enumKeys = __webpack_require__(304);
var isArray = __webpack_require__(116);
var anObject = __webpack_require__(22);
var isObject = __webpack_require__(18);
var toObject = __webpack_require__(29);
var toIObject = __webpack_require__(33);
var toPrimitive = __webpack_require__(68);
var createDesc = __webpack_require__(44);
var _create = __webpack_require__(55);
var gOPNExt = __webpack_require__(305);
var $GOPD = __webpack_require__(306);
var $DP = __webpack_require__(13);
var $GOPS = __webpack_require__(69);
var $DP = __webpack_require__(14);
var $keys = __webpack_require__(40);
var gOPD = $GOPD.f;
var dP = $DP.f;
@ -31300,7 +31308,7 @@ var SymbolRegistry = shared('symbol-registry');
var AllSymbols = shared('symbols');
var OPSymbols = shared('op-symbols');
var ObjectProto = Object[PROTOTYPE];
var USE_NATIVE = typeof $Symbol == 'function';
var USE_NATIVE = typeof $Symbol == 'function' && !!$GOPS.f;
var QObject = global.QObject;
// Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
var setter = !QObject || !QObject[PROTOTYPE] || !QObject[PROTOTYPE].findChild;
@ -31410,7 +31418,7 @@ if (!USE_NATIVE) {
$DP.f = $defineProperty;
__webpack_require__(117).f = gOPNExt.f = $getOwnPropertyNames;
__webpack_require__(54).f = $propertyIsEnumerable;
__webpack_require__(69).f = $getOwnPropertySymbols;
$GOPS.f = $getOwnPropertySymbols;
if (DESCRIPTORS && !__webpack_require__(42)) {
redefine(ObjectProto, 'propertyIsEnumerable', $propertyIsEnumerable, true);
@ -31461,6 +31469,16 @@ $export($export.S + $export.F * !USE_NATIVE, 'Object', {
getOwnPropertySymbols: $getOwnPropertySymbols
});
// Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
var FAILS_ON_PRIMITIVES = $fails(function () { $GOPS.f(1); });
$export($export.S + $export.F * FAILS_ON_PRIMITIVES, 'Object', {
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
return $GOPS.f(toObject(it));
}
});
// 24.3.2 JSON.stringify(value [, replacer [, space]])
$JSON && $export($export.S + $export.F * (!USE_NATIVE || $fails(function () {
var S = $Symbol();
@ -31549,11 +31567,11 @@ var pIE = __webpack_require__(54);
var createDesc = __webpack_require__(44);
var toIObject = __webpack_require__(33);
var toPrimitive = __webpack_require__(68);
var has = __webpack_require__(29);
var has = __webpack_require__(30);
var IE8_DOM_DEFINE = __webpack_require__(96);
var gOPD = Object.getOwnPropertyDescriptor;
exports.f = __webpack_require__(14) ? gOPD : function getOwnPropertyDescriptor(O, P) {
exports.f = __webpack_require__(13) ? gOPD : function getOwnPropertyDescriptor(O, P) {
O = toIObject(O);
P = toPrimitive(P, true);
if (IE8_DOM_DEFINE) try {
@ -31600,7 +31618,7 @@ module.exports = function defineProperties(T, D) {
var $export = __webpack_require__(7);
// 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
$export($export.S + $export.F * !__webpack_require__(14), 'Object', { defineProperties: __webpack_require__(102) });
$export($export.S + $export.F * !__webpack_require__(13), 'Object', { defineProperties: __webpack_require__(102) });
/***/ }),
@ -31648,7 +31666,7 @@ module.exports = __webpack_require__(5).Object.getPrototypeOf;
/***/ (function(module, exports, __webpack_require__) {
// 19.1.2.9 Object.getPrototypeOf(O)
var toObject = __webpack_require__(32);
var toObject = __webpack_require__(29);
var $getPrototypeOf = __webpack_require__(104);
__webpack_require__(95)('getPrototypeOf', function () {
@ -33272,10 +33290,10 @@ var render = function render() {
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { directives: [{ name: "click-outside", rawName: "v-click-outside", value: _vm.handleClose, expression: "handleClose" }], class: _vm.classes }, [_c('div', { ref: "reference", class: [_vm.prefixCls + '-rel'], on: { "click": _vm.toggleOpen } }, [_c('input', { attrs: { "type": "hidden", "name": _vm.name }, domProps: { "value": _vm.currentValue } }), _vm._v(" "), _vm._t("default", [_c('i-input', { ref: "input", attrs: { "element-id": _vm.elementId, "readonly": !_vm.filterable, "disabled": _vm.itemDisabled, "value": _vm.displayInputRender, "size": _vm.size, "placeholder": _vm.inputPlaceholder }, on: { "on-change": _vm.handleInput } }), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.filterable && _vm.query === '', expression: "filterable && query === ''" }], class: [_vm.prefixCls + '-label'], on: { "click": _vm.handleFocus } }, [_vm._v(_vm._s(_vm.displayRender))]), _vm._v(" "), _c('Icon', { directives: [{ name: "show", rawName: "v-show", value: _vm.showCloseIcon, expression: "showCloseIcon" }], class: [_vm.prefixCls + '-arrow'], attrs: { "type": "ios-close-circle" }, nativeOn: { "click": function click($event) {
$event.stopPropagation();return _vm.clearSelect($event);
} } }), _vm._v(" "), _c('Icon', { class: [_vm.prefixCls + '-arrow'], attrs: { "type": _vm.arrowType, "custom": _vm.customArrowType, "size": _vm.arrowSize } })])], 2), _vm._v(" "), _c('transition', { attrs: { "name": "transition-drop" } }, [_c('Drop', { directives: [{ name: "show", rawName: "v-show", value: _vm.visible, expression: "visible" }, { name: "transfer-dom", rawName: "v-transfer-dom" }], ref: "drop", class: _vm.dropdownCls, attrs: { "data-transfer": _vm.transfer, "transfer": _vm.transfer } }, [_c('div', [_c('Caspanel', { directives: [{ name: "show", rawName: "v-show", value: !_vm.filterable || _vm.filterable && _vm.query === '', expression: "!filterable || (filterable && query === '')" }], ref: "caspanel", attrs: { "prefix-cls": _vm.prefixCls, "data": _vm.data, "disabled": _vm.itemDisabled, "change-on-select": _vm.changeOnSelect, "trigger": _vm.trigger } }), _vm._v(" "), _c('div', { directives: [{ name: "show", rawName: "v-show", value: _vm.filterable && _vm.query !== '' && _vm.querySelections.length, expression: "filterable && query !== '' && querySelections.length" }], class: [_vm.prefixCls + '-dropdown'] }, [_c('ul', { class: [_vm.selectPrefixCls + '-dropdown-list'] }, _vm._l(_vm.querySelections, function (item, index) {
var _obj;
return _c('li', { class: [_vm.selectPrefixCls + '-item', (_obj = {}, _obj[_vm.selectPrefixCls + '-item-disabled'] = item.disabled, _obj)], domProps: { "innerHTML": _vm._s(item.display) }, on: { "click": function click($event) {
return _vm.handleSelectItem(index);
} } });
var _obj;
}), 0)]), _vm._v(" "), _c('ul', { directives: [{ name: "show", rawName: "v-show", value: _vm.filterable && _vm.query !== '' && !_vm.querySelections.length || !_vm.data.length, expression: "(filterable && query !== '' && !querySelections.length) || !data.length" }], class: [_vm.prefixCls + '-not-found-tip'] }, [_c('li', [_vm._v(_vm._s(_vm.localeNotFoundText))])])], 1)])], 1)], 1);
};
var staticRenderFns = [];
@ -35036,7 +35054,7 @@ Object.defineProperty(exports, "__esModule", {
var render = function render() {
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, _vm._l(_vm.cells, function (cell) {
return _c('span', { class: _vm.getCellCls(cell), on: { "click": function click($event) {
return _vm.handleClick(cell);
return _vm.handleClick(cell, $event);
}, "mouseenter": function mouseenter($event) {
return _vm.handleMouseMove(cell);
} } }, [_c('em', [_vm._v(_vm._s(cell.date.getFullYear()))])]);
@ -35059,7 +35077,7 @@ Object.defineProperty(exports, "__esModule", {
var render = function render() {
var _vm = this;var _h = _vm.$createElement;var _c = _vm._self._c || _h;return _c('div', { class: _vm.classes }, _vm._l(_vm.cells, function (cell) {
return _c('span', { class: _vm.getCellCls(cell), on: { "click": function click($event) {
return _vm.handleClick(cell);
return _vm.handleClick(cell, $event);
}, "mouseenter": function mouseenter($event) {
return _vm.handleMouseMove(cell);
} } }, [_c('em', [_vm._v(_vm._s(cell.text))])]);
@ -37111,13 +37129,13 @@ function array(rule, value, callback, source, options) {
var validate = rule.required || !rule.required && source.hasOwnProperty(rule.field);
if (validate) {
if (isEmptyValue(value, 'array') && !rule.required) {
if ((value === undefined || value === null) && !rule.required) {
return callback();
}
rules.required(rule, value, source, errors, options, 'array');
if (!isEmptyValue(value, 'array')) {
if (value !== undefined && value !== null) {
rules.type(rule, value, source, errors, options);
rules.range(rule, value, source, errors, options);
}
@ -37564,7 +37582,7 @@ Schema.prototype = {
Schema.warning('async-validator:', errors);
}
if (errors.length && rule.message) {
if (errors.length && rule.message !== undefined) {
errors = [].concat(rule.message);
}
@ -37582,7 +37600,7 @@ Schema.prototype = {
// does not exist fail at the rule level and don't
// go deeper
if (rule.required && !data.value) {
if (rule.message) {
if (rule.message !== undefined) {
errors = [].concat(rule.message).map(complementError(rule));
} else if (options.error) {
errors = [options.error(rule, format(options.messages.required, rule.field))];
@ -42991,7 +43009,7 @@ module.exports = __webpack_require__(556)(SET, function (get) {
"use strict";
var dP = __webpack_require__(13).f;
var dP = __webpack_require__(14).f;
var create = __webpack_require__(55);
var redefineAll = __webpack_require__(88);
var ctx = __webpack_require__(24);
@ -43000,7 +43018,7 @@ var forOf = __webpack_require__(51);
var $iterDefine = __webpack_require__(70);
var step = __webpack_require__(100);
var setSpecies = __webpack_require__(188);
var DESCRIPTORS = __webpack_require__(14);
var DESCRIPTORS = __webpack_require__(13);
var fastKey = __webpack_require__(76).fastKey;
var validate = __webpack_require__(233);
var SIZE = DESCRIPTORS ? '_s' : 'size';
@ -43145,16 +43163,16 @@ module.exports = {
var global = __webpack_require__(9);
var $export = __webpack_require__(7);
var meta = __webpack_require__(76);
var fails = __webpack_require__(30);
var fails = __webpack_require__(31);
var hide = __webpack_require__(25);
var redefineAll = __webpack_require__(88);
var forOf = __webpack_require__(51);
var anInstance = __webpack_require__(86);
var isObject = __webpack_require__(18);
var setToStringTag = __webpack_require__(47);
var dP = __webpack_require__(13).f;
var dP = __webpack_require__(14).f;
var each = __webpack_require__(557)(0);
var DESCRIPTORS = __webpack_require__(14);
var DESCRIPTORS = __webpack_require__(13);
module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
var Base = global[NAME];
@ -43215,7 +43233,7 @@ module.exports = function (NAME, wrapper, methods, common, IS_MAP, IS_WEAK) {
// 6 -> Array#findIndex
var ctx = __webpack_require__(24);
var IObject = __webpack_require__(62);
var toObject = __webpack_require__(32);
var toObject = __webpack_require__(29);
var toLength = __webpack_require__(52);
var asc = __webpack_require__(558);
module.exports = function (TYPE, $create) {
@ -43484,6 +43502,7 @@ var render = function render() {
return _c('col', { attrs: { "width": _vm.setCellWidth(column) } });
}), _vm._v(" "), _vm.$parent.showVerticalScrollBar ? _c('col', { attrs: { "width": _vm.$parent.scrollBarWidth } }) : _vm._e()], 2), _vm._v(" "), _c('thead', _vm._l(_vm.headRows, function (cols, rowIndex) {
return _c('tr', [_vm._l(cols, function (column, index) {
var _obj;
return _c('th', { class: _vm.alignCls(column), attrs: { "colspan": column.colSpan, "rowspan": column.rowSpan } }, [_c('div', { class: _vm.cellClasses(column) }, [column.type === 'expand' ? [!column.renderHeader ? _c('span', [_vm._v(_vm._s(column.title || ''))]) : _c('render-header', { attrs: { "render": column.renderHeader, "column": column, "index": index } })] : column.type === 'selection' ? [_c('Checkbox', { attrs: { "value": _vm.isSelectAll, "disabled": _vm.isSelectDisabled }, on: { "on-change": _vm.selectAll } })] : [!column.renderHeader ? _c('span', { class: (_obj = {}, _obj[_vm.prefixCls + '-cell-sort'] = column.sortable, _obj), on: { "click": function click($event) {
_vm.handleSortByHead(_vm.getColumn(rowIndex, index)._index);
} } }, [_vm._v(_vm._s(column.title || '#'))]) : _c('render-header', { attrs: { "render": column.renderHeader, "column": column, "index": index } }), _vm._v(" "), column.sortable ? _c('span', { class: [_vm.prefixCls + '-sort'] }, [_c('i', { staticClass: "ivu-icon ivu-icon-md-arrow-dropup", class: { on: _vm.getColumn(rowIndex, index)._sortType === 'asc' }, on: { "click": function click($event) {
@ -43513,7 +43532,6 @@ var render = function render() {
}, "mousemove": function mousemove($event) {
return _vm.handleMouseMove(column, $event);
}, "mouseout": _vm.handleMouseOut } }) : _vm._e()]);
var _obj;
}), _vm._v(" "), _vm.$parent.showVerticalScrollBar && rowIndex === 0 ? _c('th', { class: _vm.scrollBarCellClass(), attrs: { "rowspan": _vm.headRows.length } }) : _vm._e()], 2);
}), 0)]);
};

1
dist/iview.js.map vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

BIN
view-design-v4.x.1.tar.gz Normal file

Binary file not shown.