cnhis-design-vue 3.1.46-beta.9 → 3.1.46-release.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/base-search/index.d.ts +8 -17
- package/es/components/base-search/src/index.vue.d.ts +8 -17
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/classification/index.d.ts +18 -219
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +18 -219
- package/es/components/classification/src/components/search-filter/index.vue2.js +1 -1
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +18 -219
- package/es/components/classification/src/index.vue.d.ts +18 -219
- package/es/components/fabric-chart/src/FabricChart.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcessChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +1 -1
- package/es/components/fabric-chart/src/utils/index.d.ts +0 -1
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.d.ts +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +1 -2
- package/es/components/index.js +1 -1
- package/es/components/quick-search/index.d.ts +7 -21
- package/es/components/quick-search/src/index.vue.d.ts +7 -21
- package/es/components/quick-search/src/index.vue2.js +1 -1
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +17 -219
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue.d.ts +1 -17
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts +0 -19
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +11 -178
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue.d.ts +5 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectFilter.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -2
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +17 -217
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +17 -219
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/basicData.d.ts +4 -0
- package/es/components/table-filter/src/components/render-widget/basicData.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/{DateOut.vue.d.ts → Date.vue.d.ts} +2 -21
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +8 -117
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue.d.ts +9 -13
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue.d.ts +6 -8
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue.d.ts +6 -7
- package/es/components/table-filter/src/components/render-widget/components/LabelOut.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/Select.vue.d.ts +25 -19
- package/es/components/table-filter/src/components/render-widget/components/Select.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +36 -611
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/enums.d.ts +3 -10
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +6 -2
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.d.ts +3 -4
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +35 -639
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/constants/index.d.ts +1 -3
- package/es/components/table-filter/src/constants/index.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +4 -9
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.d.ts +3 -3
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.d.ts +8 -0
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/table-filter/src/tool/generateDefOptions.d.ts +7 -0
- package/es/components/table-filter/src/tool/generateDefOptions.js +1 -0
- package/es/components/table-filter/src/tool/transformData.d.ts +1 -0
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +0 -3
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +0 -7
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.js +1 -1
- package/package.json +2 -2
- package/es/components/table-export-field/index.d.ts +0 -967
- package/es/components/table-export-field/index.js +0 -1
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +0 -192
- package/es/components/table-export-field/src/components/ExportModal.vue.js +0 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +0 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.d.ts +0 -687
- package/es/components/table-export-field/src/components/SaveProjectModal.vue.js +0 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +0 -1
- package/es/components/table-export-field/src/constants/index.d.ts +0 -3
- package/es/components/table-export-field/src/constants/index.js +0 -1
- package/es/components/table-export-field/src/hooks/useAsyncData.d.ts +0 -6
- package/es/components/table-export-field/src/hooks/useAsyncData.js +0 -1
- package/es/components/table-export-field/src/index.vue.d.ts +0 -968
- package/es/components/table-export-field/src/index.vue.js +0 -1
- package/es/components/table-export-field/src/index.vue2.js +0 -1
- package/es/components/table-export-field/src/types/index.d.ts +0 -6
- package/es/components/table-export-field/src/types/index.js +0 -1
- package/es/components/table-export-field/style/index.css +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +0 -231
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +0 -71
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +0 -223
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +0 -158
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +0 -27
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +0 -55
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +0 -56
- package/es/components/table-filter/src/components/render-widget/helpers/enums.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.d.ts +0 -4
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +0 -1
- package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.d.ts +0 -4
- package/es/components/table-filter/src/components/render-widget/helpers/setDefaultValue.js +0 -1
- package/es/components/table-filter/src/hooks/useAsyncData.d.ts +0 -4
- package/es/components/table-filter/src/hooks/useAsyncData.js +0 -1
|
@@ -34,9 +34,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
34
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
35
35
|
widgetType: import("vue").ComputedRef<any>;
|
|
36
36
|
Date: import("vue").DefineComponent<{
|
|
37
|
-
componentCfg: {
|
|
38
|
-
type: ObjectConstructor;
|
|
39
|
-
};
|
|
40
37
|
paramCfg: {
|
|
41
38
|
type: ObjectConstructor;
|
|
42
39
|
default: null;
|
|
@@ -51,9 +48,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
51
48
|
};
|
|
52
49
|
}, {
|
|
53
50
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
-
componentCfg: {
|
|
55
|
-
type: ObjectConstructor;
|
|
56
|
-
};
|
|
57
51
|
paramCfg: {
|
|
58
52
|
type: ObjectConstructor;
|
|
59
53
|
default: null;
|
|
@@ -76,17 +70,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
76
70
|
dateType: any;
|
|
77
71
|
valueFormat: import("vue").ComputedRef<string>;
|
|
78
72
|
compType: import("vue").ComputedRef<any>;
|
|
79
|
-
|
|
73
|
+
mappingConfig: import("vue").ComputedRef<any>;
|
|
80
74
|
widgetOptions: import("vue").ComputedRef<{
|
|
81
75
|
label: string;
|
|
82
76
|
value: string;
|
|
83
77
|
}[]>;
|
|
84
|
-
isDateDisabled: (ts: number) => boolean;
|
|
85
|
-
timeDisabled: (ts: number) => {
|
|
86
|
-
isHourDisabled(hour: number): boolean | undefined;
|
|
87
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
|
|
88
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
|
|
89
|
-
};
|
|
90
78
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
91
79
|
updateUnchangedValue: {
|
|
92
80
|
type: BooleanConstructor;
|
|
@@ -130,7 +118,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
118
|
WidgetValEnums: {
|
|
131
119
|
CUSTOM: string;
|
|
132
120
|
FIRST_VAL: string;
|
|
133
|
-
WHOLE: string;
|
|
134
121
|
NOW: string;
|
|
135
122
|
TODAY: string;
|
|
136
123
|
TODAY_START: string;
|
|
@@ -159,9 +146,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
159
146
|
LAST_YEAR: string;
|
|
160
147
|
};
|
|
161
148
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
162
|
-
componentCfg: {
|
|
163
|
-
type: ObjectConstructor;
|
|
164
|
-
};
|
|
165
149
|
paramCfg: {
|
|
166
150
|
type: ObjectConstructor;
|
|
167
151
|
default: null;
|
|
@@ -269,7 +253,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
269
253
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
270
254
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
271
255
|
optionSetting: import("vue").ComputedRef<any>;
|
|
272
|
-
|
|
256
|
+
mappingConfig: import("vue").ComputedRef<any>;
|
|
257
|
+
widgetOptions: import("vue").ComputedRef<{
|
|
258
|
+
label: string;
|
|
259
|
+
value: string;
|
|
260
|
+
}[]>;
|
|
273
261
|
NSelect: any;
|
|
274
262
|
WidgetOptionEnums: {
|
|
275
263
|
RADIO: string;
|
|
@@ -309,7 +297,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
309
297
|
default: null;
|
|
310
298
|
};
|
|
311
299
|
}, {
|
|
312
|
-
message: import("naive-ui").MessageApi;
|
|
313
300
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
314
301
|
paramCfg: {
|
|
315
302
|
type: ObjectConstructor;
|
|
@@ -322,195 +309,28 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
322
309
|
}>> & {
|
|
323
310
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
324
311
|
}>>;
|
|
325
|
-
|
|
312
|
+
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
313
|
+
$attrs: {
|
|
314
|
+
[x: string]: unknown;
|
|
315
|
+
};
|
|
326
316
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
317
|
+
selectOptions: import("vue").Ref<any[]>;
|
|
327
318
|
isLoading: import("vue").Ref<boolean>;
|
|
328
319
|
filterApiConfig: import("../../../..").AnyObject;
|
|
329
|
-
|
|
330
|
-
totalPage: import("vue").Ref<number>;
|
|
331
|
-
menuProps: {
|
|
332
|
-
class: string;
|
|
333
|
-
};
|
|
334
|
-
curPage: import("vue").Ref<number>;
|
|
335
|
-
fieldTitleList: import("vue").Ref<any>;
|
|
336
|
-
selectOptions: import("vue").Ref<any[]>;
|
|
337
|
-
keywordVal: import("vue").Ref<any>;
|
|
320
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
|
338
321
|
optionSetting: import("vue").ComputedRef<any>;
|
|
339
322
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
340
|
-
|
|
341
|
-
isLastPage: import("vue").ComputedRef<boolean>;
|
|
342
|
-
valueCp: import("vue").ComputedRef<string | number | any[]>;
|
|
343
|
-
isInitRequest: import("vue").ComputedRef<boolean>;
|
|
344
|
-
setOptionActive: (selectIds: string[]) => void;
|
|
345
|
-
handleUpdateSelect: (value: string[] | null) => void;
|
|
346
|
-
handleUpdatePage: (page: number) => Promise<void>;
|
|
347
|
-
getOptionsData: (keyword: string, curPage: number) => Promise<any>;
|
|
348
|
-
isWhole: (value: string) => boolean;
|
|
323
|
+
searchOptions: (keyword: string) => Promise<any>;
|
|
349
324
|
_handleSearch: (query: string) => Promise<void>;
|
|
350
325
|
handleSearch: (query: string) => Promise<void>;
|
|
351
326
|
handleInitData: () => Promise<void>;
|
|
352
|
-
|
|
353
|
-
|
|
327
|
+
renderLabel: (option: import("naive-ui").SelectOption) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
328
|
+
[key: string]: any;
|
|
329
|
+
}>;
|
|
354
330
|
renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
355
331
|
[key: string]: any;
|
|
356
332
|
}>;
|
|
357
|
-
init: () => void;
|
|
358
333
|
NSelect: any;
|
|
359
|
-
SelectDynamicOption: import("vue").DefineComponent<{
|
|
360
|
-
dynamicOptionInfo: {
|
|
361
|
-
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
362
|
-
default: () => {};
|
|
363
|
-
};
|
|
364
|
-
fieldTitleList: {
|
|
365
|
-
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
366
|
-
default: () => never[];
|
|
367
|
-
};
|
|
368
|
-
optionList: {
|
|
369
|
-
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
370
|
-
default: () => never[];
|
|
371
|
-
};
|
|
372
|
-
isMultiple: {
|
|
373
|
-
type: BooleanConstructor;
|
|
374
|
-
default: boolean;
|
|
375
|
-
};
|
|
376
|
-
curPage: {
|
|
377
|
-
type: NumberConstructor;
|
|
378
|
-
default: number;
|
|
379
|
-
};
|
|
380
|
-
isLastPage: {
|
|
381
|
-
type: BooleanConstructor;
|
|
382
|
-
default: boolean;
|
|
383
|
-
};
|
|
384
|
-
isShowWhole: {
|
|
385
|
-
type: BooleanConstructor;
|
|
386
|
-
default: boolean;
|
|
387
|
-
};
|
|
388
|
-
}, {
|
|
389
|
-
selectMinWidth: number;
|
|
390
|
-
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
391
|
-
dynamicOptionInfo: {
|
|
392
|
-
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
393
|
-
default: () => {};
|
|
394
|
-
};
|
|
395
|
-
fieldTitleList: {
|
|
396
|
-
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
397
|
-
default: () => never[];
|
|
398
|
-
};
|
|
399
|
-
optionList: {
|
|
400
|
-
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
401
|
-
default: () => never[];
|
|
402
|
-
};
|
|
403
|
-
isMultiple: {
|
|
404
|
-
type: BooleanConstructor;
|
|
405
|
-
default: boolean;
|
|
406
|
-
};
|
|
407
|
-
curPage: {
|
|
408
|
-
type: NumberConstructor;
|
|
409
|
-
default: number;
|
|
410
|
-
};
|
|
411
|
-
isLastPage: {
|
|
412
|
-
type: BooleanConstructor;
|
|
413
|
-
default: boolean;
|
|
414
|
-
};
|
|
415
|
-
isShowWhole: {
|
|
416
|
-
type: BooleanConstructor;
|
|
417
|
-
default: boolean;
|
|
418
|
-
};
|
|
419
|
-
}>> & {
|
|
420
|
-
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
421
|
-
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
422
|
-
}>>;
|
|
423
|
-
emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
|
|
424
|
-
dragEndWidth: import("vue").Ref<number>;
|
|
425
|
-
showKeys: import("vue").ComputedRef<any>;
|
|
426
|
-
titleList: import("vue").ComputedRef<string[]>;
|
|
427
|
-
handleSelect: (option: any) => void;
|
|
428
|
-
searchByPage: (onePage: number) => void;
|
|
429
|
-
changeWidth: ({ distance }: any) => void;
|
|
430
|
-
saveWidth: () => void;
|
|
431
|
-
NEmpty: any;
|
|
432
|
-
NButtonGroup: any;
|
|
433
|
-
NButton: any;
|
|
434
|
-
NIcon: any;
|
|
435
|
-
NPopover: any;
|
|
436
|
-
vFlexibleResize: {
|
|
437
|
-
mounted(el: any, { value }: any): void;
|
|
438
|
-
beforeUnmount(el: any): void;
|
|
439
|
-
};
|
|
440
|
-
WidgetValEnums: {
|
|
441
|
-
CUSTOM: string;
|
|
442
|
-
FIRST_VAL: string;
|
|
443
|
-
WHOLE: string;
|
|
444
|
-
NOW: string;
|
|
445
|
-
TODAY: string;
|
|
446
|
-
TODAY_START: string;
|
|
447
|
-
TODAY_END: string;
|
|
448
|
-
TOMORROW: string;
|
|
449
|
-
TOMORROW_START: string;
|
|
450
|
-
TOMORROW_END: string;
|
|
451
|
-
YESTERDAY: string;
|
|
452
|
-
YESTERDAY_START: string;
|
|
453
|
-
YESTERDAY_END: string;
|
|
454
|
-
THIS_WEEK: string;
|
|
455
|
-
WEEK_START: string;
|
|
456
|
-
WEEK_END: string;
|
|
457
|
-
NEXT_WEEK: string;
|
|
458
|
-
LAST_WEEK: string;
|
|
459
|
-
THIS_MONTH: string;
|
|
460
|
-
MONTH_START: string;
|
|
461
|
-
MONTH_END: string;
|
|
462
|
-
NEXT_MONTH: string;
|
|
463
|
-
LAST_MONTH: string;
|
|
464
|
-
THIS_QUARTER: string;
|
|
465
|
-
NEXT_QUARTER: string;
|
|
466
|
-
LAST_QUARTER: string;
|
|
467
|
-
THIS_YEAR: string;
|
|
468
|
-
NEXT_YEAR: string;
|
|
469
|
-
LAST_YEAR: string;
|
|
470
|
-
};
|
|
471
|
-
ArrowBack: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
472
|
-
ArrowForward: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
473
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
474
|
-
dynamicOptionInfo: {
|
|
475
|
-
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
476
|
-
default: () => {};
|
|
477
|
-
};
|
|
478
|
-
fieldTitleList: {
|
|
479
|
-
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
480
|
-
default: () => never[];
|
|
481
|
-
};
|
|
482
|
-
optionList: {
|
|
483
|
-
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
484
|
-
default: () => never[];
|
|
485
|
-
};
|
|
486
|
-
isMultiple: {
|
|
487
|
-
type: BooleanConstructor;
|
|
488
|
-
default: boolean;
|
|
489
|
-
};
|
|
490
|
-
curPage: {
|
|
491
|
-
type: NumberConstructor;
|
|
492
|
-
default: number;
|
|
493
|
-
};
|
|
494
|
-
isLastPage: {
|
|
495
|
-
type: BooleanConstructor;
|
|
496
|
-
default: boolean;
|
|
497
|
-
};
|
|
498
|
-
isShowWhole: {
|
|
499
|
-
type: BooleanConstructor;
|
|
500
|
-
default: boolean;
|
|
501
|
-
};
|
|
502
|
-
}>> & {
|
|
503
|
-
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
504
|
-
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
505
|
-
}, {
|
|
506
|
-
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
507
|
-
fieldTitleList: import("../../../..").AnyObject[];
|
|
508
|
-
optionList: import("../../../..").AnyObject[];
|
|
509
|
-
isMultiple: boolean;
|
|
510
|
-
curPage: number;
|
|
511
|
-
isLastPage: boolean;
|
|
512
|
-
isShowWhole: boolean;
|
|
513
|
-
}>;
|
|
514
334
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
515
335
|
paramCfg: {
|
|
516
336
|
type: ObjectConstructor;
|
|
@@ -616,15 +436,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
616
436
|
valueFormat: import("vue").ComputedRef<string>;
|
|
617
437
|
dateFormat: import("vue").ComputedRef<string>;
|
|
618
438
|
compType: import("vue").ComputedRef<any>;
|
|
619
|
-
optionSetting: import("vue").ComputedRef<any>;
|
|
620
|
-
isPastTime: import("vue").ComputedRef<boolean>;
|
|
621
|
-
isFutureTime: import("vue").ComputedRef<boolean>;
|
|
622
439
|
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
623
440
|
endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
|
|
624
|
-
startDefault: import("vue").ComputedRef<string>;
|
|
625
|
-
endDefault: import("vue").ComputedRef<string>;
|
|
626
|
-
startDateFormat: import("vue").ComputedRef<string | null>;
|
|
627
|
-
endDateFormat: import("vue").ComputedRef<string | null>;
|
|
628
441
|
dateType: any;
|
|
629
442
|
widgetOptions: import("vue").ComputedRef<{
|
|
630
443
|
label: string;
|
|
@@ -633,19 +446,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
633
446
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
634
447
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
635
448
|
isStartDateDisabled: (ts: number) => boolean;
|
|
636
|
-
timeStartDisabled: (ts: number) => {
|
|
637
|
-
isHourDisabled(hour: number): boolean | 0;
|
|
638
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
639
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
640
|
-
};
|
|
641
449
|
isEndDateDisabled: (ts: number) => boolean;
|
|
642
|
-
timeEndDisabled: (ts: number) => {
|
|
643
|
-
isHourDisabled(hour: number): boolean | 0;
|
|
644
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
645
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
646
|
-
};
|
|
647
450
|
NSelect: any;
|
|
648
|
-
NPopover: any;
|
|
649
451
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
650
452
|
updateUnchangedValue: {
|
|
651
453
|
type: BooleanConstructor;
|
|
@@ -688,7 +490,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
688
490
|
WidgetValEnums: {
|
|
689
491
|
CUSTOM: string;
|
|
690
492
|
FIRST_VAL: string;
|
|
691
|
-
WHOLE: string;
|
|
692
493
|
NOW: string;
|
|
693
494
|
TODAY: string;
|
|
694
495
|
TODAY_START: string;
|
|
@@ -747,8 +548,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
747
548
|
default: null;
|
|
748
549
|
};
|
|
749
550
|
}, {
|
|
750
|
-
|
|
751
|
-
message: import("naive-ui").MessageApi;
|
|
551
|
+
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
752
552
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
753
553
|
paramCfg: {
|
|
754
554
|
type: ObjectConstructor;
|
|
@@ -788,9 +588,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
788
588
|
INPUT: string;
|
|
789
589
|
SELECT: string;
|
|
790
590
|
DATE: string;
|
|
791
|
-
DATE_OUT: string;
|
|
792
591
|
DATE_TIME: string;
|
|
793
|
-
DATETIME_OUT: string;
|
|
794
592
|
CHECKBOX_GROUP: string;
|
|
795
593
|
INPUTNUMBER_RANGE: string;
|
|
796
594
|
DATE_RANGE_OUT: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as l,openBlock as a,createElementBlock as u,createCommentVNode as p,unref as m,createBlock as t,isRef as d}from"vue";import{InputNumber as o,InputFilter as r,SelectFilter as n,Date as V,SelectDynamic as f,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as v}from"../../types/enums.js";const i={class:"value-cfg_wrapper"};var E=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:E}){const y=e,U=l({set(e){E("update:modelValue",e)},get:()=>y.modelValue}),N=l({set(e){E("update:presetVal",e)},get:()=>y.presetVal}),T=l((()=>{var e;return null==(e=y.paramCfg)?void 0:e.type}));return(l,E)=>(a(),u("div",i,[p(" 数字框 "),m(T)===m(v).INPUT_NUMBER?(a(),t(m(o),{key:0,modelValue:m(U),"onUpdate:modelValue":E[0]||(E[0]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 文本框 "),m(T)===m(v).INPUT?(a(),t(m(r),{key:1,modelValue:m(U),"onUpdate:modelValue":E[1]||(E[1]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p("
|
|
1
|
+
import{defineComponent as e,computed as l,openBlock as a,createElementBlock as u,createCommentVNode as p,unref as m,createBlock as t,isRef as d}from"vue";import{InputNumber as o,InputFilter as r,SelectFilter as n,Date as V,SelectDynamic as f,InputNumberGroup as g,DateRange as s,SelectLabel as C}from"./components/index.js";import{WidgetTypeEnums as v}from"../../types/enums.js";const i={class:"value-cfg_wrapper"};var E=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:E}){const y=e,U=l({set(e){E("update:modelValue",e)},get:()=>y.modelValue}),N=l({set(e){E("update:presetVal",e)},get:()=>y.presetVal}),T=l((()=>{var e;return null==(e=y.paramCfg)?void 0:e.type}));return(l,E)=>(a(),u("div",i,[p(" 数字框 "),m(T)===m(v).INPUT_NUMBER?(a(),t(m(o),{key:0,modelValue:m(U),"onUpdate:modelValue":E[0]||(E[0]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 文本框 "),m(T)===m(v).INPUT?(a(),t(m(r),{key:1,modelValue:m(U),"onUpdate:modelValue":E[1]||(E[1]=e=>d(U)?U.value=e:null)},null,8,["modelValue"])):p("v-if",!0),p(" 下拉框 "),m(T)===m(v).SELECT?(a(),t(m(n),{key:2,paramCfg:e.paramCfg,widgetType:m(T),modelValue:m(U),"onUpdate:modelValue":E[2]||(E[2]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","widgetType","modelValue"])):p("v-if",!0),p(" 日期框、日期时间框 "),m(T)===m(v).DATE||m(T)===m(v).DATE_TIME?(a(),t(m(V),{key:3,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[3]||(E[3]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[4]||(E[4]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" 异步数据源下拉框 "),m(T)===m(v).SELECTDYNAMIC?(a(),t(m(f),{key:4,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[5]||(E[5]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 数字框范围 "),m(T)===m(v).INPUTNUMBER_RANGE?(a(),t(m(g),{key:5,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[6]||(E[6]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0),p(" 日期、日期时间范围 "),m(T)===m(v).DATE_RANGE_INNER||m(T)===m(v).DATETIME_RANGE_INNER?(a(),t(m(s),{key:6,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[7]||(E[7]=e=>d(U)?U.value=e:null),presetVal:m(N),"onUpdate:presetVal":E[8]||(E[8]=e=>d(N)?N.value=e:null)},null,8,["paramCfg","modelValue","presetVal"])):p("v-if",!0),p(" label标签选择 "),m(T)===m(v).SELECTLABEL?(a(),t(m(C),{key:7,paramCfg:e.paramCfg,modelValue:m(U),"onUpdate:modelValue":E[9]||(E[9]=e=>d(U)?U.value=e:null)},null,8,["paramCfg","modelValue"])):p("v-if",!0)]))}});export{E as default};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
componentCfg: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
};
|
|
5
2
|
paramCfg: {
|
|
6
3
|
type: ObjectConstructor;
|
|
7
4
|
default: null;
|
|
@@ -16,9 +13,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
16
13
|
};
|
|
17
14
|
}, {
|
|
18
15
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
-
componentCfg: {
|
|
20
|
-
type: ObjectConstructor;
|
|
21
|
-
};
|
|
22
16
|
paramCfg: {
|
|
23
17
|
type: ObjectConstructor;
|
|
24
18
|
default: null;
|
|
@@ -41,17 +35,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
35
|
dateType: any;
|
|
42
36
|
valueFormat: import("vue").ComputedRef<string>;
|
|
43
37
|
compType: import("vue").ComputedRef<any>;
|
|
44
|
-
|
|
38
|
+
mappingConfig: import("vue").ComputedRef<any>;
|
|
45
39
|
widgetOptions: import("vue").ComputedRef<{
|
|
46
40
|
label: string;
|
|
47
41
|
value: string;
|
|
48
42
|
}[]>;
|
|
49
|
-
isDateDisabled: (ts: number) => boolean;
|
|
50
|
-
timeDisabled: (ts: number) => {
|
|
51
|
-
isHourDisabled(hour: number): boolean | undefined;
|
|
52
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | undefined;
|
|
53
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | undefined;
|
|
54
|
-
};
|
|
55
43
|
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
56
44
|
updateUnchangedValue: {
|
|
57
45
|
type: BooleanConstructor;
|
|
@@ -95,7 +83,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
83
|
WidgetValEnums: {
|
|
96
84
|
CUSTOM: string;
|
|
97
85
|
FIRST_VAL: string;
|
|
98
|
-
WHOLE: string;
|
|
99
86
|
NOW: string;
|
|
100
87
|
TODAY: string;
|
|
101
88
|
TODAY_START: string;
|
|
@@ -124,9 +111,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
111
|
LAST_YEAR: string;
|
|
125
112
|
};
|
|
126
113
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:presetVal")[], "update:modelValue" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
127
|
-
componentCfg: {
|
|
128
|
-
type: ObjectConstructor;
|
|
129
|
-
};
|
|
130
114
|
paramCfg: {
|
|
131
115
|
type: ObjectConstructor;
|
|
132
116
|
default: null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,
|
|
1
|
+
import{defineComponent as e,computed as t,openBlock as a,createElementBlock as l,Fragment as r,createVNode as u,unref as o,isRef as p,createBlock as m,createCommentVNode as s}from"vue";import n from"../../../../../date-picker/index.js";import{NSelect as d}from"naive-ui";import{WidgetTypeEnums as i,WidgetValEnums as v}from"../../../types/enums.js";import{generateDefOptionsInApi as f}from"../../../tool/generateDefOptions.js";var y=e({__name:"Date",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:y}){const c=e,g=t({set(e){y("update:modelValue",e)},get:()=>c.modelValue}),T=t({set(e){y("update:presetVal",e)},get:()=>c.presetVal}),C=t((()=>M.value.toLowerCase()||i.DATE.toLowerCase())),D=t((()=>{let e="";switch(M.value){case i.DATE:e="yyyy-MM-dd";break;case i.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),M=t((()=>c.paramCfg._rawData.type)),V=t((()=>{var e;return null==(e=c.paramCfg)?void 0:e.mappingConfig})),b=t((()=>{const e=f(M.value,V.value).slice(0);return M.value!==i.DATE&&M.value!==i.DATE_TIME||e.unshift({label:"自定义输入",value:v.CUSTOM}),e}));return(e,t)=>(a(),l(r,null,[u(o(d),{style:{width:"120px"},class:"form-item",to:"body",value:o(T),"onUpdate:value":t[0]||(t[0]=e=>p(T)?T.value=e:null),options:o(b)},null,8,["value","options"]),o(T)===o(v).CUSTOM?(a(),m(o(n),{key:0,class:"form-item",type:o(C),clearable:"",to:"body",valueFormat:o(D),"formatted-value":o(g),"onUpdate:formatted-value":t[1]||(t[1]=e=>p(g)?g.value=e:null)},null,8,["type","valueFormat","formatted-value"])):s("v-if",!0)],64))}});export{y as default};
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
|
@@ -35,15 +35,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
valueFormat: import("vue").ComputedRef<string>;
|
|
36
36
|
dateFormat: import("vue").ComputedRef<string>;
|
|
37
37
|
compType: import("vue").ComputedRef<any>;
|
|
38
|
-
optionSetting: import("vue").ComputedRef<any>;
|
|
39
|
-
isPastTime: import("vue").ComputedRef<boolean>;
|
|
40
|
-
isFutureTime: import("vue").ComputedRef<boolean>;
|
|
41
38
|
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
42
39
|
endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
|
|
43
|
-
startDefault: import("vue").ComputedRef<string>;
|
|
44
|
-
endDefault: import("vue").ComputedRef<string>;
|
|
45
|
-
startDateFormat: import("vue").ComputedRef<string | null>;
|
|
46
|
-
endDateFormat: import("vue").ComputedRef<string | null>;
|
|
47
40
|
dateType: any;
|
|
48
41
|
widgetOptions: import("vue").ComputedRef<{
|
|
49
42
|
label: string;
|
|
@@ -52,19 +45,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
45
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
53
46
|
handleChange: (val: any, type: 'start' | 'end') => void;
|
|
54
47
|
isStartDateDisabled: (ts: number) => boolean;
|
|
55
|
-
timeStartDisabled: (ts: number) => {
|
|
56
|
-
isHourDisabled(hour: number): boolean | 0;
|
|
57
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
58
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
59
|
-
};
|
|
60
48
|
isEndDateDisabled: (ts: number) => boolean;
|
|
61
|
-
timeEndDisabled: (ts: number) => {
|
|
62
|
-
isHourDisabled(hour: number): boolean | 0;
|
|
63
|
-
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
64
|
-
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
65
|
-
};
|
|
66
49
|
NSelect: any;
|
|
67
|
-
NPopover: any;
|
|
68
50
|
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
69
51
|
updateUnchangedValue: {
|
|
70
52
|
type: BooleanConstructor;
|
|
@@ -107,7 +89,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
107
89
|
WidgetValEnums: {
|
|
108
90
|
CUSTOM: string;
|
|
109
91
|
FIRST_VAL: string;
|
|
110
|
-
WHOLE: string;
|
|
111
92
|
NOW: string;
|
|
112
93
|
TODAY: string;
|
|
113
94
|
TODAY_START: string;
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,
|
|
1
|
+
import{defineComponent as e,ref as a,computed as l,watch as t,openBlock as u,createElementBlock as r,Fragment as o,createVNode as s,unref as n,isRef as m,createCommentVNode as i}from"vue";import{NSelect as v}from"naive-ui";import d from"../../../../../date-picker/index.js";import p from"moment";import{cloneDeep as f,isString as c}from"lodash-es";import{WidgetTypeEnums as y,WidgetValEnums as b}from"../../../types/enums.js";import{widgetDateRangeOptions as D}from"../../../tool/baseOptions.js";const M={key:0,style:{display:"flex"}};var T=e({__name:"DateRange",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},presetVal:{type:String,default:null}},emits:["update:modelValue","update:presetVal"],setup(e,{emit:T}){const h=e,E=a(),A=a(),V=l((()=>{let e="";switch(g.value){case y.DATE:e="yyyy-MM-dd";break;case y.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),Y=l((()=>{let e="";switch(g.value){case y.DATE:e="YYYY-MM-DD";break;case y.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),g=l((()=>h.paramCfg._rawData.type)),w=l((()=>g.value===y.DATE?"初始日期":"初始时间")),C=l((()=>g.value===y.DATE?"截止日期":"截止时间")),O=l((()=>g.value.toLowerCase()||y.DATE.toLowerCase())),k=l((()=>{const e=f(D);return e.unshift({label:"自定义输入",value:b.CUSTOM}),e})),x=l({set(e){T("update:presetVal",e)},get:()=>h.presetVal});function U(e,a){switch(a){case"start":E.value=e;break;case"end":A.value=e}const l=E.value?p(E.value).format(Y.value):null,t=A.value?p(A.value).format(Y.value):null;T("update:modelValue",l||t?`${null!=l?l:""} ~ ${null!=t?t:""}`:"")}function _(e){return!!A.value&&e>A.value}function j(e){return!!E.value&&e<E.value}return t((()=>h.modelValue),(e=>{if(e&&c(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(E.value=p(a.trim()).valueOf()),void(l.trim()&&(A.value=p(l.trim()).valueOf()))}E.value=A.value=null}),{immediate:!0}),(e,a)=>(u(),r(o,null,[s(n(v),{style:{width:"120px"},class:"form-item",to:"body",value:n(x),"onUpdate:value":a[0]||(a[0]=e=>m(x)?x.value=e:null),options:n(k)},null,8,["value","options"]),n(x)===n(b).CUSTOM?(u(),r("div",M,[s(n(d),{type:n(O),"default-time":"00:00:00",clearable:"",to:"body",valueFormat:n(V),placeholder:n(w),value:E.value,"is-date-disabled":_,"onUpdate:value":a[1]||(a[1]=e=>U(e,"start"))},null,8,["type","valueFormat","placeholder","value"]),s(n(d),{style:{"margin-left":"5px"},type:n(O),"default-time":"23:59:59",clearable:"",to:"body",valueFormat:n(V),placeholder:n(C),value:A.value,"is-date-disabled":j,"onUpdate:value":a[2]||(a[2]=e=>U(e,"end"))},null,8,["type","valueFormat","placeholder","value"])])):i("v-if",!0)],64))}});export{T as default};
|