cnhis-design-vue 3.1.31-beta.6 → 3.1.31-beta.8
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 +64 -45
- package/es/components/button-print/index.js +1 -1
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +64 -45
- 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 +65 -46
- package/es/components/button-print/src/components/EditFormat.vue.js +173 -0
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +64 -45
- package/es/components/button-print/src/components/{IdentityVerification.js → IdentityVerification.vue.js} +8 -5
- 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/button-print/style/index.css +1 -1
- 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 +2 -2
- 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/form-render/src/components/renderer/select.js +3 -3
- package/es/components/form-render/src/hooks/useAutographOptions.js +2 -2
- package/es/components/form-render/src/utils/index.d.ts +2 -2
- package/es/components/form-render/src/utils/index.js +27 -3
- 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 +5 -2
- 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 +26 -16
- package/es/components/keyboard/index.js +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +27 -8
- package/es/components/keyboard/src/{Keyboard.js → Keyboard.vue.js} +9 -3
- 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.js +1 -1
- 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.d.ts +3 -0
- package/es/components/steps-wheel/index.js +1 -1
- package/es/components/steps-wheel/src/StepsWheel.vue.d.ts +3 -0
- package/es/components/steps-wheel/src/{StepsWheel.js → StepsWheel.vue.js} +38 -9
- 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
- package/es/components/button-print/src/components/EditFormat.js +0 -153
|
@@ -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;
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { defineComponent, openBlock, createElementBlock, createElementVNode, Fragment, renderList, createBlock, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
2
|
+
import { NTag } from 'naive-ui';
|
|
3
|
+
import { RecommendType } from '../constant/index.js';
|
|
4
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
5
|
+
|
|
6
|
+
const _hoisted_1 = { class: "recommend-search__menuRecommend" };
|
|
7
|
+
const _hoisted_2 = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "recommend-search__recentRecommend"
|
|
10
|
+
};
|
|
11
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("header", null, "\u5E38\u7528\u641C\u7D22", -1);
|
|
12
|
+
const _hoisted_4 = { class: "recommend-search__menuRecommendList" };
|
|
13
|
+
const _hoisted_5 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "recommend-search__commonRecommend"
|
|
16
|
+
};
|
|
17
|
+
const _hoisted_6 = /* @__PURE__ */ createElementVNode("header", null, "\u6700\u8FD1\u641C\u7D22", -1);
|
|
18
|
+
const _hoisted_7 = { class: "recommend-search__menuRecommendList" };
|
|
19
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
|
+
__name: "RecommendMenu",
|
|
21
|
+
props: {
|
|
22
|
+
getDisplayValue: { type: Function, default: (item) => item.itemObj },
|
|
23
|
+
commonList: { default: () => [] },
|
|
24
|
+
recentList: { default: () => [] }
|
|
25
|
+
},
|
|
26
|
+
emits: ["delete", "choose"],
|
|
27
|
+
setup(__props, { emit: emits }) {
|
|
28
|
+
function clickTag(type, value) {
|
|
29
|
+
emits("choose", { type, value });
|
|
30
|
+
}
|
|
31
|
+
function clickCommonTag(value) {
|
|
32
|
+
clickTag(RecommendType.COMMONLY, value);
|
|
33
|
+
}
|
|
34
|
+
function clickRecentTag(value) {
|
|
35
|
+
clickTag(RecommendType.RECENTLY, value);
|
|
36
|
+
}
|
|
37
|
+
function closeTag(type, value) {
|
|
38
|
+
emits("delete", { type, value });
|
|
39
|
+
}
|
|
40
|
+
function closeCommonTag(value) {
|
|
41
|
+
closeTag(RecommendType.COMMONLY, value);
|
|
42
|
+
}
|
|
43
|
+
function closeRecentTag(value) {
|
|
44
|
+
closeTag(RecommendType.RECENTLY, value);
|
|
45
|
+
}
|
|
46
|
+
return (_ctx, _cache) => {
|
|
47
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
48
|
+
__props.commonList.length ? (openBlock(), createElementBlock("section", _hoisted_2, [
|
|
49
|
+
_hoisted_3,
|
|
50
|
+
createElementVNode("div", _hoisted_4, [
|
|
51
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.commonList, (item) => {
|
|
52
|
+
return openBlock(), createBlock(unref(NTag), {
|
|
53
|
+
size: "small",
|
|
54
|
+
onClick: ($event) => clickCommonTag(item),
|
|
55
|
+
onClose: ($event) => closeCommonTag(item),
|
|
56
|
+
closable: "",
|
|
57
|
+
type: "primary",
|
|
58
|
+
key: item.itemObj
|
|
59
|
+
}, {
|
|
60
|
+
default: withCtx(() => [
|
|
61
|
+
createTextVNode(toDisplayString(__props.getDisplayValue(item)), 1)
|
|
62
|
+
]),
|
|
63
|
+
_: 2
|
|
64
|
+
}, 1032, ["onClick", "onClose"]);
|
|
65
|
+
}), 128))
|
|
66
|
+
])
|
|
67
|
+
])) : createCommentVNode("v-if", true),
|
|
68
|
+
__props.recentList.length ? (openBlock(), createElementBlock("section", _hoisted_5, [
|
|
69
|
+
_hoisted_6,
|
|
70
|
+
createElementVNode("div", _hoisted_7, [
|
|
71
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.recentList, (item) => {
|
|
72
|
+
return openBlock(), createBlock(unref(NTag), {
|
|
73
|
+
size: "small",
|
|
74
|
+
onClick: ($event) => clickRecentTag(item),
|
|
75
|
+
onClose: ($event) => closeRecentTag(item),
|
|
76
|
+
closable: "",
|
|
77
|
+
type: "primary",
|
|
78
|
+
key: item.itemObj
|
|
79
|
+
}, {
|
|
80
|
+
default: withCtx(() => [
|
|
81
|
+
createTextVNode(toDisplayString(__props.getDisplayValue(item)), 1)
|
|
82
|
+
]),
|
|
83
|
+
_: 2
|
|
84
|
+
}, 1032, ["onClick", "onClose"]);
|
|
85
|
+
}), 128))
|
|
86
|
+
])
|
|
87
|
+
])) : createCommentVNode("v-if", true)
|
|
88
|
+
]);
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
var RecommendMenu = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "RecommendMenu.vue"]]);
|
|
93
|
+
|
|
94
|
+
export { RecommendMenu as default };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<unknown, object, {}, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<unknown>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, openBlock, createElementBlock, createVNode, mergeProps, unref, isRef, withCtx, createElementVNode, Fragment, renderList, toDisplayString, renderSlot } from 'vue';
|
|
2
|
+
import { useMemoize, useVModel, useVirtualList } from '@vueuse/core';
|
|
3
|
+
import { isObject } from 'lodash-es';
|
|
4
|
+
import RecommendMenu from './RecommendMenu.vue.js';
|
|
5
|
+
import BaseSearch from './BaseSearch.vue.js';
|
|
6
|
+
import _export_sfc from '../../../../_virtual/plugin-vue_export-helper.js';
|
|
7
|
+
|
|
8
|
+
const _hoisted_1 = { class: "recommend-search" };
|
|
9
|
+
const _hoisted_2 = ["onClick"];
|
|
10
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode("section", { class: "recommend-search__empty" }, "\u6682\u65E0\u6570\u636E", -1);
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "RecommendSelect",
|
|
13
|
+
props: {
|
|
14
|
+
value: null,
|
|
15
|
+
labelKey: { default: "label" },
|
|
16
|
+
valueKey: { default: "value" },
|
|
17
|
+
options: { default: () => [] },
|
|
18
|
+
commonList: { default: () => [] },
|
|
19
|
+
recentList: { default: () => [] }
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:value", "search", "delete", "choose"],
|
|
22
|
+
setup(__props, { emit: emits }) {
|
|
23
|
+
const props = __props;
|
|
24
|
+
const currentOption = ref();
|
|
25
|
+
const jsonParse = useMemoize(
|
|
26
|
+
(value) => {
|
|
27
|
+
try {
|
|
28
|
+
return JSON.parse(value);
|
|
29
|
+
} catch (e) {
|
|
30
|
+
return {};
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{ getKey: (value) => value }
|
|
34
|
+
);
|
|
35
|
+
function getValue(item) {
|
|
36
|
+
const option = jsonParse(item.itemObj);
|
|
37
|
+
return isObject(option) ? option[props.valueKey] : null;
|
|
38
|
+
}
|
|
39
|
+
function getDisplayValue(item) {
|
|
40
|
+
if (isObject(item)) {
|
|
41
|
+
const option = jsonParse(item.itemObj);
|
|
42
|
+
return isObject(option) ? option[props.labelKey] : "";
|
|
43
|
+
}
|
|
44
|
+
let result = "";
|
|
45
|
+
[...props.options, currentOption.value].find((option) => {
|
|
46
|
+
if (!option)
|
|
47
|
+
return;
|
|
48
|
+
const value = jsonParse(option.itemObj);
|
|
49
|
+
if (isObject(value) && value[props.valueKey] === item) {
|
|
50
|
+
result = value[props.labelKey];
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
return result;
|
|
55
|
+
}
|
|
56
|
+
const baseSearchRef = ref();
|
|
57
|
+
const valueRef = useVModel(props, "value", emits);
|
|
58
|
+
const parsedOptions = computed(() => {
|
|
59
|
+
return props.options.filter((option) => {
|
|
60
|
+
return props.commonList.every(notInList) && props.recentList.every(notInList);
|
|
61
|
+
function notInList(item) {
|
|
62
|
+
return item.itemObj !== option.itemObj;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
});
|
|
66
|
+
function search(value) {
|
|
67
|
+
emits("search", value);
|
|
68
|
+
}
|
|
69
|
+
function onClear() {
|
|
70
|
+
valueRef.value = null;
|
|
71
|
+
}
|
|
72
|
+
function onChoose({ value }) {
|
|
73
|
+
var _a;
|
|
74
|
+
valueRef.value = getValue(value);
|
|
75
|
+
(_a = baseSearchRef.value) == null ? void 0 : _a.closeMenu();
|
|
76
|
+
currentOption.value = value;
|
|
77
|
+
emits("choose", valueRef.value);
|
|
78
|
+
}
|
|
79
|
+
const { list, wrapperProps, containerProps } = useVirtualList(parsedOptions, { itemHeight: 32, overscan: 3 });
|
|
80
|
+
return (_ctx, _cache) => {
|
|
81
|
+
return openBlock(), createElementBlock("section", _hoisted_1, [
|
|
82
|
+
createVNode(BaseSearch, mergeProps({
|
|
83
|
+
ref_key: "baseSearchRef",
|
|
84
|
+
ref: baseSearchRef,
|
|
85
|
+
value: unref(valueRef),
|
|
86
|
+
"onUpdate:value": _cache[1] || (_cache[1] = ($event) => isRef(valueRef) ? valueRef.value = $event : null),
|
|
87
|
+
"display-value": getDisplayValue(unref(valueRef)),
|
|
88
|
+
onSearch: search,
|
|
89
|
+
onClear
|
|
90
|
+
}, _ctx.$attrs), {
|
|
91
|
+
menu: withCtx(() => [
|
|
92
|
+
createVNode(RecommendMenu, {
|
|
93
|
+
"get-display-value": getDisplayValue,
|
|
94
|
+
"common-list": __props.commonList,
|
|
95
|
+
"recent-list": __props.recentList,
|
|
96
|
+
onDelete: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("delete", $event)),
|
|
97
|
+
onChoose
|
|
98
|
+
}, null, 8, ["common-list", "recent-list"]),
|
|
99
|
+
unref(parsedOptions).length ? (openBlock(), createElementBlock("section", mergeProps({
|
|
100
|
+
key: 0,
|
|
101
|
+
class: "recommend-search__optionContainer",
|
|
102
|
+
style: { "height": "256px" }
|
|
103
|
+
}, unref(containerProps)), [
|
|
104
|
+
createElementVNode("section", mergeProps({ class: "recommend-search__optionWrapper" }, unref(wrapperProps)), [
|
|
105
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(list), (option) => {
|
|
106
|
+
return openBlock(), createElementBlock("div", {
|
|
107
|
+
onClick: ($event) => onChoose({ value: option.data }),
|
|
108
|
+
key: option.data.itemObj,
|
|
109
|
+
class: "recommend-search__option"
|
|
110
|
+
}, toDisplayString(getDisplayValue(option.data)), 9, _hoisted_2);
|
|
111
|
+
}), 128))
|
|
112
|
+
], 16)
|
|
113
|
+
], 16)) : renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
|
|
114
|
+
_hoisted_3
|
|
115
|
+
])
|
|
116
|
+
]),
|
|
117
|
+
_: 3
|
|
118
|
+
}, 16, ["value", "display-value"])
|
|
119
|
+
]);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
var RecommendSelect = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "RecommendSelect.vue"]]);
|
|
124
|
+
|
|
125
|
+
export { RecommendSelect as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.recommend-search__menuRecommendList{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.recommend-search__menuRecommendList .n-tag{cursor:pointer}.recommend-search__recentRecommend{margin-bottom:8px}.recommend-search__recentRecommend>header{color:rgba(0,0,0,.4)}.recommend-search__commonRecommend{margin-bottom:8px}.recommend-search__commonRecommend>header{color:rgba(0,0,0,.4)}.recommend-search__option{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:32px;padding:0 8px}.recommend-search__option:hover{background:rgba(0,0,0,.03)}.recommend-search__optionContainer{border:1px solid rgba(0,0,0,.1);border-radius:4px}.recommend-search__empty{align-items:center;color:rgba(0,0,0,.3);display:flex;height:100px;justify-content:center}
|
|
@@ -2,7 +2,7 @@ import { COMPONENT_NAMESPACE } from '../../shared/global/variable.js';
|
|
|
2
2
|
import { safeComponentRegister } from '../../shared/utils/index.js';
|
|
3
3
|
import { loadViewer } from '../../shared/utils/loadViewer.js';
|
|
4
4
|
import '../../shared/utils/utilExpand.js';
|
|
5
|
-
import script from './src/ScaleView.js';
|
|
5
|
+
import script from './src/ScaleView.vue.js';
|
|
6
6
|
import scriptRadio from './src/components/formitem/r-radio.js';
|
|
7
7
|
import scriptCheckbox from './src/components/formitem/r-checkbox.js';
|
|
8
8
|
import scriptSelect from './src/components/formitem/r-select.js';
|