bkui-vue 0.0.1-beta.165 → 0.0.1-beta.166
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/index.cjs.js +30 -30
- package/dist/index.esm.js +145 -94
- package/dist/index.umd.js +31 -31
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/checkbox.css +5 -0
- package/lib/checkbox/checkbox.less +4 -0
- package/lib/checkbox/checkbox.variable.css +5 -0
- package/lib/pagination/index.d.ts +16 -1
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +10 -0
- package/lib/pagination/pagination.less +58 -31
- package/lib/pagination/pagination.variable.css +54 -28
- package/lib/select/index.d.ts +64 -7
- package/lib/select/index.js +1 -1
- package/lib/select/select.css +69 -54
- package/lib/select/select.d.ts +21 -2
- package/lib/select/select.less +44 -29
- package/lib/select/select.variable.css +69 -54
- package/lib/select/selectTagInput.d.ts +12 -0
- package/lib/table/table.css +59 -28
- package/lib/table/table.variable.css +59 -28
- package/lib/tree/tree.css +5 -0
- package/lib/tree/tree.variable.css +5 -0
- package/package.json +1 -1
@@ -33,6 +33,11 @@
|
|
33
33
|
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
34
34
|
transform-origin: center;
|
35
35
|
}
|
36
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input {
|
37
|
+
background: #3a84ff;
|
38
|
+
border-color: #3a84ff;
|
39
|
+
transition: all 0.1s;
|
40
|
+
}
|
36
41
|
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
37
42
|
width: 6px;
|
38
43
|
height: 2px;
|
@@ -146,6 +146,11 @@
|
|
146
146
|
transform: translate(-50%, -60%) scaleY(1) rotate(45deg);
|
147
147
|
transform-origin: center;
|
148
148
|
}
|
149
|
+
.bk-checkbox.is-indeterminated .bk-checkbox-input {
|
150
|
+
background: var(--primary-color);
|
151
|
+
border-color: var(--primary-color);
|
152
|
+
transition: all 0.1s;
|
153
|
+
}
|
149
154
|
.bk-checkbox.is-indeterminated .bk-checkbox-input.small::after {
|
150
155
|
width: 6px;
|
151
156
|
height: 2px;
|
@@ -10,6 +10,7 @@ declare const BkPagination: {
|
|
10
10
|
layout: string[];
|
11
11
|
count: number;
|
12
12
|
modelValue: number;
|
13
|
+
beforeChange: (...args: any[]) => any;
|
13
14
|
prevText: string;
|
14
15
|
nextText: string;
|
15
16
|
align: string;
|
@@ -74,6 +75,9 @@ declare const BkPagination: {
|
|
74
75
|
} & {
|
75
76
|
default: boolean;
|
76
77
|
};
|
78
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
79
|
+
default: (...args: any[]) => any;
|
80
|
+
};
|
77
81
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
78
82
|
default: () => string[];
|
79
83
|
};
|
@@ -82,7 +86,7 @@ declare const BkPagination: {
|
|
82
86
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
83
87
|
"onUpdate:limit"?: (...args: any[]) => any;
|
84
88
|
onLimitChange?: (...args: any[]) => any;
|
85
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "small" | "type" | "disabled" | "location" | "layout" | "count" | "modelValue" | "prevText" | "nextText" | "align" | "limit" | "limitList" | "showLimit" | "showTotalCount">;
|
89
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "small" | "type" | "disabled" | "location" | "layout" | "count" | "modelValue" | "beforeChange" | "prevText" | "nextText" | "align" | "limit" | "limitList" | "showLimit" | "showTotalCount">;
|
86
90
|
$attrs: {
|
87
91
|
[x: string]: unknown;
|
88
92
|
};
|
@@ -153,6 +157,9 @@ declare const BkPagination: {
|
|
153
157
|
} & {
|
154
158
|
default: boolean;
|
155
159
|
};
|
160
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
161
|
+
default: (...args: any[]) => any;
|
162
|
+
};
|
156
163
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
157
164
|
default: () => string[];
|
158
165
|
};
|
@@ -184,6 +191,7 @@ declare const BkPagination: {
|
|
184
191
|
layout: string[];
|
185
192
|
count: number;
|
186
193
|
modelValue: number;
|
194
|
+
beforeChange: (...args: any[]) => any;
|
187
195
|
prevText: string;
|
188
196
|
nextText: string;
|
189
197
|
align: string;
|
@@ -268,6 +276,9 @@ declare const BkPagination: {
|
|
268
276
|
} & {
|
269
277
|
default: boolean;
|
270
278
|
};
|
279
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
280
|
+
default: (...args: any[]) => any;
|
281
|
+
};
|
271
282
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
272
283
|
default: () => string[];
|
273
284
|
};
|
@@ -352,6 +363,9 @@ declare const BkPagination: {
|
|
352
363
|
} & {
|
353
364
|
default: boolean;
|
354
365
|
};
|
366
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
367
|
+
default: (...args: any[]) => any;
|
368
|
+
};
|
355
369
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
356
370
|
default: () => string[];
|
357
371
|
};
|
@@ -383,6 +397,7 @@ declare const BkPagination: {
|
|
383
397
|
layout: string[];
|
384
398
|
count: number;
|
385
399
|
modelValue: number;
|
400
|
+
beforeChange: (...args: any[]) => any;
|
386
401
|
prevText: string;
|
387
402
|
nextText: string;
|
388
403
|
align: string;
|
package/lib/pagination/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../select","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../select"],e["../icon"],e["../popover"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r)=>(()=>{"use strict";var i={6870:e=>{e.exports=a},5537:e=>{e.exports=r},6422:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,l),n.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{l.r(u),l.d(u,{BkPagination:()=>v,default:()=>m});var e=l(4212);function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var r=l(748),i=l(6422),o=l.n(i),c=l(6870),s=l(5537),d=l.n(s);var f={modelValue:e.PropTypes.number.def(1),count:e.PropTypes.number.def(0).isRequired,limit:e.PropTypes.number.def(10),limitList:e.PropTypes.arrayOf(Number).def([10,20,50,100]),showLimit:e.PropTypes.bool.def(!0),type:e.PropTypes.oneOf(["default","compact"]).def("default"),location:e.PropTypes.oneOf(["left","right"]).def("right"),align:e.PropTypes.oneOf(["left","center","right"]).def("left"),size:e.PropTypes.size(),small:e.PropTypes.bool.def(!1),showTotalCount:e.PropTypes.bool.def(!0),prevText:e.PropTypes.string,nextText:e.PropTypes.string,disabled:e.PropTypes.bool.def(!1),layout:e.PropTypes.custom((function(e){var t={total:!0,list:!0,limit:!0};return e.some((function(e){return t[e]}))}),"layout 的值只支持 * total、list、limit *").def(["total","list","limit"])};const p=(0,r.defineComponent)({name:"Pagination",props:f,emits:["update:modelValue","change","update:limit","limitChange"],setup:function(e,t){var n=(0,r.ref)(0),l=(0,r.toRefs)(e),u=l.count,s=l.limit,f=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(1),n=(0,r.computed)((function(){return 1===t.value})),a=(0,r.computed)((function(){return t.value===e.totalPageNum})),i=(0,r.ref)(!1),o=(0,r.ref)(!1),l=(0,r.computed)((function(){i.value=!1,o.value=!1;var n=[];if(e.totalPageNum<=7){for(var a=2;a<=e.totalPageNum-1;a++)n.push(a);return n}var r=Math.floor(2.5);e.totalPageNum>5&&(i.value=t.value-r>2,o.value=t.value+r<e.totalPageNum-1);for(var l=Math.min(e.totalPageNum-5,Math.max(2,t.value-r)),u=l;u<l+5;u++)n.push(u);return n}));(0,r.watch)((function(){return e.modelValue}),(function(n){(0,r.nextTick)((function(){n>=1&&n<=e.totalPageNum?t.value=n:t.value=n<1?1:e.totalPageNum}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){t.value>e&&(t.value=e)}))}));var u=function(){n.value||(t.value=t.value-1)},s=function(){a.value||(t.value=t.value+1)},d=function(e){e!==t.value&&(t.value=e)},f=function(){t.value=Math.max(1,t.value-5)},p=function(){t.value=Math.min(e.totalPageNum,t.value+5)};return{current:t,render:function(v){var m=v.isFirst,g=v.isLast;return(0,r.createVNode)("div",{class:{"bk-pagination-list":!0,"is-first":m,"is-last":g}},[(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":n.value},onClick:u},[e.prevText||(0,r.createVNode)(c.AngleLeft,null,null)]),(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":1===t.value},key:"1",onClick:function(){return d(1)}},[(0,r.createTextVNode)("1")]),i.value&&(0,r.createVNode)("div",{key:"pre-batch",class:"bk-pagination-list-pre-batch",onClick:f},[(0,r.createVNode)(c.Ellipsis,null,null)]),l.value.map((function(e){return(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e},key:e,onClick:function(){return d(e)}},[e])})),o.value&&(0,r.createVNode)("div",{key:"next-batch",class:"bk-pagination-list-next-batch",onClick:p},[(0,r.createVNode)(c.Ellipsis,null,null)]),e.totalPageNum>1&&(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e.totalPageNum},key:"last",onClick:function(){return d(e.totalPageNum)}},[e.totalPageNum]),(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":a.value},onClick:s},[e.nextText||(0,r.createVNode)(c.AngleRight,null,null)])])}}}(),p=f.current,v=f.render,m=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(null),n=(0,r.ref)(!1),a=(0,r.ref)(1),i=(0,r.computed)((function(){return 1===a.value})),o=(0,r.computed)((function(){return a.value===e.totalPageNum})),l=0,u=(0,r.computed)((function(){for(var t=[],n=1;n<=e.totalPageNum;n++)t.push(n);return t}));(0,r.watch)((function(){return e.modelValue}),(function(t){(0,r.nextTick)((function(){t>=1&&t<=e.totalPageNum?a.value=t:a.value=t<1?1:e.totalPageNum,l=a.value}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){a.value>e&&(a.value=e)}))}));var s=function(){i.value||(a.value=a.value-1)},f=function(){o.value||(a.value=a.value+1)},p=function(){n.value=!0},v=function(){n.value=!1,t.value.textContent="".concat(l),l!==a.value&&(a.value=l)},m=function(t){var n=t.target,r=Number(n.textContent);!r||r<1||r>e.totalPageNum||r===a.value||(l=r)},g=function(e){["Enter","NumpadEnter"].includes(e.code)&&(e.preventDefault(),v())};return{current:a,render:function(){return(0,r.createVNode)("div",{class:"bk-pagination-small-list"},[(0,r.createVNode)("div",{class:{"bk-pagination-btn-pre":!0,"is-disabled":i.value},onClick:s},[(0,r.createVNode)(c.LeftShape,null,null)]),(0,r.createVNode)(d(),{theme:"light",trigger:"click",arrow:!1,boundary:"body",placement:"bottom"},{default:function(){return(0,r.createVNode)("div",{class:{"bk-pagination-picker":!0,"is-focused":n.value}},[(0,r.createVNode)("span",{ref:t,class:"bk-pagination-editor",contenteditable:!0,spellcheck:"false",onFocus:p,onBlur:v,onInput:m,onKeydown:g},[a.value]),(0,r.createVNode)("span",null,[(0,r.createTextVNode)("/")]),(0,r.createVNode)("span",{class:"bk-pagination-small-list-total"},[e.totalPageNum])])},content:function(){return(0,r.createVNode)("div",{class:"bk-pagination-picker-list"},[u.value.map((function(e){return(0,r.createVNode)("div",{class:{item:!0,"is-actived":e===a.value},key:e,onClick:function(){return function(e){l=e,v()}(e)}},[e])}))])}}),(0,r.createVNode)("div",{class:{"bk-pagination-btn-next":!0,"is-disabled":o.value},onClick:f},[(0,r.createVNode)(c.RightShape,null,null)])])}}}(),g=m.current,b=m.render,h=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(e.limit);(0,r.watch)((function(){return e.limit}),(function(e){t.value=e})),(0,r.watch)((function(){return e.limitList}),(function(e){(0,r.nextTick)((function(){if(!e.includes(t.value)){var n=a(e,1);t.value=n[0]}}))}),{immediate:!0});var n=function(e){t.value=e};return{limit:t,render:function(a){var l,u,c=a.isFirst,s=a.isLast;return e.showLimit?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-limit":!0,"is-first":c,"is-last":s}},{disabled:e.disabled}),[(0,r.createVNode)("div",null,[(0,r.createTextVNode)("每页")]),(0,r.createVNode)(o(),{class:"bk-pagination-limit-select",clearable:!1,modelValue:t.value,onChange:n,disabled:e.disabled},(u=l=e.limitList.map((function(e,t){return(0,r.createVNode)(i.BkOption,{value:e,label:"".concat(e),key:"".concat(t,"_").concat(e)},null)})),"function"==typeof u||"[object Object]"===Object.prototype.toString.call(u)&&!(0,r.isVNode)(u)?l:{default:function(){return[l]}})),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("条")])]):null}}}(),y=h.limit,N=h.render;return(0,r.watch)([u,y,s],(function(e){var t=a(e,2),r=t[0],i=t[1],o=Math.ceil(r/i);n.value=o<1?1:o}),{immediate:!0}),(0,r.watch)(p,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,r.watch)(g,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,r.watch)(y,(function(e){t.emit("limitChange",e)})),{totalPageNum:n,renderTotal:function(e){var t=e.isFirst,n=e.isLast,a=(0,r.getCurrentInstance)().props;return a.showTotalCount?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-total":!0,"is-first":t,"is-last":n}},{disabled:a.disabled}),[(0,r.createTextVNode)("共计"),(0,r.createVNode)("div",{class:"bk-pagination-total-num"},[a.count]),(0,r.createTextVNode)("条")]):null},renderList:v,renderLimit:N,renderSmallList:b}},render:function(){var n,a=this,i=(0,e.classes)((t(n={"bk-pagination":!0},"bk-pagination--".concat(this.size),!0),t(n,"is-align-".concat(this.align),!0),n)),o={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return(0,r.createVNode)("div",{class:i},[this.layout.map((function(e,t){return o[e]({isFirst:0===t,isLast:t===a.layout.length-1})}))])}});var v=(0,e.withInstall)(p);const m=v})(),u})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover2"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../select","../icon","../popover2"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../select"),require("../icon"),require("../popover2")):t(e["../shared"],e.vue,e["../select"],e["../icon"],e["../popover2"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r)=>(()=>{"use strict";var i={6870:e=>{e.exports=a},6175:e=>{e.exports=r},6422:e=>{e.exports=n},4212:t=>{t.exports=e},748:e=>{e.exports=t}},o={};function l(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return i[e](n,n.exports,l),n.exports}l.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return l.d(t,{a:t}),t},l.d=(e,t)=>{for(var n in t)l.o(t,n)&&!l.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{l.r(u),l.d(u,{BkPagination:()=>v,default:()=>m});var e=l(4212);function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return n(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var r=l(748),i=l(6422),o=l.n(i),c=l(6870),s=l(6175),d=l.n(s);var f={modelValue:e.PropTypes.number.def(1),count:e.PropTypes.number.def(0).isRequired,limit:e.PropTypes.number.def(10),limitList:e.PropTypes.arrayOf(Number).def([10,20,50,100]),showLimit:e.PropTypes.bool.def(!0),type:e.PropTypes.oneOf(["default","compact"]).def("default"),location:e.PropTypes.oneOf(["left","right"]).def("right"),align:e.PropTypes.oneOf(["left","center","right"]).def("left"),size:e.PropTypes.size(),small:e.PropTypes.bool.def(!1),showTotalCount:e.PropTypes.bool.def(!0),prevText:e.PropTypes.string,nextText:e.PropTypes.string,disabled:e.PropTypes.bool.def(!1),beforeChange:e.PropTypes.func,layout:e.PropTypes.custom((function(e){var t={total:!0,list:!0,limit:!0};return e.some((function(e){return t[e]}))}),"layout 的值只支持 * total、list、limit *").def(["total","list","limit"])};const p=(0,r.defineComponent)({name:"Pagination",props:f,emits:["update:modelValue","change","update:limit","limitChange"],setup:function(e,t){var n=(0,r.ref)(0),l=(0,r.toRefs)(e),u=l.count,s=l.limit,f=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(1),n=(0,r.computed)((function(){return 1===t.value})),a=(0,r.computed)((function(){return t.value===e.totalPageNum})),i=(0,r.ref)(!1),o=(0,r.ref)(!1),l=(0,r.computed)((function(){i.value=!1,o.value=!1;var n=[];if(e.totalPageNum<=7){for(var a=2;a<=e.totalPageNum-1;a++)n.push(a);return n}var r=Math.floor(2.5);e.totalPageNum>5&&(i.value=t.value-r>2,o.value=t.value+r<e.totalPageNum-1);for(var l=Math.min(e.totalPageNum-5,Math.max(2,t.value-r)),u=l;u<l+5;u++)n.push(u);return n}));(0,r.watch)((function(){return e.modelValue}),(function(n){(0,r.nextTick)((function(){n>=1&&n<=e.totalPageNum?t.value=n:t.value=n<1?1:e.totalPageNum}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){t.value>e&&(t.value=e)}))}));var u=function(){n.value||(t.value=t.value-1)},s=function(){a.value||(t.value=t.value+1)},d=function(e){e!==t.value&&(t.value=e)},f=function(){t.value=Math.max(1,t.value-5)},p=function(){t.value=Math.min(e.totalPageNum,t.value+5)};return{current:t,render:function(v){var m=v.isFirst,g=v.isLast;return(0,r.createVNode)("div",{class:{"bk-pagination-list":!0,"is-first":m,"is-last":g}},[(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":n.value},onClick:u},[e.prevText||(0,r.createVNode)(c.AngleLeft,null,null)]),(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":1===t.value},key:"1",onClick:function(){return d(1)}},[(0,r.createTextVNode)("1")]),i.value&&(0,r.createVNode)("div",{key:"pre-batch",class:"bk-pagination-list-pre-batch",onClick:f},[(0,r.createVNode)(c.Ellipsis,null,null)]),l.value.map((function(e){return(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e},key:e,onClick:function(){return d(e)}},[e])})),o.value&&(0,r.createVNode)("div",{key:"next-batch",class:"bk-pagination-list-next-batch",onClick:p},[(0,r.createVNode)(c.Ellipsis,null,null)]),e.totalPageNum>1&&(0,r.createVNode)("div",{class:{"bk-pagination-list-item":!0,"is-active":t.value===e.totalPageNum},key:"last",onClick:function(){return d(e.totalPageNum)}},[e.totalPageNum]),(0,r.createVNode)("div",{class:{"bk-pagination-list-pre":!0,"is-disabled":a.value},onClick:s},[e.nextText||(0,r.createVNode)(c.AngleRight,null,null)])])}}}(),p=f.current,v=f.render,m=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(null),n=(0,r.ref)(!1),a=(0,r.ref)(1),i=(0,r.computed)((function(){return 1===a.value})),o=(0,r.computed)((function(){return a.value===e.totalPageNum})),l=0,u=(0,r.computed)((function(){for(var t=[],n=1;n<=e.totalPageNum;n++)t.push(n);return t}));(0,r.watch)((function(){return e.modelValue}),(function(t){(0,r.nextTick)((function(){t>=1&&t<=e.totalPageNum?a.value=t:a.value=t<1?1:e.totalPageNum,l=a.value}))}),{immediate:!0}),(0,r.nextTick)((function(){(0,r.watch)((function(){return e.totalPageNum}),(function(e){a.value>e&&(a.value=e)}))}));var s=function(){i.value||(a.value=a.value-1)},f=function(){o.value||(a.value=a.value+1)},p=function(){n.value=!0},v=function(){n.value=!1,t.value.textContent="".concat(l),l!==a.value&&(a.value=l)},m=function(t){var n=t.target,r=Number(n.textContent);!r||r<1||r>e.totalPageNum||r===a.value||(l=r)},g=function(e){["Enter","NumpadEnter"].includes(e.code)&&(e.preventDefault(),v())};return{current:a,render:function(){return(0,r.createVNode)("div",{class:"bk-pagination-small-list"},[(0,r.createVNode)("div",{class:{"bk-pagination-btn-pre":!0,"is-disabled":i.value},onClick:s},[(0,r.createVNode)(c.AngleLeft,null,null)]),(0,r.createVNode)(d(),{theme:"light",trigger:"click",arrow:!1,width:56,boundary:"body",placement:"bottom"},{default:function(){return(0,r.createVNode)("div",{class:{"bk-pagination-picker":!0,"is-focused":n.value}},[(0,r.createVNode)("span",{ref:t,class:"bk-pagination-editor",contenteditable:!0,spellcheck:"false",onFocus:p,onBlur:v,onInput:m,onKeydown:g},[a.value]),(0,r.createVNode)("span",null,[(0,r.createTextVNode)("/")]),(0,r.createVNode)("span",{class:"bk-pagination-small-list-total"},[e.totalPageNum])])},content:function(){return(0,r.createVNode)("div",{class:"bk-pagination-picker-list"},[u.value.map((function(e){return(0,r.createVNode)("div",{class:{item:!0,"is-actived":e===a.value},key:e,onClick:function(){return function(e){l=e,v()}(e)}},[e])}))])}}),(0,r.createVNode)("div",{class:{"bk-pagination-btn-next":!0,"is-disabled":o.value},onClick:f},[(0,r.createVNode)(c.AngleRight,null,null)])])}}}(),g=m.current,b=m.render,y=function(){var e=(0,r.getCurrentInstance)().proxy,t=(0,r.ref)(e.limit);(0,r.watch)((function(){return e.limit}),(function(e){t.value=e})),(0,r.watch)((function(){return e.limitList}),(function(e){(0,r.nextTick)((function(){if(!e.includes(t.value)){var n=a(e,1);t.value=n[0]}}))}),{immediate:!0});var n=function(e){t.value=e};return{limit:t,render:function(a){var l,u,c=a.isFirst,s=a.isLast;return e.showLimit?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-limit":!0,"is-first":c,"is-last":s}},{disabled:e.disabled}),[(0,r.createVNode)("div",null,[(0,r.createTextVNode)("每页")]),(0,r.createVNode)(o(),{class:"bk-pagination-limit-select",clearable:!1,size:"small",modelValue:t.value,onChange:n,disabled:e.disabled},(u=l=e.limitList.map((function(e,t){return(0,r.createVNode)(i.BkOption,{value:e,label:"".concat(e),key:"".concat(t,"_").concat(e)},null)})),"function"==typeof u||"[object Object]"===Object.prototype.toString.call(u)&&!(0,r.isVNode)(u)?l:{default:function(){return[l]}})),(0,r.createVNode)("div",null,[(0,r.createTextVNode)("条")])]):null}}}(),h=y.limit,N=y.render;return(0,r.watch)([u,h,s],(function(e){var t=a(e,2),r=t[0],i=t[1],o=Math.ceil(r/i);n.value=o<1?1:o}),{immediate:!0}),(0,r.watch)(p,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,r.watch)(g,(function(e){t.emit("update:modelValue",e),t.emit("change",e)})),(0,r.watch)(h,(function(e){t.emit("limitChange",e)})),{totalPageNum:n,renderTotal:function(e){var t=e.isFirst,n=e.isLast,a=(0,r.getCurrentInstance)().props;return a.showTotalCount?(0,r.createVNode)("div",(0,r.mergeProps)({class:{"bk-pagination-total":!0,"is-first":t,"is-last":n}},{disabled:a.disabled}),[(0,r.createTextVNode)("共计"),(0,r.createVNode)("div",{class:"bk-pagination-total-num"},[a.count]),(0,r.createTextVNode)("条")]):null},renderList:v,renderLimit:N,renderSmallList:b}},render:function(){var n,a=this,i=(0,e.classes)((t(n={"bk-pagination":!0},"bk-pagination--".concat(this.size),!0),t(n,"is-align-".concat(this.align),!0),n)),o={total:this.renderTotal,list:this.small?this.renderSmallList:this.renderList,limit:this.renderLimit};return(0,r.createVNode)("div",{class:i},[this.layout.map((function(e,t){return o[e]({isFirst:0===t,isLast:t===a.layout.length-1})}))])}});var v=(0,e.withInstall)(p);const m=v})(),u})()));
|
@@ -33,11 +33,12 @@
|
|
33
33
|
}
|
34
34
|
.bk-pagination-total-num {
|
35
35
|
padding: 0 2px;
|
36
|
-
color: #3f4046;
|
37
36
|
}
|
38
37
|
.bk-pagination-list {
|
39
38
|
display: flex;
|
40
39
|
}
|
40
|
+
.bk-pagination-list-pre-batch,
|
41
|
+
.bk-pagination-list-next-batch,
|
41
42
|
.bk-pagination-list-pre,
|
42
43
|
.bk-pagination-list-next,
|
43
44
|
.bk-pagination-list-item {
|
@@ -52,19 +53,26 @@
|
|
52
53
|
color: #63656e;
|
53
54
|
cursor: pointer;
|
54
55
|
background: #fff;
|
55
|
-
border: 1px solid #c4c6cc;
|
56
56
|
border-radius: 2px;
|
57
57
|
user-select: none;
|
58
58
|
}
|
59
|
-
.bk-pagination-list-pre
|
60
|
-
.bk-pagination-list-next
|
61
|
-
.bk-pagination-list-item:hover,
|
59
|
+
.bk-pagination-list-pre-batch.is-active,
|
60
|
+
.bk-pagination-list-next-batch.is-active,
|
62
61
|
.bk-pagination-list-pre.is-active,
|
63
62
|
.bk-pagination-list-next.is-active,
|
64
63
|
.bk-pagination-list-item.is-active {
|
65
64
|
color: #3a84ff;
|
66
|
-
|
65
|
+
background: #e1ecff;
|
66
|
+
}
|
67
|
+
.bk-pagination-list-pre-batch:hover,
|
68
|
+
.bk-pagination-list-next-batch:hover,
|
69
|
+
.bk-pagination-list-pre:hover,
|
70
|
+
.bk-pagination-list-next:hover,
|
71
|
+
.bk-pagination-list-item:hover {
|
72
|
+
background: #f0f1f5;
|
67
73
|
}
|
74
|
+
.bk-pagination-list-pre-batch.is-disabled,
|
75
|
+
.bk-pagination-list-next-batch.is-disabled,
|
68
76
|
.bk-pagination-list-pre.is-disabled,
|
69
77
|
.bk-pagination-list-next.is-disabled,
|
70
78
|
.bk-pagination-list-item.is-disabled {
|
@@ -73,26 +81,20 @@
|
|
73
81
|
background-color: #fafbfd;
|
74
82
|
border-color: #dcdee5;
|
75
83
|
}
|
76
|
-
.bk-pagination-list-pre-batch,
|
77
|
-
.bk-pagination-list-next-batch {
|
78
|
-
display: flex;
|
79
|
-
align-items: center;
|
80
|
-
justify-content: center;
|
81
|
-
height: 32px;
|
82
|
-
cursor: pointer;
|
83
|
-
user-select: none;
|
84
|
-
}
|
85
|
-
.bk-pagination-list-pre-batch:hover,
|
86
|
-
.bk-pagination-list-next-batch:hover {
|
87
|
-
color: #3a84ff;
|
88
|
-
}
|
89
84
|
.bk-pagination-list-pre,
|
90
85
|
.bk-pagination-list-next {
|
91
|
-
font-size:
|
86
|
+
font-size: 20px;
|
87
|
+
color: #979ba5;
|
88
|
+
}
|
89
|
+
.bk-pagination-list-pre.is-disabled,
|
90
|
+
.bk-pagination-list-next.is-disabled {
|
91
|
+
color: #dcdee5;
|
92
|
+
cursor: not-allowed;
|
93
|
+
background-color: transparent;
|
92
94
|
}
|
93
95
|
.bk-pagination-list-item {
|
94
|
-
margin-right:
|
95
|
-
margin-left:
|
96
|
+
margin-right: 2px;
|
97
|
+
margin-left: 2px;
|
96
98
|
}
|
97
99
|
.bk-pagination-limit {
|
98
100
|
display: flex;
|
@@ -103,12 +105,32 @@
|
|
103
105
|
width: 60px;
|
104
106
|
margin: 0 4px;
|
105
107
|
}
|
108
|
+
.bk-pagination-limit-select .bk-input {
|
109
|
+
border-color: #f0f1f5;
|
110
|
+
}
|
111
|
+
.bk-pagination-limit-select .bk-input--text {
|
112
|
+
background-color: #f0f1f5;
|
113
|
+
}
|
114
|
+
.bk-pagination-limit-select:hover .bk-input {
|
115
|
+
border-color: #eaebf0;
|
116
|
+
}
|
117
|
+
.bk-pagination-limit-select:hover .bk-input--text {
|
118
|
+
background-color: #eaebf0;
|
119
|
+
}
|
120
|
+
.bk-pagination-limit-select .bk-input.is-focused {
|
121
|
+
border-color: #3a84ff;
|
122
|
+
}
|
123
|
+
.bk-pagination-limit-select .bk-input.is-focused .bk-input--text {
|
124
|
+
background-color: #fff;
|
125
|
+
}
|
106
126
|
.bk-pagination-small-list {
|
107
127
|
display: flex;
|
128
|
+
align-items: center;
|
108
129
|
}
|
109
130
|
.bk-pagination-small-list .bk-pagination-picker {
|
110
131
|
display: flex;
|
111
|
-
height:
|
132
|
+
height: 26px;
|
133
|
+
margin: 0 4px;
|
112
134
|
cursor: pointer;
|
113
135
|
background-color: #f0f1f5;
|
114
136
|
border: 1px solid #f0f1f5;
|
@@ -116,8 +138,8 @@
|
|
116
138
|
align-items: center;
|
117
139
|
}
|
118
140
|
.bk-pagination-small-list .bk-pagination-picker:hover {
|
119
|
-
background-color: #
|
120
|
-
border-color: #
|
141
|
+
background-color: #eaebf0;
|
142
|
+
border-color: #eaebf0;
|
121
143
|
}
|
122
144
|
.bk-pagination-small-list .bk-pagination-picker.is-focused {
|
123
145
|
background-color: #fff;
|
@@ -126,7 +148,7 @@
|
|
126
148
|
}
|
127
149
|
.bk-pagination-editor {
|
128
150
|
height: 16px;
|
129
|
-
min-width:
|
151
|
+
min-width: 23px;
|
130
152
|
padding-right: 4px;
|
131
153
|
padding-left: 8px;
|
132
154
|
line-height: 16px;
|
@@ -144,14 +166,18 @@
|
|
144
166
|
.bk-pagination-btn-pre,
|
145
167
|
.bk-pagination-btn-next {
|
146
168
|
display: flex;
|
169
|
+
width: 26px;
|
170
|
+
height: 26px;
|
171
|
+
font-size: 20px;
|
172
|
+
color: #979ba5;
|
173
|
+
cursor: pointer;
|
147
174
|
justify-content: center;
|
148
175
|
align-items: center;
|
149
|
-
width: 24px;
|
150
|
-
cursor: pointer;
|
151
176
|
}
|
152
177
|
.bk-pagination-btn-pre:hover,
|
153
178
|
.bk-pagination-btn-next:hover {
|
154
179
|
color: #3a84ff;
|
180
|
+
background: #f0f1f5;
|
155
181
|
}
|
156
182
|
.bk-pagination-btn-pre.is-disabled,
|
157
183
|
.bk-pagination-btn-next.is-disabled {
|
@@ -56,6 +56,9 @@ export declare const paginationProps: {
|
|
56
56
|
} & {
|
57
57
|
default: boolean;
|
58
58
|
};
|
59
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
60
|
+
default: (...args: any[]) => any;
|
61
|
+
};
|
59
62
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
60
63
|
default: () => string[];
|
61
64
|
};
|
@@ -118,6 +121,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
118
121
|
} & {
|
119
122
|
default: boolean;
|
120
123
|
};
|
124
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
125
|
+
default: (...args: any[]) => any;
|
126
|
+
};
|
121
127
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
122
128
|
default: () => string[];
|
123
129
|
};
|
@@ -193,6 +199,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
193
199
|
} & {
|
194
200
|
default: boolean;
|
195
201
|
};
|
202
|
+
beforeChange: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
203
|
+
default: (...args: any[]) => any;
|
204
|
+
};
|
196
205
|
layout: import("vue-types").VueTypeDef<string[]> & {
|
197
206
|
default: () => string[];
|
198
207
|
};
|
@@ -209,6 +218,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
209
218
|
layout: string[];
|
210
219
|
count: number;
|
211
220
|
modelValue: number;
|
221
|
+
beforeChange: (...args: any[]) => any;
|
212
222
|
prevText: string;
|
213
223
|
nextText: string;
|
214
224
|
align: string;
|
@@ -36,7 +36,6 @@
|
|
36
36
|
margin-right: 0;
|
37
37
|
}
|
38
38
|
|
39
|
-
|
40
39
|
}
|
41
40
|
.@{bk-prefix}-pagination-total {
|
42
41
|
display: flex;
|
@@ -45,13 +44,14 @@
|
|
45
44
|
|
46
45
|
.@{bk-prefix}-pagination-total-num {
|
47
46
|
padding: 0 2px;
|
48
|
-
color: #3f4046;
|
49
47
|
}
|
50
48
|
|
51
49
|
.@{bk-prefix}-pagination-list {
|
52
50
|
display: flex;
|
53
51
|
}
|
54
52
|
|
53
|
+
.@{bk-prefix}-pagination-list-pre-batch,
|
54
|
+
.@{bk-prefix}-pagination-list-next-batch,
|
55
55
|
.@{bk-prefix}-pagination-list-pre,
|
56
56
|
.@{bk-prefix}-pagination-list-next,
|
57
57
|
.@{bk-prefix}-pagination-list-item {
|
@@ -66,14 +66,16 @@
|
|
66
66
|
color: #63656e;
|
67
67
|
cursor: pointer;
|
68
68
|
background: #fff;
|
69
|
-
border: 1px solid #c4c6cc;
|
70
69
|
border-radius: 2px;
|
71
70
|
user-select: none;
|
72
71
|
|
73
|
-
&:hover,
|
74
72
|
&.is-active {
|
75
73
|
color: #3a84ff;
|
76
|
-
|
74
|
+
background: #e1ecff;
|
75
|
+
}
|
76
|
+
|
77
|
+
&:hover {
|
78
|
+
background: #f0f1f5;
|
77
79
|
}
|
78
80
|
|
79
81
|
&.is-disabled {
|
@@ -84,28 +86,21 @@
|
|
84
86
|
}
|
85
87
|
}
|
86
88
|
|
87
|
-
.@{bk-prefix}-pagination-list-pre-batch,
|
88
|
-
.@{bk-prefix}-pagination-list-next-batch {
|
89
|
-
display: flex;
|
90
|
-
align-items: center;
|
91
|
-
justify-content: center;
|
92
|
-
height: 32px;
|
93
|
-
cursor: pointer;
|
94
|
-
user-select: none;
|
95
|
-
|
96
|
-
&:hover {
|
97
|
-
color: #3a84ff;
|
98
|
-
}
|
99
|
-
}
|
100
|
-
|
101
89
|
.@{bk-prefix}-pagination-list-pre,
|
102
90
|
.@{bk-prefix}-pagination-list-next {
|
103
|
-
font-size:
|
91
|
+
font-size: 20px;
|
92
|
+
color: #979ba5;
|
93
|
+
|
94
|
+
&.is-disabled {
|
95
|
+
color: #dcdee5;
|
96
|
+
cursor: not-allowed;
|
97
|
+
background-color: transparent;
|
98
|
+
}
|
104
99
|
}
|
105
100
|
|
106
101
|
.@{bk-prefix}-pagination-list-item {
|
107
|
-
margin-right:
|
108
|
-
margin-left:
|
102
|
+
margin-right: 2px;
|
103
|
+
margin-left: 2px;
|
109
104
|
}
|
110
105
|
|
111
106
|
.@{bk-prefix}-pagination-limit {
|
@@ -117,14 +112,42 @@
|
|
117
112
|
.@{bk-prefix}-pagination-limit-select {
|
118
113
|
width: 60px;
|
119
114
|
margin: 0 4px;
|
115
|
+
|
116
|
+
.bk-input {
|
117
|
+
border-color: #f0f1f5;
|
118
|
+
}
|
119
|
+
|
120
|
+
.bk-input--text {
|
121
|
+
background-color: #f0f1f5;
|
122
|
+
}
|
123
|
+
|
124
|
+
&:hover {
|
125
|
+
.bk-input {
|
126
|
+
border-color: #eaebf0;
|
127
|
+
}
|
128
|
+
|
129
|
+
.bk-input--text {
|
130
|
+
background-color: #eaebf0;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
.bk-input {
|
135
|
+
&.is-focused {
|
136
|
+
border-color: #3a84ff;
|
137
|
+
|
138
|
+
.bk-input--text {
|
139
|
+
background-color: #fff;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
120
143
|
}
|
121
144
|
.@{bk-prefix}-pagination-small-list {
|
122
145
|
display: flex;
|
123
|
-
|
146
|
+
align-items: center;
|
124
147
|
.@{bk-prefix}-pagination-picker {
|
125
148
|
display: flex;
|
126
|
-
height:
|
127
|
-
|
149
|
+
height: 26px;
|
150
|
+
margin: 0 4px;
|
128
151
|
cursor: pointer;
|
129
152
|
background-color: #f0f1f5;
|
130
153
|
border: 1px solid #f0f1f5;
|
@@ -132,8 +155,8 @@
|
|
132
155
|
align-items: center;
|
133
156
|
|
134
157
|
&:hover {
|
135
|
-
background-color: #
|
136
|
-
border-color: #
|
158
|
+
background-color: #eaebf0;
|
159
|
+
border-color: #eaebf0;
|
137
160
|
}
|
138
161
|
|
139
162
|
&.is-focused {
|
@@ -146,7 +169,7 @@
|
|
146
169
|
|
147
170
|
.@{bk-prefix}-pagination-editor {
|
148
171
|
height: 16px;
|
149
|
-
min-width:
|
172
|
+
min-width: 23px;
|
150
173
|
padding-right: 4px;
|
151
174
|
padding-left: 8px;
|
152
175
|
line-height: 16px;
|
@@ -164,13 +187,17 @@
|
|
164
187
|
.@{bk-prefix}-pagination-btn-pre,
|
165
188
|
.@{bk-prefix}-pagination-btn-next {
|
166
189
|
display: flex;
|
190
|
+
width: 26px;
|
191
|
+
height: 26px;
|
192
|
+
font-size: 20px;
|
193
|
+
color: #979ba5;
|
194
|
+
cursor: pointer;
|
167
195
|
justify-content: center;
|
168
196
|
align-items: center;
|
169
|
-
width: 24px;
|
170
|
-
cursor: pointer;
|
171
197
|
|
172
198
|
&:hover {
|
173
|
-
color: #3a84ff
|
199
|
+
color: #3a84ff;
|
200
|
+
background: #f0f1f5;
|
174
201
|
}
|
175
202
|
|
176
203
|
&.is-disabled {
|
@@ -146,11 +146,12 @@
|
|
146
146
|
}
|
147
147
|
.bk-pagination-total-num {
|
148
148
|
padding: 0 2px;
|
149
|
-
color: #3f4046;
|
150
149
|
}
|
151
150
|
.bk-pagination-list {
|
152
151
|
display: flex;
|
153
152
|
}
|
153
|
+
.bk-pagination-list-pre-batch,
|
154
|
+
.bk-pagination-list-next-batch,
|
154
155
|
.bk-pagination-list-pre,
|
155
156
|
.bk-pagination-list-next,
|
156
157
|
.bk-pagination-list-item {
|
@@ -165,19 +166,26 @@
|
|
165
166
|
color: #63656e;
|
166
167
|
cursor: pointer;
|
167
168
|
background: #fff;
|
168
|
-
border: 1px solid #c4c6cc;
|
169
169
|
border-radius: 2px;
|
170
170
|
user-select: none;
|
171
171
|
}
|
172
|
-
.bk-pagination-list-pre
|
173
|
-
.bk-pagination-list-next
|
174
|
-
.bk-pagination-list-item:hover,
|
172
|
+
.bk-pagination-list-pre-batch.is-active,
|
173
|
+
.bk-pagination-list-next-batch.is-active,
|
175
174
|
.bk-pagination-list-pre.is-active,
|
176
175
|
.bk-pagination-list-next.is-active,
|
177
176
|
.bk-pagination-list-item.is-active {
|
178
177
|
color: #3a84ff;
|
179
|
-
|
178
|
+
background: #e1ecff;
|
179
|
+
}
|
180
|
+
.bk-pagination-list-pre-batch:hover,
|
181
|
+
.bk-pagination-list-next-batch:hover,
|
182
|
+
.bk-pagination-list-pre:hover,
|
183
|
+
.bk-pagination-list-next:hover,
|
184
|
+
.bk-pagination-list-item:hover {
|
185
|
+
background: #f0f1f5;
|
180
186
|
}
|
187
|
+
.bk-pagination-list-pre-batch.is-disabled,
|
188
|
+
.bk-pagination-list-next-batch.is-disabled,
|
181
189
|
.bk-pagination-list-pre.is-disabled,
|
182
190
|
.bk-pagination-list-next.is-disabled,
|
183
191
|
.bk-pagination-list-item.is-disabled {
|
@@ -186,26 +194,20 @@
|
|
186
194
|
background-color: #fafbfd;
|
187
195
|
border-color: #dcdee5;
|
188
196
|
}
|
189
|
-
.bk-pagination-list-pre-batch,
|
190
|
-
.bk-pagination-list-next-batch {
|
191
|
-
display: flex;
|
192
|
-
align-items: center;
|
193
|
-
justify-content: center;
|
194
|
-
height: 32px;
|
195
|
-
cursor: pointer;
|
196
|
-
user-select: none;
|
197
|
-
}
|
198
|
-
.bk-pagination-list-pre-batch:hover,
|
199
|
-
.bk-pagination-list-next-batch:hover {
|
200
|
-
color: #3a84ff;
|
201
|
-
}
|
202
197
|
.bk-pagination-list-pre,
|
203
198
|
.bk-pagination-list-next {
|
204
|
-
font-size:
|
199
|
+
font-size: 20px;
|
200
|
+
color: #979ba5;
|
201
|
+
}
|
202
|
+
.bk-pagination-list-pre.is-disabled,
|
203
|
+
.bk-pagination-list-next.is-disabled {
|
204
|
+
color: #dcdee5;
|
205
|
+
cursor: not-allowed;
|
206
|
+
background-color: transparent;
|
205
207
|
}
|
206
208
|
.bk-pagination-list-item {
|
207
|
-
margin-right:
|
208
|
-
margin-left:
|
209
|
+
margin-right: 2px;
|
210
|
+
margin-left: 2px;
|
209
211
|
}
|
210
212
|
.bk-pagination-limit {
|
211
213
|
display: flex;
|
@@ -216,12 +218,32 @@
|
|
216
218
|
width: 60px;
|
217
219
|
margin: 0 4px;
|
218
220
|
}
|
221
|
+
.bk-pagination-limit-select .bk-input {
|
222
|
+
border-color: #f0f1f5;
|
223
|
+
}
|
224
|
+
.bk-pagination-limit-select .bk-input--text {
|
225
|
+
background-color: #f0f1f5;
|
226
|
+
}
|
227
|
+
.bk-pagination-limit-select:hover .bk-input {
|
228
|
+
border-color: #eaebf0;
|
229
|
+
}
|
230
|
+
.bk-pagination-limit-select:hover .bk-input--text {
|
231
|
+
background-color: #eaebf0;
|
232
|
+
}
|
233
|
+
.bk-pagination-limit-select .bk-input.is-focused {
|
234
|
+
border-color: #3a84ff;
|
235
|
+
}
|
236
|
+
.bk-pagination-limit-select .bk-input.is-focused .bk-input--text {
|
237
|
+
background-color: #fff;
|
238
|
+
}
|
219
239
|
.bk-pagination-small-list {
|
220
240
|
display: flex;
|
241
|
+
align-items: center;
|
221
242
|
}
|
222
243
|
.bk-pagination-small-list .bk-pagination-picker {
|
223
244
|
display: flex;
|
224
|
-
height:
|
245
|
+
height: 26px;
|
246
|
+
margin: 0 4px;
|
225
247
|
cursor: pointer;
|
226
248
|
background-color: #f0f1f5;
|
227
249
|
border: 1px solid #f0f1f5;
|
@@ -229,8 +251,8 @@
|
|
229
251
|
align-items: center;
|
230
252
|
}
|
231
253
|
.bk-pagination-small-list .bk-pagination-picker:hover {
|
232
|
-
background-color: #
|
233
|
-
border-color: #
|
254
|
+
background-color: #eaebf0;
|
255
|
+
border-color: #eaebf0;
|
234
256
|
}
|
235
257
|
.bk-pagination-small-list .bk-pagination-picker.is-focused {
|
236
258
|
background-color: #fff;
|
@@ -239,7 +261,7 @@
|
|
239
261
|
}
|
240
262
|
.bk-pagination-editor {
|
241
263
|
height: 16px;
|
242
|
-
min-width:
|
264
|
+
min-width: 23px;
|
243
265
|
padding-right: 4px;
|
244
266
|
padding-left: 8px;
|
245
267
|
line-height: 16px;
|
@@ -257,14 +279,18 @@
|
|
257
279
|
.bk-pagination-btn-pre,
|
258
280
|
.bk-pagination-btn-next {
|
259
281
|
display: flex;
|
282
|
+
width: 26px;
|
283
|
+
height: 26px;
|
284
|
+
font-size: 20px;
|
285
|
+
color: #979ba5;
|
286
|
+
cursor: pointer;
|
260
287
|
justify-content: center;
|
261
288
|
align-items: center;
|
262
|
-
width: 24px;
|
263
|
-
cursor: pointer;
|
264
289
|
}
|
265
290
|
.bk-pagination-btn-pre:hover,
|
266
291
|
.bk-pagination-btn-next:hover {
|
267
292
|
color: #3a84ff;
|
293
|
+
background: #f0f1f5;
|
268
294
|
}
|
269
295
|
.bk-pagination-btn-pre.is-disabled,
|
270
296
|
.bk-pagination-btn-next.is-disabled {
|