cnhis-design-vue 3.1.31-beta.5 → 3.1.31-beta.7
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/es/components/big-table/index.js +1 -1
- package/es/components/big-table/src/{BigTable.js → BigTable.vue.js} +1 -1
- package/es/components/big-table/src/{BigTable.vue_vue_type_script_setup_true_lang.js → BigTable.vue2.js} +6 -6
- package/es/components/{scale-view/src/components/NoData.js → big-table/src/components/NoData.vue.js} +4 -4
- package/es/components/big-table/src/components/edit-form/{edit-separate.js → edit-separate.vue.js} +1 -1
- package/es/components/big-table/src/components/{input-button.js → input-button.vue.js} +0 -0
- package/es/components/big-table/src/components/{separate.js → separate.vue.js} +0 -0
- package/es/components/big-table/src/hooks/useEdit.js +1 -1
- package/es/components/big-table/src/utils.js +1 -1
- package/es/components/bpmn-workflow/index.js +1 -1
- package/es/components/bpmn-workflow/src/{BpmnWorkflow.js → BpmnWorkflow.vue.js} +0 -0
- package/es/components/button-print/index.d.ts +4 -6
- package/es/components/button-print/index.js +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -6
- package/es/components/button-print/src/{ButtonPrint.js → ButtonPrint.vue.js} +1 -1
- package/es/components/button-print/src/{ButtonPrint.vue_vue_type_script_setup_true_lang.js → ButtonPrint.vue2.js} +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +2 -3
- package/es/components/button-print/src/components/{EditFormat.js → EditFormat.vue.js} +0 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -6
- package/es/components/button-print/src/components/{IdentityVerification.js → IdentityVerification.vue.js} +1 -1
- package/es/components/button-print/src/components/{Preview.js → Preview.vue.js} +1 -1
- package/es/components/button-print/src/components/{Preview.vue_vue_type_script_setup_true_lang.js → Preview.vue2.js} +0 -0
- package/es/components/button-print/src/utils/dialog.js +2 -2
- package/es/components/drag-layout/index.js +1 -1
- package/es/components/drag-layout/src/{DragFormLeftItem.js → DragFormLeftItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragFormRightItem.js → DragFormRightItem.vue.js} +0 -0
- package/es/components/drag-layout/src/{DragLayout.js → DragLayout.vue.js} +2 -2
- package/es/components/fabric-chart/index.js +1 -1
- package/es/components/fabric-chart/src/{FabricChart.js → FabricChart.vue.js} +1 -1
- package/es/components/fabric-chart/src/components/{PopupTip.js → PopupTip.vue.js} +0 -0
- package/es/components/fabric-chart/src/utils/index.js +0 -1
- package/es/components/field-set/index.js +1 -1
- package/es/components/field-set/src/{FieldSet.js → FieldSet.vue.js} +0 -0
- package/es/components/form-config/index.js +1 -1
- package/es/components/form-config/src/{FormConfig.js → FormConfig.vue.js} +3 -3
- package/es/components/form-config/src/components/{FormConfigCreator.js → FormConfigCreator.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigDragDisplay.js → FormConfigDragDisplay.vue.js} +0 -0
- package/es/components/form-config/src/components/{FormConfigEdit.js → FormConfigEdit.vue.js} +0 -0
- package/es/components/form-config/src/components/index.js +6 -6
- package/es/components/form-config/src/components/renderer/{CloseButton.js → CloseButton.vue.js} +0 -0
- package/es/components/form-config/src/components/renderer/{ComplexNode.js → ComplexNode.vue.js} +2 -2
- package/es/components/form-config/src/components/renderer/{DefaultNode.js → DefaultNode.vue.js} +1 -1
- package/es/components/form-config/src/components/renderer/index.js +3 -3
- package/es/components/form-config/src/hooks/usePresetRenderer.js +2 -2
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/{FormRender.js → FormRender.vue.js} +0 -0
- package/es/components/form-render/src/{FormRenderWrapper.js → FormRenderWrapper.vue.js} +1 -1
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/{FormCollapse.js → FormCollapse.vue.js} +0 -0
- package/es/components/form-render/src/components/renderer/lineBar/index.js +1 -1
- package/es/components/iho-table/index.js +1 -2
- package/es/components/iho-table/src/{IhoTable.js → IhoTable.vue.js} +0 -0
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +3 -1
- package/es/components/iho-table/src/plugins/filterPlugin/{filter.js → filter.vue.js} +0 -0
- package/es/components/iho-table/src/plugins/filterPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/{editDate.js → editDate.vue.js} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/{editSeparate.js → editSeparate.vue.js} +0 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +4 -1
- package/es/components/info-header/index.js +1 -1
- package/es/components/info-header/src/{HiddenContent.js → HiddenContent.vue.js} +1 -1
- package/es/components/info-header/src/{InfoEllipsis.js → InfoEllipsis.vue.js} +0 -0
- package/es/components/info-header/src/{InfoHeader.js → InfoHeader.vue.js} +2 -2
- package/es/components/keyboard/index.d.ts +4 -4
- package/es/components/keyboard/index.js +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +4 -4
- package/es/components/keyboard/src/{Keyboard.js → Keyboard.vue.js} +5 -5
- package/es/components/keyboard/src/components/{InputNumber.js → InputNumber.vue.js} +0 -0
- package/es/components/keyboard/src/components/{NumberPanel.js → NumberPanel.vue.js} +1 -1
- package/es/components/map/index.js +1 -1
- package/es/components/map/src/{Map.js → Map.vue.js} +0 -0
- package/es/components/recommend-search/index.d.ts +280 -0
- package/es/components/recommend-search/index.js +10 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +280 -0
- package/es/components/recommend-search/src/RecommendSearch.vue.js +35 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +128 -0
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +153 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +257 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +94 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +52 -0
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +94 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +2 -0
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +125 -0
- package/es/components/recommend-search/src/constant/index.d.ts +4 -0
- package/es/components/recommend-search/src/constant/index.js +7 -0
- package/es/components/recommend-search/src/types/index.d.ts +9 -0
- package/es/components/recommend-search/src/types/index.js +1 -0
- package/es/components/recommend-search/style/index.css +1 -0
- package/es/components/scale-view/index.d.ts +2 -3
- package/es/components/scale-view/index.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue.d.ts +2 -3
- package/es/components/scale-view/src/{ScaleView.js → ScaleView.vue.js} +5 -5
- package/es/components/scale-view/src/components/{AnswerParse.js → AnswerParse.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluateCountdown.js → EvaluateCountdown.vue.js} +1 -1
- package/es/components/scale-view/src/components/{EvaluatePage.js → EvaluatePage.vue.js} +0 -0
- package/es/components/scale-view/src/components/{LoadingCom.js → LoadingCom.vue.js} +0 -0
- package/es/components/{big-table/src/components/NoData.js → scale-view/src/components/NoData.vue.js} +4 -4
- package/es/components/scale-view/src/components/formitem/r-cascader.js +1 -1
- package/es/components/scale-view/src/components/formitem/r-select.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.js +1 -1
- package/es/components/search-cascader/index.js +1 -1
- package/es/components/search-cascader/src/{SearchCascader.js → SearchCascader.vue.js} +0 -0
- package/es/components/select-label/index.js +2 -2
- package/es/components/select-label/src/{LabelFormContent.js → LabelFormContent.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.js → SelectLabel.vue.js} +1 -1
- package/es/components/select-label/src/{SelectLabel.vue_vue_type_script_setup_true_lang.js → SelectLabel.vue2.js} +2 -2
- package/es/components/select-label/src/components/{label-classify.js → label-classify.vue.js} +0 -0
- package/es/components/select-person/index.js +1 -1
- package/es/components/select-person/src/{SelectPerson.js → SelectPerson.vue.js} +1 -1
- package/es/components/select-person/src/{SelectPerson.vue_vue_type_script_setup_true_lang.js → SelectPerson.vue2.js} +0 -0
- package/es/components/shortcut-provider/index.js +1 -1
- package/es/components/shortcut-provider/src/{ShortcutProvider.js → ShortcutProvider.vue.js} +0 -0
- package/es/components/shortcut-setter/index.js +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetter.js → ShortcutSetter.vue.js} +1 -1
- package/es/components/shortcut-setter/src/{ShortcutSetterItem.js → ShortcutSetterItem.vue.js} +0 -0
- package/es/components/steps-wheel/index.js +1 -1
- package/es/components/steps-wheel/src/{StepsWheel.js → StepsWheel.vue.js} +0 -0
- package/es/components/steps-wheel/style/index.css +1 -1
- package/es/components/time-line/index.js +1 -1
- package/es/components/time-line/src/{TimeLine.js → TimeLine.vue.js} +0 -0
- package/es/components/vod-chunk-upload/index.js +1 -1
- package/es/components/vod-chunk-upload/src/{chunk-upload-new.js → chunk-upload-new.vue.js} +0 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +2 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/{vod-chunk-upload.js → vod-chunk-upload.vue.js} +3 -3
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +1 -1
- package/es/shared/assets/img/failure.js +1 -3
- package/es/shared/assets/img/failure.png.js +3 -0
- package/es/shared/assets/img/no-permission.js +1 -3
- package/es/shared/assets/img/no-permission.png.js +3 -0
- package/es/shared/assets/img/nodata.js +1 -3
- package/es/shared/assets/img/nodata.png.js +3 -0
- package/es/shared/assets/img/notfound.js +1 -3
- package/es/shared/assets/img/notfound.png.js +3 -0
- package/es/shared/assets/img/qr.js +1 -3
- package/es/shared/assets/img/qr.png.js +3 -0
- package/es/shared/assets/img/success.js +1 -3
- package/es/shared/assets/img/success.png.js +3 -0
- package/es/shared/assets/img/video.js +1 -3
- package/es/shared/assets/img/video.png.js +3 -0
- package/es/shared/assets/img/video_default_cover.js +1 -3
- package/es/shared/assets/img/video_default_cover.png.js +3 -0
- package/es/shared/assets/img/xb_big.js +1 -3
- package/es/shared/assets/img/xb_big.png.js +3 -0
- package/es/shared/assets/img/xb_small.js +1 -3
- package/es/shared/assets/img/xb_small.png.js +3 -0
- package/es/shared/components/SelectPage/{SelectPage.js → SelectPage.vue.js} +0 -0
- package/es/shared/components/SelectPage/index.js +2 -2
- package/es/shared/components/SvgIcon/{SvgIcon.js → SvgIcon.vue.js} +0 -0
- package/es/shared/components/SvgIcon/index.js +2 -2
- package/es/shared/components/TextOverTooltip/{TextOverTooltip.js → TextOverTooltip.vue.js} +0 -0
- package/es/shared/components/TextOverTooltip/index.js +2 -2
- package/es/shared/components/no-data/{NoData.js → NoData.vue.js} +4 -4
- package/es/shared/components/no-data/index.js +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { Func } from '../../../../../es/shared/types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
value: {
|
|
5
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
6
|
+
};
|
|
7
|
+
displayValue: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
valueFormatter: {
|
|
11
|
+
type: PropType<(value: undefined | number | string | Array<any>) => string>;
|
|
12
|
+
};
|
|
13
|
+
show: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
};
|
|
16
|
+
placeholder: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
inputProps: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
popProps: {
|
|
25
|
+
type: ObjectConstructor;
|
|
26
|
+
default: () => {};
|
|
27
|
+
};
|
|
28
|
+
searchOnOpenMenu: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
value: {
|
|
35
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
36
|
+
};
|
|
37
|
+
displayValue: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
valueFormatter: {
|
|
41
|
+
type: PropType<(value: undefined | number | string | Array<any>) => string>;
|
|
42
|
+
};
|
|
43
|
+
show: {
|
|
44
|
+
type: BooleanConstructor;
|
|
45
|
+
};
|
|
46
|
+
placeholder: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
inputProps: {
|
|
51
|
+
type: ObjectConstructor;
|
|
52
|
+
default: () => {};
|
|
53
|
+
};
|
|
54
|
+
popProps: {
|
|
55
|
+
type: ObjectConstructor;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
58
|
+
searchOnOpenMenu: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
}>> & {
|
|
63
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
64
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
66
|
+
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
}>>;
|
|
69
|
+
uuid: string;
|
|
70
|
+
emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
71
|
+
search: (content?: any) => void;
|
|
72
|
+
popoverRef: import("vue").Ref<{
|
|
73
|
+
syncPosition: Func;
|
|
74
|
+
} | undefined>;
|
|
75
|
+
_show: import("vue").Ref<boolean>;
|
|
76
|
+
show: import("vue").WritableComputedRef<boolean>;
|
|
77
|
+
inputRef: import("vue").Ref<HTMLElement | undefined>;
|
|
78
|
+
patternContent: import("vue").Ref<string>;
|
|
79
|
+
displayValueRef: import("vue").WritableComputedRef<string | undefined>;
|
|
80
|
+
onInputClick: (evt: PointerEvent) => void;
|
|
81
|
+
openMenu: () => void;
|
|
82
|
+
closeMenu: () => void;
|
|
83
|
+
onClear: () => void;
|
|
84
|
+
NInput: any;
|
|
85
|
+
NPopover: any;
|
|
86
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
87
|
+
value: {
|
|
88
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
89
|
+
};
|
|
90
|
+
displayValue: {
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
};
|
|
93
|
+
valueFormatter: {
|
|
94
|
+
type: PropType<(value: undefined | number | string | Array<any>) => string>;
|
|
95
|
+
};
|
|
96
|
+
show: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
};
|
|
99
|
+
placeholder: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
inputProps: {
|
|
104
|
+
type: ObjectConstructor;
|
|
105
|
+
default: () => {};
|
|
106
|
+
};
|
|
107
|
+
popProps: {
|
|
108
|
+
type: ObjectConstructor;
|
|
109
|
+
default: () => {};
|
|
110
|
+
};
|
|
111
|
+
searchOnOpenMenu: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
}>> & {
|
|
116
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
119
|
+
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
120
|
+
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
show: boolean;
|
|
123
|
+
placeholder: string;
|
|
124
|
+
inputProps: Record<string, any>;
|
|
125
|
+
popProps: Record<string, any>;
|
|
126
|
+
searchOnOpenMenu: boolean;
|
|
127
|
+
}>;
|
|
128
|
+
export default _default;
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createBlock, unref, mergeProps, isRef, withCtx, createVNode, withKeys, createElementVNode, renderSlot } from 'vue';
|
|
2
|
+
import { uuidGenerator } from '../../../../shared/utils/index.js';
|
|
3
|
+
import { useDebounceFn, onClickOutside } from '@vueuse/core';
|
|
4
|
+
import { isFunction, isArray } from 'lodash-es';
|
|
5
|
+
import { NPopover, NInput } from 'naive-ui';
|
|
6
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
7
|
+
|
|
8
|
+
const _hoisted_1 = ["id"];
|
|
9
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10
|
+
__name: "BaseSearch",
|
|
11
|
+
props: {
|
|
12
|
+
value: { type: [String, Number, Array] },
|
|
13
|
+
displayValue: { type: String },
|
|
14
|
+
valueFormatter: {
|
|
15
|
+
type: Function
|
|
16
|
+
},
|
|
17
|
+
show: { type: Boolean },
|
|
18
|
+
placeholder: { type: String, default: "\u8BF7\u8F93\u5165" },
|
|
19
|
+
inputProps: { type: Object, default: () => ({}) },
|
|
20
|
+
popProps: { type: Object, default: () => ({}) },
|
|
21
|
+
searchOnOpenMenu: { type: Boolean, default: true }
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:show", "clear", "search", "openMenu", "closeMenu"],
|
|
24
|
+
setup(__props, { expose, emit: emits }) {
|
|
25
|
+
const props = __props;
|
|
26
|
+
const uuid = uuidGenerator();
|
|
27
|
+
const search = useDebounceFn((content = "") => {
|
|
28
|
+
emits("search", content);
|
|
29
|
+
}, 300);
|
|
30
|
+
const popoverRef = ref();
|
|
31
|
+
const _show = ref(props.show);
|
|
32
|
+
const show = computed({
|
|
33
|
+
get() {
|
|
34
|
+
return _show.value || props.show;
|
|
35
|
+
},
|
|
36
|
+
set(value) {
|
|
37
|
+
emits("update:show", value);
|
|
38
|
+
_show.value = value;
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
const inputRef = ref();
|
|
42
|
+
const patternContent = ref("");
|
|
43
|
+
const displayValueRef = computed({
|
|
44
|
+
get() {
|
|
45
|
+
var _a;
|
|
46
|
+
if (show.value)
|
|
47
|
+
return patternContent.value;
|
|
48
|
+
if (props.displayValue)
|
|
49
|
+
return props.displayValue;
|
|
50
|
+
return isFunction(props.valueFormatter) ? props.valueFormatter(props.value) : isArray(props.value) ? props.value.join(",") : ((_a = props.value) != null ? _a : "") + "";
|
|
51
|
+
},
|
|
52
|
+
set(value) {
|
|
53
|
+
patternContent.value = value || "";
|
|
54
|
+
search(value);
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
function onInputClick(evt) {
|
|
58
|
+
var _a;
|
|
59
|
+
if (((_a = evt.target) == null ? void 0 : _a.tagName) !== "INPUT")
|
|
60
|
+
return;
|
|
61
|
+
openMenu();
|
|
62
|
+
}
|
|
63
|
+
function openMenu() {
|
|
64
|
+
if (show.value)
|
|
65
|
+
return;
|
|
66
|
+
show.value = true;
|
|
67
|
+
emits("openMenu");
|
|
68
|
+
if (!props.searchOnOpenMenu)
|
|
69
|
+
return;
|
|
70
|
+
patternContent.value = "";
|
|
71
|
+
search();
|
|
72
|
+
}
|
|
73
|
+
function closeMenu() {
|
|
74
|
+
var _a;
|
|
75
|
+
show.value = false;
|
|
76
|
+
(_a = inputRef.value) == null ? void 0 : _a.blur();
|
|
77
|
+
emits("closeMenu");
|
|
78
|
+
}
|
|
79
|
+
function onClear() {
|
|
80
|
+
emits("clear");
|
|
81
|
+
}
|
|
82
|
+
onClickOutside(inputRef, (evt) => {
|
|
83
|
+
var _a;
|
|
84
|
+
if (!show.value)
|
|
85
|
+
return;
|
|
86
|
+
const _evt = evt;
|
|
87
|
+
if (!_evt.target)
|
|
88
|
+
return closeMenu();
|
|
89
|
+
if (isInPopper(_evt.target)) {
|
|
90
|
+
(_a = inputRef.value) == null ? void 0 : _a.focus();
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
closeMenu();
|
|
94
|
+
function isInPopper(targetEle) {
|
|
95
|
+
let result = false;
|
|
96
|
+
let current = targetEle;
|
|
97
|
+
while (current) {
|
|
98
|
+
if (current.id === uuid) {
|
|
99
|
+
result = true;
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
current = current.parentElement;
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
expose({
|
|
108
|
+
setPattern(value) {
|
|
109
|
+
patternContent.value = value;
|
|
110
|
+
},
|
|
111
|
+
closeMenu,
|
|
112
|
+
openMenu
|
|
113
|
+
});
|
|
114
|
+
return (_ctx, _cache) => {
|
|
115
|
+
return openBlock(), createBlock(unref(NPopover), mergeProps({
|
|
116
|
+
trigger: "manual",
|
|
117
|
+
class: "recommend-search",
|
|
118
|
+
placement: "bottom-start",
|
|
119
|
+
show: unref(show),
|
|
120
|
+
"onUpdate:show": _cache[1] || (_cache[1] = ($event) => isRef(show) ? show.value = $event : null),
|
|
121
|
+
"show-arrow": false,
|
|
122
|
+
ref_key: "popoverRef",
|
|
123
|
+
ref: popoverRef,
|
|
124
|
+
width: "trigger"
|
|
125
|
+
}, __props.popProps), {
|
|
126
|
+
trigger: withCtx(() => [
|
|
127
|
+
createVNode(unref(NInput), mergeProps(__props.inputProps, {
|
|
128
|
+
onClear,
|
|
129
|
+
onFocus: onInputClick,
|
|
130
|
+
onClick: onInputClick,
|
|
131
|
+
onKeydown: withKeys(onInputClick, ["enter"]),
|
|
132
|
+
ref_key: "inputRef",
|
|
133
|
+
ref: inputRef,
|
|
134
|
+
value: unref(displayValueRef),
|
|
135
|
+
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => isRef(displayValueRef) ? displayValueRef.value = $event : null)
|
|
136
|
+
}), null, 16, ["onKeydown", "value"])
|
|
137
|
+
]),
|
|
138
|
+
default: withCtx(() => [
|
|
139
|
+
createElementVNode("section", {
|
|
140
|
+
id: unref(uuid),
|
|
141
|
+
class: "base-search__menu"
|
|
142
|
+
}, [
|
|
143
|
+
renderSlot(_ctx.$slots, "menu")
|
|
144
|
+
], 8, _hoisted_1)
|
|
145
|
+
]),
|
|
146
|
+
_: 3
|
|
147
|
+
}, 16, ["show"]);
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
var BaseSearch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "BaseSearch.vue"]]);
|
|
152
|
+
|
|
153
|
+
export { BaseSearch as default };
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { RecommendType } from '../../../../../es/components/recommend-search/src/constant';
|
|
2
|
+
import { BaseSearchExpose, RecommendItem } from '../../../../../es/components/recommend-search/src/types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
value: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
options: {
|
|
9
|
+
type: ArrayConstructor;
|
|
10
|
+
required: false;
|
|
11
|
+
default: () => never[];
|
|
12
|
+
};
|
|
13
|
+
commonList: {
|
|
14
|
+
type: ArrayConstructor;
|
|
15
|
+
required: false;
|
|
16
|
+
default: () => never[];
|
|
17
|
+
};
|
|
18
|
+
recentList: {
|
|
19
|
+
type: ArrayConstructor;
|
|
20
|
+
required: false;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
props: {
|
|
25
|
+
value: string;
|
|
26
|
+
options: RecommendItem[];
|
|
27
|
+
commonList: RecommendItem[];
|
|
28
|
+
recentList: RecommendItem[];
|
|
29
|
+
};
|
|
30
|
+
emits: (event: "delete" | "update:value" | "search" | "choose", ...args: any[]) => void;
|
|
31
|
+
baseSearchRef: import("vue").Ref<BaseSearchExpose | undefined>;
|
|
32
|
+
setPattern: (value: string) => void;
|
|
33
|
+
valueRef: import("vue").Ref<string> | import("vue").WritableComputedRef<string>;
|
|
34
|
+
parsedOptions: import("vue").ComputedRef<RecommendItem[]>;
|
|
35
|
+
search: (value: string) => void;
|
|
36
|
+
onChoose: ({ value }: {
|
|
37
|
+
type?: RecommendType | undefined;
|
|
38
|
+
value: RecommendItem;
|
|
39
|
+
}) => void;
|
|
40
|
+
list: import("vue").Ref<import("@vueuse/core").UseVirtualListItem<RecommendItem>[]>;
|
|
41
|
+
wrapperProps: import("vue").ComputedRef<{
|
|
42
|
+
style: {
|
|
43
|
+
width: string;
|
|
44
|
+
height: string;
|
|
45
|
+
marginTop: string;
|
|
46
|
+
};
|
|
47
|
+
}>;
|
|
48
|
+
containerProps: {
|
|
49
|
+
ref: import("vue").Ref<any>;
|
|
50
|
+
onScroll: () => void;
|
|
51
|
+
style: Partial<CSSStyleDeclaration>;
|
|
52
|
+
};
|
|
53
|
+
RecommendMenu: import("vue").DefineComponent<{
|
|
54
|
+
getDisplayValue: {
|
|
55
|
+
type: FunctionConstructor;
|
|
56
|
+
required: false;
|
|
57
|
+
default: (item: RecommendItem) => string;
|
|
58
|
+
};
|
|
59
|
+
commonList: {
|
|
60
|
+
type: ArrayConstructor;
|
|
61
|
+
required: true;
|
|
62
|
+
default: () => never[];
|
|
63
|
+
};
|
|
64
|
+
recentList: {
|
|
65
|
+
type: ArrayConstructor;
|
|
66
|
+
required: true;
|
|
67
|
+
default: () => never[];
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
emits: (event: "delete" | "choose", ...args: any[]) => void;
|
|
71
|
+
clickTag: (type: RecommendType, value: RecommendItem) => void;
|
|
72
|
+
clickCommonTag: (value: RecommendItem) => void;
|
|
73
|
+
clickRecentTag: (value: RecommendItem) => void;
|
|
74
|
+
closeTag: (type: RecommendType, value: RecommendItem) => void;
|
|
75
|
+
closeCommonTag: (value: RecommendItem) => void;
|
|
76
|
+
closeRecentTag: (value: RecommendItem) => void;
|
|
77
|
+
NTag: any;
|
|
78
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "choose")[], "delete" | "choose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
+
getDisplayValue: {
|
|
80
|
+
type: FunctionConstructor;
|
|
81
|
+
required: false;
|
|
82
|
+
default: (item: RecommendItem) => string;
|
|
83
|
+
};
|
|
84
|
+
commonList: {
|
|
85
|
+
type: ArrayConstructor;
|
|
86
|
+
required: true;
|
|
87
|
+
default: () => never[];
|
|
88
|
+
};
|
|
89
|
+
recentList: {
|
|
90
|
+
type: ArrayConstructor;
|
|
91
|
+
required: true;
|
|
92
|
+
default: () => never[];
|
|
93
|
+
};
|
|
94
|
+
}>> & {
|
|
95
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
96
|
+
onChoose?: ((...args: any[]) => any) | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
commonList: unknown[];
|
|
99
|
+
recentList: unknown[];
|
|
100
|
+
getDisplayValue: Function;
|
|
101
|
+
}>;
|
|
102
|
+
BaseSearch: import("vue").DefineComponent<{
|
|
103
|
+
value: {
|
|
104
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
105
|
+
};
|
|
106
|
+
displayValue: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
};
|
|
109
|
+
valueFormatter: {
|
|
110
|
+
type: import("vue").PropType<(value: string | number | any[] | undefined) => string>;
|
|
111
|
+
};
|
|
112
|
+
show: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
};
|
|
115
|
+
placeholder: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
inputProps: {
|
|
120
|
+
type: ObjectConstructor;
|
|
121
|
+
default: () => {};
|
|
122
|
+
};
|
|
123
|
+
popProps: {
|
|
124
|
+
type: ObjectConstructor;
|
|
125
|
+
default: () => {};
|
|
126
|
+
};
|
|
127
|
+
searchOnOpenMenu: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
}, {
|
|
132
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
133
|
+
value: {
|
|
134
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
135
|
+
};
|
|
136
|
+
displayValue: {
|
|
137
|
+
type: StringConstructor;
|
|
138
|
+
};
|
|
139
|
+
valueFormatter: {
|
|
140
|
+
type: import("vue").PropType<(value: string | number | any[] | undefined) => string>;
|
|
141
|
+
};
|
|
142
|
+
show: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
};
|
|
145
|
+
placeholder: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
default: string;
|
|
148
|
+
};
|
|
149
|
+
inputProps: {
|
|
150
|
+
type: ObjectConstructor;
|
|
151
|
+
default: () => {};
|
|
152
|
+
};
|
|
153
|
+
popProps: {
|
|
154
|
+
type: ObjectConstructor;
|
|
155
|
+
default: () => {};
|
|
156
|
+
};
|
|
157
|
+
searchOnOpenMenu: {
|
|
158
|
+
type: BooleanConstructor;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
}>> & {
|
|
162
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
163
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
164
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
165
|
+
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
166
|
+
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
167
|
+
}>>;
|
|
168
|
+
uuid: string;
|
|
169
|
+
emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
170
|
+
search: (content?: any) => void;
|
|
171
|
+
popoverRef: import("vue").Ref<{
|
|
172
|
+
syncPosition: import("../../../../shared/types").Func<any[], any>;
|
|
173
|
+
} | undefined>;
|
|
174
|
+
_show: import("vue").Ref<boolean>;
|
|
175
|
+
show: import("vue").WritableComputedRef<boolean>;
|
|
176
|
+
inputRef: import("vue").Ref<HTMLElement | undefined>;
|
|
177
|
+
patternContent: import("vue").Ref<string>;
|
|
178
|
+
displayValueRef: import("vue").WritableComputedRef<string | undefined>;
|
|
179
|
+
onInputClick: (evt: PointerEvent) => void;
|
|
180
|
+
openMenu: () => void;
|
|
181
|
+
closeMenu: () => void;
|
|
182
|
+
onClear: () => void;
|
|
183
|
+
NInput: any;
|
|
184
|
+
NPopover: any;
|
|
185
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
186
|
+
value: {
|
|
187
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
188
|
+
};
|
|
189
|
+
displayValue: {
|
|
190
|
+
type: StringConstructor;
|
|
191
|
+
};
|
|
192
|
+
valueFormatter: {
|
|
193
|
+
type: import("vue").PropType<(value: string | number | any[] | undefined) => string>;
|
|
194
|
+
};
|
|
195
|
+
show: {
|
|
196
|
+
type: BooleanConstructor;
|
|
197
|
+
};
|
|
198
|
+
placeholder: {
|
|
199
|
+
type: StringConstructor;
|
|
200
|
+
default: string;
|
|
201
|
+
};
|
|
202
|
+
inputProps: {
|
|
203
|
+
type: ObjectConstructor;
|
|
204
|
+
default: () => {};
|
|
205
|
+
};
|
|
206
|
+
popProps: {
|
|
207
|
+
type: ObjectConstructor;
|
|
208
|
+
default: () => {};
|
|
209
|
+
};
|
|
210
|
+
searchOnOpenMenu: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
214
|
+
}>> & {
|
|
215
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
216
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
217
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
218
|
+
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
219
|
+
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
show: boolean;
|
|
222
|
+
placeholder: string;
|
|
223
|
+
inputProps: Record<string, any>;
|
|
224
|
+
popProps: Record<string, any>;
|
|
225
|
+
searchOnOpenMenu: boolean;
|
|
226
|
+
}>;
|
|
227
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "update:value" | "search" | "choose")[], "search" | "delete" | "update:value" | "choose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
228
|
+
value: {
|
|
229
|
+
type: StringConstructor;
|
|
230
|
+
required: true;
|
|
231
|
+
};
|
|
232
|
+
options: {
|
|
233
|
+
type: ArrayConstructor;
|
|
234
|
+
required: false;
|
|
235
|
+
default: () => never[];
|
|
236
|
+
};
|
|
237
|
+
commonList: {
|
|
238
|
+
type: ArrayConstructor;
|
|
239
|
+
required: false;
|
|
240
|
+
default: () => never[];
|
|
241
|
+
};
|
|
242
|
+
recentList: {
|
|
243
|
+
type: ArrayConstructor;
|
|
244
|
+
required: false;
|
|
245
|
+
default: () => never[];
|
|
246
|
+
};
|
|
247
|
+
}>> & {
|
|
248
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
249
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
250
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
251
|
+
onChoose?: ((...args: any[]) => any) | undefined;
|
|
252
|
+
}, {
|
|
253
|
+
options: unknown[];
|
|
254
|
+
commonList: unknown[];
|
|
255
|
+
recentList: unknown[];
|
|
256
|
+
}>;
|
|
257
|
+
export default _default;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, onMounted, computed, openBlock, createElementBlock, createVNode, unref, isRef, withCtx, createBlock, createCommentVNode, mergeProps, createElementVNode, Fragment, renderList, toDisplayString, renderSlot } from 'vue';
|
|
2
|
+
import { useVModel, useVirtualList } from '@vueuse/core';
|
|
3
|
+
import RecommendMenu from './RecommendMenu.vue.js';
|
|
4
|
+
import BaseSearch from './BaseSearch.vue.js';
|
|
5
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
6
|
+
|
|
7
|
+
const _hoisted_1 = { class: "recommend-search" };
|
|
8
|
+
const _hoisted_2 = ["onClick"];
|
|
9
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("section", { class: "recommend-search__empty" }, "\u6682\u65E0\u6570\u636E", -1);
|
|
10
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
|
+
__name: "RecommendInput",
|
|
12
|
+
props: {
|
|
13
|
+
value: null,
|
|
14
|
+
options: { default: () => [] },
|
|
15
|
+
commonList: { default: () => [] },
|
|
16
|
+
recentList: { default: () => [] }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:value", "search", "delete", "choose"],
|
|
19
|
+
setup(__props, { emit: emits }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const baseSearchRef = ref();
|
|
22
|
+
function setPattern(value) {
|
|
23
|
+
var _a;
|
|
24
|
+
(_a = baseSearchRef.value) == null ? void 0 : _a.setPattern(value);
|
|
25
|
+
}
|
|
26
|
+
const valueRef = useVModel(props, "value", emits);
|
|
27
|
+
watch(valueRef, setPattern);
|
|
28
|
+
onMounted(() => setPattern(valueRef.value));
|
|
29
|
+
const parsedOptions = computed(() => {
|
|
30
|
+
if (valueRef.value) {
|
|
31
|
+
return props.options;
|
|
32
|
+
}
|
|
33
|
+
return props.options.filter((option) => {
|
|
34
|
+
return props.commonList.every(notInList) && props.recentList.every(notInList);
|
|
35
|
+
function notInList(item) {
|
|
36
|
+
return item.itemObj !== option.itemObj;
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
function search(value) {
|
|
41
|
+
if (value === valueRef.value)
|
|
42
|
+
return;
|
|
43
|
+
emits("update:value", value);
|
|
44
|
+
emits("search", value);
|
|
45
|
+
}
|
|
46
|
+
function onChoose({ value }) {
|
|
47
|
+
var _a;
|
|
48
|
+
valueRef.value = value.itemObj;
|
|
49
|
+
(_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
|
|
50
|
+
emits("choose", valueRef.value);
|
|
51
|
+
}
|
|
52
|
+
const { list, wrapperProps, containerProps } = useVirtualList(parsedOptions, { itemHeight: 32, overscan: 3 });
|
|
53
|
+
return (_ctx, _cache) => {
|
|
54
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
55
|
+
createVNode(BaseSearch, {
|
|
56
|
+
ref_key: "baseSearchRef",
|
|
57
|
+
ref: baseSearchRef,
|
|
58
|
+
value: unref(valueRef),
|
|
59
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(valueRef) ? valueRef.value = $event : null),
|
|
60
|
+
onSearch: search,
|
|
61
|
+
"search-on-open-menu": false,
|
|
62
|
+
onOpenMenu: _cache[2] || (_cache[2] = ($event) => search(unref(valueRef)))
|
|
63
|
+
}, {
|
|
64
|
+
menu: withCtx(() => [
|
|
65
|
+
!unref(valueRef) ? (openBlock(), createBlock(RecommendMenu, {
|
|
66
|
+
key: 0,
|
|
67
|
+
"common-list": __props.commonList,
|
|
68
|
+
"recent-list": __props.recentList,
|
|
69
|
+
onDelete: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("delete", $event)),
|
|
70
|
+
onChoose
|
|
71
|
+
}, null, 8, ["common-list", "recent-list"])) : createCommentVNode("v-if", true),
|
|
72
|
+
unref(parsedOptions).length ? (openBlock(), createElementBlock("section", mergeProps({ key: 1 }, unref(containerProps), { style: { "height": "256px" } }), [
|
|
73
|
+
createElementVNode("section", mergeProps({ class: "recommend-search__optionList" }, unref(wrapperProps)), [
|
|
74
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (option) => {
|
|
75
|
+
return openBlock(), createElementBlock("div", {
|
|
76
|
+
onClick: ($event) => onChoose({ value: option.data }),
|
|
77
|
+
key: option.data.itemObj,
|
|
78
|
+
class: "recommend-search__option"
|
|
79
|
+
}, toDisplayString(option.data.itemObj), 9, _hoisted_2);
|
|
80
|
+
}), 128))
|
|
81
|
+
], 16)
|
|
82
|
+
], 16)) : renderSlot(_ctx.$slots, "empty", { key: 2 }, () => [
|
|
83
|
+
_hoisted_3
|
|
84
|
+
])
|
|
85
|
+
]),
|
|
86
|
+
_: 3
|
|
87
|
+
}, 8, ["value"])
|
|
88
|
+
]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
var RecommendInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "RecommendInput.vue"]]);
|
|
93
|
+
|
|
94
|
+
export { RecommendInput as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { RecommendType } from '../constant';
|
|
2
|
+
import { RecommendItem } from '../types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
getDisplayValue: {
|
|
5
|
+
type: FunctionConstructor;
|
|
6
|
+
required: false;
|
|
7
|
+
default: (item: RecommendItem) => string;
|
|
8
|
+
};
|
|
9
|
+
commonList: {
|
|
10
|
+
type: ArrayConstructor;
|
|
11
|
+
required: true;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
recentList: {
|
|
15
|
+
type: ArrayConstructor;
|
|
16
|
+
required: true;
|
|
17
|
+
default: () => never[];
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
emits: (event: "delete" | "choose", ...args: any[]) => void;
|
|
21
|
+
clickTag: (type: RecommendType, value: RecommendItem) => void;
|
|
22
|
+
clickCommonTag: (value: RecommendItem) => void;
|
|
23
|
+
clickRecentTag: (value: RecommendItem) => void;
|
|
24
|
+
closeTag: (type: RecommendType, value: RecommendItem) => void;
|
|
25
|
+
closeCommonTag: (value: RecommendItem) => void;
|
|
26
|
+
closeRecentTag: (value: RecommendItem) => void;
|
|
27
|
+
NTag: any;
|
|
28
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "choose")[], "delete" | "choose", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
getDisplayValue: {
|
|
30
|
+
type: FunctionConstructor;
|
|
31
|
+
required: false;
|
|
32
|
+
default: (item: RecommendItem) => string;
|
|
33
|
+
};
|
|
34
|
+
commonList: {
|
|
35
|
+
type: ArrayConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
default: () => never[];
|
|
38
|
+
};
|
|
39
|
+
recentList: {
|
|
40
|
+
type: ArrayConstructor;
|
|
41
|
+
required: true;
|
|
42
|
+
default: () => never[];
|
|
43
|
+
};
|
|
44
|
+
}>> & {
|
|
45
|
+
onDelete?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
onChoose?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}, {
|
|
48
|
+
commonList: unknown[];
|
|
49
|
+
recentList: unknown[];
|
|
50
|
+
getDisplayValue: Function;
|
|
51
|
+
}>;
|
|
52
|
+
export default _default;
|