cnhis-design-vue 3.1.55-release.2 → 3.1.56-beta.10
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/README.md +87 -87
- package/es/components/annotation-edit/index.d.ts +18 -0
- package/es/components/annotation-edit/src/AnnotationEdit.d.ts +18 -0
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/src/type.d.ts +4 -0
- package/es/components/audio-sdk/src/audioSDK.d.ts +20 -6
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +14 -0
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
- package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +5 -2
- package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +14 -0
- package/es/components/base-search/src/index.vue.d.ts +14 -0
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/button-print/src/utils/print.d.ts +3 -0
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +26 -4
- package/es/components/classification/index.d.ts +39 -23
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +14 -0
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +20 -22
- package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +6 -20
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +62 -45
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/classification/style/index.css +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/fabric-chart/index.d.ts +4 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogram.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useElectrocardiogramChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/electrocardiogram/useMeasureInstrument.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/form-config/index.d.ts +82 -14
- package/es/components/form-config/src/FormConfig.vue.d.ts +82 -14
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +26 -4
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +41 -7
- package/es/components/form-render/index.d.ts +26 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +27 -4
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +26 -4
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +1 -0
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useComplexOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +10 -2
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +3 -1
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +77 -13
- package/es/components/info-header/src/InfoHeader.vue.d.ts +77 -13
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +5 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +5 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -5
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +26 -4
- package/es/components/recommend-search/index.d.ts +8 -8
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +8 -8
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +3 -3
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +6 -0
- package/es/components/shortcut-setter/index.d.ts +26 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +26 -4
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -3
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +15 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +15 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +15 -0
- package/es/components/table-filter/src/types/index.d.ts +3 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/hooks/selectHooks/useSelectRenders.d.ts +1 -1
- package/es/shared/hooks/selectHooks/useSelectRenders.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/package.json +2 -2
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
110
110
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
111
111
|
}>>;
|
|
112
|
-
emits: (event: "delete" | "clear" | "
|
|
112
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
113
113
|
valueRef: import("vue").Ref<string | number | null | undefined> | import("vue").WritableComputedRef<string | number | null | undefined>;
|
|
114
114
|
componentMap: {
|
|
115
115
|
input: import("vue").DefineComponent<{
|
|
@@ -178,7 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
178
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
179
179
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
180
180
|
}>>;
|
|
181
|
-
emits: (event: "delete" | "clear" | "
|
|
181
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
182
182
|
baseSearchRef: import("vue").Ref<import("../../../components/recommend-search/src/types").BaseSearchExpose | undefined>;
|
|
183
183
|
setPattern: (value?: string) => void;
|
|
184
184
|
valueRef: import("vue").Ref<string | undefined> | import("vue").WritableComputedRef<string | undefined>;
|
|
@@ -295,7 +295,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
295
|
type: BooleanConstructor;
|
|
296
296
|
default: boolean;
|
|
297
297
|
};
|
|
298
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
298
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
299
299
|
displayValue: {
|
|
300
300
|
type: StringConstructor;
|
|
301
301
|
};
|
|
@@ -344,7 +344,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
344
344
|
popProps: Record<string, any>;
|
|
345
345
|
clearPatternOnOpenMenu: boolean;
|
|
346
346
|
}>;
|
|
347
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
347
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
348
348
|
value: {
|
|
349
349
|
type: StringConstructor;
|
|
350
350
|
};
|
|
@@ -462,7 +462,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
462
462
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
463
463
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
464
464
|
}>>;
|
|
465
|
-
emits: (event: "delete" | "clear" | "
|
|
465
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
466
466
|
showRef: import("vue").Ref<boolean>;
|
|
467
467
|
displayPlaceholder: import("vue").ComputedRef<string>;
|
|
468
468
|
currentOption: import("vue").Ref<AnyObject | undefined>;
|
|
@@ -527,7 +527,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
527
527
|
type: BooleanConstructor;
|
|
528
528
|
default: boolean;
|
|
529
529
|
};
|
|
530
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
530
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
531
531
|
displayValue: {
|
|
532
532
|
type: StringConstructor;
|
|
533
533
|
};
|
|
@@ -577,7 +577,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
577
577
|
clearPatternOnOpenMenu: boolean;
|
|
578
578
|
}>;
|
|
579
579
|
NIcon: any;
|
|
580
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
580
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
581
581
|
value: {
|
|
582
582
|
type: PropType<string | number | null>;
|
|
583
583
|
};
|
|
@@ -631,7 +631,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
631
631
|
inputRef: import("vue").Ref<any>;
|
|
632
632
|
exposeMethods: Record<any, any>;
|
|
633
633
|
instance: import("vue").ComponentInternalInstance | null;
|
|
634
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
634
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
635
635
|
mode: {
|
|
636
636
|
type: PropType<"select" | "input">;
|
|
637
637
|
default: string;
|
|
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
type: BooleanConstructor;
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
35
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
36
|
displayValue: {
|
|
37
37
|
type: StringConstructor;
|
|
38
38
|
};
|
|
@@ -68,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
68
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
69
69
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
}>>;
|
|
71
|
-
emits: (event: "delete" | "clear" | "
|
|
71
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
72
72
|
baseSearchRef: import("vue").Ref<BaseSearchExpose | undefined>;
|
|
73
73
|
setPattern: (value?: string) => void;
|
|
74
74
|
valueRef: import("vue").Ref<string | undefined> | import("vue").WritableComputedRef<string | undefined>;
|
|
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
185
185
|
type: BooleanConstructor;
|
|
186
186
|
default: boolean;
|
|
187
187
|
};
|
|
188
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
188
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
189
189
|
displayValue: {
|
|
190
190
|
type: StringConstructor;
|
|
191
191
|
};
|
|
@@ -234,7 +234,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
234
|
popProps: Record<string, any>;
|
|
235
235
|
clearPatternOnOpenMenu: boolean;
|
|
236
236
|
}>;
|
|
237
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
237
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
238
238
|
value: {
|
|
239
239
|
type: StringConstructor;
|
|
240
240
|
};
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
75
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
76
76
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
77
77
|
}>>;
|
|
78
|
-
emits: (event: "delete" | "clear" | "
|
|
78
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
79
79
|
showRef: import("vue").Ref<boolean>;
|
|
80
80
|
displayPlaceholder: import("vue").ComputedRef<string>;
|
|
81
81
|
currentOption: import("vue").Ref<AnyObject | undefined>;
|
|
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
140
|
type: BooleanConstructor;
|
|
141
141
|
default: boolean;
|
|
142
142
|
};
|
|
143
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
143
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
144
144
|
displayValue: {
|
|
145
145
|
type: StringConstructor;
|
|
146
146
|
};
|
|
@@ -190,7 +190,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
190
190
|
clearPatternOnOpenMenu: boolean;
|
|
191
191
|
}>;
|
|
192
192
|
NIcon: any;
|
|
193
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
193
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
194
194
|
value: {
|
|
195
195
|
type: PropType<string | number | null>;
|
|
196
196
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),X.spinning||X.hasFrontAddress?m("v-if",!0):(s(),i(c,{key:0},[r($).noData?(s(),u(L,{key:0,noDataImg:r($).noDataImg,noDataTip:r($).noDataTip},null,8,["noDataImg","noDataTip"])):(s(),i(c,{key:1},[r(ue)?(s(),u(R,d({key:0},r(he),{onWriteGuage:r(Re)}),null,16,["onWriteGuage"])):(s(),i(c,{key:1},[r(de)?(s(),u(N,d({key:0,ref_key:"countdownDom",ref:Y},r(ke),{onCloseEvaluateCountdown:r(Te)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ie),"scale-container-hasfooter":r(pe)}]),style:v(r(se))},[r(me)?(s(),u(r(A),{key:0,config:X.config,maxScore:X.maxScore},null,8,["config","maxScore"])):m("v-if",!0),r(Se)?(s(),u(M,{key:1,content:r(Ce)},null,8,["content"])):m("v-if",!0),f(r(O),{ref_key:"formRef",ref:Z,model:X.form,rules:X.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(s(!0),i(c,null,h(X.formArray,((e,o)=>(s(),i(c,{key:(e.id||e.seq)+o},[r(le)(e)?(s(),u(r(I),{key:0,path:e.val_key,"show-label":!r(P)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(ne)(e)}),innerHTML:r(re)(e)},null,10,V),r(ne)(e)?(s(),i("span",G,"(必填)")):m("v-if",!0),r(ve)(e)?(s(),i("span",W,k(r(ve)(e)),1)):m("v-if",!0),r(ae)(e)?(s(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Ae)(e)},[H,y(" 查看提示 ")],8,B)):m("v-if",!0)])),default:g((()=>[(s(),u(w(e.renderCom),d(r(ge)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(Fe),onOnChange:o=>r(Le)(o,e),onVodFileList:r(Ne)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(fe)(e)?(s(),u(T,{key:0,item:e},null,8,["item"])):m("v-if",!0)])),_:2},1032,["path","show-label"])):m("v-if",!0)],64)))),128))])),_:1},8,["model","rules"]),r(be)?(s(),u(M,{key:2,content:r(Ce)},null,8,["content"])):m("v-if",!0)],6),r(pe)?(s(),i("div",Q,[m(" 分享的链接 隐藏取消按钮 "),"guage"!==K.sourceType?(s(),u(r(J),{key:0,onClick:Ie},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),K.isLock?m("v-if",!0):(s(),u(r(J),{key:1,onClick:r(Oe),disabled:X.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"]))])):m("v-if",!0)],64))],64))],64))],2))}});export{z as default};
|
|
1
|
+
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="加载中"></n-spin>\r\n </template> '),X.spinning||X.hasFrontAddress?m("v-if",!0):(s(),i(c,{key:0},[r($).noData?(s(),u(L,{key:0,noDataImg:r($).noDataImg,noDataTip:r($).noDataTip},null,8,["noDataImg","noDataTip"])):(s(),i(c,{key:1},[r(ue)?(s(),u(R,d({key:0},r(he),{onWriteGuage:r(Re)}),null,16,["onWriteGuage"])):(s(),i(c,{key:1},[r(de)?(s(),u(N,d({key:0,ref_key:"countdownDom",ref:Y},r(ke),{onCloseEvaluateCountdown:r(Te)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ie),"scale-container-hasfooter":r(pe)}]),style:v(r(se))},[r(me)?(s(),u(r(A),{key:0,config:X.config,maxScore:X.maxScore},null,8,["config","maxScore"])):m("v-if",!0),r(Se)?(s(),u(M,{key:1,content:r(Ce)},null,8,["content"])):m("v-if",!0),f(r(O),{ref_key:"formRef",ref:Z,model:X.form,rules:X.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(s(!0),i(c,null,h(X.formArray,((e,o)=>(s(),i(c,{key:(e.id||e.seq)+o},[r(le)(e)?(s(),u(r(I),{key:0,path:e.val_key,"show-label":!r(P)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(ne)(e)}),innerHTML:r(re)(e)},null,10,V),r(ne)(e)?(s(),i("span",G,"(必填)")):m("v-if",!0),r(ve)(e)?(s(),i("span",W,k(r(ve)(e)),1)):m("v-if",!0),r(ae)(e)?(s(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Ae)(e)},[H,y(" 查看提示 ")],8,B)):m("v-if",!0)])),default:g((()=>[(s(),u(w(e.renderCom),d(r(ge)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(Fe),onOnChange:o=>r(Le)(o,e),onVodFileList:r(Ne)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(fe)(e)?(s(),u(T,{key:0,item:e},null,8,["item"])):m("v-if",!0)])),_:2},1032,["path","show-label"])):m("v-if",!0)],64)))),128))])),_:1},8,["model","rules"]),r(be)?(s(),u(M,{key:2,content:r(Ce)},null,8,["content"])):m("v-if",!0)],6),r(pe)?(s(),i("div",Q,[m(" 分享的链接 隐藏取消按钮 "),"guage"!==K.sourceType?(s(),u(r(J),{key:0,onClick:Ie},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),K.isLock?m("v-if",!0):(s(),u(r(J),{key:1,onClick:r(Oe),disabled:X.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"]))])):m("v-if",!0)],64))],64))],64))],2))}});export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as
|
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as r,createCommentVNode as d,withDirectives as o,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let r=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(r.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;r=r.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}r.push(e)}else{const t=r.findIndex((t=>t.labelId==e.labelId));-1!=t&&r.splice(t,1)}_.labelSelectedEdit=[...r],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[r(W)?(n(),s("div",A,O)):d("v-if",!0),o(c("div",K,[c("div",j,[d(" 表单内嵌打开标签组件的样式 "),d(' <div v-if="explicit" class="explicit-continer">\r\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\r\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\r\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\r\n\t\t\t\t\t\t\t\t<span slot="tab">\r\n\t\t\t\t\t\t\t\t\t{{ i }}\r\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\r\n\t\t\t\t\t\t\t\t</span>\r\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\r\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\r\n\t\t\t\t\t\t\t\t\t\t<labelClassify\r\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\r\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\r\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\r\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\r\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\r\n\t\t\t\t\t\t\t\t\t\t/>\r\n\t\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t\t</div>\r\n\t\t\t\t\t\t\t</n-tab-pane>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</n-tabs>\r\n\t\t\t\t</div> '),d("\r\n\t\t\t\t\t普通标签样式\r\n\t\t\t\t\tv-else\r\n\t\t\t\t\texplicit\r\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(r(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(r(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),d(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:r(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!r(W)]])],512))}});export{B as default};
|
|
@@ -95,6 +95,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
};
|
|
96
96
|
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
97
97
|
actionType: "check" | "uncheck";
|
|
98
|
+
/**
|
|
99
|
+
* 取消勾选树节点
|
|
100
|
+
* baseKeys:基准值
|
|
101
|
+
* currentTree:当前树节点
|
|
102
|
+
* value:树节点的key值
|
|
103
|
+
*/
|
|
98
104
|
value: string | number;
|
|
99
105
|
}) => void>>;
|
|
100
106
|
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
@@ -1879,7 +1879,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1879
1879
|
default: () => {};
|
|
1880
1880
|
};
|
|
1881
1881
|
annotation: {
|
|
1882
|
-
type: import("vue").PropType<import("
|
|
1882
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
1883
|
+
};
|
|
1884
|
+
annotationShortcuts: {
|
|
1885
|
+
type: import("vue").PropType<(string | {
|
|
1886
|
+
label: string;
|
|
1887
|
+
value: string;
|
|
1888
|
+
})[] | undefined>;
|
|
1883
1889
|
};
|
|
1884
1890
|
consumer: {
|
|
1885
1891
|
type: BooleanConstructor;
|
|
@@ -2035,7 +2041,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2035
2041
|
default: () => {};
|
|
2036
2042
|
};
|
|
2037
2043
|
annotation: {
|
|
2038
|
-
type: import("vue").PropType<import("
|
|
2044
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
2045
|
+
};
|
|
2046
|
+
annotationShortcuts: {
|
|
2047
|
+
type: import("vue").PropType<(string | {
|
|
2048
|
+
label: string;
|
|
2049
|
+
value: string;
|
|
2050
|
+
})[] | undefined>;
|
|
2039
2051
|
};
|
|
2040
2052
|
consumer: {
|
|
2041
2053
|
type: BooleanConstructor;
|
|
@@ -2229,7 +2241,11 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2229
2241
|
}>;
|
|
2230
2242
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
2231
2243
|
scope: import("../../shared/types").AnyObject;
|
|
2232
|
-
annotation: import("
|
|
2244
|
+
annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
|
|
2245
|
+
annotationShortcuts: (string | {
|
|
2246
|
+
label: string;
|
|
2247
|
+
value: string;
|
|
2248
|
+
})[] | undefined;
|
|
2233
2249
|
consumer: boolean;
|
|
2234
2250
|
uuid: string;
|
|
2235
2251
|
lifeCycle: Partial<{
|
|
@@ -2527,7 +2543,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2527
2543
|
default: () => {};
|
|
2528
2544
|
};
|
|
2529
2545
|
annotation: {
|
|
2530
|
-
type: import("vue").PropType<import("
|
|
2546
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
2547
|
+
};
|
|
2548
|
+
annotationShortcuts: {
|
|
2549
|
+
type: import("vue").PropType<(string | {
|
|
2550
|
+
label: string;
|
|
2551
|
+
value: string;
|
|
2552
|
+
})[] | undefined>;
|
|
2531
2553
|
};
|
|
2532
2554
|
consumer: {
|
|
2533
2555
|
type: BooleanConstructor;
|
|
@@ -1882,7 +1882,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1882
1882
|
default: () => {};
|
|
1883
1883
|
};
|
|
1884
1884
|
annotation: {
|
|
1885
|
-
type: import("vue").PropType<import("
|
|
1885
|
+
type: import("vue").PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
1886
|
+
};
|
|
1887
|
+
annotationShortcuts: {
|
|
1888
|
+
type: import("vue").PropType<(string | {
|
|
1889
|
+
label: string;
|
|
1890
|
+
value: string;
|
|
1891
|
+
})[] | undefined>;
|
|
1886
1892
|
};
|
|
1887
1893
|
consumer: {
|
|
1888
1894
|
type: BooleanConstructor;
|
|
@@ -2038,7 +2044,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2038
2044
|
default: () => {};
|
|
2039
2045
|
};
|
|
2040
2046
|
annotation: {
|
|
2041
|
-
type: import("vue").PropType<import("
|
|
2047
|
+
type: import("vue").PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
2048
|
+
};
|
|
2049
|
+
annotationShortcuts: {
|
|
2050
|
+
type: import("vue").PropType<(string | {
|
|
2051
|
+
label: string;
|
|
2052
|
+
value: string;
|
|
2053
|
+
})[] | undefined>;
|
|
2042
2054
|
};
|
|
2043
2055
|
consumer: {
|
|
2044
2056
|
type: BooleanConstructor;
|
|
@@ -2232,7 +2244,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2232
2244
|
}>;
|
|
2233
2245
|
components: Record<string, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
2234
2246
|
scope: import("../../../shared/types").AnyObject;
|
|
2235
|
-
annotation: import("
|
|
2247
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
2248
|
+
annotationShortcuts: (string | {
|
|
2249
|
+
label: string;
|
|
2250
|
+
value: string;
|
|
2251
|
+
})[] | undefined;
|
|
2236
2252
|
consumer: boolean;
|
|
2237
2253
|
uuid: string;
|
|
2238
2254
|
lifeCycle: Partial<{
|
|
@@ -2530,7 +2546,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2530
2546
|
default: () => {};
|
|
2531
2547
|
};
|
|
2532
2548
|
annotation: {
|
|
2533
|
-
type: import("vue").PropType<import("
|
|
2549
|
+
type: import("vue").PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
2550
|
+
};
|
|
2551
|
+
annotationShortcuts: {
|
|
2552
|
+
type: import("vue").PropType<(string | {
|
|
2553
|
+
label: string;
|
|
2554
|
+
value: string;
|
|
2555
|
+
})[] | undefined>;
|
|
2534
2556
|
};
|
|
2535
2557
|
consumer: {
|
|
2536
2558
|
type: BooleanConstructor;
|
|
@@ -111,9 +111,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
111
|
readonly type: PropType<(string | number)[] | null>;
|
|
112
112
|
readonly default: null;
|
|
113
113
|
};
|
|
114
|
-
/**
|
|
115
|
-
* 拖拽完成
|
|
116
|
-
*/
|
|
117
114
|
readonly disabled: {
|
|
118
115
|
readonly type: PropType<boolean | undefined>;
|
|
119
116
|
readonly default: undefined;
|
|
@@ -461,6 +461,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
461
461
|
type: BooleanConstructor;
|
|
462
462
|
default: boolean;
|
|
463
463
|
};
|
|
464
|
+
loading: {
|
|
465
|
+
type: BooleanConstructor;
|
|
466
|
+
default: boolean;
|
|
467
|
+
};
|
|
464
468
|
}, {
|
|
465
469
|
selectMinWidth: number;
|
|
466
470
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -492,6 +496,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
492
496
|
type: BooleanConstructor;
|
|
493
497
|
default: boolean;
|
|
494
498
|
};
|
|
499
|
+
loading: {
|
|
500
|
+
type: BooleanConstructor;
|
|
501
|
+
default: boolean;
|
|
502
|
+
};
|
|
495
503
|
}>> & {
|
|
496
504
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
497
505
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -500,6 +508,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
500
508
|
dragEndWidth: import("vue").Ref<number>;
|
|
501
509
|
showKeys: import("vue").ComputedRef<any>;
|
|
502
510
|
titleList: import("vue").ComputedRef<string[]>;
|
|
511
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
503
512
|
handleSelect: (option: any) => void;
|
|
504
513
|
searchByPage: (onePage: number) => void;
|
|
505
514
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -575,10 +584,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
575
584
|
type: BooleanConstructor;
|
|
576
585
|
default: boolean;
|
|
577
586
|
};
|
|
587
|
+
loading: {
|
|
588
|
+
type: BooleanConstructor;
|
|
589
|
+
default: boolean;
|
|
590
|
+
};
|
|
578
591
|
}>> & {
|
|
579
592
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
580
593
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
581
594
|
}, {
|
|
595
|
+
loading: boolean;
|
|
582
596
|
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
583
597
|
fieldTitleList: import("../../../..").AnyObject[];
|
|
584
598
|
optionList: import("../../../..").AnyObject[];
|
package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts
CHANGED
|
@@ -84,6 +84,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
type: BooleanConstructor;
|
|
85
85
|
default: boolean;
|
|
86
86
|
};
|
|
87
|
+
loading: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
87
91
|
}, {
|
|
88
92
|
selectMinWidth: number;
|
|
89
93
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -115,6 +119,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
115
119
|
type: BooleanConstructor;
|
|
116
120
|
default: boolean;
|
|
117
121
|
};
|
|
122
|
+
loading: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
118
126
|
}>> & {
|
|
119
127
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
120
128
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -123,6 +131,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
131
|
dragEndWidth: import("vue").Ref<number>;
|
|
124
132
|
showKeys: import("vue").ComputedRef<any>;
|
|
125
133
|
titleList: import("vue").ComputedRef<string[]>;
|
|
134
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
126
135
|
handleSelect: (option: any) => void;
|
|
127
136
|
searchByPage: (onePage: number) => void;
|
|
128
137
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -198,10 +207,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
198
207
|
type: BooleanConstructor;
|
|
199
208
|
default: boolean;
|
|
200
209
|
};
|
|
210
|
+
loading: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
201
214
|
}>> & {
|
|
202
215
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
203
216
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
204
217
|
}, {
|
|
218
|
+
loading: boolean;
|
|
205
219
|
dynamicOptionInfo: import("../../../../..").AnyObject;
|
|
206
220
|
fieldTitleList: import("../../../../..").AnyObject[];
|
|
207
221
|
optionList: import("../../../../..").AnyObject[];
|
|
@@ -418,6 +418,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
418
418
|
type: BooleanConstructor;
|
|
419
419
|
default: boolean;
|
|
420
420
|
};
|
|
421
|
+
loading: {
|
|
422
|
+
type: BooleanConstructor;
|
|
423
|
+
default: boolean;
|
|
424
|
+
};
|
|
421
425
|
}, {
|
|
422
426
|
selectMinWidth: number;
|
|
423
427
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -449,6 +453,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
449
453
|
type: BooleanConstructor;
|
|
450
454
|
default: boolean;
|
|
451
455
|
};
|
|
456
|
+
loading: {
|
|
457
|
+
type: BooleanConstructor;
|
|
458
|
+
default: boolean;
|
|
459
|
+
};
|
|
452
460
|
}>> & {
|
|
453
461
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
454
462
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -457,6 +465,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
457
465
|
dragEndWidth: import("vue").Ref<number>;
|
|
458
466
|
showKeys: import("vue").ComputedRef<any>;
|
|
459
467
|
titleList: import("vue").ComputedRef<string[]>;
|
|
468
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
460
469
|
handleSelect: (option: any) => void;
|
|
461
470
|
searchByPage: (onePage: number) => void;
|
|
462
471
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -532,10 +541,15 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
532
541
|
type: BooleanConstructor;
|
|
533
542
|
default: boolean;
|
|
534
543
|
};
|
|
544
|
+
loading: {
|
|
545
|
+
type: BooleanConstructor;
|
|
546
|
+
default: boolean;
|
|
547
|
+
};
|
|
535
548
|
}>> & {
|
|
536
549
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
537
550
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
538
551
|
}, {
|
|
552
|
+
loading: boolean;
|
|
539
553
|
dynamicOptionInfo: import("../../../../..").AnyObject;
|
|
540
554
|
fieldTitleList: import("../../../../..").AnyObject[];
|
|
541
555
|
optionList: import("../../../../..").AnyObject[];
|
|
@@ -585,6 +585,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
585
585
|
type: BooleanConstructor;
|
|
586
586
|
default: boolean;
|
|
587
587
|
};
|
|
588
|
+
loading: {
|
|
589
|
+
type: BooleanConstructor;
|
|
590
|
+
default: boolean;
|
|
591
|
+
};
|
|
588
592
|
}, {
|
|
589
593
|
selectMinWidth: number;
|
|
590
594
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -616,6 +620,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
616
620
|
type: BooleanConstructor;
|
|
617
621
|
default: boolean;
|
|
618
622
|
};
|
|
623
|
+
loading: {
|
|
624
|
+
type: BooleanConstructor;
|
|
625
|
+
default: boolean;
|
|
626
|
+
};
|
|
619
627
|
}>> & {
|
|
620
628
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
621
629
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -624,6 +632,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
624
632
|
dragEndWidth: import("vue").Ref<number>;
|
|
625
633
|
showKeys: import("vue").ComputedRef<any>;
|
|
626
634
|
titleList: import("vue").ComputedRef<string[]>;
|
|
635
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
627
636
|
handleSelect: (option: any) => void;
|
|
628
637
|
searchByPage: (onePage: number) => void;
|
|
629
638
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -699,10 +708,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
699
708
|
type: BooleanConstructor;
|
|
700
709
|
default: boolean;
|
|
701
710
|
};
|
|
711
|
+
loading: {
|
|
712
|
+
type: BooleanConstructor;
|
|
713
|
+
default: boolean;
|
|
714
|
+
};
|
|
702
715
|
}>> & {
|
|
703
716
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
704
717
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
705
718
|
}, {
|
|
719
|
+
loading: boolean;
|
|
706
720
|
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
707
721
|
fieldTitleList: import("../../../..").AnyObject[];
|
|
708
722
|
optionList: import("../../../..").AnyObject[];
|
package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
[x: string]: unknown;
|
|
27
27
|
};
|
|
28
28
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
29
|
+
selectDynamicRef: any;
|
|
29
30
|
isLoading: import("vue").Ref<boolean>;
|
|
30
31
|
filterApiConfig: import("../../../../..").AnyObject;
|
|
31
32
|
searchFilterList: import("vue").Ref<import("../../../../..").AnyObject[]>;
|
|
@@ -91,6 +92,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
92
|
type: BooleanConstructor;
|
|
92
93
|
default: boolean;
|
|
93
94
|
};
|
|
95
|
+
loading: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
94
99
|
}, {
|
|
95
100
|
selectMinWidth: number;
|
|
96
101
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -122,6 +127,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
127
|
type: BooleanConstructor;
|
|
123
128
|
default: boolean;
|
|
124
129
|
};
|
|
130
|
+
loading: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
125
134
|
}>> & {
|
|
126
135
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
127
136
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -130,6 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
139
|
dragEndWidth: import("vue").Ref<number>;
|
|
131
140
|
showKeys: import("vue").ComputedRef<any>;
|
|
132
141
|
titleList: import("vue").ComputedRef<string[]>;
|
|
142
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
133
143
|
handleSelect: (option: any) => void;
|
|
134
144
|
searchByPage: (onePage: number) => void;
|
|
135
145
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -205,10 +215,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
205
215
|
type: BooleanConstructor;
|
|
206
216
|
default: boolean;
|
|
207
217
|
};
|
|
218
|
+
loading: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
208
222
|
}>> & {
|
|
209
223
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
210
224
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
211
225
|
}, {
|
|
226
|
+
loading: boolean;
|
|
212
227
|
dynamicOptionInfo: import("../../../../..").AnyObject;
|
|
213
228
|
fieldTitleList: import("../../../../..").AnyObject[];
|
|
214
229
|
optionList: import("../../../../..").AnyObject[];
|