bkui-vue 0.0.2-beta.9 → 0.0.2-beta.90
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 +143 -161
- package/dist/index.esm.js +20658 -22774
- package/dist/index.umd.js +143 -161
- 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/affix/index.js +321 -1
- package/lib/alert/alert.css +7 -0
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +16 -6
- package/lib/alert/alert.variable.css +7 -0
- package/lib/alert/index.d.ts +10 -10
- package/lib/alert/index.js +214 -1
- package/lib/animate-number/index.d.ts +1 -1
- package/lib/animate-number/index.js +155 -1
- package/lib/backtop/backtop.css +8 -8
- package/lib/backtop/backtop.less +3 -1
- package/lib/backtop/backtop.variable.css +11 -11
- package/lib/backtop/index.d.ts +1 -1
- package/lib/backtop/index.js +188 -1
- package/lib/badge/badge.d.ts +2 -2
- package/lib/badge/index.d.ts +7 -7
- package/lib/badge/index.js +235 -1
- package/lib/breadcrumb/breadcrumb.css +4 -4
- package/lib/breadcrumb/breadcrumb.variable.css +4 -4
- package/lib/breadcrumb/index.d.ts +2 -2
- package/lib/breadcrumb/index.js +309 -1
- package/lib/button/button.css +20 -0
- package/lib/button/button.less +105 -94
- package/lib/button/button.variable.css +20 -0
- package/lib/button/index.d.ts +2 -2
- package/lib/button/index.js +321 -1
- package/lib/card/card.css +4 -4
- package/lib/card/card.d.ts +1 -1
- package/lib/card/card.variable.css +4 -4
- package/lib/card/index.d.ts +4 -4
- package/lib/card/index.js +285 -1
- package/lib/cascader/cascader.css +4 -4
- package/lib/cascader/cascader.d.ts +1 -0
- package/lib/cascader/cascader.variable.css +4 -4
- package/lib/cascader/index.d.ts +5 -2
- package/lib/cascader/index.js +2036 -2
- 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 +542 -1
- package/lib/code-diff/index.d.ts +1 -1
- package/lib/code-diff/index.js +5501 -1
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse/index.js +570 -1
- package/lib/collapse-transition/index.d.ts +128 -2
- package/lib/collapse-transition/index.js +177 -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 +2665 -1
- package/lib/components.js +530 -1
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/index.js +365 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/config-provider/use-global-config.d.ts +2 -0
- package/lib/config-provider/use-prefix.d.ts +2 -0
- package/lib/container/container.css +4 -4
- package/lib/container/container.variable.css +4 -4
- package/lib/container/index.d.ts +2 -2
- package/lib/container/index.js +391 -1
- package/lib/date-picker/date-picker.d.ts +4 -2
- package/lib/date-picker/index.d.ts +15 -8
- package/lib/date-picker/index.js +5555 -1
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/date-picker/time-picker.d.ts +1 -1
- package/lib/dialog/dialog.css +2 -0
- package/lib/dialog/dialog.variable.css +2 -0
- package/lib/dialog/index.d.ts +1 -1
- package/lib/dialog/index.js +975 -2
- package/lib/directives/index.js +1376 -2
- package/lib/directives/tooltips.d.ts +3 -2
- package/lib/dist.index.js +87 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/divider/index.js +169 -1
- package/lib/dropdown/dropdown.css +1 -0
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +2 -2
- package/lib/dropdown/index.js +369 -1
- package/lib/exception/index.d.ts +2 -2
- package/lib/exception/index.js +385 -1
- package/lib/fixed-navbar/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +154 -1
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +952 -1
- package/lib/hooks.d.ts +1 -1
- package/lib/hooks.js +73 -1
- package/lib/icon/angle-double-down-line.js +191 -1
- package/lib/icon/angle-double-left-line.js +191 -1
- package/lib/icon/angle-double-left.js +191 -1
- package/lib/icon/angle-double-right-line.js +191 -1
- package/lib/icon/angle-double-right.js +191 -1
- package/lib/icon/angle-double-up-line.js +191 -1
- package/lib/icon/angle-down-fill.js +191 -1
- package/lib/icon/angle-down-line.js +191 -1
- package/lib/icon/angle-down.js +191 -1
- package/lib/icon/angle-left.js +191 -1
- package/lib/icon/angle-right.js +191 -1
- package/lib/icon/angle-up-fill.js +191 -1
- package/lib/icon/angle-up.js +191 -1
- package/lib/icon/archive-fill.js +191 -1
- package/lib/icon/arrows-left.js +191 -1
- package/lib/icon/arrows-right.js +191 -1
- package/lib/icon/assistant.d.ts +4 -0
- package/lib/icon/assistant.js +191 -0
- package/lib/icon/audio-fill.js +191 -1
- package/lib/icon/bk.js +191 -1
- package/lib/icon/circle.js +191 -1
- package/lib/icon/close-line.js +191 -1
- package/lib/icon/close.js +191 -1
- package/lib/icon/code.js +191 -1
- package/lib/icon/cog-shape.js +191 -1
- package/lib/icon/collapse-left.js +191 -1
- package/lib/icon/copy-shape.js +191 -1
- package/lib/icon/copy.js +191 -1
- package/lib/icon/data-shape.js +191 -1
- package/lib/icon/del.js +191 -1
- package/lib/icon/doc-fill.js +191 -1
- package/lib/icon/done.js +191 -1
- package/lib/icon/down-shape.js +191 -1
- package/lib/icon/down-small.js +191 -1
- package/lib/icon/edit-line.js +191 -1
- package/lib/icon/ellipsis.js +191 -1
- package/lib/icon/enlarge-line.js +191 -1
- package/lib/icon/error.js +191 -1
- package/lib/icon/excel-fill.js +191 -1
- package/lib/icon/exclamation-circle-shape.js +191 -1
- package/lib/icon/eye.js +191 -1
- package/lib/icon/filliscreen-line.js +191 -1
- package/lib/icon/fix-line.js +191 -1
- package/lib/icon/fix-shape.js +191 -1
- package/lib/icon/folder-open.js +191 -1
- package/lib/icon/folder-shape-open.js +191 -1
- package/lib/icon/folder-shape.js +191 -1
- package/lib/icon/folder.js +191 -1
- package/lib/icon/funnel.js +191 -1
- package/lib/icon/help-document-fill.js +191 -1
- package/lib/icon/help-fill.js +191 -1
- package/lib/icon/help.js +191 -1
- package/lib/icon/image-fill.js +276 -1
- package/lib/icon/img-error.js +276 -1
- package/lib/icon/img-placehoulder.js +276 -1
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +2399 -1
- package/lib/icon/info-line.js +276 -1
- package/lib/icon/info.js +276 -1
- package/lib/icon/left-shape.js +276 -1
- package/lib/icon/left-turn-line.js +276 -1
- package/lib/icon/narrow-line.js +276 -1
- package/lib/icon/original.js +276 -1
- package/lib/icon/pdf-fill.js +276 -1
- package/lib/icon/play-shape.js +276 -1
- package/lib/icon/plus.js +276 -1
- package/lib/icon/ppt-fill.js +276 -1
- package/lib/icon/qq.js +276 -1
- package/lib/icon/right-shape.js +276 -1
- package/lib/icon/right-turn-line.js +276 -1
- package/lib/icon/search.js +276 -1
- package/lib/icon/share.js +276 -1
- package/lib/icon/spinner.js +276 -1
- package/lib/icon/success.js +276 -1
- package/lib/icon/switcher-loading.js +276 -1
- package/lib/icon/text-file.js +276 -1
- package/lib/icon/text-fill.js +276 -1
- package/lib/icon/transfer.js +276 -1
- package/lib/icon/tree-application-shape.js +276 -1
- package/lib/icon/unfull-screen.js +276 -1
- package/lib/icon/unvisible.js +276 -1
- package/lib/icon/up-shape.js +276 -1
- package/lib/icon/upload.js +276 -1
- package/lib/icon/video-fill.js +276 -1
- package/lib/icon/warn.js +276 -1
- package/lib/icon/weixin-pro.js +276 -1
- package/lib/icon/weixin.js +276 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image/index.js +641 -1
- package/lib/index.js +97 -1
- package/lib/info-box/index.js +1165 -2
- package/lib/info-box/info-box.css +2 -0
- package/lib/info-box/info-box.less +2 -1
- package/lib/info-box/info-box.variable.css +2 -0
- package/lib/input/index.d.ts +146 -50
- package/lib/input/index.js +1218 -1
- package/lib/input/input.css +38 -10
- package/lib/input/input.d.ts +100 -11
- package/lib/input/input.less +53 -14
- package/lib/input/input.variable.css +38 -10
- package/lib/input/util.d.ts +6 -0
- package/lib/link/index.d.ts +4 -4
- package/lib/link/index.js +160 -1
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +2 -2
- package/lib/loading/index.js +381 -1
- package/lib/loading/loading.css +4 -4
- package/lib/loading/loading.variable.css +4 -4
- package/lib/locale/index.js +465 -1
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.d.ts +2 -2
- package/lib/menu/index.js +724 -1
- package/lib/menu/menu.css +4 -4
- package/lib/menu/menu.variable.css +4 -4
- package/lib/message/index.js +1795 -2
- package/lib/message/message.css +33 -9
- package/lib/message/message.less +78 -54
- package/lib/message/message.variable.css +33 -9
- package/lib/message/messageConstructor.d.ts +25 -4
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +396 -1
- package/lib/modal/modal.css +2 -0
- package/lib/modal/modal.variable.css +2 -0
- package/lib/navigation/index.d.ts +4 -1
- package/lib/navigation/index.js +367 -1
- package/lib/navigation/navigation.d.ts +1 -0
- package/lib/notify/index.js +397 -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 +461 -1
- package/lib/overflow-title/props.d.ts +129 -0
- package/lib/pagination/index.d.ts +2 -2
- package/lib/pagination/index.js +880 -1
- package/lib/plugin-popover/index.js +3905 -1
- package/lib/plugins/index.js +63 -1
- package/lib/pop-confirm/index.d.ts +1 -1
- package/lib/pop-confirm/index.js +273 -1
- package/lib/popover/content.d.ts +33 -0
- package/lib/popover/index.d.ts +74 -16
- package/lib/popover/index.js +3913 -1
- package/lib/popover/popover.css +1 -0
- package/lib/popover/popover.d.ts +40 -7
- package/lib/popover/popover.less +3 -2
- package/lib/popover/popover.variable.css +1 -0
- package/lib/popover/props.d.ts +25 -2
- package/lib/popover/use-floating.d.ts +1 -1
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover2/index.d.ts +1 -1
- package/lib/popover2/index.js +107 -1
- package/lib/preset.d.ts +2 -0
- package/lib/preset.js +93 -1
- package/lib/process/index.d.ts +1 -1
- package/lib/process/index.js +759 -2
- package/lib/progress/index.d.ts +1 -1
- package/lib/progress/index.js +431 -1
- package/lib/progress/progress.css +4 -4
- package/lib/progress/progress.variable.css +4 -4
- package/lib/radio/index.d.ts +23 -23
- package/lib/radio/index.js +627 -1
- 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 +338 -1
- package/lib/rate/rate.d.ts +2 -1
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/index.js +429 -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 +62 -29
- package/lib/search-select/index.js +2729 -2
- 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 +38 -20
- package/lib/search-select/search-select.d.ts +23 -20
- package/lib/search-select/search-select.less +35 -14
- package/lib/search-select/search-select.variable.css +38 -20
- package/lib/search-select/selected.d.ts +5 -1
- package/lib/search-select/utils.d.ts +13 -5
- package/lib/select/common.d.ts +1 -0
- package/lib/select/index.d.ts +198 -72
- package/lib/select/index.js +2254 -2
- package/lib/select/option.d.ts +11 -0
- package/lib/select/select.css +13 -5
- package/lib/select/select.d.ts +83 -31
- package/lib/select/select.less +11 -1
- package/lib/select/select.variable.css +37 -29
- package/lib/select/selectTagInput.d.ts +8 -5
- package/lib/shared/helper.d.ts +1 -1
- package/lib/shared/index.js +2689 -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/shared/vue-types.d.ts +3 -2
- package/lib/sideslider/index.d.ts +1 -1
- package/lib/sideslider/index.js +714 -2
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1291 -2
- package/lib/steps/index.d.ts +1 -1
- package/lib/steps/index.js +825 -2
- package/lib/styles/mixins/animate.css +4 -4
- package/lib/styles/mixins/animate.less +10 -6
- package/lib/styles/mixins/animate.variable.css +126 -4
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +72 -0
- package/lib/styles/mixins/mixins.less +5 -0
- package/lib/styles/mixins/mixins.variable.css +72 -0
- package/lib/styles/mixins/popper.less +6 -5
- package/lib/swiper/index.d.ts +1 -1
- package/lib/swiper/index.js +336 -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 +277 -1
- package/lib/switcher/switcher.css +4 -4
- package/lib/switcher/switcher.d.ts +74 -5
- package/lib/switcher/switcher.variable.css +4 -4
- package/lib/tab/index.d.ts +3 -3
- package/lib/tab/index.js +914 -1
- 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 -24
- package/lib/table/components/table-column.d.ts +125 -82
- package/lib/table/const.d.ts +24 -2
- package/lib/table/events.d.ts +26 -26
- package/lib/table/index.d.ts +281 -295
- package/lib/table/index.js +6243 -1
- package/lib/table/plugins/head-filter.css +3 -0
- package/lib/table/plugins/head-filter.less +3 -0
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/settings.d.ts +7 -17
- package/lib/table/plugins/use-column-resize.d.ts +30 -10
- package/lib/table/plugins/use-fixed-column.d.ts +9 -9
- package/lib/table/plugins/use-pagination.d.ts +7 -4
- package/lib/table/props.d.ts +118 -58
- package/lib/table/render.d.ts +7 -17
- package/lib/table/table.css +83 -11
- package/lib/table/table.d.ts +95 -72
- package/lib/table/table.less +59 -21
- package/lib/table/table.variable.css +83 -11
- package/lib/table/use-attributes.d.ts +55 -0
- package/lib/table/use-column.d.ts +264 -49
- package/lib/table/use-common.d.ts +1608 -88
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +30 -29
- package/lib/table-column/index.d.ts +241 -408
- package/lib/table-column/index.js +766 -1
- package/lib/tag/index.d.ts +10 -10
- package/lib/tag/index.js +233 -1
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/index.d.ts +49 -7
- package/lib/tag-input/index.js +1660 -1
- package/lib/tag-input/tag-input.css +9 -1
- package/lib/tag-input/tag-input.d.ts +32 -4
- package/lib/tag-input/tag-input.less +13 -4
- package/lib/tag-input/tag-input.variable.css +9 -1
- package/lib/tag-input/tag-props.d.ts +16 -2
- package/lib/time-picker/index.d.ts +4 -4
- package/lib/time-picker/index.js +71 -1
- package/lib/timeline/index.d.ts +1 -1
- package/lib/timeline/index.js +241 -1
- package/lib/transfer/index.d.ts +1 -1
- package/lib/transfer/index.js +673 -1
- package/lib/tree/constant.d.ts +2 -2
- package/lib/tree/index.d.ts +58 -22
- package/lib/tree/index.js +2503 -1
- package/lib/tree/props.d.ts +18 -6
- package/lib/tree/tree.d.ts +32 -11
- package/lib/tree/use-node-action.d.ts +5 -3
- package/lib/tree/use-node-attribute.d.ts +17 -8
- package/lib/tree/use-search.d.ts +2 -2
- package/lib/tree/use-tree-init.d.ts +1 -2
- package/lib/tree/util.d.ts +8 -3
- package/lib/upload/index.d.ts +1 -1
- package/lib/upload/index.js +2874 -2
- package/lib/upload/upload.css +4 -4
- package/lib/upload/upload.type.d.ts +1 -1
- package/lib/upload/upload.variable.css +4 -4
- package/lib/upload/use-file-handler.d.ts +2 -2
- package/lib/virtual-render/index.d.ts +43 -1
- package/lib/virtual-render/index.js +865 -1
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/v-virtual-render.d.ts +19 -1
- package/lib/virtual-render/virtual-render.d.ts +25 -0
- package/lib/volar.components.d.ts +24 -24
- package/package.json +29 -17
- package/lib/cascader/index.js.LICENSE.txt +0 -1
- package/lib/dialog/index.js.LICENSE.txt +0 -1
- package/lib/directives/index.js.LICENSE.txt +0 -14
- package/lib/info-box/index.js.LICENSE.txt +0 -1
- package/lib/message/index.js.LICENSE.txt +0 -6
- package/lib/process/index.js.LICENSE.txt +0 -1
- package/lib/search-select/index.js.LICENSE.txt +0 -1
- package/lib/select/index.js.LICENSE.txt +0 -1
- package/lib/sideslider/index.js.LICENSE.txt +0 -1
- package/lib/slider/index.js.LICENSE.txt +0 -1
- package/lib/steps/index.js.LICENSE.txt +0 -1
- package/lib/upload/index.js.LICENSE.txt +0 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
import { PropType, Ref } from 'vue';
|
2
|
-
import { GetMenuListFunc, ICommonItem, IMenuFooterItem, ISearchItem, SearchInputMode, SearchItemType, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
|
2
|
+
import { GetMenuListFunc, ICommonItem, IMenuFooterItem, ISearchItem, SearchInputMode, SearchItemType, SearchLogical, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
4
4
|
data: {
|
5
5
|
type: PropType<ISearchItem[]>;
|
@@ -36,8 +36,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
36
36
|
id: string;
|
37
37
|
realId?: string;
|
38
38
|
isSelected?: boolean;
|
39
|
+
logical?: SearchLogical;
|
39
40
|
};
|
40
41
|
isSelected?: boolean;
|
42
|
+
logical?: SearchLogical;
|
41
43
|
}[]>;
|
42
44
|
menuList: Ref<ISearchItem[]>;
|
43
45
|
menuHoverId: Ref<string>;
|
@@ -53,6 +55,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
53
55
|
handleClickOutside: (e: MouseEvent) => void;
|
54
56
|
handleInputFocus: (e: FocusEvent) => void;
|
55
57
|
handleInputChange: (event: Event) => void;
|
58
|
+
handleLogicalChange: (logical: SearchLogical) => void;
|
56
59
|
handleInputKeyup: (event: KeyboardEvent) => void;
|
57
60
|
handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
|
58
61
|
handleSelectCondtionItem: (item: ICommonItem) => void;
|
@@ -66,6 +69,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
66
69
|
cancel: string;
|
67
70
|
or: string;
|
68
71
|
and: string;
|
72
|
+
logical: string;
|
69
73
|
}>;
|
70
74
|
}, 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<{
|
71
75
|
data: {
|
@@ -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;
|
@@ -12,12 +12,12 @@
|
|
12
12
|
background-color: transparent;
|
13
13
|
}
|
14
14
|
}
|
15
|
-
.bk-
|
16
|
-
.bk-
|
15
|
+
.bk-transition .bk-fade-enter-active,
|
16
|
+
.bk-transition .bk-fade-leave-active {
|
17
17
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
18
18
|
}
|
19
|
-
.bk-
|
20
|
-
.bk-
|
19
|
+
.bk-transition .bk-fade-enter,
|
20
|
+
.bk-transition .bk-fade-leave-to {
|
21
21
|
opacity: 0;
|
22
22
|
}
|
23
23
|
.clearfix-style::after {
|
@@ -182,15 +182,13 @@
|
|
182
182
|
}
|
183
183
|
.bk-search-select-container .search-container-input {
|
184
184
|
position: relative;
|
185
|
-
display:
|
185
|
+
display: block;
|
186
186
|
height: 100%;
|
187
187
|
min-width: 40px;
|
188
188
|
padding: 0 10px;
|
189
189
|
margin-top: -4px;
|
190
190
|
color: #63656e;
|
191
191
|
border: none;
|
192
|
-
flex: 1 1 auto;
|
193
|
-
align-items: center;
|
194
192
|
}
|
195
193
|
.bk-search-select-container .search-container-input .input-before:before {
|
196
194
|
color: #c4c6cc;
|
@@ -278,7 +276,7 @@
|
|
278
276
|
}
|
279
277
|
.bk-search-select-menu {
|
280
278
|
display: flex;
|
281
|
-
min-width:
|
279
|
+
min-width: 200px;
|
282
280
|
font-size: 12px;
|
283
281
|
color: #63656e;
|
284
282
|
flex-direction: column;
|
@@ -292,7 +290,7 @@
|
|
292
290
|
align-items: center;
|
293
291
|
width: 100%;
|
294
292
|
height: 32px;
|
295
|
-
padding: 0
|
293
|
+
padding: 0 8px;
|
296
294
|
flex: 0 0 32px;
|
297
295
|
outline: none;
|
298
296
|
}
|
@@ -317,7 +315,7 @@
|
|
317
315
|
align-items: center;
|
318
316
|
width: 100%;
|
319
317
|
height: 32px;
|
320
|
-
padding: 0
|
318
|
+
padding: 0 8px;
|
321
319
|
flex: 0 0 32px;
|
322
320
|
outline: none;
|
323
321
|
}
|
@@ -332,19 +330,46 @@
|
|
332
330
|
cursor: not-allowed;
|
333
331
|
background-color: white;
|
334
332
|
}
|
335
|
-
.bk-search-select-menu .menu-content {
|
333
|
+
.bk-search-select-menu .menu-content-wrapper {
|
336
334
|
display: flex;
|
335
|
+
width: 100%;
|
336
|
+
height: 100%;
|
337
|
+
}
|
338
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition {
|
339
|
+
display: flex;
|
340
|
+
width: 64px;
|
341
|
+
padding: 8px 8px 2px 10px;
|
342
|
+
background-color: #f5f7fa;
|
337
343
|
flex-direction: column;
|
338
|
-
flex:
|
344
|
+
flex: 0 0 64px;
|
345
|
+
}
|
346
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition-title {
|
347
|
+
display: flex;
|
348
|
+
margin-bottom: 12px;
|
349
|
+
line-height: 24px;
|
350
|
+
align-items: center;
|
351
|
+
}
|
352
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio {
|
353
|
+
width: 50px;
|
354
|
+
margin-bottom: 14.5px;
|
355
|
+
}
|
356
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio ~ .bk-radio {
|
357
|
+
margin-left: 0;
|
358
|
+
}
|
359
|
+
.bk-search-select-menu .menu-content {
|
360
|
+
display: flex;
|
339
361
|
max-height: 240px;
|
362
|
+
padding: 4px 0;
|
340
363
|
overflow: auto;
|
364
|
+
flex-direction: column;
|
365
|
+
flex: 1;
|
341
366
|
}
|
342
367
|
.bk-search-select-menu .menu-content .menu-item {
|
343
368
|
display: flex;
|
344
369
|
align-items: center;
|
345
370
|
width: 100%;
|
346
371
|
height: 32px;
|
347
|
-
padding: 0
|
372
|
+
padding: 0 8px;
|
348
373
|
flex: 0 0 32px;
|
349
374
|
outline: none;
|
350
375
|
white-space: pre;
|
@@ -361,13 +386,6 @@
|
|
361
386
|
display: flex;
|
362
387
|
width: 22px;
|
363
388
|
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
389
|
}
|
372
390
|
.bk-search-select-menu .menu-content .menu-item.is-hover {
|
373
391
|
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,16 +32,12 @@ 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;
|
42
38
|
};
|
43
39
|
valueBehavior: {
|
44
|
-
type: PropType<
|
40
|
+
type: PropType<"all" | "need-key">;
|
45
41
|
default: ValueBehavior;
|
46
42
|
validator(v: ValueBehavior): boolean;
|
47
43
|
};
|
@@ -78,16 +74,12 @@ 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;
|
88
80
|
};
|
89
81
|
valueBehavior: {
|
90
|
-
type: PropType<
|
82
|
+
type: PropType<"all" | "need-key">;
|
91
83
|
default: ValueBehavior;
|
92
84
|
validator(v: ValueBehavior): boolean;
|
93
85
|
};
|
@@ -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,16 +338,12 @@ 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;
|
340
344
|
};
|
341
345
|
valueBehavior: {
|
342
|
-
type: PropType<
|
346
|
+
type: PropType<"all" | "need-key">;
|
343
347
|
default: ValueBehavior;
|
344
348
|
validator(v: ValueBehavior): boolean;
|
345
349
|
};
|
@@ -353,8 +357,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
353
357
|
clearable: boolean;
|
354
358
|
modelValue: ISearchValue[];
|
355
359
|
conditions: ICommonItem[];
|
356
|
-
valueBehavior:
|
357
|
-
valueSplitCode: string;
|
360
|
+
valueBehavior: "all" | "need-key";
|
358
361
|
shrink: boolean;
|
359
362
|
uniqueSelect: boolean;
|
360
363
|
}, {}>;
|
@@ -132,15 +132,13 @@
|
|
132
132
|
|
133
133
|
&-input {
|
134
134
|
position: relative;
|
135
|
-
display:
|
135
|
+
display: block;
|
136
136
|
height: 100%;
|
137
137
|
min-width: 40px;
|
138
138
|
padding: 0 10px;
|
139
139
|
margin-top: -4px;
|
140
140
|
color: @search-select-font-color;
|
141
141
|
border: none;
|
142
|
-
flex: 1 1 auto;
|
143
|
-
align-items: center;
|
144
142
|
|
145
143
|
.input-before {
|
146
144
|
&:before {
|
@@ -245,7 +243,7 @@
|
|
245
243
|
|
246
244
|
.@{search-select-name}-menu {
|
247
245
|
display: flex;
|
248
|
-
min-width:
|
246
|
+
min-width: 200px;
|
249
247
|
font-size: 12px;
|
250
248
|
color: @search-select-font-color;
|
251
249
|
flex-direction: column;
|
@@ -260,7 +258,7 @@
|
|
260
258
|
align-items: center;
|
261
259
|
width: 100%;
|
262
260
|
height: 32px;
|
263
|
-
padding: 0
|
261
|
+
padding: 0 8px;
|
264
262
|
flex: 0 0 32px;
|
265
263
|
outline: none;
|
266
264
|
|
@@ -292,12 +290,42 @@
|
|
292
290
|
}
|
293
291
|
}
|
294
292
|
|
293
|
+
.menu-content-wrapper {
|
294
|
+
display: flex;
|
295
|
+
width: 100%;
|
296
|
+
height: 100%;
|
297
|
+
|
298
|
+
.menu-condition {
|
299
|
+
display: flex;
|
300
|
+
width: 64px;
|
301
|
+
padding: 8px 8px 2px 10px;
|
302
|
+
background-color: #f5f7fa;
|
303
|
+
flex-direction: column;
|
304
|
+
flex: 0 0 64px;
|
305
|
+
|
306
|
+
&-title {
|
307
|
+
display: flex;
|
308
|
+
margin-bottom: 12px;
|
309
|
+
line-height: 24px;
|
310
|
+
align-items: center;
|
311
|
+
}
|
312
|
+
.@{bk-prefix}-radio {
|
313
|
+
width: 50px;
|
314
|
+
margin-bottom: 14.5px;
|
315
|
+
}
|
316
|
+
.@{bk-prefix}-radio ~ .@{bk-prefix}-radio {
|
317
|
+
margin-left: 0;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
}
|
321
|
+
|
295
322
|
.menu-content {
|
296
323
|
display: flex;
|
297
|
-
flex-direction: column;
|
298
|
-
flex: 1;
|
299
324
|
max-height: 240px;
|
325
|
+
padding: 4px 0;
|
300
326
|
overflow: auto;
|
327
|
+
flex-direction: column;
|
328
|
+
flex: 1;
|
301
329
|
|
302
330
|
.menu-item {
|
303
331
|
.menu-item-mixin();
|
@@ -312,13 +340,6 @@
|
|
312
340
|
display: flex;
|
313
341
|
width: 22px;
|
314
342
|
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
343
|
}
|
323
344
|
|
324
345
|
&.is-hover {
|
@@ -134,12 +134,12 @@
|
|
134
134
|
background-color: transparent;
|
135
135
|
}
|
136
136
|
}
|
137
|
-
.bk-
|
138
|
-
.bk-
|
137
|
+
.bk-transition .bk-fade-enter-active,
|
138
|
+
.bk-transition .bk-fade-leave-active {
|
139
139
|
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
140
140
|
}
|
141
|
-
.bk-
|
142
|
-
.bk-
|
141
|
+
.bk-transition .bk-fade-enter,
|
142
|
+
.bk-transition .bk-fade-leave-to {
|
143
143
|
opacity: 0;
|
144
144
|
}
|
145
145
|
.clearfix-style::after {
|
@@ -304,15 +304,13 @@
|
|
304
304
|
}
|
305
305
|
.bk-search-select-container .search-container-input {
|
306
306
|
position: relative;
|
307
|
-
display:
|
307
|
+
display: block;
|
308
308
|
height: 100%;
|
309
309
|
min-width: 40px;
|
310
310
|
padding: 0 10px;
|
311
311
|
margin-top: -4px;
|
312
312
|
color: #63656e;
|
313
313
|
border: none;
|
314
|
-
flex: 1 1 auto;
|
315
|
-
align-items: center;
|
316
314
|
}
|
317
315
|
.bk-search-select-container .search-container-input .input-before:before {
|
318
316
|
color: #c4c6cc;
|
@@ -400,7 +398,7 @@
|
|
400
398
|
}
|
401
399
|
.bk-search-select-menu {
|
402
400
|
display: flex;
|
403
|
-
min-width:
|
401
|
+
min-width: 200px;
|
404
402
|
font-size: 12px;
|
405
403
|
color: #63656e;
|
406
404
|
flex-direction: column;
|
@@ -414,7 +412,7 @@
|
|
414
412
|
align-items: center;
|
415
413
|
width: 100%;
|
416
414
|
height: 32px;
|
417
|
-
padding: 0
|
415
|
+
padding: 0 8px;
|
418
416
|
flex: 0 0 32px;
|
419
417
|
outline: none;
|
420
418
|
}
|
@@ -439,7 +437,7 @@
|
|
439
437
|
align-items: center;
|
440
438
|
width: 100%;
|
441
439
|
height: 32px;
|
442
|
-
padding: 0
|
440
|
+
padding: 0 8px;
|
443
441
|
flex: 0 0 32px;
|
444
442
|
outline: none;
|
445
443
|
}
|
@@ -454,19 +452,46 @@
|
|
454
452
|
cursor: not-allowed;
|
455
453
|
background-color: white;
|
456
454
|
}
|
457
|
-
.bk-search-select-menu .menu-content {
|
455
|
+
.bk-search-select-menu .menu-content-wrapper {
|
458
456
|
display: flex;
|
457
|
+
width: 100%;
|
458
|
+
height: 100%;
|
459
|
+
}
|
460
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition {
|
461
|
+
display: flex;
|
462
|
+
width: 64px;
|
463
|
+
padding: 8px 8px 2px 10px;
|
464
|
+
background-color: #f5f7fa;
|
459
465
|
flex-direction: column;
|
460
|
-
flex:
|
466
|
+
flex: 0 0 64px;
|
467
|
+
}
|
468
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition-title {
|
469
|
+
display: flex;
|
470
|
+
margin-bottom: 12px;
|
471
|
+
line-height: 24px;
|
472
|
+
align-items: center;
|
473
|
+
}
|
474
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio {
|
475
|
+
width: 50px;
|
476
|
+
margin-bottom: 14.5px;
|
477
|
+
}
|
478
|
+
.bk-search-select-menu .menu-content-wrapper .menu-condition .bk-radio ~ .bk-radio {
|
479
|
+
margin-left: 0;
|
480
|
+
}
|
481
|
+
.bk-search-select-menu .menu-content {
|
482
|
+
display: flex;
|
461
483
|
max-height: 240px;
|
484
|
+
padding: 4px 0;
|
462
485
|
overflow: auto;
|
486
|
+
flex-direction: column;
|
487
|
+
flex: 1;
|
463
488
|
}
|
464
489
|
.bk-search-select-menu .menu-content .menu-item {
|
465
490
|
display: flex;
|
466
491
|
align-items: center;
|
467
492
|
width: 100%;
|
468
493
|
height: 32px;
|
469
|
-
padding: 0
|
494
|
+
padding: 0 8px;
|
470
495
|
flex: 0 0 32px;
|
471
496
|
outline: none;
|
472
497
|
white-space: pre;
|
@@ -483,13 +508,6 @@
|
|
483
508
|
display: flex;
|
484
509
|
width: 22px;
|
485
510
|
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
511
|
}
|
494
512
|
.bk-search-select-menu .menu-content .menu-item.is-hover {
|
495
513
|
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: {
|