cnhis-design-vue 3.1.53-beta.2 → 3.1.53-hotfix.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +87 -87
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/big-table/src/components/edit-form/edit-separate.vue.d.ts +4 -4
- package/es/components/big-table/src/hooks/useEdit.d.ts +4 -4
- package/es/components/big-table/src/hooks/useSeparateRow.d.ts +4 -4
- 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/button-print/src/ButtonPrint.vue.d.ts +1 -3
- package/es/components/button-print/src/utils/dialog.d.ts +2 -2
- package/es/components/button-print/src/utils/print.d.ts +13 -14
- package/es/components/button-print/src/utils/print.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +5 -44
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/card-reader-sdk/src/types/index.d.ts +3 -3
- package/es/components/date-picker/src/DatePicker.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/form-config/index.d.ts +24 -24
- package/es/components/form-config/src/FormConfig.vue.d.ts +25 -25
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -5
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +11 -11
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +1 -1
- package/es/components/form-render/index.d.ts +5 -5
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue.d.ts +6 -6
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +6 -6
- package/es/components/form-render/src/components/renderer/index.js +1 -1
- package/es/components/form-render/src/components/renderer/inputNumber.d.ts +5 -5
- package/es/components/form-render/src/components/renderer/{levelSearchCascader/index.d.ts → levelSearchCascader.d.ts} +5 -3
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -0
- package/es/components/form-render/src/components/renderer/searchCascade.d.ts +3 -3
- package/es/components/form-render/src/components/renderer/select.d.ts +3 -3
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +2 -3
- package/es/components/form-render/src/hooks/index.d.ts +2 -0
- package/es/components/form-render/src/hooks/index.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.d.ts +3 -3
- package/es/components/form-render/src/hooks/useCommonInjection.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -2
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +16 -0
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -0
- package/es/components/form-render/src/hooks/useFormContext.d.ts +3 -3
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormItemDeps.d.ts +3 -3
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +4 -5
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useFormRequest.d.ts +26 -0
- package/es/components/form-render/src/hooks/useFormRequest.js +1 -0
- package/es/components/form-render/src/types/fieldItem.d.ts +26 -4
- package/es/components/form-render/src/types/index.d.ts +13 -2
- package/es/components/form-render/src/utils/index.d.ts +2 -1
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/form-render/src/utils/schema.d.ts +2 -2
- package/es/components/guide/src/renderer.js +1 -1
- package/es/components/iho-table/index.d.ts +0 -39
- package/es/components/iho-table/src/IhoTable.vue.d.ts +0 -40
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/constants/index.d.ts +1 -4
- package/es/components/iho-table/src/constants/index.js +1 -1
- package/es/components/iho-table/src/hooks/tapHooks/useEventHooks.d.ts +2 -2
- package/es/components/iho-table/src/hooks/tapHooks/useExposeHooks.d.ts +2 -2
- package/es/components/iho-table/src/plugins/defaultValuePlugin.js +1 -1
- package/es/components/iho-table/src/plugins/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue.d.ts +2 -2
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/editSeparate.vue.d.ts +2 -2
- package/es/components/iho-table/src/types/index.d.ts +2 -7
- package/es/components/iho-table/src/types/pluginType.d.ts +3 -3
- package/es/components/iho-table/style/index.css +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.d.ts +0 -1
- package/es/components/index.js +1 -1
- package/es/components/info-header/index.d.ts +27 -27
- package/es/components/info-header/src/InfoHeader.vue.d.ts +28 -28
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +5 -5
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +6 -6
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +12 -12
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -5
- package/es/components/keyboard/src/Keyboard.vue2.js +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/search-cascader/index.d.ts +3 -23
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +4 -24
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- 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/shortcut-setter/index.d.ts +8 -8
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +9 -9
- package/es/components/steps-wheel/src/StepsWheel.vue2.js +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +3 -0
- package/es/components/time-picker/src/TimePicker.vue2.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/InputNumberSlash/InputNumberSlash.d.ts +4 -4
- package/es/shared/components/SlotRender/SlotRender.d.ts +5 -5
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/hooks/index.d.ts +0 -2
- package/es/shared/hooks/index.js +1 -1
- package/es/shared/hooks/{useAsyncQueue/index.d.ts → useAsyncQueue.d.ts} +15 -7
- package/es/shared/hooks/useAsyncQueue.js +1 -0
- package/es/shared/hooks/useDateTime.d.ts +2 -2
- package/es/shared/package.json.js +1 -1
- package/es/shared/types/business.d.ts +0 -24
- package/es/shared/types/index.d.ts +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/form-render/src/components/renderer/levelSearchCascader/index.js +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.d.ts +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/index.js +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.d.ts +0 -552
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue.js +0 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/levelSearchCascadePlugin/levelSearchCascade.vue2.js +0 -1
- package/es/components/iho-table/src/plugins/wordbookSettingPlugin.d.ts +0 -1
- package/es/components/iho-table/src/plugins/wordbookSettingPlugin.js +0 -1
- package/es/components/search-cascader/src/components/ClearIcon.vue.js +0 -1
- package/es/shared/hooks/useAsyncQueue/index.js +0 -1
- package/es/shared/hooks/useAsyncQueue/types.d.ts +0 -20
- package/es/shared/hooks/useAsyncQueue/types.js +0 -1
- package/es/shared/hooks/useFormRequest/index.d.ts +0 -24
- package/es/shared/hooks/useFormRequest/index.js +0 -1
- package/es/shared/hooks/useFormRequest/types.d.ts +0 -39
- package/es/shared/hooks/useFormRequest/types.js +0 -1
- package/es/shared/hooks/useLevelSearchCascader.d.ts +0 -31
- package/es/shared/hooks/useLevelSearchCascader.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Func } from '../../../../../../es/shared/types';
|
|
2
2
|
import { FormChangePayload, FormRenderProps } from '../../../../../../es/components/form-render';
|
|
3
3
|
import { InfoHeaderTypes } from '../../../../../../es/components/info-header/src/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
labelField: string;
|
|
38
38
|
valueField: string;
|
|
39
39
|
minColumnWidth: string | number;
|
|
40
|
-
rootSlot: Record<string,
|
|
40
|
+
rootSlot: Record<string, Func>;
|
|
41
41
|
formProps: Partial<FormRenderProps>;
|
|
42
42
|
};
|
|
43
43
|
themeOverrides: import("naive-ui").GlobalThemeOverrides;
|
|
@@ -270,7 +270,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
270
270
|
afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../../es/shared/types").AnyObject | undefined): void;
|
|
271
271
|
}>;
|
|
272
272
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
273
|
-
requestInstance: import("
|
|
273
|
+
requestInstance: import("../../../../../../es/components/form-render").RequestInstance;
|
|
274
274
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
275
275
|
lowCodeReactions: import("../../../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
276
276
|
linebarAutoHidden: boolean;
|
|
@@ -2036,19 +2036,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2036
2036
|
}>;
|
|
2037
2037
|
SlotRender: import("vue").DefineComponent<{
|
|
2038
2038
|
renderer: {
|
|
2039
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> |
|
|
2039
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
|
|
2040
2040
|
required: true;
|
|
2041
2041
|
};
|
|
2042
2042
|
rootSlots: {
|
|
2043
|
-
type: import("vue").PropType<Record<string,
|
|
2043
|
+
type: import("vue").PropType<Record<string, Func<any[], any>>>;
|
|
2044
2044
|
};
|
|
2045
2045
|
}, () => any, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2046
2046
|
renderer: {
|
|
2047
|
-
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> |
|
|
2047
|
+
type: import("vue").PropType<string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | Func<any[], any>>;
|
|
2048
2048
|
required: true;
|
|
2049
2049
|
};
|
|
2050
2050
|
rootSlots: {
|
|
2051
|
-
type: import("vue").PropType<Record<string,
|
|
2051
|
+
type: import("vue").PropType<Record<string, Func<any[], any>>>;
|
|
2052
2052
|
};
|
|
2053
2053
|
}>>, {}>;
|
|
2054
2054
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -2244,7 +2244,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2244
2244
|
}>>;
|
|
2245
2245
|
};
|
|
2246
2246
|
requestInstance: {
|
|
2247
|
-
type: import("vue").PropType<import("
|
|
2247
|
+
type: import("vue").PropType<import("../../../../../../es/components/form-render").RequestInstance>;
|
|
2248
2248
|
};
|
|
2249
2249
|
enterToNextWidget: {
|
|
2250
2250
|
type: import("vue").PropType<boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void)>;
|
|
@@ -2389,7 +2389,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2389
2389
|
}>>;
|
|
2390
2390
|
};
|
|
2391
2391
|
requestInstance: {
|
|
2392
|
-
type: import("vue").PropType<import("
|
|
2392
|
+
type: import("vue").PropType<import("../../../../../../es/components/form-render").RequestInstance>;
|
|
2393
2393
|
};
|
|
2394
2394
|
enterToNextWidget: {
|
|
2395
2395
|
type: import("vue").PropType<boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void)>;
|
|
@@ -2443,7 +2443,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2443
2443
|
changeContextCollector: import("../../../../../../es/components/form-render").ContextCollector;
|
|
2444
2444
|
formUUID: string;
|
|
2445
2445
|
anchorBarRef: import("vue").Ref<{
|
|
2446
|
-
syncBarPosition:
|
|
2446
|
+
syncBarPosition: Func<any[], any>;
|
|
2447
2447
|
} | undefined>;
|
|
2448
2448
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
2449
2449
|
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
@@ -2556,7 +2556,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2556
2556
|
afterOptionInit(fieldKey: string, options: import("../../../../../../es/shared/types").AnyObject[], payload?: import("../../../../../../es/shared/types").AnyObject | undefined): void;
|
|
2557
2557
|
}>;
|
|
2558
2558
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
2559
|
-
requestInstance: import("
|
|
2559
|
+
requestInstance: import("../../../../../../es/components/form-render").RequestInstance;
|
|
2560
2560
|
enterToNextWidget: boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void);
|
|
2561
2561
|
lowCodeReactions: import("../../../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2562
2562
|
linebarAutoHidden: boolean;
|
|
@@ -2964,7 +2964,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2964
2964
|
}>>;
|
|
2965
2965
|
};
|
|
2966
2966
|
requestInstance: {
|
|
2967
|
-
type: import("vue").PropType<import("
|
|
2967
|
+
type: import("vue").PropType<import("../../../../../../es/components/form-render").RequestInstance>;
|
|
2968
2968
|
};
|
|
2969
2969
|
enterToNextWidget: {
|
|
2970
2970
|
type: import("vue").PropType<boolean | ((fieldItem: import("../../../../../../es/components/form-render").FieldItem) => boolean | void)>;
|
|
@@ -170,7 +170,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
170
170
|
}>>;
|
|
171
171
|
};
|
|
172
172
|
requestInstance: {
|
|
173
|
-
type: import("vue").PropType<import("
|
|
173
|
+
type: import("vue").PropType<import("../../../../../../es/components/form-render").RequestInstance>;
|
|
174
174
|
};
|
|
175
175
|
enterToNextWidget: {
|
|
176
176
|
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
@@ -315,7 +315,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
315
315
|
}>>;
|
|
316
316
|
};
|
|
317
317
|
requestInstance: {
|
|
318
|
-
type: import("vue").PropType<import("
|
|
318
|
+
type: import("vue").PropType<import("../../../../../../es/components/form-render").RequestInstance>;
|
|
319
319
|
};
|
|
320
320
|
enterToNextWidget: {
|
|
321
321
|
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
@@ -369,7 +369,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
369
369
|
changeContextCollector: import("../../../../../../es/components/form-render").ContextCollector;
|
|
370
370
|
formUUID: string;
|
|
371
371
|
anchorBarRef: import("vue").Ref<{
|
|
372
|
-
syncBarPosition: import("../../../..").
|
|
372
|
+
syncBarPosition: import("../../../..").Func<any[], any>;
|
|
373
373
|
} | undefined>;
|
|
374
374
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
375
375
|
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
@@ -482,7 +482,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
482
482
|
afterOptionInit(fieldKey: string, options: import("../../../..").AnyObject[], payload?: import("../../../..").AnyObject | undefined): void;
|
|
483
483
|
}>;
|
|
484
484
|
businessFormatter: import("../../../../../../es/components/form-render").FormBusinessFormatter;
|
|
485
|
-
requestInstance: import("
|
|
485
|
+
requestInstance: import("../../../../../../es/components/form-render").RequestInstance;
|
|
486
486
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
487
487
|
lowCodeReactions: import("../../../..").FormLowCodeReactions.Config[];
|
|
488
488
|
linebarAutoHidden: boolean;
|
|
@@ -890,7 +890,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
890
890
|
}>>;
|
|
891
891
|
};
|
|
892
892
|
requestInstance: {
|
|
893
|
-
type: import("vue").PropType<import("
|
|
893
|
+
type: import("vue").PropType<import("../../../../../../es/components/form-render").RequestInstance>;
|
|
894
894
|
};
|
|
895
895
|
enterToNextWidget: {
|
|
896
896
|
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,provide as t,computed as o,unref as a,openBlock as n,createBlock as u,normalizeStyle as i,withCtx as s,createVNode as r,mergeProps as d,createElementBlock as f,normalizeClass as
|
|
1
|
+
import{defineComponent as e,ref as l,provide as t,computed as o,unref as a,openBlock as n,createBlock as u,normalizeStyle as i,withCtx as s,createVNode as r,mergeProps as d,createElementBlock as f,normalizeClass as c,createElementVNode as p,Fragment as m,renderList as v,createCommentVNode as y,createTextVNode as g,toDisplayString as h}from"vue";import{NPopover as k,NInputNumber as w,NSpace as V,NIcon as b}from"naive-ui";import{Close as x,GitCompareOutline as O,ArrowUndoSharp as S}from"@vicons/ionicons5";import C from"./components/NumberPanel.vue.js";import{useDraggable as _}from"@vueuse/core";import{useTheme as j}from"../../../shared/hooks/useTheme.js";import"date-fns";import"lodash-es";import{defaultCssVars as I}from"./constants/index.js";const D=p("span",null,"键盘",-1),N={class:"keys"},K=["onClick"];var R=e({__name:"Keyboard",props:{mode:{type:String,default:"english"},drag:{type:Boolean,default:!1},positionInitialValue:{type:Object,default:()=>({x:0,y:0})},defaultValue:{type:Number},value:{type:Number},panel:{type:Boolean,default:!0},moveOffset:{type:Object,default:()=>({x:0,y:0})}},emits:["change","keydown"],setup(e,{expose:R,emit:U}){const B=e,E="QWERTYUIOPASDFGHJKLZXCVBNM.",F=["Switch"," ","Undo","Enter"],J=E.split("").concat(F),M=E.split(".")[0].split("").sort().concat(["."],F),P=j(I,"Keyboard");let Q=l(Date.now());t("toSelectInputContent",Q);const T=o((()=>"english"===B.mode)),$=o((()=>({mode:B.mode,defaultValue:B.defaultValue,value:B.value,positionInitialValue:B.positionInitialValue,moveOffset:B.moveOffset,drag:B.drag,onChange:q}))),A=o((()=>`${JSON.stringify(P.value).replace(/\{|\}|\"/g,"").replace(/,/g,";")};${(null==Y?void 0:Y.value)||""}`)),G=l(J.slice()),H=l(),L=l(),W=l(),X=l(),Y=function(){B.defaultValue&&(X.value=B.defaultValue);if(T.value&&B.drag){const{x:e,y:l,style:t}=_(L,{initialValue:B.positionInitialValue,preventDefault:!0,handle:W,onMove:(e,l)=>{var t,o,a,n;e.x+=null!=(o=null==(t=B.moveOffset)?void 0:t.x)?o:0,e.y+=null!=(n=null==(a=B.moveOffset)?void 0:a.y)?n:0}});return t}}();function Z(e){"Switch"!==e?U("keydown",e):G.value="Q"===G.value[0]?M.slice():J.slice()}function q(e){var l;null==(l=H.value)||l.setShow(!1),X.value=e,U("change",e)}return R({select:function(){Q.value=Date.now()}}),(l,t)=>a(T)||e.panel?!a(T)&&e.panel?(n(),u(C,d({key:1},a($),{style:a(P)}),null,16,["style"])):(n(),f("div",{key:2,class:c(["c-keyboard-english",{isFixed:e.drag}]),ref_key:"englishKeyboardRef",ref:L,style:i(a(A))},[r(a(V),{"wrap-item":!1,align:"center",justify:"space-between",ref_key:"keyboardDragRef",ref:W,style:i({cursor:e.drag?"move":"default"})},{default:s((()=>[D,r(a(b),{onClick:t[1]||(t[1]=e=>Z("close")),component:a(x)},null,8,["component"])])),_:1},8,["style"]),p("div",N,[(n(!0),f(m,null,v(G.value,((e,l)=>(n(),f("span",{key:e,class:c(["key"+l]),onClick:l=>Z(e)},["Switch"===e?(n(),u(a(b),{key:0,component:a(O)},null,8,["component"])):y("v-if",!0),"Undo"===e?(n(),u(a(b),{key:1,component:a(S)},null,8,["component"])):y("v-if",!0),g(" "+h(F.includes(e)&&"Enter"!==e?""===e?"空格":"":e),1)],10,K)))),128))])],6)):(n(),u(a(k),{key:0,ref_key:"popoverRef",ref:H,trigger:"click","show-arrow":!1,placement:"bottom-start",style:i([{padding:"0"},a(P)]),"display-directive":"show"},{trigger:s((()=>[r(a(w),{value:X.value,"onUpdate:value":t[0]||(t[0]=e=>X.value=e),"show-button":!1},null,8,["value"])])),default:s((()=>[r(C,{mode:e.mode,defaultValue:e.defaultValue,onChange:q},null,8,["mode","defaultValue"])])),_:1},8,["style"]))}});export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\
|
|
1
|
+
import{defineComponent as e,reactive as o,ref as t,watch as a,nextTick as n,openBlock as s,createElementBlock as i,normalizeClass as l,unref as r,createCommentVNode as m,Fragment as c,createBlock as u,mergeProps as d,createElementVNode as p,normalizeStyle as v,createVNode as f,withCtx as g,renderList as h,toDisplayString as k,createTextVNode as y,resolveDynamicComponent as w}from"vue";import S from"./hooks/use-noData.js";import{ScaleViewProps as b}from"./hooks/scaleview-props.js";import{getScaleViewState as C}from"./hooks/scaleview-state.js";import{ScaleViewComputed as D}from"./hooks/scaleview-computed.js";import{ScaleViewInit as E}from"./hooks/scaleview-init.js";import{ScaleViewSubmit as j}from"./hooks/scaleview-submit.js";import{ScaleViewMethods as _}from"./hooks/scaleview-methods.js";import{handleQueryParams as x,isCollection as P}from"./utils/judge-types.js";import{useEvent as q}from"./hooks/use-event.js";import"xe-utils";import"moment";import F from"../../../shared/utils/vexutilsExpand.js";import L from"./components/NoData.vue.js";import N from"./components/EvaluateCountdown.vue.js";import R from"./components/EvaluatePage.vue.js";import T from"./components/AnswerParse.vue.js";import A from"./components/ScaleScore.js";import M from"./components/DescribeContent.vue.js";import{NForm as O,NFormItem as I,NButton as J}from"naive-ui";const V=["innerHTML"],G={key:0,class:"required-text"},W={key:1,class:"evalute-label"},B=["onClick"],H=p("i",{class:"scale-view-iconfont icon-scale-view-dengpao"},null,-1),Q={key:1,class:"footer"};var z=e({__name:"ScaleView",props:b,emits:["onCloseSetting","submitNoRequest","onSubmit","startWriteScale"],setup(e,{expose:b,emit:z}){const K=e,{ScaleViewState:U}=C(),X=o(U),Y=t(null),Z=t(null),{noDataState:$,setNoData:ee,resetNodata:oe}=S(),te=x(),{showEvatip:ae,isFormBoldOpen:ne,scaleStyle:se,handlePageClass:ie,isShowItem:le,handleShowQuestionNumber:re,hasScore:me,isPreviewScale:ce,showEvaluateEntry:ue,showEvaluateCoundownPage:de,showSaveBtn:pe,showEvaluateLabel:ve,showAnswerParse:fe,propsConfig:ge,evaluatePageProps:he,evaluateCountdownProps:ke,isEvaluetaResSituation:ye,disableEdit:we,desStart:Se,desEnd:be,desContent:Ce}=D(K,X,{query:te}),{initForm:De}=E(K,X,z,{query:te}),{submitMethod:Ee,onSubmitData:je,onSubmitForm:_e,handleScoreJson:xe}=j(K,X,z,{query:te,formRef:Z,countdownDom:Y}),{nextLogicEvent:Pe,handleDynamicDataRelation:qe}=q(K,X),{scaleChange:Fe,labelChange:Le,vodFileList:Ne,writeGuage:Re,closeEvaluateCountdown:Te,showEvaTipModal:Ae}=_(K,X,z,{nextLogicEvent:Pe,handleDynamicDataRelation:qe,isPreviewScale:ce,submitMethod:Ee,isEvaluetaResSituation:ye,handleScoreJson:xe,disableEdit:we});(()=>{let{id:e}=te;e&&(X.shareId=e)})();const Me=e=>{try{oe(),De(e)}catch(e){console.log(e,"--error"),X.spinning=!1,X.hasFrontAddress=!1,ee(!0,null==e?void 0:e.resultMsg,null==e?void 0:e.result)}};a((()=>K.ids),((e,o)=>{o?e.guage_id&&e.guage_id!=o.guage_id&&Me(e):e.guage_id&&Me(e)}),{immediate:!0}),a((()=>K.guageData),(e=>{if(!e||!Object.keys(e||{}).length)return;X.form={},X.formArray=[];const o=JSON.parse(JSON.stringify(e));n((()=>{De(o)}))}),{immediate:!0});const Oe=F.debounce(je,300),Ie=()=>{z("onCloseSetting")};return b({getScaleData:()=>({...X}),onSubmitForm:_e,cancel:Ie}),(e,o)=>(s(),i("div",{class:l(["c-scale-view-block",{"c-scale-view-block-hasfooter":r(pe)}])},[m(' <template v-if="state.spinning">\n <n-spin :show="state.spinning" description="加载中"></n-spin>\n </template> '),X.spinning||X.hasFrontAddress?m("v-if",!0):(s(),i(c,{key:0},[r($).noData?(s(),u(L,{key:0,noDataImg:r($).noDataImg,noDataTip:r($).noDataTip},null,8,["noDataImg","noDataTip"])):(s(),i(c,{key:1},[r(ue)?(s(),u(R,d({key:0},r(he),{onWriteGuage:r(Re)}),null,16,["onWriteGuage"])):(s(),i(c,{key:1},[r(de)?(s(),u(N,d({key:0,ref_key:"countdownDom",ref:Y},r(ke),{onCloseEvaluateCountdown:r(Te)}),null,16,["onCloseEvaluateCountdown"])):m("v-if",!0),p("div",{class:l(["scale-container",{"scale-container-nopadding":r(ie),"scale-container-hasfooter":r(pe)}]),style:v(r(se))},[r(me)?(s(),u(r(A),{key:0,config:X.config,maxScore:X.maxScore},null,8,["config","maxScore"])):m("v-if",!0),r(Se)?(s(),u(M,{key:1,content:r(Ce)},null,8,["content"])):m("v-if",!0),f(r(O),{ref_key:"formRef",ref:Z,model:X.form,rules:X.rules,"require-mark-placement":"left",class:"main"},{default:g((()=>[(s(!0),i(c,null,h(X.formArray,((e,o)=>(s(),i(c,{key:(e.id||e.seq)+o},[r(le)(e)?(s(),u(r(I),{key:0,path:e.val_key,"show-label":!r(P)(e.type),class:"c-scle-form-item"},{label:g((()=>[p("span",{class:l({"scale-label-required":r(ne)(e)}),innerHTML:r(re)(e)},null,10,V),r(ne)(e)?(s(),i("span",G,"(必填)")):m("v-if",!0),r(ve)(e)?(s(),i("span",W,k(r(ve)(e)),1)):m("v-if",!0),r(ae)(e)?(s(),i("span",{key:2,class:"evalute-tip",onClick:o=>r(Ae)(e)},[H,y(" 查看提示 ")],8,B)):m("v-if",!0)])),default:g((()=>[(s(),u(w(e.renderCom),d(r(ge)(e,o),{key:(e.id||e.seq)+o,onScaleChange:r(Fe),onOnChange:o=>r(Le)(o,e),onVodFileList:r(Ne)}),null,16,["onScaleChange","onOnChange","onVodFileList"])),r(fe)(e)?(s(),u(T,{key:0,item:e},null,8,["item"])):m("v-if",!0)])),_:2},1032,["path","show-label"])):m("v-if",!0)],64)))),128))])),_:1},8,["model","rules"]),r(be)?(s(),u(M,{key:2,content:r(Ce)},null,8,["content"])):m("v-if",!0)],6),r(pe)?(s(),i("div",Q,[m(" 分享的链接 隐藏取消按钮 "),"guage"!==K.sourceType?(s(),u(r(J),{key:0,onClick:Ie},{default:g((()=>[y("取消")])),_:1})):m("v-if",!0),K.isLock?m("v-if",!0):(s(),u(r(J),{key:1,onClick:r(Oe),disabled:X.banSubmit,type:"primary"},{default:g((()=>[y(" 保存 ")])),_:1},8,["onClick","disabled"]))])):m("v-if",!0)],64))],64))],64))],2))}});export{z as default};
|
|
@@ -28,7 +28,7 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
28
28
|
default: () => never[];
|
|
29
29
|
};
|
|
30
30
|
search: {
|
|
31
|
-
type: import("vue").PropType<import("../../../es/shared/types").
|
|
31
|
+
type: import("vue").PropType<import("../../../es/shared/types").Func<any[], any>>;
|
|
32
32
|
};
|
|
33
33
|
labelKey: {
|
|
34
34
|
type: StringConstructor;
|
|
@@ -50,12 +50,6 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
50
50
|
default: number;
|
|
51
51
|
};
|
|
52
52
|
disabled: BooleanConstructor;
|
|
53
|
-
inputProps: {
|
|
54
|
-
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
55
|
-
};
|
|
56
|
-
popperProps: {
|
|
57
|
-
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
58
|
-
};
|
|
59
53
|
}, {
|
|
60
54
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
61
55
|
value: {
|
|
@@ -86,7 +80,7 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
86
80
|
default: () => never[];
|
|
87
81
|
};
|
|
88
82
|
search: {
|
|
89
|
-
type: import("vue").PropType<import("../../../es/shared/types").
|
|
83
|
+
type: import("vue").PropType<import("../../../es/shared/types").Func<any[], any>>;
|
|
90
84
|
};
|
|
91
85
|
labelKey: {
|
|
92
86
|
type: StringConstructor;
|
|
@@ -108,12 +102,6 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
108
102
|
default: number;
|
|
109
103
|
};
|
|
110
104
|
disabled: BooleanConstructor;
|
|
111
|
-
inputProps: {
|
|
112
|
-
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
113
|
-
};
|
|
114
|
-
popperProps: {
|
|
115
|
-
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
116
|
-
};
|
|
117
105
|
}>> & {
|
|
118
106
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
119
107
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -122,7 +110,6 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
122
110
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
123
111
|
emit: (event: "update:show" | "update:value" | "focus", ...args: any[]) => void;
|
|
124
112
|
emitValue: (value: string | import("../../../es/shared/types").AnyObject[]) => void;
|
|
125
|
-
clearableRef: import("vue").ComputedRef<number | boolean>;
|
|
126
113
|
onClear: () => void;
|
|
127
114
|
onClick: (evt: Event) => void;
|
|
128
115
|
onKeydown: (evt: KeyboardEvent) => void;
|
|
@@ -150,7 +137,6 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
150
137
|
changeCursorNode: (node: import("../../../es/shared/types").AnyObject) => void;
|
|
151
138
|
NInput: any;
|
|
152
139
|
NPopover: any;
|
|
153
|
-
ClearIcon: any;
|
|
154
140
|
SearchMenu: import("vue").DefineComponent<{
|
|
155
141
|
childKey: {
|
|
156
142
|
type: StringConstructor;
|
|
@@ -235,7 +221,7 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
235
221
|
default: () => never[];
|
|
236
222
|
};
|
|
237
223
|
search: {
|
|
238
|
-
type: import("vue").PropType<import("../../../es/shared/types").
|
|
224
|
+
type: import("vue").PropType<import("../../../es/shared/types").Func<any[], any>>;
|
|
239
225
|
};
|
|
240
226
|
labelKey: {
|
|
241
227
|
type: StringConstructor;
|
|
@@ -257,12 +243,6 @@ declare const SearchCascader: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
257
243
|
default: number;
|
|
258
244
|
};
|
|
259
245
|
disabled: BooleanConstructor;
|
|
260
|
-
inputProps: {
|
|
261
|
-
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
262
|
-
};
|
|
263
|
-
popperProps: {
|
|
264
|
-
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
265
|
-
};
|
|
266
246
|
}>> & {
|
|
267
247
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
268
248
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AnyObject,
|
|
1
|
+
import { AnyObject, Func, Nullable } from '../../../../es/shared/types';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
declare type ValueType = string | AnyObject[];
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
|
@@ -30,7 +30,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
30
30
|
default: () => never[];
|
|
31
31
|
};
|
|
32
32
|
search: {
|
|
33
|
-
type: PropType<
|
|
33
|
+
type: PropType<Func<any[], any>>;
|
|
34
34
|
};
|
|
35
35
|
labelKey: {
|
|
36
36
|
type: StringConstructor;
|
|
@@ -52,12 +52,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
52
52
|
default: number;
|
|
53
53
|
};
|
|
54
54
|
disabled: BooleanConstructor;
|
|
55
|
-
inputProps: {
|
|
56
|
-
type: PropType<AnyObject>;
|
|
57
|
-
};
|
|
58
|
-
popperProps: {
|
|
59
|
-
type: PropType<AnyObject>;
|
|
60
|
-
};
|
|
61
55
|
}, {
|
|
62
56
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
63
57
|
value: {
|
|
@@ -88,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
88
82
|
default: () => never[];
|
|
89
83
|
};
|
|
90
84
|
search: {
|
|
91
|
-
type: PropType<
|
|
85
|
+
type: PropType<Func<any[], any>>;
|
|
92
86
|
};
|
|
93
87
|
labelKey: {
|
|
94
88
|
type: StringConstructor;
|
|
@@ -110,12 +104,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
104
|
default: number;
|
|
111
105
|
};
|
|
112
106
|
disabled: BooleanConstructor;
|
|
113
|
-
inputProps: {
|
|
114
|
-
type: PropType<AnyObject>;
|
|
115
|
-
};
|
|
116
|
-
popperProps: {
|
|
117
|
-
type: PropType<AnyObject>;
|
|
118
|
-
};
|
|
119
107
|
}>> & {
|
|
120
108
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
121
109
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -124,7 +112,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
124
112
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
|
125
113
|
emit: (event: "update:show" | "update:value" | "focus", ...args: any[]) => void;
|
|
126
114
|
emitValue: (value: ValueType) => void;
|
|
127
|
-
clearableRef: import("vue").ComputedRef<number | boolean>;
|
|
128
115
|
onClear: () => void;
|
|
129
116
|
onClick: (evt: Event) => void;
|
|
130
117
|
onKeydown: (evt: KeyboardEvent) => void;
|
|
@@ -152,7 +139,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
152
139
|
changeCursorNode: (node: AnyObject) => void;
|
|
153
140
|
NInput: any;
|
|
154
141
|
NPopover: any;
|
|
155
|
-
ClearIcon: any;
|
|
156
142
|
SearchMenu: import("vue").DefineComponent<{
|
|
157
143
|
childKey: {
|
|
158
144
|
type: StringConstructor;
|
|
@@ -237,7 +223,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
237
223
|
default: () => never[];
|
|
238
224
|
};
|
|
239
225
|
search: {
|
|
240
|
-
type: PropType<
|
|
226
|
+
type: PropType<Func<any[], any>>;
|
|
241
227
|
};
|
|
242
228
|
labelKey: {
|
|
243
229
|
type: StringConstructor;
|
|
@@ -259,12 +245,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
259
245
|
default: number;
|
|
260
246
|
};
|
|
261
247
|
disabled: BooleanConstructor;
|
|
262
|
-
inputProps: {
|
|
263
|
-
type: PropType<AnyObject>;
|
|
264
|
-
};
|
|
265
|
-
popperProps: {
|
|
266
|
-
type: PropType<AnyObject>;
|
|
267
|
-
};
|
|
268
248
|
}>> & {
|
|
269
249
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
270
250
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as a,provide as l,ref as t,nextTick as o,watch as r,openBlock as u,createBlock as n,unref as s,
|
|
1
|
+
import{defineComponent as e,computed as a,provide as l,ref as t,nextTick as o,watch as r,openBlock as u,createBlock as n,unref as s,isRef as i,normalizeStyle as d,withCtx as c,createVNode as v,normalizeClass as p,createElementVNode as f,renderSlot as h}from"vue";import{useTheme as y}from"../../../shared/hooks/useTheme.js";import{useEventBus as m,useVModel as b,onClickOutside as g,useDebounceFn as w}from"@vueuse/core";import"date-fns";import{isString as k,isArray as S,isObject as K,isFunction as C}from"lodash-es";import{uuidGenerator as N}from"../../../shared/utils/index.js";import{NOOP as _}from"@vue/shared";import{NPopover as P,NInput as j}from"naive-ui";import{InjectionSearchCascaderCheckAbleLevel as x,InjectionKeyboardEventBus as A,InjectionSearchCascaderLoadingNode as U,InjectionSearchCascaderValue as W}from"./constants/index.js";import{SearchMenu as B}from"./components/SearchMenu.js";const F=["id"];var L=e({__name:"SearchCascader",props:{value:{type:[String,Array]},show:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},childKey:{type:String,default:"children"},placeholder:{type:String,default:"请选择"},editPlaceholder:{type:String,default:"请输入关键字进行搜索"},options:{type:Array,default:()=>[]},search:{type:Function},labelKey:{type:String,default:"label"},valueKey:{type:String,default:"value"},checkAbleLevel:{type:[Number,String],default:"last"},beforeSetValue:{type:Function},menuWidth:{type:[Number,String],default:150},disabled:Boolean},emits:["update:value","focus","update:show"],setup(e,{expose:L,emit:T}){const V=e,E=y();function I(){var e;e=[],Promise.resolve(C(V.beforeSetValue)?V.beforeSetValue(e):e).then((e=>T("update:value",e)),_)}function R(e){var a;"INPUT"===(null==(a=e.target)?void 0:a.tagName)&&Q()}const $=e=>{var a;"INPUT"!==(null==(a=e.target)?void 0:a.tagName)||"Enter"!==e.code||D.value?q.emit(e.key,e):Q()},M=a((()=>({"--menu-width":V.menuWidth}))),q=m("cascaderKeydown"),z=N(),D=b(V,"show",T);l(x,a((()=>V.checkAbleLevel))),l(A,q);const G=t(""),H=a((()=>k(V.value)&&V.value?V.value:S(V.value)&&V.value.length?V.value.map((e=>K(e)?e[V.labelKey]:e)).join(" / "):V.editPlaceholder)),J=a({get:()=>D.value?G.value:k(V.value)?V.value:S(V.value)?V.value.reduce(((e,a,l)=>0===l?a[V.labelKey]:e+" / "+a[V.labelKey]),""):"",set(e){G.value=e,te(void 0,e)}});function O(e){T("focus",e)}function Q(){D.value||V.disabled||(D.value=!0,G.value="",te())}async function X(){var e;D.value=!1,null==(e=Y.value)||e.blur()}const Y=t();g(Y,(e=>{var a;if(!D.value)return;const l=e;if(!l.target)return X();!function(e){let a=!1,l=e;for(;l;){if(l.id===z){a=!0;break}l=l.parentElement}return a}(l.target)?X():null==(a=Y.value)||a.focus()}));const Z=t(),ee=t(),ae=t(),le=t(null);l(U,le),l(W,a((()=>V.value)));const te=w((async(e,a)=>{var l;const{type:t,node:r}=e||{};try{if("update"===t)return void(C(V.search)&&V.search({...r,isLeaf:!0}));le.value=r;const e=await(C(V.search)&&V.search(r,a));ee.value=K(e)||S(e)?e:r}finally{le.value=null,await o(),null==(l=Z.value)||l.syncPosition()}}),400),oe=e=>{ae.value=e};return r((()=>V.show),(e=>{e&&(ae.value={})})),L({getWidth(){var e;if(!Y.value)return 0;const a=null==(e=Y.value)?void 0:e.$el;return a?a.clientWidth:void 0},setCursor(e){ae.value=e}}),(a,l)=>(u(),n(s(P),{class:"search-cascader",trigger:"manual",show:s(D),"onUpdate:show":l[1]||(l[1]=e=>i(D)?D.value=e:null),"show-arrow":!1,placement:"bottom-start",style:d(s(M)),disabled:e.disabled,width:e.options.length?void 0:"trigger",ref_key:"popoverRef",ref:Z},{trigger:c((()=>[v(s(j),{disabled:e.disabled,class:p({"search-cascader__input":!e.disabled}),placeholder:s(D)?s(H):e.placeholder,clearable:e.clearable,onClear:I,value:s(J),"onUpdate:value":l[0]||(l[0]=e=>i(J)?J.value=e:null),ref_key:"inputRef",ref:Y,onFocus:O,onClick:R,onKeydown:$},null,8,["disabled","class","placeholder","clearable","value"])])),default:c((()=>[f("section",{id:s(z)},[v(s(B),{style:d(s(E)),"label-key":e.labelKey,"value-key":e.valueKey,options:e.options,onNodeClick:s(te),onChangeCursor:oe,"current-node":ee.value,"cursor-node":ae.value},{empty:c((()=>[h(a.$slots,"empty")])),_:3},8,["style","label-key","value-key","options","onNodeClick","current-node","cursor-node"])],8,F)])),_:3},8,["show","style","disabled","width"]))}});export{L as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as
|
|
1
|
+
import{defineComponent as t,ref as e,reactive as l,computed as a,watch as i,openBlock as n,createElementBlock as s,unref as d,createCommentVNode as o,withDirectives as r,createElementVNode as c,normalizeClass as b,createVNode as u,withCtx as p,Fragment as f,renderList as h,createBlock as y,createTextVNode as v,toDisplayString as m,vShow as g,nextTick as C}from"vue";import{useMessage as L,NAnchor as I,NAnchorLink as S}from"naive-ui";import E from"./components/label-classify.vue.js";import{handleLabelColor as w}from"../../../shared/utils/vexutils.js";import x from"../../../shared/utils/vexutilsExpand.js";const A={key:0,class:"label-disable-wrap"},O=[c("p",{class:"label-disable-title"},"无可选标签",-1),c("p",{class:"label-disable-desc"},"请联系管理员进行标签管理设置",-1)],K={style:{height:"100%"}},j={class:"label-wrap"},k=["id"],T={class:"edit-label-type"};var B=t({__name:"LabelFormContent",props:{item:{default:()=>({})},isEdit:{type:Boolean,default:!0},isLock:{type:Boolean,default:!1},labelSelectedList:null,isChangeWindow:{type:Boolean},getLabelList:{type:Function,default:()=>Promise.resolve({rows:[]})},deleteLabel:{type:Function,default:()=>Promise.resolve({status:!0})},saveLabelItem:{type:Function,default:()=>Promise.resolve({status:!0})},labelOptions:null,sourceType:{default:""},explicit:{type:Boolean,default:!1}},emits:["explicitOnChange","change","updateLabelData"],setup(t,{expose:B,emit:D}){const V=t,F=L(),P=e(null),_=l({editLabelItem:{},inited:!1,labelSelectedEdit:[],labelAnchorKey:"",cacheAnchorKey:"",labelConfig:{}});let N=e(0);const W=a((()=>{if(!_.inited)return!1;let t=_.labelConfig;return!t||Object.keys(t).every((e=>!t[e].itemList))})),$=a((()=>{let t=[].concat(..._.labelSelectedEdit,...V.labelSelectedList);return J(t,"labelId")})),q=a((()=>{const t=$.value||[];return Array.isArray(t)?t.map((t=>t.labelId)):[]})),J=(t,e)=>{let l={};return t.reduce(((t,a)=>(!l[a[e]]&&(l[a[e]]=t.push(a)),t)),[])},R=()=>{if(_.labelSelectedEdit=$.value,"object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((t=>{var e;let l=(null==(e=_.labelConfig[t])?void 0:e.itemList)||[];l.length&&l.forEach((t=>{q.value.includes(t.labelId)&&(t.isSelect=!0)}))}))}},z=(t,e)=>{if(!t)return;let l=Object.keys(t)||[];if(!l.length)return;let a=t[l[0]].curKey;if(e&&"string"==typeof e){let[i]=e.split("~"),n=l.find((e=>t[e]&&t[e].curKey&&t[e].curKey.includes(i)));n&&(a=t[n].curKey)}a&&Y(a)},G=(t,e)=>{e.showAdd=!0;const l=t.target.nextElementSibling;C((()=>{var t;null==(t=null==l?void 0:l.firstChild)||t.focus()}))},H=(t,e)=>{setTimeout((()=>{e.addVal?Q(e):e.showAdd=!1}),150)},M=(t,e)=>{e.addVal="",e.showAdd=!1},Q=async t=>{var e;if(!!t.itemList.filter((t=>!(t.isPublic&&1==t.isPublic))).find((e=>e.labelName===t.addVal)))return F.error("标签名称重复!"),!1;let l="";l=(null==(e=t.itemList)?void 0:e.length)?t.itemList[0].parentColor||t.parentColor||"":(null==t?void 0:t.parentColor)||"";const a={type:t.typeId,name:t.addVal,parentColor:l},{status:i}=await V.saveLabelItem(a,t);i&&(F.success("添加成功!"),D("updateLabelData"),t.showAdd=!1)},U=(t,e,l,a)=>{var i;const n=l.itemList,s=l.multipleChoice;let d=(null==(i=_.labelSelectedEdit)?void 0:i.length)&&x.clone(_.labelSelectedEdit,!0)||[];if(t){if(d.some((t=>t.labelId==e.labelId)))return;if(2==s){const{typeId:t,labelId:l}=e;d=d.filter((e=>e.typeId!==t)),n.forEach((t=>{t.labelId!==l&&(t.isSelect=!1)}))}d.push(e)}else{const t=d.findIndex((t=>t.labelId==e.labelId));-1!=t&&d.splice(t,1)}_.labelSelectedEdit=[...d],N.value++,V.explicit&&D("explicitOnChange",[..._.labelSelectedEdit])},X=async t=>{const{status:e}=await V.deleteLabel(t,V.item);if(e){F.success("删除成功!");for(const e in _.labelConfig){const l=_.labelConfig[e].itemList.findIndex((e=>e.labelId==t.labelId));-1!=l&&_.labelConfig[e].itemList.splice(l,1)}const e=_.labelSelectedEdit||[],l=V.labelSelectedList||[];if(e&&e.length){const l=e.findIndex((e=>e.labelId==t.labelId));-1!=l&&e.splice(l,1)}if(l&&l.length){const e=l.findIndex((e=>e.labelId==t.labelId));-1!=e&&l.splice(e,1),D("change",[...l],V.item)}D("updateLabelData")}else F.warning("删除失败")},Y=t=>{t&&setTimeout((()=>{let e,l="#"+t;e=P.value.querySelector("a[href='"+l+"']"),e&&e.click(),_.labelAnchorKey=t}),32)},Z=t=>{t.preventDefault()},tt=t=>{if(!t)return;let e=t.slice(1);_.cacheAnchorKey=e},et=()=>{var t;return null==(t=P.value)?void 0:t.querySelector(".right-label-wrap")};return i((()=>V.labelOptions),(t=>{t&&(()=>{var t;if(V.isLock)return;const e=JSON.parse(JSON.stringify(V.labelOptions));for(let l in e){let a=(null==(t=e[l])?void 0:t.typeId)||"";Object.assign(e[l],{curKey:`${l}_${a}}`})}_.labelConfig=e,C((()=>{let t;R(),V.explicit&&_.inited&&(t=_.labelAnchorKey),z(_.labelConfig,t),_.inited=!0}))})()}),{immediate:!0,deep:!0}),B({resetShowAdd:()=>{let{labelObj:t}=_.editLabelItem;if(t&&Object.keys(t).length)for(let e in t){let l=t[e];Object.assign(l,{showAdd:!1})}},handleLabelForm:t=>{t([..._.labelSelectedEdit||[]])},handleResetOptions:()=>{},hanldeSetLabelItem:(t,e)=>{if("object"==typeof _.labelConfig){Object.keys(_.labelConfig||{}).forEach((l=>{var a;let i=(null==(a=_.labelConfig[l])?void 0:a.itemList)||[];i.length&&i.forEach((l=>{t==l.labelId&&(l.isSelect=e)}))}))}if(!1===e&&Array.isArray(_.labelSelectedEdit)){const e=_.labelSelectedEdit.findIndex((e=>e.labelId==t));-1!=e&&_.labelSelectedEdit.splice(e,1)}}}),(e,l)=>(n(),s("div",{class:"c-label-form-content",ref_key:"labelFormContent",ref:P},[d(W)?(n(),s("div",A,O)):o("v-if",!0),r(c("div",K,[c("div",j,[o(" 表单内嵌打开标签组件的样式 "),o(' <div v-if="explicit" class="explicit-continer">\n\t\t\t\t\t<n-tabs :value="state.labelAnchorKey" type="card" @change="labelAnchorTabsOnChange" tab-position="top">\n\t\t\t\t\t\t<template v-for="(v, i) in state.labelConfig">\n\t\t\t\t\t\t\t<n-tab-pane :name="v.curKey">\n\t\t\t\t\t\t\t\t<span slot="tab">\n\t\t\t\t\t\t\t\t\t{{ i }}\n\t\t\t\t\t\t\t\t\t<span class="edit-label-type">({{ v.multipleChoice == 2 ? \'单\' : \'多\' }}选)</span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<div class="explicit-label-wrap left-label-wrap">\n\t\t\t\t\t\t\t\t\t<div class="edit-label-content">\n\t\t\t\t\t\t\t\t\t\t<labelClassify\n\t\t\t\t\t\t\t\t\t\t\t:classifyItem="v"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelChange="handleLabelChange"\n\t\t\t\t\t\t\t\t\t\t\t:handleLabelColor="handleLabelColor"\n\t\t\t\t\t\t\t\t\t\t\t:handleDelLabel="handleDelLabel"\n\t\t\t\t\t\t\t\t\t\t\t:hanldeBlur="hanldeBlur"\n\t\t\t\t\t\t\t\t\t\t\t:handleAddLabel="handleAddLabel"\n\t\t\t\t\t\t\t\t\t\t\t:clearaddVal="clearaddVal"\n\t\t\t\t\t\t\t\t\t\t\t:isEdit="isEdit"\n\t\t\t\t\t\t\t\t\t\t\t:sourceType="sourceType"\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</n-tab-pane>\n\t\t\t\t\t\t</template>\n\t\t\t\t\t</n-tabs>\n\t\t\t\t</div> '),o("\n\t\t\t\t\t普通标签样式\n\t\t\t\t\tv-else\n\t\t\t\t\texplicit\n\t\t\t\t "),c("div",{class:b(["left-label-wrap",{"total-left-label-wrap":t.isChangeWindow}])},[u(d(I),{"offset-target":et,type:"block",onClick:Z,onChange:tt},{default:p((()=>[(n(!0),s(f,null,h(_.labelConfig,((t,e)=>(n(),y(d(S),{href:`#${t.curKey}`,title:String(e)},null,8,["href","title"])))),256))])),_:1})],2),o(' v-if="!explicit" '),c("div",{class:b(["right-label-wrap",{"total-right-label-wrap":t.isChangeWindow}])},[(n(!0),s(f,null,h(_.labelConfig,((e,l)=>(n(),s("div",{key:l,class:"edit-label-content"},[c("div",{class:"edit-label",id:e.curKey},[v(m(l)+" ",1),c("span",T,"("+m(2==e.multipleChoice?"单":"多")+"选)",1)],8,k),u(E,{classifyItem:e,handleLabelChange:U,handleLabelColor:d(w),handleDelLabel:X,hanldeBlur:H,handleAddLabel:G,clearaddVal:M,isEdit:t.isEdit,sourceType:t.sourceType},null,8,["classifyItem","handleLabelColor","isEdit","sourceType"])])))),128))],2)])],512),[[g,!d(W)]])],512))}});export{B as default};
|
|
@@ -95,12 +95,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
95
95
|
};
|
|
96
96
|
readonly 'onUpdate:value': PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
97
97
|
actionType: "check" | "uncheck";
|
|
98
|
-
/**
|
|
99
|
-
* 取消勾选树节点
|
|
100
|
-
* baseKeys:基准值
|
|
101
|
-
* currentTree:当前树节点
|
|
102
|
-
* value:树节点的key值
|
|
103
|
-
*/
|
|
104
98
|
value: string | number;
|
|
105
99
|
}) => void>>;
|
|
106
100
|
readonly onUpdateValue: PropType<import("naive-ui/es/_utils").MaybeArray<(value: (string | number)[], meta: {
|
|
@@ -133,7 +133,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
133
133
|
urlConfig?: {
|
|
134
134
|
[x: string]: any;
|
|
135
135
|
url: string;
|
|
136
|
-
method?: import("..").
|
|
136
|
+
method?: import("..").FormRequestType | undefined;
|
|
137
137
|
nameKey?: string | undefined;
|
|
138
138
|
valueKey?: string | undefined;
|
|
139
139
|
showKey?: string | undefined;
|
|
@@ -1768,8 +1768,8 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1768
1768
|
onShortcutChange: ({ key, info, resolve, reject }: {
|
|
1769
1769
|
key: string;
|
|
1770
1770
|
info: KeyboardEvent;
|
|
1771
|
-
resolve: import("../../../es/shared/types").
|
|
1772
|
-
reject: import("../../../es/shared/types").
|
|
1771
|
+
resolve: import("../../../es/shared/types").Func<any[], any>;
|
|
1772
|
+
reject: import("../../../es/shared/types").Func<any[], any>;
|
|
1773
1773
|
}) => any;
|
|
1774
1774
|
CFormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
1775
1775
|
formRenderRef: import("vue").Ref<import("..").FormRenderExpose | undefined>;
|
|
@@ -1893,7 +1893,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1893
1893
|
}>>;
|
|
1894
1894
|
};
|
|
1895
1895
|
requestInstance: {
|
|
1896
|
-
type: import("vue").PropType<import("..").
|
|
1896
|
+
type: import("vue").PropType<import("..").RequestInstance>;
|
|
1897
1897
|
};
|
|
1898
1898
|
enterToNextWidget: {
|
|
1899
1899
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
@@ -2038,7 +2038,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2038
2038
|
}>>;
|
|
2039
2039
|
};
|
|
2040
2040
|
requestInstance: {
|
|
2041
|
-
type: import("vue").PropType<import("..").
|
|
2041
|
+
type: import("vue").PropType<import("..").RequestInstance>;
|
|
2042
2042
|
};
|
|
2043
2043
|
enterToNextWidget: {
|
|
2044
2044
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
@@ -2092,7 +2092,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2092
2092
|
changeContextCollector: import("..").ContextCollector;
|
|
2093
2093
|
formUUID: string;
|
|
2094
2094
|
anchorBarRef: import("vue").Ref<{
|
|
2095
|
-
syncBarPosition: import("../../../es/shared/types").
|
|
2095
|
+
syncBarPosition: import("../../../es/shared/types").Func<any[], any>;
|
|
2096
2096
|
} | undefined>;
|
|
2097
2097
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
2098
2098
|
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
@@ -2205,7 +2205,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2205
2205
|
afterOptionInit(fieldKey: string, options: import("../../../es/shared/types").AnyObject[], payload?: import("../../../es/shared/types").AnyObject | undefined): void;
|
|
2206
2206
|
}>;
|
|
2207
2207
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
2208
|
-
requestInstance: import("..").
|
|
2208
|
+
requestInstance: import("..").RequestInstance;
|
|
2209
2209
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
2210
2210
|
lowCodeReactions: import("../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2211
2211
|
linebarAutoHidden: boolean;
|
|
@@ -2613,7 +2613,7 @@ declare const ShortcutSetter: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2613
2613
|
}>>;
|
|
2614
2614
|
};
|
|
2615
2615
|
requestInstance: {
|
|
2616
|
-
type: import("vue").PropType<import("..").
|
|
2616
|
+
type: import("vue").PropType<import("..").RequestInstance>;
|
|
2617
2617
|
};
|
|
2618
2618
|
enterToNextWidget: {
|
|
2619
2619
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Func } from '../../../../es/shared/types';
|
|
2
2
|
import { ShortcutSignatureInfo } from '../../../../es/components/shortcut-provider';
|
|
3
3
|
import { FieldItem } from '../../../../es/components/form-render';
|
|
4
4
|
import { Component } from 'vue';
|
|
@@ -135,7 +135,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
135
135
|
urlConfig?: {
|
|
136
136
|
[x: string]: any;
|
|
137
137
|
url: string;
|
|
138
|
-
method?: import("
|
|
138
|
+
method?: import("../../../../es/components/form-render").FormRequestType | undefined;
|
|
139
139
|
nameKey?: string | undefined;
|
|
140
140
|
valueKey?: string | undefined;
|
|
141
141
|
showKey?: string | undefined;
|
|
@@ -1770,8 +1770,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1770
1770
|
onShortcutChange: ({ key, info, resolve, reject }: {
|
|
1771
1771
|
key: string;
|
|
1772
1772
|
info: KeyboardEvent;
|
|
1773
|
-
resolve:
|
|
1774
|
-
reject:
|
|
1773
|
+
resolve: Func;
|
|
1774
|
+
reject: Func;
|
|
1775
1775
|
}) => any;
|
|
1776
1776
|
CFormRender: import("../../../../es/shared/types").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
1777
1777
|
formRenderRef: import("vue").Ref<import("../../../../es/components/form-render").FormRenderExpose | undefined>;
|
|
@@ -1895,7 +1895,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1895
1895
|
}>>;
|
|
1896
1896
|
};
|
|
1897
1897
|
requestInstance: {
|
|
1898
|
-
type: import("vue").PropType<import("
|
|
1898
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").RequestInstance>;
|
|
1899
1899
|
};
|
|
1900
1900
|
enterToNextWidget: {
|
|
1901
1901
|
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
@@ -2040,7 +2040,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2040
2040
|
}>>;
|
|
2041
2041
|
};
|
|
2042
2042
|
requestInstance: {
|
|
2043
|
-
type: import("vue").PropType<import("
|
|
2043
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").RequestInstance>;
|
|
2044
2044
|
};
|
|
2045
2045
|
enterToNextWidget: {
|
|
2046
2046
|
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
@@ -2094,7 +2094,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2094
2094
|
changeContextCollector: import("../../../../es/components/form-render").ContextCollector;
|
|
2095
2095
|
formUUID: string;
|
|
2096
2096
|
anchorBarRef: import("vue").Ref<{
|
|
2097
|
-
syncBarPosition:
|
|
2097
|
+
syncBarPosition: Func<any[], any>;
|
|
2098
2098
|
} | undefined>;
|
|
2099
2099
|
currentAnchor: import("vue").WritableComputedRef<string>;
|
|
2100
2100
|
updateAnchorList: (field: import("@formily/core").GeneralField) => void;
|
|
@@ -2207,7 +2207,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2207
2207
|
afterOptionInit(fieldKey: string, options: import("../../../../es/shared/types").AnyObject[], payload?: import("../../../../es/shared/types").AnyObject | undefined): void;
|
|
2208
2208
|
}>;
|
|
2209
2209
|
businessFormatter: import("../../../../es/components/form-render").FormBusinessFormatter;
|
|
2210
|
-
requestInstance: import("
|
|
2210
|
+
requestInstance: import("../../../../es/components/form-render").RequestInstance;
|
|
2211
2211
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
2212
2212
|
lowCodeReactions: import("../../../../es/shared/types").FormLowCodeReactions.Config[];
|
|
2213
2213
|
linebarAutoHidden: boolean;
|
|
@@ -2615,7 +2615,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2615
2615
|
}>>;
|
|
2616
2616
|
};
|
|
2617
2617
|
requestInstance: {
|
|
2618
|
-
type: import("vue").PropType<import("
|
|
2618
|
+
type: import("vue").PropType<import("../../../../es/components/form-render").RequestInstance>;
|
|
2619
2619
|
};
|
|
2620
2620
|
enterToNextWidget: {
|
|
2621
2621
|
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|