bkui-vue 0.0.1-beta.425 → 0.0.1-beta.426
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 +27 -27
- package/dist/index.esm.js +115 -25
- package/dist/index.umd.js +28 -28
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/transfer/index.d.ts +57 -1
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +5 -0
- package/lib/transfer/transfer.css +70 -12
- package/lib/transfer/transfer.d.ts +22 -0
- package/lib/transfer/transfer.less +52 -2
- package/lib/transfer/transfer.variable.css +70 -12
- package/package.json +1 -1
package/lib/transfer/index.d.ts
CHANGED
@@ -30,6 +30,7 @@ declare const Transfer: {
|
|
30
30
|
$props: Partial<{
|
31
31
|
title: string[];
|
32
32
|
extCls: string;
|
33
|
+
multiple: boolean;
|
33
34
|
displayKey: string;
|
34
35
|
searchPlaceholder: string;
|
35
36
|
sortable: boolean;
|
@@ -93,10 +94,15 @@ declare const Transfer: {
|
|
93
94
|
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
94
95
|
default: () => string[];
|
95
96
|
};
|
97
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
98
|
+
default: boolean;
|
99
|
+
} & {
|
100
|
+
default: boolean;
|
101
|
+
};
|
96
102
|
}>> & {
|
97
103
|
onChange?: (...args: any[]) => any;
|
98
104
|
"onUpdate:targetList"?: (...args: any[]) => any;
|
99
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "extCls" | "displayKey" | "searchPlaceholder" | "sortable" | "settingKey" | "sortKey" | "showOverflowTips" | "searchable" | "sourceList" | "targetList" | "emptyContent">;
|
105
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "extCls" | "multiple" | "displayKey" | "searchPlaceholder" | "sortable" | "settingKey" | "sortKey" | "showOverflowTips" | "searchable" | "sourceList" | "targetList" | "emptyContent">;
|
100
106
|
$attrs: {
|
101
107
|
[x: string]: unknown;
|
102
108
|
};
|
@@ -163,6 +169,11 @@ declare const Transfer: {
|
|
163
169
|
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
164
170
|
default: () => string[];
|
165
171
|
};
|
172
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
173
|
+
default: boolean;
|
174
|
+
} & {
|
175
|
+
default: boolean;
|
176
|
+
};
|
166
177
|
}>> & {
|
167
178
|
onChange?: (...args: any[]) => any;
|
168
179
|
"onUpdate:targetList"?: (...args: any[]) => any;
|
@@ -186,9 +197,21 @@ declare const Transfer: {
|
|
186
197
|
noSelected: string;
|
187
198
|
search: string;
|
188
199
|
}>;
|
200
|
+
handleAllChecked: (value: any, dirct: any) => void;
|
201
|
+
multipleSelectAllValue: import("vue").Ref<{
|
202
|
+
source: boolean;
|
203
|
+
target: boolean;
|
204
|
+
}>;
|
205
|
+
multipleSelectList: import("vue").Ref<{
|
206
|
+
source: any[];
|
207
|
+
target: any[];
|
208
|
+
}>;
|
209
|
+
handleMultipleChange: (dirct: any) => void;
|
210
|
+
handleItemChecked: (dirct: any) => void;
|
189
211
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], string, {
|
190
212
|
title: string[];
|
191
213
|
extCls: string;
|
214
|
+
multiple: boolean;
|
192
215
|
displayKey: string;
|
193
216
|
searchPlaceholder: string;
|
194
217
|
sortable: boolean;
|
@@ -272,6 +295,11 @@ declare const Transfer: {
|
|
272
295
|
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
273
296
|
default: () => string[];
|
274
297
|
};
|
298
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
299
|
+
default: boolean;
|
300
|
+
} & {
|
301
|
+
default: boolean;
|
302
|
+
};
|
275
303
|
}>> & {
|
276
304
|
onChange?: (...args: any[]) => any;
|
277
305
|
"onUpdate:targetList"?: (...args: any[]) => any;
|
@@ -295,6 +323,17 @@ declare const Transfer: {
|
|
295
323
|
noSelected: string;
|
296
324
|
search: string;
|
297
325
|
}>;
|
326
|
+
handleAllChecked: (value: any, dirct: any) => void;
|
327
|
+
multipleSelectAllValue: import("vue").Ref<{
|
328
|
+
source: boolean;
|
329
|
+
target: boolean;
|
330
|
+
}>;
|
331
|
+
multipleSelectList: import("vue").Ref<{
|
332
|
+
source: any[];
|
333
|
+
target: any[];
|
334
|
+
}>;
|
335
|
+
handleMultipleChange: (dirct: any) => void;
|
336
|
+
handleItemChecked: (dirct: any) => void;
|
298
337
|
}> & {} & {} & import("vue").ComponentCustomProperties;
|
299
338
|
__isFragment?: never;
|
300
339
|
__isTeleport?: never;
|
@@ -352,6 +391,11 @@ declare const Transfer: {
|
|
352
391
|
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
353
392
|
default: () => string[];
|
354
393
|
};
|
394
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
395
|
+
default: boolean;
|
396
|
+
} & {
|
397
|
+
default: boolean;
|
398
|
+
};
|
355
399
|
}>> & {
|
356
400
|
onChange?: (...args: any[]) => any;
|
357
401
|
"onUpdate:targetList"?: (...args: any[]) => any;
|
@@ -375,9 +419,21 @@ declare const Transfer: {
|
|
375
419
|
noSelected: string;
|
376
420
|
search: string;
|
377
421
|
}>;
|
422
|
+
handleAllChecked: (value: any, dirct: any) => void;
|
423
|
+
multipleSelectAllValue: import("vue").Ref<{
|
424
|
+
source: boolean;
|
425
|
+
target: boolean;
|
426
|
+
}>;
|
427
|
+
multipleSelectList: import("vue").Ref<{
|
428
|
+
source: any[];
|
429
|
+
target: any[];
|
430
|
+
}>;
|
431
|
+
handleMultipleChange: (dirct: any) => void;
|
432
|
+
handleItemChecked: (dirct: any) => void;
|
378
433
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], "change" | "update:targetList", {
|
379
434
|
title: string[];
|
380
435
|
extCls: string;
|
436
|
+
multiple: boolean;
|
381
437
|
displayKey: string;
|
382
438
|
searchPlaceholder: string;
|
383
439
|
sortable: boolean;
|
package/lib/transfer/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../icon/"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../icon/","../input"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../icon/"),require("../input")):t(e["../shared"],e.vue,e["../config-provider"],e["../icon/"],e["../input"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,o)=>(()=>{"use strict";var a={2717:e=>{e.exports=r},7685:e=>{e.exports=n},8133:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},i={};function u(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}};return a[e](r,r.exports,u),r.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var r in t)u.o(t,r)&&!u.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{u.r(l),u.d(l,{default:()=>p});var e=u(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n,o=u(748),a=u(2717),i=u(7685),s=u(8133),c=u.n(s);!function(e){e.OBJECT_ARRAY="objectArray",e.BASE_ARRAY="baseArray",e.NOT_ARRAY="notArray"}(n||(n={}));var d={title:e.PropTypes.arrayOf(e.PropTypes.string).def([]),extCls:e.PropTypes.string.def(""),searchPlaceholder:e.PropTypes.string.def(""),settingKey:e.PropTypes.string.def("id"),displayKey:e.PropTypes.string.def("value"),sortKey:e.PropTypes.string.def("value"),showOverflowTips:e.PropTypes.bool.def(!1),searchable:e.PropTypes.bool.def(!1),sortable:e.PropTypes.bool.def(!1),sourceList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),targetList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),emptyContent:e.PropTypes.arrayOf(e.PropTypes.string).def([])};const f=(0,o.defineComponent)({name:"Transfer",props:d,emits:["change","update:targetList"],setup:function(e,t){var i=t.emit,u=(0,a.useLocale)("transfer"),l=(0,o.computed)((function(){return Array.isArray(e.sourceList)?e.sourceList.every((function(e){return e.toString().includes("[object Object]")}))?n.OBJECT_ARRAY:n.BASE_ARRAY:n.NOT_ARRAY})),s=(0,o.computed)((function(){return l.value===n.BASE_ARRAY?"value":e.settingKey})),c=(0,o.computed)((function(){return l.value===n.BASE_ARRAY?"value":e.displayKey})),d=(0,o.computed)((function(){return e.sortKey||c.value})),f=(0,o.computed)((function(){switch(l.value){case n.BASE_ARRAY:return r(new Set(e.sourceList)).map((function(e){return{value:e}}));case n.OBJECT_ARRAY:return r(e.sourceList);default:return[]}})),p=(0,o.toRefs)(e).targetList,v=function(e,t,r){var n=(0,o.ref)([]),a=(0,o.ref)([]),i=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(n.value=[],a.value=[]),e.value.forEach((function(e){var o=e[r.value];t.value.includes(o)?a.value.push(e):n.value.push(e)}))};return i(),(0,o.watch)((function(){return[e,t,r]}),(function(){i(!0)}),{deep:!0}),{selectList:n,selectedList:a}}(f,p,s),y=v.selectList,h=v.selectedList,m=function(e,t){var r=(0,o.ref)(""),n=(0,o.computed)((function(){return e.value.filter((function(e){var n=e[t.value];return!(n instanceof Object)&&n.toString().includes(r.value)}))}));return{selectSearchQuery:r,selectListSearch:n}}(y,c),g=m.selectSearchQuery,A=m.selectListSearch,b=(0,o.computed)((function(){return r(A.value).sort((function(e,t){return e[d.value]>t[d.value]?1:-1}))})),S=(0,o.computed)((function(){return r(h.value).sort((function(e,t){return e[d.value]>t[d.value]?1:-1}))}));(0,o.watch)((function(){return[y,h]}),(function(){R()}),{deep:!0});var T=function(e,t){var r=s.value;return e.some((function(e){return e[r]===t[r]}))&&t.disabled},R=function(){var e=y.value.map((function(e){return e[s.value]})),t=h.value.map((function(e){return e[s.value]}));i("update:targetList",t),i("change",l.value===n.BASE_ARRAY?e:y.value.map((function(e){return(0,o.toRaw)(e)})),l.value===n.BASE_ARRAY?t:h.value.map((function(e){return(0,o.toRaw)(e)})),t)};return{selectSearchQuery:g,selectListSearch:A,selectedList:h,selectListSort:b,selectedListSort:S,settingCode:s,displayCode:c,allToRight:function(){y.value=r(f.value.filter((function(e){return T(y.value,e)}))),h.value=r(f.value.filter((function(e){return!T(y.value,e)}))),R()},allToLeft:function(){y.value=r(f.value.filter((function(e){return!T(h.value,e)}))),h.value=r(f.value.filter((function(e){return T(h.value,e)}))),R()},handleItemClick:function(e,t){var n;if(!e.disabled){var o=e[s.value],a=t?y:h,i=t?h:y,u=a.value.findIndex((function(e){return e[s.value]===o}));(n=i.value).push.apply(n,r(a.value.splice(u,1))),R()}},t:u}},render:function(){var e=this,t=this.sortable?this.selectListSort:this.selectListSearch,r=this.sortable?this.selectedListSort:this.selectedList,n=function(n){var a,i,u="left-header"===n,l="".concat(u?null!==(a=e.title[0])&&void 0!==a?a:e.t.sourceList:null!==(i=e.title[1])&&void 0!==i?i:e.t.targetList),s=u?!t.length:!r.length;return e.$slots[n]?(0,o.createVNode)("div",{class:"slot-header"},[e.$slots[n]()]):(0,o.createVNode)("div",{class:"header"},["".concat(l,"(").concat(u?t.length:r.length,")"),(0,o.createVNode)("span",{class:{disabled:s},onClick:function(){s||(u?e.allToRight():e.allToLeft())}},[u?e.t.selectAll:e.t.removeAll])])},a=function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,o.createVNode)("div",{class:["item-content",{"is-disabled":t.disabled}]},[(0,o.createVNode)("span",{class:"content-text",title:t[e.displayCode]},[t[e.displayCode]]),(0,o.createVNode)("span",{class:"icon-wrapper"},[r?(0,o.createVNode)(i.ArrowsRight,{class:"bk-icon icon-move"},null):(0,o.createVNode)(i.Error,{class:"bk-icon icon-delete"},null)])])},u=function(n){var i="left"===n,u=i?t:r,l=i?"source-option":"target-option",s=i?"left-empty-content":"right-empty-content";return u.length?(0,o.createVNode)("ul",{class:["content",e.searchable&&i?"is-search":""]},[u.map((function(t){var r,n,u;return(0,o.createVNode)("li",{key:t[e.settingCode],class:[e.$slots[l]?"custom-item":""],onClick:function(){return e.handleItemClick(t,i)}},[null!==(u=null===(n=(r=e.$slots)[l])||void 0===n?void 0:n.call(r,t))&&void 0!==u?u:a(t,i)])}))]):function(t){var r,n="left-empty-content"===t,a=null!==(r=n?e.emptyContent[0]:e.emptyContent[1])&&void 0!==r?r:n?e.t.noData:e.t.noSelected;return e.$slots[t]?(0,o.createVNode)("div",null,[e.$slots[t]()]):(0,o.createVNode)("div",{class:"empty"},[a])}(s)};return(0,o.createVNode)("div",{class:["bk-transfer",this.extCls]},[(0,o.createVNode)("div",{class:"source-list"},[n("left-header"),this.searchable&&(0,o.createVNode)(c(),{modelValue:e.selectSearchQuery,"onUpdate:modelValue":function(t){return e.selectSearchQuery=t},class:"transfer-search-input",clearable:!0,placeholder:this.searchPlaceholder||this.t.search},{prefix:function(){return(0,o.createVNode)(i.Search,{class:"icon-search"},null)}}),u("left")]),(0,o.createVNode)(i.Transfer,{class:"transfer"},null),(0,o.createVNode)("div",{class:"target-list"},[n("right-header"),u("right")])])}}),p=(0,e.withInstall)(f)})(),l})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../checkbox"),require("../config-provider"),require("../icon/"),require("../input"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../checkbox","../config-provider","../icon/","../input"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../checkbox"),require("../config-provider"),require("../icon/"),require("../input")):t(e["../shared"],e.vue,e["../checkbox"],e["../config-provider"],e["../icon/"],e["../input"]);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(self,((e,t,r,n,l,o)=>(()=>{"use strict";var a={5800:e=>{e.exports=r},2717:e=>{e.exports=n},7685:e=>{e.exports=l},8133:e=>{e.exports=o},4212:t=>{t.exports=e},748:e=>{e.exports=t}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var r=u[e]={exports:{}};return a[e](r,r.exports,c),r.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{c.r(i),c.d(i,{default:()=>h});var e=c(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(e){if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,r):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n,l=c(748),o=c(5800),a=c.n(o),u=c(2717),s=c(7685),d=c(8133),f=c.n(d);!function(e){e.OBJECT_ARRAY="objectArray",e.BASE_ARRAY="baseArray",e.NOT_ARRAY="notArray"}(n||(n={}));var p={title:e.PropTypes.arrayOf(e.PropTypes.string).def([]),extCls:e.PropTypes.string.def(""),searchPlaceholder:e.PropTypes.string.def(""),settingKey:e.PropTypes.string.def("id"),displayKey:e.PropTypes.string.def("value"),sortKey:e.PropTypes.string.def("value"),showOverflowTips:e.PropTypes.bool.def(!1),searchable:e.PropTypes.bool.def(!1),sortable:e.PropTypes.bool.def(!1),sourceList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),targetList:e.PropTypes.arrayOf(e.PropTypes.any).def([]),emptyContent:e.PropTypes.arrayOf(e.PropTypes.string).def([]),multiple:e.PropTypes.bool.def(!1)};const v=(0,l.defineComponent)({name:"Transfer",props:p,emits:["change","update:targetList"],setup:function(e,t){var o=t.emit,a=(0,u.useLocale)("transfer"),c=(0,l.ref)({source:!1,target:!1}),i=(0,l.ref)({source:[],target:[]}),s=(0,l.computed)((function(){return Array.isArray(e.sourceList)?e.sourceList.every((function(e){return e.toString().includes("[object Object]")}))?n.OBJECT_ARRAY:n.BASE_ARRAY:n.NOT_ARRAY})),d=(0,l.computed)((function(){return s.value===n.BASE_ARRAY?"value":e.settingKey})),f=(0,l.computed)((function(){return s.value===n.BASE_ARRAY?"value":e.displayKey})),p=(0,l.computed)((function(){return e.sortKey||f.value})),v=(0,l.computed)((function(){switch(s.value){case n.BASE_ARRAY:return r(new Set(e.sourceList)).map((function(e){return{value:e}}));case n.OBJECT_ARRAY:return r(e.sourceList);default:return[]}})),h=(0,l.toRefs)(e).targetList,y=function(e,t,r){var n=(0,l.ref)([]),o=(0,l.ref)([]),a=function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&(n.value=[],o.value=[]),e.value.forEach((function(e){var l=e[r.value];t.value.includes(l)?o.value.push(e):n.value.push(e)}))};return a(),(0,l.watch)((function(){return[e,t,r]}),(function(){a(!0)}),{deep:!0}),{selectList:n,selectedList:o}}(v,h,d),m=y.selectList,g=y.selectedList,b=function(e,t){var r=(0,l.ref)(""),n=(0,l.computed)((function(){return e.value.filter((function(e){var n=e[t.value];return!(n instanceof Object)&&n.toString().includes(r.value)}))}));return{selectSearchQuery:r,selectListSearch:n}}(m,f),A=b.selectSearchQuery,S=b.selectListSearch,V=(0,l.computed)((function(){return r(S.value).sort((function(e,t){return e[p.value]>t[p.value]?1:-1}))})),L=(0,l.computed)((function(){return r(g.value).sort((function(e,t){return e[p.value]>t[p.value]?1:-1}))}));(0,l.watch)((function(){return[m,g]}),(function(){e.multiple||T()}),{deep:!0});var N=function(e,t){var r=d.value;return e.some((function(e){return e[r]===t[r]}))&&t.disabled},T=function(){var e=m.value.map((function(e){return e[d.value]})),t=g.value.map((function(e){return e[d.value]}));o("update:targetList",t),o("change",s.value===n.BASE_ARRAY?e:m.value.map((function(e){return(0,l.toRaw)(e)})),s.value===n.BASE_ARRAY?t:g.value.map((function(e){return(0,l.toRaw)(e)})),t)};return{selectSearchQuery:A,selectListSearch:S,selectedList:g,selectListSort:V,selectedListSort:L,settingCode:d,displayCode:f,allToRight:function(){m.value=r(v.value.filter((function(e){return N(m.value,e)}))),g.value=r(v.value.filter((function(e){return!N(m.value,e)}))),T()},allToLeft:function(){m.value=r(v.value.filter((function(e){return!N(g.value,e)}))),g.value=r(v.value.filter((function(e){return N(g.value,e)}))),T()},handleItemClick:function(e,t){var n;if(!e.disabled){var l=e[d.value],o=t?m:g,a=t?g:m,u=o.value.findIndex((function(e){return e[d.value]===l}));(n=a.value).push.apply(n,r(o.value.splice(u,1))),T()}},t:a,handleAllChecked:function(e,t){var r="source"===t?m:g;i.value[t]=e?r.value.map((function(e){return e[d.value]})):[]},multipleSelectAllValue:c,multipleSelectList:i,handleMultipleChange:function(e){var t,n="left"===e,l=n?m:g,o=n?g:m,a=i.value[n?"source":"target"],u=l.value.filter((function(e){return a.includes(e[d.value])}));l.value=l.value.filter((function(e){return!a.includes(e[d.value])})),(t=o.value).push.apply(t,r(u)),i.value[n?"source":"target"]=[],T()},handleItemChecked:function(e){var t="source"===e?m:g;c.value[e]=i.value[e].length===t.value.length}}},render:function(){var e=this,t=this.$props.multiple,r=this.sortable?this.selectListSort:this.selectListSearch,n=this.sortable?this.selectedListSort:this.selectedList,u=function(t){var o,u,c="left-header"===t,i=c?"source":"target",s="".concat(c?null!==(o=e.title[0])&&void 0!==o?o:e.t.sourceList:null!==(u=e.title[1])&&void 0!==u?u:e.t.targetList),d=c?!r.length:!n.length,f=!!e.multipleSelectList[i].length&&!e.multipleSelectAllValue[i],p=e.multipleSelectList[i].length;return e.$slots[t]?(0,l.createVNode)("div",{class:"slot-header"},[e.$slots[t]()]):(0,l.createVNode)("div",{class:"header"},[e.multiple?(0,l.createVNode)(a(),{class:"header-checkbox",label:s,modelValue:e.multipleSelectAllValue[i],"onUpdate:modelValue":function(t){return e.multipleSelectAllValue[i]=t},indeterminate:f,onChange:function(t){return e.handleAllChecked(t,i)}},null):(0,l.createVNode)(l.Fragment,null,["".concat(s,"(").concat(c?r.length:n.length,")")]),e.multiple?(0,l.createVNode)("div",{class:"select-total-count"},[(0,l.createVNode)("span",{class:"select-count"},[p]),(0,l.createVNode)("span",{class:"count-delimiter"},[(0,l.createTextVNode)("/")]),(0,l.createVNode)("span",{class:"total-count"},[c?r.length:n.length])]):(0,l.createVNode)("span",{class:{"select-all":!0,disabled:d},onClick:function(){d||(c?e.allToRight():e.allToLeft())}},[c?e.t.selectAll:e.t.removeAll])])},c=function(r){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return(0,l.createVNode)("div",{class:["item-content",{"is-disabled":r.disabled}]},[(0,l.createVNode)("span",{class:"content-text",title:r[e.displayCode]},[r[e.displayCode]]),!t&&(0,l.createVNode)("span",{class:"icon-wrapper"},[n?(0,l.createVNode)(s.ArrowsRight,{class:"bk-icon icon-move"},null):(0,l.createVNode)(s.Error,{class:"bk-icon icon-delete"},null)])])},i=function(u){var i,s,d="left"===u,f="left"===u?"source":"target",p=d?r:n,v=d?"source-option":"target-option",h=d?"left-empty-content":"right-empty-content",y=t?(0,l.createVNode)(o.BkCheckboxGroup,{class:"content is-flex",modelValue:e.multipleSelectList[f],"onUpdate:modelValue":function(t){return e.multipleSelectList[f]=t},onChange:function(){return e.handleItemChecked(f)}},"function"==typeof(s=i=p.map((function(t){var r,n,o;return(0,l.createVNode)("div",null,[(0,l.createVNode)(a(),{class:"checkbox-item",label:t[e.settingCode]},{default:function(){return[null!==(o=null===(n=(r=e.$slots)[v])||void 0===n?void 0:n.call(r,t))&&void 0!==o?o:c(t,d)]}})])})))||"[object Object]"===Object.prototype.toString.call(s)&&!(0,l.isVNode)(s)?i:{default:function(){return[i]}}):(0,l.createVNode)("ul",{class:["content",e.searchable&&d?"is-search":""]},[p.map((function(t){var r,n,o;return(0,l.createVNode)("li",{key:t[e.settingCode],class:[e.$slots[v]?"custom-item":""],onClick:function(){return e.handleItemClick(t,d)}},[null!==(o=null===(n=(r=e.$slots)[v])||void 0===n?void 0:n.call(r,t))&&void 0!==o?o:c(t,d)])}))]);return p.length?y:function(t){var r,n="left-empty-content"===t,o=null!==(r=n?e.emptyContent[0]:e.emptyContent[1])&&void 0!==r?r:n?e.t.noData:e.t.noSelected;return e.$slots[t]?(0,l.createVNode)("div",null,[e.$slots[t]()]):(0,l.createVNode)("div",{class:"empty"},[o])}(h)};return(0,l.createVNode)("div",{class:["bk-transfer",this.extCls]},[(0,l.createVNode)("div",{class:"source-list"},[u("left-header"),this.searchable&&(0,l.createVNode)(f(),{modelValue:e.selectSearchQuery,"onUpdate:modelValue":function(t){return e.selectSearchQuery=t},class:"transfer-search-input",clearable:!0,placeholder:this.searchPlaceholder||this.t.search},{prefix:function(){return(0,l.createVNode)(s.Search,{class:"icon-search"},null)}}),i("left")]),t?(0,l.createVNode)("div",{class:"transfer-button-group"},[(0,l.createVNode)("div",{class:["transfer-button",{disabled:!this.multipleSelectList.source.length}],onClick:function(){return e.handleMultipleChange("left")}},[(0,l.createVNode)(s.AngleRight,null,null)]),(0,l.createVNode)("div",{class:["transfer-button",{disabled:!this.multipleSelectList.target.length}],onClick:function(){return e.handleMultipleChange("right")}},[(0,l.createVNode)(s.AngleLeft,null,null)])]):(0,l.createVNode)(s.Transfer,{class:"transfer"},null),(0,l.createVNode)("div",{class:"target-list"},[u("right-header"),i("right")])])}}),h=(0,e.withInstall)(v)})(),i})()));
|
package/lib/transfer/props.d.ts
CHANGED
@@ -51,4 +51,9 @@ export declare const transferProps: {
|
|
51
51
|
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
52
52
|
default: () => string[];
|
53
53
|
};
|
54
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
55
|
+
default: boolean;
|
56
|
+
} & {
|
57
|
+
default: boolean;
|
58
|
+
};
|
54
59
|
};
|
@@ -9,6 +9,33 @@
|
|
9
9
|
font-size: 24px;
|
10
10
|
color: #c4c6cc;
|
11
11
|
}
|
12
|
+
.bk-transfer .transfer-button-group {
|
13
|
+
margin: 0 8px;
|
14
|
+
}
|
15
|
+
.bk-transfer .transfer-button-group .transfer-button {
|
16
|
+
display: flex;
|
17
|
+
width: 24px;
|
18
|
+
height: 24px;
|
19
|
+
color: white;
|
20
|
+
cursor: pointer;
|
21
|
+
background-color: #3a84ff;
|
22
|
+
border: 1px solid #3a84ff;
|
23
|
+
border-radius: 2px;
|
24
|
+
align-items: center;
|
25
|
+
justify-content: center;
|
26
|
+
}
|
27
|
+
.bk-transfer .transfer-button-group .transfer-button:first-child {
|
28
|
+
margin-bottom: 8px;
|
29
|
+
}
|
30
|
+
.bk-transfer .transfer-button-group .transfer-button.disabled {
|
31
|
+
color: #c4c6cc;
|
32
|
+
cursor: not-allowed;
|
33
|
+
background-color: #fafbfd;
|
34
|
+
border-color: #dcdee5;
|
35
|
+
}
|
36
|
+
.bk-transfer .transfer-button-group .transfer-button span {
|
37
|
+
font-size: 18px;
|
38
|
+
}
|
12
39
|
.bk-transfer .source-list,
|
13
40
|
.bk-transfer .target-list {
|
14
41
|
flex: 1;
|
@@ -37,18 +64,23 @@
|
|
37
64
|
justify-content: space-between;
|
38
65
|
font-weight: 700;
|
39
66
|
}
|
40
|
-
.bk-transfer .source-list .header
|
41
|
-
.bk-transfer .target-list .header
|
67
|
+
.bk-transfer .source-list .header .select-all,
|
68
|
+
.bk-transfer .target-list .header .select-all {
|
42
69
|
font-size: 12px;
|
43
70
|
font-weight: normal;
|
44
71
|
color: #3a84ff;
|
45
72
|
cursor: pointer;
|
46
73
|
}
|
47
|
-
.bk-transfer .source-list .header
|
48
|
-
.bk-transfer .target-list .header
|
74
|
+
.bk-transfer .source-list .header .select-all.disabled,
|
75
|
+
.bk-transfer .target-list .header .select-all.disabled {
|
49
76
|
color: #c4c6cc;
|
50
77
|
cursor: not-allowed;
|
51
78
|
}
|
79
|
+
.bk-transfer .source-list .header .select-total-count,
|
80
|
+
.bk-transfer .target-list .header .select-total-count {
|
81
|
+
font-weight: normal;
|
82
|
+
color: #979ba5;
|
83
|
+
}
|
52
84
|
.bk-transfer .source-list .transfer-search-input,
|
53
85
|
.bk-transfer .target-list .transfer-search-input {
|
54
86
|
width: calc(100% - 32px);
|
@@ -89,10 +121,17 @@
|
|
89
121
|
margin: 8px 0;
|
90
122
|
overflow-y: auto;
|
91
123
|
}
|
124
|
+
.bk-transfer .source-list .content.is-flex,
|
125
|
+
.bk-transfer .target-list .content.is-flex {
|
126
|
+
display: flex;
|
127
|
+
flex-direction: column;
|
128
|
+
}
|
92
129
|
.bk-transfer .source-list .content li.custom-item,
|
93
130
|
.bk-transfer .target-list .content li.custom-item,
|
94
131
|
.bk-transfer .source-list .content li .item-content,
|
95
|
-
.bk-transfer .target-list .content li .item-content
|
132
|
+
.bk-transfer .target-list .content li .item-content,
|
133
|
+
.bk-transfer .source-list .content .checkbox-item,
|
134
|
+
.bk-transfer .target-list .content .checkbox-item {
|
96
135
|
display: flex;
|
97
136
|
height: 32px;
|
98
137
|
padding: 0 10px 0 16px;
|
@@ -103,20 +142,26 @@
|
|
103
142
|
.bk-transfer .source-list .content li.custom-item:hover:not(.is-disabled),
|
104
143
|
.bk-transfer .target-list .content li.custom-item:hover:not(.is-disabled),
|
105
144
|
.bk-transfer .source-list .content li .item-content:hover:not(.is-disabled),
|
106
|
-
.bk-transfer .target-list .content li .item-content:hover:not(.is-disabled)
|
145
|
+
.bk-transfer .target-list .content li .item-content:hover:not(.is-disabled),
|
146
|
+
.bk-transfer .source-list .content .checkbox-item:hover:not(.is-disabled),
|
147
|
+
.bk-transfer .target-list .content .checkbox-item:hover:not(.is-disabled) {
|
107
148
|
color: #3a84ff;
|
108
149
|
background-color: #e1ecff;
|
109
150
|
}
|
110
151
|
.bk-transfer .source-list .content li.custom-item:hover:not(.is-disabled) .icon-wrapper,
|
111
152
|
.bk-transfer .target-list .content li.custom-item:hover:not(.is-disabled) .icon-wrapper,
|
112
153
|
.bk-transfer .source-list .content li .item-content:hover:not(.is-disabled) .icon-wrapper,
|
113
|
-
.bk-transfer .target-list .content li .item-content:hover:not(.is-disabled) .icon-wrapper
|
154
|
+
.bk-transfer .target-list .content li .item-content:hover:not(.is-disabled) .icon-wrapper,
|
155
|
+
.bk-transfer .source-list .content .checkbox-item:hover:not(.is-disabled) .icon-wrapper,
|
156
|
+
.bk-transfer .target-list .content .checkbox-item:hover:not(.is-disabled) .icon-wrapper {
|
114
157
|
visibility: visible;
|
115
158
|
}
|
116
159
|
.bk-transfer .source-list .content li.custom-item .content-text,
|
117
160
|
.bk-transfer .target-list .content li.custom-item .content-text,
|
118
161
|
.bk-transfer .source-list .content li .item-content .content-text,
|
119
|
-
.bk-transfer .target-list .content li .item-content .content-text
|
162
|
+
.bk-transfer .target-list .content li .item-content .content-text,
|
163
|
+
.bk-transfer .source-list .content .checkbox-item .content-text,
|
164
|
+
.bk-transfer .target-list .content .checkbox-item .content-text {
|
120
165
|
flex: 1;
|
121
166
|
overflow: hidden;
|
122
167
|
text-overflow: ellipsis;
|
@@ -125,30 +170,43 @@
|
|
125
170
|
.bk-transfer .source-list .content li.custom-item .icon-wrapper,
|
126
171
|
.bk-transfer .target-list .content li.custom-item .icon-wrapper,
|
127
172
|
.bk-transfer .source-list .content li .item-content .icon-wrapper,
|
128
|
-
.bk-transfer .target-list .content li .item-content .icon-wrapper
|
173
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper,
|
174
|
+
.bk-transfer .source-list .content .checkbox-item .icon-wrapper,
|
175
|
+
.bk-transfer .target-list .content .checkbox-item .icon-wrapper {
|
129
176
|
visibility: hidden;
|
130
177
|
}
|
131
178
|
.bk-transfer .source-list .content li.custom-item .icon-wrapper .bk-icon,
|
132
179
|
.bk-transfer .target-list .content li.custom-item .icon-wrapper .bk-icon,
|
133
180
|
.bk-transfer .source-list .content li .item-content .icon-wrapper .bk-icon,
|
134
|
-
.bk-transfer .target-list .content li .item-content .icon-wrapper .bk-icon
|
181
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper .bk-icon,
|
182
|
+
.bk-transfer .source-list .content .checkbox-item .icon-wrapper .bk-icon,
|
183
|
+
.bk-transfer .target-list .content .checkbox-item .icon-wrapper .bk-icon {
|
135
184
|
display: flex;
|
136
185
|
font-size: 30px;
|
137
186
|
}
|
138
187
|
.bk-transfer .source-list .content li.custom-item .icon-wrapper .icon-delete,
|
139
188
|
.bk-transfer .target-list .content li.custom-item .icon-wrapper .icon-delete,
|
140
189
|
.bk-transfer .source-list .content li .item-content .icon-wrapper .icon-delete,
|
141
|
-
.bk-transfer .target-list .content li .item-content .icon-wrapper .icon-delete
|
190
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper .icon-delete,
|
191
|
+
.bk-transfer .source-list .content .checkbox-item .icon-wrapper .icon-delete,
|
192
|
+
.bk-transfer .target-list .content .checkbox-item .icon-wrapper .icon-delete {
|
142
193
|
margin-right: 6px;
|
143
194
|
font-size: 16px;
|
144
195
|
}
|
145
196
|
.bk-transfer .source-list .content li.custom-item.is-disabled,
|
146
197
|
.bk-transfer .target-list .content li.custom-item.is-disabled,
|
147
198
|
.bk-transfer .source-list .content li .item-content.is-disabled,
|
148
|
-
.bk-transfer .target-list .content li .item-content.is-disabled
|
199
|
+
.bk-transfer .target-list .content li .item-content.is-disabled,
|
200
|
+
.bk-transfer .source-list .content .checkbox-item.is-disabled,
|
201
|
+
.bk-transfer .target-list .content .checkbox-item.is-disabled {
|
149
202
|
color: #c4c6cc;
|
150
203
|
cursor: not-allowed;
|
151
204
|
}
|
205
|
+
.bk-transfer .source-list .content .checkbox-item .item-content,
|
206
|
+
.bk-transfer .target-list .content .checkbox-item .item-content {
|
207
|
+
display: flex;
|
208
|
+
align-items: center;
|
209
|
+
}
|
152
210
|
.bk-transfer .source-list .content::-webkit-scrollbar,
|
153
211
|
.bk-transfer .target-list .content::-webkit-scrollbar {
|
154
212
|
width: 4px;
|
@@ -76,6 +76,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
76
76
|
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
77
77
|
default: () => string[];
|
78
78
|
};
|
79
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
80
|
+
default: boolean;
|
81
|
+
} & {
|
82
|
+
default: boolean;
|
83
|
+
};
|
79
84
|
}, {
|
80
85
|
selectSearchQuery: import("vue").Ref<string>;
|
81
86
|
selectListSearch: import("vue").ComputedRef<any>;
|
@@ -96,6 +101,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
96
101
|
noSelected: string;
|
97
102
|
search: string;
|
98
103
|
}>;
|
104
|
+
handleAllChecked: (value: any, dirct: any) => void;
|
105
|
+
multipleSelectAllValue: import("vue").Ref<{
|
106
|
+
source: boolean;
|
107
|
+
target: boolean;
|
108
|
+
}>;
|
109
|
+
multipleSelectList: import("vue").Ref<{
|
110
|
+
source: any[];
|
111
|
+
target: any[];
|
112
|
+
}>;
|
113
|
+
handleMultipleChange: (dirct: any) => void;
|
114
|
+
handleItemChecked: (dirct: any) => void;
|
99
115
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:targetList")[], "change" | "update:targetList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
100
116
|
title: import("vue-types").VueTypeDef<string[]> & {
|
101
117
|
default: () => string[];
|
@@ -149,12 +165,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
149
165
|
emptyContent: import("vue-types").VueTypeDef<string[]> & {
|
150
166
|
default: () => string[];
|
151
167
|
};
|
168
|
+
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
169
|
+
default: boolean;
|
170
|
+
} & {
|
171
|
+
default: boolean;
|
172
|
+
};
|
152
173
|
}>> & {
|
153
174
|
onChange?: (...args: any[]) => any;
|
154
175
|
"onUpdate:targetList"?: (...args: any[]) => any;
|
155
176
|
}, {
|
156
177
|
title: string[];
|
157
178
|
extCls: string;
|
179
|
+
multiple: boolean;
|
158
180
|
displayKey: string;
|
159
181
|
searchPlaceholder: string;
|
160
182
|
sortable: boolean;
|
@@ -14,6 +14,38 @@
|
|
14
14
|
color: @light-gray;
|
15
15
|
}
|
16
16
|
|
17
|
+
.transfer-button-group {
|
18
|
+
margin: 0 8px;
|
19
|
+
|
20
|
+
.transfer-button {
|
21
|
+
display: flex;
|
22
|
+
width: 24px;
|
23
|
+
height: 24px;
|
24
|
+
color: @white-color;
|
25
|
+
cursor: pointer;
|
26
|
+
background-color: @primary-color;
|
27
|
+
border: 1px solid @primary-color;
|
28
|
+
border-radius: 2px;
|
29
|
+
align-items: center;
|
30
|
+
justify-content: center;
|
31
|
+
|
32
|
+
&:first-child {
|
33
|
+
margin-bottom: 8px;
|
34
|
+
}
|
35
|
+
|
36
|
+
&.disabled {
|
37
|
+
color: @light-gray;
|
38
|
+
cursor: not-allowed;
|
39
|
+
background-color: @whitesmoke-color;
|
40
|
+
border-color: @disable-color;
|
41
|
+
}
|
42
|
+
|
43
|
+
span {
|
44
|
+
font-size: 18px;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
17
49
|
.source-list,
|
18
50
|
.target-list {
|
19
51
|
flex: 1;
|
@@ -40,7 +72,7 @@
|
|
40
72
|
justify-content: space-between;
|
41
73
|
font-weight: 700;
|
42
74
|
|
43
|
-
|
75
|
+
.select-all {
|
44
76
|
font-size: 12px;
|
45
77
|
font-weight: normal;
|
46
78
|
color: @primary-color;
|
@@ -51,6 +83,11 @@
|
|
51
83
|
cursor: not-allowed;
|
52
84
|
}
|
53
85
|
}
|
86
|
+
|
87
|
+
.select-total-count {
|
88
|
+
font-weight: normal;
|
89
|
+
color: @gray-color;
|
90
|
+
}
|
54
91
|
}
|
55
92
|
|
56
93
|
.transfer-search-input {
|
@@ -92,8 +129,14 @@
|
|
92
129
|
margin: 8px 0;
|
93
130
|
overflow-y: auto;
|
94
131
|
|
132
|
+
&.is-flex {
|
133
|
+
display: flex;
|
134
|
+
flex-direction: column;
|
135
|
+
}
|
136
|
+
|
95
137
|
li.custom-item,
|
96
|
-
li .item-content
|
138
|
+
li .item-content,
|
139
|
+
.checkbox-item {
|
97
140
|
display: flex;
|
98
141
|
height: 32px;
|
99
142
|
padding: 0 10px 0 16px;
|
@@ -137,6 +180,13 @@
|
|
137
180
|
}
|
138
181
|
}
|
139
182
|
|
183
|
+
.checkbox-item {
|
184
|
+
.item-content {
|
185
|
+
display: flex;
|
186
|
+
align-items: center;
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
140
190
|
&::-webkit-scrollbar {
|
141
191
|
width: 4px;
|
142
192
|
}
|
@@ -131,6 +131,33 @@
|
|
131
131
|
font-size: 24px;
|
132
132
|
color: var(--light-gray);
|
133
133
|
}
|
134
|
+
.bk-transfer .transfer-button-group {
|
135
|
+
margin: 0 8px;
|
136
|
+
}
|
137
|
+
.bk-transfer .transfer-button-group .transfer-button {
|
138
|
+
display: flex;
|
139
|
+
width: 24px;
|
140
|
+
height: 24px;
|
141
|
+
color: var(--white-color);
|
142
|
+
cursor: pointer;
|
143
|
+
background-color: var(--primary-color);
|
144
|
+
border: 1px solid var(--primary-color);
|
145
|
+
border-radius: 2px;
|
146
|
+
align-items: center;
|
147
|
+
justify-content: center;
|
148
|
+
}
|
149
|
+
.bk-transfer .transfer-button-group .transfer-button:first-child {
|
150
|
+
margin-bottom: 8px;
|
151
|
+
}
|
152
|
+
.bk-transfer .transfer-button-group .transfer-button.disabled {
|
153
|
+
color: var(--light-gray);
|
154
|
+
cursor: not-allowed;
|
155
|
+
background-color: var(--whitesmoke-color);
|
156
|
+
border-color: var(--disable-color);
|
157
|
+
}
|
158
|
+
.bk-transfer .transfer-button-group .transfer-button span {
|
159
|
+
font-size: 18px;
|
160
|
+
}
|
134
161
|
.bk-transfer .source-list,
|
135
162
|
.bk-transfer .target-list {
|
136
163
|
flex: 1;
|
@@ -159,18 +186,23 @@
|
|
159
186
|
justify-content: space-between;
|
160
187
|
font-weight: 700;
|
161
188
|
}
|
162
|
-
.bk-transfer .source-list .header
|
163
|
-
.bk-transfer .target-list .header
|
189
|
+
.bk-transfer .source-list .header .select-all,
|
190
|
+
.bk-transfer .target-list .header .select-all {
|
164
191
|
font-size: 12px;
|
165
192
|
font-weight: normal;
|
166
193
|
color: var(--primary-color);
|
167
194
|
cursor: pointer;
|
168
195
|
}
|
169
|
-
.bk-transfer .source-list .header
|
170
|
-
.bk-transfer .target-list .header
|
196
|
+
.bk-transfer .source-list .header .select-all.disabled,
|
197
|
+
.bk-transfer .target-list .header .select-all.disabled {
|
171
198
|
color: var(--light-gray);
|
172
199
|
cursor: not-allowed;
|
173
200
|
}
|
201
|
+
.bk-transfer .source-list .header .select-total-count,
|
202
|
+
.bk-transfer .target-list .header .select-total-count {
|
203
|
+
font-weight: normal;
|
204
|
+
color: var(--gray-color);
|
205
|
+
}
|
174
206
|
.bk-transfer .source-list .transfer-search-input,
|
175
207
|
.bk-transfer .target-list .transfer-search-input {
|
176
208
|
width: calc(100% - 32px);
|
@@ -211,10 +243,17 @@
|
|
211
243
|
margin: 8px 0;
|
212
244
|
overflow-y: auto;
|
213
245
|
}
|
246
|
+
.bk-transfer .source-list .content.is-flex,
|
247
|
+
.bk-transfer .target-list .content.is-flex {
|
248
|
+
display: flex;
|
249
|
+
flex-direction: column;
|
250
|
+
}
|
214
251
|
.bk-transfer .source-list .content li.custom-item,
|
215
252
|
.bk-transfer .target-list .content li.custom-item,
|
216
253
|
.bk-transfer .source-list .content li .item-content,
|
217
|
-
.bk-transfer .target-list .content li .item-content
|
254
|
+
.bk-transfer .target-list .content li .item-content,
|
255
|
+
.bk-transfer .source-list .content .checkbox-item,
|
256
|
+
.bk-transfer .target-list .content .checkbox-item {
|
218
257
|
display: flex;
|
219
258
|
height: 32px;
|
220
259
|
padding: 0 10px 0 16px;
|
@@ -225,20 +264,26 @@
|
|
225
264
|
.bk-transfer .source-list .content li.custom-item:hover:not(.is-disabled),
|
226
265
|
.bk-transfer .target-list .content li.custom-item:hover:not(.is-disabled),
|
227
266
|
.bk-transfer .source-list .content li .item-content:hover:not(.is-disabled),
|
228
|
-
.bk-transfer .target-list .content li .item-content:hover:not(.is-disabled)
|
267
|
+
.bk-transfer .target-list .content li .item-content:hover:not(.is-disabled),
|
268
|
+
.bk-transfer .source-list .content .checkbox-item:hover:not(.is-disabled),
|
269
|
+
.bk-transfer .target-list .content .checkbox-item:hover:not(.is-disabled) {
|
229
270
|
color: var(--primary-color);
|
230
271
|
background-color: #e1ecff;
|
231
272
|
}
|
232
273
|
.bk-transfer .source-list .content li.custom-item:hover:not(.is-disabled) .icon-wrapper,
|
233
274
|
.bk-transfer .target-list .content li.custom-item:hover:not(.is-disabled) .icon-wrapper,
|
234
275
|
.bk-transfer .source-list .content li .item-content:hover:not(.is-disabled) .icon-wrapper,
|
235
|
-
.bk-transfer .target-list .content li .item-content:hover:not(.is-disabled) .icon-wrapper
|
276
|
+
.bk-transfer .target-list .content li .item-content:hover:not(.is-disabled) .icon-wrapper,
|
277
|
+
.bk-transfer .source-list .content .checkbox-item:hover:not(.is-disabled) .icon-wrapper,
|
278
|
+
.bk-transfer .target-list .content .checkbox-item:hover:not(.is-disabled) .icon-wrapper {
|
236
279
|
visibility: visible;
|
237
280
|
}
|
238
281
|
.bk-transfer .source-list .content li.custom-item .content-text,
|
239
282
|
.bk-transfer .target-list .content li.custom-item .content-text,
|
240
283
|
.bk-transfer .source-list .content li .item-content .content-text,
|
241
|
-
.bk-transfer .target-list .content li .item-content .content-text
|
284
|
+
.bk-transfer .target-list .content li .item-content .content-text,
|
285
|
+
.bk-transfer .source-list .content .checkbox-item .content-text,
|
286
|
+
.bk-transfer .target-list .content .checkbox-item .content-text {
|
242
287
|
flex: 1;
|
243
288
|
overflow: hidden;
|
244
289
|
text-overflow: ellipsis;
|
@@ -247,30 +292,43 @@
|
|
247
292
|
.bk-transfer .source-list .content li.custom-item .icon-wrapper,
|
248
293
|
.bk-transfer .target-list .content li.custom-item .icon-wrapper,
|
249
294
|
.bk-transfer .source-list .content li .item-content .icon-wrapper,
|
250
|
-
.bk-transfer .target-list .content li .item-content .icon-wrapper
|
295
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper,
|
296
|
+
.bk-transfer .source-list .content .checkbox-item .icon-wrapper,
|
297
|
+
.bk-transfer .target-list .content .checkbox-item .icon-wrapper {
|
251
298
|
visibility: hidden;
|
252
299
|
}
|
253
300
|
.bk-transfer .source-list .content li.custom-item .icon-wrapper .bk-icon,
|
254
301
|
.bk-transfer .target-list .content li.custom-item .icon-wrapper .bk-icon,
|
255
302
|
.bk-transfer .source-list .content li .item-content .icon-wrapper .bk-icon,
|
256
|
-
.bk-transfer .target-list .content li .item-content .icon-wrapper .bk-icon
|
303
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper .bk-icon,
|
304
|
+
.bk-transfer .source-list .content .checkbox-item .icon-wrapper .bk-icon,
|
305
|
+
.bk-transfer .target-list .content .checkbox-item .icon-wrapper .bk-icon {
|
257
306
|
display: flex;
|
258
307
|
font-size: 30px;
|
259
308
|
}
|
260
309
|
.bk-transfer .source-list .content li.custom-item .icon-wrapper .icon-delete,
|
261
310
|
.bk-transfer .target-list .content li.custom-item .icon-wrapper .icon-delete,
|
262
311
|
.bk-transfer .source-list .content li .item-content .icon-wrapper .icon-delete,
|
263
|
-
.bk-transfer .target-list .content li .item-content .icon-wrapper .icon-delete
|
312
|
+
.bk-transfer .target-list .content li .item-content .icon-wrapper .icon-delete,
|
313
|
+
.bk-transfer .source-list .content .checkbox-item .icon-wrapper .icon-delete,
|
314
|
+
.bk-transfer .target-list .content .checkbox-item .icon-wrapper .icon-delete {
|
264
315
|
margin-right: 6px;
|
265
316
|
font-size: 16px;
|
266
317
|
}
|
267
318
|
.bk-transfer .source-list .content li.custom-item.is-disabled,
|
268
319
|
.bk-transfer .target-list .content li.custom-item.is-disabled,
|
269
320
|
.bk-transfer .source-list .content li .item-content.is-disabled,
|
270
|
-
.bk-transfer .target-list .content li .item-content.is-disabled
|
321
|
+
.bk-transfer .target-list .content li .item-content.is-disabled,
|
322
|
+
.bk-transfer .source-list .content .checkbox-item.is-disabled,
|
323
|
+
.bk-transfer .target-list .content .checkbox-item.is-disabled {
|
271
324
|
color: var(--light-gray);
|
272
325
|
cursor: not-allowed;
|
273
326
|
}
|
327
|
+
.bk-transfer .source-list .content .checkbox-item .item-content,
|
328
|
+
.bk-transfer .target-list .content .checkbox-item .item-content {
|
329
|
+
display: flex;
|
330
|
+
align-items: center;
|
331
|
+
}
|
274
332
|
.bk-transfer .source-list .content::-webkit-scrollbar,
|
275
333
|
.bk-transfer .target-list .content::-webkit-scrollbar {
|
276
334
|
width: 4px;
|