@mdsfe/mds-ui 0.2.11-rc.8 → 0.3.0-0
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/CHANGELOG.md +20 -1
- 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/{zh-CN.js → lang/zh-CN.js} +22 -3
- package/dist/_mixin/locale.js +1 -1
- package/dist/_util/iconfont/index.js +12 -13
- 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.78779fe.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 +1884 -1386
- 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 +75 -35
- 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 +58 -37
- package/dist/slottable.js +75 -50
- package/dist/steps.js +6 -6
- package/dist/style/affix.css +248 -2
- package/dist/style/alert.css +248 -2
- package/dist/style/anchor.css +248 -2
- package/dist/style/avatar.css +248 -2
- package/dist/style/badge.css +248 -2
- package/dist/style/bordershadow.css +248 -2
- package/dist/style/breadcrumb.css +248 -2
- package/dist/style/button.css +248 -2
- package/dist/style/card.css +248 -2
- package/dist/style/carousel.css +248 -2
- package/dist/style/checkbox.css +248 -2
- package/dist/style/col.css +248 -2
- package/dist/style/collapse.css +248 -2
- package/dist/style/color.css +248 -2
- package/dist/style/datepicker.css +248 -2
- package/dist/style/divider.css +248 -2
- package/dist/style/drawer.css +248 -2
- package/dist/style/dropdown.css +248 -2
- package/dist/style/empty.css +248 -2
- package/dist/style/font.css +248 -2
- package/dist/style/form.css +248 -2
- package/dist/style/icon.css +248 -2
- package/dist/style/input.css +248 -2
- package/dist/style/inputnumber.css +248 -2
- package/dist/style/layout.css +248 -2
- package/dist/style/list.css +248 -2
- package/dist/style/loading.css +248 -2
- package/dist/style/menu.css +248 -2
- package/dist/style/modal.css +248 -2
- package/dist/style/notification.css +248 -2
- package/dist/style/pagination.css +248 -2
- package/dist/style/popconfirm.css +248 -2
- package/dist/style/popover.css +248 -2
- package/dist/style/progress.css +248 -2
- package/dist/style/radio.css +248 -2
- package/dist/style/rate.css +248 -2
- package/dist/style/row.css +248 -2
- package/dist/style/select.css +248 -2
- package/dist/style/slider.css +248 -2
- package/dist/style/slottable.css +248 -2
- package/dist/style/steps.css +248 -2
- package/dist/style/switch.css +248 -2
- package/dist/style/table.css +248 -2
- package/dist/style/tabs.css +248 -2
- package/dist/style/tag.css +248 -2
- package/dist/style/text.css +248 -2
- package/dist/style/timeline.css +248 -2
- package/dist/style/timepicker.css +248 -2
- package/dist/style/tooltip.css +248 -2
- package/dist/style/tree.css +248 -2
- package/dist/style/typography.css +248 -2
- package/dist/style/upload.css +248 -2
- 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.7f549f9.woff +0 -0
- package/dist/font/iconfont.9a16feb.woff2 +0 -0
package/dist/pagination.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("./_util/proptype"), require("./input"));
|
|
3
|
+
module.exports = factory(require("./_util/proptype"), require("./_mixin/locale"), require("./input"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["./_util/proptype", "./input"], factory);
|
|
5
|
+
define(["./_util/proptype", "./_mixin/locale", "./input"], factory);
|
|
6
6
|
else {
|
|
7
|
-
var a = typeof exports === 'object' ? factory(require("./_util/proptype"), require("./input")) : factory(root["./_util/proptype"], root["./input"]);
|
|
7
|
+
var a = typeof exports === 'object' ? factory(require("./_util/proptype"), require("./_mixin/locale"), require("./input")) : factory(root["./_util/proptype"], root["./_mixin/locale"], root["./input"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(window, function(__WEBPACK_EXTERNAL_MODULE__8__,
|
|
10
|
+
})(window, function(__WEBPACK_EXTERNAL_MODULE__8__, __WEBPACK_EXTERNAL_MODULE__10__, __WEBPACK_EXTERNAL_MODULE__17__) {
|
|
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 = 98);
|
|
95
95
|
/******/ })
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
@@ -203,28 +203,35 @@ function normalizeComponent (
|
|
|
203
203
|
|
|
204
204
|
/***/ }),
|
|
205
205
|
|
|
206
|
-
/***/
|
|
206
|
+
/***/ 10:
|
|
207
|
+
/***/ (function(module, exports) {
|
|
208
|
+
|
|
209
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__10__;
|
|
210
|
+
|
|
211
|
+
/***/ }),
|
|
212
|
+
|
|
213
|
+
/***/ 142:
|
|
207
214
|
/***/ (function(module, exports) {
|
|
208
215
|
|
|
209
216
|
// removed by extract-text-webpack-plugin
|
|
210
217
|
|
|
211
218
|
/***/ }),
|
|
212
219
|
|
|
213
|
-
/***/
|
|
220
|
+
/***/ 17:
|
|
214
221
|
/***/ (function(module, exports) {
|
|
215
222
|
|
|
216
|
-
module.exports =
|
|
223
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__17__;
|
|
217
224
|
|
|
218
225
|
/***/ }),
|
|
219
226
|
|
|
220
|
-
/***/
|
|
227
|
+
/***/ 186:
|
|
221
228
|
/***/ (function(module, exports) {
|
|
222
229
|
|
|
223
230
|
// removed by extract-text-webpack-plugin
|
|
224
231
|
|
|
225
232
|
/***/ }),
|
|
226
233
|
|
|
227
|
-
/***/
|
|
234
|
+
/***/ 204:
|
|
228
235
|
/***/ (function(module, exports) {
|
|
229
236
|
|
|
230
237
|
// removed by extract-text-webpack-plugin
|
|
@@ -238,13 +245,13 @@ module.exports = require("babel-runtime/helpers/defineProperty");
|
|
|
238
245
|
|
|
239
246
|
/***/ }),
|
|
240
247
|
|
|
241
|
-
/***/
|
|
248
|
+
/***/ 60:
|
|
242
249
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
243
250
|
|
|
244
251
|
"use strict";
|
|
245
|
-
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
252
|
+
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(142);
|
|
246
253
|
/* harmony import */ var _style_index_less__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_style_index_less__WEBPACK_IMPORTED_MODULE_0__);
|
|
247
|
-
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
254
|
+
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(186);
|
|
248
255
|
/* harmony import */ var _index_less__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_index_less__WEBPACK_IMPORTED_MODULE_1__);
|
|
249
256
|
|
|
250
257
|
|
|
@@ -258,7 +265,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
|
|
|
258
265
|
|
|
259
266
|
/***/ }),
|
|
260
267
|
|
|
261
|
-
/***/
|
|
268
|
+
/***/ 98:
|
|
262
269
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
263
270
|
|
|
264
271
|
"use strict";
|
|
@@ -266,13 +273,13 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__8__;
|
|
|
266
273
|
__webpack_require__.r(__webpack_exports__);
|
|
267
274
|
|
|
268
275
|
// EXTERNAL MODULE: ./components/style/index.less
|
|
269
|
-
var style = __webpack_require__(
|
|
276
|
+
var style = __webpack_require__(142);
|
|
270
277
|
|
|
271
278
|
// EXTERNAL MODULE: ./components/pagination/style/index.less
|
|
272
|
-
var pagination_style = __webpack_require__(
|
|
279
|
+
var pagination_style = __webpack_require__(204);
|
|
273
280
|
|
|
274
281
|
// EXTERNAL MODULE: ./components/input/style/index.js
|
|
275
|
-
var input_style = __webpack_require__(
|
|
282
|
+
var input_style = __webpack_require__(60);
|
|
276
283
|
|
|
277
284
|
// CONCATENATED MODULE: ./components/pagination/style/index.js
|
|
278
285
|
|
|
@@ -301,9 +308,7 @@ var render = function () {
|
|
|
301
308
|
!_vm.mini &&
|
|
302
309
|
_vm.totalSeat === "left"
|
|
303
310
|
? _c("li", { class: _vm.prefixCls + "-total" }, [
|
|
304
|
-
_vm._v("\n
|
|
305
|
-
_c("b", [_vm._v(_vm._s(_vm.total))]),
|
|
306
|
-
_vm._v(" 条\n "),
|
|
311
|
+
_vm._v("\n " + _vm._s(_vm.dispatchTotal) + "\n\n "),
|
|
307
312
|
])
|
|
308
313
|
: _vm._e(),
|
|
309
314
|
!_vm.simple &&
|
|
@@ -494,11 +499,7 @@ var render = function () {
|
|
|
494
499
|
staticClass: "total-seat-right",
|
|
495
500
|
class: _vm.prefixCls + "-total",
|
|
496
501
|
},
|
|
497
|
-
[
|
|
498
|
-
_vm._v("\n 共 "),
|
|
499
|
-
_c("b", [_vm._v(_vm._s(_vm.total))]),
|
|
500
|
-
_vm._v(" 条\n "),
|
|
501
|
-
]
|
|
502
|
+
[_vm._v("\n " + _vm._s(_vm.dispatchTotal) + "\n ")]
|
|
502
503
|
)
|
|
503
504
|
: _vm._e(),
|
|
504
505
|
],
|
|
@@ -541,7 +542,7 @@ var optionvue_type_template_id_1ad093df_render = function () {
|
|
|
541
542
|
"div",
|
|
542
543
|
{ class: _vm.prefixCls + "-quick-jumper" },
|
|
543
544
|
[
|
|
544
|
-
_vm._v("\n " + _vm._s(_vm.
|
|
545
|
+
_vm._v("\n " + _vm._s(_vm.dispatchJumpTo) + "\n "),
|
|
545
546
|
_c("mds-input", {
|
|
546
547
|
attrs: { type: "text" },
|
|
547
548
|
on: { "press-enter": _vm.handleJump, blur: _vm.blurJump },
|
|
@@ -553,7 +554,7 @@ var optionvue_type_template_id_1ad093df_render = function () {
|
|
|
553
554
|
expression: "pageText",
|
|
554
555
|
},
|
|
555
556
|
}),
|
|
556
|
-
_vm._v("\n " + _vm._s(_vm.
|
|
557
|
+
_vm._v("\n " + _vm._s(_vm.dispatchPageText) + "\n "),
|
|
557
558
|
],
|
|
558
559
|
1
|
|
559
560
|
),
|
|
@@ -566,9 +567,13 @@ optionvue_type_template_id_1ad093df_render._withStripped = true
|
|
|
566
567
|
// CONCATENATED MODULE: ./components/pagination/option.vue?vue&type=template&id=1ad093df&
|
|
567
568
|
|
|
568
569
|
// EXTERNAL MODULE: external "./input"
|
|
569
|
-
var external_input_ = __webpack_require__(
|
|
570
|
+
var external_input_ = __webpack_require__(17);
|
|
570
571
|
var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_);
|
|
571
572
|
|
|
573
|
+
// EXTERNAL MODULE: external "./_mixin/locale"
|
|
574
|
+
var locale_ = __webpack_require__(10);
|
|
575
|
+
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
576
|
+
|
|
572
577
|
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./components/pagination/option.vue?vue&type=script&lang=js&
|
|
573
578
|
//
|
|
574
579
|
//
|
|
@@ -584,8 +589,10 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
|
|
|
584
589
|
|
|
585
590
|
|
|
586
591
|
|
|
592
|
+
|
|
587
593
|
/* harmony default export */ var optionvue_type_script_lang_js_ = ({
|
|
588
594
|
name: 'MdsPaginationOption',
|
|
595
|
+
mixins: [locale_default.a],
|
|
589
596
|
props: {
|
|
590
597
|
calculatePage: {
|
|
591
598
|
type: Number,
|
|
@@ -634,6 +641,14 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
|
|
|
634
641
|
currentPage: function currentPage() {
|
|
635
642
|
this.pageText = this.currentPage;
|
|
636
643
|
}
|
|
644
|
+
},
|
|
645
|
+
computed: {
|
|
646
|
+
dispatchJumpTo: function dispatchJumpTo() {
|
|
647
|
+
return this.t('mds.pagination.goto');
|
|
648
|
+
},
|
|
649
|
+
dispatchPageText: function dispatchPageText() {
|
|
650
|
+
return this.t('mds.pagination.pageClassifier');
|
|
651
|
+
}
|
|
637
652
|
}
|
|
638
653
|
});
|
|
639
654
|
// CONCATENATED MODULE: ./components/pagination/option.vue?vue&type=script&lang=js&
|
|
@@ -681,7 +696,7 @@ var changePagevue_type_template_id_26e49fc9_render = function () {
|
|
|
681
696
|
{
|
|
682
697
|
staticStyle: { width: "120px" },
|
|
683
698
|
attrs: {
|
|
684
|
-
placeholder:
|
|
699
|
+
placeholder: _vm.dispatchPlaceholder,
|
|
685
700
|
value: _vm.newSizeValue,
|
|
686
701
|
size: "medium",
|
|
687
702
|
},
|
|
@@ -690,8 +705,8 @@ var changePagevue_type_template_id_26e49fc9_render = function () {
|
|
|
690
705
|
_vm._l(_vm.pageSizes, function (item) {
|
|
691
706
|
return _c(
|
|
692
707
|
"mds-option",
|
|
693
|
-
{ key: item, attrs: { value: item +
|
|
694
|
-
[_vm._v(_vm._s(item
|
|
708
|
+
{ key: item, attrs: { value: "" + item + _vm.dispatchPageSize } },
|
|
709
|
+
[_vm._v(_vm._s("" + item + _vm.dispatchPageSize))]
|
|
695
710
|
)
|
|
696
711
|
}),
|
|
697
712
|
1
|
|
@@ -722,10 +737,12 @@ changePagevue_type_template_id_26e49fc9_render._withStripped = true
|
|
|
722
737
|
//
|
|
723
738
|
//
|
|
724
739
|
|
|
740
|
+
// import locale from './locale/zh_CN'
|
|
725
741
|
|
|
726
742
|
|
|
727
743
|
/* harmony default export */ var changePagevue_type_script_lang_js_ = ({
|
|
728
744
|
name: 'MdsPaginationOption',
|
|
745
|
+
mixins: [locale_default.a],
|
|
729
746
|
props: {
|
|
730
747
|
prefixCls: {
|
|
731
748
|
type: String,
|
|
@@ -744,18 +761,24 @@ changePagevue_type_template_id_26e49fc9_render._withStripped = true
|
|
|
744
761
|
},
|
|
745
762
|
data: function data() {
|
|
746
763
|
return {
|
|
747
|
-
locale
|
|
748
|
-
sizeValue: this.newSizeValue || this.pageSizes[0] +
|
|
764
|
+
// locale,
|
|
765
|
+
sizeValue: this.newSizeValue || this.pageSizes[0] + this.dispatchPageSize
|
|
749
766
|
};
|
|
750
767
|
},
|
|
751
768
|
|
|
752
769
|
computed: {
|
|
753
770
|
newSizeValue: function newSizeValue() {
|
|
754
771
|
if (this.pageSizes.includes(this.pageSizeNum)) {
|
|
755
|
-
return this.pageSizeNum +
|
|
772
|
+
return this.pageSizeNum + this.dispatchPageSize;
|
|
756
773
|
} else {
|
|
757
|
-
return this.pageSizes[0] +
|
|
774
|
+
return this.pageSizes[0] + this.dispatchPageSize;
|
|
758
775
|
}
|
|
776
|
+
},
|
|
777
|
+
dispatchPageSize: function dispatchPageSize() {
|
|
778
|
+
return this.t('mds.pagination.pagesize');
|
|
779
|
+
},
|
|
780
|
+
dispatchPlaceholder: function dispatchPlaceholder() {
|
|
781
|
+
return this.t('mds.pagination.placeholder');
|
|
759
782
|
}
|
|
760
783
|
},
|
|
761
784
|
methods: {
|
|
@@ -940,6 +963,10 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
|
|
|
940
963
|
//
|
|
941
964
|
//
|
|
942
965
|
//
|
|
966
|
+
//
|
|
967
|
+
//
|
|
968
|
+
//
|
|
969
|
+
|
|
943
970
|
|
|
944
971
|
|
|
945
972
|
|
|
@@ -949,6 +976,7 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
|
|
|
949
976
|
|
|
950
977
|
/* harmony default export */ var paginationvue_type_script_lang_js_ = ({
|
|
951
978
|
name: 'MdsPagination',
|
|
979
|
+
mixins: [locale_default.a],
|
|
952
980
|
props: {
|
|
953
981
|
controlled: {
|
|
954
982
|
type: Boolean,
|
|
@@ -1020,6 +1048,12 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
|
|
|
1020
1048
|
pageSizesSeat: {
|
|
1021
1049
|
type: String,
|
|
1022
1050
|
default: 'left'
|
|
1051
|
+
},
|
|
1052
|
+
totalNum: {
|
|
1053
|
+
type: String
|
|
1054
|
+
},
|
|
1055
|
+
totalPage: {
|
|
1056
|
+
type: String
|
|
1023
1057
|
}
|
|
1024
1058
|
},
|
|
1025
1059
|
data: function data() {
|
|
@@ -1095,6 +1129,12 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
|
|
|
1095
1129
|
},
|
|
1096
1130
|
showJumpPrev: function showJumpPrev() {
|
|
1097
1131
|
return this.currentPage > 4 && this.calculatePage > 5;
|
|
1132
|
+
},
|
|
1133
|
+
dispatchTotalPage: function dispatchTotalPage() {
|
|
1134
|
+
return this.totalPage || this.t('mds.pagination.totalPage', { total: this.total });
|
|
1135
|
+
},
|
|
1136
|
+
dispatchTotal: function dispatchTotal() {
|
|
1137
|
+
return this.totalNum || this.t('mds.pagination.total', { total: this.total });
|
|
1098
1138
|
}
|
|
1099
1139
|
},
|
|
1100
1140
|
watch: {
|