cnhis-design-vue 3.1.45-beta.8 → 3.1.45-beta.9
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 -0
- package/es/components/base-search/src/index.vue.d.ts +2 -0
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- 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/classification/index.d.ts +165 -11
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +165 -11
- 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 +165 -11
- package/es/components/classification/src/index.vue.d.ts +165 -11
- 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/useDraw.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/form-render/src/components/renderer/dist/levelSearchCascader.d.ts +77 -0
- package/es/components/form-render/src/components/renderer/dist/searchCascade.d.ts +93 -0
- package/es/components/iho-table/src/plugins/dist/highLightSetPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/filterRenderPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/defaultRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/dist/seqRendererPlugin.d.ts +3 -0
- package/es/components/iho-table/src/plugins/varialbleHeightPlugin/dist/index.d.ts +3 -0
- package/es/components/iho-table/src/utils/dist/index.d.ts +44 -0
- package/es/components/index.css +1 -1
- package/es/components/quick-search/index.d.ts +2 -0
- package/es/components/quick-search/src/index.vue.d.ts +2 -0
- package/es/components/quick-search/style/index.css +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/scale-view/src/components/formitem/dist/r-address.d.ts +36 -0
- package/es/components/scale-view/src/components/formitem/dist/r-sign.d.ts +36 -0
- package/es/components/scale-view/src/components/formitem/dist/standard-modal.d.ts +82 -0
- package/es/components/search-cascader/src/components/dist/SearchMenu.d.ts +57 -0
- package/es/components/search-cascader/src/components/dist/SearchMenu1.d.ts +57 -0
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +165 -10
- 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 +16 -1
- 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 +18 -0
- 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 +128 -10
- 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/SelectDynamic1.vue.d.ts +61 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectLabel.vue.d.ts +1 -0
- 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 +163 -10
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +165 -10
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.d.ts +218 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/{Date.vue.d.ts → DateOut.vue.d.ts} +21 -2
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.d.ts +71 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateQuickBtn/index.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue.d.ts +99 -5
- 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 +13 -9
- 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 +7 -5
- 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 -5
- 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 +15 -25
- 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/Select1.vue.d.ts +45 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +175 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +114 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +520 -25
- 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 +10 -3
- package/es/components/table-filter/src/components/render-widget/enums.js +1 -1
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.d.ts +27 -0
- package/es/components/table-filter/src/components/render-widget/helpers/dateDisabled.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.d.ts +55 -0
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/enums.d.ts +56 -0
- package/es/components/table-filter/src/components/render-widget/helpers/enums.js +1 -0
- package/es/components/table-filter/src/components/render-widget/helpers/presetValToTimestamp.d.ts +2 -6
- 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.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +548 -24
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -0
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/hooks/useRenderWidget.js +1 -1
- package/es/components/table-filter/src/tool/baseOptions.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +2 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/table-filter/src/components/render-widget/basicData.d.ts +0 -4
- package/es/components/table-filter/src/components/render-widget/basicData.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Date.vue.js +0 -1
- package/es/components/table-filter/src/components/render-widget/components/Date.vue2.js +0 -1
|
@@ -34,6 +34,9 @@ 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
|
+
};
|
|
37
40
|
paramCfg: {
|
|
38
41
|
type: ObjectConstructor;
|
|
39
42
|
default: null;
|
|
@@ -48,6 +51,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
48
51
|
};
|
|
49
52
|
}, {
|
|
50
53
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
54
|
+
componentCfg: {
|
|
55
|
+
type: ObjectConstructor;
|
|
56
|
+
};
|
|
51
57
|
paramCfg: {
|
|
52
58
|
type: ObjectConstructor;
|
|
53
59
|
default: null;
|
|
@@ -70,11 +76,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
70
76
|
dateType: any;
|
|
71
77
|
valueFormat: import("vue").ComputedRef<string>;
|
|
72
78
|
compType: import("vue").ComputedRef<any>;
|
|
73
|
-
|
|
79
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
74
80
|
widgetOptions: import("vue").ComputedRef<{
|
|
75
81
|
label: string;
|
|
76
82
|
value: string;
|
|
77
83
|
}[]>;
|
|
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
|
+
};
|
|
78
90
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
79
91
|
updateUnchangedValue: {
|
|
80
92
|
type: BooleanConstructor;
|
|
@@ -146,6 +158,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
158
|
LAST_YEAR: string;
|
|
147
159
|
};
|
|
148
160
|
}, 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<{
|
|
161
|
+
componentCfg: {
|
|
162
|
+
type: ObjectConstructor;
|
|
163
|
+
};
|
|
149
164
|
paramCfg: {
|
|
150
165
|
type: ObjectConstructor;
|
|
151
166
|
default: null;
|
|
@@ -297,6 +312,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
297
312
|
default: null;
|
|
298
313
|
};
|
|
299
314
|
}, {
|
|
315
|
+
message: import("naive-ui").MessageApi;
|
|
300
316
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
301
317
|
paramCfg: {
|
|
302
318
|
type: ObjectConstructor;
|
|
@@ -310,27 +326,145 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
310
326
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
311
327
|
}>>;
|
|
312
328
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
313
|
-
$attrs: {
|
|
314
|
-
[x: string]: unknown;
|
|
315
|
-
};
|
|
316
329
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
317
|
-
selectOptions: import("vue").Ref<any[]>;
|
|
318
330
|
isLoading: import("vue").Ref<boolean>;
|
|
319
331
|
filterApiConfig: import("../../../..").AnyObject;
|
|
320
|
-
|
|
332
|
+
totalPage: import("vue").Ref<number>;
|
|
333
|
+
menuProps: {
|
|
334
|
+
class: string;
|
|
335
|
+
};
|
|
336
|
+
curPage: import("vue").Ref<number>;
|
|
337
|
+
fieldTitleList: import("vue").Ref<any>;
|
|
338
|
+
selectOptions: import("vue").Ref<any[]>;
|
|
339
|
+
keywordVal: import("vue").Ref<any>;
|
|
321
340
|
optionSetting: import("vue").ComputedRef<any>;
|
|
322
341
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
323
|
-
|
|
342
|
+
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
|
343
|
+
isLastPage: import("vue").ComputedRef<boolean>;
|
|
344
|
+
valueCp: import("vue").ComputedRef<string | number | any[]>;
|
|
345
|
+
setOptionActive: (selectIds: string[]) => void;
|
|
346
|
+
handleUpdateSelect: (value: string[] | null) => void;
|
|
347
|
+
handleUpdatePage: (page: number) => Promise<void>;
|
|
348
|
+
getOptionsData: (keyword: string, curPage: number) => Promise<any>;
|
|
324
349
|
_handleSearch: (query: string) => Promise<void>;
|
|
325
350
|
handleSearch: (query: string) => Promise<void>;
|
|
326
351
|
handleInitData: () => Promise<void>;
|
|
327
|
-
|
|
328
|
-
[key: string]: any;
|
|
329
|
-
}>;
|
|
352
|
+
handleClear: () => Promise<void>;
|
|
330
353
|
renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
331
354
|
[key: string]: any;
|
|
332
355
|
}>;
|
|
333
356
|
NSelect: any;
|
|
357
|
+
SelectDynamicOption: import("vue").DefineComponent<{
|
|
358
|
+
dynamicOptionInfo: {
|
|
359
|
+
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
360
|
+
default: () => {};
|
|
361
|
+
};
|
|
362
|
+
fieldTitleList: {
|
|
363
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
364
|
+
default: () => never[];
|
|
365
|
+
};
|
|
366
|
+
optionList: {
|
|
367
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
368
|
+
default: () => never[];
|
|
369
|
+
};
|
|
370
|
+
isMultiple: {
|
|
371
|
+
type: BooleanConstructor;
|
|
372
|
+
default: boolean;
|
|
373
|
+
};
|
|
374
|
+
curPage: {
|
|
375
|
+
type: NumberConstructor;
|
|
376
|
+
default: number;
|
|
377
|
+
};
|
|
378
|
+
isLastPage: {
|
|
379
|
+
type: BooleanConstructor;
|
|
380
|
+
default: boolean;
|
|
381
|
+
};
|
|
382
|
+
}, {
|
|
383
|
+
selectMinWidth: number;
|
|
384
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
385
|
+
dynamicOptionInfo: {
|
|
386
|
+
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
387
|
+
default: () => {};
|
|
388
|
+
};
|
|
389
|
+
fieldTitleList: {
|
|
390
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
391
|
+
default: () => never[];
|
|
392
|
+
};
|
|
393
|
+
optionList: {
|
|
394
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
395
|
+
default: () => never[];
|
|
396
|
+
};
|
|
397
|
+
isMultiple: {
|
|
398
|
+
type: BooleanConstructor;
|
|
399
|
+
default: boolean;
|
|
400
|
+
};
|
|
401
|
+
curPage: {
|
|
402
|
+
type: NumberConstructor;
|
|
403
|
+
default: number;
|
|
404
|
+
};
|
|
405
|
+
isLastPage: {
|
|
406
|
+
type: BooleanConstructor;
|
|
407
|
+
default: boolean;
|
|
408
|
+
};
|
|
409
|
+
}>> & {
|
|
410
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
411
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
412
|
+
}>>;
|
|
413
|
+
emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
|
|
414
|
+
dragEndWidth: import("vue").Ref<number>;
|
|
415
|
+
showKeys: import("vue").ComputedRef<any>;
|
|
416
|
+
titleList: import("vue").ComputedRef<string[]>;
|
|
417
|
+
handleSelect: (option: any) => void;
|
|
418
|
+
searchByPage: (onePage: number) => void;
|
|
419
|
+
changeWidth: ({ distance }: any) => void;
|
|
420
|
+
saveWidth: () => void;
|
|
421
|
+
NEmpty: any;
|
|
422
|
+
NButtonGroup: any;
|
|
423
|
+
NButton: any;
|
|
424
|
+
NIcon: any;
|
|
425
|
+
NPopover: any;
|
|
426
|
+
vFlexibleResize: {
|
|
427
|
+
mounted(el: any, { value }: any): void;
|
|
428
|
+
beforeUnmount(el: any): void;
|
|
429
|
+
};
|
|
430
|
+
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<{}>>, {}>;
|
|
431
|
+
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<{}>>, {}>;
|
|
432
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
433
|
+
dynamicOptionInfo: {
|
|
434
|
+
type: import("vue").PropType<import("../../../..").AnyObject>;
|
|
435
|
+
default: () => {};
|
|
436
|
+
};
|
|
437
|
+
fieldTitleList: {
|
|
438
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
439
|
+
default: () => never[];
|
|
440
|
+
};
|
|
441
|
+
optionList: {
|
|
442
|
+
type: import("vue").PropType<import("../../../..").AnyObject[]>;
|
|
443
|
+
default: () => never[];
|
|
444
|
+
};
|
|
445
|
+
isMultiple: {
|
|
446
|
+
type: BooleanConstructor;
|
|
447
|
+
default: boolean;
|
|
448
|
+
};
|
|
449
|
+
curPage: {
|
|
450
|
+
type: NumberConstructor;
|
|
451
|
+
default: number;
|
|
452
|
+
};
|
|
453
|
+
isLastPage: {
|
|
454
|
+
type: BooleanConstructor;
|
|
455
|
+
default: boolean;
|
|
456
|
+
};
|
|
457
|
+
}>> & {
|
|
458
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
459
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
460
|
+
}, {
|
|
461
|
+
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
462
|
+
fieldTitleList: import("../../../..").AnyObject[];
|
|
463
|
+
optionList: import("../../../..").AnyObject[];
|
|
464
|
+
isMultiple: boolean;
|
|
465
|
+
curPage: number;
|
|
466
|
+
isLastPage: boolean;
|
|
467
|
+
}>;
|
|
334
468
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
335
469
|
paramCfg: {
|
|
336
470
|
type: ObjectConstructor;
|
|
@@ -436,8 +570,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
436
570
|
valueFormat: import("vue").ComputedRef<string>;
|
|
437
571
|
dateFormat: import("vue").ComputedRef<string>;
|
|
438
572
|
compType: import("vue").ComputedRef<any>;
|
|
573
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
574
|
+
isPastTime: import("vue").ComputedRef<boolean>;
|
|
575
|
+
isFutureTime: import("vue").ComputedRef<boolean>;
|
|
439
576
|
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
440
577
|
endPlaceholder: import("vue").ComputedRef<"截止日期" | "截止时间">;
|
|
578
|
+
startDefault: import("vue").ComputedRef<string>;
|
|
579
|
+
endDefault: import("vue").ComputedRef<string>;
|
|
580
|
+
startDateFormat: import("vue").ComputedRef<string | null>;
|
|
581
|
+
endDateFormat: import("vue").ComputedRef<string | null>;
|
|
441
582
|
dateType: any;
|
|
442
583
|
widgetOptions: import("vue").ComputedRef<{
|
|
443
584
|
label: string;
|
|
@@ -446,8 +587,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
446
587
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
447
588
|
handleChange: (val: any, type: "end" | "start") => void;
|
|
448
589
|
isStartDateDisabled: (ts: number) => boolean;
|
|
590
|
+
timeStartDisabled: (ts: number) => {
|
|
591
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
592
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
593
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
594
|
+
};
|
|
449
595
|
isEndDateDisabled: (ts: number) => boolean;
|
|
596
|
+
timeEndDisabled: (ts: number) => {
|
|
597
|
+
isHourDisabled(hour: number): boolean | 0;
|
|
598
|
+
isMinuteDisabled(minute: number, hour: number | null): boolean | 0;
|
|
599
|
+
isSecondDisabled(second: number, minute: number | null, hour: number | null): boolean | 0;
|
|
600
|
+
};
|
|
450
601
|
NSelect: any;
|
|
602
|
+
NPopover: any;
|
|
451
603
|
CDatePicker: import("../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
452
604
|
updateUnchangedValue: {
|
|
453
605
|
type: BooleanConstructor;
|
|
@@ -549,6 +701,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
549
701
|
};
|
|
550
702
|
}, {
|
|
551
703
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
704
|
+
message: import("naive-ui").MessageApi;
|
|
552
705
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
553
706
|
paramCfg: {
|
|
554
707
|
type: ObjectConstructor;
|
|
@@ -588,7 +741,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
588
741
|
INPUT: string;
|
|
589
742
|
SELECT: string;
|
|
590
743
|
DATE: string;
|
|
744
|
+
DATE_OUT: string;
|
|
591
745
|
DATE_TIME: string;
|
|
746
|
+
DATETIME_OUT: string;
|
|
592
747
|
CHECKBOX_GROUP: string;
|
|
593
748
|
INPUTNUMBER_RANGE: string;
|
|
594
749
|
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,4 +1,7 @@
|
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
componentCfg: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
};
|
|
2
5
|
paramCfg: {
|
|
3
6
|
type: ObjectConstructor;
|
|
4
7
|
default: null;
|
|
@@ -13,6 +16,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
16
|
};
|
|
14
17
|
}, {
|
|
15
18
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
componentCfg: {
|
|
20
|
+
type: ObjectConstructor;
|
|
21
|
+
};
|
|
16
22
|
paramCfg: {
|
|
17
23
|
type: ObjectConstructor;
|
|
18
24
|
default: null;
|
|
@@ -35,11 +41,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
41
|
dateType: any;
|
|
36
42
|
valueFormat: import("vue").ComputedRef<string>;
|
|
37
43
|
compType: import("vue").ComputedRef<any>;
|
|
38
|
-
|
|
44
|
+
optionSetting: import("vue").ComputedRef<any>;
|
|
39
45
|
widgetOptions: import("vue").ComputedRef<{
|
|
40
46
|
label: string;
|
|
41
47
|
value: string;
|
|
42
48
|
}[]>;
|
|
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
|
+
};
|
|
43
55
|
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
44
56
|
updateUnchangedValue: {
|
|
45
57
|
type: BooleanConstructor;
|
|
@@ -111,6 +123,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
111
123
|
LAST_YEAR: string;
|
|
112
124
|
};
|
|
113
125
|
}, 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<{
|
|
126
|
+
componentCfg: {
|
|
127
|
+
type: ObjectConstructor;
|
|
128
|
+
};
|
|
114
129
|
paramCfg: {
|
|
115
130
|
type: ObjectConstructor;
|
|
116
131
|
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,createVNode as r,unref as u,isRef as o,createBlock as s,createCommentVNode as p}from"vue";import d from"../../../../../date-picker/index.js";import{NSelect as n}from"naive-ui";import{WidgetTypeEnums as i,WidgetOptionEnums as m,WidgetValEnums as v}from"../../../types/enums.js";import{WidgetDateOptionEnums as f}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as y}from"../../render-widget/helpers/dateExtraMap.js";import{setDateDisabled as c,setTimeDisabled as b}from"../../render-widget/helpers/dateDisabled.js";const g={style:{display:"flex"}};var w=e({__name:"Date",props:{componentCfg:{type:Object},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:w}){const C=e,M=t({set(e){w("update:modelValue",e)},get:()=>C.modelValue}),V=t({set(e){w("update:presetVal",e)},get:()=>C.presetVal}),j=t((()=>T.value.toLowerCase()||i.DATE.toLowerCase())),D=t((()=>{let e="";switch(T.value){case i.DATE:e="yyyy-MM-dd";break;case i.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),T=t((()=>C.paramCfg._rawData.type)),h=t((()=>{var e,t;return null==(t=null==(e=C.paramCfg)?void 0:e._rawData)?void 0:t.optionType})),_=t((()=>{var e;const t=h.value||m.ALL;if(T.value&&t){const a=`${T.value}_${t}`,l=f[a];let r=(null!=(e=y[l])?e:[]).map((e=>({label:e.title,value:e.con})));return r.unshift({label:"自定义输入",value:v.CUSTOM}),r}return[]}));function x(e){return c(e,h.value)}function A(e){return b(e,h.value)}return(e,t)=>(a(),l("div",g,[r(u(n),{style:{width:"120px"},class:"form-item",to:"body",value:u(V),"onUpdate:value":t[0]||(t[0]=e=>o(V)?V.value=e:null),options:u(_)},null,8,["value","options"]),u(V)===u(v).CUSTOM?(a(),s(u(d),{key:0,class:"form-item",type:u(j),clearable:"",to:"body","is-date-disabled":x,"is-time-disabled":A,valueFormat:u(D),"formatted-value":u(M),"onUpdate:formatted-value":t[1]||(t[1]=e=>o(M)?M.value=e:null)},null,8,["type","valueFormat","formatted-value"])):p("v-if",!0)]))}});export{w as default};
|
package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue.d.ts
CHANGED
|
@@ -35,8 +35,15 @@ 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>;
|
|
38
41
|
startPlaceholder: import("vue").ComputedRef<"初始日期" | "初始时间">;
|
|
39
42
|
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>;
|
|
40
47
|
dateType: any;
|
|
41
48
|
widgetOptions: import("vue").ComputedRef<{
|
|
42
49
|
label: string;
|
|
@@ -45,8 +52,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
52
|
presetValCp: import("vue").WritableComputedRef<string>;
|
|
46
53
|
handleChange: (val: any, type: 'start' | 'end') => void;
|
|
47
54
|
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
|
+
};
|
|
48
60
|
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
|
+
};
|
|
49
66
|
NSelect: any;
|
|
67
|
+
NPopover: any;
|
|
50
68
|
CDatePicker: import("../../../../..").SFCWithInstall<import("vue").DefineComponent<{
|
|
51
69
|
updateUnchangedValue: {
|
|
52
70
|
type: BooleanConstructor;
|
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,createVNode as i,unref as d,isRef as o,withCtx as s,toDisplayString as v,createCommentVNode as n}from"vue";import{NSelect as m,NPopover as p}from"naive-ui";import f from"../../../../../date-picker/index.js";import c from"moment";import{isString as y}from"lodash-es";import{WidgetOptionEnums as b,WidgetTypeEnums as g,WidgetValEnums as T}from"../../../types/enums.js";import{WidgetDateOptionEnums as h}from"../../render-widget/helpers/enums.js";import{widgetDateValOptions as D}from"../../render-widget/helpers/dateExtraMap.js";import{dateDisabledCollect as M,isStartDateRangeDisabled as E,isTimeStartRangeDisabled as _,isEndDateRangeDisabled as w,isTimeEndRangeDisabled as A}from"../../render-widget/helpers/dateDisabled.js";const V={style:{display:"flex"}},Y={key:0,style:{display:"flex"}},k={key:0},x={key:0};var C=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:C}){const U=e,j=a(),F=a(),O=l((()=>{let e="";switch(H.value){case g.DATE:e="yyyy-MM-dd";break;case g.DATE_TIME:e="yyyy-MM-dd HH:mm:ss"}return e})),S=l((()=>{let e="";switch(H.value){case g.DATE:e="YYYY-MM-DD";break;case g.DATE_TIME:e="YYYY-MM-DD HH:mm:ss"}return e})),H=l((()=>U.paramCfg._rawData.type)),I=l((()=>{var e,a;return null==(a=null==(e=U.paramCfg)?void 0:e._rawData)?void 0:a.optionType})),L=l((()=>I.value===b.PAST_TIME)),$=l((()=>I.value===b.FUTURE_TIME)),R=l((()=>H.value===g.DATE?"初始日期":"初始时间")),N=l((()=>H.value===g.DATE?"截止日期":"截止时间")),G=l((()=>$.value?M.curTime:"00:00:00")),P=l((()=>L.value?M.curTime:"23:59:59")),q=l((()=>j.value?c(j.value).format(S.value):null)),z=l((()=>F.value?c(F.value).format(S.value):null)),B=l((()=>H.value.toLowerCase()||g.DATE.toLowerCase())),J=l((()=>{var e;const a=I.value||b.ALL;if(H.value&&a){const l=`${H.value}_${a}_RANGE`,t=h[l];let u=(null!=(e=D[t])?e:[]).map((e=>({label:e.title,value:e.con})));return u.unshift({label:"自定义输入",value:T.CUSTOM}),u}return[]})),K=l({set(e){C("update:presetVal",e)},get:()=>U.presetVal});function Q(e,a){var l,t;switch(a){case"start":j.value=e;break;case"end":F.value=e}const u=q.value||z.value?`${null!=(l=q.value)?l:""} ~ ${null!=(t=z.value)?t:""}`:"";C("update:modelValue",u)}function W(e){return E(e,I.value,F.value)}function X(e){return _(e,I.value,F.value)}function Z(e){return w(e,I.value,j.value)}function ee(e){return A(e,I.value,j.value)}return t((()=>U.modelValue),(e=>{if(e&&y(e)&&e.includes("~")){const[a,l]=e.split("~");return a.trim()&&(j.value=c(a.trim()).valueOf()),void(l.trim()&&(F.value=c(l.trim()).valueOf()))}j.value=F.value=null}),{immediate:!0}),(e,a)=>(u(),r("div",V,[i(d(m),{style:{width:"120px"},class:"form-item",to:"body",value:d(K),"onUpdate:value":a[0]||(a[0]=e=>o(K)?K.value=e:null),options:d(J)},null,8,["value","options"]),d(K)===d(T).CUSTOM?(u(),r("div",Y,[i(d(p),{trigger:"hover",disabled:!d(q)},{trigger:s((()=>[i(d(f),{type:d(B),"default-time":d(G),clearable:"",to:"body",valueFormat:d(O),placeholder:d(R),value:j.value,"is-date-disabled":W,"is-time-disabled":X,"onUpdate:value":a[1]||(a[1]=e=>Q(e,"start"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(q)?(u(),r("span",k,v(d(q)),1)):n("v-if",!0)])),_:1},8,["disabled"]),i(d(p),{trigger:"hover",disabled:!d(z)},{trigger:s((()=>[i(d(f),{style:{"margin-left":"5px"},type:d(B),"default-time":d(P),clearable:"",to:"body",valueFormat:d(O),placeholder:d(N),value:F.value,"is-date-disabled":Z,"is-time-disabled":ee,"onUpdate:value":a[2]||(a[2]=e=>Q(e,"end"))},null,8,["type","default-time","valueFormat","placeholder","value"])])),default:s((()=>[d(z)?(u(),r("span",x,v(d(z)),1)):n("v-if",!0)])),_:1},8,["disabled"])])):n("v-if",!0)]))}});export{C as default};
|
package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { SelectOption } from 'naive-ui';
|
|
2
1
|
declare const _default: import("vue").DefineComponent<{
|
|
3
2
|
paramCfg: {
|
|
4
3
|
type: ObjectConstructor;
|
|
@@ -9,6 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
9
8
|
default: null;
|
|
10
9
|
};
|
|
11
10
|
}, {
|
|
11
|
+
message: import("naive-ui").MessageApi;
|
|
12
12
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
13
13
|
paramCfg: {
|
|
14
14
|
type: ObjectConstructor;
|
|
@@ -22,27 +22,145 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
23
23
|
}>>;
|
|
24
24
|
handleGetConfigApi: (params: any, key: string, config: {} | undefined, filterApiConfigVal: any) => Promise<any>;
|
|
25
|
-
$attrs: {
|
|
26
|
-
[x: string]: unknown;
|
|
27
|
-
};
|
|
28
25
|
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
29
|
-
selectOptions: import("vue").Ref<any[]>;
|
|
30
26
|
isLoading: import("vue").Ref<boolean>;
|
|
31
27
|
filterApiConfig: import("../../../../..").AnyObject;
|
|
32
|
-
|
|
28
|
+
totalPage: import("vue").Ref<number>;
|
|
29
|
+
menuProps: {
|
|
30
|
+
class: string;
|
|
31
|
+
};
|
|
32
|
+
curPage: import("vue").Ref<number>;
|
|
33
|
+
fieldTitleList: import("vue").Ref<any>;
|
|
34
|
+
selectOptions: import("vue").Ref<any[]>;
|
|
35
|
+
keywordVal: import("vue").Ref<any>;
|
|
33
36
|
optionSetting: import("vue").ComputedRef<any>;
|
|
34
37
|
isMultiple: import("vue").ComputedRef<boolean>;
|
|
35
|
-
|
|
38
|
+
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
|
39
|
+
isLastPage: import("vue").ComputedRef<boolean>;
|
|
40
|
+
valueCp: import("vue").ComputedRef<string | number | any[]>;
|
|
41
|
+
setOptionActive: (selectIds: string[]) => void;
|
|
42
|
+
handleUpdateSelect: (value: string[] | null) => void;
|
|
43
|
+
handleUpdatePage: (page: number) => Promise<void>;
|
|
44
|
+
getOptionsData: (keyword: string, curPage: number) => Promise<any>;
|
|
36
45
|
_handleSearch: (query: string) => Promise<void>;
|
|
37
46
|
handleSearch: (query: string) => Promise<void>;
|
|
38
47
|
handleInitData: () => Promise<void>;
|
|
39
|
-
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
}>;
|
|
48
|
+
handleClear: () => Promise<void>;
|
|
42
49
|
renderTag: ({ option, handleClose }: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
50
|
[key: string]: any;
|
|
44
51
|
}>;
|
|
45
52
|
NSelect: any;
|
|
53
|
+
SelectDynamicOption: import("vue").DefineComponent<{
|
|
54
|
+
dynamicOptionInfo: {
|
|
55
|
+
type: import("vue").PropType<import("../../../../..").AnyObject>;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
58
|
+
fieldTitleList: {
|
|
59
|
+
type: import("vue").PropType<import("../../../../..").AnyObject[]>;
|
|
60
|
+
default: () => never[];
|
|
61
|
+
};
|
|
62
|
+
optionList: {
|
|
63
|
+
type: import("vue").PropType<import("../../../../..").AnyObject[]>;
|
|
64
|
+
default: () => never[];
|
|
65
|
+
};
|
|
66
|
+
isMultiple: {
|
|
67
|
+
type: BooleanConstructor;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
curPage: {
|
|
71
|
+
type: NumberConstructor;
|
|
72
|
+
default: number;
|
|
73
|
+
};
|
|
74
|
+
isLastPage: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
selectMinWidth: number;
|
|
80
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
81
|
+
dynamicOptionInfo: {
|
|
82
|
+
type: import("vue").PropType<import("../../../../..").AnyObject>;
|
|
83
|
+
default: () => {};
|
|
84
|
+
};
|
|
85
|
+
fieldTitleList: {
|
|
86
|
+
type: import("vue").PropType<import("../../../../..").AnyObject[]>;
|
|
87
|
+
default: () => never[];
|
|
88
|
+
};
|
|
89
|
+
optionList: {
|
|
90
|
+
type: import("vue").PropType<import("../../../../..").AnyObject[]>;
|
|
91
|
+
default: () => never[];
|
|
92
|
+
};
|
|
93
|
+
isMultiple: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
curPage: {
|
|
98
|
+
type: NumberConstructor;
|
|
99
|
+
default: number;
|
|
100
|
+
};
|
|
101
|
+
isLastPage: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
}>> & {
|
|
106
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
}>>;
|
|
109
|
+
emit: (event: "updateSelect" | "updatePage", ...args: any[]) => void;
|
|
110
|
+
dragEndWidth: import("vue").Ref<number>;
|
|
111
|
+
showKeys: import("vue").ComputedRef<any>;
|
|
112
|
+
titleList: import("vue").ComputedRef<string[]>;
|
|
113
|
+
handleSelect: (option: any) => void;
|
|
114
|
+
searchByPage: (onePage: number) => void;
|
|
115
|
+
changeWidth: ({ distance }: any) => void;
|
|
116
|
+
saveWidth: () => void;
|
|
117
|
+
NEmpty: any;
|
|
118
|
+
NButtonGroup: any;
|
|
119
|
+
NButton: any;
|
|
120
|
+
NIcon: any;
|
|
121
|
+
NPopover: any;
|
|
122
|
+
vFlexibleResize: {
|
|
123
|
+
mounted(el: any, { value }: any): void;
|
|
124
|
+
beforeUnmount(el: any): void;
|
|
125
|
+
};
|
|
126
|
+
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<{}>>, {}>;
|
|
127
|
+
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<{}>>, {}>;
|
|
128
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("updateSelect" | "updatePage")[], "updateSelect" | "updatePage", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
129
|
+
dynamicOptionInfo: {
|
|
130
|
+
type: import("vue").PropType<import("../../../../..").AnyObject>;
|
|
131
|
+
default: () => {};
|
|
132
|
+
};
|
|
133
|
+
fieldTitleList: {
|
|
134
|
+
type: import("vue").PropType<import("../../../../..").AnyObject[]>;
|
|
135
|
+
default: () => never[];
|
|
136
|
+
};
|
|
137
|
+
optionList: {
|
|
138
|
+
type: import("vue").PropType<import("../../../../..").AnyObject[]>;
|
|
139
|
+
default: () => never[];
|
|
140
|
+
};
|
|
141
|
+
isMultiple: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
curPage: {
|
|
146
|
+
type: NumberConstructor;
|
|
147
|
+
default: number;
|
|
148
|
+
};
|
|
149
|
+
isLastPage: {
|
|
150
|
+
type: BooleanConstructor;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
}>> & {
|
|
154
|
+
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
155
|
+
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
156
|
+
}, {
|
|
157
|
+
dynamicOptionInfo: import("../../../../..").AnyObject;
|
|
158
|
+
fieldTitleList: import("../../../../..").AnyObject[];
|
|
159
|
+
optionList: import("../../../../..").AnyObject[];
|
|
160
|
+
isMultiple: boolean;
|
|
161
|
+
curPage: number;
|
|
162
|
+
isLastPage: boolean;
|
|
163
|
+
}>;
|
|
46
164
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
165
|
paramCfg: {
|
|
48
166
|
type: ObjectConstructor;
|
package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,
|
|
1
|
+
import{defineComponent as e,ref as a,inject as l,computed as t,openBlock as n,createBlock as o,unref as u,isRef as i,withModifiers as r,withCtx as s,createVNode as c,h as p}from"vue";import{useMessage as d,NSelect as v,NTag as m}from"naive-ui";import{WidgetOptionEnums as f}from"../../../types/enums.js";import{useDebounceFn as y}from"@vueuse/core";import g from"../../../hooks/useMixins.js";import{InjectionFilterApiConfig as h}from"../../../constants/index.js";import b from"../../render-widget/components/SelectDynamicOption/index.vue.js";var w=e({__name:"SelectDynamic",props:{paramCfg:{type:Object,default:null},modelValue:{type:[Array,String,Number],default:null}},emits:["update:modelValue"],setup(e,{emit:w}){const S=e,V=d(),{handleGetConfigApi:O}=g(),C=a(!1),L=l(h),x=a(0),A={class:"select-dynamic-popover"},P=a(1),j=a(),I=a([]),k=a(),T=t((()=>{var e;return null==(e=S.paramCfg)?void 0:e.optionSetting})),K=t((()=>T.value===f.MULTIPLE)),M=t((()=>{const{dynamicOptionInfo:e={}}=S.paramCfg.optionInfo;return e})),U=t((()=>x.value>0&&P.value>=x.value)),D=t((()=>{var e;if(Array.isArray(S.modelValue)&&S.modelValue.length>0){const e=S.modelValue;if(N(e),!K.value&&1==e.length){const a=I.value.find((a=>a.value===e[0]));return JSON.stringify(a)}return I.value.filter((a=>e.includes(a.value)))}return N([]),null!=(e=S.modelValue)?e:null}));function N(e){I.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function _(e){w("update:modelValue",e)}async function E(e){P.value=e,await J(k.value,P.value)}async function J(e,a){try{if(Object.keys(M.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:n,filterKeys:o,showKeys:u,valueKey:i}=M.value;let r={wordbookId:t,autograph:l,wordbookType:n,fieldKeys:o,page:a};o.length>0&&(r[o[0]]=e),C.value=!0;let s=await O(r,"requestDynamicSelect",{},L);if(s){const{fieldList:e=[],rows:a=[],total:l=0}=s.map,t=a.map((e=>({...e,label:e[u[0]],value:e[i]})));return j.value=null!=e?e:[],I.value=null!=t?t:[],x.value=l,t}}}catch(e){V.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{C.value=!1}}const q=y((async e=>{await async function(e){k.value=e.trim(),P.value=1,await J(k.value,P.value)}(e)}),300);async function G(){Object.keys(M.value).length>0&&L&&await J("",P.value)}async function $(){w("update:modelValue",null),await G()}function z({option:e,handleClose:a}){if(K.value){const l=e.value;return p(m,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(S.modelValue)&&S.modelValue.length>0){const e=S.modelValue,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);w("update:modelValue",l.length>0?l:null)}}}},{default:()=>p("div",l.label)})}const l=e.value?JSON.parse(e.value):{label:""};return p("div",l.label)}return G(),(e,a)=>(n(),o(u(v),{id:"select-dynamic-popover",style:{width:"200px"},value:u(D),"onUpdate:value":a[0]||(a[0]=e=>i(D)?D.value=e:null),remote:"",clearable:"",filterable:"",maxTagCount:"responsive",loading:C.value,multiple:u(K),menuProps:A,"render-tag":z,onSearch:u(q),onClear:$,onClick:a[1]||(a[1]=r((()=>{}),["stop"]))},{empty:s((()=>[c(b,{dynamicOptionInfo:u(M),fieldTitleList:j.value,optionList:I.value,isMultiple:u(K),curPage:P.value,isLastPage:u(U),onUpdateSelect:_,onUpdatePage:E},null,8,["dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage"])])),_:1},8,["value","loading","multiple","onSearch"]))}});export{w as default};
|