bk-magic-vue 2.5.10-beta.7 → 2.5.10-beta.9
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/bk-magic-vue.js +49 -30
- package/dist/bk-magic-vue.min.js +1 -1
- package/dist/bk-magic-vue.min.js.gz +0 -0
- package/dist/bk-magic-vue.min.js.map +1 -1
- package/lib/locale/lang/en-US.js +7 -0
- package/lib/locale/lang/index.js +7 -0
- package/lib/locale/lang/ja-JP.js +7 -0
- package/lib/locale/lang/zh-CN.js +7 -0
- package/lib/pagination.js +28 -30
- package/lib/select.js +1 -1
- package/lib/table.js +28 -30
- package/package.json +1 -1
package/dist/bk-magic-vue.js
CHANGED
|
@@ -8713,6 +8713,13 @@
|
|
|
8713
8713
|
},
|
|
8714
8714
|
versionDetail: {
|
|
8715
8715
|
currentTagText: 'Current'
|
|
8716
|
+
},
|
|
8717
|
+
pagination: {
|
|
8718
|
+
total: 'Total',
|
|
8719
|
+
perPage: 'Per Page',
|
|
8720
|
+
items: 'items',
|
|
8721
|
+
pages: 'Pages',
|
|
8722
|
+
selected: 'Selected'
|
|
8716
8723
|
}
|
|
8717
8724
|
}
|
|
8718
8725
|
};
|
|
@@ -8874,6 +8881,13 @@
|
|
|
8874
8881
|
},
|
|
8875
8882
|
versionDetail: {
|
|
8876
8883
|
currentTagText: '現在のバージョン'
|
|
8884
|
+
},
|
|
8885
|
+
pagination: {
|
|
8886
|
+
total: '合計',
|
|
8887
|
+
perPage: '各ページ',
|
|
8888
|
+
items: '本',
|
|
8889
|
+
pages: 'ページ数',
|
|
8890
|
+
selected: '選択済'
|
|
8877
8891
|
}
|
|
8878
8892
|
}
|
|
8879
8893
|
};
|
|
@@ -9035,6 +9049,13 @@
|
|
|
9035
9049
|
},
|
|
9036
9050
|
versionDetail: {
|
|
9037
9051
|
currentTagText: '当前版本'
|
|
9052
|
+
},
|
|
9053
|
+
pagination: {
|
|
9054
|
+
total: '共计',
|
|
9055
|
+
perPage: '每页',
|
|
9056
|
+
items: '条',
|
|
9057
|
+
pages: '页数',
|
|
9058
|
+
selected: '已选择'
|
|
9038
9059
|
}
|
|
9039
9060
|
}
|
|
9040
9061
|
};
|
|
@@ -34912,7 +34933,7 @@
|
|
|
34912
34933
|
},
|
|
34913
34934
|
scrollActiveOptionIntoView: function scrollActiveOptionIntoView() {
|
|
34914
34935
|
var optionsDom = this.$refs.optionList.querySelectorAll('.is-selected');
|
|
34915
|
-
if (!optionsDom) return;
|
|
34936
|
+
if (!optionsDom || !optionsDom.length) return;
|
|
34916
34937
|
optionsDom[0].scrollIntoView({
|
|
34917
34938
|
block: 'nearest'
|
|
34918
34939
|
});
|
|
@@ -35248,11 +35269,11 @@
|
|
|
35248
35269
|
var _c = _vm._self._c || _h;
|
|
35249
35270
|
return _c('div', {
|
|
35250
35271
|
class: ['bk-page-selection-count', "bk-page-selection-count-" + _vm.$parent.realityLocation]
|
|
35251
|
-
}, [_vm.$parent.curLang === '
|
|
35272
|
+
}, [_vm.$parent.curLang === 'en' ? [_c('span', {
|
|
35252
35273
|
staticClass: "count"
|
|
35253
|
-
}, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v("
|
|
35274
|
+
}, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v(" item(s) selected\n ")] : [_vm._v("\n " + _vm._s(_vm.t('bk.pagination.selected')) + "\n "), _c('span', {
|
|
35254
35275
|
staticClass: "count"
|
|
35255
|
-
}, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v("
|
|
35276
|
+
}, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v("\n " + _vm._s(_vm.t('bk.pagination.items')) + "\n ")]], 2);
|
|
35256
35277
|
};
|
|
35257
35278
|
var __vue_staticRenderFns__$M = [];
|
|
35258
35279
|
|
|
@@ -35286,11 +35307,9 @@
|
|
|
35286
35307
|
class: ['bk-page-total-count', "bk-page-total-count-" + _vm.$parent.realityLocation, {
|
|
35287
35308
|
'bk-page-total-small': _vm.$parent.small
|
|
35288
35309
|
}]
|
|
35289
|
-
}, [_vm
|
|
35290
|
-
staticClass: "stress"
|
|
35291
|
-
}, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v("条\n ")] : [_vm._v("\n Total: "), _c('span', {
|
|
35310
|
+
}, [_vm._v("\n " + _vm._s(_vm.t('bk.pagination.total')) + "\n "), _c('span', {
|
|
35292
35311
|
staticClass: "stress"
|
|
35293
|
-
}, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v(" items\n
|
|
35312
|
+
}, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v("\n " + _vm._s(_vm.t('bk.pagination.items')) + "\n")]) : _vm._e();
|
|
35294
35313
|
};
|
|
35295
35314
|
var __vue_staticRenderFns__$N = [];
|
|
35296
35315
|
|
|
@@ -35627,10 +35646,10 @@
|
|
|
35627
35646
|
computed: {
|
|
35628
35647
|
curLang: function curLang() {
|
|
35629
35648
|
var l = locale.getCurLang().bk.lang;
|
|
35630
|
-
if (['
|
|
35631
|
-
return '
|
|
35649
|
+
if (['en-US', 'en-us', 'en', 'us'].indexOf(1) > -1) {
|
|
35650
|
+
return 'en';
|
|
35632
35651
|
}
|
|
35633
|
-
return '
|
|
35652
|
+
return 'cn';
|
|
35634
35653
|
},
|
|
35635
35654
|
total: function total() {
|
|
35636
35655
|
return Math.ceil(this.count / this.realityLimit);
|
|
@@ -35774,20 +35793,10 @@
|
|
|
35774
35793
|
}, _vm.extCls]
|
|
35775
35794
|
}, [_vm.showTotalCount ? _c('pagination-total-count') : _vm._e(), _vm.showLimit ? _c('div', {
|
|
35776
35795
|
class: ['bk-page-count', "bk-page-count-" + _vm.realityLocation, _vm.small && 'bk-page-count-small']
|
|
35777
|
-
}, [_vm.curLang === '
|
|
35778
|
-
class: {
|
|
35779
|
-
'page-select-small': _vm.small && !_vm.toggle
|
|
35780
|
-
},
|
|
35796
|
+
}, [_vm.curLang === 'en' ? [_c('bk-select', {
|
|
35781
35797
|
attrs: {
|
|
35782
|
-
"placeholder":
|
|
35783
|
-
"
|
|
35784
|
-
"clearable": false,
|
|
35785
|
-
"size": _vm.small ? 'small' : ''
|
|
35786
|
-
},
|
|
35787
|
-
on: {
|
|
35788
|
-
"toggle": function toggle(value) {
|
|
35789
|
-
return _vm.toggle = value;
|
|
35790
|
-
}
|
|
35798
|
+
"placeholder": _vm.t('bk.pagination.pages'),
|
|
35799
|
+
"clearable": false
|
|
35791
35800
|
},
|
|
35792
35801
|
model: {
|
|
35793
35802
|
value: _vm.realityLimit,
|
|
@@ -35801,13 +35810,23 @@
|
|
|
35801
35810
|
key: index,
|
|
35802
35811
|
attrs: {
|
|
35803
35812
|
"id": p.id,
|
|
35804
|
-
"name": p.count
|
|
35813
|
+
"name": p.count + "/page"
|
|
35805
35814
|
}
|
|
35806
35815
|
});
|
|
35807
|
-
}), 1)
|
|
35816
|
+
}), 1)] : [_c('span', [_vm._v(_vm._s(_vm.t('bk.pagination.perPage')))]), _c('bk-select', {
|
|
35817
|
+
class: {
|
|
35818
|
+
'page-select-small': _vm.small && !_vm.toggle
|
|
35819
|
+
},
|
|
35808
35820
|
attrs: {
|
|
35809
|
-
"placeholder":
|
|
35810
|
-
"
|
|
35821
|
+
"placeholder": _vm.t('bk.pagination.pages'),
|
|
35822
|
+
"popover-options": _vm.popoverOptions,
|
|
35823
|
+
"clearable": false,
|
|
35824
|
+
"size": _vm.small ? 'small' : ''
|
|
35825
|
+
},
|
|
35826
|
+
on: {
|
|
35827
|
+
"toggle": function toggle(value) {
|
|
35828
|
+
return _vm.toggle = value;
|
|
35829
|
+
}
|
|
35811
35830
|
},
|
|
35812
35831
|
model: {
|
|
35813
35832
|
value: _vm.realityLimit,
|
|
@@ -35821,10 +35840,10 @@
|
|
|
35821
35840
|
key: index,
|
|
35822
35841
|
attrs: {
|
|
35823
35842
|
"id": p.id,
|
|
35824
|
-
"name": p.count
|
|
35843
|
+
"name": p.count
|
|
35825
35844
|
}
|
|
35826
35845
|
});
|
|
35827
|
-
}), 1)]], 2) : _vm._e(), _vm.showSelectionCount ? _c('pagination-selection-count') : _vm._e(), !_vm.small ? _c('div', {
|
|
35846
|
+
}), 1), _c('span', [_vm._v(_vm._s(_vm.t('bk.pagination.items')))])]], 2) : _vm._e(), _vm.showSelectionCount ? _c('pagination-selection-count') : _vm._e(), !_vm.small ? _c('div', {
|
|
35828
35847
|
staticClass: "bk-page-list-wrapper"
|
|
35829
35848
|
}, [_c('ul', {
|
|
35830
35849
|
staticClass: "bk-page-list"
|