cnhis-design-vue 3.1.42-release.3 → 3.1.42-release.4
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/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/button-print/index.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
- package/es/components/classification/index.d.ts +1 -1
- package/es/components/classification/src/index.vue.d.ts +2 -2
- package/es/components/classification/style/index.css +1 -1
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/index.d.ts +2 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
- package/es/components/field-set/index.d.ts +26 -81
- package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
- package/es/components/field-set/src/FieldSet.vue.js +1 -1
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +9 -14
- package/es/components/form-config/src/FormConfig.vue.d.ts +9 -14
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +5 -8
- package/es/components/form-render/index.d.ts +2 -2
- package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/levelSearchCascader.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/components/renderer/radio&checkbox.d.ts +36 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/remoteSearch.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +18 -0
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +32 -5
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +13 -8
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/types/fieldItem.d.ts +3 -4
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +5 -3
- package/es/components/iho-table/src/utils/index.d.ts +1 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/iconfont.ttf +0 -0
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +4 -4
- package/es/components/info-header/src/InfoHeader.vue.d.ts +4 -4
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2 -2
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +2 -2
- package/es/components/info-header/style/index.css +1 -1
- package/es/components/keyboard/src/Keyboard.vue.js +1 -1
- package/es/components/map/index.d.ts +2 -14
- package/es/components/map/src/Map.vue.d.ts +1 -14
- package/es/components/map/src/types/index.d.ts +19 -0
- package/es/components/map/src/types/index.js +1 -0
- package/es/components/recommend-search/index.d.ts +13 -128
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +15 -130
- package/es/components/recommend-search/src/RecommendSearch.vue.js +1 -1
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +84 -0
- package/es/components/recommend-search/src/components/BaseSearch.js +1 -0
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -63
- package/es/components/recommend-search/src/components/RecommendInput.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +1 -3
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +4 -62
- package/es/components/recommend-search/src/components/RecommendSelect.vue.js +1 -1
- package/es/components/recommend-search/src/constant/index.d.ts +3 -0
- package/es/components/recommend-search/src/constant/index.js +1 -1
- package/es/components/scale-view/index.d.ts +4 -28
- package/es/components/scale-view/src/ScaleView.vue.d.ts +4 -28
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +3 -3
- package/es/components/scale-view/src/hooks/scaleview-computed.d.ts +1 -1
- package/es/components/scale-view/src/hooks/scaleview-computed.js +1 -1
- package/es/components/scale-view/src/hooks/use-component.d.ts +73 -3
- package/es/components/select-label/style/index.css +1 -1
- package/es/components/shortcut-setter/index.d.ts +3 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +3 -4
- package/es/components/steps-wheel/src/StepsWheel.vue.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +9 -0
- package/es/components/time-picker/src/TimePicker.vue.js +1 -1
- package/es/components/vod-chunk-upload/index.d.ts +73 -3
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +73 -3
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
- package/es/shared/hooks/useDateTime.d.ts +1 -1
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/utils/index.d.ts +3 -3
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
- package/es/components/recommend-search/src/components/BaseSearch.vue.d.ts +0 -143
- package/es/components/recommend-search/src/components/BaseSearch.vue.js +0 -1
- /package/es/components/base-search/style/{iconfont.ttf → base-search-iconfont.ttf} +0 -0
- /package/es/components/classification/style/{iconfont.ttf → classification-iconfont.ttf} +0 -0
- /package/es/components/info-header/style/{iconfont.ttf → info-header-font.ttf} +0 -0
- /package/es/components/select-label/style/{iconfont.ttf → select-label-iconfont.ttf} +0 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
displayValue: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
};
|
|
6
|
+
valueFormatter: {
|
|
7
|
+
type: PropType<(value: undefined | number | string | Array<any>) => string>;
|
|
8
|
+
};
|
|
9
|
+
show: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
};
|
|
12
|
+
loading: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
};
|
|
15
|
+
placeholder: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
clearable: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
inputProps: {
|
|
24
|
+
type: ObjectConstructor;
|
|
25
|
+
default: () => {};
|
|
26
|
+
};
|
|
27
|
+
popProps: {
|
|
28
|
+
type: ObjectConstructor;
|
|
29
|
+
default: () => {};
|
|
30
|
+
};
|
|
31
|
+
clearPatternOnOpenMenu: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
35
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
displayValue: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
valueFormatter: {
|
|
40
|
+
type: PropType<(value: undefined | number | string | Array<any>) => string>;
|
|
41
|
+
};
|
|
42
|
+
show: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
};
|
|
45
|
+
loading: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
};
|
|
48
|
+
placeholder: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
clearable: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
inputProps: {
|
|
57
|
+
type: ObjectConstructor;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
popProps: {
|
|
61
|
+
type: ObjectConstructor;
|
|
62
|
+
default: () => {};
|
|
63
|
+
};
|
|
64
|
+
clearPatternOnOpenMenu: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
}>> & {
|
|
69
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
71
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
74
|
+
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
75
|
+
}, {
|
|
76
|
+
loading: boolean;
|
|
77
|
+
show: boolean;
|
|
78
|
+
placeholder: string;
|
|
79
|
+
clearable: boolean;
|
|
80
|
+
inputProps: Record<string, any>;
|
|
81
|
+
popProps: Record<string, any>;
|
|
82
|
+
clearPatternOnOpenMenu: boolean;
|
|
83
|
+
}>;
|
|
84
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{defineComponent as e,inject as a,ref as t,computed as o,createVNode as l,mergeProps as n}from"vue";import{isFunction as r}from"lodash-es";import{uuidGenerator as u}from"../../../../shared/utils/index.js";import{useDebounceFn as s,onClickOutside as p}from"@vueuse/core";import{NPopover as i,NInput as c,NSpin as d}from"naive-ui";import{InjectionRecommendSearchRootSlots as v,InjectionRecommendSearchRef as m}from"../constant/index.js";var f=e({props:{displayValue:{type:String},valueFormatter:{type:Function},show:{type:Boolean},loading:{type:Boolean},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},inputProps:{type:Object,default:()=>({})},popProps:{type:Object,default:()=>({})},clearPatternOnOpenMenu:{type:Boolean,default:!0}},emits:["update:show","keydown","clear","search","openMenu","closeMenu"],setup(e,{expose:f,emit:h,slots:g}){const y=a(v,{}),w=u(),b=s(((e="")=>{h("search",e)}),300),M=t(e.show),P=o({get:()=>M.value||e.show,set(e){h("update:show",e),M.value=e}}),O=a(m,t()),x=t(""),j=o({get:()=>P.value?x.value:e.displayValue,set(e){x.value=e||"",b(e)}});function k(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&B()}function B(){P.value||(P.value=!0,h("openMenu"),e.clearPatternOnOpenMenu&&(x.value=""))}function F(){var e;P.value=!1,null==(e=O.value)||e.blur(),h("closeMenu")}function U(){h("clear")}return p(O,(e=>{var a;if(!P.value)return;const t=e;if(!t.target)return F();!function(e){let a=!1,t=e;for(;t;){if(t.id===w){a=!0;break}t=t.parentElement}return a}(t.target)?F():null==(a=O.value)||a.focus()})),f({setPattern(e){x.value=e},closeMenu:F,openMenu:B}),()=>l(i,n({trigger:"manual",class:"recommend-search",placement:"bottom-start",show:P.value,"onUpdate:show":e=>P.value=e,"show-arrow":!1,width:"trigger"},e.popProps),{trigger:()=>l(c,n(e.inputProps,{placeholder:e.placeholder,clearable:e.clearable,onClear:U,onFocus:k,onClick:k,onKeydown:e=>h("keydown",e),ref:O,value:j.value,"onUpdate:value":e=>j.value=e}),y),default:()=>l(d,{show:e.loading},{default:()=>[l("section",{id:w,class:"base-search__menu",style:"min-height: 100px"},[r(null==g?void 0:g.menu)?g.menu():null])]})})}});export{f as default};
|
|
@@ -119,9 +119,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
119
119
|
clickTag: (type: RecommendType, value: RecommendItem) => void;
|
|
120
120
|
clickCommonTag: (value: RecommendItem) => void;
|
|
121
121
|
clickRecentTag: (value: RecommendItem) => void;
|
|
122
|
-
deleteTag: (
|
|
123
|
-
deleteCommonTag: () => void;
|
|
124
|
-
deleteRecentTag: () => void;
|
|
122
|
+
deleteTag: () => void;
|
|
125
123
|
TrashOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
126
124
|
NTag: any;
|
|
127
125
|
NIcon: any;
|
|
@@ -187,66 +185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
187
185
|
type: BooleanConstructor;
|
|
188
186
|
default: boolean;
|
|
189
187
|
};
|
|
190
|
-
}, {
|
|
191
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
192
|
-
displayValue: {
|
|
193
|
-
type: StringConstructor;
|
|
194
|
-
};
|
|
195
|
-
valueFormatter: {
|
|
196
|
-
type: PropType<(value: string | number | any[] | undefined) => string>;
|
|
197
|
-
};
|
|
198
|
-
show: {
|
|
199
|
-
type: BooleanConstructor;
|
|
200
|
-
};
|
|
201
|
-
loading: {
|
|
202
|
-
type: BooleanConstructor;
|
|
203
|
-
};
|
|
204
|
-
placeholder: {
|
|
205
|
-
type: StringConstructor;
|
|
206
|
-
default: string;
|
|
207
|
-
};
|
|
208
|
-
clearable: {
|
|
209
|
-
type: BooleanConstructor;
|
|
210
|
-
default: boolean;
|
|
211
|
-
};
|
|
212
|
-
inputProps: {
|
|
213
|
-
type: ObjectConstructor;
|
|
214
|
-
default: () => {};
|
|
215
|
-
};
|
|
216
|
-
popProps: {
|
|
217
|
-
type: ObjectConstructor;
|
|
218
|
-
default: () => {};
|
|
219
|
-
};
|
|
220
|
-
clearPatternOnOpenMenu: {
|
|
221
|
-
type: BooleanConstructor;
|
|
222
|
-
default: boolean;
|
|
223
|
-
};
|
|
224
|
-
}>> & {
|
|
225
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
226
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
227
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
228
|
-
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
229
|
-
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
230
|
-
}>>;
|
|
231
|
-
uuid: string;
|
|
232
|
-
emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
233
|
-
search: (content?: any) => void;
|
|
234
|
-
popoverRef: import("vue").Ref<{
|
|
235
|
-
syncPosition: import("../../../../../es/shared/types").Func<any[], any>;
|
|
236
|
-
} | undefined>;
|
|
237
|
-
_show: import("vue").Ref<boolean>;
|
|
238
|
-
show: import("vue").WritableComputedRef<boolean>;
|
|
239
|
-
inputRef: import("vue").Ref<HTMLElement | undefined>;
|
|
240
|
-
patternContent: import("vue").Ref<string>;
|
|
241
|
-
displayValueRef: import("vue").WritableComputedRef<string | undefined>;
|
|
242
|
-
openMenuAtInput: (evt: PointerEvent) => void;
|
|
243
|
-
openMenu: () => void;
|
|
244
|
-
closeMenu: () => void;
|
|
245
|
-
onClear: () => void;
|
|
246
|
-
NInput: any;
|
|
247
|
-
NPopover: any;
|
|
248
|
-
NSpin: any;
|
|
249
|
-
}, 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<{
|
|
188
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
250
189
|
displayValue: {
|
|
251
190
|
type: StringConstructor;
|
|
252
191
|
};
|
|
@@ -280,6 +219,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
280
219
|
default: boolean;
|
|
281
220
|
};
|
|
282
221
|
}>> & {
|
|
222
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
283
223
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
284
224
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
285
225
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,watch as o,onMounted as n,computed as l,openBlock as r,createElementBlock as a,createVNode as c,
|
|
1
|
+
import{defineComponent as e,ref as t,watch as o,onMounted as n,computed as l,openBlock as r,createElementBlock as a,createVNode as c,unref as s,mergeProps as i,withCtx as m,Fragment as u,renderSlot as p,createCommentVNode as d,createElementVNode as y,renderList as v,toDisplayString as h}from"vue";import{useVModel as f,useVirtualList as _}from"@vueuse/core";import b from"./RecommendMenu.vue.js";import j from"./BaseSearch.js";import k from"../../../../_virtual/plugin-vue_export-helper.js";const g={class:"recommend-search"},L=y("section",{class:"recommend-search__empty"},"暂无数据",-1),M=["onClick"],O=["title"],w=y("section",{class:"recommend-search__empty"},"暂无数据",-1);var A=k(e({__name:"RecommendInput",props:{value:{type:String},options:{type:Array,default:()=>[]},placeholder:{type:String,default:"请输入"},clearable:{type:Boolean,default:!0},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]},recommendDeletable:{type:Boolean,default:!0}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:k}){const A=e,C=t();function S(e=""){var t;null==(t=C.value)||t.setPattern(e)}const x=f(A,"value",k);o(x,S),n((()=>S(x.value)));const D=l((()=>x.value?A.options:A.options.filter((e=>{return A.commonList.every(t)&&A.recentList.every(t);function t(t){return t.itemObj!==e.itemObj}}))));function R(e){x.value=e,k("search",e)}function $(){k("openMenu")}function B(){k("closeMenu")}function P({type:e,value:t}){var o;x.value=t.itemObj,null==(o=C.value)||o.closeMenu(),k("choose",{type:e,value:t.itemObj})}const{list:I,wrapperProps:E,containerProps:H}=_(D,{itemHeight:32,overscan:3});function K(e){["ArrowUp","ArrowDown","Enter"].includes(e.key)&&console.log(e)}return(t,o)=>(r(),a("section",g,[c(s(j),i({ref_key:"baseSearchRef",ref:C,"display-value":s(x),"clear-pattern-on-open-menu":!1,placeholder:e.placeholder,clearable:e.clearable,onKeydown:K,onSearch:R,onOpenMenu:$,onCloseMenu:B},t.$attrs),{menu:m((()=>[s(x)?(r(),a(u,{key:1},[s(D).length?(r(),a("section",i({key:0,class:"recommend-search__optionContainer"},s(H),{style:{height:"256px"}}),[y("section",i({class:"recommend-search__optionList"},s(E)),[(r(!0),a(u,null,v(s(I),(e=>(r(),a("div",{onClick:t=>P({value:e.data}),key:e.data.itemObj,class:"recommend-search__option"},[y("div",{class:"recommend-search__optionText",title:e.data.itemObj},h(e.data.itemObj),9,O)],8,M)))),128))],16)],16)):p(t.$slots,"empty",{key:1},(()=>[w]))],64)):(r(),a(u,{key:0},[c(b,{"common-list":e.commonList,"recent-list":e.recentList,deletable:e.recommendDeletable,onDelete:o[0]||(o[0]=e=>t.$emit("delete",e)),onChoose:P},null,8,["common-list","recent-list","deletable"]),e.commonList.length||e.recentList.length?d("v-if",!0):p(t.$slots,"empty",{key:0},(()=>[L]))],64))])),_:3},16,["display-value","placeholder","clearable"])]))}}),[["__file","RecommendInput.vue"]]);export{A as default};
|
|
@@ -25,9 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
clickTag: (type: RecommendType, value: RecommendItem) => void;
|
|
26
26
|
clickCommonTag: (value: RecommendItem) => void;
|
|
27
27
|
clickRecentTag: (value: RecommendItem) => void;
|
|
28
|
-
deleteTag: (
|
|
29
|
-
deleteCommonTag: () => void;
|
|
30
|
-
deleteRecentTag: () => void;
|
|
28
|
+
deleteTag: () => void;
|
|
31
29
|
TrashOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
32
30
|
NTag: any;
|
|
33
31
|
NIcon: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,openBlock as n,createElementBlock as o,createElementVNode as t,createTextVNode as m,createBlock as i,unref as l,createCommentVNode as c,Fragment as s,renderList as r,withCtx as a,toDisplayString as u}from"vue";import{TrashOutline as d}from"@vicons/ionicons5";import{NIcon as p,NTag as
|
|
1
|
+
import{defineComponent as e,openBlock as n,createElementBlock as o,createElementVNode as t,createTextVNode as m,createBlock as i,unref as l,createCommentVNode as c,Fragment as s,renderList as r,withCtx as a,toDisplayString as u}from"vue";import{TrashOutline as d}from"@vicons/ionicons5";import{NIcon as p,NTag as _}from"naive-ui";import{RecommendType as f}from"../constant/index.js";import v from"../../../../_virtual/plugin-vue_export-helper.js";const y={class:"recommend-search__menuRecommend"},h={key:0,class:"recommend-search__commonRecommend"},k={class:"recommend-search__menuRecommendList"},L={key:1,class:"recommend-search__recentRecommend"},R=t("header",null,"常用搜索",-1),C={class:"recommend-search__menuRecommendList"};var g=v(e({__name:"RecommendMenu",props:{getDisplayValue:{type:Function,default:e=>e.itemObj},commonList:{default:()=>[]},recentList:{default:()=>[]},deletable:{type:Boolean}},emits:["delete","choose"],setup(e,{emit:v}){function g(e,n){v("choose",{type:e,value:n})}function b(){v("delete")}return(v,j)=>(n(),o("section",y,[e.recentList.length?(n(),o("section",h,[t("header",null,[m(" 最近搜索 "),e.deletable?(n(),i(l(p),{key:0,component:l(d),onClick:b},null,8,["component"])):c("v-if",!0)]),t("div",k,[(n(!0),o(s,null,r(e.recentList,(o=>(n(),i(l(_),{size:"small",onClick:e=>{return n=o,void g(f.RECENTLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0),e.commonList.length?(n(),o("section",L,[R,t("div",C,[(n(!0),o(s,null,r(e.commonList,(o=>(n(),i(l(_),{size:"small",onClick:e=>{return n=o,void g(f.COMMONLY,n);var n},type:"primary",key:o.itemObj},{default:a((()=>[m(u(e.getDisplayValue(o)),1)])),_:2},1032,["onClick"])))),128))])])):c("v-if",!0)]))}}),[["__file","RecommendMenu.vue"]]);export{g as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject } from '../../../../../es/shared/types';
|
|
1
|
+
import { AnyObject, Nullable } from '../../../../../es/shared/types';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
import { BaseSearchExpose, RecommendItem } from '../../../../../es/components/recommend-search/src/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -83,7 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
83
83
|
commonOptions: import("vue").ComputedRef<any[]>;
|
|
84
84
|
recentOptions: import("vue").ComputedRef<any[]>;
|
|
85
85
|
optionWithoutRecommend: import("vue").ComputedRef<AnyObject[]>;
|
|
86
|
-
getDisplayValue: (item: string | number) => string;
|
|
86
|
+
getDisplayValue: (item: Nullable<string | number>) => string;
|
|
87
87
|
baseSearchRef: import("vue").Ref<BaseSearchExpose | undefined>;
|
|
88
88
|
valueRef: import("vue").Ref<string | number | null | undefined> | import("vue").WritableComputedRef<string | number | null | undefined>;
|
|
89
89
|
parsedOptions: import("vue").ComputedRef<any[]>;
|
|
@@ -140,66 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
140
|
type: BooleanConstructor;
|
|
141
141
|
default: boolean;
|
|
142
142
|
};
|
|
143
|
-
}, {
|
|
144
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
145
|
-
displayValue: {
|
|
146
|
-
type: StringConstructor;
|
|
147
|
-
};
|
|
148
|
-
valueFormatter: {
|
|
149
|
-
type: PropType<(value: string | number | any[] | undefined) => string>;
|
|
150
|
-
};
|
|
151
|
-
show: {
|
|
152
|
-
type: BooleanConstructor;
|
|
153
|
-
};
|
|
154
|
-
loading: {
|
|
155
|
-
type: BooleanConstructor;
|
|
156
|
-
};
|
|
157
|
-
placeholder: {
|
|
158
|
-
type: StringConstructor;
|
|
159
|
-
default: string;
|
|
160
|
-
};
|
|
161
|
-
clearable: {
|
|
162
|
-
type: BooleanConstructor;
|
|
163
|
-
default: boolean;
|
|
164
|
-
};
|
|
165
|
-
inputProps: {
|
|
166
|
-
type: ObjectConstructor;
|
|
167
|
-
default: () => {};
|
|
168
|
-
};
|
|
169
|
-
popProps: {
|
|
170
|
-
type: ObjectConstructor;
|
|
171
|
-
default: () => {};
|
|
172
|
-
};
|
|
173
|
-
clearPatternOnOpenMenu: {
|
|
174
|
-
type: BooleanConstructor;
|
|
175
|
-
default: boolean;
|
|
176
|
-
};
|
|
177
|
-
}>> & {
|
|
178
|
-
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
179
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
|
180
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
|
181
|
-
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
182
|
-
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
183
|
-
}>>;
|
|
184
|
-
uuid: string;
|
|
185
|
-
emits: (event: "clear" | "update:show" | "search" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
186
|
-
search: (content?: any) => void;
|
|
187
|
-
popoverRef: import("vue").Ref<{
|
|
188
|
-
syncPosition: import("../../../../../es/shared/types").Func<any[], any>;
|
|
189
|
-
} | undefined>;
|
|
190
|
-
_show: import("vue").Ref<boolean>;
|
|
191
|
-
show: import("vue").WritableComputedRef<boolean>;
|
|
192
|
-
inputRef: import("vue").Ref<HTMLElement | undefined>;
|
|
193
|
-
patternContent: import("vue").Ref<string>;
|
|
194
|
-
displayValueRef: import("vue").WritableComputedRef<string | undefined>;
|
|
195
|
-
openMenuAtInput: (evt: PointerEvent) => void;
|
|
196
|
-
openMenu: () => void;
|
|
197
|
-
closeMenu: () => void;
|
|
198
|
-
onClear: () => void;
|
|
199
|
-
NInput: any;
|
|
200
|
-
NPopover: any;
|
|
201
|
-
NSpin: any;
|
|
202
|
-
}, 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<{
|
|
143
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:show" | "keydown" | "search" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "clear" | "update:show" | "keydown" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
203
144
|
displayValue: {
|
|
204
145
|
type: StringConstructor;
|
|
205
146
|
};
|
|
@@ -233,6 +174,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
233
174
|
default: boolean;
|
|
234
175
|
};
|
|
235
176
|
}>> & {
|
|
177
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
236
178
|
"onUpdate:show"?: ((...args: any[]) => any) | undefined;
|
|
237
179
|
onClear?: ((...args: any[]) => any) | undefined;
|
|
238
180
|
onSearch?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,computed as a,openBlock as l,createElementBlock as o,createVNode as n,
|
|
1
|
+
import{defineComponent as e,ref as t,computed as a,openBlock as l,createElementBlock as o,createVNode as n,unref as r,mergeProps as u,isRef as i,withCtx as c,createElementVNode as s,normalizeProps as p,guardReactiveProps as v,Fragment as m,renderList as d,normalizeClass as y,toDisplayString as f,createBlock as h,createCommentVNode as _,renderSlot as K}from"vue";import{jsonParse as S}from"../../../../shared/utils/index.js";import{Checkmark as g}from"@vicons/ionicons5";import{useVModel as b,useVirtualList as k}from"@vueuse/core";import{isObject as M}from"lodash-es";import j from"./BaseSearch.js";import{NIcon as x}from"naive-ui";import C from"../../../../_virtual/plugin-vue_export-helper.js";const w={class:"recommend-search"},L=["onClick"],P=["title"],A=s("section",{class:"recommend-search__empty"},"暂无数据",-1);var O=C(e({__name:"RecommendSelect",props:{value:{type:[String,Number]},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},commonList:{type:Array,default:()=>[]},recentList:{type:Array,default:()=>[]}},emits:["update:value","search","delete","choose","clear","openMenu","closeMenu"],setup(e,{emit:C}){const O=e,R=t(!1),U=a((()=>R.value?O.editPlaceholder:O.placeholder)),$=t();function B(e){return S(e.itemObj)}const H=a((()=>O.commonList.map(B))),N=a((()=>O.recentList.map(B))),T=a((()=>O.options.filter((e=>{return H.value.every(t)&&N.value.every(t);function t(t){return t[O.valueKey]!==e[O.valueKey]}}))));function q(e){let t="";return[...E.value,$.value].find((a=>{if(M(a)&&a[O.valueKey]===e)return t=a[O.labelKey],!0})),t}const z=t(),D=b(O,"value",C),E=a((()=>[...H.value,...N.value,...T.value]));function F(e=""){C("search",e)}function G(){F(),C("openMenu")}function I(){C("closeMenu")}function J(){D.value=null,C("clear")}function Q(e){var t,a;M(e)&&(D.value=e[O.valueKey],null==(t=z.value)||t.closeMenu(),$.value=e,a=e[O.valueKey],C("choose",{value:a,option:{...$.value}}))}const{list:V,wrapperProps:W,containerProps:X}=k(E,{itemHeight:32,overscan:5});return(t,a)=>(l(),o("section",w,[n(r(j),u({ref_key:"baseSearchRef",ref:z,value:r(D),"onUpdate:value":a[0]||(a[0]=e=>i(D)?D.value=e:null),show:R.value,"onUpdate:show":a[1]||(a[1]=e=>R.value=e),"display-value":q(r(D)),placeholder:r(U),onOpenMenu:G,onCloseMenu:I,onSearch:F,onClear:J},t.$attrs),{menu:c((()=>[r(E).length?(l(),o("section",u({key:0,class:"recommend-search__optionContainer",style:{height:"256px"}},r(X)),[s("section",p(v(r(W))),[(l(!0),o(m,null,d(r(V),(t=>(l(),o("div",{onClick:e=>Q(t.data),key:t.data[e.valueKey],class:y(["recommend-search__option",{"is-active":t.data[e.valueKey]===r(D)}])},[s("div",{class:"recommend-search__optionText",title:t.data.itemObj},f(t.data[e.labelKey]),9,P),t.data[e.valueKey]===r(D)?(l(),h(r(x),{key:0,component:r(g)},null,8,["component"])):_("v-if",!0)],10,L)))),128))],16)],16)):K(t.$slots,"empty",{key:1},(()=>[A]))])),_:3},16,["value","show","display-value","placeholder"])]))}}),[["__file","RecommendSelect.vue"]]);export{O as default};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
+
import { InjectionKey, Ref } from 'vue';
|
|
1
2
|
export declare enum RecommendType {
|
|
2
3
|
COMMONLY = "COMMONLY",
|
|
3
4
|
RECENTLY = "RECENTLY"
|
|
4
5
|
}
|
|
6
|
+
export declare const InjectionRecommendSearchRootSlots: InjectionKey<Record<string, any>>;
|
|
7
|
+
export declare const InjectionRecommendSearchRef: InjectionKey<Ref>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var o=(o=>(o.COMMONLY="COMMONLY",o.RECENTLY="RECENTLY",o))(o||{});const e=Symbol("InjectionRecommendSearchRootSlots"),c=Symbol("InjectionRecommendSearchRef");export{c as InjectionRecommendSearchRef,e as InjectionRecommendSearchRootSlots,o as RecommendType};
|
|
@@ -89,15 +89,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
89
89
|
};
|
|
90
90
|
getChunkUploadConfig: {
|
|
91
91
|
type: FunctionConstructor;
|
|
92
|
-
default: () => Promise<{
|
|
93
|
-
checkFileMd5Exist: string;
|
|
94
|
-
fileChannel: string;
|
|
95
|
-
md5: string;
|
|
96
|
-
objectName: string;
|
|
97
|
-
partFileMerge: string;
|
|
98
|
-
partFileUpload: string;
|
|
99
|
-
token: string;
|
|
100
|
-
}>;
|
|
92
|
+
default: () => Promise<{}>;
|
|
101
93
|
};
|
|
102
94
|
}, {
|
|
103
95
|
ScaleViewState: {
|
|
@@ -221,15 +213,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
221
213
|
};
|
|
222
214
|
getChunkUploadConfig: {
|
|
223
215
|
type: FunctionConstructor;
|
|
224
|
-
default: () => Promise<{
|
|
225
|
-
checkFileMd5Exist: string;
|
|
226
|
-
fileChannel: string;
|
|
227
|
-
md5: string;
|
|
228
|
-
objectName: string;
|
|
229
|
-
partFileMerge: string;
|
|
230
|
-
partFileUpload: string;
|
|
231
|
-
token: string;
|
|
232
|
-
}>;
|
|
216
|
+
default: () => Promise<{}>;
|
|
233
217
|
};
|
|
234
218
|
}>> & {
|
|
235
219
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -260,7 +244,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
260
244
|
width: string;
|
|
261
245
|
height: string;
|
|
262
246
|
transform: string;
|
|
263
|
-
} |
|
|
247
|
+
} | undefined>;
|
|
264
248
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
265
249
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
266
250
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1143,15 +1127,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1143
1127
|
};
|
|
1144
1128
|
getChunkUploadConfig: {
|
|
1145
1129
|
type: FunctionConstructor;
|
|
1146
|
-
default: () => Promise<{
|
|
1147
|
-
checkFileMd5Exist: string;
|
|
1148
|
-
fileChannel: string;
|
|
1149
|
-
md5: string;
|
|
1150
|
-
objectName: string;
|
|
1151
|
-
partFileMerge: string;
|
|
1152
|
-
partFileUpload: string;
|
|
1153
|
-
token: string;
|
|
1154
|
-
}>;
|
|
1130
|
+
default: () => Promise<{}>;
|
|
1155
1131
|
};
|
|
1156
1132
|
}>> & {
|
|
1157
1133
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -88,15 +88,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
88
|
};
|
|
89
89
|
getChunkUploadConfig: {
|
|
90
90
|
type: FunctionConstructor;
|
|
91
|
-
default: () => Promise<{
|
|
92
|
-
checkFileMd5Exist: string;
|
|
93
|
-
fileChannel: string;
|
|
94
|
-
md5: string;
|
|
95
|
-
objectName: string;
|
|
96
|
-
partFileMerge: string;
|
|
97
|
-
partFileUpload: string;
|
|
98
|
-
token: string;
|
|
99
|
-
}>;
|
|
91
|
+
default: () => Promise<{}>;
|
|
100
92
|
};
|
|
101
93
|
}, {
|
|
102
94
|
ScaleViewState: {
|
|
@@ -220,15 +212,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
220
212
|
};
|
|
221
213
|
getChunkUploadConfig: {
|
|
222
214
|
type: FunctionConstructor;
|
|
223
|
-
default: () => Promise<{
|
|
224
|
-
checkFileMd5Exist: string;
|
|
225
|
-
fileChannel: string;
|
|
226
|
-
md5: string;
|
|
227
|
-
objectName: string;
|
|
228
|
-
partFileMerge: string;
|
|
229
|
-
partFileUpload: string;
|
|
230
|
-
token: string;
|
|
231
|
-
}>;
|
|
215
|
+
default: () => Promise<{}>;
|
|
232
216
|
};
|
|
233
217
|
}>> & {
|
|
234
218
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -259,7 +243,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
243
|
width: string;
|
|
260
244
|
height: string;
|
|
261
245
|
transform: string;
|
|
262
|
-
} |
|
|
246
|
+
} | undefined>;
|
|
263
247
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
264
248
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
265
249
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1142,15 +1126,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1142
1126
|
};
|
|
1143
1127
|
getChunkUploadConfig: {
|
|
1144
1128
|
type: FunctionConstructor;
|
|
1145
|
-
default: () => Promise<{
|
|
1146
|
-
checkFileMd5Exist: string;
|
|
1147
|
-
fileChannel: string;
|
|
1148
|
-
md5: string;
|
|
1149
|
-
objectName: string;
|
|
1150
|
-
partFileMerge: string;
|
|
1151
|
-
partFileUpload: string;
|
|
1152
|
-
token: string;
|
|
1153
|
-
}>;
|
|
1129
|
+
default: () => Promise<{}>;
|
|
1154
1130
|
};
|
|
1155
1131
|
}>> & {
|
|
1156
1132
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as
|
|
1
|
+
import{defineComponent as e,reactive as t,ref as a,watch as o,nextTick as i,openBlock as n,createElementBlock as l,normalizeClass as s,unref as r,createCommentVNode as u,Fragment as c,createBlock as p,mergeProps as d,createElementVNode as m,normalizeStyle as v,createVNode as f,withCtx as g,renderList as y,toDisplayString as b,createTextVNode as k,resolveDynamicComponent as S,h as C}from"vue";import h from"./hooks/use-noData.js";import{getScaleViewState as w}from"./hooks/scaleview-state.js";import{ScaleViewComputed as E}from"./hooks/scaleview-computed.js";import{ScaleViewInit as _}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as A}from"./hooks/scaleview-submit.js";import{handleQueryParams as O,isCollection as j,isEvaluation as T}from"./utils/judge-types.js";import{useEvent as L}from"./hooks/use-event.js";import D from"./components/NoData.vue.js";import P from"../../../shared/components/SvgIcon/SvgIcon.vue.js";import x from"./components/EvaluateCountdown.vue.js";import B from"./components/EvaluatePage.vue.js";import F from"./components/AnswerParse.vue.js";import I from"./components/ScaleScore.js";import{useDialog as N,useMessage as q,NForm as M,NFormItem as R,NButton as K}from"naive-ui";import V from"../../../_virtual/plugin-vue_export-helper.js";const H=["innerHTML"],U={key:0,class:"required-text"},W={key:1,class:"evalute-label"},J=["onClick"],Y={key:1,class:"footer"};var X=V(e({__name:"ScaleView",props:{guageData:{type:Object,default:()=>({})},styleSetting:{type:Object,default:()=>({})},ids:{type:Object,default:()=>({guage_id:"",db_id:void 0})},params:{default:()=>({}),type:Object},noBtn:{type:[Boolean,String,Number],default:!1},hideBtn:{type:[Boolean,String,Number],default:!1},isLock:{type:[Boolean,String,Number],default:!1},type:{type:String,default:""},openType:{type:String,default:""},scaleApiConfig:{type:Object,default:()=>({})},getSelectOptions:{type:Function,default:()=>Promise.resolve([])},getSearchOptions:{type:Function,default:()=>Promise.resolve([])},getCascadeOptions:{type:Function,default:()=>Promise.resolve([])},getLabelList:{type:Function,default:()=>Promise.resolve([])},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},uploadPictureUrl:{type:String,default:""},uploadFileUrl:{type:String,default:""},ak:{type:String,default:"KP3BZ-OAC3W-PY6RY-OJ6DV-JYKN3-H6F72"},sourceType:{type:String,default:""},getChunkUploadConfig:{type:Function,default:()=>Promise.resolve({})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:V,emit:X}){const G=e,{ScaleViewState:Q}=w(),Z=t(Q),$=N(),z=q(),ee=a(null),te=a(null),{noDataState:ae,setNoData:oe,resetNodata:ie}=h(),ne=O(),{showEvatip:le,isFormBoldOpen:se,scaleStyle:re,handlePageClass:ue,isShowItem:ce,handleShowQuestionNumber:pe,hasScore:de,isPreviewScale:me,showEvaluateEntry:ve,showEvaluateCoundownPage:fe,showSaveBtn:ge,showEvaluateLabel:ye,showAnswerParse:be,propsConfig:ke,evaluatePageProps:Se,evaluateCountdownProps:Ce,skipCover:he,scaleEdit:we}=E(G,Z,{query:ne}),{initForm:Ee}=_(G,Z,X,{query:ne}),{submitMethod:_e}=A(G,Z,X,{query:ne}),{nextLogicEvent:Ae,handleDynamicDataRelation:Oe}=L(G,Z);(()=>{let{id:e}=ne;e&&(Z.shareId=e)})();const je=e=>{try{ie(),Ee(e)}catch(e){console.log(e,"--error"),Z.spinning=!1,Z.hasFrontAddress=!1,oe(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};o((()=>G.ids),((e,t)=>{t?e.guage_id&&e.guage_id!=t.guage_id&&je(e):e.guage_id&&je(e)}),{immediate:!0}),o((()=>G.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;Z.form={},Z.formArray=[];const t=JSON.parse(JSON.stringify(e));i((()=>{Ee(t)}))}),{immediate:!0});const Te=e=>{Z.showEvaluateSettingWrap=!1,Z.showEvaluateCountdown=!!e,X("startWriteScale")},Le=()=>{console.log("----closeEvaluateCountdown"),Z.showEvaluateCountdown=!1,me.value||(Z.banSubmit=!0,_e(),$.warning({title:"温馨提示",content:"测评时间到了,结束测评!",maskClosable:!1,positiveText:"确定",onPositiveClick:()=>({})}))},De=e=>{$.warning({title:"提示",content:()=>C("div",{class:"evatip-container"},[C("span","答案解析:"),C("p",e)]),class:"c-evatip-dialog-wrap",showIcon:!1,positiveText:"确定",negativeText:"关闭",maskClosable:!1,onPositiveClick(){},onNegativeClick(){}})},Pe=(e,t,a)=>{console.log(e,"--val");let{choiceObj:o,isSetObj:i}=a||{};switch(t.type.includes("SELECT")||(Z.form[t.val_key]=e),t.type){case"SELECT":case"EVALUATE_SELECT":{let{value:a,list:o=[]}=e;Z.form[t.val_key]=a,Ae(e,t,Z.formArray),Oe(o,t,Z.formArray)}break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(Z.choiceComObj[t.val_key]=o),Ae(e,t,Z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":Ae(e,t,Z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":Z.submitForm[t.val_key]=e}},xe=(e,t)=>{console.log(t),Z.form[t.val_key]=e},Be=e=>{if(!e||!e.length)return{labelStr:"",labels:[]};const t=e||[],a=[],o=[];return t.forEach((e=>{o.push(e),a.push(e.labelName)})),Z.labelSelectedList=t,{labelStr:a.join(","),labels:o}},Fe=()=>{var e;if(!Z.formArray.find((e=>T(e.type))))return void Ie("确认要提交吗?");let{evaluateResultSetting:t}=Z.config;if(!t||!Object.keys(t).length&&!ve.value||we.value)return void Ie("确认要结束测评吗?");if("formIframe"==G.openType&&ve.value)return void X("submitNoRequest");let a="确定要提前结束测评吗?";if(fe.value&&(null==(e=ee.value)?void 0:e.getCountdownObj)){const e=ee.value.getCountdownObj(),{setAnswered:t,totalLen:o}=e;t<o?a="存在未作答的题目,确定要提前结束测评吗?":!(null==Z?void 0:Z.showEvaluateCountdown)&&(a="确认要结束测评吗?")}Ie(a)},Ie=e=>{$.warning({title:"温馨提示",content:()=>C("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Ne()},onNegativeClick(){}})},Ne=()=>{var e;null==(e=te.value)||e.validate((e=>{var t;if(e){console.log(e);let a=(null==(t=e[0])?void 0:t[0])||{},o=a.field,i=a.message,n=Z.formArray.find((e=>e.databaseTitle===o));return n&&(o=n.title),z.error(o+i),!1}_e()}))},qe=()=>{X("onCloseSetting")};return V({getScaleData:()=>({...Z}),onSubmit:Fe,cancel:qe}),(e,t)=>(n(),l("div",{class:s(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),Z.spinning||Z.hasFrontAddress?u("v-if",!0):(n(),l(c,{key:0},[r(ae).noData?(n(),p(D,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(n(),l(c,{key:1},[r(ve)&&!r(he)?(n(),p(B,d({key:0},r(Se),{onWriteGuage:Te}),null,16)):(n(),l(c,{key:1},[r(fe)?(n(),p(x,d({key:0,ref_key:"countdownDom",ref:ee},r(Ce),{onCloseEvaluateCountdown:Le}),null,16)):u("v-if",!0),m("div",{class:s(["scale-container",{"scale-container-nopadding":r(ue),"scale-container-hasfooter":r(ge)}]),style:v(r(re))},[r(de)?(n(),p(r(I),{key:0,config:Z.config,maxScore:Z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(M),{ref_key:"formRef",ref:te,model:Z.form,rules:Z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(n(!0),l(c,null,y(Z.formArray,((e,t)=>(n(),l(c,{key:(e.id||e.seq)+t},[r(ce)(e)?(n(),p(r(R),{key:0,path:e.val_key,"show-label":!r(j)(e.type),class:"c-scle-form-item"},{label:g((()=>[m("span",{class:s({"scale-label-required":r(se)(e)}),innerHTML:r(pe)(e)},null,10,H),r(se)(e)?(n(),l("span",U,"(必填)")):u("v-if",!0),r(ye)(e)?(n(),l("span",W,b(r(ye)(e)),1)):u("v-if",!0),r(le)(e)?(n(),l("span",{key:2,class:"evalute-tip",onClick:t=>(async e=>{var t;if(Z.evatipMap[e.id])return void De(Z.evatipMap[e.id]);let a="getSubjectAnswer";const o=(null==(t=G.scaleApiConfig)?void 0:t[a])||null;if(!o||"function"!=typeof o)return void z.error(`${a} Is not a function`);let i=await o(e.id);i&&(Z.evatipMap[e.id]||(Z.evatipMap[e.id]=i,De(i)))})(e)},[f(r(P),{"icon-class":"a-xitongtubiaotishi"}),k(" 查看提示 ")],8,J)):u("v-if",!0)])),default:g((()=>[(n(),p(S(e.renderCom),d(r(ke)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Pe,onOnChange:t=>((e,t)=>{Z.form[t.val_key]=Be(e)})(t,e),onVodFileList:xe}),null,16,["onOnChange"])),r(be)(e)?(n(),p(F,{key:0,item:e},null,8,["item"])):u("v-if",!0)])),_:2},1032,["path","show-label"])):u("v-if",!0)],64)))),128))])),_:1},8,["model","rules"])],6),r(ge)?(n(),l("div",Y,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==G.sourceType?(n(),p(r(K),{key:0,onClick:qe},{default:g((()=>[k("取消")])),_:1})):u("v-if",!0),G.isLock?u("v-if",!0):(n(),p(r(K),{key:1,onClick:Fe,disabled:Z.banSubmit,type:"primary"},{default:g((()=>[k("保存")])),_:1},8,["disabled"]))])):u("v-if",!0)],64))],64))],64))],2))}}),[["__file","ScaleView.vue"]]);export{X as default};
|
|
@@ -31,7 +31,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
type: BooleanConstructor;
|
|
32
32
|
default: boolean;
|
|
33
33
|
};
|
|
34
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
34
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:visible" | "onClose")[], "onClose" | "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
35
|
title: {
|
|
36
36
|
type: (StringConstructor | FunctionConstructor)[];
|
|
37
37
|
default: string;
|
|
@@ -65,14 +65,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
65
|
default: boolean;
|
|
66
66
|
};
|
|
67
67
|
}>> & {
|
|
68
|
-
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
69
68
|
"onUpdate:visible"?: ((...args: any[]) => any) | undefined;
|
|
69
|
+
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
}, {
|
|
71
71
|
closable: boolean;
|
|
72
|
+
title: string | Function;
|
|
72
73
|
visible: boolean;
|
|
73
74
|
modalWidth: string;
|
|
74
75
|
modalHeight: string;
|
|
75
|
-
title: string | Function;
|
|
76
76
|
handleOk: Function;
|
|
77
77
|
changeSize: boolean;
|
|
78
78
|
cancel: Function;
|
|
@@ -5,7 +5,7 @@ export declare const ScaleViewComputed: (props: any, state: any, config: any) =>
|
|
|
5
5
|
width: string;
|
|
6
6
|
height: string;
|
|
7
7
|
transform: string;
|
|
8
|
-
} |
|
|
8
|
+
} | undefined>;
|
|
9
9
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
10
10
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
11
11
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import a from"xe-utils";import n from"moment";import{componentMapStr as i}from"./use-component.js";const o=(o,l,r)=>{const{query:s}=r,u=(new Date).getTime(),v=e((()=>1==(null==s?void 0:s.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=o.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!a.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=n(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=n(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&v.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return
|
|
1
|
+
import{computed as e}from"vue";import{isEvaluation as t}from"../utils/judge-types.js";import a from"xe-utils";import n from"moment";import{componentMapStr as i}from"./use-component.js";const o=(o,l,r)=>{const{query:s}=r,u=(new Date).getTime(),v=e((()=>1==(null==s?void 0:s.formBoldOpen))),c=e((()=>e=>{var a;return!!t(e.type)&&(1==(null==s?void 0:s.evatip)||1==(null==(a=o.params)?void 0:a.evatip))})),d=e((()=>{var e;return(null==(e=l.config)?void 0:e.evaluateResultSetting)||{}})),m=e((()=>{const{evaluateTime:e}=d.value;return+e})),p=e((()=>{var e;return null==(e=d.value)?void 0:e.evaluateStartTime})),f=e((()=>{const e=new Date(p.value);return!!a.isValidDate(e)&&e})),g=e((()=>{if(!p.value||!m.value)return!1;if(!f.value)return!1;const e=n(p.value).add(m.value,"minutes").valueOf();return u>=e})),h=e((()=>{const e=f.value;if(!e)return!1;const t=n(e).valueOf();return u<t})),C=e((()=>e=>{const t=e.required;return o.styleSetting&&Object.keys(o.styleSetting).length&&"formBoldOpen"in o.styleSetting?t&&o.styleSetting.formBoldOpen:t&&v.value})),S=e((()=>{let e=l.fontSize;if(!e||"S"===e)return;e={L:"large",M:"medium",XS:"extrasmall"}[e];const t=e&&(null==o?void 0:o.fontSizeObj[e])||1,a=Math.floor(100/t*1e4)/1e4;return{width:`${a}%`,height:`${a}%`,transform:`scale(${t})`}})),w=e((()=>!("customList"==o.type&&!o.noBtn)&&!(!o.noBtn&&!o.hideBtn))),y=e((()=>e=>X(e))),E=e((()=>e=>{var a;const{type:n}=e||{},i=!1===(null==(a=l.config)?void 0:a.autoQuestionNumber)?e.showTitle:`${e.softcode}、${e.showTitle}`;if(!t(n))return i;return`${i} <span style="color:#2d7aff;" class="score-i">${H(e)}</span>`})),L=e((()=>{const{config:e}=l;return!(!e||!Object.keys(e).length)&&"totalScore"in e})),O=e((()=>{var e;return(null==(e=o.ids)?void 0:e.guage_id)&&o.noBtn})),b=e((()=>{const e=o.params||{};if(!("skipCover"in e))return!1;return e.skipCover&&!h.value&&!g.value})),B=e((()=>!O.value&&l.showEvaluatePage&&l.showEvaluateSettingWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),A=e((()=>!O.value&&!B.value&&l.showEvaluateCountdownWrap&&!l.isFinished&&!o.noBtn&&!o.hideBtn)),T=e((()=>{const{evaluateResultSetting:e={}}=l.config;return(Object.values(e).filter((e=>{if(e)return!0}))||[]).length})),k=e((()=>l.paramsEvaluate&&Object.keys(l.paramsEvaluate).length)),R=e((()=>{const e=window.location.search||window.location.hash;if(!e)return;const t=["evaname","evadesc","evast","evadur","evaan"].find((t=>e.includes(t)));return l.paramsEvaluate||t})),_=e((()=>{var e;return 1==s.isEdit||1==(null==(e=o.params)?void 0:e.isEdit)})),U=e((()=>1==l.isFinished&&_.value)),F=e((()=>T.value||R.value?!o.noBtn&&!o.hideBtn&&(!l.isFinished||_.value):!o.noBtn&&!o.hideBtn)),P=e((()=>T.value||R.value?!!o.hideBtn||!!o.isLock||l.isFinished&&!_.value:!!o.hideBtn||!!o.isLock)),j=e((()=>e=>({EVALUATE_RADIO_BLOCK:"单选题",EVALUATE_CHECKBOX_BLOCK:"多选题"}[e.type]))),D=e((()=>e=>{var t;if(U.value)return!1;const{evaluateAnswer:i,checkAnswerMode:o,evaluateStartTime:r,evaluateTime:s}=(null==(t=l.config)?void 0:t.evaluateResultSetting)||{},u=(null==e?void 0:e.scoreConfigs)||0,v=i&&l.isFinished&&["EVALUATE_RADIO_BLOCK","EVALUATE_CHECKBOX_BLOCK","EVALUATE_SELECT","EVALUATE_INPUT"].includes(e.type)&&u;if(!r||!s||o&&1==o)return v;if(!a.isValidDate(new Date(r)))return v;const c=n(r).add(s,"minutes").diff(n(),"seconds",!0);return v&&c<=0})),V=e((()=>"customList"===o.type?"保存":"提交")),N=e((()=>({getSelectOptions:o.getSelectOptions,getSearchOptions:o.getSearchOptions,openType:o.openType}))),x=e((()=>({getCascadeOptions:o.getCascadeOptions}))),$=e((()=>({uploadPictureUrl:o.uploadPictureUrl,uploadFileUrl:o.uploadFileUrl}))),K=e((()=>({ak:o.ak}))),I=e((()=>({source:"guage",getChunkUploadConfig:o.getChunkUploadConfig}))),M=e((()=>({selectedList:l.labelSelectedList,getLabelList:o.getLabelList,deleteLabel:o.deleteLabel,saveLabelItem:o.saveLabelItem,sourceType:o.sourceType}))),q={RSelectCom:N.value,RCascaderCom:x.value,RUploadCom:$.value,RMapCom:K.value,RVodChunkUploadCom:I.value,CSelectLabelCom:M.value},J=e((()=>(e,t)=>{var a;const n=i[e.type],o=q[n]||{},r={form:l.form,item:e,index:t,isLock:P.value,...o};return"RVodChunkUploadCom"===n&&Object.assign(r,{formData:e,limitNum:(null==(a=e.setting)?void 0:a.limitPic)||1,defFileList:l.form[e.val_key]}),"RMapCom"===n&&Object.assign(r,{locationProp:l.form[e.val_key]}),"CSelectLabelCom"===n&&(delete r.form,delete r.index),r})),X=(e,t)=>{if(e.hide)return!1;const{form:n={},formArray:i=[]}=l;let o={};if(t){let t=e.setting;if(e.setting&&a.isJSON(e.setting)&&(t=JSON.parse(e.setting)),o=a.isString(t.callbackCondition)?JSON.parse(t.callbackCondition):t.callbackCondition,!o||!o.condition||!o.condition.length)return!0}else o=a.isString(e.relationLogic)?JSON.parse(e.relationLogic):e.relationLogic;if(!o||!Object.keys(o).length)return!0;const{relation_logic_is:r,condition:s,relation_logic:u}=o;if(r){const t=s.map((e=>{const t=i.filter((t=>t.seq==e.subject_seq))[0],o=z(t);return a.isArray(n[o])?n[o].some((t=>e.value.includes(t))):e.value.includes(n[o])}));e.isShow="OR"==u?t.some((e=>e)):"AND"==u?t.every((e=>e)):t[0]}return e.isShow},z=e=>e.databaseTitle||e.title,H=e=>{const{minScore:t=0,maxScore:a=0,scoreType:n}=e.scoreConfigs||{};return`(${a}分)`},Q=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,isFinished:l.isFinished,maxScore:l.maxScore}})),W=e((()=>{var e;return{formArray:l.formArray,evaluateResultConfig:(null==(e=l.config)?void 0:e.evaluateResultConfig)||{},evaluateResultSetting:d.value,form:l.form,isFinished:l.isFinished,currentTime:l.currentTime,showEvaluateCountdown:l.showEvaluateCountdown}}));return{showEvatip:c,isFormBoldOpen:C,scaleStyle:S,handlePageClass:w,isShowItem:y,handleShowQuestionNumber:E,hasScore:L,isPreviewScale:O,showEvaluateEntry:B,showEvaluateCoundownPage:A,hasEvaluateResultSetting:T,hasparamsEvaluate:k,hasDefault:R,showSaveBtn:F,componentDisable:P,showEvaluateLabel:j,showAnswerParse:D,tipMsg:V,propsConfig:J,showEvent:X,formKey:z,evaluatePageProps:Q,evaluateCountdownProps:W,skipCover:b,scaleEdit:U}};export{o as ScaleViewComputed};
|