cnhis-design-vue 3.1.42-release.2 → 3.1.42-release.3
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/base-search/index.d.ts +2 -2
- package/es/components/base-search/src/index.vue.d.ts +2 -2
- package/es/components/bpmn-workflow/index.d.ts +12 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +12 -0
- package/es/components/bpmn-workflow/src/BpmnWorkflow.vue.js +1 -1
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/button-print/src/ButtonPrint.vue2.js +1 -1
- package/es/components/date-picker/index.d.ts +4 -0
- package/es/components/date-picker/src/DatePicker.vue.d.ts +4 -0
- package/es/components/date-picker/src/DatePicker.vue.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcess.d.ts +1 -0
- package/es/components/fabric-chart/src/hooks/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/useScaleColumn.d.ts +16 -0
- package/es/components/fabric-chart/src/hooks/useScaleColumn.js +1 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +6823 -0
- package/es/components/form-config/index.d.ts +6 -1
- package/es/components/form-config/src/FormConfig.vue.d.ts +6 -1
- package/es/components/form-config/src/FormConfig.vue.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +1 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +3 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +12 -1
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useConfigurationField.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +1 -0
- package/es/components/form-render/index.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +1 -0
- package/es/components/form-render/src/FormRender.vue.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +1 -0
- package/es/components/form-render/src/components/renderer/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/iho-table/index.d.ts +4 -1522
- package/es/components/iho-table/src/IhoTable.vue.d.ts +4 -1522
- package/es/components/iho-table/src/IhoTable.vue.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/index.d.ts +4 -4
- package/es/components/iho-table/src/hooks/tapHooks/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.d.ts +22 -21
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/highLightSetPlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/highLightSetPlugin.js +1 -0
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.d.ts +1 -0
- package/es/components/iho-table/src/plugins/maxCheckSizePlugin.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +4 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/defaultRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +2 -1
- package/es/components/iho-table/src/types/pluginType.d.ts +6 -3
- package/es/components/iho-table/src/utils/index.d.ts +2 -0
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +2 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +2 -0
- package/es/components/info-header/src/components/infoDescription/HiddenContent.vue.js +1 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +1 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +1 -0
- package/es/components/scale-view/index.d.ts +25 -66
- package/es/components/scale-view/src/ScaleView.vue.d.ts +25 -66
- package/es/components/scale-view/src/ScaleView.vue.js +1 -1
- package/es/components/scale-view/style/index.css +1 -1
- package/es/components/select-label/src/LabelFormContent.vue.js +1 -1
- package/es/components/shortcut-setter/index.d.ts +1 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +1 -0
- package/es/components/table-filter/src/types/index.d.ts +2 -2
- package/es/env.d.ts +24 -24
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/hooks/useDateTime.d.ts +2 -2
- package/es/shared/hooks/useDateTime.js +1 -1
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/scale-view/src/hooks/scaleview-props.d.ts +0 -115
- package/es/components/scale-view/src/hooks/scaleview-props.js +0 -1
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { SFCWithInstall } from '../../../es/shared/types';
|
|
2
2
|
declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
guageData: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
styleSetting: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
3
11
|
ids: {
|
|
4
12
|
type: ObjectConstructor;
|
|
5
13
|
default: () => {
|
|
@@ -11,10 +19,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
11
19
|
default: () => {};
|
|
12
20
|
type: ObjectConstructor;
|
|
13
21
|
};
|
|
14
|
-
guageData: {
|
|
15
|
-
type: ObjectConstructor;
|
|
16
|
-
default: () => {};
|
|
17
|
-
};
|
|
18
22
|
noBtn: {
|
|
19
23
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
20
24
|
default: boolean;
|
|
@@ -23,10 +27,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
23
27
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
24
28
|
default: boolean;
|
|
25
29
|
};
|
|
26
|
-
source: {
|
|
27
|
-
type: StringConstructor;
|
|
28
|
-
default: string;
|
|
29
|
-
};
|
|
30
30
|
isLock: {
|
|
31
31
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
32
32
|
default: boolean;
|
|
@@ -35,19 +35,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
35
35
|
type: StringConstructor;
|
|
36
36
|
default: string;
|
|
37
37
|
};
|
|
38
|
-
styleSetting: {
|
|
39
|
-
type: ObjectConstructor;
|
|
40
|
-
default: () => {};
|
|
41
|
-
};
|
|
42
|
-
fontSizeObj: {
|
|
43
|
-
type: ObjectConstructor;
|
|
44
|
-
default: () => {
|
|
45
|
-
large: number;
|
|
46
|
-
medium: number;
|
|
47
|
-
small: number;
|
|
48
|
-
extrasmall: number;
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
38
|
openType: {
|
|
52
39
|
type: StringConstructor;
|
|
53
40
|
default: string;
|
|
@@ -145,6 +132,14 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
145
132
|
evatipMap: {};
|
|
146
133
|
};
|
|
147
134
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
135
|
+
guageData: {
|
|
136
|
+
type: ObjectConstructor;
|
|
137
|
+
default: () => {};
|
|
138
|
+
};
|
|
139
|
+
styleSetting: {
|
|
140
|
+
type: ObjectConstructor;
|
|
141
|
+
default: () => {};
|
|
142
|
+
};
|
|
148
143
|
ids: {
|
|
149
144
|
type: ObjectConstructor;
|
|
150
145
|
default: () => {
|
|
@@ -156,10 +151,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
156
151
|
default: () => {};
|
|
157
152
|
type: ObjectConstructor;
|
|
158
153
|
};
|
|
159
|
-
guageData: {
|
|
160
|
-
type: ObjectConstructor;
|
|
161
|
-
default: () => {};
|
|
162
|
-
};
|
|
163
154
|
noBtn: {
|
|
164
155
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
165
156
|
default: boolean;
|
|
@@ -168,10 +159,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
168
159
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
169
160
|
default: boolean;
|
|
170
161
|
};
|
|
171
|
-
source: {
|
|
172
|
-
type: StringConstructor;
|
|
173
|
-
default: string;
|
|
174
|
-
};
|
|
175
162
|
isLock: {
|
|
176
163
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
177
164
|
default: boolean;
|
|
@@ -180,19 +167,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
180
167
|
type: StringConstructor;
|
|
181
168
|
default: string;
|
|
182
169
|
};
|
|
183
|
-
styleSetting: {
|
|
184
|
-
type: ObjectConstructor;
|
|
185
|
-
default: () => {};
|
|
186
|
-
};
|
|
187
|
-
fontSizeObj: {
|
|
188
|
-
type: ObjectConstructor;
|
|
189
|
-
default: () => {
|
|
190
|
-
large: number;
|
|
191
|
-
medium: number;
|
|
192
|
-
small: number;
|
|
193
|
-
extrasmall: number;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
170
|
openType: {
|
|
197
171
|
type: StringConstructor;
|
|
198
172
|
default: string;
|
|
@@ -1080,6 +1054,14 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1080
1054
|
readonly ignorePathChange: boolean;
|
|
1081
1055
|
}>;
|
|
1082
1056
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale")[], "onSubmit" | "onCloseSetting" | "submitNoRequest" | "startWriteScale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1057
|
+
guageData: {
|
|
1058
|
+
type: ObjectConstructor;
|
|
1059
|
+
default: () => {};
|
|
1060
|
+
};
|
|
1061
|
+
styleSetting: {
|
|
1062
|
+
type: ObjectConstructor;
|
|
1063
|
+
default: () => {};
|
|
1064
|
+
};
|
|
1083
1065
|
ids: {
|
|
1084
1066
|
type: ObjectConstructor;
|
|
1085
1067
|
default: () => {
|
|
@@ -1091,10 +1073,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1091
1073
|
default: () => {};
|
|
1092
1074
|
type: ObjectConstructor;
|
|
1093
1075
|
};
|
|
1094
|
-
guageData: {
|
|
1095
|
-
type: ObjectConstructor;
|
|
1096
|
-
default: () => {};
|
|
1097
|
-
};
|
|
1098
1076
|
noBtn: {
|
|
1099
1077
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1100
1078
|
default: boolean;
|
|
@@ -1103,10 +1081,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1103
1081
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1104
1082
|
default: boolean;
|
|
1105
1083
|
};
|
|
1106
|
-
source: {
|
|
1107
|
-
type: StringConstructor;
|
|
1108
|
-
default: string;
|
|
1109
|
-
};
|
|
1110
1084
|
isLock: {
|
|
1111
1085
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1112
1086
|
default: boolean;
|
|
@@ -1115,19 +1089,6 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1115
1089
|
type: StringConstructor;
|
|
1116
1090
|
default: string;
|
|
1117
1091
|
};
|
|
1118
|
-
styleSetting: {
|
|
1119
|
-
type: ObjectConstructor;
|
|
1120
|
-
default: () => {};
|
|
1121
|
-
};
|
|
1122
|
-
fontSizeObj: {
|
|
1123
|
-
type: ObjectConstructor;
|
|
1124
|
-
default: () => {
|
|
1125
|
-
large: number;
|
|
1126
|
-
medium: number;
|
|
1127
|
-
small: number;
|
|
1128
|
-
extrasmall: number;
|
|
1129
|
-
};
|
|
1130
|
-
};
|
|
1131
1092
|
openType: {
|
|
1132
1093
|
type: StringConstructor;
|
|
1133
1094
|
default: string;
|
|
@@ -1206,12 +1167,10 @@ declare const CScaleView: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1206
1167
|
getLabelList: Function;
|
|
1207
1168
|
deleteLabel: Function;
|
|
1208
1169
|
saveLabelItem: Function;
|
|
1209
|
-
ids: Record<string, any>;
|
|
1210
1170
|
guageData: Record<string, any>;
|
|
1171
|
+
ids: Record<string, any>;
|
|
1211
1172
|
noBtn: string | number | boolean;
|
|
1212
1173
|
hideBtn: string | number | boolean;
|
|
1213
|
-
source: string;
|
|
1214
|
-
fontSizeObj: Record<string, any>;
|
|
1215
1174
|
openType: string;
|
|
1216
1175
|
scaleApiConfig: Record<string, any>;
|
|
1217
1176
|
getSelectOptions: Function;
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
guageData: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
styleSetting: {
|
|
7
|
+
type: ObjectConstructor;
|
|
8
|
+
default: () => {};
|
|
9
|
+
};
|
|
2
10
|
ids: {
|
|
3
11
|
type: ObjectConstructor;
|
|
4
12
|
default: () => {
|
|
@@ -10,10 +18,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
18
|
default: () => {};
|
|
11
19
|
type: ObjectConstructor;
|
|
12
20
|
};
|
|
13
|
-
guageData: {
|
|
14
|
-
type: ObjectConstructor;
|
|
15
|
-
default: () => {};
|
|
16
|
-
};
|
|
17
21
|
noBtn: {
|
|
18
22
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
19
23
|
default: boolean;
|
|
@@ -22,10 +26,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
26
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
23
27
|
default: boolean;
|
|
24
28
|
};
|
|
25
|
-
source: {
|
|
26
|
-
type: StringConstructor;
|
|
27
|
-
default: string;
|
|
28
|
-
};
|
|
29
29
|
isLock: {
|
|
30
30
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
31
31
|
default: boolean;
|
|
@@ -34,19 +34,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
type: StringConstructor;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
|
-
styleSetting: {
|
|
38
|
-
type: ObjectConstructor;
|
|
39
|
-
default: () => {};
|
|
40
|
-
};
|
|
41
|
-
fontSizeObj: {
|
|
42
|
-
type: ObjectConstructor;
|
|
43
|
-
default: () => {
|
|
44
|
-
large: number;
|
|
45
|
-
medium: number;
|
|
46
|
-
small: number;
|
|
47
|
-
extrasmall: number;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
37
|
openType: {
|
|
51
38
|
type: StringConstructor;
|
|
52
39
|
default: string;
|
|
@@ -144,6 +131,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
144
131
|
evatipMap: {};
|
|
145
132
|
};
|
|
146
133
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
134
|
+
guageData: {
|
|
135
|
+
type: ObjectConstructor;
|
|
136
|
+
default: () => {};
|
|
137
|
+
};
|
|
138
|
+
styleSetting: {
|
|
139
|
+
type: ObjectConstructor;
|
|
140
|
+
default: () => {};
|
|
141
|
+
};
|
|
147
142
|
ids: {
|
|
148
143
|
type: ObjectConstructor;
|
|
149
144
|
default: () => {
|
|
@@ -155,10 +150,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
155
150
|
default: () => {};
|
|
156
151
|
type: ObjectConstructor;
|
|
157
152
|
};
|
|
158
|
-
guageData: {
|
|
159
|
-
type: ObjectConstructor;
|
|
160
|
-
default: () => {};
|
|
161
|
-
};
|
|
162
153
|
noBtn: {
|
|
163
154
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
164
155
|
default: boolean;
|
|
@@ -167,10 +158,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
167
158
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
168
159
|
default: boolean;
|
|
169
160
|
};
|
|
170
|
-
source: {
|
|
171
|
-
type: StringConstructor;
|
|
172
|
-
default: string;
|
|
173
|
-
};
|
|
174
161
|
isLock: {
|
|
175
162
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
176
163
|
default: boolean;
|
|
@@ -179,19 +166,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
179
166
|
type: StringConstructor;
|
|
180
167
|
default: string;
|
|
181
168
|
};
|
|
182
|
-
styleSetting: {
|
|
183
|
-
type: ObjectConstructor;
|
|
184
|
-
default: () => {};
|
|
185
|
-
};
|
|
186
|
-
fontSizeObj: {
|
|
187
|
-
type: ObjectConstructor;
|
|
188
|
-
default: () => {
|
|
189
|
-
large: number;
|
|
190
|
-
medium: number;
|
|
191
|
-
small: number;
|
|
192
|
-
extrasmall: number;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
169
|
openType: {
|
|
196
170
|
type: StringConstructor;
|
|
197
171
|
default: string;
|
|
@@ -1079,6 +1053,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1079
1053
|
readonly ignorePathChange: boolean;
|
|
1080
1054
|
}>;
|
|
1081
1055
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCloseSetting" | "submitNoRequest" | "onSubmit" | "startWriteScale")[], "onSubmit" | "onCloseSetting" | "submitNoRequest" | "startWriteScale", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1056
|
+
guageData: {
|
|
1057
|
+
type: ObjectConstructor;
|
|
1058
|
+
default: () => {};
|
|
1059
|
+
};
|
|
1060
|
+
styleSetting: {
|
|
1061
|
+
type: ObjectConstructor;
|
|
1062
|
+
default: () => {};
|
|
1063
|
+
};
|
|
1082
1064
|
ids: {
|
|
1083
1065
|
type: ObjectConstructor;
|
|
1084
1066
|
default: () => {
|
|
@@ -1090,10 +1072,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1090
1072
|
default: () => {};
|
|
1091
1073
|
type: ObjectConstructor;
|
|
1092
1074
|
};
|
|
1093
|
-
guageData: {
|
|
1094
|
-
type: ObjectConstructor;
|
|
1095
|
-
default: () => {};
|
|
1096
|
-
};
|
|
1097
1075
|
noBtn: {
|
|
1098
1076
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1099
1077
|
default: boolean;
|
|
@@ -1102,10 +1080,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1102
1080
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1103
1081
|
default: boolean;
|
|
1104
1082
|
};
|
|
1105
|
-
source: {
|
|
1106
|
-
type: StringConstructor;
|
|
1107
|
-
default: string;
|
|
1108
|
-
};
|
|
1109
1083
|
isLock: {
|
|
1110
1084
|
type: (BooleanConstructor | NumberConstructor | StringConstructor)[];
|
|
1111
1085
|
default: boolean;
|
|
@@ -1114,19 +1088,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1114
1088
|
type: StringConstructor;
|
|
1115
1089
|
default: string;
|
|
1116
1090
|
};
|
|
1117
|
-
styleSetting: {
|
|
1118
|
-
type: ObjectConstructor;
|
|
1119
|
-
default: () => {};
|
|
1120
|
-
};
|
|
1121
|
-
fontSizeObj: {
|
|
1122
|
-
type: ObjectConstructor;
|
|
1123
|
-
default: () => {
|
|
1124
|
-
large: number;
|
|
1125
|
-
medium: number;
|
|
1126
|
-
small: number;
|
|
1127
|
-
extrasmall: number;
|
|
1128
|
-
};
|
|
1129
|
-
};
|
|
1130
1091
|
openType: {
|
|
1131
1092
|
type: StringConstructor;
|
|
1132
1093
|
default: string;
|
|
@@ -1205,12 +1166,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1205
1166
|
getLabelList: Function;
|
|
1206
1167
|
deleteLabel: Function;
|
|
1207
1168
|
saveLabelItem: Function;
|
|
1208
|
-
ids: Record<string, any>;
|
|
1209
1169
|
guageData: Record<string, any>;
|
|
1170
|
+
ids: Record<string, any>;
|
|
1210
1171
|
noBtn: string | number | boolean;
|
|
1211
1172
|
hideBtn: string | number | boolean;
|
|
1212
|
-
source: string;
|
|
1213
|
-
fontSizeObj: Record<string, any>;
|
|
1214
1173
|
openType: string;
|
|
1215
1174
|
scaleApiConfig: Record<string, any>;
|
|
1216
1175
|
getSelectOptions: Function;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive 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">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.c-choice-wrap{display:flex;flex-wrap:wrap;width:100%}.c-choice-wrap .n-radio-input{height:14px;width:14px}.c-choice-wrap .scale-choice-img-wrap{background:#fff;border:1px solid #d5d5d5;border-radius:4px;display:inline-block;height:62px;margin-right:16px;min-width:74px;position:relative;width:74px}.c-choice-wrap .scale-choice-img-wrap:hover .scale-preview-wrap{display:flex}.c-choice-wrap .scale-choice-img-wrap>img{height:100%;object-fit:cover;width:100%}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap{align-items:center;background:rgba(0,0,0,.75);border-radius:8px;bottom:0;display:none;font-size:20px;justify-content:center;left:0;position:absolute;right:0;top:0}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap i.anticon{color:#fff;margin:0}.c-choice-wrap .presuffix-wrap{align-items:center;display:inline-flex;white-space:normal;width:100%}.c-choice-wrap .n-input{border-bottom:1px solid #d9d9d9;flex:1;max-width:300px}.c-choice-wrap .choose-other{flex:1}.c-choice-wrap .other-span{word-break:break-all}.c-choice-wrap.choice-wrap-1 label{width:100%}.c-choice-wrap.choice-wrap-1 label .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 label{width:50%}.c-choice-wrap.choice-wrap-3 label{width:33%}.c-choice-wrap.choice-wrap-4 label{width:25%}.c-choice-wrap label{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap label .n-radio__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap>.n-checkbox{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap>.n-checkbox .n-checkbox__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap.choice-wrap-1 .n-checkbox{width:100%}.c-choice-wrap.choice-wrap-1 .n-checkbox .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 .n-checkbox{width:50%}.c-choice-wrap.choice-wrap-3 .n-checkbox{width:33%}.c-choice-wrap.choice-wrap-4 .n-checkbox{width:25%}.c-scale{box-sizing:border-box;color:rgba(0,0,0,.65);height:100%;overflow:hidden;padding-bottom:50px;padding-top:4px;position:relative;text-align:left;width:100%}.c-scale.c-scale-nobtn{padding-bottom:4px}.c-scale .scale-container{box-sizing:border-box;height:100%;overflow-y:auto;padding-bottom:10px;transform-origin:0 0;width:100%}.c-scale .scale-container.scale-container-nopadding{height:100%}.c-scale .scale-container.scale-container-hasfooter{height:calc(100% - 50px)}.c-scale .scale-container::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:10px}.c-scale .scale-container::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:10px}.c-scale .scale-container::-webkit-scrollbar-thumb{background-color:#dbdcdc;border-radius:10px}.c-scale .no-data-tip{height:100%;width:100%}.c-scale .lb-title{text-align:center}.c-scale .map-container{cursor:pointer}.c-scale .linebar-div{margin-top:24px;text-align:center;width:100%}.c-scale .linebar-div .n-divider{margin-top:4px}.c-scale .my-prompt{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);padding:10px}.c-scale .img-card{width:100%}.main{box-sizing:border-box}.main .scale-label-required{font-weight:700}.main .required-text{color:#e02828;font-weight:700}.main .score-i{word-break:keep-all}.main .evalute-label{background:rgba(45,122,255,.1);border:1px solid rgba(45,122,255,.5);border-radius:4px;color:#2d7aff;display:inline-block;font-size:12px;height:20px;line-height:20px;margin-left:4px;padding:0 5px}.main .evalute-tip{background:rgba(255,194,0,.15);border-radius:2px;color:#fe9626;cursor:pointer;display:inline-block;margin-left:8px;padding:0 5px}.footer{align-items:center;background:#fff;border-top:1px solid #e8e8e8;bottom:0;box-sizing:border-box;display:flex;height:50px;left:0;position:absolute;width:100%}.footer .n-button+.n-button{margin-left:8px}.rich-text-content{word-break:break-all}.rich-text-content p{margin-bottom:0}.rich-text-content img{max-width:100%}.n-dialog.n-modal.c-evatip-dialog-wrap{max-height:unset;overflow-y:hidden;padding:0;width:494px!important}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__title{border-bottom:1px solid #e8e8e8;font-weight:600;height:52px;line-height:52px;padding-left:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-base-icon{color:#666;margin:0;position:absolute}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__content{margin:0}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container{color:#2e2e2e;font-size:16px;max-height:60vh;min-height:100px;overflow-y:auto;padding:26px 16px}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container p{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;font-size:14px;margin-bottom:0;margin-top:12px;padding:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__action{border-top:1px solid #e8e8e8;box-sizing:border-box;display:block;padding:10px 16px;text-align:right;width:100%}.c-answerParse{background:hsla(0,64%,98%,.6);border-radius:8px;color:#2e2e2e;margin-bottom:12px;margin-top:6px;padding:16px}.c-answerParse .answer-res-wrap{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.c-answerParse .answer-res-wrap .answer-res{align-items:center;background:#f06f64;border-radius:18px;color:#fff;display:inline-flex;font-weight:700;line-height:36px;padding:0 18px}.c-answerParse .answer-res-wrap .answer-res svg{font-size:16px;margin-right:8px}.c-answerParse .answer-res-wrap .answer-score{color:#2e2e2e;font-size:14px;font-weight:600}.c-answerParse .correct-answer{line-height:20px;margin-bottom:16px}.c-answerParse .correct-answer p{display:inline-block;font-weight:700}.c-answerParse .correct-answer span{color:#91c850;font-size:16px;word-break:break-all}.c-answerParse .answer-key{line-height:20px}.c-answerParse .answer-key p{font-weight:700;line-height:20px;margin-bottom:16px}.c-answerParse .answer-key span{word-break:break-all}.c-answerParse.answerParse-success{background:rgba(234,251,228,.6)}.c-answerParse.answerParse-success .answer-res{background:#91c850}.c-evaluateCountdown{background:#f2f2f4;border-radius:8px;color:#212121;min-width:166px;padding:8px 12px;position:absolute;right:0;text-align:center;top:0;z-index:1}.c-evaluateCountdown.evaluateCountdown-hasTime:hover{background:#f1f1f4;padding:8px 32px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown{font-size:26px;line-height:40px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown span{line-height:unset}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown svg{display:none}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .answered-wrap{display:block}.c-evaluateCountdown.evaluateCountdown-hasTime .answered-wrap{display:none}.c-evaluateCountdown .countdown{align-content:center;color:#000;display:flex;font-size:14px;justify-content:center}.c-evaluateCountdown .countdown span{line-height:18px}.c-evaluateCountdown .countdown svg{color:#969696;font-size:16px;margin-left:8px}.c-evaluateCountdown .countdown.countdown-red{color:#ff1818}.c-evaluateCountdown .answered-wrap span{color:#2d7aff}.c-evaluate-page{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.c-evaluate-page .evaluate-container{border:1px solid #e0e0e0;border-radius:15px;padding:45px 32px;text-align:center;width:620px}.c-evaluate-page .evaluate-container .evaluate-name{color:#212121;font-size:20px;line-height:28px;margin-bottom:10px;max-height:88px;overflow-y:auto;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-explain{background:#f2f2f4;border-radius:8px;margin-bottom:24px;overflow:hidden;padding:12px 22px 12px 30px;text-align:left}.c-evaluate-page .evaluate-container .evaluate-explain>div{max-height:206px;overflow-y:auto;padding-right:8px;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-score{display:flex;margin-bottom:24px}.c-evaluate-page .evaluate-container .evaluate-score li+li{border-left:1px solid hsla(0,0%,84%,.6)}.c-evaluate-page .evaluate-container .evaluate-score li{flex:1}.c-evaluate-page .evaluate-container .evaluate-score li div{color:#000;font-size:36px;line-height:50px}.c-evaluate-page .evaluate-container .evaluate-score li span{color:rgba(0,0,0,.6);font-size:14px;line-height:20px}.c-evaluate-page .evaluate-container .evaluate-time-range{color:#000;font-size:14px;line-height:20px;margin-bottom:20px}.c-evaluate-page .evaluate-container .evaluate-btn{border-radius:8px;color:#fff;font-size:18px;height:unset;padding:16px 0;text-align:center;width:380px}.c-totalScore-warp{background:#f2f2f4;border-radius:6px;color:#666;font-size:14px;font-weight:400;margin-bottom:16px;padding:16px}.c-totalScore-warp div+div{margin-top:4px}.c-totalScore-warp span{color:#090909;font-weight:500}.c-totalScore-warp .score-result{color:#2d7aff}.c-sign-wrap .sigan-content-wrap{display:flex;flex-wrap:wrap}.c-sign-wrap .sigan-content-wrap .sign-item{border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;height:96px;margin-right:16px;overflow:hidden;position:relative;width:200px}.c-sign-wrap .sigan-content-wrap .sign-item>img{height:100%;width:100%}.c-sign-wrap .sigan-content-wrap .sign-item:hover>div{display:flex}.c-sign-wrap .sigan-content-wrap .sign-item>div{align-items:center;background:rgba(0,0,0,.8);border-radius:4px;bottom:0;display:none;justify-content:center;left:0;position:absolute;right:0;top:0}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon{color:#fff;cursor:pointer;font-size:18px}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon+.n-icon{margin-left:20px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap{align-items:center;background:#fafafa;border:1px dashed #d5d5d5;border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;height:96px;justify-content:center;width:200px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap .svg-icon{color:#000;font-size:32px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap span,.sign-com-wrap>span{color:#585858}.sign-com-wrap .sign-canvas{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;margin-top:16px}.c-scale li,.c-scale ul{list-style:none;margin:0;padding:0}.c-scale .n-input{text-align:left;width:100%}.c-scale .n-form-item{--n-label-height:unset!important}.c-scale .c-scle-form-item>.n-form-item-blank{display:block}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.c-scale-address{max-width:500px}.c-scale-address .field-row{display:flex;overflow:hidden;width:100%}.c-scale-address .field-row .n-select{flex:1;padding:0 5px 5px 0;width:100%}.c-scale-address .field-row .n-select:last-child{padding-right:0}.c-scale-collection,.c-scale-collection .img-card{width:100%}.c-scale-collection.scale-collection-title{text-align:center}.c-scale-collection.scale-collection-title h1{font-weight:500}.c-scale-collection.prompt-message{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);color:#666;padding:10px;position:relative}.c-scale-collection.prompt-message.is-weak{color:#999}.c-scale-collection.prompt-message.is-strong{color:#ff1818;padding:8px 8px 8px 35px}.c-scale-collection.prompt-message .prompt-icon{font-size:18px;left:8px;position:absolute;top:8px}.c-scale-collection.prompt-message .prompt-message-content{font-size:14px;line-height:16px;word-break:break-all}.c-time-range{align-items:center;display:flex}.c-map-container{cursor:pointer;width:100%}.c-map-container .n-input.map-input .n-input__prefix{transform:rotate(180deg)}.c-map-container .n-input.map-input .n-input__prefix .n-icon{color:rgba(0,0,0,.65)}.c-map-container .n-input.map-input.n-input--disabled .n-input__input-el{background-color:#fff;color:rgba(0,0,0,.65);cursor:pointer}.c-scale-map-modal .n-card__content{overflow:hidden}.c-scale-upload{width:100%}.c-scale-upload .n-upload-file-list{display:flex}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type{background:rgba(0,0,0,.5);box-sizing:border-box}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type span.n-button__icon{color:#fff}.c-scale-upload .n-upload-file-list .n-upload-trigger.n-upload-trigger--image-card{background-color:#fafafa;border-color:#d5d5d5;height:184px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type{background-color:#fafafa;border-color:#d5d5d5;height:184px;padding:8px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type .n-image{height:100%}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type img{object-fit:cover!important}.c-scale-upload .upload-img-wrap{align-items:center;display:flex;flex-direction:column}.c-scale-upload .dragger-upload-text{align-items:center;display:flex}.c-scale-upload.scale-upload-file .n-upload-dragger{padding:16px 0}.c-scale-upload.scale-upload-file .n-upload{--n-item-disabled-opacity:1!important;opacity:1!important}.c-scale-upload.scale-upload-file .dragger-upload-text{color:rgba(0,0,0,.65)}.c-scale-upload.scale-upload-file .n-upload-file-list{display:flex;flex-direction:column;width:100%}.c-scale-upload.scale-upload-file .n-upload-file-list .n-upload-file{width:100%}.c-scale-upload.scale-upload-file .n-upload-trigger{background:#fafafa;border-color:#d5d5d5;width:100%}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.c-scale-modal-container.n-dialog{display:flex;flex-direction:column;height:60vh}.c-scale-modal-container.n-dialog.n-modal{min-width:560px;padding:0;width:50vw}.c-scale-modal-container.n-dialog .n-dialog__title{background:#fff;border-bottom:1px solid #e8e8e8;border-radius:8px 8px 0 0;box-sizing:border-box;height:52px;line-height:52px;padding:14px 16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content{align-items:center;color:#000;display:flex;font-size:16px;height:100%;justify-content:space-between;overflow:hidden;width:100%}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .modal-title-drag{flex:1}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap{right:16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg{cursor:pointer;font-size:14px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg+svg{margin-left:16px}.c-scale-modal-container.n-dialog .n-dialog__content{height:100%;margin:0;overflow:hidden;padding:16px}.c-scale-modal-container.n-dialog .n-dialog__action{background:transparent;border-radius:0 0 8px 8px;border-top:1px solid #e8e8e8;box-sizing:border-box;height:52px;padding:10px 16px;text-align:right}
|
|
1
|
+
.c-choice-wrap{display:flex;flex-wrap:wrap;width:100%}.c-choice-wrap .n-radio-input{height:14px;width:14px}.c-choice-wrap .scale-choice-img-wrap{background:#fff;border:1px solid #d5d5d5;border-radius:4px;display:inline-block;height:62px;margin-right:16px;min-width:74px;position:relative;width:74px}.c-choice-wrap .scale-choice-img-wrap:hover .scale-preview-wrap{display:flex}.c-choice-wrap .scale-choice-img-wrap>img{height:100%;object-fit:cover;width:100%}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap{align-items:center;background:rgba(0,0,0,.75);border-radius:8px;bottom:0;display:none;font-size:20px;justify-content:center;left:0;position:absolute;right:0;top:0}.c-choice-wrap .scale-choice-img-wrap .scale-preview-wrap i.anticon{color:#fff;margin:0}.c-choice-wrap .presuffix-wrap{align-items:center;display:inline-flex;white-space:normal;width:100%}.c-choice-wrap .n-input{border-bottom:1px solid #d9d9d9;flex:1;max-width:300px}.c-choice-wrap .choose-other{flex:1}.c-choice-wrap .other-span{word-break:break-all}.c-choice-wrap.choice-wrap-1 label{width:100%}.c-choice-wrap.choice-wrap-1 label .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 label{width:50%}.c-choice-wrap.choice-wrap-3 label{width:33%}.c-choice-wrap.choice-wrap-4 label{width:25%}.c-choice-wrap label{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap label .n-radio__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap>.n-checkbox{align-items:center;display:inline-flex;margin:4px 0}.c-choice-wrap>.n-checkbox .n-checkbox__label{align-items:center;display:inline-flex;flex:1;white-space:normal}.c-choice-wrap.choice-wrap-1 .n-checkbox{width:100%}.c-choice-wrap.choice-wrap-1 .n-checkbox .n-input{max-width:300px}.c-choice-wrap.choice-wrap-2 .n-checkbox{width:50%}.c-choice-wrap.choice-wrap-3 .n-checkbox{width:33%}.c-choice-wrap.choice-wrap-4 .n-checkbox{width:25%}.c-scale{box-sizing:border-box;color:rgba(0,0,0,.65);height:100%;overflow:hidden;padding-bottom:50px;padding-top:4px;position:relative;text-align:left;width:100%}.c-scale.c-scale-nobtn{padding-bottom:4px}.c-scale .scale-container{box-sizing:border-box;height:100%;overflow-y:auto;padding-bottom:10px;transform-origin:0 0;width:100%}.c-scale .scale-container.scale-container-nopadding{display:flex;flex-direction:column;height:100%}.c-scale .scale-container.scale-container-hasfooter{flex:1}.c-scale .scale-container::-webkit-scrollbar{background-color:#f5f5f5;height:6px;width:10px}.c-scale .scale-container::-webkit-scrollbar-track{background-color:#f2f2f2;border-radius:10px}.c-scale .scale-container::-webkit-scrollbar-thumb{background-color:#dbdcdc;border-radius:10px}.c-scale .no-data-tip{height:100%;width:100%}.c-scale .lb-title{text-align:center}.c-scale .map-container{cursor:pointer}.c-scale .linebar-div{margin-top:24px;text-align:center;width:100%}.c-scale .linebar-div .n-divider{margin-top:4px}.c-scale .my-prompt{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);padding:10px}.c-scale .img-card{width:100%}.main{box-sizing:border-box}.main .scale-label-required{font-weight:700}.main .required-text{color:#e02828;font-weight:700}.main .score-i{word-break:keep-all}.main .evalute-label{background:rgba(45,122,255,.1);border:1px solid rgba(45,122,255,.5);border-radius:4px;color:#2d7aff;display:inline-block;font-size:12px;height:20px;line-height:20px;margin-left:4px;padding:0 5px}.main .evalute-tip{background:rgba(255,194,0,.15);border-radius:2px;color:#fe9626;cursor:pointer;display:inline-block;margin-left:8px;padding:0 5px}.footer{align-items:center;background:#fff;border-top:1px solid #e8e8e8;box-sizing:border-box;display:flex;flex-basis:50px;height:50px;width:100%}.footer .n-button+.n-button{margin-left:8px}.rich-text-content{word-break:break-all}.rich-text-content p{margin-bottom:0}.rich-text-content img{max-width:100%}.n-dialog.n-modal.c-evatip-dialog-wrap{max-height:unset;overflow-y:hidden;padding:0;width:494px!important}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__title{border-bottom:1px solid #e8e8e8;font-weight:600;height:52px;line-height:52px;padding-left:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-base-icon{color:#666;margin:0;position:absolute}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__content{margin:0}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container{color:#2e2e2e;font-size:16px;max-height:60vh;min-height:100px;overflow-y:auto;padding:26px 16px}.n-dialog.n-modal.c-evatip-dialog-wrap .evatip-container p{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;font-size:14px;margin-bottom:0;margin-top:12px;padding:16px}.n-dialog.n-modal.c-evatip-dialog-wrap .n-dialog__action{border-top:1px solid #e8e8e8;box-sizing:border-box;display:block;padding:10px 16px;text-align:right;width:100%}.c-answerParse{background:hsla(0,64%,98%,.6);border-radius:8px;color:#2e2e2e;margin-bottom:12px;margin-top:6px;padding:16px}.c-answerParse .answer-res-wrap{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.c-answerParse .answer-res-wrap .answer-res{align-items:center;background:#f06f64;border-radius:18px;color:#fff;display:inline-flex;font-weight:700;line-height:36px;padding:0 18px}.c-answerParse .answer-res-wrap .answer-res svg{font-size:16px;margin-right:8px}.c-answerParse .answer-res-wrap .answer-score{color:#2e2e2e;font-size:14px;font-weight:600}.c-answerParse .correct-answer{line-height:20px;margin-bottom:16px}.c-answerParse .correct-answer p{display:inline-block;font-weight:700}.c-answerParse .correct-answer span{color:#91c850;font-size:16px;word-break:break-all}.c-answerParse .answer-key{line-height:20px}.c-answerParse .answer-key p{font-weight:700;line-height:20px;margin-bottom:16px}.c-answerParse .answer-key span{word-break:break-all}.c-answerParse.answerParse-success{background:rgba(234,251,228,.6)}.c-answerParse.answerParse-success .answer-res{background:#91c850}.c-evaluateCountdown{background:#f2f2f4;border-radius:8px;color:#212121;min-width:166px;padding:8px 12px;position:absolute;right:0;text-align:center;top:0;z-index:1}.c-evaluateCountdown.evaluateCountdown-hasTime:hover{background:#f1f1f4;padding:8px 32px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown{font-size:26px;line-height:40px}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown span{line-height:unset}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .countdown svg{display:none}.c-evaluateCountdown.evaluateCountdown-hasTime:hover .answered-wrap{display:block}.c-evaluateCountdown.evaluateCountdown-hasTime .answered-wrap{display:none}.c-evaluateCountdown .countdown{align-content:center;color:#000;display:flex;font-size:14px;justify-content:center}.c-evaluateCountdown .countdown span{line-height:18px}.c-evaluateCountdown .countdown svg{color:#969696;font-size:16px;margin-left:8px}.c-evaluateCountdown .countdown.countdown-red{color:#ff1818}.c-evaluateCountdown .answered-wrap span{color:#2d7aff}.c-evaluate-page{align-items:center;display:flex;height:100%;justify-content:center;width:100%}.c-evaluate-page .evaluate-container{border:1px solid #e0e0e0;border-radius:15px;padding:45px 32px;text-align:center;width:620px}.c-evaluate-page .evaluate-container .evaluate-name{color:#212121;font-size:20px;line-height:28px;margin-bottom:10px;max-height:88px;overflow-y:auto;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-explain{background:#f2f2f4;border-radius:8px;margin-bottom:24px;overflow:hidden;padding:12px 22px 12px 30px;text-align:left}.c-evaluate-page .evaluate-container .evaluate-explain>div{max-height:206px;overflow-y:auto;padding-right:8px;word-break:break-all}.c-evaluate-page .evaluate-container .evaluate-score{display:flex;margin-bottom:24px}.c-evaluate-page .evaluate-container .evaluate-score li+li{border-left:1px solid hsla(0,0%,84%,.6)}.c-evaluate-page .evaluate-container .evaluate-score li{flex:1}.c-evaluate-page .evaluate-container .evaluate-score li div{color:#000;font-size:36px;line-height:50px}.c-evaluate-page .evaluate-container .evaluate-score li span{color:rgba(0,0,0,.6);font-size:14px;line-height:20px}.c-evaluate-page .evaluate-container .evaluate-time-range{color:#000;font-size:14px;line-height:20px;margin-bottom:20px}.c-evaluate-page .evaluate-container .evaluate-btn{border-radius:8px;color:#fff;font-size:18px;height:unset;padding:16px 0;text-align:center;width:380px}.c-totalScore-warp{background:#f2f2f4;border-radius:6px;color:#666;font-size:14px;font-weight:400;margin-bottom:16px;padding:16px}.c-totalScore-warp div+div{margin-top:4px}.c-totalScore-warp span{color:#090909;font-weight:500}.c-totalScore-warp .score-result{color:#2d7aff}.c-sign-wrap .sigan-content-wrap{display:flex;flex-wrap:wrap}.c-sign-wrap .sigan-content-wrap .sign-item{border:1px solid #d5d5d5;border-radius:4px;box-sizing:border-box;height:96px;margin-right:16px;overflow:hidden;position:relative;width:200px}.c-sign-wrap .sigan-content-wrap .sign-item>img{height:100%;width:100%}.c-sign-wrap .sigan-content-wrap .sign-item:hover>div{display:flex}.c-sign-wrap .sigan-content-wrap .sign-item>div{align-items:center;background:rgba(0,0,0,.8);border-radius:4px;bottom:0;display:none;justify-content:center;left:0;position:absolute;right:0;top:0}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon{color:#fff;cursor:pointer;font-size:18px}.c-sign-wrap .sigan-content-wrap .sign-item>div .n-icon+.n-icon{margin-left:20px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap{align-items:center;background:#fafafa;border:1px dashed #d5d5d5;border-radius:4px;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;height:96px;justify-content:center;width:200px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap .svg-icon{color:#000;font-size:32px}.c-sign-wrap .sigan-content-wrap .add-sign-wrap span,.sign-com-wrap>span{color:#585858}.sign-com-wrap .sign-canvas{border:1px solid hsla(0,0%,84%,.6);border-radius:4px;margin-top:16px}.c-scale li,.c-scale ul{list-style:none;margin:0;padding:0}.c-scale .n-input{text-align:left;width:100%}.c-scale .n-form-item{--n-label-height:unset!important}.c-scale .c-scle-form-item>.n-form-item-blank{display:block}.no-data-tip{align-items:center;color:#333;display:flex;flex-direction:column;font-size:22px;height:100%;justify-content:center;width:100%}.no-data-tip>img{max-width:70%;width:260px}.no-data-tip>p{color:rgba(0,0,0,.8);font-size:16px;margin-bottom:0;margin-top:12px}.no-data-tip>span{color:rgba(0,0,0,.4);font-size:14px;margin-top:6px}.c-scale-address{max-width:500px}.c-scale-address .field-row{display:flex;overflow:hidden;width:100%}.c-scale-address .field-row .n-select{flex:1;padding:0 5px 5px 0;width:100%}.c-scale-address .field-row .n-select:last-child{padding-right:0}.c-scale-collection,.c-scale-collection .img-card{width:100%}.c-scale-collection.scale-collection-title{text-align:center}.c-scale-collection.scale-collection-title h1{font-weight:500}.c-scale-collection.prompt-message{background-color:#fff;border-radius:4px;box-shadow:0 5px 13px rgba(0,0,0,.14);color:#666;padding:10px;position:relative}.c-scale-collection.prompt-message.is-weak{color:#999}.c-scale-collection.prompt-message.is-strong{color:#ff1818;padding:8px 8px 8px 35px}.c-scale-collection.prompt-message .prompt-icon{font-size:18px;left:8px;position:absolute;top:8px}.c-scale-collection.prompt-message .prompt-message-content{font-size:14px;line-height:16px;word-break:break-all}.c-time-range{align-items:center;display:flex}.c-map-container{cursor:pointer;width:100%}.c-map-container .n-input.map-input .n-input__prefix{transform:rotate(180deg)}.c-map-container .n-input.map-input .n-input__prefix .n-icon{color:rgba(0,0,0,.65)}.c-map-container .n-input.map-input.n-input--disabled .n-input__input-el{background-color:#fff;color:rgba(0,0,0,.65);cursor:pointer}.c-scale-map-modal .n-card__content{overflow:hidden}.c-scale-upload{width:100%}.c-scale-upload .n-upload-file-list{display:flex}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type{background:rgba(0,0,0,.5);box-sizing:border-box}.c-scale-upload .n-upload-file-list .n-upload-file .n-upload-file-info .n-upload-file-info__action.n-upload-file-info__action--image-card-type span.n-button__icon{color:#fff}.c-scale-upload .n-upload-file-list .n-upload-trigger.n-upload-trigger--image-card{background-color:#fafafa;border-color:#d5d5d5;height:184px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type{background-color:#fafafa;border-color:#d5d5d5;height:184px;padding:8px;width:184px}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type .n-image{height:100%}.c-scale-upload .n-upload-file-list .n-upload-file.n-upload-file--image-card-type img{object-fit:cover!important}.c-scale-upload .upload-img-wrap{align-items:center;display:flex;flex-direction:column}.c-scale-upload .dragger-upload-text{align-items:center;display:flex}.c-scale-upload.scale-upload-file .n-upload-dragger{padding:16px 0}.c-scale-upload.scale-upload-file .n-upload{--n-item-disabled-opacity:1!important;opacity:1!important}.c-scale-upload.scale-upload-file .dragger-upload-text{color:rgba(0,0,0,.65)}.c-scale-upload.scale-upload-file .n-upload-file-list{display:flex;flex-direction:column;width:100%}.c-scale-upload.scale-upload-file .n-upload-file-list .n-upload-file{width:100%}.c-scale-upload.scale-upload-file .n-upload-trigger{background:#fafafa;border-color:#d5d5d5;width:100%}.text-over-tooltip-components{display:inline-block;max-width:98%}.text-over-tooltip-components .ellipsis{color:#35393c;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-over-tooltip-components .ellipsis i{font-style:normal;white-space:nowrap;word-break:keep-all}.text-over-tooltip-components .fs20{color:green;font-size:20px;font-weight:600;line-height:22px}.text-over-tooltip-components .fs12{color:orange;font-size:12px;font-weight:400;line-height:14px}.c-scale-modal-container.n-dialog{display:flex;flex-direction:column;height:60vh}.c-scale-modal-container.n-dialog.n-modal{min-width:560px;padding:0;width:50vw}.c-scale-modal-container.n-dialog .n-dialog__title{background:#fff;border-bottom:1px solid #e8e8e8;border-radius:8px 8px 0 0;box-sizing:border-box;height:52px;line-height:52px;padding:14px 16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content{align-items:center;color:#000;display:flex;font-size:16px;height:100%;justify-content:space-between;overflow:hidden;width:100%}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .modal-title-drag{flex:1}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap{right:16px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg{cursor:pointer;font-size:14px}.c-scale-modal-container.n-dialog .n-dialog__title .n-dialog__title-content .svg-wrap svg+svg{margin-left:16px}.c-scale-modal-container.n-dialog .n-dialog__content{height:100%;margin:0;overflow:hidden;padding:16px}.c-scale-modal-container.n-dialog .n-dialog__action{background:transparent;border-radius:0 0 8px 8px;border-top:1px solid #e8e8e8;box-sizing:border-box;height:52px;padding:10px 16px;text-align:right}
|
|
@@ -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 s,unref as d,createCommentVNode as o,withDirectives as r,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,s=l.multipleChoice;let d=(null==(i=P.labelSelectedEdit)?void 0:i.length)&&A.clone(P.labelSelectedEdit,!0)||[];if(t){if(d.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;d=d.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}d.push(e)}else{const t=d.findIndex((t=>t.labelId==e.labelId));-1!=t&&d.splice(t,1)}P.labelSelectedEdit=[...d],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(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:V},[d(W)?(n(),s("div",O,K)):o("v-if",!0),r(c("div",j,[c("div",k,[o(" 表单内嵌打开标签组件的样式 "),o(' <div v-if="explicit" class="explicit-continer">\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\n\t\t\t\t\t\t\t\t<span slot="tab">\n\t\t\t\t\t\t\t\t\t{{ i }}\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\n\t\t\t\t\t\t\t\t\t\t<labelClassify\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</n-tab-pane>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</n-tabs>\n\t\t\t\t</div> '),o("\n\t\t\t\t\t普通标签样式\n\t\t\t\t\tv-else\n\t\t\t\t\texplicit\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(d(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(P.labelConfig,((t,e)=>(n(),y(d(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),o(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(P.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",_,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,T),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:d(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,!d(W)]])],512))}}),[["__file","LabelFormContent.vue"]]);export{B as default};
|
|
@@ -1985,6 +1985,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1985
1985
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
1986
1986
|
}>>;
|
|
1987
1987
|
emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
|
|
1988
|
+
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
1988
1989
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
1989
1990
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
1990
1991
|
formHeight: import("vue").ComputedRef<string>;
|
|
@@ -1987,6 +1987,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1987
1987
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
|
1988
1988
|
}>>;
|
|
1989
1989
|
emit: (event: "formChange" | "scroll" | "annotationChange", ...args: any[]) => void;
|
|
1990
|
+
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
1990
1991
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
1991
1992
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
|
1992
1993
|
formHeight: import("vue").ComputedRef<string>;
|
package/es/env.d.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
2
|
-
|
|
3
|
-
interface ImportMetaEnv {
|
|
4
|
-
readonly VITE_APP_TYPE: string;
|
|
5
|
-
// 更多环境变量...
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface ImportMeta {
|
|
9
|
-
readonly env: ImportMetaEnv;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
declare module '*.vue' {
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
import type { App, defineComponent } from 'vue';
|
|
15
|
-
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
-
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
-
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
-
install(app: App): void;
|
|
19
|
-
};
|
|
20
|
-
// @ts-ignore
|
|
21
|
-
export default component;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
declare module '*.js';
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
interface ImportMetaEnv {
|
|
4
|
+
readonly VITE_APP_TYPE: string;
|
|
5
|
+
// 更多环境变量...
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface ImportMeta {
|
|
9
|
+
readonly env: ImportMetaEnv;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare module '*.vue' {
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
import type { App, defineComponent } from 'vue';
|
|
15
|
+
// // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
|
|
16
|
+
// // const component: DefineComponent<{}, {}, any>
|
|
17
|
+
const component: ReturnType<typeof defineComponent> & {
|
|
18
|
+
install(app: App): void;
|
|
19
|
+
};
|
|
20
|
+
// @ts-ignore
|
|
21
|
+
export default component;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module '*.js';
|