bkui-vue 0.0.2-beta.5 → 0.0.2-beta.51
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 +80 -72
- package/dist/index.esm.js +16586 -15975
- package/dist/index.umd.js +80 -72
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/index.d.ts +4 -4
- package/lib/alert/alert.css +1 -0
- package/lib/alert/alert.less +119 -119
- package/lib/alert/alert.variable.css +1 -0
- package/lib/alert/index.d.ts +1 -1
- package/lib/animate-number/index.d.ts +1 -1
- package/lib/backtop/index.d.ts +1 -1
- package/lib/badge/badge.d.ts +2 -2
- package/lib/badge/index.d.ts +7 -7
- package/lib/breadcrumb/index.d.ts +2 -2
- package/lib/button/index.d.ts +2 -2
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +4 -4
- package/lib/cascader/cascader.d.ts +1 -12
- package/lib/cascader/index.d.ts +5 -20
- package/lib/cascader/index.js +1 -1
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +6 -3
- package/lib/checkbox/checkbox.d.ts +4 -4
- package/lib/checkbox/index.d.ts +22 -19
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/index.d.ts +1 -1
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse-transition/index.d.ts +128 -2
- package/lib/collapse-transition/index.js +1 -1
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/components/recommend-colors.d.ts +16 -0
- package/lib/color-picker/index.d.ts +19 -1
- package/lib/color-picker/index.js +1 -1
- package/lib/components.d.ts +1 -1
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/container/index.d.ts +2 -2
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.d.ts +3 -1
- package/lib/date-picker/index.d.ts +12 -5
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +3 -2
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown/dropdown.css +1 -0
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/exception/index.d.ts +2 -2
- package/lib/fixed-navbar/index.d.ts +1 -1
- package/lib/form/index.d.ts +3 -3
- package/lib/icon/assistant.d.ts +4 -0
- package/lib/icon/assistant.js +1 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image/index.js +1 -1
- package/lib/info-box/index.js +1 -1
- package/lib/input/index.d.ts +128 -50
- package/lib/input/index.js +2 -1
- package/lib/input/index.js.LICENSE.txt +1 -0
- package/lib/input/input.css +22 -6
- package/lib/input/input.d.ts +84 -11
- package/lib/input/input.less +37 -14
- package/lib/input/input.variable.css +22 -6
- package/lib/input/util.d.ts +6 -0
- package/lib/link/index.d.ts +4 -4
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +2 -2
- package/lib/locale/index.js +1 -1
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.d.ts +2 -2
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +18 -8
- package/lib/message/message.less +65 -53
- package/lib/message/message.variable.css +18 -8
- package/lib/message/messageConstructor.d.ts +30 -8
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +1 -1
- package/lib/navigation/index.d.ts +4 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.d.ts +1 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +257 -1
- package/lib/overflow-title/index.d.ts +387 -2
- package/lib/overflow-title/index.js +1 -1
- package/lib/overflow-title/props.d.ts +129 -0
- package/lib/pagination/index.d.ts +2 -2
- package/lib/plugin-popover/index.js +1 -1
- package/lib/pop-confirm/index.d.ts +1 -1
- package/lib/popover/const.d.ts +22 -9
- package/lib/popover/content.d.ts +33 -0
- package/lib/popover/index.d.ts +158 -73
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +1 -0
- package/lib/popover/popover.d.ts +66 -30
- package/lib/popover/popover.less +3 -2
- package/lib/popover/popover.variable.css +1 -0
- package/lib/popover/props.d.ts +30 -7
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover2/index.d.ts +1 -1
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.d.ts +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/radio/index.d.ts +23 -23
- package/lib/radio/radio-button.d.ts +4 -4
- package/lib/radio/radio-group.d.ts +4 -4
- package/lib/radio/radio.d.ts +4 -4
- package/lib/rate/index.d.ts +8 -4
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +2 -1
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.css +12 -0
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.less +12 -0
- package/lib/resize-layout/resize-layout.variable.css +12 -0
- package/lib/search-select/index.d.ts +56 -23
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/menu.d.ts +33 -2
- package/lib/search-select/search-select.css +31 -11
- package/lib/search-select/search-select.d.ts +19 -16
- package/lib/search-select/search-select.less +29 -10
- package/lib/search-select/search-select.variable.css +31 -11
- package/lib/search-select/selected.d.ts +5 -1
- package/lib/search-select/utils.d.ts +13 -5
- package/lib/select/index.d.ts +145 -69
- package/lib/select/index.js +1 -1
- package/lib/select/select.css +9 -1
- package/lib/select/select.d.ts +66 -33
- package/lib/select/select.less +11 -1
- package/lib/select/select.variable.css +9 -1
- package/lib/select/selectTagInput.d.ts +3 -0
- package/lib/shared/helper.d.ts +1 -1
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +3 -4
- package/lib/shared/pop-manager.d.ts +6 -2
- package/lib/shared/popover.d.ts +2 -2
- package/lib/sideslider/index.d.ts +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/steps/index.js +1 -1
- package/lib/styles/mixins/popper.less +6 -5
- package/lib/swiper/index.d.ts +1 -1
- package/lib/swiper/index.js +1 -1
- package/lib/swiper/swiper.css +0 -6
- package/lib/swiper/swiper.less +0 -8
- package/lib/swiper/swiper.variable.css +0 -6
- package/lib/switcher/index.d.ts +30 -16
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.d.ts +74 -5
- package/lib/tab/index.d.ts +3 -3
- package/lib/tab/tab-nav.d.ts +12 -2
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/table/components/table-cell.d.ts +22 -15
- package/lib/table/components/table-column.d.ts +153 -219
- package/lib/table/const.d.ts +16 -54
- package/lib/table/events.d.ts +180 -0
- package/lib/table/index.d.ts +694 -425
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +3 -0
- package/lib/table/plugins/head-filter.d.ts +3 -7
- package/lib/table/plugins/head-filter.less +3 -0
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.d.ts +3 -7
- package/lib/table/plugins/settings.d.ts +12 -26
- package/lib/table/plugins/use-column-resize.d.ts +1 -1
- package/lib/table/plugins/use-fixed-column.d.ts +3 -2
- package/lib/table/props.d.ts +191 -173
- package/lib/table/render.d.ts +6 -4
- package/lib/table/table.css +58 -4
- package/lib/table/table.d.ts +192 -90
- package/lib/table/table.less +68 -7
- package/lib/table/table.variable.css +58 -4
- package/lib/table/use-column.d.ts +51 -1
- package/lib/table/use-common.d.ts +17 -10
- package/lib/table/utils.d.ts +8 -7
- package/lib/table-column/index.d.ts +234 -527
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/tag-input/index.d.ts +52 -22
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.css +1 -1
- package/lib/tag-input/tag-input.d.ts +48 -16
- package/lib/tag-input/tag-input.less +4 -4
- package/lib/tag-input/tag-input.variable.css +1 -1
- package/lib/tag-input/tag-props.d.ts +17 -7
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/timeline/index.d.ts +1 -1
- package/lib/transfer/index.d.ts +1 -1
- package/lib/tree/index.d.ts +1 -1
- package/lib/tree/index.js +1 -1
- package/lib/tree/use-node-attribute.d.ts +1 -1
- package/lib/upload/index.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +19 -1
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +8 -0
- package/lib/virtual-render/virtual-render.d.ts +11 -0
- package/lib/volar.components.d.ts +24 -24
- package/package.json +17 -16
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropType, VNode } from 'vue';
|
2
|
-
import { ICommonItem, IMenuFooterItem } from './utils';
|
2
|
+
import { ICommonItem, IMenuFooterItem, SearchLogical } from './utils';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
list: {
|
5
5
|
type: PropType<ICommonItem[]>;
|
@@ -24,10 +24,20 @@ declare const _default: import("vue").DefineComponent<{
|
|
24
24
|
type: PropType<IMenuFooterItem[]>;
|
25
25
|
default: () => any[];
|
26
26
|
};
|
27
|
+
showLogical: {
|
28
|
+
type: BooleanConstructor;
|
29
|
+
default: boolean;
|
30
|
+
};
|
31
|
+
logical: {
|
32
|
+
type: PropType<SearchLogical>;
|
33
|
+
default: SearchLogical;
|
34
|
+
};
|
27
35
|
}, {
|
28
36
|
handleClick: (item: ICommonItem) => void;
|
29
37
|
handleClickCondition: (item: ICommonItem) => void;
|
30
38
|
handleClickFooterBtn: (item: IMenuFooterItem) => void;
|
39
|
+
handleSelectedChange: (e: MouseEvent, item: ICommonItem) => void;
|
40
|
+
handleLogicalChange: (value: unknown) => void;
|
31
41
|
filterList: import("vue").ComputedRef<ICommonItem[]>;
|
32
42
|
getSearchNode: (item: ICommonItem) => string | (string | VNode)[];
|
33
43
|
localFooterBtns: import("vue").ComputedRef<IMenuFooterItem[] | ({
|
@@ -40,7 +50,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
50
|
disabled: boolean;
|
41
51
|
})[]>;
|
42
52
|
resolveClassName: (cls: string) => string;
|
43
|
-
|
53
|
+
t: import("vue").ComputedRef<{
|
54
|
+
pleaseSelect: string;
|
55
|
+
loading: string;
|
56
|
+
filterQueryMustHasValue: string;
|
57
|
+
ok: string;
|
58
|
+
cancel: string;
|
59
|
+
or: string;
|
60
|
+
and: string;
|
61
|
+
logical: string;
|
62
|
+
}>;
|
63
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectItem" | "selectCondition" | "footerClick" | "update:logical")[], "selectItem" | "selectCondition" | "footerClick" | "update:logical", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
44
64
|
list: {
|
45
65
|
type: PropType<ICommonItem[]>;
|
46
66
|
};
|
@@ -64,14 +84,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
84
|
type: PropType<IMenuFooterItem[]>;
|
65
85
|
default: () => any[];
|
66
86
|
};
|
87
|
+
showLogical: {
|
88
|
+
type: BooleanConstructor;
|
89
|
+
default: boolean;
|
90
|
+
};
|
91
|
+
logical: {
|
92
|
+
type: PropType<SearchLogical>;
|
93
|
+
default: SearchLogical;
|
94
|
+
};
|
67
95
|
}>> & {
|
68
96
|
onSelectItem?: (...args: any[]) => any;
|
69
97
|
onSelectCondition?: (...args: any[]) => any;
|
70
98
|
onFooterClick?: (...args: any[]) => any;
|
99
|
+
"onUpdate:logical"?: (...args: any[]) => any;
|
71
100
|
}, {
|
72
101
|
multiple: boolean;
|
73
102
|
selected: string[];
|
103
|
+
logical: SearchLogical;
|
74
104
|
keyword: string;
|
75
105
|
footerBtns: IMenuFooterItem[];
|
106
|
+
showLogical: boolean;
|
76
107
|
}, {}>;
|
77
108
|
export default _default;
|
@@ -278,7 +278,7 @@
|
|
278
278
|
}
|
279
279
|
.bk-search-select-menu {
|
280
280
|
display: flex;
|
281
|
-
min-width:
|
281
|
+
min-width: 200px;
|
282
282
|
font-size: 12px;
|
283
283
|
color: #63656e;
|
284
284
|
flex-direction: column;
|
@@ -292,7 +292,7 @@
|
|
292
292
|
align-items: center;
|
293
293
|
width: 100%;
|
294
294
|
height: 32px;
|
295
|
-
padding: 0
|
295
|
+
padding: 0 8px;
|
296
296
|
flex: 0 0 32px;
|
297
297
|
outline: none;
|
298
298
|
}
|
@@ -317,7 +317,7 @@
|
|
317
317
|
align-items: center;
|
318
318
|
width: 100%;
|
319
319
|
height: 32px;
|
320
|
-
padding: 0
|
320
|
+
padding: 0 8px;
|
321
321
|
flex: 0 0 32px;
|
322
322
|
outline: none;
|
323
323
|
}
|
@@ -332,19 +332,46 @@
|
|
332
332
|
cursor: not-allowed;
|
333
333
|
background-color: white;
|
334
334
|
}
|
335
|
+
.bk-search-select-menu .menu-content-wrapper {
|
336
|
+
display: flex;
|
337
|
+
width: 100%;
|
338
|
+
height: 100%;
|
339
|
+
}
|
340
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition {
|
341
|
+
display: flex;
|
342
|
+
flex-direction: column;
|
343
|
+
width: 64px;
|
344
|
+
flex: 0 0 64px;
|
345
|
+
background-color: #F5F7FA;
|
346
|
+
padding: 8px 8px 2px 10px;
|
347
|
+
}
|
348
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition-title {
|
349
|
+
margin-bottom: 12px;
|
350
|
+
line-height: 24px;
|
351
|
+
display: flex;
|
352
|
+
align-items: center;
|
353
|
+
}
|
354
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio {
|
355
|
+
width: 50px;
|
356
|
+
margin-bottom: 14.5px;
|
357
|
+
}
|
358
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio ~ .bk-radio {
|
359
|
+
margin-left: 0;
|
360
|
+
}
|
335
361
|
.bk-search-select-menu .menu-content {
|
336
362
|
display: flex;
|
337
363
|
flex-direction: column;
|
338
364
|
flex: 1;
|
339
365
|
max-height: 240px;
|
340
366
|
overflow: auto;
|
367
|
+
padding: 4px 0;
|
341
368
|
}
|
342
369
|
.bk-search-select-menu .menu-content .menu-item {
|
343
370
|
display: flex;
|
344
371
|
align-items: center;
|
345
372
|
width: 100%;
|
346
373
|
height: 32px;
|
347
|
-
padding: 0
|
374
|
+
padding: 0 8px;
|
348
375
|
flex: 0 0 32px;
|
349
376
|
outline: none;
|
350
377
|
white-space: pre;
|
@@ -361,13 +388,6 @@
|
|
361
388
|
display: flex;
|
362
389
|
width: 22px;
|
363
390
|
height: 22px;
|
364
|
-
margin-left: auto;
|
365
|
-
overflow: hidden;
|
366
|
-
font-size: 22px;
|
367
|
-
font-weight: bold;
|
368
|
-
color: #3a84ff;
|
369
|
-
align-items: center;
|
370
|
-
justify-content: center;
|
371
391
|
}
|
372
392
|
.bk-search-select-menu .menu-content .menu-item.is-hover {
|
373
393
|
color: #3a84ff;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropType, ShallowRef } from 'vue';
|
2
|
-
import { GetMenuListFunc, ICommonItem, ISearchItem, ISearchValue, SearchItemType, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
|
2
|
+
import { GetMenuListFunc, ICommonItem, ISearchItem, ISearchValue, SearchItemType, SearchLogical, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
|
3
3
|
export declare const SearchSelectProps: {
|
4
4
|
data: {
|
5
5
|
type: PropType<ISearchItem[]>;
|
@@ -32,10 +32,6 @@ export declare const SearchSelectProps: {
|
|
32
32
|
placeholder: StringConstructor;
|
33
33
|
getMenuList: PropType<GetMenuListFunc>;
|
34
34
|
validateValues: PropType<ValidateValuesFunc>;
|
35
|
-
valueSplitCode: {
|
36
|
-
type: StringConstructor;
|
37
|
-
default: string;
|
38
|
-
};
|
39
35
|
uniqueSelect: {
|
40
36
|
type: BooleanConstructor;
|
41
37
|
default: boolean;
|
@@ -78,10 +74,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
78
74
|
placeholder: StringConstructor;
|
79
75
|
getMenuList: PropType<GetMenuListFunc>;
|
80
76
|
validateValues: PropType<ValidateValuesFunc>;
|
81
|
-
valueSplitCode: {
|
82
|
-
type: StringConstructor;
|
83
|
-
default: string;
|
84
|
-
};
|
85
77
|
uniqueSelect: {
|
86
78
|
type: BooleanConstructor;
|
87
79
|
default: boolean;
|
@@ -128,8 +120,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
128
120
|
id: string;
|
129
121
|
realId?: string;
|
130
122
|
isSelected?: boolean;
|
123
|
+
logical?: SearchLogical;
|
131
124
|
};
|
132
125
|
isSelected?: boolean;
|
126
|
+
logical?: SearchLogical;
|
133
127
|
}[]>;
|
134
128
|
menuList: import("vue").Ref<ISearchItem[]>;
|
135
129
|
menuHoverId: import("vue").Ref<string>;
|
@@ -145,6 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
145
139
|
handleClickOutside: (e: MouseEvent) => void;
|
146
140
|
handleInputFocus: (e: FocusEvent) => void;
|
147
141
|
handleInputChange: (event: Event) => void;
|
142
|
+
handleLogicalChange: (logical: SearchLogical) => void;
|
148
143
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
149
144
|
handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
|
150
145
|
handleSelectCondtionItem: (item: ICommonItem) => void;
|
@@ -158,6 +153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
158
153
|
cancel: string;
|
159
154
|
or: string;
|
160
155
|
and: string;
|
156
|
+
logical: string;
|
161
157
|
}>;
|
162
158
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "add" | "delete")[], "focus" | "add" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
163
159
|
data: {
|
@@ -206,10 +202,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
206
202
|
id: string;
|
207
203
|
realId?: string;
|
208
204
|
isSelected?: boolean;
|
205
|
+
logical?: SearchLogical;
|
209
206
|
};
|
210
207
|
isSelected?: boolean;
|
208
|
+
logical?: SearchLogical;
|
211
209
|
}[];
|
212
210
|
condition: string;
|
211
|
+
logical: SearchLogical;
|
213
212
|
searchItem: {
|
214
213
|
id: string;
|
215
214
|
name: string;
|
@@ -223,8 +222,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
223
222
|
id: string;
|
224
223
|
realId?: string;
|
225
224
|
isSelected?: boolean;
|
225
|
+
logical?: SearchLogical;
|
226
226
|
};
|
227
227
|
isSelected?: boolean;
|
228
|
+
logical?: SearchLogical;
|
228
229
|
}[];
|
229
230
|
multiple?: boolean;
|
230
231
|
async?: boolean;
|
@@ -241,13 +242,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
241
242
|
id: string;
|
242
243
|
realId?: string;
|
243
244
|
isSelected?: boolean;
|
245
|
+
logical?: SearchLogical;
|
244
246
|
};
|
245
247
|
isSelected?: boolean;
|
248
|
+
logical?: SearchLogical;
|
246
249
|
};
|
247
250
|
isSelected?: boolean;
|
251
|
+
onlyRecommendChildren?: boolean;
|
252
|
+
logical?: SearchLogical;
|
253
|
+
showLogicalPanel?: boolean;
|
248
254
|
};
|
249
255
|
type: SearchItemType;
|
250
|
-
splitCode: string;
|
251
256
|
readonly multiple: boolean;
|
252
257
|
readonly placeholder: string;
|
253
258
|
readonly children: {
|
@@ -260,14 +265,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
260
265
|
id: string;
|
261
266
|
realId?: string;
|
262
267
|
isSelected?: boolean;
|
268
|
+
logical?: SearchLogical;
|
263
269
|
};
|
264
270
|
isSelected?: boolean;
|
271
|
+
logical?: SearchLogical;
|
265
272
|
}[];
|
266
273
|
readonly validate: boolean;
|
267
274
|
readonly inputInnerHtml: string;
|
268
275
|
readonly inputInnerText: string;
|
269
276
|
readonly keyInnerHtml: string;
|
270
277
|
readonly keyInnerText: string;
|
278
|
+
readonly showLogical: boolean;
|
271
279
|
isSpecialType: () => boolean;
|
272
280
|
addValue: (item: ICommonItem) => void;
|
273
281
|
toValue: () => ISearchValue;
|
@@ -276,7 +284,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
276
284
|
}[]>;
|
277
285
|
overflowIndex: import("vue").Ref<number>;
|
278
286
|
validateStr: import("vue").Ref<string>;
|
279
|
-
splitCode: import("vue").ComputedRef<string>;
|
280
287
|
onEditClick: (item: SelectedItem, index: number) => void;
|
281
288
|
onEditEnter: (item: SelectedItem, index: number) => void;
|
282
289
|
handleWrapClick: () => void;
|
@@ -297,6 +304,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
297
304
|
cancel: string;
|
298
305
|
or: string;
|
299
306
|
and: string;
|
307
|
+
logical: string;
|
300
308
|
}>;
|
301
309
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue")[], "search" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
302
310
|
data: {
|
@@ -330,10 +338,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
330
338
|
placeholder: StringConstructor;
|
331
339
|
getMenuList: PropType<GetMenuListFunc>;
|
332
340
|
validateValues: PropType<ValidateValuesFunc>;
|
333
|
-
valueSplitCode: {
|
334
|
-
type: StringConstructor;
|
335
|
-
default: string;
|
336
|
-
};
|
337
341
|
uniqueSelect: {
|
338
342
|
type: BooleanConstructor;
|
339
343
|
default: boolean;
|
@@ -354,7 +358,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
354
358
|
modelValue: ISearchValue[];
|
355
359
|
conditions: ICommonItem[];
|
356
360
|
valueBehavior: ValueBehavior;
|
357
|
-
valueSplitCode: string;
|
358
361
|
shrink: boolean;
|
359
362
|
uniqueSelect: boolean;
|
360
363
|
}, {}>;
|
@@ -245,7 +245,7 @@
|
|
245
245
|
|
246
246
|
.@{search-select-name}-menu {
|
247
247
|
display: flex;
|
248
|
-
min-width:
|
248
|
+
min-width: 200px;
|
249
249
|
font-size: 12px;
|
250
250
|
color: @search-select-font-color;
|
251
251
|
flex-direction: column;
|
@@ -260,7 +260,7 @@
|
|
260
260
|
align-items: center;
|
261
261
|
width: 100%;
|
262
262
|
height: 32px;
|
263
|
-
padding: 0
|
263
|
+
padding: 0 8px;
|
264
264
|
flex: 0 0 32px;
|
265
265
|
outline: none;
|
266
266
|
|
@@ -291,13 +291,39 @@
|
|
291
291
|
}
|
292
292
|
}
|
293
293
|
}
|
294
|
-
|
294
|
+
.menu-content-wrapper {
|
295
|
+
display: flex;
|
296
|
+
width: 100%;
|
297
|
+
height: 100%;
|
298
|
+
.menu-condition {
|
299
|
+
display: flex;
|
300
|
+
flex-direction: column;
|
301
|
+
width: 64px;
|
302
|
+
flex: 0 0 64px;
|
303
|
+
background-color: #F5F7FA;
|
304
|
+
padding: 8px 8px 2px 10px;
|
305
|
+
&-title {
|
306
|
+
margin-bottom: 12px;
|
307
|
+
line-height: 24px;
|
308
|
+
display: flex;
|
309
|
+
align-items: center;
|
310
|
+
}
|
311
|
+
.bk-radio {
|
312
|
+
width: 50px;
|
313
|
+
margin-bottom: 14.5px;
|
314
|
+
}
|
315
|
+
.bk-radio ~ .bk-radio {
|
316
|
+
margin-left: 0;
|
317
|
+
}
|
318
|
+
}
|
319
|
+
}
|
295
320
|
.menu-content {
|
296
321
|
display: flex;
|
297
322
|
flex-direction: column;
|
298
323
|
flex: 1;
|
299
324
|
max-height: 240px;
|
300
325
|
overflow: auto;
|
326
|
+
padding: 4px 0;
|
301
327
|
|
302
328
|
.menu-item {
|
303
329
|
.menu-item-mixin();
|
@@ -312,13 +338,6 @@
|
|
312
338
|
display: flex;
|
313
339
|
width: 22px;
|
314
340
|
height: 22px;
|
315
|
-
margin-left: auto;
|
316
|
-
overflow: hidden;
|
317
|
-
font-size: 22px;
|
318
|
-
font-weight: bold;
|
319
|
-
color: @primary-color;
|
320
|
-
align-items: center;
|
321
|
-
justify-content: center;
|
322
341
|
}
|
323
342
|
|
324
343
|
&.is-hover {
|
@@ -400,7 +400,7 @@
|
|
400
400
|
}
|
401
401
|
.bk-search-select-menu {
|
402
402
|
display: flex;
|
403
|
-
min-width:
|
403
|
+
min-width: 200px;
|
404
404
|
font-size: 12px;
|
405
405
|
color: #63656e;
|
406
406
|
flex-direction: column;
|
@@ -414,7 +414,7 @@
|
|
414
414
|
align-items: center;
|
415
415
|
width: 100%;
|
416
416
|
height: 32px;
|
417
|
-
padding: 0
|
417
|
+
padding: 0 8px;
|
418
418
|
flex: 0 0 32px;
|
419
419
|
outline: none;
|
420
420
|
}
|
@@ -439,7 +439,7 @@
|
|
439
439
|
align-items: center;
|
440
440
|
width: 100%;
|
441
441
|
height: 32px;
|
442
|
-
padding: 0
|
442
|
+
padding: 0 8px;
|
443
443
|
flex: 0 0 32px;
|
444
444
|
outline: none;
|
445
445
|
}
|
@@ -454,19 +454,46 @@
|
|
454
454
|
cursor: not-allowed;
|
455
455
|
background-color: white;
|
456
456
|
}
|
457
|
+
.bk-search-select-menu .menu-content-wrapper {
|
458
|
+
display: flex;
|
459
|
+
width: 100%;
|
460
|
+
height: 100%;
|
461
|
+
}
|
462
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition {
|
463
|
+
display: flex;
|
464
|
+
flex-direction: column;
|
465
|
+
width: 64px;
|
466
|
+
flex: 0 0 64px;
|
467
|
+
background-color: #F5F7FA;
|
468
|
+
padding: 8px 8px 2px 10px;
|
469
|
+
}
|
470
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition-title {
|
471
|
+
margin-bottom: 12px;
|
472
|
+
line-height: 24px;
|
473
|
+
display: flex;
|
474
|
+
align-items: center;
|
475
|
+
}
|
476
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio {
|
477
|
+
width: 50px;
|
478
|
+
margin-bottom: 14.5px;
|
479
|
+
}
|
480
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio ~ .bk-radio {
|
481
|
+
margin-left: 0;
|
482
|
+
}
|
457
483
|
.bk-search-select-menu .menu-content {
|
458
484
|
display: flex;
|
459
485
|
flex-direction: column;
|
460
486
|
flex: 1;
|
461
487
|
max-height: 240px;
|
462
488
|
overflow: auto;
|
489
|
+
padding: 4px 0;
|
463
490
|
}
|
464
491
|
.bk-search-select-menu .menu-content .menu-item {
|
465
492
|
display: flex;
|
466
493
|
align-items: center;
|
467
494
|
width: 100%;
|
468
495
|
height: 32px;
|
469
|
-
padding: 0
|
496
|
+
padding: 0 8px;
|
470
497
|
flex: 0 0 32px;
|
471
498
|
outline: none;
|
472
499
|
white-space: pre;
|
@@ -483,13 +510,6 @@
|
|
483
510
|
display: flex;
|
484
511
|
width: 22px;
|
485
512
|
height: 22px;
|
486
|
-
margin-left: auto;
|
487
|
-
overflow: hidden;
|
488
|
-
font-size: 22px;
|
489
|
-
font-weight: bold;
|
490
|
-
color: #3a84ff;
|
491
|
-
align-items: center;
|
492
|
-
justify-content: center;
|
493
513
|
}
|
494
514
|
.bk-search-select-menu .menu-content .menu-item.is-hover {
|
495
515
|
color: #3a84ff;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropType } from 'vue';
|
2
|
-
import { GetMenuListFunc, ICommonItem, ISearchItem, SearchInputMode, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
|
2
|
+
import { GetMenuListFunc, ICommonItem, ISearchItem, SearchInputMode, SearchLogical, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
data: {
|
5
5
|
type: PropType<ISearchItem[]>;
|
@@ -57,8 +57,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
57
57
|
id: string;
|
58
58
|
realId?: string;
|
59
59
|
isSelected?: boolean;
|
60
|
+
logical?: SearchLogical;
|
60
61
|
};
|
61
62
|
isSelected?: boolean;
|
63
|
+
logical?: SearchLogical;
|
62
64
|
}[]>;
|
63
65
|
menuList: import("vue").Ref<ISearchItem[]>;
|
64
66
|
menuHoverId: import("vue").Ref<string>;
|
@@ -74,6 +76,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
74
76
|
handleClickOutside: (e: MouseEvent) => void;
|
75
77
|
handleInputFocus: (e: FocusEvent) => void;
|
76
78
|
handleInputChange: (event: Event) => void;
|
79
|
+
handleLogicalChange: (logical: SearchLogical) => void;
|
77
80
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
78
81
|
handleSelectItem: (item: ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
|
79
82
|
handleSelectCondtionItem: (item: ICommonItem) => void;
|
@@ -87,6 +90,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
87
90
|
cancel: string;
|
88
91
|
or: string;
|
89
92
|
and: string;
|
93
|
+
logical: string;
|
90
94
|
}>;
|
91
95
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "add" | "delete")[], "focus" | "add" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
92
96
|
data: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { InjectionKey, Ref, VNode } from 'vue';
|
2
2
|
/**
|
3
3
|
* @description: 获取menu list方法
|
4
4
|
* @param {ISearchItem} item 已选择的key字段 为空则代表当前并未选择key字段
|
@@ -24,7 +24,6 @@ export interface ISearchSelectProvider {
|
|
24
24
|
onEditBlur: () => void;
|
25
25
|
onValidate: (str: string) => void;
|
26
26
|
editKey: Ref<String>;
|
27
|
-
valueSplitCode: ComputedRef<string>;
|
28
27
|
}
|
29
28
|
export declare const SEARCH_SLECT_PROVIDER_KEY: InjectionKey<ISearchSelectProvider>;
|
30
29
|
export declare const useSearchSelectProvider: (data: ISearchSelectProvider) => void;
|
@@ -40,10 +39,11 @@ export interface ICommonItem {
|
|
40
39
|
realId?: string;
|
41
40
|
value?: Omit<ICommonItem, 'disabled' | 'value'>;
|
42
41
|
isSelected?: boolean;
|
42
|
+
logical?: SearchLogical;
|
43
43
|
}
|
44
44
|
export interface ISearchValue extends Omit<ICommonItem, 'disabled' | 'value'> {
|
45
45
|
type?: SearchItemType;
|
46
|
-
values?: Omit<ICommonItem, 'disabled'>[];
|
46
|
+
values?: Omit<ICommonItem, 'disabled' | 'logical'>[];
|
47
47
|
}
|
48
48
|
export interface ISearchItem {
|
49
49
|
id: string;
|
@@ -56,6 +56,13 @@ export interface ISearchItem {
|
|
56
56
|
disabled?: boolean;
|
57
57
|
value?: ICommonItem;
|
58
58
|
isSelected?: boolean;
|
59
|
+
onlyRecommendChildren?: boolean;
|
60
|
+
logical?: SearchLogical;
|
61
|
+
showLogicalPanel?: boolean;
|
62
|
+
}
|
63
|
+
export declare enum SearchLogical {
|
64
|
+
AND = "&",
|
65
|
+
OR = "|"
|
59
66
|
}
|
60
67
|
export interface IMenuFooterItem {
|
61
68
|
id: 'confirm' | 'cancel';
|
@@ -66,12 +73,12 @@ export type SearchItemType = 'text' | 'default' | 'condition';
|
|
66
73
|
export declare class SelectedItem {
|
67
74
|
searchItem: ISearchItem;
|
68
75
|
type: SearchItemType;
|
69
|
-
splitCode: string;
|
70
76
|
id: string;
|
71
77
|
name: string;
|
72
78
|
values: ICommonItem[];
|
73
79
|
condition: string;
|
74
|
-
|
80
|
+
logical: SearchLogical;
|
81
|
+
constructor(searchItem: ISearchItem, type?: SearchItemType);
|
75
82
|
get multiple(): boolean;
|
76
83
|
get placeholder(): string;
|
77
84
|
get children(): ICommonItem[];
|
@@ -80,6 +87,7 @@ export declare class SelectedItem {
|
|
80
87
|
get inputInnerText(): string;
|
81
88
|
get keyInnerHtml(): string;
|
82
89
|
get keyInnerText(): string;
|
90
|
+
get showLogical(): boolean;
|
83
91
|
isSpecialType(): boolean;
|
84
92
|
addValue(item: ICommonItem): void;
|
85
93
|
toValue(): ISearchValue;
|