@mdsfe/mds-ui 0.2.11-rc.10 → 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/CHANGELOG.md +994 -0
- 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 +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.3375cbc.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 +1883 -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 +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 +58 -37
- package/dist/slottable.js +75 -50
- package/dist/steps.js +6 -6
- package/dist/style/affix.css +190 -1
- package/dist/style/alert.css +190 -1
- package/dist/style/anchor.css +190 -1
- package/dist/style/avatar.css +190 -1
- package/dist/style/badge.css +190 -1
- package/dist/style/bordershadow.css +190 -1
- package/dist/style/breadcrumb.css +190 -1
- package/dist/style/button.css +190 -1
- package/dist/style/card.css +190 -1
- package/dist/style/carousel.css +190 -1
- package/dist/style/checkbox.css +190 -1
- package/dist/style/col.css +190 -1
- package/dist/style/collapse.css +190 -1
- package/dist/style/color.css +190 -1
- package/dist/style/datepicker.css +190 -1
- package/dist/style/divider.css +190 -1
- package/dist/style/drawer.css +190 -1
- package/dist/style/dropdown.css +190 -1
- package/dist/style/empty.css +190 -1
- package/dist/style/font.css +190 -1
- package/dist/style/form.css +190 -1
- package/dist/style/icon.css +190 -1
- package/dist/style/input.css +190 -1
- package/dist/style/inputnumber.css +190 -1
- package/dist/style/layout.css +190 -1
- package/dist/style/list.css +190 -1
- package/dist/style/loading.css +190 -1
- package/dist/style/menu.css +190 -1
- package/dist/style/modal.css +190 -1
- package/dist/style/notification.css +190 -1
- package/dist/style/pagination.css +190 -1
- package/dist/style/popconfirm.css +190 -1
- package/dist/style/popover.css +190 -1
- package/dist/style/progress.css +190 -1
- package/dist/style/radio.css +190 -1
- package/dist/style/rate.css +190 -1
- package/dist/style/row.css +190 -1
- package/dist/style/select.css +190 -1
- package/dist/style/slider.css +190 -1
- package/dist/style/slottable.css +190 -1
- package/dist/style/steps.css +190 -1
- package/dist/style/switch.css +190 -1
- package/dist/style/table.css +190 -1
- package/dist/style/tabs.css +190 -1
- package/dist/style/tag.css +190 -1
- package/dist/style/text.css +190 -1
- package/dist/style/timeline.css +190 -1
- package/dist/style/timepicker.css +190 -1
- package/dist/style/tooltip.css +190 -1
- package/dist/style/tree.css +190 -1
- package/dist/style/typography.css +190 -1
- package/dist/style/upload.css +190 -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.18d0990.woff +0 -0
- package/dist/font/iconfont.98a83f4.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
|
|
|
@@ -303,7 +310,7 @@ var render = function () {
|
|
|
303
310
|
? _c("li", { class: _vm.prefixCls + "-total" }, [
|
|
304
311
|
_vm._v("\n 共 "),
|
|
305
312
|
_c("b", [_vm._v(_vm._s(_vm.total))]),
|
|
306
|
-
_vm._v(" 条\n "),
|
|
313
|
+
_vm._v(" 条\n\n "),
|
|
307
314
|
])
|
|
308
315
|
: _vm._e(),
|
|
309
316
|
!_vm.simple &&
|
|
@@ -494,11 +501,7 @@ var render = function () {
|
|
|
494
501
|
staticClass: "total-seat-right",
|
|
495
502
|
class: _vm.prefixCls + "-total",
|
|
496
503
|
},
|
|
497
|
-
[
|
|
498
|
-
_vm._v("\n 共 "),
|
|
499
|
-
_c("b", [_vm._v(_vm._s(_vm.total))]),
|
|
500
|
-
_vm._v(" 条\n "),
|
|
501
|
-
]
|
|
504
|
+
[_vm._v("\n " + _vm._s(_vm.dispatchTota) + "\n ")]
|
|
502
505
|
)
|
|
503
506
|
: _vm._e(),
|
|
504
507
|
],
|
|
@@ -541,7 +544,7 @@ var optionvue_type_template_id_1ad093df_render = function () {
|
|
|
541
544
|
"div",
|
|
542
545
|
{ class: _vm.prefixCls + "-quick-jumper" },
|
|
543
546
|
[
|
|
544
|
-
_vm._v("\n " + _vm._s(_vm.
|
|
547
|
+
_vm._v("\n " + _vm._s(_vm.dispatchJumpTo) + "\n "),
|
|
545
548
|
_c("mds-input", {
|
|
546
549
|
attrs: { type: "text" },
|
|
547
550
|
on: { "press-enter": _vm.handleJump, blur: _vm.blurJump },
|
|
@@ -553,7 +556,7 @@ var optionvue_type_template_id_1ad093df_render = function () {
|
|
|
553
556
|
expression: "pageText",
|
|
554
557
|
},
|
|
555
558
|
}),
|
|
556
|
-
_vm._v("\n " + _vm._s(_vm.
|
|
559
|
+
_vm._v("\n " + _vm._s(_vm.dispatchPageText) + "\n "),
|
|
557
560
|
],
|
|
558
561
|
1
|
|
559
562
|
),
|
|
@@ -566,9 +569,13 @@ optionvue_type_template_id_1ad093df_render._withStripped = true
|
|
|
566
569
|
// CONCATENATED MODULE: ./components/pagination/option.vue?vue&type=template&id=1ad093df&
|
|
567
570
|
|
|
568
571
|
// EXTERNAL MODULE: external "./input"
|
|
569
|
-
var external_input_ = __webpack_require__(
|
|
572
|
+
var external_input_ = __webpack_require__(17);
|
|
570
573
|
var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_);
|
|
571
574
|
|
|
575
|
+
// EXTERNAL MODULE: external "./_mixin/locale"
|
|
576
|
+
var locale_ = __webpack_require__(10);
|
|
577
|
+
var locale_default = /*#__PURE__*/__webpack_require__.n(locale_);
|
|
578
|
+
|
|
572
579
|
// 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
580
|
//
|
|
574
581
|
//
|
|
@@ -584,8 +591,10 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
|
|
|
584
591
|
|
|
585
592
|
|
|
586
593
|
|
|
594
|
+
|
|
587
595
|
/* harmony default export */ var optionvue_type_script_lang_js_ = ({
|
|
588
596
|
name: 'MdsPaginationOption',
|
|
597
|
+
mixins: [locale_default.a],
|
|
589
598
|
props: {
|
|
590
599
|
calculatePage: {
|
|
591
600
|
type: Number,
|
|
@@ -634,6 +643,14 @@ var external_input_default = /*#__PURE__*/__webpack_require__.n(external_input_)
|
|
|
634
643
|
currentPage: function currentPage() {
|
|
635
644
|
this.pageText = this.currentPage;
|
|
636
645
|
}
|
|
646
|
+
},
|
|
647
|
+
computed: {
|
|
648
|
+
dispatchJumpTo: function dispatchJumpTo() {
|
|
649
|
+
return this.t('mds.pagination.goto');
|
|
650
|
+
},
|
|
651
|
+
dispatchPageText: function dispatchPageText() {
|
|
652
|
+
return this.t('mds.pagination.pageClassifier');
|
|
653
|
+
}
|
|
637
654
|
}
|
|
638
655
|
});
|
|
639
656
|
// CONCATENATED MODULE: ./components/pagination/option.vue?vue&type=script&lang=js&
|
|
@@ -681,7 +698,7 @@ var changePagevue_type_template_id_26e49fc9_render = function () {
|
|
|
681
698
|
{
|
|
682
699
|
staticStyle: { width: "120px" },
|
|
683
700
|
attrs: {
|
|
684
|
-
placeholder:
|
|
701
|
+
placeholder: _vm.dispatchPlaceholder,
|
|
685
702
|
value: _vm.newSizeValue,
|
|
686
703
|
size: "medium",
|
|
687
704
|
},
|
|
@@ -690,8 +707,8 @@ var changePagevue_type_template_id_26e49fc9_render = function () {
|
|
|
690
707
|
_vm._l(_vm.pageSizes, function (item) {
|
|
691
708
|
return _c(
|
|
692
709
|
"mds-option",
|
|
693
|
-
{ key: item, attrs: { value: item +
|
|
694
|
-
[_vm._v(_vm._s(item
|
|
710
|
+
{ key: item, attrs: { value: "" + item + _vm.dispatchPageSize } },
|
|
711
|
+
[_vm._v(_vm._s("" + item + _vm.dispatchPageSize))]
|
|
695
712
|
)
|
|
696
713
|
}),
|
|
697
714
|
1
|
|
@@ -722,10 +739,12 @@ changePagevue_type_template_id_26e49fc9_render._withStripped = true
|
|
|
722
739
|
//
|
|
723
740
|
//
|
|
724
741
|
|
|
742
|
+
// import locale from './locale/zh_CN'
|
|
725
743
|
|
|
726
744
|
|
|
727
745
|
/* harmony default export */ var changePagevue_type_script_lang_js_ = ({
|
|
728
746
|
name: 'MdsPaginationOption',
|
|
747
|
+
mixins: [locale_default.a],
|
|
729
748
|
props: {
|
|
730
749
|
prefixCls: {
|
|
731
750
|
type: String,
|
|
@@ -744,18 +763,24 @@ changePagevue_type_template_id_26e49fc9_render._withStripped = true
|
|
|
744
763
|
},
|
|
745
764
|
data: function data() {
|
|
746
765
|
return {
|
|
747
|
-
locale
|
|
748
|
-
sizeValue: this.newSizeValue || this.pageSizes[0] +
|
|
766
|
+
// locale,
|
|
767
|
+
sizeValue: this.newSizeValue || this.pageSizes[0] + this.dispatchPageSize
|
|
749
768
|
};
|
|
750
769
|
},
|
|
751
770
|
|
|
752
771
|
computed: {
|
|
753
772
|
newSizeValue: function newSizeValue() {
|
|
754
773
|
if (this.pageSizes.includes(this.pageSizeNum)) {
|
|
755
|
-
return this.pageSizeNum +
|
|
774
|
+
return this.pageSizeNum + this.dispatchPageSize;
|
|
756
775
|
} else {
|
|
757
|
-
return this.pageSizes[0] +
|
|
776
|
+
return this.pageSizes[0] + this.dispatchPageSize;
|
|
758
777
|
}
|
|
778
|
+
},
|
|
779
|
+
dispatchPageSize: function dispatchPageSize() {
|
|
780
|
+
return this.t('mds.pagination.pagesize');
|
|
781
|
+
},
|
|
782
|
+
dispatchPlaceholder: function dispatchPlaceholder() {
|
|
783
|
+
return this.t('mds.pagination.placeholder');
|
|
759
784
|
}
|
|
760
785
|
},
|
|
761
786
|
methods: {
|
|
@@ -940,6 +965,9 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
|
|
|
940
965
|
//
|
|
941
966
|
//
|
|
942
967
|
//
|
|
968
|
+
//
|
|
969
|
+
//
|
|
970
|
+
|
|
943
971
|
|
|
944
972
|
|
|
945
973
|
|
|
@@ -949,6 +977,7 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
|
|
|
949
977
|
|
|
950
978
|
/* harmony default export */ var paginationvue_type_script_lang_js_ = ({
|
|
951
979
|
name: 'MdsPagination',
|
|
980
|
+
mixins: [locale_default.a],
|
|
952
981
|
props: {
|
|
953
982
|
controlled: {
|
|
954
983
|
type: Boolean,
|
|
@@ -1020,6 +1049,12 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
|
|
|
1020
1049
|
pageSizesSeat: {
|
|
1021
1050
|
type: String,
|
|
1022
1051
|
default: 'left'
|
|
1052
|
+
},
|
|
1053
|
+
totalNum: {
|
|
1054
|
+
type: String
|
|
1055
|
+
},
|
|
1056
|
+
totalPage: {
|
|
1057
|
+
type: String
|
|
1023
1058
|
}
|
|
1024
1059
|
},
|
|
1025
1060
|
data: function data() {
|
|
@@ -1095,6 +1130,12 @@ changePage_component.options.__file = "components/pagination/changePage.vue"
|
|
|
1095
1130
|
},
|
|
1096
1131
|
showJumpPrev: function showJumpPrev() {
|
|
1097
1132
|
return this.currentPage > 4 && this.calculatePage > 5;
|
|
1133
|
+
},
|
|
1134
|
+
dispatchTotalPage: function dispatchTotalPage() {
|
|
1135
|
+
return this.totalPage || this.t('mds.pagination.totalPage', { total: this.total });
|
|
1136
|
+
},
|
|
1137
|
+
dispatchTota: function dispatchTota() {
|
|
1138
|
+
return this.totalNum || this.t('mds.pagination.total', { total: this.total });
|
|
1098
1139
|
}
|
|
1099
1140
|
},
|
|
1100
1141
|
watch: {
|