@mdsfe/mds-ui 0.2.11-rc.12 → 0.2.11-rc.13
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/dist/_locale/default.js +18 -0
- package/dist/_locale/format.js +54 -0
- package/dist/_locale/index.js +56 -6
- package/dist/_locale/lang/en.js +144 -0
- package/dist/_locale/lang/zh-CN.js +142 -0
- package/dist/_mixin/locale.js +1 -1
- package/dist/_util/iconfont/index.js +1 -1
- package/dist/_util/util.js +7 -0
- package/dist/affix.js +6 -6
- package/dist/alert.js +6 -6
- package/dist/anchor.js +6 -6
- package/dist/avatar.js +17 -8
- package/dist/backtop.js +11 -11
- package/dist/badge.js +17 -17
- package/dist/bordershadow.js +6 -6
- package/dist/breadcrumb.js +6 -6
- package/dist/button.js +6 -6
- package/dist/card.js +6 -6
- package/dist/carousel.js +80 -80
- package/dist/cascader.js +96 -61
- package/dist/cascaderpanel.js +54 -29
- package/dist/checkbox.js +10 -10
- package/dist/col.js +10 -10
- package/dist/collapse.js +6 -6
- package/dist/color.js +6 -6
- package/dist/datepicker.js +287 -280
- package/dist/divider.js +6 -6
- package/dist/drawer.js +20 -20
- package/dist/dropdown.js +19 -19
- package/dist/empty.js +31 -14
- package/dist/font/iconfont.4ac77c3.woff2 +0 -0
- package/dist/font/iconfont.5a7af4c.woff +0 -0
- package/dist/font/{iconfont.3f886fd.ttf → iconfont.784954d.ttf} +0 -0
- package/dist/font.js +6 -6
- package/dist/form.js +14 -14
- package/dist/icon.js +6 -6
- package/dist/index.js +1 -1
- package/dist/input.js +16 -16
- package/dist/inputnumber.js +13 -13
- package/dist/layout.js +6 -6
- package/dist/list.js +6 -6
- package/dist/loading.js +6 -6
- package/dist/mds-ui.min.css +1 -1
- package/dist/mds-ui.min.js +1857 -1377
- package/dist/menu.js +18 -18
- package/dist/message.js +10 -10
- package/dist/modal.js +60 -38
- package/dist/notification.js +20 -20
- package/dist/pagination.js +74 -33
- package/dist/popconfirm.js +561 -31
- package/dist/popover.js +27 -27
- package/dist/progress.js +6 -6
- package/dist/radio.js +10 -10
- package/dist/rate.js +10 -10
- package/dist/row.js +10 -10
- package/dist/select.js +99 -79
- package/dist/slider.js +22 -22
- package/dist/slottable.js +75 -50
- package/dist/steps.js +6 -6
- package/dist/style/affix.css +166 -1
- package/dist/style/alert.css +166 -1
- package/dist/style/anchor.css +166 -1
- package/dist/style/avatar.css +166 -1
- package/dist/style/badge.css +166 -1
- package/dist/style/bordershadow.css +166 -1
- package/dist/style/breadcrumb.css +166 -1
- package/dist/style/button.css +166 -1
- package/dist/style/card.css +166 -1
- package/dist/style/carousel.css +166 -1
- package/dist/style/checkbox.css +166 -1
- package/dist/style/col.css +166 -1
- package/dist/style/collapse.css +166 -1
- package/dist/style/color.css +166 -1
- package/dist/style/datepicker.css +166 -1
- package/dist/style/divider.css +166 -1
- package/dist/style/drawer.css +166 -1
- package/dist/style/dropdown.css +166 -1
- package/dist/style/empty.css +166 -1
- package/dist/style/font.css +166 -1
- package/dist/style/form.css +166 -1
- package/dist/style/icon.css +166 -1
- package/dist/style/input.css +166 -1
- package/dist/style/inputnumber.css +166 -1
- package/dist/style/layout.css +166 -1
- package/dist/style/list.css +166 -1
- package/dist/style/loading.css +166 -1
- package/dist/style/menu.css +166 -1
- package/dist/style/modal.css +166 -1
- package/dist/style/notification.css +166 -1
- package/dist/style/pagination.css +166 -1
- package/dist/style/popconfirm.css +166 -1
- package/dist/style/popover.css +166 -1
- package/dist/style/progress.css +166 -1
- package/dist/style/radio.css +166 -1
- package/dist/style/rate.css +166 -1
- package/dist/style/row.css +166 -1
- package/dist/style/select.css +166 -1
- package/dist/style/slider.css +166 -1
- package/dist/style/slottable.css +166 -1
- package/dist/style/steps.css +166 -1
- package/dist/style/switch.css +166 -1
- package/dist/style/table.css +166 -1
- package/dist/style/tabs.css +166 -1
- package/dist/style/tag.css +166 -1
- package/dist/style/text.css +166 -1
- package/dist/style/timeline.css +166 -1
- package/dist/style/timepicker.css +166 -1
- package/dist/style/tooltip.css +166 -1
- package/dist/style/tree.css +166 -1
- package/dist/style/typography.css +166 -1
- package/dist/style/upload.css +166 -1
- package/dist/switch.js +10 -10
- package/dist/table.js +261 -166
- package/dist/tabs.js +6 -6
- package/dist/tag.js +6 -6
- package/dist/text.js +681 -681
- package/dist/timeline.js +6 -6
- package/dist/timepicker.js +571 -41
- package/dist/tooltip.js +25 -25
- package/dist/transfer.js +48 -34
- package/dist/transition.js +4 -4
- package/dist/tree.js +77 -77
- package/dist/typography.js +6 -6
- package/dist/upload.js +60 -32
- package/package.json +4 -2
- package/dist/font/iconfont.396260c.woff2 +0 -0
- package/dist/font/iconfont.881db5a.woff +0 -0
package/dist/timepicker.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
-
module.exports = factory(require("vue"), require("./icon"), require("./_util/proptype"), require("./transition"), require("./_mixin/emitter"), require("./button"));
|
|
3
|
+
module.exports = factory(require("vue"), require("./icon"), require("./_util/proptype"), require("./_mixin/locale"), require("./transition"), require("./_mixin/emitter"), require("./button"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "./icon", "./_util/proptype", "./transition", "./_mixin/emitter", "./button"], factory);
|
|
5
|
+
define(["vue", "./icon", "./_util/proptype", "./_mixin/locale", "./transition", "./_mixin/emitter", "./button"], factory);
|
|
6
6
|
else {
|
|
7
|
-
var a = typeof exports === 'object' ? factory(require("vue"), require("./icon"), require("./_util/proptype"), require("./transition"), require("./_mixin/emitter"), require("./button")) : factory(root["Vue"], root["./icon"], root["./_util/proptype"], root["./transition"], root["./_mixin/emitter"], root["./button"]);
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("vue"), require("./icon"), require("./_util/proptype"), require("./_mixin/locale"), require("./transition"), require("./_mixin/emitter"), require("./button")) : factory(root["Vue"], root["./icon"], root["./_util/proptype"], root["./_mixin/locale"], root["./transition"], root["./_mixin/emitter"], root["./button"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__8__,
|
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__2__, __WEBPACK_EXTERNAL_MODULE__7__, __WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__10__, __WEBPACK_EXTERNAL_MODULE__12__, __WEBPACK_EXTERNAL_MODULE__13__, __WEBPACK_EXTERNAL_MODULE__14__) {
|
|
11
11
|
return /******/ (function(modules) { // webpackBootstrap
|
|
12
12
|
/******/ // The module cache
|
|
13
13
|
/******/ var installedModules = {};
|
|
@@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
91
91
|
/******/
|
|
92
92
|
/******/
|
|
93
93
|
/******/ // Load entry module and return exports
|
|
94
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = 95);
|
|
95
95
|
/******/ })
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
@@ -495,14 +495,14 @@ function getScrollBarWidth() {
|
|
|
495
495
|
/***/ 10:
|
|
496
496
|
/***/ (function(module, exports) {
|
|
497
497
|
|
|
498
|
-
module.exports =
|
|
498
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__10__;
|
|
499
499
|
|
|
500
500
|
/***/ }),
|
|
501
501
|
|
|
502
502
|
/***/ 11:
|
|
503
503
|
/***/ (function(module, exports) {
|
|
504
504
|
|
|
505
|
-
module.exports =
|
|
505
|
+
module.exports = require("babel-runtime/core-js/object/keys");
|
|
506
506
|
|
|
507
507
|
/***/ }),
|
|
508
508
|
|
|
@@ -520,14 +520,21 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__13__;
|
|
|
520
520
|
|
|
521
521
|
/***/ }),
|
|
522
522
|
|
|
523
|
-
/***/
|
|
523
|
+
/***/ 14:
|
|
524
|
+
/***/ (function(module, exports) {
|
|
525
|
+
|
|
526
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__14__;
|
|
527
|
+
|
|
528
|
+
/***/ }),
|
|
529
|
+
|
|
530
|
+
/***/ 142:
|
|
524
531
|
/***/ (function(module, exports) {
|
|
525
532
|
|
|
526
533
|
// removed by extract-text-webpack-plugin
|
|
527
534
|
|
|
528
535
|
/***/ }),
|
|
529
536
|
|
|
530
|
-
/***/
|
|
537
|
+
/***/ 15:
|
|
531
538
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
532
539
|
|
|
533
540
|
"use strict";
|
|
@@ -752,20 +759,234 @@ var scrollBarWidth = void 0;
|
|
|
752
759
|
|
|
753
760
|
/***/ }),
|
|
754
761
|
|
|
755
|
-
/***/
|
|
762
|
+
/***/ 16:
|
|
763
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
764
|
+
|
|
765
|
+
"use strict";
|
|
766
|
+
/* unused harmony export noop */
|
|
767
|
+
/* unused harmony export getOffsetLeft */
|
|
768
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return getValueByPath; });
|
|
769
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return valueEquals; });
|
|
770
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
|
|
771
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
|
|
772
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return coerceTruthyValueToArray; });
|
|
773
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return isIE; });
|
|
774
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return isEdge; });
|
|
775
|
+
/* unused harmony export isFirefox */
|
|
776
|
+
/* unused harmony export assert */
|
|
777
|
+
/* unused harmony export escapeRegexpString */
|
|
778
|
+
/* unused harmony export getOffsetWidth */
|
|
779
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return isFunction; });
|
|
780
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return fixBodyScroll; });
|
|
781
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return hasOwn; });
|
|
782
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
783
|
+
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
// import { getScrollBarWidth } from './_popper/dom-helper'
|
|
787
|
+
var currentBodyOverflow = '';
|
|
788
|
+
// let currentBodyPaddingRight = ''
|
|
789
|
+
var noop = function noop() {};
|
|
790
|
+
|
|
791
|
+
var getScroll = function getScroll(w, top) {
|
|
792
|
+
var ret = top ? w.pageYOffset : w.pageXOffset;
|
|
793
|
+
var method = top ? 'scrollTop' : 'scrollLeft';
|
|
794
|
+
if (typeof ret !== 'number') {
|
|
795
|
+
var d = w.document;
|
|
796
|
+
// ie6,7,8 standard mode
|
|
797
|
+
ret = d.documentElement[method];
|
|
798
|
+
if (typeof ret !== 'number') {
|
|
799
|
+
// quirks mode
|
|
800
|
+
ret = d.body[method];
|
|
801
|
+
}
|
|
802
|
+
}
|
|
803
|
+
return ret;
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
var getClientPosition = function getClientPosition(elem) {
|
|
807
|
+
var box = void 0;
|
|
808
|
+
var x = void 0;
|
|
809
|
+
var y = void 0;
|
|
810
|
+
var doc = elem.ownerDocument;
|
|
811
|
+
var body = doc.body;
|
|
812
|
+
var docElem = doc && doc.documentElement;
|
|
813
|
+
box = elem.getBoundingClientRect();
|
|
814
|
+
x = box.left;
|
|
815
|
+
y = box.top;
|
|
816
|
+
x -= docElem.clientLeft || body.clientLeft || 0;
|
|
817
|
+
y -= docElem.clientTop || body.clientTop || 0;
|
|
818
|
+
return {
|
|
819
|
+
left: x,
|
|
820
|
+
top: y
|
|
821
|
+
};
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
var getOffsetLeft = function getOffsetLeft(el) {
|
|
825
|
+
var pos = getClientPosition(el);
|
|
826
|
+
var doc = el.ownerDocument;
|
|
827
|
+
var w = doc.defaultView || doc.parentWindow;
|
|
828
|
+
pos.left += getScroll(w);
|
|
829
|
+
return pos.left;
|
|
830
|
+
};
|
|
831
|
+
/**
|
|
832
|
+
* 获取对象深层级的对象,避免循环
|
|
833
|
+
* @export
|
|
834
|
+
* @param {*} sourceObj 源对象 {a:{b:{d:1}}}
|
|
835
|
+
* @param {*} pathName path组成的数组 例如:'a.b.c'
|
|
836
|
+
* @param {*} defaultValue 如果没有值默认的值 []
|
|
837
|
+
*/
|
|
838
|
+
function getValueByPath(sourceObj, pathName, defaultValue) {
|
|
839
|
+
var getValue = function getValue(sourceObj, pathNameArray) {
|
|
840
|
+
var key = pathNameArray.shift();
|
|
841
|
+
var value = sourceObj[key];
|
|
842
|
+
if (value === undefined || value === null) {
|
|
843
|
+
return defaultValue;
|
|
844
|
+
} else if (pathNameArray.length === 0) {
|
|
845
|
+
return value;
|
|
846
|
+
} else if (pathNameArray.length > 0) {
|
|
847
|
+
return getValue(value, pathNameArray);
|
|
848
|
+
}
|
|
849
|
+
};
|
|
850
|
+
var pathNameArray = pathName.split('.');
|
|
851
|
+
return getValue(sourceObj, pathNameArray);
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
*
|
|
855
|
+
* 判断两个数是否相等
|
|
856
|
+
* @param {*} a
|
|
857
|
+
* @param {*} b
|
|
858
|
+
* @returns
|
|
859
|
+
*/
|
|
860
|
+
var valueEquals = function valueEquals(a, b) {
|
|
861
|
+
// see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
|
|
862
|
+
if (a === b) return true;
|
|
863
|
+
if (!(a instanceof Array)) return false;
|
|
864
|
+
if (!(b instanceof Array)) return false;
|
|
865
|
+
if (a.length !== b.length) return false;
|
|
866
|
+
for (var i = 0; i !== a.length; ++i) {
|
|
867
|
+
if (a[i] !== b[i]) return false;
|
|
868
|
+
}
|
|
869
|
+
return true;
|
|
870
|
+
};
|
|
871
|
+
// TODO: use native Array.find, Array.findIndex when IE support is dropped
|
|
872
|
+
var arrayFindIndex = function arrayFindIndex(arr, pred) {
|
|
873
|
+
for (var i = 0; i !== arr.length; ++i) {
|
|
874
|
+
if (pred(arr[i])) {
|
|
875
|
+
return i;
|
|
876
|
+
}
|
|
877
|
+
}
|
|
878
|
+
return -1;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
var arrayFind = function arrayFind(arr, pred) {
|
|
882
|
+
var idx = arrayFindIndex(arr, pred);
|
|
883
|
+
return idx !== -1 ? arr[idx] : undefined;
|
|
884
|
+
};
|
|
885
|
+
|
|
886
|
+
// coerce truthy value to array
|
|
887
|
+
var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
|
|
888
|
+
if (Array.isArray(val)) {
|
|
889
|
+
return val;
|
|
890
|
+
} else if (val) {
|
|
891
|
+
return [val];
|
|
892
|
+
} else {
|
|
893
|
+
return [];
|
|
894
|
+
}
|
|
895
|
+
};
|
|
896
|
+
|
|
897
|
+
var isIE = function isIE() {
|
|
898
|
+
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
var isEdge = function isEdge() {
|
|
902
|
+
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
var isFirefox = function isFirefox() {
|
|
906
|
+
return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
|
|
907
|
+
};
|
|
908
|
+
|
|
909
|
+
var assert = function assert(condition, msg) {
|
|
910
|
+
if (!condition) throw new Error('[mds-ui] ' + msg);
|
|
911
|
+
};
|
|
912
|
+
/**
|
|
913
|
+
*
|
|
914
|
+
* 特殊字符转译
|
|
915
|
+
* @param {string} [value='']
|
|
916
|
+
*/
|
|
917
|
+
var escapeRegexpString = function escapeRegexpString() {
|
|
918
|
+
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
919
|
+
return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
|
920
|
+
};
|
|
921
|
+
/**
|
|
922
|
+
* Get element offset width
|
|
923
|
+
* @param {*} node HTMLDOMElemment
|
|
924
|
+
* @return {Number} width
|
|
925
|
+
*/
|
|
926
|
+
/**
|
|
927
|
+
* Get element offset width
|
|
928
|
+
* @param {*} node HTMLDOMElemment
|
|
929
|
+
* @return {Number} width
|
|
930
|
+
*/
|
|
931
|
+
var getOffsetWidth = function getOffsetWidth(node) {
|
|
932
|
+
return node ? node.offsetWidth : 0;
|
|
933
|
+
};
|
|
934
|
+
|
|
935
|
+
/** 判断是否为函数
|
|
936
|
+
* @param {*} functionToCheck
|
|
937
|
+
* @returns
|
|
938
|
+
*/
|
|
939
|
+
var isFunction = function isFunction(functionToCheck) {
|
|
940
|
+
var getType = {};
|
|
941
|
+
return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
|
|
942
|
+
};
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* 弹窗类组件显现时修正body滚动
|
|
946
|
+
* @param {Boolean} visible 弹窗显现状态
|
|
947
|
+
*/
|
|
948
|
+
function fixBodyScroll(visible) {
|
|
949
|
+
var bodyStyle = document.body.style;
|
|
950
|
+
if (visible) {
|
|
951
|
+
currentBodyOverflow = bodyStyle.overflow;
|
|
952
|
+
// currentBodyPaddingRight = bodyStyle.paddingRight
|
|
953
|
+
bodyStyle.overflow = 'hidden';
|
|
954
|
+
// const basePaddingRight = parseInt(currentBodyPaddingRight || 0)
|
|
955
|
+
// const baseScrollWidth = parseInt(getScrollBarWidth())
|
|
956
|
+
// 防止页面抖动,后续需要自定义滚动条解决
|
|
957
|
+
// bodyStyle.paddingRight = basePaddingRight + baseScrollWidth + 'px'
|
|
958
|
+
} else {
|
|
959
|
+
var timer = setTimeout(function () {
|
|
960
|
+
clearTimeout(timer);
|
|
961
|
+
bodyStyle.overflow = currentBodyOverflow;
|
|
962
|
+
// bodyStyle.paddingRight = currentBodyPaddingRight
|
|
963
|
+
// currentBodyPaddingRight = ''
|
|
964
|
+
}, 180);
|
|
965
|
+
}
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
969
|
+
|
|
970
|
+
function hasOwn(obj, key) {
|
|
971
|
+
return hasOwnProperty.call(obj, key);
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
/***/ }),
|
|
975
|
+
|
|
976
|
+
/***/ 18:
|
|
756
977
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
757
978
|
|
|
758
979
|
"use strict";
|
|
759
980
|
|
|
760
981
|
// EXTERNAL MODULE: ./components/_util/_popper/popup/popup-main.js
|
|
761
|
-
var popup_main = __webpack_require__(
|
|
982
|
+
var popup_main = __webpack_require__(15);
|
|
762
983
|
|
|
763
984
|
// EXTERNAL MODULE: external "babel-runtime/core-js/object/get-own-property-descriptor"
|
|
764
|
-
var get_own_property_descriptor_ = __webpack_require__(
|
|
985
|
+
var get_own_property_descriptor_ = __webpack_require__(19);
|
|
765
986
|
var get_own_property_descriptor_default = /*#__PURE__*/__webpack_require__.n(get_own_property_descriptor_);
|
|
766
987
|
|
|
767
988
|
// EXTERNAL MODULE: external "babel-runtime/core-js/object/keys"
|
|
768
|
-
var keys_ = __webpack_require__(
|
|
989
|
+
var keys_ = __webpack_require__(11);
|
|
769
990
|
var keys_default = /*#__PURE__*/__webpack_require__.n(keys_);
|
|
770
991
|
|
|
771
992
|
// EXTERNAL MODULE: external "babel-runtime/core-js/object/assign"
|
|
@@ -2224,7 +2445,7 @@ var stop = function stop(e) {
|
|
|
2224
2445
|
|
|
2225
2446
|
/***/ }),
|
|
2226
2447
|
|
|
2227
|
-
/***/
|
|
2448
|
+
/***/ 19:
|
|
2228
2449
|
/***/ (function(module, exports) {
|
|
2229
2450
|
|
|
2230
2451
|
module.exports = require("babel-runtime/core-js/object/get-own-property-descriptor");
|
|
@@ -2238,7 +2459,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__2__;
|
|
|
2238
2459
|
|
|
2239
2460
|
/***/ }),
|
|
2240
2461
|
|
|
2241
|
-
/***/
|
|
2462
|
+
/***/ 22:
|
|
2242
2463
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2243
2464
|
|
|
2244
2465
|
"use strict";
|
|
@@ -2483,11 +2704,11 @@ var isInContainer = function isInContainer(el, container) {
|
|
|
2483
2704
|
|
|
2484
2705
|
/***/ }),
|
|
2485
2706
|
|
|
2486
|
-
/***/
|
|
2707
|
+
/***/ 23:
|
|
2487
2708
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2488
2709
|
|
|
2489
2710
|
"use strict";
|
|
2490
|
-
/* harmony import */ var mds_ui_transition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2711
|
+
/* harmony import */ var mds_ui_transition__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12);
|
|
2491
2712
|
/* harmony import */ var mds_ui_transition__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(mds_ui_transition__WEBPACK_IMPORTED_MODULE_0__);
|
|
2492
2713
|
|
|
2493
2714
|
|
|
@@ -2519,7 +2740,7 @@ var placementMap = {
|
|
|
2519
2740
|
|
|
2520
2741
|
/***/ }),
|
|
2521
2742
|
|
|
2522
|
-
/***/
|
|
2743
|
+
/***/ 237:
|
|
2523
2744
|
/***/ (function(module, exports) {
|
|
2524
2745
|
|
|
2525
2746
|
// removed by extract-text-webpack-plugin
|
|
@@ -2546,7 +2767,7 @@ module.exports = require("babel-runtime/helpers/defineProperty");
|
|
|
2546
2767
|
"use strict";
|
|
2547
2768
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
2548
2769
|
/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
|
|
2549
|
-
/* harmony import */ var _dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
2770
|
+
/* harmony import */ var _dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
|
|
2550
2771
|
|
|
2551
2772
|
|
|
2552
2773
|
|
|
@@ -2620,6 +2841,279 @@ function createDocumentHandler(el, binding, vnode) {
|
|
|
2620
2841
|
|
|
2621
2842
|
/***/ }),
|
|
2622
2843
|
|
|
2844
|
+
/***/ 46:
|
|
2845
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2846
|
+
|
|
2847
|
+
"use strict";
|
|
2848
|
+
|
|
2849
|
+
// EXPORTS
|
|
2850
|
+
__webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ t; });
|
|
2851
|
+
|
|
2852
|
+
// UNUSED EXPORTS: use, i18n
|
|
2853
|
+
|
|
2854
|
+
// EXTERNAL MODULE: external "babel-runtime/core-js/object/get-prototype-of"
|
|
2855
|
+
var get_prototype_of_ = __webpack_require__(49);
|
|
2856
|
+
var get_prototype_of_default = /*#__PURE__*/__webpack_require__.n(get_prototype_of_);
|
|
2857
|
+
|
|
2858
|
+
// CONCATENATED MODULE: ./components/_locale/lang/zh-CN.js
|
|
2859
|
+
/* harmony default export */ var zh_CN = ({
|
|
2860
|
+
mds: {
|
|
2861
|
+
colorpicker: {
|
|
2862
|
+
confirm: '确定',
|
|
2863
|
+
clear: '清空'
|
|
2864
|
+
},
|
|
2865
|
+
timepicker: {
|
|
2866
|
+
placeholder: '请选择时间',
|
|
2867
|
+
startTime: '开始时间',
|
|
2868
|
+
endTime: '结束时间'
|
|
2869
|
+
},
|
|
2870
|
+
datepicker: {
|
|
2871
|
+
now: '此刻',
|
|
2872
|
+
today: '今天',
|
|
2873
|
+
cancel: '取消',
|
|
2874
|
+
clear: '清空',
|
|
2875
|
+
confirm: '确定',
|
|
2876
|
+
selectDate: '选择日期',
|
|
2877
|
+
selectTime: '选择时间',
|
|
2878
|
+
startDate: '开始日期',
|
|
2879
|
+
startTime: '开始时间',
|
|
2880
|
+
endDate: '结束日期',
|
|
2881
|
+
endTime: '结束时间',
|
|
2882
|
+
prevYear: '前一年',
|
|
2883
|
+
nextYear: '后一年',
|
|
2884
|
+
prevMonth: '上个月',
|
|
2885
|
+
nextMonth: '下个月',
|
|
2886
|
+
year: '年',
|
|
2887
|
+
month1: '1 月',
|
|
2888
|
+
month2: '2 月',
|
|
2889
|
+
month3: '3 月',
|
|
2890
|
+
month4: '4 月',
|
|
2891
|
+
month5: '5 月',
|
|
2892
|
+
month6: '6 月',
|
|
2893
|
+
month7: '7 月',
|
|
2894
|
+
month8: '8 月',
|
|
2895
|
+
month9: '9 月',
|
|
2896
|
+
month10: '10 月',
|
|
2897
|
+
month11: '11 月',
|
|
2898
|
+
month12: '12 月',
|
|
2899
|
+
// week: '周次',
|
|
2900
|
+
weeks: {
|
|
2901
|
+
sun: '日',
|
|
2902
|
+
mon: '一',
|
|
2903
|
+
tue: '二',
|
|
2904
|
+
wed: '三',
|
|
2905
|
+
thu: '四',
|
|
2906
|
+
fri: '五',
|
|
2907
|
+
sat: '六'
|
|
2908
|
+
},
|
|
2909
|
+
months: {
|
|
2910
|
+
jan: '一月',
|
|
2911
|
+
feb: '二月',
|
|
2912
|
+
mar: '三月',
|
|
2913
|
+
apr: '四月',
|
|
2914
|
+
may: '五月',
|
|
2915
|
+
jun: '六月',
|
|
2916
|
+
jul: '七月',
|
|
2917
|
+
aug: '八月',
|
|
2918
|
+
sep: '九月',
|
|
2919
|
+
oct: '十月',
|
|
2920
|
+
nov: '十一月',
|
|
2921
|
+
dec: '十二月'
|
|
2922
|
+
}
|
|
2923
|
+
},
|
|
2924
|
+
select: {
|
|
2925
|
+
loading: '加载中',
|
|
2926
|
+
noMatch: '无匹配数据',
|
|
2927
|
+
noData: '无数据',
|
|
2928
|
+
placeholder: '请选择'
|
|
2929
|
+
},
|
|
2930
|
+
cascader: {
|
|
2931
|
+
emptyText: '没有找到相关结果',
|
|
2932
|
+
noMatch: '无匹配数据',
|
|
2933
|
+
loading: '加载中',
|
|
2934
|
+
placeholder: '请选择',
|
|
2935
|
+
filterPlaceholder: '请输入搜索',
|
|
2936
|
+
noData: '暂无数据'
|
|
2937
|
+
},
|
|
2938
|
+
pagination: {
|
|
2939
|
+
goto: '前往',
|
|
2940
|
+
placeholder: '请选择',
|
|
2941
|
+
pagesize: '条/页',
|
|
2942
|
+
total: '共 {total} 条',
|
|
2943
|
+
pageClassifier: '页'
|
|
2944
|
+
},
|
|
2945
|
+
messagebox: {
|
|
2946
|
+
title: '提示',
|
|
2947
|
+
confirm: '确定',
|
|
2948
|
+
cancel: '取消',
|
|
2949
|
+
error: '输入的数据不合法!'
|
|
2950
|
+
},
|
|
2951
|
+
upload: {
|
|
2952
|
+
deleteTip: '按 delete 键可删除',
|
|
2953
|
+
delete: '删除',
|
|
2954
|
+
preview: '查看图片',
|
|
2955
|
+
uploadFileText: '上传文件',
|
|
2956
|
+
uploadPhotoText: '上传图片',
|
|
2957
|
+
uploadDescText: '将文件拖拽到此处, 或',
|
|
2958
|
+
uploadClickText: '点击上传',
|
|
2959
|
+
continue: '继续上传'
|
|
2960
|
+
},
|
|
2961
|
+
table: {
|
|
2962
|
+
loadText: '加载中',
|
|
2963
|
+
emptyText: '暂无数据',
|
|
2964
|
+
confirmFilter: '筛选',
|
|
2965
|
+
resetFilter: '重置',
|
|
2966
|
+
clearFilter: '全部'
|
|
2967
|
+
},
|
|
2968
|
+
tree: {
|
|
2969
|
+
emptyText: '暂无数据'
|
|
2970
|
+
},
|
|
2971
|
+
transfer: {
|
|
2972
|
+
noMatch: '无匹配数据',
|
|
2973
|
+
noData: '无数据',
|
|
2974
|
+
titles: ['列表 1', '列表 2'],
|
|
2975
|
+
filterPlaceholder: '请输入搜索内容',
|
|
2976
|
+
noCheckedFormat: '共 {total} 项',
|
|
2977
|
+
hasCheckedFormat: '已选 {checked}/{total} 项'
|
|
2978
|
+
},
|
|
2979
|
+
image: {
|
|
2980
|
+
error: '加载失败'
|
|
2981
|
+
},
|
|
2982
|
+
pageHeader: {
|
|
2983
|
+
title: '返回'
|
|
2984
|
+
},
|
|
2985
|
+
popconfirm: {
|
|
2986
|
+
confirmButtonText: '确定',
|
|
2987
|
+
cancelButtonText: '取消'
|
|
2988
|
+
},
|
|
2989
|
+
modal: {
|
|
2990
|
+
cancelText: '取消',
|
|
2991
|
+
confirmText: '确定'
|
|
2992
|
+
},
|
|
2993
|
+
empty: {
|
|
2994
|
+
description: '暂无数据'
|
|
2995
|
+
}
|
|
2996
|
+
}
|
|
2997
|
+
});
|
|
2998
|
+
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
2999
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(2);
|
|
3000
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default = /*#__PURE__*/__webpack_require__.n(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_);
|
|
3001
|
+
|
|
3002
|
+
// EXTERNAL MODULE: external "deepmerge"
|
|
3003
|
+
var external_deepmerge_ = __webpack_require__(50);
|
|
3004
|
+
var external_deepmerge_default = /*#__PURE__*/__webpack_require__.n(external_deepmerge_);
|
|
3005
|
+
|
|
3006
|
+
// EXTERNAL MODULE: external "babel-runtime/helpers/typeof"
|
|
3007
|
+
var typeof_ = __webpack_require__(9);
|
|
3008
|
+
var typeof_default = /*#__PURE__*/__webpack_require__.n(typeof_);
|
|
3009
|
+
|
|
3010
|
+
// EXTERNAL MODULE: ./components/_util/util.js
|
|
3011
|
+
var util = __webpack_require__(16);
|
|
3012
|
+
|
|
3013
|
+
// CONCATENATED MODULE: ./components/_locale/format.js
|
|
3014
|
+
|
|
3015
|
+
|
|
3016
|
+
|
|
3017
|
+
var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
|
3018
|
+
|
|
3019
|
+
/* harmony default export */ var format = (function (Vue) {
|
|
3020
|
+
/**
|
|
3021
|
+
* template
|
|
3022
|
+
*
|
|
3023
|
+
* @param {String} string
|
|
3024
|
+
* @param {Array} ...args
|
|
3025
|
+
* @return {String}
|
|
3026
|
+
*/
|
|
3027
|
+
|
|
3028
|
+
function template(string) {
|
|
3029
|
+
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
3030
|
+
args[_key - 1] = arguments[_key];
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
if (args.length === 1 && typeof_default()(args[0]) === 'object') {
|
|
3034
|
+
args = args[0];
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
if (!args || !args.hasOwnProperty) {
|
|
3038
|
+
args = {};
|
|
3039
|
+
}
|
|
3040
|
+
|
|
3041
|
+
return string.replace(RE_NARGS, function (match, prefix, i, index) {
|
|
3042
|
+
var result = void 0;
|
|
3043
|
+
|
|
3044
|
+
if (string[index - 1] === '{' && string[index + match.length] === '}') {
|
|
3045
|
+
return i;
|
|
3046
|
+
} else {
|
|
3047
|
+
result = Object(util["f" /* hasOwn */])(args, i) ? args[i] : null;
|
|
3048
|
+
if (result === null || result === undefined) {
|
|
3049
|
+
return '';
|
|
3050
|
+
}
|
|
3051
|
+
|
|
3052
|
+
return result;
|
|
3053
|
+
}
|
|
3054
|
+
});
|
|
3055
|
+
}
|
|
3056
|
+
|
|
3057
|
+
return template;
|
|
3058
|
+
});
|
|
3059
|
+
// CONCATENATED MODULE: ./components/_locale/index.js
|
|
3060
|
+
|
|
3061
|
+
|
|
3062
|
+
|
|
3063
|
+
|
|
3064
|
+
|
|
3065
|
+
|
|
3066
|
+
var _locale_format = format(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a);
|
|
3067
|
+
var lang = zh_CN;
|
|
3068
|
+
var merged = false;
|
|
3069
|
+
|
|
3070
|
+
var _locale_i18nHandler = function i18nHandler() {
|
|
3071
|
+
var vuei18n = get_prototype_of_default()(this || external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a).$t;
|
|
3072
|
+
if (typeof vuei18n === 'function' && !!external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.locale) {
|
|
3073
|
+
if (!merged) {
|
|
3074
|
+
merged = true;
|
|
3075
|
+
external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.locale(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.config.lang, external_deepmerge_default()(lang, external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.locale(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_default.a.config.lang) || {}, { clone: true }));
|
|
3076
|
+
}
|
|
3077
|
+
return vuei18n.apply(this, arguments);
|
|
3078
|
+
}
|
|
3079
|
+
};
|
|
3080
|
+
|
|
3081
|
+
var t = function t(path, options) {
|
|
3082
|
+
var value = _locale_i18nHandler.apply(this, arguments);
|
|
3083
|
+
if (value !== null && value !== undefined) return value;
|
|
3084
|
+
|
|
3085
|
+
var array = path.split('.');
|
|
3086
|
+
var current = lang;
|
|
3087
|
+
|
|
3088
|
+
for (var i = 0, j = array.length; i < j; i++) {
|
|
3089
|
+
var property = array[i];
|
|
3090
|
+
value = current[property];
|
|
3091
|
+
if (i === j - 1) return _locale_format(value, options);
|
|
3092
|
+
if (!value) return '';
|
|
3093
|
+
current = value;
|
|
3094
|
+
}
|
|
3095
|
+
return '';
|
|
3096
|
+
};
|
|
3097
|
+
|
|
3098
|
+
var use = function use(l) {
|
|
3099
|
+
lang = l || lang;
|
|
3100
|
+
};
|
|
3101
|
+
|
|
3102
|
+
var i18n = function i18n(fn) {
|
|
3103
|
+
_locale_i18nHandler = fn || _locale_i18nHandler;
|
|
3104
|
+
};
|
|
3105
|
+
|
|
3106
|
+
/* harmony default export */ var _locale = ({ use: use, t: t, i18n: i18n });
|
|
3107
|
+
|
|
3108
|
+
/***/ }),
|
|
3109
|
+
|
|
3110
|
+
/***/ 49:
|
|
3111
|
+
/***/ (function(module, exports) {
|
|
3112
|
+
|
|
3113
|
+
module.exports = require("babel-runtime/core-js/object/get-prototype-of");
|
|
3114
|
+
|
|
3115
|
+
/***/ }),
|
|
3116
|
+
|
|
2623
3117
|
/***/ 5:
|
|
2624
3118
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2625
3119
|
|
|
@@ -2826,6 +3320,13 @@ if (!vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) {
|
|
|
2826
3320
|
|
|
2827
3321
|
/***/ }),
|
|
2828
3322
|
|
|
3323
|
+
/***/ 50:
|
|
3324
|
+
/***/ (function(module, exports) {
|
|
3325
|
+
|
|
3326
|
+
module.exports = require("deepmerge");
|
|
3327
|
+
|
|
3328
|
+
/***/ }),
|
|
3329
|
+
|
|
2829
3330
|
/***/ 6:
|
|
2830
3331
|
/***/ (function(module, exports) {
|
|
2831
3332
|
|
|
@@ -2854,7 +3355,7 @@ module.exports = require("babel-runtime/helpers/typeof");
|
|
|
2854
3355
|
|
|
2855
3356
|
/***/ }),
|
|
2856
3357
|
|
|
2857
|
-
/***/
|
|
3358
|
+
/***/ 95:
|
|
2858
3359
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2859
3360
|
|
|
2860
3361
|
"use strict";
|
|
@@ -2862,10 +3363,10 @@ module.exports = require("babel-runtime/helpers/typeof");
|
|
|
2862
3363
|
__webpack_require__.r(__webpack_exports__);
|
|
2863
3364
|
|
|
2864
3365
|
// EXTERNAL MODULE: ./components/style/index.less
|
|
2865
|
-
var style = __webpack_require__(
|
|
3366
|
+
var style = __webpack_require__(142);
|
|
2866
3367
|
|
|
2867
3368
|
// EXTERNAL MODULE: ./components/timepicker/style/index.less
|
|
2868
|
-
var timepicker_style = __webpack_require__(
|
|
3369
|
+
var timepicker_style = __webpack_require__(237);
|
|
2869
3370
|
|
|
2870
3371
|
// CONCATENATED MODULE: ./components/timepicker/style/index.js
|
|
2871
3372
|
|
|
@@ -2882,10 +3383,10 @@ var external_moment_ = __webpack_require__(29);
|
|
|
2882
3383
|
var external_moment_default = /*#__PURE__*/__webpack_require__.n(external_moment_);
|
|
2883
3384
|
|
|
2884
3385
|
// EXTERNAL MODULE: ./components/_util/_popper/popper-mixin.js
|
|
2885
|
-
var popper_mixin = __webpack_require__(
|
|
3386
|
+
var popper_mixin = __webpack_require__(23);
|
|
2886
3387
|
|
|
2887
3388
|
// EXTERNAL MODULE: ./components/_util/_popper/vue-popper.js + 1 modules
|
|
2888
|
-
var vue_popper = __webpack_require__(
|
|
3389
|
+
var vue_popper = __webpack_require__(18);
|
|
2889
3390
|
|
|
2890
3391
|
// CONCATENATED MODULE: ./components/timepicker/lazyMode.js
|
|
2891
3392
|
/* harmony default export */ var lazyMode = ({
|
|
@@ -3523,6 +4024,9 @@ var combobox_component = Object(componentNormalizer["a" /* default */])(
|
|
|
3523
4024
|
if (false) { var combobox_api; }
|
|
3524
4025
|
combobox_component.options.__file = "components/timepicker/combobox.vue"
|
|
3525
4026
|
/* harmony default export */ var combobox = (combobox_component.exports);
|
|
4027
|
+
// EXTERNAL MODULE: ./components/_locale/index.js + 2 modules
|
|
4028
|
+
var _locale = __webpack_require__(46);
|
|
4029
|
+
|
|
3526
4030
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/timepicker/panel.vue?vue&type=script&lang=js&
|
|
3527
4031
|
//
|
|
3528
4032
|
|
|
@@ -3530,6 +4034,7 @@ combobox_component.options.__file = "components/timepicker/combobox.vue"
|
|
|
3530
4034
|
|
|
3531
4035
|
|
|
3532
4036
|
|
|
4037
|
+
|
|
3533
4038
|
var generateOptions = function generateOptions(length, disabledOptions, hideDisabledOptions) {
|
|
3534
4039
|
var step = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 1;
|
|
3535
4040
|
|
|
@@ -3569,7 +4074,13 @@ var isAM = function isAM(value) {
|
|
|
3569
4074
|
use12Hours: Boolean,
|
|
3570
4075
|
allowEmpty: Boolean,
|
|
3571
4076
|
value: null,
|
|
3572
|
-
step: Number
|
|
4077
|
+
step: Number,
|
|
4078
|
+
startTime: {
|
|
4079
|
+
type: String
|
|
4080
|
+
},
|
|
4081
|
+
endTime: {
|
|
4082
|
+
type: String
|
|
4083
|
+
}
|
|
3573
4084
|
},
|
|
3574
4085
|
components: {
|
|
3575
4086
|
MdsPickerHeader: header,
|
|
@@ -3585,6 +4096,14 @@ var isAM = function isAM(value) {
|
|
|
3585
4096
|
};
|
|
3586
4097
|
},
|
|
3587
4098
|
|
|
4099
|
+
computed: {
|
|
4100
|
+
displayStartTime: function displayStartTime() {
|
|
4101
|
+
return this.startTime || Object(_locale["a" /* t */])('mds.timepicker.startTime');
|
|
4102
|
+
},
|
|
4103
|
+
displayEndTime: function displayEndTime() {
|
|
4104
|
+
return this.endTime || Object(_locale["a" /* t */])('mds.timepicker.endTime');
|
|
4105
|
+
}
|
|
4106
|
+
},
|
|
3588
4107
|
methods: {
|
|
3589
4108
|
handleChange: function handleChange(value, index) {
|
|
3590
4109
|
if (typeof index === 'number' && this.isRange) {
|
|
@@ -3841,11 +4360,11 @@ var isAM = function isAM(value) {
|
|
|
3841
4360
|
[h(
|
|
3842
4361
|
'div',
|
|
3843
4362
|
{ 'class': _this.prefixCls + '-picker-box-half' },
|
|
3844
|
-
[h('h2', [
|
|
4363
|
+
[h('h2', [_this.displayStartTime]), getPickerCombobox(_this.value[0], _this.value[1], 0)]
|
|
3845
4364
|
), h(
|
|
3846
4365
|
'div',
|
|
3847
4366
|
{ 'class': _this.prefixCls + '-picker-box-half' },
|
|
3848
|
-
[h('h2', [
|
|
4367
|
+
[h('h2', [_this.displayEndTime]), getPickerCombobox(_this.value[1], _this.value[0], 1)]
|
|
3849
4368
|
)]
|
|
3850
4369
|
), getPickerBottom()]
|
|
3851
4370
|
);
|
|
@@ -3897,17 +4416,21 @@ var clickoutside = __webpack_require__(37);
|
|
|
3897
4416
|
var proptype_ = __webpack_require__(8);
|
|
3898
4417
|
|
|
3899
4418
|
// EXTERNAL MODULE: external "./transition"
|
|
3900
|
-
var external_transition_ = __webpack_require__(
|
|
4419
|
+
var external_transition_ = __webpack_require__(12);
|
|
3901
4420
|
var external_transition_default = /*#__PURE__*/__webpack_require__.n(external_transition_);
|
|
3902
4421
|
|
|
3903
4422
|
// EXTERNAL MODULE: external "./button"
|
|
3904
|
-
var external_button_ = __webpack_require__(
|
|
4423
|
+
var external_button_ = __webpack_require__(14);
|
|
3905
4424
|
var external_button_default = /*#__PURE__*/__webpack_require__.n(external_button_);
|
|
3906
4425
|
|
|
3907
4426
|
// EXTERNAL MODULE: external "./_mixin/emitter"
|
|
3908
|
-
var emitter_ = __webpack_require__(
|
|
4427
|
+
var emitter_ = __webpack_require__(13);
|
|
3909
4428
|
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
3910
4429
|
|
|
4430
|
+
// EXTERNAL MODULE: external "./_mixin/locale"
|
|
4431
|
+
var locale_ = __webpack_require__(10);
|
|
4432
|
+
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
4433
|
+
|
|
3911
4434
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/timepicker/time-picker.vue?vue&type=script&lang=js&
|
|
3912
4435
|
|
|
3913
4436
|
|
|
@@ -3924,6 +4447,7 @@ var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
|
|
3924
4447
|
|
|
3925
4448
|
|
|
3926
4449
|
|
|
4450
|
+
|
|
3927
4451
|
function generateShowHourMinuteSecond(format) {
|
|
3928
4452
|
// Ref: http://momentjs.com/docs/#/parsing/string-format/
|
|
3929
4453
|
return {
|
|
@@ -3935,7 +4459,7 @@ function generateShowHourMinuteSecond(format) {
|
|
|
3935
4459
|
|
|
3936
4460
|
/* harmony default export */ var time_pickervue_type_script_lang_js_ = ({
|
|
3937
4461
|
name: 'MdsTimePicker',
|
|
3938
|
-
mixins: [vue_popper["a" /* default */], popper_mixin["a" /* default */], emitter_default.a, lazyMode],
|
|
4462
|
+
mixins: [vue_popper["a" /* default */], popper_mixin["a" /* default */], emitter_default.a, lazyMode, locale_default.a],
|
|
3939
4463
|
directives: { Clickoutside: clickoutside["a" /* default */] },
|
|
3940
4464
|
model: {
|
|
3941
4465
|
event: 'change'
|
|
@@ -4029,16 +4553,13 @@ function generateShowHourMinuteSecond(format) {
|
|
|
4029
4553
|
default: 'bottomLeft'
|
|
4030
4554
|
},
|
|
4031
4555
|
placeholder: {
|
|
4032
|
-
type: String
|
|
4033
|
-
default: '请选择时间'
|
|
4556
|
+
type: String
|
|
4034
4557
|
},
|
|
4035
4558
|
startPlaceholder: {
|
|
4036
|
-
type: String
|
|
4037
|
-
default: '开始时间'
|
|
4559
|
+
type: String
|
|
4038
4560
|
},
|
|
4039
4561
|
endPlaceholder: {
|
|
4040
|
-
type: String
|
|
4041
|
-
default: '结束时间'
|
|
4562
|
+
type: String
|
|
4042
4563
|
},
|
|
4043
4564
|
popupClassName: {
|
|
4044
4565
|
type: String,
|
|
@@ -4098,6 +4619,15 @@ function generateShowHourMinuteSecond(format) {
|
|
|
4098
4619
|
},
|
|
4099
4620
|
displayClear: function displayClear() {
|
|
4100
4621
|
return this.inputHover && this.realMomentValue;
|
|
4622
|
+
},
|
|
4623
|
+
propPlaceholder: function propPlaceholder() {
|
|
4624
|
+
return typeof this.placeholder !== 'undefined' ? this.placeholder : this.t('mds.timepicker.placeholder');
|
|
4625
|
+
},
|
|
4626
|
+
displayStartTime: function displayStartTime() {
|
|
4627
|
+
return this.startPlaceholder || this.t('mds.timepicker.startTime');
|
|
4628
|
+
},
|
|
4629
|
+
displayEndTime: function displayEndTime() {
|
|
4630
|
+
return this.endPlaceholder || this.t('mds.timepicker.endTime');
|
|
4101
4631
|
}
|
|
4102
4632
|
},
|
|
4103
4633
|
created: function created() {
|
|
@@ -4314,7 +4844,7 @@ function generateShowHourMinuteSecond(format) {
|
|
|
4314
4844
|
format: this.defaultFormat,
|
|
4315
4845
|
hideDisabledOptions: this.hideDisabledOptions,
|
|
4316
4846
|
prefixCls: this.prefixCls + '-panel',
|
|
4317
|
-
placeholder: this.
|
|
4847
|
+
placeholder: this.propPlaceholder,
|
|
4318
4848
|
showHour: showHour,
|
|
4319
4849
|
showMinute: showMinute,
|
|
4320
4850
|
showSecond: showSecond,
|
|
@@ -4342,7 +4872,7 @@ function generateShowHourMinuteSecond(format) {
|
|
|
4342
4872
|
ref: 'inputF',
|
|
4343
4873
|
'class': _this2.prefixCls + '-input ' + _this2.prefixCls + '-box-half',
|
|
4344
4874
|
attrs: { disabled: _this2.disabled,
|
|
4345
|
-
placeholder: _this2.
|
|
4875
|
+
placeholder: _this2.displayStartTime
|
|
4346
4876
|
},
|
|
4347
4877
|
domProps: {
|
|
4348
4878
|
'value': _this2.realMomentValue[0] && _this2.realMomentValue[0].format(_this2.defaultFormat) || ''
|
|
@@ -4355,7 +4885,7 @@ function generateShowHourMinuteSecond(format) {
|
|
|
4355
4885
|
ref: 'inputS',
|
|
4356
4886
|
'class': _this2.prefixCls + '-input ' + _this2.prefixCls + '-box-half',
|
|
4357
4887
|
attrs: { disabled: _this2.disabled,
|
|
4358
|
-
placeholder: _this2.
|
|
4888
|
+
placeholder: _this2.displayEndTime
|
|
4359
4889
|
},
|
|
4360
4890
|
domProps: {
|
|
4361
4891
|
'value': _this2.realMomentValue[1] && _this2.realMomentValue[1].format(_this2.defaultFormat) || ''
|
|
@@ -4367,7 +4897,7 @@ function generateShowHourMinuteSecond(format) {
|
|
|
4367
4897
|
ref: 'input',
|
|
4368
4898
|
'class': _this2.prefixCls + '-input',
|
|
4369
4899
|
attrs: { disabled: _this2.disabled,
|
|
4370
|
-
placeholder: _this2.
|
|
4900
|
+
placeholder: _this2.propPlaceholder
|
|
4371
4901
|
},
|
|
4372
4902
|
domProps: {
|
|
4373
4903
|
'value': _this2.realMomentValue && _this2.realMomentValue.format(_this2.defaultFormat) || ''
|