bk-magic-vue 2.4.8 → 2.4.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.
Files changed (45) hide show
  1. package/bkui-vue2-helper/attributes.json +1 -0
  2. package/bkui-vue2-helper/tags.json +1 -0
  3. package/dist/bk-magic-vue.css +81 -10
  4. package/dist/bk-magic-vue.js +245 -115
  5. package/dist/bk-magic-vue.min.css +1 -1
  6. package/dist/bk-magic-vue.min.css.gz +0 -0
  7. package/dist/bk-magic-vue.min.css.map +1 -1
  8. package/dist/bk-magic-vue.min.js +1 -1
  9. package/dist/bk-magic-vue.min.js.gz +0 -0
  10. package/dist/bk-magic-vue.min.js.map +1 -1
  11. package/lib/button.js +1 -1
  12. package/lib/date-picker.js +1 -22
  13. package/lib/dialog.js +30 -8
  14. package/lib/image-viewer.js +84 -8
  15. package/lib/image.js +94 -13
  16. package/lib/info-box.js +31 -8
  17. package/lib/loading.js +6 -2
  18. package/lib/pagination.js +871 -51
  19. package/lib/resize-layout.js +24 -22
  20. package/lib/select.js +7 -3
  21. package/lib/spin.js +1 -1
  22. package/lib/tab.js +241 -210
  23. package/lib/table-setting-content.js +1 -1
  24. package/lib/table.js +782 -66
  25. package/lib/tag-input.js +6 -2
  26. package/lib/time-picker.js +1 -22
  27. package/lib/ui/bk-magic-vue.css +81 -10
  28. package/lib/ui/bk-magic-vue.min.css +1 -1
  29. package/lib/ui/bk-magic-vue.min.css.gz +0 -0
  30. package/lib/ui/bk-magic-vue.min.css.map +1 -1
  31. package/lib/ui/pagination.css +14 -0
  32. package/lib/ui/pagination.min.css +1 -1
  33. package/lib/ui/pagination.min.css.map +1 -1
  34. package/lib/ui/select.css +4 -0
  35. package/lib/ui/select.min.css +1 -1
  36. package/lib/ui/select.min.css.map +1 -1
  37. package/lib/ui/spin.css +38 -5
  38. package/lib/ui/spin.min.css +1 -1
  39. package/lib/ui/spin.min.css.map +1 -1
  40. package/lib/ui/tab.css +41 -5
  41. package/lib/ui/tab.min.css +1 -1
  42. package/lib/ui/tab.min.css.map +1 -1
  43. package/lib/version-detail.js +36 -10
  44. package/lib/zoom-image.js +372 -176
  45. package/package.json +2 -2
package/lib/table.js CHANGED
@@ -919,7 +919,7 @@
919
919
  type: String,
920
920
  default: 'primary',
921
921
  validator: function validator(value) {
922
- if (!['primary', 'warning', 'success', 'danger', 'info'].includes(value)) {
922
+ if (!['default', 'primary', 'warning', 'success', 'danger', 'info'].includes(value)) {
923
923
  console.error("theme property is not valid: '".concat(value, "'"));
924
924
  return false;
925
925
  }
@@ -9825,7 +9825,9 @@
9825
9825
  el.$vm.isShow = false;
9826
9826
  }, delay);
9827
9827
  } else {
9828
- el.$vm.isShow = false;
9828
+ Vue.nextTick(function () {
9829
+ el.$vm.isShow = false;
9830
+ });
9829
9831
  }
9830
9832
  }
9831
9833
  if (options.title) {
@@ -9859,7 +9861,9 @@
9859
9861
  }
9860
9862
  },
9861
9863
  update: function update(el, binding) {
9862
- toggle(el, binding.value);
9864
+ if (el.viewmodel) {
9865
+ toggle(el, binding.value);
9866
+ }
9863
9867
  }
9864
9868
  };
9865
9869
 
@@ -11708,9 +11712,516 @@
11708
11712
  staticRenderFns: __vue_staticRenderFns__$b
11709
11713
  }, __vue_inject_styles__$b, __vue_script__$b, __vue_scope_id__$b, __vue_is_functional_template__$b, __vue_module_identifier__$b, false, undefined, undefined, undefined);
11710
11714
 
11711
- /* script */
11715
+ _export(_export.S, 'Number', { MAX_SAFE_INTEGER: 0x1fffffffffffff });
11716
+
11717
+ var maxSafeInteger = 0x1fffffffffffff;
11718
+
11719
+ var maxSafeInteger$1 = maxSafeInteger;
11712
11720
 
11721
+ _export(_export.S, 'Number', { MIN_SAFE_INTEGER: -0x1fffffffffffff });
11722
+
11723
+ var minSafeInteger = -0x1fffffffffffff;
11724
+
11725
+ var minSafeInteger$1 = minSafeInteger;
11726
+
11727
+ var script$c = {
11728
+ name: 'bk-input',
11729
+ mixins: [emitter, locale.mixin],
11730
+ props: {
11731
+ type: {
11732
+ type: String,
11733
+ default: 'text',
11734
+ validator: function validator(value) {
11735
+ return ['text', 'textarea', 'password', 'number', 'email', 'url', 'date'].indexOf(value) > -1;
11736
+ }
11737
+ },
11738
+ value: {
11739
+ type: [String, Number],
11740
+ default: ''
11741
+ },
11742
+ placeholder: {
11743
+ type: String,
11744
+ default: ''
11745
+ },
11746
+ disabled: {
11747
+ type: Boolean,
11748
+ default: false
11749
+ },
11750
+ clearable: {
11751
+ type: Boolean,
11752
+ default: false
11753
+ },
11754
+ readonly: {
11755
+ type: Boolean,
11756
+ default: false
11757
+ },
11758
+ name: {
11759
+ type: String,
11760
+ default: ''
11761
+ },
11762
+ maxlength: {
11763
+ type: [Number, String]
11764
+ },
11765
+ minlength: {
11766
+ type: [Number, String]
11767
+ },
11768
+ min: {
11769
+ type: Number,
11770
+ default: minSafeInteger$1
11771
+ },
11772
+ max: {
11773
+ type: Number,
11774
+ default: maxSafeInteger$1
11775
+ },
11776
+ size: {
11777
+ type: String,
11778
+ default: '',
11779
+ validator: function validator(val) {
11780
+ return ['', 'large', 'small'].includes(val);
11781
+ }
11782
+ },
11783
+ leftIcon: {
11784
+ type: String,
11785
+ default: ''
11786
+ },
11787
+ rightIcon: {
11788
+ type: String,
11789
+ default: ''
11790
+ },
11791
+ rows: {
11792
+ type: Number
11793
+ },
11794
+ inputStyle: {
11795
+ type: Object
11796
+ },
11797
+ fontSize: {
11798
+ type: String,
11799
+ default: 'normal'
11800
+ },
11801
+ precision: Number,
11802
+ passwordIcon: {
11803
+ type: Array,
11804
+ default: function _default() {
11805
+ return ['icon-eye-slash', 'icon-eye'];
11806
+ }
11807
+ },
11808
+ showControls: {
11809
+ type: Boolean,
11810
+ default: true
11811
+ },
11812
+ extCls: {
11813
+ type: String,
11814
+ default: ''
11815
+ },
11816
+ nativeAttributes: {
11817
+ type: Object,
11818
+ default: null
11819
+ },
11820
+ showWordLimit: {
11821
+ type: Boolean,
11822
+ default: undefined
11823
+ },
11824
+ behavior: {
11825
+ type: String,
11826
+ default: 'normal',
11827
+ validate: function validate(v) {
11828
+ return ['simplicity', 'normal'].indexOf(v) > -1;
11829
+ }
11830
+ },
11831
+ showClearOnlyHover: {
11832
+ type: Boolean,
11833
+ default: false
11834
+ }
11835
+ },
11836
+ data: function data() {
11837
+ return {
11838
+ hover: false,
11839
+ curValue: '',
11840
+ prepend: false,
11841
+ append: false,
11842
+ isActive: false,
11843
+ defaultPlaceholder: '',
11844
+ rightIconStyle: {
11845
+ right: '10px'
11846
+ },
11847
+ rightPasswordIconStyle: {
11848
+ right: '10px'
11849
+ },
11850
+ inputType: this.type,
11851
+ inputSize: this.size,
11852
+ inputPasswordIcon: this.passwordIcon,
11853
+ inputRightPadding: '10px',
11854
+ iconAreaSizeObserver: null
11855
+ };
11856
+ },
11857
+ computed: {
11858
+ showClearIcon: function showClearIcon() {
11859
+ return this.clearable && this.curValue && !this.disabled && (this.showClearOnlyHover ? this.hover : true);
11860
+ },
11861
+ showPwdVisable: function showPwdVisable() {
11862
+ return this.type === 'password' && this.curValue && this.inputPasswordIcon.length && !this.readonly && !this.disabled;
11863
+ },
11864
+ showInputWordLimit: function showInputWordLimit() {
11865
+ if (!['text', 'textarea'].includes(this.type)) return false;
11866
+ return this.type === 'text' ? this.maxlength && this.showWordLimit : this.maxlength && this.showWordLimit !== false;
11867
+ },
11868
+ bindAttribute: function bindAttribute() {
11869
+ return this.getAttributeByType(this.inputType);
11870
+ },
11871
+ computedStyle: function computedStyle() {
11872
+ return _extends(this.inputType === 'textarea' ? {} : {
11873
+ 'padding-right': this.inputRightPadding
11874
+ }, this.inputStyle);
11875
+ },
11876
+ showLeftIcon: function showLeftIcon() {
11877
+ return this.leftIcon;
11878
+ },
11879
+ showRightIcon: function showRightIcon() {
11880
+ return this.rightIcon || this.clearable && this.curValue || this.type === 'password' || this.maxlength;
11881
+ },
11882
+ showTwoRightIcon: function showTwoRightIcon() {
11883
+ return this.clearable && this.curValue && this.type === 'password';
11884
+ },
11885
+ wrapperClass: function wrapperClass() {
11886
+ var wrapperClass = ['bk-form-control', {
11887
+ 'with-left-icon': this.showLeftIcon,
11888
+ 'with-right-icon': this.showRightIcon,
11889
+ 'with-two-right-icon': this.showTwoRightIcon,
11890
+ 'control-prepend-group': this.prepend,
11891
+ 'control-append-group': this.append,
11892
+ 'control-active': this.isActive,
11893
+ 'control-disable': this.disabled
11894
+ }];
11895
+ if (this.inputSize) {
11896
+ wrapperClass.push("bk-input-wrapper-".concat(this.inputSize));
11897
+ }
11898
+ return wrapperClass;
11899
+ },
11900
+ fontSizeCls: function fontSizeCls() {
11901
+ var cls = '';
11902
+ if (this.fontSize === 'medium') {
11903
+ cls = 'medium-font';
11904
+ } else if (this.fontSize === 'large') {
11905
+ cls = 'large-font';
11906
+ }
11907
+ return cls;
11908
+ },
11909
+ inputSizeCls: function inputSizeCls() {
11910
+ if (this.inputSize) {
11911
+ return "bk-input-".concat(this.inputSize);
11912
+ }
11913
+ return '';
11914
+ }
11915
+ },
11916
+ watch: {
11917
+ value: {
11918
+ handler: function handler(val, old) {
11919
+ this.setCurValue(val);
11920
+ old === undefined && this.updateNumberValue(val);
11921
+ },
11922
+ immediate: true
11923
+ },
11924
+ placeholder: function placeholder(val) {
11925
+ this.defaultPlaceholder = val || this.t('bk.input.input');
11926
+ },
11927
+ type: function type(val) {
11928
+ this.inputType = val;
11929
+ },
11930
+ size: function size(val) {
11931
+ this.inputSize = val;
11932
+ }
11933
+ },
11934
+ created: function created() {
11935
+ this.defaultPlaceholder = this.placeholder || this.t('bk.input.input');
11936
+ },
11937
+ mounted: function mounted() {
11938
+ var _this = this;
11939
+ this.prepend = this.$slots.prepend !== undefined;
11940
+ this.append = this.$slots.append !== undefined;
11941
+ if (this.$slots.append) {
11942
+ this.$nextTick(function () {
11943
+ var appendWidth = _parseFloat$2(getStyle(_this.$slots.append[0].elm, 'width'));
11944
+ _this.rightIconStyle = {
11945
+ right: _parseFloat$2(_this.rightIconStyle.right) + appendWidth + 'px'
11946
+ };
11947
+ });
11948
+ }
11949
+ if (this.clearable) {
11950
+ this.rightPasswordIconStyle = {
11951
+ right: '30px'
11952
+ };
11953
+ }
11954
+ this.observerIconSize();
11955
+ },
11956
+ beforeDestroy: function beforeDestroy() {
11957
+ this.iconAreaSizeObserver && typeof this.iconAreaSizeObserver.disconnect === 'function' && this.iconAreaSizeObserver.disconnect();
11958
+ this.iconAreaSizeObserver = null;
11959
+ },
11960
+ methods: {
11961
+ observerIconSize: function observerIconSize() {
11962
+ var _this2 = this;
11963
+ var element = this.$refs.rightIconArea;
11964
+ if (!element) return;
11965
+ if (typeof ResizeObserver !== 'undefined') {
11966
+ var defaultPadding = 10;
11967
+ this.iconAreaSizeObserver = new ResizeObserver(function (entries) {
11968
+ var _iterator = _createForOfIteratorHelper(entries),
11969
+ _step;
11970
+ try {
11971
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
11972
+ var entry = _step.value;
11973
+ var cr = entry.contentRect;
11974
+ _this2.inputRightPadding = "".concat(cr.width + defaultPadding, "px");
11975
+ }
11976
+ } catch (err) {
11977
+ _iterator.e(err);
11978
+ } finally {
11979
+ _iterator.f();
11980
+ }
11981
+ });
11982
+ this.iconAreaSizeObserver.observe(element);
11983
+ }
11984
+ },
11985
+ getAttributeByType: function getAttributeByType() {
11986
+ var type = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
11987
+ var defaultAttr = {
11988
+ type: type,
11989
+ name: this.name,
11990
+ placeholder: this.defaultPlaceholder,
11991
+ disabled: this.disabled,
11992
+ readonly: this.readonly,
11993
+ maxlength: this.maxlength,
11994
+ minlength: this.minlength,
11995
+ value: this.curValue
11996
+ };
11997
+ type = type.toLocaleLowerCase();
11998
+ var outputAttr = this.nativeAttributes || {};
11999
+ switch (type) {
12000
+ case 'number':
12001
+ var numberAttr = {
12002
+ min: this.min,
12003
+ max: this.max
12004
+ };
12005
+ _extends(outputAttr, defaultAttr, numberAttr);
12006
+ break;
12007
+ case 'textarea':
12008
+ var txtAttr = {
12009
+ rows: this.rows
12010
+ };
12011
+ _extends(outputAttr, defaultAttr, txtAttr);
12012
+ break;
12013
+ default:
12014
+ _extends(outputAttr, defaultAttr);
12015
+ break;
12016
+ }
12017
+ return outputAttr;
12018
+ },
12019
+ handleToFixed: function handleToFixed(defaultNumber, len) {
12020
+ var number = Number(defaultNumber);
12021
+ if (isNaN(number) || number >= Math.pow(10, 21)) {
12022
+ return number.toString();
12023
+ }
12024
+ if (typeof len === 'undefined' || len === 0) {
12025
+ return Math.round(number).toString();
12026
+ }
12027
+ var result = number.toString();
12028
+ var numberArr = result.split('.');
12029
+ if (numberArr.length < 2) {
12030
+ return this.handlePadNum(result, len);
12031
+ }
12032
+ var intNum = numberArr[0];
12033
+ var deciNum = numberArr[1];
12034
+ var lastNum = deciNum.substr(len, 1);
12035
+ if (deciNum.length === len) {
12036
+ return result;
12037
+ }
12038
+ if (deciNum.length < len) {
12039
+ return this.handlePadNum(result, len);
12040
+ }
12041
+ result = intNum + '.' + deciNum.substr(0, len);
12042
+ if (_parseInt$2(lastNum, 10) >= 5) {
12043
+ var times = Math.pow(10, len);
12044
+ var changedInt = Number(result.replace('.', ''));
12045
+ changedInt++;
12046
+ changedInt /= times;
12047
+ result = this.handlePadNum(changedInt + '', len);
12048
+ }
12049
+ return result;
12050
+ },
12051
+ handlePadNum: function handlePadNum(num, len) {
12052
+ var dotPos = num.indexOf('.');
12053
+ if (dotPos === -1) {
12054
+ num += '.';
12055
+ for (var i = 0; i < len; i++) {
12056
+ num += '0';
12057
+ }
12058
+ return num;
12059
+ } else {
12060
+ var need = len - (num.length - dotPos - 1);
12061
+ for (var j = 0; j < need; j++) {
12062
+ num += '0';
12063
+ }
12064
+ return num;
12065
+ }
12066
+ },
12067
+ handleNumberDelete: function handleNumberDelete(event) {
12068
+ this.curValue === '' && (this.curValue = this.max);
12069
+ var curNumberValue = Number(this.curValue);
12070
+ if (curNumberValue - 1 >= this.min) {
12071
+ var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
12072
+ var newVal = curNumberValue - 1;
12073
+ if (typeof this.precision !== 'undefined') {
12074
+ newVal = this.handleToFixed(newVal, Math.min(16, Math.max(curLenAfterDot.length, this.precision)));
12075
+ }
12076
+ this.setCurValue(newVal);
12077
+ this.$emit('input', newVal, event);
12078
+ this.$emit('change', newVal, event);
12079
+ this.dispatch('bk-form-item', 'form-change');
12080
+ }
12081
+ },
12082
+ handleNumberAdd: function handleNumberAdd(event) {
12083
+ this.curValue === '' && (this.curValue = this.min);
12084
+ var curNumberValue = Number(this.curValue);
12085
+ if (curNumberValue <= this.max - 1) {
12086
+ var curLenAfterDot = (String(curNumberValue) || '').split('.')[1] || '';
12087
+ var newVal = curNumberValue + 1;
12088
+ if (typeof this.precision !== 'undefined') {
12089
+ newVal = this.handleToFixed(newVal, Math.min(16, Math.max(curLenAfterDot.length, this.precision)));
12090
+ }
12091
+ this.setCurValue(newVal);
12092
+ this.$emit('input', newVal, event);
12093
+ this.$emit('change', newVal, event);
12094
+ this.dispatch('bk-form-item', 'form-change');
12095
+ }
12096
+ },
12097
+ handlerEnter: function handlerEnter(event) {
12098
+ var value = event.target.value;
12099
+ this.$emit('enter', value, event);
12100
+ },
12101
+ handlerKeyup: function handlerKeyup(event) {
12102
+ var value = event.target.value;
12103
+ this.$emit('keyup', value, event);
12104
+ },
12105
+ handlerKeypress: function handlerKeypress(event) {
12106
+ var value = event.target.value;
12107
+ this.$emit('keypress', value, event);
12108
+ },
12109
+ handlerKeydown: function handlerKeydown(event) {
12110
+ var value = event.target.value;
12111
+ this.$emit('keydown', value, event);
12112
+ },
12113
+ handlerFocus: function handlerFocus(event) {
12114
+ var value = event.target.value;
12115
+ this.isActive = true;
12116
+ this.$emit('focus', value, event);
12117
+ this.dispatch('bk-form-item', 'form-focus');
12118
+ },
12119
+ toPrecision: function toPrecision(num, precision) {
12120
+ if (precision === undefined) precision = 0;
12121
+ return this.handleToFixed(num, precision);
12122
+ },
12123
+ handlerBlur: function handlerBlur(event) {
12124
+ var value = event.target.value;
12125
+ if (/^number$/i.test(this.type) && value !== '') {
12126
+ if (value !== '' && /^-?\d*(.\d*)?$/i.test(value)) {
12127
+ if (value > this.max || value < this.min) {
12128
+ value = this.getCurrentNumberValue();
12129
+ }
12130
+ }
12131
+ if (typeof this.precision !== 'undefined') {
12132
+ value = this.toPrecision(Number(value), this.precision, true);
12133
+ } else {
12134
+ value = Number(value);
12135
+ }
12136
+ if (value + '' !== event.target.value + '') {
12137
+ this.setCurValue(value);
12138
+ event.target.value = value;
12139
+ this.$emit('change', value, event);
12140
+ this.$emit('input', value, event);
12141
+ }
12142
+ }
12143
+ this.isActive = false;
12144
+ this.$emit('blur', value, event);
12145
+ this.dispatch('bk-form-item', 'form-blur');
12146
+ },
12147
+ handlerPaste: function handlerPaste(event) {
12148
+ var value = event.target.value;
12149
+ this.$emit('paste', value, event);
12150
+ this.$emit('change', value, event);
12151
+ this.dispatch('bk-form-item', 'form-change');
12152
+ },
12153
+ getCurrentNumberValue: function getCurrentNumberValue() {
12154
+ var val = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
12155
+ val = val === null ? this.curValue : val;
12156
+ var value = '';
12157
+ if (val !== '' && /^-?\d*(.\d*)?$/i.test(val)) {
12158
+ value = Number(val);
12159
+ value = value > this.max ? this.max : value;
12160
+ value = value < this.min ? this.min : value;
12161
+ return value;
12162
+ }
12163
+ return '';
12164
+ },
12165
+ handlerInput: function handlerInput(event) {
12166
+ var value = event.target.value;
12167
+ this.setCurValue(value);
12168
+ this.$emit('input', value, event);
12169
+ this.$emit('change', value, event);
12170
+ this.dispatch('bk-form-item', 'form-change');
12171
+ },
12172
+ handlerClear: function handlerClear(event) {
12173
+ this.curValue = '';
12174
+ this.$emit('input', this.curValue, event);
12175
+ this.$emit('change', this.curValue, event);
12176
+ this.$emit('clear', this.curValue, event);
12177
+ this.dispatch('bk-form-item', 'form-change');
12178
+ },
12179
+ handlerLeftIcon: function handlerLeftIcon(event) {
12180
+ this.$emit('left-icon-click', this.curValue, event);
12181
+ },
12182
+ handlerRightIcon: function handlerRightIcon(event) {
12183
+ this.$emit('right-icon-click', this.curValue, event);
12184
+ },
12185
+ focus: function focus(event) {
12186
+ if (this.type === 'textarea') {
12187
+ this.$refs.textarea.focus();
12188
+ } else {
12189
+ this.$refs.input.focus();
12190
+ }
12191
+ },
12192
+ blur: function blur(event) {
12193
+ if (this.type === 'textarea') {
12194
+ this.$refs.textarea.blur();
12195
+ } else {
12196
+ this.$refs.input.blur();
12197
+ }
12198
+ },
12199
+ setCurValue: function setCurValue(val) {
12200
+ if (val === this.curValue) {
12201
+ return false;
12202
+ }
12203
+ this.curValue = val;
12204
+ },
12205
+ updateNumberValue: function updateNumberValue(val) {
12206
+ if (val !== '' && /^number$/i.test(this.type) && /^-?\d*(.\d*)?$/i.test(val)) {
12207
+ val = this.getCurrentNumberValue(val);
12208
+ this.curValue = typeof this.precision === 'number' ? this.toPrecision(Number(val), this.precision) : Number(val);
12209
+ }
12210
+ },
12211
+ togglePass: function togglePass() {
12212
+ if (this.inputType === 'password') {
12213
+ this.inputType = 'text';
12214
+ } else {
12215
+ this.inputType = 'password';
12216
+ }
12217
+ }
12218
+ }
12219
+ };
12220
+
12221
+ /* script */
12222
+ var __vue_script__$c = script$c;
11713
12223
  /* template */
12224
+
11714
12225
  var __vue_render__$c = function __vue_render__() {
11715
12226
  var _vm = this;
11716
12227
 
@@ -11719,12 +12230,125 @@
11719
12230
  var _c = _vm._self._c || _h;
11720
12231
 
11721
12232
  return _c('div', {
11722
- class: ['bk-page-selection-count', "bk-page-selection-count-" + _vm.$parent.realityLocation]
11723
- }, [_vm.$parent.curLang === 'cn' ? [_vm._v("\n 已选择"), _c('span', {
11724
- staticClass: "count"
11725
- }, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v("条\n ")] : [_c('span', {
11726
- staticClass: "count"
11727
- }, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v(" item(s) selected\n ")]], 2);
12233
+ class: [_vm.wrapperClass, _vm.fontSizeCls, _vm.extCls],
12234
+ on: {
12235
+ "mouseenter": function mouseenter($event) {
12236
+ _vm.hover = true;
12237
+ },
12238
+ "mouseleave": function mouseleave($event) {
12239
+ _vm.hover = false;
12240
+ }
12241
+ }
12242
+ }, [_vm.leftIcon ? _c('div', {
12243
+ staticClass: "control-icon left-icon",
12244
+ on: {
12245
+ "click": _vm.handlerLeftIcon
12246
+ }
12247
+ }, [_c('i', {
12248
+ class: ['bk-icon', _vm.leftIcon]
12249
+ })]) : _vm._e(), _vm.prepend ? _c('div', {
12250
+ staticClass: "group-box group-prepend"
12251
+ }, [_vm._t("prepend")], 2) : _vm._e(), _vm.inputType === 'textarea' ? [_c('div', {
12252
+ staticClass: "bk-textarea-wrapper"
12253
+ }, [_c('textarea', _vm._b({
12254
+ ref: "textarea",
12255
+ class: ['bk-form-textarea', {
12256
+ 'textarea-maxlength': _vm.maxlength
12257
+ }],
12258
+ style: _vm.computedStyle,
12259
+ on: {
12260
+ "keyup": function keyup($event) {
12261
+ if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
12262
+ return null;
12263
+ }
12264
+
12265
+ return _vm.handlerEnter($event);
12266
+ },
12267
+ "keypress": _vm.handlerKeypress,
12268
+ "keydown": _vm.handlerKeydown,
12269
+ "focus": _vm.handlerFocus,
12270
+ "blur": _vm.handlerBlur,
12271
+ "input": _vm.handlerInput,
12272
+ "paste": _vm.handlerPaste
12273
+ }
12274
+ }, 'textarea', _vm.bindAttribute, false)), _vm.showInputWordLimit ? [_c('p', {
12275
+ staticClass: "bk-limit-box"
12276
+ }, [_c('span', {
12277
+ staticClass: "strong"
12278
+ }, [_vm._v(_vm._s(_vm.curValue && _vm.curValue.length || 0))]), _vm._v("/"), _c('span', [_vm._v(_vm._s(_vm.maxlength))])])] : _vm._e()], 2)] : [_c('div', {
12279
+ class: ["bk-input-" + _vm.type]
12280
+ }, [_c('input', _vm._b({
12281
+ ref: "input",
12282
+ class: ['bk-form-input', _vm.inputSizeCls, {
12283
+ 'only-bottom-border': _vm.behavior === 'simplicity'
12284
+ }],
12285
+ style: _vm.computedStyle,
12286
+ on: {
12287
+ "keyup": [function ($event) {
12288
+ if (!('button' in $event) && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
12289
+ return null;
12290
+ }
12291
+
12292
+ return _vm.handlerEnter($event);
12293
+ }, _vm.handlerKeyup],
12294
+ "keypress": _vm.handlerKeypress,
12295
+ "keydown": _vm.handlerKeydown,
12296
+ "focus": _vm.handlerFocus,
12297
+ "blur": _vm.handlerBlur,
12298
+ "input": _vm.handlerInput,
12299
+ "paste": _vm.handlerPaste
12300
+ }
12301
+ }, 'input', _vm.bindAttribute, false)), /^number$/i.test(_vm.type) && !_vm.disabled && !_vm.readonly ? [_vm.showControls ? _c('span', {
12302
+ staticClass: "input-number-option"
12303
+ }, [_c('span', {
12304
+ staticClass: "number-option-item bk-icon icon-angle-up",
12305
+ on: {
12306
+ "click": _vm.handleNumberAdd
12307
+ }
12308
+ }), _c('span', {
12309
+ staticClass: "number-option-item bk-icon icon-angle-down",
12310
+ on: {
12311
+ "click": _vm.handleNumberDelete
12312
+ }
12313
+ })]) : _vm._e()] : _vm._e()], 2)], _vm.append ? _c('div', {
12314
+ staticClass: "group-box group-append"
12315
+ }, [_vm._t("append")], 2) : _vm._e(), !/^number$/i.test(_vm.type) ? _c('div', {
12316
+ ref: "rightIconArea",
12317
+ staticClass: "control-icon right-icon",
12318
+ style: _vm.rightIconStyle,
12319
+ on: {
12320
+ "click": _vm.handlerRightIcon
12321
+ }
12322
+ }, [_vm.showPwdVisable ? _c('i', {
12323
+ class: ['bk-icon', _vm.inputType === 'password' ? _vm.inputPasswordIcon[0] : _vm.inputPasswordIcon[1]],
12324
+ on: {
12325
+ "click": _vm.togglePass
12326
+ }
12327
+ }) : _vm._e(), _vm.showClearIcon ? _c('i', {
12328
+ staticClass: "bk-icon icon-close-circle-shape clear-icon ml5",
12329
+ on: {
12330
+ "click": function click($event) {
12331
+ $event.stopPropagation();
12332
+ $event.preventDefault();
12333
+ return _vm.handlerClear($event);
12334
+ }
12335
+ }
12336
+ }) : _vm.rightIcon ? _c('i', {
12337
+ class: ['bk-icon', _vm.rightIcon]
12338
+ }) : _vm._e(), _vm.type === 'text' ? [_c('p', {
12339
+ directives: [{
12340
+ name: "show",
12341
+ rawName: "v-show",
12342
+ value: _vm.showInputWordLimit,
12343
+ expression: "showInputWordLimit"
12344
+ }],
12345
+ staticClass: "bk-limit-box ml5",
12346
+ staticStyle: {
12347
+ "position": "static"
12348
+ }
12349
+ }, [_c('span', {
12350
+ staticClass: "strong"
12351
+ }, [_vm._v(_vm._s(_vm.curValue && _vm.curValue.length || 0))]), _vm._v("/"), _c('span', [_vm._v(_vm._s(_vm.maxlength))])])] : _vm._e()], 2) : _vm._e()], 2);
11728
12352
  };
11729
12353
 
11730
12354
  var __vue_staticRenderFns__$c = [];
@@ -11749,7 +12373,7 @@
11749
12373
  var __vue_component__$c = /*#__PURE__*/normalizeComponent_1({
11750
12374
  render: __vue_render__$c,
11751
12375
  staticRenderFns: __vue_staticRenderFns__$c
11752
- }, __vue_inject_styles__$c, {}, __vue_scope_id__$c, __vue_is_functional_template__$c, __vue_module_identifier__$c, false, undefined, undefined, undefined);
12376
+ }, __vue_inject_styles__$c, __vue_script__$c, __vue_scope_id__$c, __vue_is_functional_template__$c, __vue_module_identifier__$c, false, undefined, undefined, undefined);
11753
12377
 
11754
12378
  /* script */
11755
12379
 
@@ -11761,15 +12385,13 @@
11761
12385
 
11762
12386
  var _c = _vm._self._c || _h;
11763
12387
 
11764
- return _vm.$parent.showTotalCount ? _c('div', {
11765
- class: ['bk-page-total-count', "bk-page-total-count-" + _vm.$parent.realityLocation, {
11766
- 'bk-page-total-small': _vm.$parent.small
11767
- }]
11768
- }, [_vm.$parent.curLang === 'cn' ? [_vm._v("\n 共计"), _c('span', {
11769
- staticClass: "stress"
11770
- }, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v("条\n ")] : [_vm._v("\n Total: "), _c('span', {
11771
- staticClass: "stress"
11772
- }, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v(" items\n ")]], 2) : _vm._e();
12388
+ return _c('div', {
12389
+ class: ['bk-page-selection-count', "bk-page-selection-count-" + _vm.$parent.realityLocation]
12390
+ }, [_vm.$parent.curLang === 'cn' ? [_vm._v("\n 已选择"), _c('span', {
12391
+ staticClass: "count"
12392
+ }, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v("条\n ")] : [_c('span', {
12393
+ staticClass: "count"
12394
+ }, [_vm._v(_vm._s(_vm.$parent.selectionCount))]), _vm._v(" item(s) selected\n ")]], 2);
11773
12395
  };
11774
12396
 
11775
12397
  var __vue_staticRenderFns__$d = [];
@@ -11796,7 +12418,52 @@
11796
12418
  staticRenderFns: __vue_staticRenderFns__$d
11797
12419
  }, __vue_inject_styles__$d, {}, __vue_scope_id__$d, __vue_is_functional_template__$d, __vue_module_identifier__$d, false, undefined, undefined, undefined);
11798
12420
 
11799
- var script$c = {
12421
+ /* script */
12422
+
12423
+ /* template */
12424
+ var __vue_render__$e = function __vue_render__() {
12425
+ var _vm = this;
12426
+
12427
+ var _h = _vm.$createElement;
12428
+
12429
+ var _c = _vm._self._c || _h;
12430
+
12431
+ return _vm.$parent.showTotalCount ? _c('div', {
12432
+ class: ['bk-page-total-count', "bk-page-total-count-" + _vm.$parent.realityLocation, {
12433
+ 'bk-page-total-small': _vm.$parent.small
12434
+ }]
12435
+ }, [_vm.$parent.curLang === 'cn' ? [_vm._v("\n 共计"), _c('span', {
12436
+ staticClass: "stress"
12437
+ }, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v("条\n ")] : [_vm._v("\n Total: "), _c('span', {
12438
+ staticClass: "stress"
12439
+ }, [_vm._v(_vm._s(_vm.$parent.count))]), _vm._v(" items\n ")]], 2) : _vm._e();
12440
+ };
12441
+
12442
+ var __vue_staticRenderFns__$e = [];
12443
+ /* style */
12444
+
12445
+ var __vue_inject_styles__$e = undefined;
12446
+ /* scoped */
12447
+
12448
+ var __vue_scope_id__$e = undefined;
12449
+ /* module identifier */
12450
+
12451
+ var __vue_module_identifier__$e = undefined;
12452
+ /* functional template */
12453
+
12454
+ var __vue_is_functional_template__$e = false;
12455
+ /* style inject */
12456
+
12457
+ /* style inject SSR */
12458
+
12459
+ /* style inject shadow dom */
12460
+
12461
+ var __vue_component__$e = /*#__PURE__*/normalizeComponent_1({
12462
+ render: __vue_render__$e,
12463
+ staticRenderFns: __vue_staticRenderFns__$e
12464
+ }, __vue_inject_styles__$e, {}, __vue_scope_id__$e, __vue_is_functional_template__$e, __vue_module_identifier__$e, false, undefined, undefined, undefined);
12465
+
12466
+ var script$d = {
11800
12467
  name: 'small-jump',
11801
12468
  components: {
11802
12469
  bkPopover: __vue_component__$2
@@ -11891,10 +12558,10 @@
11891
12558
  };
11892
12559
 
11893
12560
  /* script */
11894
- var __vue_script__$c = script$c;
12561
+ var __vue_script__$d = script$d;
11895
12562
  /* template */
11896
12563
 
11897
- var __vue_render__$e = function __vue_render__() {
12564
+ var __vue_render__$f = function __vue_render__() {
11898
12565
  var _vm = this;
11899
12566
 
11900
12567
  var _h = _vm.$createElement;
@@ -11990,38 +12657,39 @@
11990
12657
  })])], 1);
11991
12658
  };
11992
12659
 
11993
- var __vue_staticRenderFns__$e = [];
12660
+ var __vue_staticRenderFns__$f = [];
11994
12661
  /* style */
11995
12662
 
11996
- var __vue_inject_styles__$e = undefined;
12663
+ var __vue_inject_styles__$f = undefined;
11997
12664
  /* scoped */
11998
12665
 
11999
- var __vue_scope_id__$e = undefined;
12666
+ var __vue_scope_id__$f = undefined;
12000
12667
  /* module identifier */
12001
12668
 
12002
- var __vue_module_identifier__$e = undefined;
12669
+ var __vue_module_identifier__$f = undefined;
12003
12670
  /* functional template */
12004
12671
 
12005
- var __vue_is_functional_template__$e = false;
12672
+ var __vue_is_functional_template__$f = false;
12006
12673
  /* style inject */
12007
12674
 
12008
12675
  /* style inject SSR */
12009
12676
 
12010
12677
  /* style inject shadow dom */
12011
12678
 
12012
- var __vue_component__$e = /*#__PURE__*/normalizeComponent_1({
12013
- render: __vue_render__$e,
12014
- staticRenderFns: __vue_staticRenderFns__$e
12015
- }, __vue_inject_styles__$e, __vue_script__$c, __vue_scope_id__$e, __vue_is_functional_template__$e, __vue_module_identifier__$e, false, undefined, undefined, undefined);
12679
+ var __vue_component__$f = /*#__PURE__*/normalizeComponent_1({
12680
+ render: __vue_render__$f,
12681
+ staticRenderFns: __vue_staticRenderFns__$f
12682
+ }, __vue_inject_styles__$f, __vue_script__$d, __vue_scope_id__$f, __vue_is_functional_template__$f, __vue_module_identifier__$f, false, undefined, undefined, undefined);
12016
12683
 
12017
- var script$d = {
12684
+ var script$e = {
12018
12685
  name: 'bk-pagination',
12019
12686
  components: {
12020
12687
  bkSelect: __vue_component__$b,
12688
+ bkInput: __vue_component__$c,
12021
12689
  bkOption: __vue_component__$a,
12022
- paginationSelectionCount: __vue_component__$c,
12023
- paginationTotalCount: __vue_component__$d,
12024
- SmallJump: __vue_component__$e
12690
+ paginationSelectionCount: __vue_component__$d,
12691
+ paginationTotalCount: __vue_component__$e,
12692
+ SmallJump: __vue_component__$f
12025
12693
  },
12026
12694
  mixins: [locale.mixin],
12027
12695
  props: {
@@ -12042,6 +12710,10 @@
12042
12710
  type: Boolean,
12043
12711
  default: false
12044
12712
  },
12713
+ showQuickJumper: {
12714
+ type: Boolean,
12715
+ default: false
12716
+ },
12045
12717
  size: {
12046
12718
  type: String,
12047
12719
  default: 'default',
@@ -12105,6 +12777,7 @@
12105
12777
  data: function data() {
12106
12778
  return {
12107
12779
  pageSize: 5,
12780
+ jumpPage: 1,
12108
12781
  renderList: [],
12109
12782
  curGroup: 1,
12110
12783
  limitListTmp: [],
@@ -12139,6 +12812,7 @@
12139
12812
  this.$emit('limit-change', val, oldVal);
12140
12813
  },
12141
12814
  current: function current(newVal) {
12815
+ this.jumpPage = newVal;
12142
12816
  this.calcPageList(newVal);
12143
12817
  },
12144
12818
  total: function total(newVal) {
@@ -12226,6 +12900,20 @@
12226
12900
  this.jumpToPage(this.current + 1);
12227
12901
  }
12228
12902
  },
12903
+ handleJump: function handleJump() {
12904
+ var _this = this;
12905
+ this.$nextTick(function () {
12906
+ var pageNum = Number(_this.jumpPage);
12907
+ if (pageNum < 1) {
12908
+ pageNum = 1;
12909
+ }
12910
+ if (pageNum > _this.total) {
12911
+ pageNum = _this.total;
12912
+ }
12913
+ _this.jumpPage = pageNum;
12914
+ _this.jumpToPage(pageNum);
12915
+ });
12916
+ },
12229
12917
  jumpToPage: function jumpToPage(page) {
12230
12918
  this.$emit('update:current', page);
12231
12919
  this.$emit('change', page);
@@ -12234,10 +12922,10 @@
12234
12922
  };
12235
12923
 
12236
12924
  /* script */
12237
- var __vue_script__$d = script$d;
12925
+ var __vue_script__$e = script$e;
12238
12926
  /* template */
12239
12927
 
12240
- var __vue_render__$f = function __vue_render__() {
12928
+ var __vue_render__$g = function __vue_render__() {
12241
12929
  var _vm = this;
12242
12930
 
12243
12931
  var _h = _vm.$createElement;
@@ -12301,7 +12989,9 @@
12301
12989
  "name": p.count + "/page"
12302
12990
  }
12303
12991
  });
12304
- }), 1)]], 2) : _vm._e(), _vm.showSelectionCount ? _c('pagination-selection-count') : _vm._e(), !_vm.small ? _c('ul', {
12992
+ }), 1)]], 2) : _vm._e(), _vm.showSelectionCount ? _c('pagination-selection-count') : _vm._e(), !_vm.small ? _c('div', {
12993
+ staticClass: "bk-page-list-wrapper"
12994
+ }, [_c('ul', {
12305
12995
  staticClass: "bk-page-list"
12306
12996
  }, [_c('li', {
12307
12997
  staticClass: "page-item",
@@ -12406,7 +13096,33 @@
12406
13096
  on: {
12407
13097
  "click": _vm.nextPage
12408
13098
  }
12409
- }, [_vm._m(1)])], 2) : _c('small-jump', {
13099
+ }, [_vm._m(1)])], 2), _vm.showQuickJumper ? _c('div', {
13100
+ staticClass: "bk-page-jumper"
13101
+ }, [_c('span', [_vm._v("前往")]), _c('bk-input', {
13102
+ staticStyle: {
13103
+ "width": "60px",
13104
+ "margin": "0 4px"
13105
+ },
13106
+ attrs: {
13107
+ "type": "number",
13108
+ "placeholder": "分页",
13109
+ "size": _vm.small || _vm.size === 'small' ? 'small' : '',
13110
+ "min": 1,
13111
+ "max": _vm.total,
13112
+ "show-controls": false
13113
+ },
13114
+ on: {
13115
+ "blur": _vm.handleJump,
13116
+ "enter": _vm.handleJump
13117
+ },
13118
+ model: {
13119
+ value: _vm.jumpPage,
13120
+ callback: function callback($$v) {
13121
+ _vm.jumpPage = $$v;
13122
+ },
13123
+ expression: "jumpPage"
13124
+ }
13125
+ }), _c('span', [_vm._v("页")])], 1) : _vm._e()]) : _c('small-jump', {
12410
13126
  attrs: {
12411
13127
  "current": _vm.current,
12412
13128
  "total": _vm.total
@@ -12417,7 +13133,7 @@
12417
13133
  })], 1) : _vm._e();
12418
13134
  };
12419
13135
 
12420
- var __vue_staticRenderFns__$f = [function () {
13136
+ var __vue_staticRenderFns__$g = [function () {
12421
13137
  var _vm = this;
12422
13138
 
12423
13139
  var _h = _vm.$createElement;
@@ -12450,37 +13166,37 @@
12450
13166
  }];
12451
13167
  /* style */
12452
13168
 
12453
- var __vue_inject_styles__$f = undefined;
13169
+ var __vue_inject_styles__$g = undefined;
12454
13170
  /* scoped */
12455
13171
 
12456
- var __vue_scope_id__$f = undefined;
13172
+ var __vue_scope_id__$g = undefined;
12457
13173
  /* module identifier */
12458
13174
 
12459
- var __vue_module_identifier__$f = undefined;
13175
+ var __vue_module_identifier__$g = undefined;
12460
13176
  /* functional template */
12461
13177
 
12462
- var __vue_is_functional_template__$f = false;
13178
+ var __vue_is_functional_template__$g = false;
12463
13179
  /* style inject */
12464
13180
 
12465
13181
  /* style inject SSR */
12466
13182
 
12467
13183
  /* style inject shadow dom */
12468
13184
 
12469
- var __vue_component__$f = /*#__PURE__*/normalizeComponent_1({
12470
- render: __vue_render__$f,
12471
- staticRenderFns: __vue_staticRenderFns__$f
12472
- }, __vue_inject_styles__$f, __vue_script__$d, __vue_scope_id__$f, __vue_is_functional_template__$f, __vue_module_identifier__$f, false, undefined, undefined, undefined);
13185
+ var __vue_component__$g = /*#__PURE__*/normalizeComponent_1({
13186
+ render: __vue_render__$g,
13187
+ staticRenderFns: __vue_staticRenderFns__$g
13188
+ }, __vue_inject_styles__$g, __vue_script__$e, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, undefined, undefined, undefined);
12473
13189
 
12474
- setInstaller(__vue_component__$f);
13190
+ setInstaller(__vue_component__$g);
12475
13191
 
12476
13192
  var tableIdSeed = 1;
12477
- var script$e = {
13193
+ var script$f = {
12478
13194
  name: 'bk-table',
12479
13195
  components: {
12480
13196
  TableHeader: TableHeader,
12481
13197
  TableFooter: TableFooter,
12482
13198
  TableBody: TableBody,
12483
- BkPagination: __vue_component__$f,
13199
+ BkPagination: __vue_component__$g,
12484
13200
  BkSpin: __vue_component__
12485
13201
  },
12486
13202
  directives: {
@@ -12888,7 +13604,7 @@
12888
13604
  },
12889
13605
  handlePageChange: function handlePageChange(page) {
12890
13606
  this.autoScrollToTop && this.scrollToTop();
12891
- this.$emit('page-change', page);
13607
+ this.$emit('page-change', page, this.pagination.limit);
12892
13608
  },
12893
13609
  handlePageLimitChange: function handlePageLimitChange(currentLimit, prevLimit) {
12894
13610
  this.autoScrollToTop && this.scrollToTop();
@@ -12982,10 +13698,10 @@
12982
13698
  };
12983
13699
 
12984
13700
  /* script */
12985
- var __vue_script__$e = script$e;
13701
+ var __vue_script__$f = script$f;
12986
13702
  /* template */
12987
13703
 
12988
- var __vue_render__$g = function __vue_render__() {
13704
+ var __vue_render__$h = function __vue_render__() {
12989
13705
  var _vm = this;
12990
13706
 
12991
13707
  var _h = _vm.$createElement;
@@ -13279,33 +13995,33 @@
13279
13995
  }, 'bk-pagination', _vm.pagination, false)) : _vm._e()], 1) : _vm._e()]);
13280
13996
  };
13281
13997
 
13282
- var __vue_staticRenderFns__$g = [];
13998
+ var __vue_staticRenderFns__$h = [];
13283
13999
  /* style */
13284
14000
 
13285
- var __vue_inject_styles__$g = undefined;
14001
+ var __vue_inject_styles__$h = undefined;
13286
14002
  /* scoped */
13287
14003
 
13288
- var __vue_scope_id__$g = undefined;
14004
+ var __vue_scope_id__$h = undefined;
13289
14005
  /* module identifier */
13290
14006
 
13291
- var __vue_module_identifier__$g = undefined;
14007
+ var __vue_module_identifier__$h = undefined;
13292
14008
  /* functional template */
13293
14009
 
13294
- var __vue_is_functional_template__$g = false;
14010
+ var __vue_is_functional_template__$h = false;
13295
14011
  /* style inject */
13296
14012
 
13297
14013
  /* style inject SSR */
13298
14014
 
13299
14015
  /* style inject shadow dom */
13300
14016
 
13301
- var __vue_component__$g = /*#__PURE__*/normalizeComponent_1({
13302
- render: __vue_render__$g,
13303
- staticRenderFns: __vue_staticRenderFns__$g
13304
- }, __vue_inject_styles__$g, __vue_script__$e, __vue_scope_id__$g, __vue_is_functional_template__$g, __vue_module_identifier__$g, false, undefined, undefined, undefined);
14017
+ var __vue_component__$h = /*#__PURE__*/normalizeComponent_1({
14018
+ render: __vue_render__$h,
14019
+ staticRenderFns: __vue_staticRenderFns__$h
14020
+ }, __vue_inject_styles__$h, __vue_script__$f, __vue_scope_id__$h, __vue_is_functional_template__$h, __vue_module_identifier__$h, false, undefined, undefined, undefined);
13305
14021
 
13306
- setInstaller(__vue_component__$g);
14022
+ setInstaller(__vue_component__$h);
13307
14023
 
13308
- exports.default = __vue_component__$g;
14024
+ exports.default = __vue_component__$h;
13309
14025
 
13310
14026
  Object.defineProperty(exports, '__esModule', { value: true });
13311
14027