cnhis-design-vue 3.1.9-beta.10 → 3.1.9-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.js +35 -14
- package/es/packages/chunk-upload/index.d.ts +22 -1
- package/es/packages/chunk-upload/src/chunk-upload-new.vue.d.ts +32 -0
- package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.js +3 -2
- package/es/packages/chunk-upload/src/hooks/upload-data.d.ts +29 -27
- package/es/packages/chunk-upload/src/hooks/upload-data.js +32 -29
- package/es/packages/chunk-upload/src/hooks/vod-data.d.ts +21 -42
- package/es/packages/chunk-upload/src/hooks/vod-data.js +26 -31
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +31 -2
- package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.js +16 -6
- package/es/packages/chunk-upload/style/index.css +2 -0
- package/es/packages/fabric-chart/index.d.ts +7 -81
- package/es/packages/fabric-chart/src/FabricChart.vue.d.ts +7 -82
- package/es/packages/fabric-chart/src/FabricChart.vue_vue_type_script_setup_true_lang.js +16 -4
- package/es/packages/fabric-chart/src/hooks/useCenter.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useCenter.js +7 -0
- package/es/packages/fabric-chart/src/hooks/useDraw.d.ts +42 -0
- package/es/packages/fabric-chart/src/hooks/useDraw.js +76 -0
- package/es/packages/fabric-chart/src/hooks/useGrid.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useGrid.js +45 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +66 -0
- package/es/packages/fabric-chart/src/hooks/useTop.d.ts +4 -0
- package/es/packages/fabric-chart/src/hooks/useTop.js +124 -0
- package/es/packages/fabric-chart/src/interface.d.ts +88 -0
- package/es/packages/fabric-chart/src/interface.js +4 -0
- package/es/packages/fabric-chart/src/utils/index.d.ts +2 -0
- package/es/packages/fabric-chart/src/utils/index.js +15352 -0
- package/es/packages/form-render/index.d.ts +3 -3
- package/es/packages/form-render/index.js +1 -0
- package/es/packages/form-render/src/FormRender.vue.d.ts +4 -4
- package/es/packages/form-render/src/FormRender.vue_vue_type_script_setup_true_lang.js +23 -9
- package/es/packages/form-render/src/components/cascader.js +0 -1
- package/es/packages/form-render/src/hooks/index.d.ts +1 -0
- package/es/packages/form-render/src/hooks/index.js +1 -0
- package/es/packages/form-render/src/hooks/useAsyncQueue.js +1 -1
- package/es/packages/form-render/src/hooks/useFieldList2Schema.js +1 -1
- package/es/packages/form-render/src/hooks/useFormField.js +1 -3
- package/es/packages/form-render/src/hooks/useInitialData.d.ts +5 -0
- package/es/packages/form-render/src/hooks/useInitialData.js +11 -0
- package/es/packages/form-render/src/types/index.d.ts +1 -1
- package/es/packages/form-render/style/index.css +1 -1
- package/es/packages/index.css +38 -9
- package/es/packages/index.js +1 -0
- package/es/packages/scale-view/index.d.ts +137 -0
- package/es/packages/scale-view/src/ScaleView.vue.d.ts +119 -0
- package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.js +30 -24
- package/es/packages/scale-view/src/components/composables/choose-common.d.ts +1 -0
- package/es/packages/scale-view/src/components/composables/choose-common.js +6 -1
- package/es/packages/scale-view/src/components/formitem/r-checkbox.d.ts +9 -0
- package/es/packages/scale-view/src/components/formitem/r-checkbox.js +57 -12
- package/es/packages/scale-view/src/components/formitem/r-datetime.js +5 -2
- package/es/packages/scale-view/src/components/formitem/r-radio.d.ts +9 -0
- package/es/packages/scale-view/src/components/formitem/r-radio.js +26 -13
- package/es/packages/scale-view/src/hooks/scaleview-computed.js +5 -13
- package/es/packages/scale-view/src/hooks/scaleview-init.js +3 -1
- package/es/packages/scale-view/src/hooks/scaleview-props.d.ts +28 -0
- package/es/packages/scale-view/src/hooks/scaleview-props.js +21 -0
- package/es/packages/scale-view/src/hooks/scaleview-state.d.ts +32 -31
- package/es/packages/scale-view/src/hooks/scaleview-state.js +41 -38
- package/es/packages/scale-view/src/hooks/use-component.d.ts +103 -2
- package/es/packages/scale-view/style/index.css +16 -4
- package/es/packages/select-label/index.d.ts +46 -2
- package/es/packages/select-label/src/LabelFormContent.vue.d.ts +1 -1
- package/es/packages/select-label/src/LabelFormContent.vue_vue_type_script_setup_true_lang.js +1 -2
- package/es/packages/select-label/src/SelectLabel.vue.d.ts +58 -8
- package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.js +20 -2
- package/es/packages/select-label/src/components/label-classify.vue_vue_type_script_setup_true_lang.js +4 -1
- package/es/packages/select-label/style/index.css +10 -0
- package/es/src/assets/img/failure.d.ts +2 -1
- package/es/src/assets/img/icon-asc.d.ts +2 -1
- package/es/src/assets/img/icon-desc.d.ts +2 -1
- package/es/src/assets/img/no-permission.d.ts +2 -1
- package/es/src/assets/img/nodata.d.ts +2 -1
- package/es/src/assets/img/notfound.d.ts +2 -1
- package/es/src/assets/img/qr.d.ts +2 -1
- package/es/src/assets/img/success.d.ts +2 -1
- package/es/src/assets/img/video.d.ts +2 -1
- package/es/src/assets/img/video_default_cover.d.ts +2 -1
- package/es/src/assets/img/video_hover.d.ts +2 -1
- package/es/src/assets/img/video_play_hover.d.ts +2 -1
- package/es/src/assets/img/xb_big.d.ts +2 -1
- package/es/src/assets/img/xb_small.d.ts +2 -1
- package/es/src/components/player-vod/video-modal.js +1 -1
- package/package.json +2 -4
- package/test.ts +326 -0
- package/es/packages/big-table/style/index.less +0 -551
- package/es/packages/bpmn-workflow/src/BpmnWorkflow.d.js +0 -1
- package/es/packages/bpmn-workflow/style/index.less +0 -29
- package/es/packages/bpmn-workflow/types/BpmnViewer.d.js +0 -1
- package/es/packages/bpmn-workflow/types/ModelingModule.d.js +0 -1
- package/es/packages/bpmn-workflow/types/MoveCanvasModule.d.js +0 -1
- package/es/packages/button-print/style/index.less +0 -30
- package/es/packages/chunk-upload/style/index.less +0 -395
- package/es/packages/drag-layout/style/index.less +0 -208
- package/es/packages/editor/style/index.less +0 -0
- package/es/packages/fabric-chart/style/index.less +0 -0
- package/es/packages/field-set/style/index.less +0 -157
- package/es/packages/form-render/style/index.less +0 -129
- package/es/packages/form-table/style/index.less +0 -301
- package/es/packages/grid/style/index.less +0 -13
- package/es/packages/index.less +0 -3069
- package/es/packages/info-header/style/index.less +0 -149
- package/es/packages/map/style/index.less +0 -60
- package/es/packages/scale-view/style/index.less +0 -753
- package/es/packages/select-label/style/index.less +0 -151
- package/es/packages/select-person/style/index.less +0 -229
- package/es/packages/time-line/style/index.less +0 -35
|
@@ -72,6 +72,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
72
72
|
type: FunctionConstructor;
|
|
73
73
|
default: () => Promise<never[]>;
|
|
74
74
|
};
|
|
75
|
+
deleteLabel: {
|
|
76
|
+
type: FunctionConstructor;
|
|
77
|
+
default: () => Promise<{
|
|
78
|
+
status: boolean;
|
|
79
|
+
}>;
|
|
80
|
+
};
|
|
81
|
+
saveLabelItem: {
|
|
82
|
+
type: FunctionConstructor;
|
|
83
|
+
default: () => Promise<{
|
|
84
|
+
status: boolean;
|
|
85
|
+
}>;
|
|
86
|
+
};
|
|
75
87
|
uploadPictureUrl: {
|
|
76
88
|
type: StringConstructor;
|
|
77
89
|
default: string;
|
|
@@ -84,7 +96,54 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
96
|
type: StringConstructor;
|
|
85
97
|
default: string;
|
|
86
98
|
};
|
|
99
|
+
sourceType: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
getChunkUploadConfig: {
|
|
104
|
+
type: FunctionConstructor;
|
|
105
|
+
default: () => Promise<{
|
|
106
|
+
checkFileMd5Exist: string;
|
|
107
|
+
fileChannel: string;
|
|
108
|
+
md5: string;
|
|
109
|
+
objectName: string;
|
|
110
|
+
partFileMerge: string;
|
|
111
|
+
partFileUpload: string;
|
|
112
|
+
token: string;
|
|
113
|
+
}>;
|
|
114
|
+
};
|
|
87
115
|
}, {
|
|
116
|
+
ScaleViewState: {
|
|
117
|
+
other: string;
|
|
118
|
+
form: {};
|
|
119
|
+
submitForm: {};
|
|
120
|
+
rules: {};
|
|
121
|
+
config: {};
|
|
122
|
+
formArray: never[];
|
|
123
|
+
mapVisible: boolean;
|
|
124
|
+
mapLocation: string;
|
|
125
|
+
labelSelectedList: never[];
|
|
126
|
+
defaultFormArray: never[];
|
|
127
|
+
fontSize: string;
|
|
128
|
+
filterArr: string[];
|
|
129
|
+
spinning: boolean;
|
|
130
|
+
indicator: string;
|
|
131
|
+
totalScore: undefined;
|
|
132
|
+
shareId: string;
|
|
133
|
+
currentTime: import("moment").Moment;
|
|
134
|
+
showEvaluatePage: boolean;
|
|
135
|
+
showEvaluateSettingWrap: boolean;
|
|
136
|
+
showEvaluateCountdownWrap: boolean;
|
|
137
|
+
showEvaluateCountdown: boolean;
|
|
138
|
+
banSubmit: boolean;
|
|
139
|
+
isFinished: boolean;
|
|
140
|
+
maxScore: number;
|
|
141
|
+
originConfig: {};
|
|
142
|
+
paramsEvaluate: null;
|
|
143
|
+
hasFrontAddress: boolean;
|
|
144
|
+
choiceComObj: {};
|
|
145
|
+
evatipMap: {};
|
|
146
|
+
};
|
|
88
147
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
89
148
|
ids: {
|
|
90
149
|
type: ObjectConstructor;
|
|
@@ -158,6 +217,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
158
217
|
type: FunctionConstructor;
|
|
159
218
|
default: () => Promise<never[]>;
|
|
160
219
|
};
|
|
220
|
+
deleteLabel: {
|
|
221
|
+
type: FunctionConstructor;
|
|
222
|
+
default: () => Promise<{
|
|
223
|
+
status: boolean;
|
|
224
|
+
}>;
|
|
225
|
+
};
|
|
226
|
+
saveLabelItem: {
|
|
227
|
+
type: FunctionConstructor;
|
|
228
|
+
default: () => Promise<{
|
|
229
|
+
status: boolean;
|
|
230
|
+
}>;
|
|
231
|
+
};
|
|
161
232
|
uploadPictureUrl: {
|
|
162
233
|
type: StringConstructor;
|
|
163
234
|
default: string;
|
|
@@ -170,6 +241,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
241
|
type: StringConstructor;
|
|
171
242
|
default: string;
|
|
172
243
|
};
|
|
244
|
+
sourceType: {
|
|
245
|
+
type: StringConstructor;
|
|
246
|
+
default: string;
|
|
247
|
+
};
|
|
248
|
+
getChunkUploadConfig: {
|
|
249
|
+
type: FunctionConstructor;
|
|
250
|
+
default: () => Promise<{
|
|
251
|
+
checkFileMd5Exist: string;
|
|
252
|
+
fileChannel: string;
|
|
253
|
+
md5: string;
|
|
254
|
+
objectName: string;
|
|
255
|
+
partFileMerge: string;
|
|
256
|
+
partFileUpload: string;
|
|
257
|
+
token: string;
|
|
258
|
+
}>;
|
|
259
|
+
};
|
|
173
260
|
}>> & {
|
|
174
261
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
175
262
|
onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
|
|
@@ -4124,6 +4211,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4124
4211
|
type: FunctionConstructor;
|
|
4125
4212
|
default: () => Promise<never[]>;
|
|
4126
4213
|
};
|
|
4214
|
+
deleteLabel: {
|
|
4215
|
+
type: FunctionConstructor;
|
|
4216
|
+
default: () => Promise<{
|
|
4217
|
+
status: boolean;
|
|
4218
|
+
}>;
|
|
4219
|
+
};
|
|
4220
|
+
saveLabelItem: {
|
|
4221
|
+
type: FunctionConstructor;
|
|
4222
|
+
default: () => Promise<{
|
|
4223
|
+
status: boolean;
|
|
4224
|
+
}>;
|
|
4225
|
+
};
|
|
4127
4226
|
uploadPictureUrl: {
|
|
4128
4227
|
type: StringConstructor;
|
|
4129
4228
|
default: string;
|
|
@@ -4136,6 +4235,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4136
4235
|
type: StringConstructor;
|
|
4137
4236
|
default: string;
|
|
4138
4237
|
};
|
|
4238
|
+
sourceType: {
|
|
4239
|
+
type: StringConstructor;
|
|
4240
|
+
default: string;
|
|
4241
|
+
};
|
|
4242
|
+
getChunkUploadConfig: {
|
|
4243
|
+
type: FunctionConstructor;
|
|
4244
|
+
default: () => Promise<{
|
|
4245
|
+
checkFileMd5Exist: string;
|
|
4246
|
+
fileChannel: string;
|
|
4247
|
+
md5: string;
|
|
4248
|
+
objectName: string;
|
|
4249
|
+
partFileMerge: string;
|
|
4250
|
+
partFileUpload: string;
|
|
4251
|
+
token: string;
|
|
4252
|
+
}>;
|
|
4253
|
+
};
|
|
4139
4254
|
}>> & {
|
|
4140
4255
|
onOnCloseSetting?: ((...args: any[]) => any) | undefined;
|
|
4141
4256
|
onSubmitNoRequest?: ((...args: any[]) => any) | undefined;
|
|
@@ -4146,7 +4261,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4146
4261
|
styleSetting: Record<string, any>;
|
|
4147
4262
|
source: string;
|
|
4148
4263
|
isLock: string | number | boolean;
|
|
4264
|
+
sourceType: string;
|
|
4149
4265
|
getLabelList: Function;
|
|
4266
|
+
deleteLabel: Function;
|
|
4267
|
+
saveLabelItem: Function;
|
|
4150
4268
|
ids: Record<string, any>;
|
|
4151
4269
|
guageData: Record<string, any>;
|
|
4152
4270
|
noBtn: string | number | boolean;
|
|
@@ -4160,5 +4278,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
4160
4278
|
uploadPictureUrl: string;
|
|
4161
4279
|
uploadFileUrl: string;
|
|
4162
4280
|
ak: string;
|
|
4281
|
+
getChunkUploadConfig: Function;
|
|
4163
4282
|
}>;
|
|
4164
4283
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, reactive, ref, watch, nextTick, openBlock, createElementBlock, createCommentVNode, Fragment,
|
|
1
|
+
import { defineComponent, reactive, ref, watch, nextTick, openBlock, createElementBlock, normalizeClass, unref, createCommentVNode, Fragment, createBlock, mergeProps, createElementVNode, normalizeStyle, createVNode, withCtx, renderList, toDisplayString, resolveDynamicComponent, createTextVNode, h } from 'vue';
|
|
2
2
|
import useNoData from './hooks/use-noData.js';
|
|
3
|
-
import
|
|
3
|
+
import { getScaleViewState } from './hooks/scaleview-state.js';
|
|
4
4
|
import ScaleViewProps from './hooks/scaleview-props.js';
|
|
5
5
|
import { ScaleViewComputed } from './hooks/scaleview-computed.js';
|
|
6
6
|
import { ScaleViewInit } from './hooks/scaleview-init.js';
|
|
@@ -20,31 +20,31 @@ import script$3 from './components/EvaluateCountdown.vue_vue_type_script_setup_t
|
|
|
20
20
|
import script$4 from '../../../src/components/SvgIcon/SvgIcon.vue_vue_type_script_setup_true_lang.js';
|
|
21
21
|
import script$5 from './components/AnswerParse.vue_vue_type_script_setup_true_lang.js';
|
|
22
22
|
|
|
23
|
-
const _hoisted_1 =
|
|
24
|
-
const _hoisted_2 =
|
|
25
|
-
const _hoisted_3 = {
|
|
23
|
+
const _hoisted_1 = ["innerHTML"];
|
|
24
|
+
const _hoisted_2 = {
|
|
26
25
|
key: 0,
|
|
27
26
|
class: "required-text"
|
|
28
27
|
};
|
|
29
|
-
const
|
|
28
|
+
const _hoisted_3 = {
|
|
30
29
|
key: 1,
|
|
31
30
|
class: "evalute-label"
|
|
32
31
|
};
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
32
|
+
const _hoisted_4 = ["onClick"];
|
|
33
|
+
const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u67E5\u770B\u63D0\u793A ");
|
|
34
|
+
const _hoisted_6 = {
|
|
36
35
|
key: 1,
|
|
37
36
|
class: "footer"
|
|
38
37
|
};
|
|
39
|
-
const
|
|
40
|
-
const
|
|
38
|
+
const _hoisted_7 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
|
|
39
|
+
const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u4FDD\u5B58");
|
|
41
40
|
var script = /* @__PURE__ */ defineComponent({
|
|
42
41
|
__name: "ScaleView",
|
|
43
42
|
props: ScaleViewProps,
|
|
44
43
|
emits: ["onCloseSetting", "submitNoRequest", "onSubmit"],
|
|
45
44
|
setup(__props, { expose, emit }) {
|
|
46
45
|
const props = __props;
|
|
47
|
-
const
|
|
46
|
+
const { ScaleViewState } = getScaleViewState();
|
|
47
|
+
const state = reactive(ScaleViewState);
|
|
48
48
|
const dialog = useDialog();
|
|
49
49
|
const message = useMessage();
|
|
50
50
|
const countdownDom = ref(null);
|
|
@@ -192,6 +192,10 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
192
192
|
isSetObj && (state.choiceComObj[item.val_key] = choiceObj);
|
|
193
193
|
nextLogicEvent(val, item, state.formArray);
|
|
194
194
|
break;
|
|
195
|
+
case "EVALUATE_RADIO_BLOCK":
|
|
196
|
+
case "EVALUATE_CHECKBOX_BLOCK":
|
|
197
|
+
nextLogicEvent(val, item, state.formArray);
|
|
198
|
+
break;
|
|
195
199
|
case "DATE":
|
|
196
200
|
case "TIME":
|
|
197
201
|
case "DATETIME":
|
|
@@ -296,7 +300,9 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
296
300
|
getScaleData
|
|
297
301
|
});
|
|
298
302
|
return (_ctx, _cache) => {
|
|
299
|
-
return openBlock(), createElementBlock("div",
|
|
303
|
+
return openBlock(), createElementBlock("div", {
|
|
304
|
+
class: normalizeClass(["c-scale", { "c-scale-nobtn": unref(showSaveBtn) }])
|
|
305
|
+
}, [
|
|
300
306
|
createCommentVNode(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="\u52A0\u8F7D\u4E2D"></n-spin>\n </template> '),
|
|
301
307
|
!state.spinning && !state.hasFrontAddress ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
302
308
|
unref(noDataState).noData ? (openBlock(), createBlock(script$1, {
|
|
@@ -311,7 +317,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
311
317
|
ref: countdownDom
|
|
312
318
|
}, unref(evaluateCountdownProps), { onCloseEvaluateCountdown: closeEvaluateCountdown }), null, 16)) : createCommentVNode("v-if", true),
|
|
313
319
|
createElementVNode("div", {
|
|
314
|
-
class: normalizeClass(["scale-container", { "scale-container-nopadding": unref(handlePageClass) }]),
|
|
320
|
+
class: normalizeClass(["scale-container", { "scale-container-nopadding": unref(handlePageClass), "scale-container-hasfooter": unref(showSaveBtn) }]),
|
|
315
321
|
style: normalizeStyle(unref(scaleStyle))
|
|
316
322
|
}, [
|
|
317
323
|
unref(hasScore) ? (openBlock(), createBlock(unref(ScaleScore), {
|
|
@@ -341,17 +347,17 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
341
347
|
createElementVNode("span", {
|
|
342
348
|
class: normalizeClass({ "scale-label-required": unref(isFormBoldOpen)(item) }),
|
|
343
349
|
innerHTML: unref(handleShowQuestionNumber)(item)
|
|
344
|
-
}, null, 10,
|
|
345
|
-
unref(isFormBoldOpen)(item) ? (openBlock(), createElementBlock("span",
|
|
346
|
-
unref(showEvaluateLabel)(item) ? (openBlock(), createElementBlock("span",
|
|
350
|
+
}, null, 10, _hoisted_1),
|
|
351
|
+
unref(isFormBoldOpen)(item) ? (openBlock(), createElementBlock("span", _hoisted_2, "(\u5FC5\u586B)")) : createCommentVNode("v-if", true),
|
|
352
|
+
unref(showEvaluateLabel)(item) ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(unref(showEvaluateLabel)(item)), 1)) : createCommentVNode("v-if", true),
|
|
347
353
|
unref(showEvatip)(item) ? (openBlock(), createElementBlock("span", {
|
|
348
354
|
key: 2,
|
|
349
355
|
class: "evalute-tip",
|
|
350
356
|
onClick: ($event) => showEvaTipModal(item)
|
|
351
357
|
}, [
|
|
352
358
|
createVNode(unref(script$4), { "icon-class": "a-xitongtubiaotishi" }),
|
|
353
|
-
|
|
354
|
-
], 8,
|
|
359
|
+
_hoisted_5
|
|
360
|
+
], 8, _hoisted_4)) : createCommentVNode("v-if", true)
|
|
355
361
|
]),
|
|
356
362
|
default: withCtx(() => [
|
|
357
363
|
(openBlock(), createBlock(resolveDynamicComponent(item.renderCom), mergeProps(unref(propsConfig)(item, index), {
|
|
@@ -373,10 +379,10 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
373
379
|
_: 1
|
|
374
380
|
}, 8, ["model", "rules"])
|
|
375
381
|
], 6),
|
|
376
|
-
unref(showSaveBtn) ? (openBlock(), createElementBlock("div",
|
|
382
|
+
unref(showSaveBtn) ? (openBlock(), createElementBlock("div", _hoisted_6, [
|
|
377
383
|
createVNode(unref(NButton), { onClick: cancel }, {
|
|
378
384
|
default: withCtx(() => [
|
|
379
|
-
|
|
385
|
+
_hoisted_7
|
|
380
386
|
]),
|
|
381
387
|
_: 1
|
|
382
388
|
}),
|
|
@@ -384,10 +390,10 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
384
390
|
key: 0,
|
|
385
391
|
onClick: onSubmit,
|
|
386
392
|
disabled: state.banSubmit,
|
|
387
|
-
type: "
|
|
393
|
+
type: "primary"
|
|
388
394
|
}, {
|
|
389
395
|
default: withCtx(() => [
|
|
390
|
-
|
|
396
|
+
_hoisted_8
|
|
391
397
|
]),
|
|
392
398
|
_: 1
|
|
393
399
|
}, 8, ["disabled"])) : createCommentVNode("v-if", true)
|
|
@@ -395,7 +401,7 @@ var script = /* @__PURE__ */ defineComponent({
|
|
|
395
401
|
], 64))
|
|
396
402
|
], 64))
|
|
397
403
|
], 64)) : createCommentVNode("v-if", true)
|
|
398
|
-
]);
|
|
404
|
+
], 2);
|
|
399
405
|
};
|
|
400
406
|
}
|
|
401
407
|
});
|
|
@@ -7,4 +7,5 @@ export default function (props: any, state: any): {
|
|
|
7
7
|
showPreSuffix: import("vue").ComputedRef<(o: any) => any>;
|
|
8
8
|
handleDefPreSuffix: (v: any, i: number, curValue: any, isCheckbox?: boolean, hasOther?: boolean) => any;
|
|
9
9
|
handleOptions: (options: any) => any;
|
|
10
|
+
stopClick: (e: any) => void;
|
|
10
11
|
};
|
|
@@ -63,6 +63,10 @@ function chooseCommon(props, state) {
|
|
|
63
63
|
return null;
|
|
64
64
|
}).filter(Boolean) || [];
|
|
65
65
|
};
|
|
66
|
+
const stopClick = (e) => {
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
e.stopPropagation();
|
|
69
|
+
};
|
|
66
70
|
return {
|
|
67
71
|
choiceUseKey,
|
|
68
72
|
choiceColor,
|
|
@@ -71,7 +75,8 @@ function chooseCommon(props, state) {
|
|
|
71
75
|
isCheckboxItem,
|
|
72
76
|
showPreSuffix,
|
|
73
77
|
handleDefPreSuffix,
|
|
74
|
-
handleOptions
|
|
78
|
+
handleOptions,
|
|
79
|
+
stopClick
|
|
75
80
|
};
|
|
76
81
|
}
|
|
77
82
|
|
|
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
|
+
inputLock: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
14
18
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
19
|
form: {
|
|
16
20
|
type: ObjectConstructor;
|
|
@@ -24,11 +28,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
28
|
type: BooleanConstructor;
|
|
25
29
|
default: boolean;
|
|
26
30
|
};
|
|
31
|
+
inputLock: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
27
35
|
}>> & {
|
|
28
36
|
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
29
37
|
}, {
|
|
30
38
|
form: Record<string, any>;
|
|
31
39
|
item: Record<string, any>;
|
|
32
40
|
isLock: boolean;
|
|
41
|
+
inputLock: boolean;
|
|
33
42
|
}>;
|
|
34
43
|
export default _default;
|
|
@@ -30,6 +30,10 @@ var scriptCheckbox = defineComponent({
|
|
|
30
30
|
isLock: {
|
|
31
31
|
type: Boolean,
|
|
32
32
|
default: false
|
|
33
|
+
},
|
|
34
|
+
inputLock: {
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: false
|
|
33
37
|
}
|
|
34
38
|
},
|
|
35
39
|
emits: ["scaleChange"],
|
|
@@ -48,15 +52,18 @@ var scriptCheckbox = defineComponent({
|
|
|
48
52
|
choiceUseKey,
|
|
49
53
|
isCheckboxItem,
|
|
50
54
|
showPreSuffix,
|
|
51
|
-
handleOptions
|
|
55
|
+
handleOptions,
|
|
56
|
+
stopClick
|
|
52
57
|
} = chooseCommon(props, state);
|
|
53
58
|
const chooseStyleSetting = ((_b = (_a = props.item) == null ? void 0 : _a.setting) == null ? void 0 : _b.chooseStyleSetting) || 1;
|
|
54
|
-
const handlePreview = (e, url
|
|
59
|
+
const handlePreview = (e, url) => {
|
|
55
60
|
e.preventDefault();
|
|
56
61
|
e.stopPropagation();
|
|
57
|
-
let imgs = state.curOptions.map((v) => v.imageUrl);
|
|
62
|
+
let imgs = state.curOptions.map((v) => v.imageUrl).filter(Boolean);
|
|
58
63
|
if (!imgs.length)
|
|
59
64
|
return;
|
|
65
|
+
let index = imgs.findIndex((v) => v === url);
|
|
66
|
+
let i = index < 0 ? 0 : index;
|
|
60
67
|
api({
|
|
61
68
|
images: imgs,
|
|
62
69
|
options: {
|
|
@@ -79,6 +86,35 @@ var scriptCheckbox = defineComponent({
|
|
|
79
86
|
isSetObj: isCheckboxItem.value
|
|
80
87
|
});
|
|
81
88
|
};
|
|
89
|
+
const handleCheckboxDefModal = (item, curValue, options) => {
|
|
90
|
+
var _a2;
|
|
91
|
+
state.curOptions = handleOptions(options);
|
|
92
|
+
if (!options.length || !curValue || !curValue.length)
|
|
93
|
+
return;
|
|
94
|
+
let resArr = [];
|
|
95
|
+
let i = 0, x, len = curValue.length;
|
|
96
|
+
for (; i < len; i++) {
|
|
97
|
+
x = curValue[i];
|
|
98
|
+
if (x === "\u5176\u4ED6") {
|
|
99
|
+
state.othersText = x;
|
|
100
|
+
state.curCheckboxValue = ["other"];
|
|
101
|
+
!resArr.includes("other") && resArr.push("other");
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
104
|
+
let matchIndex = options.findIndex((v) => v.value === x);
|
|
105
|
+
if (matchIndex < 0) {
|
|
106
|
+
state.othersText = x;
|
|
107
|
+
!resArr.includes("other") && resArr.push("other");
|
|
108
|
+
continue;
|
|
109
|
+
}
|
|
110
|
+
let res = (_a2 = options[matchIndex]) == null ? void 0 : _a2.key;
|
|
111
|
+
if (resArr.indexOf(res) < 0) {
|
|
112
|
+
resArr.push(res);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
state.curCheckboxValue = resArr;
|
|
116
|
+
handleCheckboxOther();
|
|
117
|
+
};
|
|
82
118
|
const handleCheckboxDef = (item, curValue, options) => {
|
|
83
119
|
var _a2;
|
|
84
120
|
state.curOptions = handleOptions(options);
|
|
@@ -127,7 +163,11 @@ var scriptCheckbox = defineComponent({
|
|
|
127
163
|
} else {
|
|
128
164
|
defVal = valueDef;
|
|
129
165
|
}
|
|
130
|
-
|
|
166
|
+
if (props.inputLock) {
|
|
167
|
+
handleCheckboxDefModal(value, value.dbValue || defVal, options);
|
|
168
|
+
} else {
|
|
169
|
+
handleCheckboxDef(value, value.dbValue || defVal, options);
|
|
170
|
+
}
|
|
131
171
|
};
|
|
132
172
|
watch(() => props.item, (value) => {
|
|
133
173
|
if (!value || !Object.keys(value).length)
|
|
@@ -162,12 +202,13 @@ var scriptCheckbox = defineComponent({
|
|
|
162
202
|
"size": "24",
|
|
163
203
|
"color": "#fff",
|
|
164
204
|
"component": SearchOutline,
|
|
165
|
-
"onClick": (e) => handlePreview(e, o.imageUrl
|
|
205
|
+
"onClick": (e) => handlePreview(e, o.imageUrl)
|
|
166
206
|
}, null)])]);
|
|
167
207
|
};
|
|
168
208
|
const renderPresuffix = (o, i) => {
|
|
169
209
|
return createVNode("div", {
|
|
170
|
-
"class": "presuffix-wrap"
|
|
210
|
+
"class": "presuffix-wrap",
|
|
211
|
+
"onClick": stopClick
|
|
171
212
|
}, [o.prefix && createVNode("span", {
|
|
172
213
|
"class": "prefix-span",
|
|
173
214
|
"style": {
|
|
@@ -176,7 +217,7 @@ var scriptCheckbox = defineComponent({
|
|
|
176
217
|
}, [o.prefix]), createVNode(resolveComponent("n-input"), {
|
|
177
218
|
"value": state.optionsPreSuffixObj[o.key],
|
|
178
219
|
"onUpdate:value": ($event) => state.optionsPreSuffixObj[o.key] = $event,
|
|
179
|
-
"disabled": props.isLock,
|
|
220
|
+
"disabled": props.isLock || props.inputLock,
|
|
180
221
|
"style": {
|
|
181
222
|
color: choiceColor.value(o)
|
|
182
223
|
},
|
|
@@ -194,20 +235,24 @@ var scriptCheckbox = defineComponent({
|
|
|
194
235
|
return createVNode("span", {
|
|
195
236
|
"style": {
|
|
196
237
|
color: choiceColor.value(o)
|
|
197
|
-
}
|
|
238
|
+
},
|
|
239
|
+
"class": "other-span"
|
|
198
240
|
}, [o.label]);
|
|
199
241
|
};
|
|
200
242
|
const renderOther = (o) => {
|
|
201
|
-
return createVNode(
|
|
243
|
+
return createVNode("div", {
|
|
244
|
+
"class": "choose-other",
|
|
245
|
+
"onClick": stopClick
|
|
246
|
+
}, [createVNode(resolveComponent("n-input"), {
|
|
202
247
|
"value": state.othersText,
|
|
203
248
|
"onUpdate:value": [($event) => state.othersText = $event, () => handleCheckboxOther(true)],
|
|
204
|
-
"disabled": props.isLock,
|
|
249
|
+
"disabled": props.isLock || props.inputLock,
|
|
205
250
|
"style": {
|
|
206
251
|
color: choiceColor.value(o)
|
|
207
252
|
},
|
|
208
253
|
"placeholder": "\u8BF7\u8F93\u5165",
|
|
209
254
|
"bordered": false
|
|
210
|
-
}, null);
|
|
255
|
+
}, null)]);
|
|
211
256
|
};
|
|
212
257
|
const hasPreSuffix = (o) => {
|
|
213
258
|
return isCheckboxItem.value && showPreSuffix.value(o);
|
|
@@ -224,7 +269,7 @@ var scriptCheckbox = defineComponent({
|
|
|
224
269
|
"key": o.value,
|
|
225
270
|
"value": o[opKey]
|
|
226
271
|
}, {
|
|
227
|
-
default: () => [showImgWrap.value(o) && renderImg(o
|
|
272
|
+
default: () => [showImgWrap.value(o) && renderImg(o), hasPreSuffix(o) && renderPresuffix(o), !hasPreSuffix(o) && renderDefault(o), o.importability && renderOther(o)]
|
|
228
273
|
}))) ? _slot : {
|
|
229
274
|
default: () => [_slot]
|
|
230
275
|
});
|
|
@@ -40,13 +40,16 @@ var scriptDatetime = defineComponent({
|
|
|
40
40
|
return "daterange";
|
|
41
41
|
});
|
|
42
42
|
const defaultValue = (val) => {
|
|
43
|
+
console.log(val, "time---val---");
|
|
43
44
|
vexutils.isJSON(val) && (val = JSON.parse(val));
|
|
44
|
-
if (vexutils.isEmpty(val))
|
|
45
|
+
if (!val || vexutils.isEmpty(val))
|
|
45
46
|
return;
|
|
46
47
|
let value = JSON.parse(JSON.stringify(val));
|
|
47
48
|
if (type === "TIME" || dateType == "time") {
|
|
48
|
-
if (startToStop != 1)
|
|
49
|
+
if (startToStop != 1) {
|
|
50
|
+
state.dateValue = val;
|
|
49
51
|
return;
|
|
52
|
+
}
|
|
50
53
|
if (!Array.isArray(value) || !value.length)
|
|
51
54
|
return;
|
|
52
55
|
let val0 = value[0] ? moment(value[0], timeFormat).valueOf() : "";
|
|
@@ -11,6 +11,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
11
11
|
type: BooleanConstructor;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
|
+
inputLock: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
14
18
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "scaleChange"[], "scaleChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
19
|
form: {
|
|
16
20
|
type: ObjectConstructor;
|
|
@@ -24,11 +28,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
28
|
type: BooleanConstructor;
|
|
25
29
|
default: boolean;
|
|
26
30
|
};
|
|
31
|
+
inputLock: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
default: boolean;
|
|
34
|
+
};
|
|
27
35
|
}>> & {
|
|
28
36
|
onScaleChange?: ((...args: any[]) => any) | undefined;
|
|
29
37
|
}, {
|
|
30
38
|
form: Record<string, any>;
|
|
31
39
|
item: Record<string, any>;
|
|
32
40
|
isLock: boolean;
|
|
41
|
+
inputLock: boolean;
|
|
33
42
|
}>;
|
|
34
43
|
export default _default;
|
|
@@ -29,6 +29,10 @@ var scriptRadio = defineComponent({
|
|
|
29
29
|
isLock: {
|
|
30
30
|
type: Boolean,
|
|
31
31
|
default: false
|
|
32
|
+
},
|
|
33
|
+
inputLock: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
32
36
|
}
|
|
33
37
|
},
|
|
34
38
|
emits: ["scaleChange"],
|
|
@@ -47,15 +51,18 @@ var scriptRadio = defineComponent({
|
|
|
47
51
|
choiceUseKey,
|
|
48
52
|
isRadioItem,
|
|
49
53
|
showPreSuffix,
|
|
50
|
-
handleOptions
|
|
54
|
+
handleOptions,
|
|
55
|
+
stopClick
|
|
51
56
|
} = chooseCommon(props, state);
|
|
52
57
|
const chooseStyleSetting = ((_b = (_a = props.item) == null ? void 0 : _a.setting) == null ? void 0 : _b.chooseStyleSetting) || 1;
|
|
53
|
-
const handlePreview = (e, url
|
|
58
|
+
const handlePreview = (e, url) => {
|
|
54
59
|
e.preventDefault();
|
|
55
60
|
e.stopPropagation();
|
|
56
|
-
let imgs = state.curOptions.map((v) => v.imageUrl);
|
|
61
|
+
let imgs = state.curOptions.map((v) => v.imageUrl).filter(Boolean);
|
|
57
62
|
if (!imgs.length)
|
|
58
63
|
return;
|
|
64
|
+
let index = imgs.findIndex((v) => v === url);
|
|
65
|
+
let i = index < 0 ? 0 : index;
|
|
59
66
|
api({
|
|
60
67
|
images: imgs,
|
|
61
68
|
options: {
|
|
@@ -119,7 +126,8 @@ var scriptRadio = defineComponent({
|
|
|
119
126
|
}, {
|
|
120
127
|
immediate: true
|
|
121
128
|
});
|
|
122
|
-
const inputPreSuffixChange = (o, i) => {
|
|
129
|
+
const inputPreSuffixChange = (val, o, i) => {
|
|
130
|
+
state.optionsPreSuffixObj[o.key] = val;
|
|
123
131
|
state.curvalue = o.key;
|
|
124
132
|
let choiceObj = {
|
|
125
133
|
othersText: state.othersText,
|
|
@@ -154,12 +162,13 @@ var scriptRadio = defineComponent({
|
|
|
154
162
|
"size": "24",
|
|
155
163
|
"color": "#fff",
|
|
156
164
|
"component": SearchOutline,
|
|
157
|
-
"onClick": (e) => handlePreview(e, o.imageUrl
|
|
165
|
+
"onClick": (e) => handlePreview(e, o.imageUrl)
|
|
158
166
|
}, null)])]);
|
|
159
167
|
};
|
|
160
168
|
const renderPresuffix = (o, i) => {
|
|
161
169
|
return createVNode("div", {
|
|
162
|
-
"class": "presuffix-wrap"
|
|
170
|
+
"class": "presuffix-wrap",
|
|
171
|
+
"onClick": stopClick
|
|
163
172
|
}, [o.prefix && createVNode("span", {
|
|
164
173
|
"class": "prefix-span",
|
|
165
174
|
"style": {
|
|
@@ -168,13 +177,13 @@ var scriptRadio = defineComponent({
|
|
|
168
177
|
}, [o.prefix]), createVNode(resolveComponent("n-input"), {
|
|
169
178
|
"value": state.optionsPreSuffixObj[o.key],
|
|
170
179
|
"onUpdate:value": ($event) => state.optionsPreSuffixObj[o.key] = $event,
|
|
171
|
-
"disabled": props.isLock,
|
|
180
|
+
"disabled": props.isLock || props.inputLock,
|
|
172
181
|
"style": {
|
|
173
182
|
color: choiceColor.value(o)
|
|
174
183
|
},
|
|
175
184
|
"placeholder": "\u8BF7\u8F93\u5165",
|
|
176
185
|
"bordered": false,
|
|
177
|
-
"
|
|
186
|
+
"on-update:value": (val) => inputPreSuffixChange(val, o)
|
|
178
187
|
}, null), o.suffix && createVNode("span", {
|
|
179
188
|
"class": "suffix-span",
|
|
180
189
|
"style": {
|
|
@@ -186,20 +195,24 @@ var scriptRadio = defineComponent({
|
|
|
186
195
|
return createVNode("span", {
|
|
187
196
|
"style": {
|
|
188
197
|
color: choiceColor.value(o)
|
|
189
|
-
}
|
|
198
|
+
},
|
|
199
|
+
"class": "other-span"
|
|
190
200
|
}, [o.label]);
|
|
191
201
|
};
|
|
192
202
|
const renderOther = (o) => {
|
|
193
|
-
return createVNode(
|
|
203
|
+
return createVNode("div", {
|
|
204
|
+
"class": "choose-other",
|
|
205
|
+
"onClick": stopClick
|
|
206
|
+
}, [createVNode(resolveComponent("n-input"), {
|
|
194
207
|
"value": state.othersText,
|
|
195
208
|
"onUpdate:value": [($event) => state.othersText = $event, inputChange],
|
|
196
|
-
"disabled": props.isLock,
|
|
209
|
+
"disabled": props.isLock || props.inputLock,
|
|
197
210
|
"style": {
|
|
198
211
|
color: choiceColor.value(o)
|
|
199
212
|
},
|
|
200
213
|
"placeholder": "\u8BF7\u8F93\u5165",
|
|
201
214
|
"bordered": false
|
|
202
|
-
}, null);
|
|
215
|
+
}, null)]);
|
|
203
216
|
};
|
|
204
217
|
const hasPreSuffix = (o) => {
|
|
205
218
|
return isRadioItem.value && showPreSuffix.value(o);
|
|
@@ -216,7 +229,7 @@ var scriptRadio = defineComponent({
|
|
|
216
229
|
"key": o.value,
|
|
217
230
|
"value": o[opKey]
|
|
218
231
|
}, {
|
|
219
|
-
default: () => [showImgWrap.value(o) && renderImg(o
|
|
232
|
+
default: () => [showImgWrap.value(o) && renderImg(o), hasPreSuffix(o) && renderPresuffix(o), !hasPreSuffix(o) && renderDefault(o), o.importability && renderOther(o)]
|
|
220
233
|
}))) ? _slot : {
|
|
221
234
|
default: () => [_slot]
|
|
222
235
|
});
|