cnhis-design-vue 3.1.56-release.0 → 3.1.56
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/annotation-edit/index.d.ts +18 -0
- package/es/components/annotation-edit/src/AnnotationEdit.d.ts +18 -0
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/annotation-edit/src/type.d.ts +4 -0
- package/es/components/audio-sdk/src/audioSDK.d.ts +20 -6
- package/es/components/audio-sdk/src/audioSDK.js +1 -1
- package/es/components/audio-sdk/src/components/recordingDialog.vue.d.ts +14 -0
- package/es/components/audio-sdk/src/components/recordingDialog.vue2.js +1 -1
- package/es/components/audio-sdk/src/utils/recordingDialog.d.ts +5 -2
- package/es/components/audio-sdk/src/utils/recordingDialog.js +1 -1
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/index.d.ts +14 -0
- package/es/components/base-search/src/index.vue.d.ts +14 -0
- package/es/components/base-search/src/index.vue2.js +1 -1
- package/es/components/base-search/style/index.css +1 -1
- package/es/components/big-table/index.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +26 -4
- package/es/components/classification/index.d.ts +20 -7
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +14 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +20 -7
- package/es/components/classification/src/components/set-classification/index.vue2.js +1 -1
- package/es/components/classification/src/components/table-modal/index.vue.d.ts +6 -5
- package/es/components/classification/src/components/table-modal/index.vue2.js +1 -1
- package/es/components/classification/src/index.vue.d.ts +20 -7
- package/es/components/classification/src/index.vue2.js +1 -1
- package/es/components/fabric-chart/index.d.ts +4 -2
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +4 -2
- 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/useCenter.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useOther.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.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/temperature/useTop.js +1 -1
- package/es/components/form-config/index.d.ts +82 -14
- package/es/components/form-config/src/FormConfig.vue.d.ts +82 -14
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +26 -4
- package/es/components/form-config/src/components/FormConfigCreator.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +41 -7
- package/es/components/form-config/src/components/FormConfigEdit.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +26 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +27 -4
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +26 -4
- package/es/components/form-render/src/components/renderer/formItem.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +1 -0
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +10 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.js +1 -1
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +3 -1
- package/es/components/iho-table/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useConfigHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDataHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useDomInsertHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useFieldHooks.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useSetupHooks.js +1 -1
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
- package/es/components/iho-table/src/plugins/headerPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +77 -13
- package/es/components/info-header/src/InfoHeader.vue.d.ts +77 -13
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +5 -1
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +5 -1
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -5
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +26 -4
- package/es/components/recommend-search/index.d.ts +8 -8
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +8 -8
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +3 -3
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +3 -3
- package/es/components/shortcut-setter/index.d.ts +26 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +26 -4
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +14 -0
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts +15 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue.d.ts +14 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +1 -1
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +15 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +15 -0
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/index.js +1 -1
- package/es/shared/components/CancelRadio/index.js +1 -1
- package/es/shared/components/InputNumberSlash/index.js +1 -1
- package/es/shared/components/SelectPage/index.js +1 -1
- package/es/shared/components/SlotRender/index.js +1 -1
- package/es/shared/components/SvgIcon/index.js +1 -1
- package/es/shared/components/TextOverTooltip/index.js +1 -1
- package/es/shared/components/VueDraggable/index.js +1 -1
- package/es/shared/components/no-data/index.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/business.js +1 -1
- package/es/shared/utils/tapable/AsyncParallelBailHook.js +1 -0
- package/es/shared/utils/tapable/AsyncSeriesBailHook.js +1 -0
- package/es/shared/utils/tapable/AsyncSeriesLoopHook.js +1 -0
- package/es/shared/utils/tapable/AsyncSeriesWaterfallHook.js +1 -0
- package/es/shared/utils/tapable/SyncBailHook.js +1 -0
- package/es/shared/utils/tapable/SyncLoopHook.js +1 -0
- package/es/shared/utils/vexutils.js +1 -1
- package/package.json +2 -2
|
@@ -107,7 +107,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
107
107
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
108
108
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
109
109
|
}>>;
|
|
110
|
-
emits: (event: "delete" | "clear" | "
|
|
110
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
111
111
|
valueRef: import("vue").Ref<string | number | null | undefined> | import("vue").WritableComputedRef<string | number | null | undefined>;
|
|
112
112
|
componentMap: {
|
|
113
113
|
input: import("vue").DefineComponent<{
|
|
@@ -176,7 +176,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
176
176
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
177
177
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
178
178
|
}>>;
|
|
179
|
-
emits: (event: "delete" | "clear" | "
|
|
179
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
180
180
|
baseSearchRef: import("vue").Ref<import("./src/types").BaseSearchExpose | undefined>;
|
|
181
181
|
setPattern: (value?: string) => void;
|
|
182
182
|
valueRef: import("vue").Ref<string | undefined> | import("vue").WritableComputedRef<string | undefined>;
|
|
@@ -293,7 +293,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
293
293
|
type: BooleanConstructor;
|
|
294
294
|
default: boolean;
|
|
295
295
|
};
|
|
296
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
296
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
297
297
|
displayValue: {
|
|
298
298
|
type: StringConstructor;
|
|
299
299
|
};
|
|
@@ -342,7 +342,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
342
342
|
popProps: Record<string, any>;
|
|
343
343
|
clearPatternOnOpenMenu: boolean;
|
|
344
344
|
}>;
|
|
345
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
345
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
346
346
|
value: {
|
|
347
347
|
type: StringConstructor;
|
|
348
348
|
};
|
|
@@ -460,7 +460,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
460
460
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
461
461
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
462
462
|
}>>;
|
|
463
|
-
emits: (event: "delete" | "clear" | "
|
|
463
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
464
464
|
showRef: import("vue").Ref<boolean>;
|
|
465
465
|
displayPlaceholder: import("vue").ComputedRef<string>;
|
|
466
466
|
currentOption: import("vue").Ref<import("../../shared/types").AnyObject | undefined>;
|
|
@@ -525,7 +525,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
525
525
|
type: BooleanConstructor;
|
|
526
526
|
default: boolean;
|
|
527
527
|
};
|
|
528
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
528
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
529
529
|
displayValue: {
|
|
530
530
|
type: StringConstructor;
|
|
531
531
|
};
|
|
@@ -575,7 +575,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
575
575
|
clearPatternOnOpenMenu: boolean;
|
|
576
576
|
}>;
|
|
577
577
|
NIcon: any;
|
|
578
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
578
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
579
579
|
value: {
|
|
580
580
|
type: import("vue").PropType<string | number | null>;
|
|
581
581
|
};
|
|
@@ -629,7 +629,7 @@ declare const RecommendSearch: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
629
629
|
inputRef: import("vue").Ref<any>;
|
|
630
630
|
exposeMethods: Record<any, any>;
|
|
631
631
|
instance: import("vue").ComponentInternalInstance | null;
|
|
632
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
632
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
633
633
|
mode: {
|
|
634
634
|
type: import("vue").PropType<"select" | "input">;
|
|
635
635
|
default: string;
|
|
@@ -109,7 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
110
110
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
111
111
|
}>>;
|
|
112
|
-
emits: (event: "delete" | "clear" | "
|
|
112
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
113
113
|
valueRef: import("vue").Ref<string | number | null | undefined> | import("vue").WritableComputedRef<string | number | null | undefined>;
|
|
114
114
|
componentMap: {
|
|
115
115
|
input: import("vue").DefineComponent<{
|
|
@@ -178,7 +178,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
178
178
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
179
179
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
180
180
|
}>>;
|
|
181
|
-
emits: (event: "delete" | "clear" | "
|
|
181
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
182
182
|
baseSearchRef: import("vue").Ref<import("../../../components/recommend-search/src/types").BaseSearchExpose | undefined>;
|
|
183
183
|
setPattern: (value?: string) => void;
|
|
184
184
|
valueRef: import("vue").Ref<string | undefined> | import("vue").WritableComputedRef<string | undefined>;
|
|
@@ -295,7 +295,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
295
295
|
type: BooleanConstructor;
|
|
296
296
|
default: boolean;
|
|
297
297
|
};
|
|
298
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
298
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
299
299
|
displayValue: {
|
|
300
300
|
type: StringConstructor;
|
|
301
301
|
};
|
|
@@ -344,7 +344,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
344
344
|
popProps: Record<string, any>;
|
|
345
345
|
clearPatternOnOpenMenu: boolean;
|
|
346
346
|
}>;
|
|
347
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
347
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
348
348
|
value: {
|
|
349
349
|
type: StringConstructor;
|
|
350
350
|
};
|
|
@@ -462,7 +462,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
462
462
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
463
463
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
464
464
|
}>>;
|
|
465
|
-
emits: (event: "delete" | "clear" | "
|
|
465
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
466
466
|
showRef: import("vue").Ref<boolean>;
|
|
467
467
|
displayPlaceholder: import("vue").ComputedRef<string>;
|
|
468
468
|
currentOption: import("vue").Ref<AnyObject | undefined>;
|
|
@@ -527,7 +527,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
527
527
|
type: BooleanConstructor;
|
|
528
528
|
default: boolean;
|
|
529
529
|
};
|
|
530
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
530
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
531
531
|
displayValue: {
|
|
532
532
|
type: StringConstructor;
|
|
533
533
|
};
|
|
@@ -577,7 +577,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
577
577
|
clearPatternOnOpenMenu: boolean;
|
|
578
578
|
}>;
|
|
579
579
|
NIcon: any;
|
|
580
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
580
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
581
581
|
value: {
|
|
582
582
|
type: PropType<string | number | null>;
|
|
583
583
|
};
|
|
@@ -631,7 +631,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
631
631
|
inputRef: import("vue").Ref<any>;
|
|
632
632
|
exposeMethods: Record<any, any>;
|
|
633
633
|
instance: import("vue").ComponentInternalInstance | null;
|
|
634
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
634
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
635
635
|
mode: {
|
|
636
636
|
type: PropType<"select" | "input">;
|
|
637
637
|
default: string;
|
|
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
32
|
type: BooleanConstructor;
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
35
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
36
|
displayValue: {
|
|
37
37
|
type: StringConstructor;
|
|
38
38
|
};
|
|
@@ -68,7 +68,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
68
68
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
69
69
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
}>>;
|
|
71
|
-
emits: (event: "delete" | "clear" | "
|
|
71
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
72
72
|
baseSearchRef: import("vue").Ref<BaseSearchExpose | undefined>;
|
|
73
73
|
setPattern: (value?: string) => void;
|
|
74
74
|
valueRef: import("vue").Ref<string | undefined> | import("vue").WritableComputedRef<string | undefined>;
|
|
@@ -185,7 +185,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
185
185
|
type: BooleanConstructor;
|
|
186
186
|
default: boolean;
|
|
187
187
|
};
|
|
188
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
188
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
189
189
|
displayValue: {
|
|
190
190
|
type: StringConstructor;
|
|
191
191
|
};
|
|
@@ -234,7 +234,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
234
|
popProps: Record<string, any>;
|
|
235
235
|
clearPatternOnOpenMenu: boolean;
|
|
236
236
|
}>;
|
|
237
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
237
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
238
238
|
value: {
|
|
239
239
|
type: StringConstructor;
|
|
240
240
|
};
|
|
@@ -75,7 +75,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
75
75
|
onOpenMenu?: ((...args: any[]) => any) | undefined;
|
|
76
76
|
onCloseMenu?: ((...args: any[]) => any) | undefined;
|
|
77
77
|
}>>;
|
|
78
|
-
emits: (event: "delete" | "clear" | "
|
|
78
|
+
emits: (event: "delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu", ...args: any[]) => void;
|
|
79
79
|
showRef: import("vue").Ref<boolean>;
|
|
80
80
|
displayPlaceholder: import("vue").ComputedRef<string>;
|
|
81
81
|
currentOption: import("vue").Ref<AnyObject | undefined>;
|
|
@@ -140,7 +140,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
140
|
type: BooleanConstructor;
|
|
141
141
|
default: boolean;
|
|
142
142
|
};
|
|
143
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "
|
|
143
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "search" | "update:show" | "keydown" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "keydown" | "clear" | "update:show" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
144
144
|
displayValue: {
|
|
145
145
|
type: StringConstructor;
|
|
146
146
|
};
|
|
@@ -190,7 +190,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
190
190
|
clearPatternOnOpenMenu: boolean;
|
|
191
191
|
}>;
|
|
192
192
|
NIcon: any;
|
|
193
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "
|
|
193
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "clear" | "search" | "update:value" | "choose" | "openMenu" | "closeMenu")[], "search" | "closeMenu" | "delete" | "clear" | "update:value" | "choose" | "openMenu", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
194
194
|
value: {
|
|
195
195
|
type: PropType<string | number | null>;
|
|
196
196
|
};
|
|
@@ -1879,7 +1879,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1879
1879
|
default: () => {};
|
|
1880
1880
|
};
|
|
1881
1881
|
annotation: {
|
|
1882
|
-
type: import("vue").PropType<import("
|
|
1882
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
1883
|
+
};
|
|
1884
|
+
annotationShortcuts: {
|
|
1885
|
+
type: import("vue").PropType<(string | {
|
|
1886
|
+
label: string;
|
|
1887
|
+
value: string;
|
|
1888
|
+
})[] | undefined>;
|
|
1883
1889
|
};
|
|
1884
1890
|
consumer: {
|
|
1885
1891
|
type: BooleanConstructor;
|
|
@@ -2035,7 +2041,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2035
2041
|
default: () => {};
|
|
2036
2042
|
};
|
|
2037
2043
|
annotation: {
|
|
2038
|
-
type: import("vue").PropType<import("
|
|
2044
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
2045
|
+
};
|
|
2046
|
+
annotationShortcuts: {
|
|
2047
|
+
type: import("vue").PropType<(string | {
|
|
2048
|
+
label: string;
|
|
2049
|
+
value: string;
|
|
2050
|
+
})[] | undefined>;
|
|
2039
2051
|
};
|
|
2040
2052
|
consumer: {
|
|
2041
2053
|
type: BooleanConstructor;
|
|
@@ -2229,7 +2241,11 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2229
2241
|
}>;
|
|
2230
2242
|
components: Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
2231
2243
|
scope: import("../../shared/types").AnyObject;
|
|
2232
|
-
annotation: import("
|
|
2244
|
+
annotation: Record<string, import("../annotation-edit/src/type").AnnotationItem>;
|
|
2245
|
+
annotationShortcuts: (string | {
|
|
2246
|
+
label: string;
|
|
2247
|
+
value: string;
|
|
2248
|
+
})[] | undefined;
|
|
2233
2249
|
consumer: boolean;
|
|
2234
2250
|
uuid: string;
|
|
2235
2251
|
lifeCycle: Partial<{
|
|
@@ -2527,7 +2543,13 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2527
2543
|
default: () => {};
|
|
2528
2544
|
};
|
|
2529
2545
|
annotation: {
|
|
2530
|
-
type: import("vue").PropType<import("
|
|
2546
|
+
type: import("vue").PropType<Record<string, import("../annotation-edit/src/type").AnnotationItem>>;
|
|
2547
|
+
};
|
|
2548
|
+
annotationShortcuts: {
|
|
2549
|
+
type: import("vue").PropType<(string | {
|
|
2550
|
+
label: string;
|
|
2551
|
+
value: string;
|
|
2552
|
+
})[] | undefined>;
|
|
2531
2553
|
};
|
|
2532
2554
|
consumer: {
|
|
2533
2555
|
type: BooleanConstructor;
|
|
@@ -1882,7 +1882,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1882
1882
|
default: () => {};
|
|
1883
1883
|
};
|
|
1884
1884
|
annotation: {
|
|
1885
|
-
type: import("vue").PropType<import("
|
|
1885
|
+
type: import("vue").PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
1886
|
+
};
|
|
1887
|
+
annotationShortcuts: {
|
|
1888
|
+
type: import("vue").PropType<(string | {
|
|
1889
|
+
label: string;
|
|
1890
|
+
value: string;
|
|
1891
|
+
})[] | undefined>;
|
|
1886
1892
|
};
|
|
1887
1893
|
consumer: {
|
|
1888
1894
|
type: BooleanConstructor;
|
|
@@ -2038,7 +2044,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2038
2044
|
default: () => {};
|
|
2039
2045
|
};
|
|
2040
2046
|
annotation: {
|
|
2041
|
-
type: import("vue").PropType<import("
|
|
2047
|
+
type: import("vue").PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
2048
|
+
};
|
|
2049
|
+
annotationShortcuts: {
|
|
2050
|
+
type: import("vue").PropType<(string | {
|
|
2051
|
+
label: string;
|
|
2052
|
+
value: string;
|
|
2053
|
+
})[] | undefined>;
|
|
2042
2054
|
};
|
|
2043
2055
|
consumer: {
|
|
2044
2056
|
type: BooleanConstructor;
|
|
@@ -2232,7 +2244,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2232
2244
|
}>;
|
|
2233
2245
|
components: Record<string, Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | import("vue").FunctionalComponent<{}, {}>>;
|
|
2234
2246
|
scope: import("../../../shared/types").AnyObject;
|
|
2235
|
-
annotation: import("
|
|
2247
|
+
annotation: Record<string, import("../../annotation-edit/src/type").AnnotationItem>;
|
|
2248
|
+
annotationShortcuts: (string | {
|
|
2249
|
+
label: string;
|
|
2250
|
+
value: string;
|
|
2251
|
+
})[] | undefined;
|
|
2236
2252
|
consumer: boolean;
|
|
2237
2253
|
uuid: string;
|
|
2238
2254
|
lifeCycle: Partial<{
|
|
@@ -2530,7 +2546,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2530
2546
|
default: () => {};
|
|
2531
2547
|
};
|
|
2532
2548
|
annotation: {
|
|
2533
|
-
type: import("vue").PropType<import("
|
|
2549
|
+
type: import("vue").PropType<Record<string, import("../../annotation-edit/src/type").AnnotationItem>>;
|
|
2550
|
+
};
|
|
2551
|
+
annotationShortcuts: {
|
|
2552
|
+
type: import("vue").PropType<(string | {
|
|
2553
|
+
label: string;
|
|
2554
|
+
value: string;
|
|
2555
|
+
})[] | undefined>;
|
|
2534
2556
|
};
|
|
2535
2557
|
consumer: {
|
|
2536
2558
|
type: BooleanConstructor;
|
|
@@ -461,6 +461,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
461
461
|
type: BooleanConstructor;
|
|
462
462
|
default: boolean;
|
|
463
463
|
};
|
|
464
|
+
loading: {
|
|
465
|
+
type: BooleanConstructor;
|
|
466
|
+
default: boolean;
|
|
467
|
+
};
|
|
464
468
|
}, {
|
|
465
469
|
selectMinWidth: number;
|
|
466
470
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -492,6 +496,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
492
496
|
type: BooleanConstructor;
|
|
493
497
|
default: boolean;
|
|
494
498
|
};
|
|
499
|
+
loading: {
|
|
500
|
+
type: BooleanConstructor;
|
|
501
|
+
default: boolean;
|
|
502
|
+
};
|
|
495
503
|
}>> & {
|
|
496
504
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
497
505
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -500,6 +508,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
500
508
|
dragEndWidth: import("vue").Ref<number>;
|
|
501
509
|
showKeys: import("vue").ComputedRef<any>;
|
|
502
510
|
titleList: import("vue").ComputedRef<string[]>;
|
|
511
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
503
512
|
handleSelect: (option: any) => void;
|
|
504
513
|
searchByPage: (onePage: number) => void;
|
|
505
514
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -575,10 +584,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
575
584
|
type: BooleanConstructor;
|
|
576
585
|
default: boolean;
|
|
577
586
|
};
|
|
587
|
+
loading: {
|
|
588
|
+
type: BooleanConstructor;
|
|
589
|
+
default: boolean;
|
|
590
|
+
};
|
|
578
591
|
}>> & {
|
|
579
592
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
580
593
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
581
594
|
}, {
|
|
595
|
+
loading: boolean;
|
|
582
596
|
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
583
597
|
fieldTitleList: import("../../../..").AnyObject[];
|
|
584
598
|
optionList: import("../../../..").AnyObject[];
|
package/es/components/table-filter/src/components/classify-filter/components/SelectDynamic.vue.d.ts
CHANGED
|
@@ -84,6 +84,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
84
|
type: BooleanConstructor;
|
|
85
85
|
default: boolean;
|
|
86
86
|
};
|
|
87
|
+
loading: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
87
91
|
}, {
|
|
88
92
|
selectMinWidth: number;
|
|
89
93
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -115,6 +119,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
115
119
|
type: BooleanConstructor;
|
|
116
120
|
default: boolean;
|
|
117
121
|
};
|
|
122
|
+
loading: {
|
|
123
|
+
type: BooleanConstructor;
|
|
124
|
+
default: boolean;
|
|
125
|
+
};
|
|
118
126
|
}>> & {
|
|
119
127
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
120
128
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -123,6 +131,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
123
131
|
dragEndWidth: import("vue").Ref<number>;
|
|
124
132
|
showKeys: import("vue").ComputedRef<any>;
|
|
125
133
|
titleList: import("vue").ComputedRef<string[]>;
|
|
134
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
126
135
|
handleSelect: (option: any) => void;
|
|
127
136
|
searchByPage: (onePage: number) => void;
|
|
128
137
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -198,10 +207,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
198
207
|
type: BooleanConstructor;
|
|
199
208
|
default: boolean;
|
|
200
209
|
};
|
|
210
|
+
loading: {
|
|
211
|
+
type: BooleanConstructor;
|
|
212
|
+
default: boolean;
|
|
213
|
+
};
|
|
201
214
|
}>> & {
|
|
202
215
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
203
216
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
204
217
|
}, {
|
|
218
|
+
loading: boolean;
|
|
205
219
|
dynamicOptionInfo: import("../../../../..").AnyObject;
|
|
206
220
|
fieldTitleList: import("../../../../..").AnyObject[];
|
|
207
221
|
optionList: import("../../../../..").AnyObject[];
|
|
@@ -418,6 +418,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
418
418
|
type: BooleanConstructor;
|
|
419
419
|
default: boolean;
|
|
420
420
|
};
|
|
421
|
+
loading: {
|
|
422
|
+
type: BooleanConstructor;
|
|
423
|
+
default: boolean;
|
|
424
|
+
};
|
|
421
425
|
}, {
|
|
422
426
|
selectMinWidth: number;
|
|
423
427
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -449,6 +453,10 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
449
453
|
type: BooleanConstructor;
|
|
450
454
|
default: boolean;
|
|
451
455
|
};
|
|
456
|
+
loading: {
|
|
457
|
+
type: BooleanConstructor;
|
|
458
|
+
default: boolean;
|
|
459
|
+
};
|
|
452
460
|
}>> & {
|
|
453
461
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
454
462
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -457,6 +465,7 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
457
465
|
dragEndWidth: import("vue").Ref<number>;
|
|
458
466
|
showKeys: import("vue").ComputedRef<any>;
|
|
459
467
|
titleList: import("vue").ComputedRef<string[]>;
|
|
468
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
460
469
|
handleSelect: (option: any) => void;
|
|
461
470
|
searchByPage: (onePage: number) => void;
|
|
462
471
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -532,10 +541,15 @@ declare const SelectDynamic: import("vue").DefineComponent<{
|
|
|
532
541
|
type: BooleanConstructor;
|
|
533
542
|
default: boolean;
|
|
534
543
|
};
|
|
544
|
+
loading: {
|
|
545
|
+
type: BooleanConstructor;
|
|
546
|
+
default: boolean;
|
|
547
|
+
};
|
|
535
548
|
}>> & {
|
|
536
549
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
537
550
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
538
551
|
}, {
|
|
552
|
+
loading: boolean;
|
|
539
553
|
dynamicOptionInfo: import("../../../../..").AnyObject;
|
|
540
554
|
fieldTitleList: import("../../../../..").AnyObject[];
|
|
541
555
|
optionList: import("../../../../..").AnyObject[];
|
|
@@ -585,6 +585,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
585
585
|
type: BooleanConstructor;
|
|
586
586
|
default: boolean;
|
|
587
587
|
};
|
|
588
|
+
loading: {
|
|
589
|
+
type: BooleanConstructor;
|
|
590
|
+
default: boolean;
|
|
591
|
+
};
|
|
588
592
|
}, {
|
|
589
593
|
selectMinWidth: number;
|
|
590
594
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -616,6 +620,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
616
620
|
type: BooleanConstructor;
|
|
617
621
|
default: boolean;
|
|
618
622
|
};
|
|
623
|
+
loading: {
|
|
624
|
+
type: BooleanConstructor;
|
|
625
|
+
default: boolean;
|
|
626
|
+
};
|
|
619
627
|
}>> & {
|
|
620
628
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
621
629
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -624,6 +632,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
624
632
|
dragEndWidth: import("vue").Ref<number>;
|
|
625
633
|
showKeys: import("vue").ComputedRef<any>;
|
|
626
634
|
titleList: import("vue").ComputedRef<string[]>;
|
|
635
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
627
636
|
handleSelect: (option: any) => void;
|
|
628
637
|
searchByPage: (onePage: number) => void;
|
|
629
638
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -699,10 +708,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
699
708
|
type: BooleanConstructor;
|
|
700
709
|
default: boolean;
|
|
701
710
|
};
|
|
711
|
+
loading: {
|
|
712
|
+
type: BooleanConstructor;
|
|
713
|
+
default: boolean;
|
|
714
|
+
};
|
|
702
715
|
}>> & {
|
|
703
716
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
704
717
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
705
718
|
}, {
|
|
719
|
+
loading: boolean;
|
|
706
720
|
dynamicOptionInfo: import("../../../..").AnyObject;
|
|
707
721
|
fieldTitleList: import("../../../..").AnyObject[];
|
|
708
722
|
optionList: import("../../../..").AnyObject[];
|
package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
[x: string]: unknown;
|
|
27
27
|
};
|
|
28
28
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
29
|
+
selectDynamicRef: any;
|
|
29
30
|
isLoading: import("vue").Ref<boolean>;
|
|
30
31
|
filterApiConfig: import("../../../../..").AnyObject;
|
|
31
32
|
searchFilterList: import("vue").Ref<import("../../../../..").AnyObject[]>;
|
|
@@ -91,6 +92,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
91
92
|
type: BooleanConstructor;
|
|
92
93
|
default: boolean;
|
|
93
94
|
};
|
|
95
|
+
loading: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
94
99
|
}, {
|
|
95
100
|
selectMinWidth: number;
|
|
96
101
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -122,6 +127,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
122
127
|
type: BooleanConstructor;
|
|
123
128
|
default: boolean;
|
|
124
129
|
};
|
|
130
|
+
loading: {
|
|
131
|
+
type: BooleanConstructor;
|
|
132
|
+
default: boolean;
|
|
133
|
+
};
|
|
125
134
|
}>> & {
|
|
126
135
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
127
136
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
@@ -130,6 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
139
|
dragEndWidth: import("vue").Ref<number>;
|
|
131
140
|
showKeys: import("vue").ComputedRef<any>;
|
|
132
141
|
titleList: import("vue").ComputedRef<string[]>;
|
|
142
|
+
isOptionsNull: import("vue").ComputedRef<boolean>;
|
|
133
143
|
handleSelect: (option: any) => void;
|
|
134
144
|
searchByPage: (onePage: number) => void;
|
|
135
145
|
changeWidth: ({ distance }: any) => void;
|
|
@@ -205,10 +215,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
205
215
|
type: BooleanConstructor;
|
|
206
216
|
default: boolean;
|
|
207
217
|
};
|
|
218
|
+
loading: {
|
|
219
|
+
type: BooleanConstructor;
|
|
220
|
+
default: boolean;
|
|
221
|
+
};
|
|
208
222
|
}>> & {
|
|
209
223
|
onUpdateSelect?: ((...args: any[]) => any) | undefined;
|
|
210
224
|
onUpdatePage?: ((...args: any[]) => any) | undefined;
|
|
211
225
|
}, {
|
|
226
|
+
loading: boolean;
|
|
212
227
|
dynamicOptionInfo: import("../../../../..").AnyObject;
|
|
213
228
|
fieldTitleList: import("../../../../..").AnyObject[];
|
|
214
229
|
optionList: import("../../../../..").AnyObject[];
|
package/es/components/table-filter/src/components/render-widget/components/SelectDynamic.vue2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as
|
|
1
|
+
import{defineComponent as e,useAttrs as a,ref as l,inject as t,computed as u,nextTick as n,openBlock as o,createBlock as i,unref as s,mergeProps as r,isRef as v,withCtx as c,createVNode as f,h as p}from"vue";import{useMessage as d,NSelect as m,NTag as y}from"naive-ui";import{useDebounceFn as g}from"@vueuse/core";import h from"../../../hooks/useAsyncData.js";import{judgmentVariable as w}from"../helpers/setDefaultValue.js";import{WholeSelectObj as S}from"../helpers/selectExtraMap.js";import{WidgetValEnums as O}from"../../../types/enums.js";import{InjectionFilterApiConfig as b,InjectionFilterSearchConfig as j}from"../../../constants/index.js";import k from"./SelectDynamicOption/index.vue.js";import{isEqual as C,cloneDeep as N}from"lodash-es";var A=e({__name:"SelectDynamic",props:{value:{type:[Array,String,Number]},componentCfg:{type:Object}},emits:["update:value"],setup(e,{emit:A}){const L=e,P=d(),D="SQL",J="API",{getDynamicSelectData:x}=h(),I=a(),E=l(null),K=l(!1),T=t(b),$=t(j),U=l(1),W=l(),_=l([JSON.parse(JSON.stringify(S))]),M=l([]),F=l(),H=l(0),Q={class:"select-dynamic-popover"},R=u((()=>I.multiple)),V=u((()=>{const{widgetCfg:e}=L.componentCfg,{dynamicOptionInfo:a={}}=e;return a})),q=u((()=>{const{widgetCfg:e}=L.componentCfg,{showWholeOption:a=!1}=e;return a&&1===U.value})),z=u((()=>H.value>0&&U.value>=H.value)),B=u((()=>{var e;if(Array.isArray(L.value)&&L.value.length>0){const e=L.value;if(X(e),e.includes(S.value)){const e=_.value.find((e=>e.value===S.value)),a=e||S;return R.value?[a]:JSON.stringify(a)}if(!R.value&&1==e.length){const a=_.value.find((a=>a.value===e[0]));return a?JSON.stringify(a):{label:e[0].includes("&")?e[0].split("&")[0]:e[0],value:e[0]}}const a=_.value.filter((a=>e.includes(a.value))),l=a.map((e=>e.value)),t=e.filter((e=>!l.includes(e))).map((e=>({label:e.includes("&")?e.split("&")[0]:e,value:e})));return[...a,...t]}return X([]),null!=(e=L.value)?e:null})),G=u((()=>{if(Object.keys(V.value).length>0){const{defaultParams:e=[]}=V.value;return w(e)&&!L.value}return!1}));function X(e){_.value.forEach((a=>{a.actived=!1,Array.isArray(e)&&e.includes(a.value)&&(a.actived=!0)}))}function Y(e){const{widgetCfg:a}=L.componentCfg,{linkageFieldKeys:l=[]}=a;C(L.value,e)||(l.forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&(a.value=null)})),A("update:value",e))}async function Z(e){var a;U.value=e,null==(a=null==E?void 0:E.value)||a.focus(),await ee(F.value,U.value)}async function ee(e,a){try{if(K.value=!0,Object.keys(V.value).length>0){const{autograph:l,dataSourceId:t,dataSourceType:u,filterKeys:n,defaultParams:o=[],showKeys:i,valueKey:s,tableDataType:r}=V.value;let v={wordbookId:t,autograph:l,wordbookType:u,fieldKeys:n,page:a};switch(r){case D:v.keyword=e;break;case J:n.length>0&&(v[n[0]]=e)}if(w(o)){const e=o.map((e=>e.value)).filter((e=>e.includes("${")));e.map((e=>e.match(/\$\{(.+?)\}/)[1])).forEach((e=>{const a=$.value.find((a=>a.columnName===e));a&&a.value&&a.value!==O.WHOLE&&(v[e]=a.value)}))}let c=await x(v,T);if(c){const{fieldList:e=[],rows:a=[],total:l=0}=c.map,t=a.map((e=>({...e,label:e[i[0]],value:`${e[i[0]]}&${e[s]}`}))),u=N(t);q.value&&t.unshift(JSON.parse(JSON.stringify(S))),W.value=null!=e?e:[],_.value=null!=t?t:[],M.value=u,H.value=l}}}catch(e){P.error(`异步数据源下拉框数据请求失败:${e}`),console.log(e)}finally{K.value=!1}}const ae=g((async e=>{await async function(e){F.value=e.trim(),U.value=1,await ee(F.value,U.value)}(e)}),300);async function le(){Object.keys(V.value).length>0&&T&&await ee("",U.value)}async function te(){A("update:value",null),await le()}function ue(e){F.value="",e&&(U.value=1,le())}function ne({option:e,handleClose:a}){if(R.value){const l=e.value;return p(y,{style:{padding:"0 8px"},closable:!0,onClose:e=>{if(e.stopPropagation(),a(),Array.isArray(L.value)&&L.value.length>0){const e=L.value,a=e.indexOf(l.value);if(a>-1){const l=e.splice(0,a);A("update:value",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 n((()=>{G.value||le()})),(e,a)=>(o(),i(s(m),r({ref_key:"selectDynamicRef",ref:E},s(I),{value:s(B),"onUpdate:value":a[0]||(a[0]=e=>v(B)?B.value=e:null),remote:"",loading:K.value,"render-tag":ne,"menu-props":Q,onSearch:s(ae),onClear:te,"onUpdate:show":ue}),{empty:c((()=>[f(k,r(s(I),{loading:K.value,dynamicOptionInfo:s(V),fieldTitleList:W.value,optionList:_.value,isMultiple:s(R),curPage:U.value,isLastPage:s(z),isShowWhole:s(q),onUpdateSelect:Y,onUpdatePage:Z}),null,16,["loading","dynamicOptionInfo","fieldTitleList","optionList","isMultiple","curPage","isLastPage","isShowWhole"])])),_:1},16,["value","loading","onSearch"]))}});export{A as default};
|