cnhis-design-vue 3.1.42-beta.33 → 3.1.42-beta.35
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/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/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/src/index.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/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 +4 -4
- package/es/components/form-config/src/FormConfig.vue.d.ts +4 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +2 -2
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +2 -2
- 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/FormRenderWrapper.vue.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.d.ts +2 -2
- package/es/components/form-render/src/components/renderer/select.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/varialbleHeightPlugin/index.js +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/recommend-search/index.d.ts +7 -5
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +7 -5
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue.d.ts +3 -1
- package/es/components/recommend-search/src/components/RecommendMenu.vue.js +1 -1
- package/es/components/scale-view/index.d.ts +28 -4
- package/es/components/scale-view/src/ScaleView.vue.d.ts +28 -4
- 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 +0 -73
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +2 -2
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -2
- package/es/components/table-filter/src/types/index.d.ts +0 -9
- package/es/components/vod-chunk-upload/index.d.ts +0 -73
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +0 -73
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.js +1 -1
- package/es/env.d.ts +24 -24
- 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/components/fabric-chart/src/utils/index.d.ts +0 -6823
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/tapable/index.d.ts +0 -139
|
@@ -2466,11 +2466,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2466
2466
|
onBlur: (...args: any[]) => Promise<void>;
|
|
2467
2467
|
onInput: (...args: any[]) => Promise<void>;
|
|
2468
2468
|
reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
|
|
2469
|
+
title: string;
|
|
2470
|
+
editable: boolean;
|
|
2469
2471
|
visible: boolean;
|
|
2470
2472
|
submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
|
|
2471
2473
|
validator: import("../../../../../../es/components/form-render").FieldValidator;
|
|
2472
2474
|
pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
|
|
2473
|
-
title: string;
|
|
2474
2475
|
form: import("../../../../../../es/components/form-render").Form<any>;
|
|
2475
2476
|
content: any;
|
|
2476
2477
|
componentProps: Record<string, any>;
|
|
@@ -2478,7 +2479,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2478
2479
|
display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
|
|
2479
2480
|
description: string;
|
|
2480
2481
|
readOnly: boolean;
|
|
2481
|
-
editable: boolean;
|
|
2482
2482
|
hidden: boolean;
|
|
2483
2483
|
component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
|
|
2484
2484
|
decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
|
|
@@ -477,11 +477,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
477
477
|
onBlur: (...args: any[]) => Promise<void>;
|
|
478
478
|
onInput: (...args: any[]) => Promise<void>;
|
|
479
479
|
reset: (options?: import("../../../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
|
|
480
|
+
title: string;
|
|
481
|
+
editable: boolean;
|
|
480
482
|
visible: boolean;
|
|
481
483
|
submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
|
|
482
484
|
validator: import("../../../../../../es/components/form-render").FieldValidator;
|
|
483
485
|
pattern: import("../../../../../../es/components/form-render").FieldPatternTypes;
|
|
484
|
-
title: string;
|
|
485
486
|
form: import("../../../../../../es/components/form-render").Form<any>;
|
|
486
487
|
content: any;
|
|
487
488
|
componentProps: Record<string, any>;
|
|
@@ -489,7 +490,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
489
490
|
display: import("../../../../../../es/components/form-render").FieldDisplayTypes;
|
|
490
491
|
description: string;
|
|
491
492
|
readOnly: boolean;
|
|
492
|
-
editable: boolean;
|
|
493
493
|
hidden: boolean;
|
|
494
494
|
component: import("../../../../../../es/components/form-render").FieldComponent<any, any>;
|
|
495
495
|
decorator: import("../../../../../../es/components/form-render").FieldDecorator<any, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
2
|
declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
3
|
mode: {
|
|
4
|
-
type: import("vue").PropType<"
|
|
4
|
+
type: import("vue").PropType<"select" | "input">;
|
|
5
5
|
default: string;
|
|
6
6
|
};
|
|
7
7
|
value: {
|
|
@@ -51,7 +51,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
51
51
|
}, {
|
|
52
52
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
53
53
|
mode: {
|
|
54
|
-
type: import("vue").PropType<"
|
|
54
|
+
type: import("vue").PropType<"select" | "input">;
|
|
55
55
|
default: string;
|
|
56
56
|
};
|
|
57
57
|
value: {
|
|
@@ -227,7 +227,9 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
227
227
|
clickTag: (type: import("./src/constant").RecommendType, value: import("./src/types").RecommendItem) => void;
|
|
228
228
|
clickCommonTag: (value: import("./src/types").RecommendItem) => void;
|
|
229
229
|
clickRecentTag: (value: import("./src/types").RecommendItem) => void;
|
|
230
|
-
deleteTag: () => void;
|
|
230
|
+
deleteTag: (type: import("./src/constant").RecommendType) => void;
|
|
231
|
+
deleteCommonTag: () => void;
|
|
232
|
+
deleteRecentTag: () => void;
|
|
231
233
|
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<{}>>, {}>;
|
|
232
234
|
NTag: any;
|
|
233
235
|
NIcon: any;
|
|
@@ -631,7 +633,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
631
633
|
instance: import("vue").ComponentInternalInstance | null;
|
|
632
634
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "update:value" | "search" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
633
635
|
mode: {
|
|
634
|
-
type: import("vue").PropType<"
|
|
636
|
+
type: import("vue").PropType<"select" | "input">;
|
|
635
637
|
default: string;
|
|
636
638
|
};
|
|
637
639
|
value: {
|
|
@@ -688,7 +690,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
688
690
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
689
691
|
}, {
|
|
690
692
|
options: import("../../../es/shared/types").AnyObject[];
|
|
691
|
-
mode: "
|
|
693
|
+
mode: "select" | "input";
|
|
692
694
|
valueKey: string;
|
|
693
695
|
clearable: boolean;
|
|
694
696
|
editPlaceholder: string;
|
|
@@ -3,7 +3,7 @@ import { PropType } from 'vue';
|
|
|
3
3
|
import { RecommendItem } from '../../../../es/components/recommend-search/src/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
5
5
|
mode: {
|
|
6
|
-
type: PropType<"
|
|
6
|
+
type: PropType<"select" | "input">;
|
|
7
7
|
default: string;
|
|
8
8
|
};
|
|
9
9
|
value: {
|
|
@@ -53,7 +53,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
53
53
|
}, {
|
|
54
54
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
55
55
|
mode: {
|
|
56
|
-
type: PropType<"
|
|
56
|
+
type: PropType<"select" | "input">;
|
|
57
57
|
default: string;
|
|
58
58
|
};
|
|
59
59
|
value: {
|
|
@@ -229,7 +229,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
229
229
|
clickTag: (type: import("../../../../es/components/recommend-search/src/constant").RecommendType, value: RecommendItem) => void;
|
|
230
230
|
clickCommonTag: (value: RecommendItem) => void;
|
|
231
231
|
clickRecentTag: (value: RecommendItem) => void;
|
|
232
|
-
deleteTag: () => void;
|
|
232
|
+
deleteTag: (type: import("../../../../es/components/recommend-search/src/constant").RecommendType) => void;
|
|
233
|
+
deleteCommonTag: () => void;
|
|
234
|
+
deleteRecentTag: () => void;
|
|
233
235
|
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<{}>>, {}>;
|
|
234
236
|
NTag: any;
|
|
235
237
|
NIcon: any;
|
|
@@ -633,7 +635,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
633
635
|
instance: import("vue").ComponentInternalInstance | null;
|
|
634
636
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "update:value" | "search" | "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
637
|
mode: {
|
|
636
|
-
type: PropType<"
|
|
638
|
+
type: PropType<"select" | "input">;
|
|
637
639
|
default: string;
|
|
638
640
|
};
|
|
639
641
|
value: {
|
|
@@ -690,7 +692,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
690
692
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
691
693
|
}, {
|
|
692
694
|
options: AnyObject[];
|
|
693
|
-
mode: "
|
|
695
|
+
mode: "select" | "input";
|
|
694
696
|
valueKey: string;
|
|
695
697
|
clearable: boolean;
|
|
696
698
|
editPlaceholder: string;
|
|
@@ -119,7 +119,9 @@ 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: () => void;
|
|
122
|
+
deleteTag: (type: RecommendType) => void;
|
|
123
|
+
deleteCommonTag: () => void;
|
|
124
|
+
deleteRecentTag: () => void;
|
|
123
125
|
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<{}>>, {}>;
|
|
124
126
|
NTag: any;
|
|
125
127
|
NIcon: any;
|
|
@@ -25,7 +25,9 @@ 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: () => void;
|
|
28
|
+
deleteTag: (type: RecommendType) => void;
|
|
29
|
+
deleteCommonTag: () => void;
|
|
30
|
+
deleteRecentTag: () => void;
|
|
29
31
|
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<{}>>, {}>;
|
|
30
32
|
NTag: any;
|
|
31
33
|
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 f}from"naive-ui";import{RecommendType as v}from"../constant/index.js";import _ 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"},C={class:"recommend-search__menuRecommendList"};var R=_(e({__name:"RecommendMenu",props:{getDisplayValue:{type:Function,default:e=>e.itemObj},commonList:{default:()=>[]},recentList:{default:()=>[]},deletable:{type:Boolean}},emits:["delete","choose"],setup(e,{emit:_}){function R(e,n){_("choose",{type:e,value:n})}function O(e){_("delete",e)}function b(){O(v.COMMONLY)}function g(){O(v.RECENTLY)}return(_,O)=>(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(f),{size:"small",onClick:e=>{return n=o,void R(v.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,[t("header",null,[m(" 常用搜索 "),e.deletable?(n(),i(l(p),{key:0,component:l(d),onClick:g},null,8,["component"])):c("v-if",!0)]),t("div",C,[(n(!0),o(s,null,r(e.commonList,(o=>(n(),i(l(f),{size:"small",onClick:e=>{return n=o,void R(v.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{R as default};
|
|
@@ -89,7 +89,15 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
89
89
|
};
|
|
90
90
|
getChunkUploadConfig: {
|
|
91
91
|
type: FunctionConstructor;
|
|
92
|
-
default: () => Promise<{
|
|
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
|
+
}>;
|
|
93
101
|
};
|
|
94
102
|
}, {
|
|
95
103
|
ScaleViewState: {
|
|
@@ -213,7 +221,15 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
213
221
|
};
|
|
214
222
|
getChunkUploadConfig: {
|
|
215
223
|
type: FunctionConstructor;
|
|
216
|
-
default: () => Promise<{
|
|
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
|
+
}>;
|
|
217
233
|
};
|
|
218
234
|
}>> & {
|
|
219
235
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -244,7 +260,7 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
244
260
|
width: string;
|
|
245
261
|
height: string;
|
|
246
262
|
transform: string;
|
|
247
|
-
} |
|
|
263
|
+
} | null>;
|
|
248
264
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
249
265
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
250
266
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1127,7 +1143,15 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1127
1143
|
};
|
|
1128
1144
|
getChunkUploadConfig: {
|
|
1129
1145
|
type: FunctionConstructor;
|
|
1130
|
-
default: () => Promise<{
|
|
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
|
+
}>;
|
|
1131
1155
|
};
|
|
1132
1156
|
}>> & {
|
|
1133
1157
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -88,7 +88,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
88
|
};
|
|
89
89
|
getChunkUploadConfig: {
|
|
90
90
|
type: FunctionConstructor;
|
|
91
|
-
default: () => Promise<{
|
|
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
|
+
}>;
|
|
92
100
|
};
|
|
93
101
|
}, {
|
|
94
102
|
ScaleViewState: {
|
|
@@ -212,7 +220,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
212
220
|
};
|
|
213
221
|
getChunkUploadConfig: {
|
|
214
222
|
type: FunctionConstructor;
|
|
215
|
-
default: () => Promise<{
|
|
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
|
+
}>;
|
|
216
232
|
};
|
|
217
233
|
}>> & {
|
|
218
234
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
@@ -243,7 +259,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
243
259
|
width: string;
|
|
244
260
|
height: string;
|
|
245
261
|
transform: string;
|
|
246
|
-
} |
|
|
262
|
+
} | null>;
|
|
247
263
|
handlePageClass: import("vue").ComputedRef<boolean>;
|
|
248
264
|
isShowItem: import("vue").ComputedRef<(item: any) => any>;
|
|
249
265
|
handleShowQuestionNumber: import("vue").ComputedRef<(item: any) => any>;
|
|
@@ -1126,7 +1142,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1126
1142
|
};
|
|
1127
1143
|
getChunkUploadConfig: {
|
|
1128
1144
|
type: FunctionConstructor;
|
|
1129
|
-
default: () => Promise<{
|
|
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
|
+
}>;
|
|
1130
1154
|
};
|
|
1131
1155
|
}>> & {
|
|
1132
1156
|
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 l,createElementBlock as n,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 h,resolveDynamicComponent as k,h as C}from"vue";import S 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 j}from"./hooks/scaleview-submit.js";import{handleQueryParams as A,isCollection as O,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 F from"./components/EvaluateCountdown.vue.js";import x from"./components/EvaluatePage.vue.js";import N from"./components/AnswerParse.vue.js";import B from"./components/ScaleScore.js";import{useDialog as I,useMessage as M,NForm as q,NFormItem as R,NButton as K}from"naive-ui";import U from"../../../_virtual/plugin-vue_export-helper.js";const V=["innerHTML"],H={key:0,class:"required-text"},W={key:1,class:"evalute-label"},J=["onClick"],Y={key:1,class:"footer"};var X=U(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({checkFileMd5Exist:"http://192.168.1.223:12060/storage/checkFileMd5Exist",fileChannel:"null",md5:"9ed34823e7ef4754819704135b29c9ab",objectName:"0/0/20220602",partFileMerge:"http://192.168.1.223:12060/storage/partFileMerge",partFileUpload:"http://192.168.1.223:12060/storage/partFileUpload",token:"4d0eb8f174994d33adb71766d1ef8ce4"})}},emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:U,emit:X}){const G=e,{ScaleViewState:Q}=w(),Z=t(Q),$=I(),z=M(),ee=a(null),te=a(null),{noDataState:ae,setNoData:oe,resetNodata:ie}=S(),le=A(),{showEvatip:ne,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:he,evaluatePageProps:ke,evaluateCountdownProps:Ce,skipCover:Se,scaleEdit:we}=E(G,Z,{query:le}),{initForm:Ee}=_(G,Z,X,{query:le}),{submitMethod:_e}=j(G,Z,X,{query:le}),{nextLogicEvent:je,handleDynamicDataRelation:Ae}=L(G,Z);(()=>{let{id:e}=le;e&&(Z.shareId=e)})();const Oe=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&&Oe(e):e.guage_id&&Oe(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:l=[]}=e;Z.form[t.val_key]=a,je(e,t,Z.formArray),Ae(l,t,Z.formArray);break;case"RADIO_BLOCK":case"CHECKBOX_BLOCK":i&&(Z.choiceComObj[t.val_key]=o),je(e,t,Z.formArray);break;case"EVALUATE_RADIO_BLOCK":case"EVALUATE_CHECKBOX_BLOCK":je(e,t,Z.formArray);break;case"DATE":case"TIME":case"DATETIME":case"SEARCH_CASCADE":Z.submitForm[t.val_key]=e}},Fe=(e,t)=>{console.log(t),Z.form[t.val_key]=e},xe=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}},Ne=()=>{var e;if(!Z.formArray.find((e=>T(e.type))))return void Be("确认要提交吗?");let{evaluateResultSetting:t}=Z.config;if(!t||!Object.keys(t).length&&!ve.value||we.value)return void Be("确认要结束测评吗?");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="确认要结束测评吗?")}Be(a)},Be=e=>{$.warning({title:"温馨提示",content:()=>C("div",{style:{paddingLeft:"30px"}},e),positiveText:"确定",negativeText:"取消",maskClosable:!1,closable:!1,positiveButtonProps:{type:"primary"},onPositiveClick:()=>{Ie()},onNegativeClick(){}})},Ie=()=>{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,l=Z.formArray.find((e=>e.databaseTitle===o));return l&&(o=l.title),z.error(o+i),!1}_e()}))},Me=()=>{X("onCloseSetting")};return U({getScaleData:()=>({...Z}),onSubmit:Ne,cancel:Me}),(e,t)=>(l(),n("div",{class:s(["c-scale",{"c-scale-nobtn":r(ge)}])},[u(' <template v-if="state.spinning">\r\n <n-spin :show="state.spinning" description="加载中"></n-spin>\r\n </template> '),Z.spinning||Z.hasFrontAddress?u("v-if",!0):(l(),n(c,{key:0},[r(ae).noData?(l(),p(D,{key:0,noDataImg:r(ae).noDataImg,noDataTip:r(ae).noDataTip},null,8,["noDataImg","noDataTip"])):(l(),n(c,{key:1},[r(ve)&&!r(Se)?(l(),p(x,d({key:0},r(ke),{onWriteGuage:Te}),null,16)):(l(),n(c,{key:1},[r(fe)?(l(),p(F,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)?(l(),p(r(B),{key:0,config:Z.config,maxScore:Z.maxScore},null,8,["config","maxScore"])):u("v-if",!0),f(r(q),{ref_key:"formRef",ref:te,model:Z.form,rules:Z.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(l(!0),n(c,null,y(Z.formArray,((e,t)=>(l(),n(c,{key:(e.id||e.seq)+t},[r(ce)(e)?(l(),p(r(R),{key:0,path:e.val_key,"show-label":!r(O)(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,V),r(se)(e)?(l(),n("span",H,"(必填)")):u("v-if",!0),r(ye)(e)?(l(),n("span",W,b(r(ye)(e)),1)):u("v-if",!0),r(ne)(e)?(l(),n("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"}),h(" 查看提示 ")],8,J)):u("v-if",!0)])),default:g((()=>[(l(),p(k(e.renderCom),d(r(he)(e,t),{key:(e.id||e.seq)+t,onScaleChange:Pe,onOnChange:t=>((e,t)=>{Z.form[t.val_key]=xe(e)})(t,e),onVodFileList:Fe}),null,16,["onOnChange"])),r(be)(e)?(l(),p(N,{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)?(l(),n("div",Y,[u(" 分享的链接 隐藏取消按钮 "),"guage"!==G.sourceType?(l(),p(r(K),{key:0,onClick:Me},{default:g((()=>[h("取消")])),_:1})):u("v-if",!0),G.isLock?u("v-if",!0):(l(),p(r(K),{key:1,onClick:Ne,disabled:Z.banSubmit,type:"primary"},{default:g((()=>[h("保存")])),_: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
|
+
} | null>;
|
|
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;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};
|
|
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 null;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};
|
|
@@ -1315,79 +1315,6 @@ export declare const componentMap: {
|
|
|
1315
1315
|
RemoveCircleSharp: 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<{}>>, {}>;
|
|
1316
1316
|
videoImg: string;
|
|
1317
1317
|
success: string;
|
|
1318
|
-
Draggable: import("vue").DefineComponent<{
|
|
1319
|
-
list: {
|
|
1320
|
-
type: ArrayConstructor;
|
|
1321
|
-
required: boolean;
|
|
1322
|
-
default: any;
|
|
1323
|
-
};
|
|
1324
|
-
modelValue: {
|
|
1325
|
-
type: ArrayConstructor;
|
|
1326
|
-
required: boolean;
|
|
1327
|
-
default: any;
|
|
1328
|
-
};
|
|
1329
|
-
itemKey: {
|
|
1330
|
-
type: (StringConstructor | FunctionConstructor)[];
|
|
1331
|
-
required: boolean;
|
|
1332
|
-
};
|
|
1333
|
-
clone: {
|
|
1334
|
-
type: FunctionConstructor;
|
|
1335
|
-
default: (original: any) => any;
|
|
1336
|
-
};
|
|
1337
|
-
tag: {
|
|
1338
|
-
type: StringConstructor;
|
|
1339
|
-
default: string;
|
|
1340
|
-
};
|
|
1341
|
-
move: {
|
|
1342
|
-
type: FunctionConstructor;
|
|
1343
|
-
default: any;
|
|
1344
|
-
};
|
|
1345
|
-
componentData: {
|
|
1346
|
-
type: ObjectConstructor;
|
|
1347
|
-
required: boolean;
|
|
1348
|
-
default: any;
|
|
1349
|
-
};
|
|
1350
|
-
}, unknown, {
|
|
1351
|
-
error: boolean;
|
|
1352
|
-
}, {
|
|
1353
|
-
realList(): any;
|
|
1354
|
-
getKey(): any;
|
|
1355
|
-
}, {
|
|
1356
|
-
getUnderlyingVm(domElement: any): any;
|
|
1357
|
-
getUnderlyingPotencialDraggableComponent(htmElement: any): any;
|
|
1358
|
-
emitChanges(evt: any): void;
|
|
1359
|
-
alterList(onList: any): void;
|
|
1360
|
-
spliceList(): void;
|
|
1361
|
-
updatePosition(oldIndex: any, newIndex: any): void;
|
|
1362
|
-
getRelatedContextFromMoveEvent({ to, related }: {
|
|
1363
|
-
to: any;
|
|
1364
|
-
related: any;
|
|
1365
|
-
}): any;
|
|
1366
|
-
getVmIndexFromDomIndex(domIndex: any): any;
|
|
1367
|
-
onDragStart(evt: any): void;
|
|
1368
|
-
onDragAdd(evt: any): void;
|
|
1369
|
-
onDragRemove(evt: any): void;
|
|
1370
|
-
onDragUpdate(evt: any): void;
|
|
1371
|
-
computeFutureIndex(relatedContext: any, evt: any): any;
|
|
1372
|
-
onDragMove(evt: any, originalEvent: any): any;
|
|
1373
|
-
onDragEnd(): void;
|
|
1374
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any[], any, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
1375
|
-
move: Function;
|
|
1376
|
-
tag: string;
|
|
1377
|
-
clone: Function;
|
|
1378
|
-
list: unknown[];
|
|
1379
|
-
modelValue: unknown[];
|
|
1380
|
-
componentData: Record<string, any>;
|
|
1381
|
-
} & {
|
|
1382
|
-
itemKey?: string | Function | undefined;
|
|
1383
|
-
}>, {
|
|
1384
|
-
move: Function;
|
|
1385
|
-
tag: string;
|
|
1386
|
-
clone: Function;
|
|
1387
|
-
list: unknown[];
|
|
1388
|
-
modelValue: unknown[];
|
|
1389
|
-
componentData: Record<string, any>;
|
|
1390
|
-
}>;
|
|
1391
1318
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "vodFileList"[], "vodFileList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1392
1319
|
formData: {
|
|
1393
1320
|
type: ObjectConstructor;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as
|
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as r,unref as s,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"../../../_virtual/plugin-vue_export-helper.js";import A from"xe-utils";const O={key:0,class:"label-disable-wrap"},K=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],j={style:{height:"100%"}},k={class:"label-wrap"},T=["id"],_={class:"edit-label-type"};var B=x(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:x,emit:B}){const D=t,F=L(),V=e(null),P=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!P.inited)return!1;let t=P.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(...P.labelSelectedEdit,...D.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(P.labelSelectedEdit=$.value,"object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=P.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 D.saveLabelItem(a,t);i&&(F.success("添加成功!"),B("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,r=l.multipleChoice;let s=(null==(i=P.labelSelectedEdit)?void 0:i.length)&&A.clone(P.labelSelectedEdit,!0)||[];if(t){if(s.some((t=>t.labelId==e.labelId)))return;if(2==r){const{typeId:t,labelId:l}=e;s=s.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}s.push(e)}else{const t=s.findIndex((t=>t.labelId==e.labelId));-1!=t&&s.splice(t,1)}P.labelSelectedEdit=[...s],N.value++,D.explicit&&B("explicitOnChange",[...P.labelSelectedEdit])},X=async t=>{const{status:e}=await D.deleteLabel(t,D.item);if(e){F.success("删除成功!");for(const e in P.labelConfig){const l=P.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&P.labelConfig[e].itemList.splice(l,1)}const e=P.labelSelectedEdit||[],l=D.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),B("change",[...l],D.item)}B("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=V.value.querySelector("a[href='"+l+"']"),e&&e.click(),P.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);P.cacheAnchorKey=e},et=()=>{var t;return null==(t=V.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>D.labelOptions),(t=>{t&&(()=>{var t;if(D.isLock)return;const e=JSON.parse(JSON.stringify(D.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}P.labelConfig=e,C((()=>{let t;R(),D.explicit&&P.inited&&(t=P.labelAnchorKey),z(P.labelConfig,t),P.inited=!0}))})()}),{immediate:!0,deep:!0}),x({resetShowAdd:()=>{let{labelObj:t}=P.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([...P.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof P.labelConfig){Object.keys(P.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=P.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(P.labelSelectedEdit)){const e=P.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&P.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),r("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:V},[s(W)?(n(),r("div",O,K)):d("v-if",!0),o(c("div",j,[c("div",k,[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(s(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),r(f,null,h(P.labelConfig,((t,e)=>(n(),y(s(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),r(f,null,h(P.labelConfig,((e,l)=>(n(),r("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",_,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,T),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:s(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,!s(W)]])],512))}}),[["__file","LabelFormContent.vue"]]);export{B as default};
|
|
@@ -2147,11 +2147,12 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2147
2147
|
onBlur: (...args: any[]) => Promise<void>;
|
|
2148
2148
|
onInput: (...args: any[]) => Promise<void>;
|
|
2149
2149
|
reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
|
|
2150
|
+
title: string;
|
|
2151
|
+
editable: boolean;
|
|
2150
2152
|
visible: boolean;
|
|
2151
2153
|
submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
|
|
2152
2154
|
validator: import("@formily/core").FieldValidator;
|
|
2153
2155
|
pattern: import("@formily/core").FieldPatternTypes;
|
|
2154
|
-
title: string;
|
|
2155
2156
|
form: import("@formily/core").Form<any>;
|
|
2156
2157
|
content: any;
|
|
2157
2158
|
componentProps: Record<string, any>;
|
|
@@ -2159,7 +2160,6 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2159
2160
|
display: import("@formily/core").FieldDisplayTypes;
|
|
2160
2161
|
description: string;
|
|
2161
2162
|
readOnly: boolean;
|
|
2162
|
-
editable: boolean;
|
|
2163
2163
|
hidden: boolean;
|
|
2164
2164
|
component: import("@formily/core").FieldComponent<any, any>;
|
|
2165
2165
|
decorator: import("@formily/core").FieldDecorator<any, any>;
|
|
@@ -2149,11 +2149,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2149
2149
|
onBlur: (...args: any[]) => Promise<void>;
|
|
2150
2150
|
onInput: (...args: any[]) => Promise<void>;
|
|
2151
2151
|
reset: (options?: import("../../../../es/components/form-render").IFieldResetOptions | undefined) => Promise<void>;
|
|
2152
|
+
title: string;
|
|
2153
|
+
editable: boolean;
|
|
2152
2154
|
visible: boolean;
|
|
2153
2155
|
submit: <T>(onSubmit?: ((values: any) => void | Promise<T>) | undefined) => Promise<T>;
|
|
2154
2156
|
validator: import("../../../../es/components/form-render").FieldValidator;
|
|
2155
2157
|
pattern: import("../../../../es/components/form-render").FieldPatternTypes;
|
|
2156
|
-
title: string;
|
|
2157
2158
|
form: import("../../../../es/components/form-render").Form<any>;
|
|
2158
2159
|
content: any;
|
|
2159
2160
|
componentProps: Record<string, any>;
|
|
@@ -2161,7 +2162,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2161
2162
|
display: import("../../../../es/components/form-render").FieldDisplayTypes;
|
|
2162
2163
|
description: string;
|
|
2163
2164
|
readOnly: boolean;
|
|
2164
|
-
editable: boolean;
|
|
2165
2165
|
hidden: boolean;
|
|
2166
2166
|
component: import("../../../../es/components/form-render").FieldComponent<any, any>;
|
|
2167
2167
|
decorator: import("../../../../es/components/form-render").FieldDecorator<any, any>;
|
|
@@ -132,15 +132,6 @@ export declare type IClassifyListType = {
|
|
|
132
132
|
createdByName?: string;
|
|
133
133
|
from?: string;
|
|
134
134
|
};
|
|
135
|
-
export declare type IClassifyItemType = {
|
|
136
|
-
name: string;
|
|
137
|
-
[key: string]: any;
|
|
138
|
-
};
|
|
139
|
-
export declare type IClassifyOutSaveType = {
|
|
140
|
-
id: string;
|
|
141
|
-
tableId: string;
|
|
142
|
-
[key: string]: string;
|
|
143
|
-
};
|
|
144
135
|
export declare type ISearchConfigType = {
|
|
145
136
|
con: string;
|
|
146
137
|
field_key: string;
|