cnhis-design-vue 3.2.4-release.4 → 3.2.4-release.6
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/biunique-chat/index.d.ts +75 -17
- package/es/components/biunique-chat/src/Index.vue.d.ts +75 -17
- package/es/components/biunique-chat/src/api/index.d.ts +1 -0
- package/es/components/biunique-chat/src/api/index.js +1 -1
- package/es/components/biunique-chat/src/components/ChatFile.vue.d.ts +26 -8
- package/es/components/biunique-chat/src/components/ChatFile.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatHeader.vue.d.ts +74 -16
- package/es/components/biunique-chat/src/components/ChatHeader.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +2 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatRecord.vue.d.ts +50 -8
- package/es/components/biunique-chat/src/components/ChatRecord.vue2.js +1 -1
- package/es/components/biunique-chat/src/hooks/useScrollLoading.d.ts +1 -1
- package/es/components/biunique-chat/src/hooks/useScrollLoading.js +1 -1
- package/es/components/biunique-chat/src/utils/index.d.ts +1 -0
- package/es/components/biunique-chat/src/utils/index.js +1 -1
- package/es/components/biunique-chat/style/index.css +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +5 -3
- package/es/components/default-page/index.d.ts +0 -1
- package/es/components/default-page/src/constants/index.d.ts +4 -0
- package/es/components/default-page/src/constants/index.js +1 -1
- package/es/components/default-page/src/index.vue.d.ts +0 -1
- package/es/components/default-page/src/index.vue2.js +1 -1
- package/es/components/default-page/style/index.css +1 -1
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +1 -1
- package/es/components/form-config/index.d.ts +10 -6
- package/es/components/form-config/src/FormConfig.vue.d.ts +10 -6
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -3
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +5 -3
- package/es/components/form-render/index.d.ts +5 -3
- package/es/components/form-render/src/FormRender.vue.d.ts +4 -2
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -3
- package/es/components/form-render/src/FormRenderWrapper.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader/index.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/lineBar/FormCollapse.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/lineBar/index.d.ts +2 -0
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/remoteSearch.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/hooks/useChangeContext.d.ts +3 -0
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +3 -2
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +4 -0
- package/es/components/form-render/src/utils/valueFormatter.d.ts +4 -0
- package/es/components/form-render/src/utils/valueFormatter.js +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/separateRendererPlugin/separateUtils.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue.d.ts +1 -0
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/widgets/seqRendererPlugin.js +1 -1
- package/es/components/iho-table/src/plugins/rowDragPlugin.js +1 -1
- package/es/components/iho-table/src/types/index.d.ts +1 -0
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +10 -6
- package/es/components/info-header/src/InfoHeader.vue.d.ts +10 -6
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +5 -3
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -3
- package/es/components/shortcut-setter/index.d.ts +5 -3
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -3
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -0
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -0
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -0
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
@@ -1 +1 @@
|
|
1
|
-
import t from"../../../../shared/assets/img/defaultCover/1location.png.js";import e from"../../../../shared/assets/img/defaultCover/2notfound.png.js";import s from"../../../../shared/assets/img/defaultCover/3loading.png.js";import o from"../../../../shared/assets/img/defaultCover/4no_permission.png.js";import
|
1
|
+
import t from"../../../../shared/assets/img/defaultCover/1location.png.js";import e from"../../../../shared/assets/img/defaultCover/2notfound.png.js";import s from"../../../../shared/assets/img/defaultCover/3loading.png.js";import o from"../../../../shared/assets/img/defaultCover/4no_permission.png.js";import i from"../../../../shared/assets/img/defaultCover/5no_data.png.js";import r from"../../../../shared/assets/img/defaultCover/6no_network.png.js";import m from"../../../../shared/assets/img/defaultCover/7no_doctor.png.js";import n from"../../../../shared/assets/img/defaultCover/8system_error.png.js";import a from"../../../../shared/assets/img/defaultCover/9system_upgrade.png.js";import g from"../../../../shared/assets/img/defaultCover/10review_successful.png.js";import l from"../../../../shared/assets/img/defaultCover/11review_fail.png.js";import d from"../../../../shared/assets/img/defaultCover/12no_setting.png.js";import N from"../../../../shared/assets/img/defaultCover/13no_menu_setting.png.js";import O from"../../../../shared/assets/img/defaultCover/14no_call_setting.png.js";import f from"../../../../shared/assets/img/defaultCover/15no_use_tag.png.js";import p from"../../../../shared/assets/img/defaultCover/16no_table_data.png.js";const E={LOCATION:"1",NOTFOUND:"2",LOADING:"3",NOPERMISSION:"4",NODATA:"5",NONETWORK:"6",NODOCTOR:"7",SYSTEMERROR:"8",SYSTEMUPGRADE:"9",REVIEWSUCCESSFUL:"10",REVIEWFAIL:"11",NOSETTING:"12",NOMENUSETTING:"13",NOCALLSETTING:"14",NOUSETAG:"15",NOTABLEDATA:"16"},T={[E.LOCATION]:{title:"位置访问失败 ",content:"",img:t},[E.NOTFOUND]:{title:"找不到页面",content:"",img:e},[E.LOADING]:{title:"正在拼命加载中...",content:"请稍后",img:s},[E.NOPERMISSION]:{title:"你没有访问权限",content:"",img:o},[E.NODATA]:{title:"暂无数据",content:"",img:i},[E.NONETWORK]:{title:"请检查网络连接情况",content:"",img:r},[E.NODOCTOR]:{title:"暂无医生排班",content:"",img:m},[E.SYSTEMERROR]:{title:"系统错误",content:"请稍后再试",img:n},[E.SYSTEMUPGRADE]:{title:"系统正在升级中...",content:"",img:a},[E.REVIEWSUCCESSFUL]:{title:"审核成功",content:"",img:g},[E.REVIEWFAIL]:{title:"审核失败",content:"",img:l},[E.NOSETTING]:{title:"视图未配置",content:"",img:d},[E.NOMENUSETTING]:{title:"你还没有进行菜单设置哟~",content:"设置后可自定义调整菜单的顺序/结构,不设置使用系统默认菜单",img:N},[E.NOCALLSETTING]:{title:"呼叫中心未配置",content:"",img:O},[E.NOUSETAG]:{title:"无可选标签 ",content:"",img:f},[E.NOTABLEDATA]:{title:"暂无数据 ",content:"",img:p}};export{E as defaultPageTypeConfig,T as descriptionConfig};
|
@@ -31,7 +31,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
31
31
|
content: string;
|
32
32
|
img: string;
|
33
33
|
}>;
|
34
|
-
NEmpty: any;
|
35
34
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
36
35
|
type: {
|
37
36
|
type: StringConstructor;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as t,computed as e,openBlock as
|
1
|
+
import{defineComponent as t,computed as e,openBlock as s,createElementBlock as l,createCommentVNode as c,renderSlot as i,unref as n,Fragment as a,createElementVNode as o,toDisplayString as r}from"vue";import{descriptionConfig as p}from"./constants/index.js";const f={class:"default-page-getter-block"},g={key:0,class:"wrapper"},y=["src","alt"],d=["src","alt"],u={class:"page-description"},m={key:0,class:"title"},k={key:1,class:"content"};var v=t({__name:"index",props:{type:{type:String,default:"1"},config:{type:Object,default:()=>({title:"",content:""})}},setup(t){const v=t,b=e((()=>{let t=p[v.type];return v.config&&Object.keys(v.config).length>0&&Object.keys(v.config).forEach((e=>{const s=v.config[e];s&&(t[e]=s)})),t}));return(e,p)=>(s(),l("div",f,[c(" 默认插槽,自定义缺省页 "),i(e.$slots,"default",{},(()=>[t.type?(s(),l("div",g,[c(" 针对小空间和表格的情况 "),"16"==t.type?(s(),l("img",{key:0,class:"img-table",src:n(b).img,alt:n(b).title},null,8,y)):(s(),l(a,{key:1},[c(" 普通缺省情况 "),o("img",{class:"img-default",src:n(b).img,alt:n(b).title},null,8,d)],2112)),o("div",u,[n(b).title?(s(),l("span",m,r(n(b).title),1)):c("v-if",!0),n(b).content?(s(),l("span",k,r(n(b).content),1)):c("v-if",!0)])])):c("v-if",!0)]))]))}});export{v as default};
|
@@ -1 +1 @@
|
|
1
|
-
.default-page-getter-block .
|
1
|
+
.default-page-getter-block,.default-page-getter-block .wrapper{align-items:center;display:flex;flex-direction:column;justify-content:center}.default-page-getter-block .wrapper .img-table{display:block;height:60px;width:60px}.default-page-getter-block .wrapper .img-default{display:block;height:188px;width:260px}.default-page-getter-block .wrapper .page-description{align-items:center;display:flex;flex-direction:column;max-width:260px}.default-page-getter-block .wrapper .page-description .title{color:rgba(0,0,0,.8);font-size:16px;margin-top:8px}.default-page-getter-block .wrapper .page-description .content{color:#c2c2c2;font-size:14px;margin-top:4px;text-align:center}
|
@@ -457,9 +457,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
457
457
|
requiredDisable: boolean;
|
458
458
|
hide: boolean;
|
459
459
|
}>;
|
460
|
-
isHighlightRow: boolean;
|
461
460
|
idx: number;
|
462
461
|
isHighlight: boolean;
|
462
|
+
isHighlightRow: boolean;
|
463
463
|
}>;
|
464
464
|
EditDialog: import("vue").DefineComponent<{
|
465
465
|
visible: {
|
@@ -575,9 +575,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
575
575
|
requiredDisable: boolean;
|
576
576
|
hide: boolean;
|
577
577
|
}>;
|
578
|
-
isHighlightRow: boolean;
|
579
578
|
idx: number;
|
580
579
|
isHighlight: boolean;
|
580
|
+
isHighlightRow: boolean;
|
581
581
|
}>;
|
582
582
|
isArray: {
|
583
583
|
(value?: any): value is any[];
|
@@ -282,8 +282,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
282
282
|
requiredDisable: boolean;
|
283
283
|
hide: boolean;
|
284
284
|
}>;
|
285
|
-
isHighlightRow: boolean;
|
286
285
|
idx: number;
|
287
286
|
isHighlight: boolean;
|
287
|
+
isHighlightRow: boolean;
|
288
288
|
}>;
|
289
289
|
export default _default;
|
@@ -7427,7 +7427,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
7427
7427
|
formRenderRef: import("vue").Ref<import("..").FormRenderExpose | undefined>;
|
7428
7428
|
key: import("vue").Ref<number>;
|
7429
7429
|
reload: () => Promise<void>;
|
7430
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting"];
|
7430
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
7431
7431
|
exposed: Partial<import("..").FormRenderExpose>;
|
7432
7432
|
FormRender: import("vue").DefineComponent<{
|
7433
7433
|
fieldList: {
|
@@ -7815,8 +7815,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
7815
7815
|
onScroll?: ((...args: any[]) => any) | undefined;
|
7816
7816
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
7817
7817
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
7818
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
7818
7819
|
}>>;
|
7819
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields", ...args: any[]) => void;
|
7820
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
7820
7821
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
7821
7822
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
7822
7823
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -8162,7 +8163,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
8162
8163
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
8163
8164
|
}>;
|
8164
8165
|
NTabs: any;
|
8165
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8166
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8166
8167
|
fieldList: {
|
8167
8168
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
8168
8169
|
};
|
@@ -8357,6 +8358,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
8357
8358
|
onScroll?: ((...args: any[]) => any) | undefined;
|
8358
8359
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
8359
8360
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
8361
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
8360
8362
|
}, {
|
8361
8363
|
anchor: boolean;
|
8362
8364
|
maxHeight: string | number;
|
@@ -13986,7 +13988,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
13986
13988
|
formRenderRef: import("vue").Ref<import("..").FormRenderExpose | undefined>;
|
13987
13989
|
key: import("vue").Ref<number>;
|
13988
13990
|
reload: () => Promise<void>;
|
13989
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting"];
|
13991
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
13990
13992
|
exposed: Partial<import("..").FormRenderExpose>;
|
13991
13993
|
FormRender: import("vue").DefineComponent<{
|
13992
13994
|
fieldList: {
|
@@ -14374,8 +14376,9 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
14374
14376
|
onScroll?: ((...args: any[]) => any) | undefined;
|
14375
14377
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
14376
14378
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
14379
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
14377
14380
|
}>>;
|
14378
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields", ...args: any[]) => void;
|
14381
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
14379
14382
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
14380
14383
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
14381
14384
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -14721,7 +14724,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
14721
14724
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
14722
14725
|
}>;
|
14723
14726
|
NTabs: any;
|
14724
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
14727
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
14725
14728
|
fieldList: {
|
14726
14729
|
type: import("vue").PropType<import("..").FieldItem[]>;
|
14727
14730
|
};
|
@@ -14916,6 +14919,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
14916
14919
|
onScroll?: ((...args: any[]) => any) | undefined;
|
14917
14920
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
14918
14921
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
14922
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
14919
14923
|
}, {
|
14920
14924
|
anchor: boolean;
|
14921
14925
|
maxHeight: string | number;
|
@@ -7430,7 +7430,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
7430
7430
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
7431
7431
|
key: import("vue").Ref<number>;
|
7432
7432
|
reload: () => Promise<void>;
|
7433
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting"];
|
7433
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
7434
7434
|
exposed: Partial<FormRenderExpose>;
|
7435
7435
|
FormRender: import("vue").DefineComponent<{
|
7436
7436
|
fieldList: {
|
@@ -7818,8 +7818,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
7818
7818
|
onScroll?: ((...args: any[]) => any) | undefined;
|
7819
7819
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
7820
7820
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
7821
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
7821
7822
|
}>>;
|
7822
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields", ...args: any[]) => void;
|
7823
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
7823
7824
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
7824
7825
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
7825
7826
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -8165,7 +8166,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
8165
8166
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
8166
8167
|
}>;
|
8167
8168
|
NTabs: any;
|
8168
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8169
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
8169
8170
|
fieldList: {
|
8170
8171
|
type: PropType<import("../../../components/form-render").FieldItem[]>;
|
8171
8172
|
};
|
@@ -8360,6 +8361,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
8360
8361
|
onScroll?: ((...args: any[]) => any) | undefined;
|
8361
8362
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
8362
8363
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
8364
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
8363
8365
|
}, {
|
8364
8366
|
anchor: boolean;
|
8365
8367
|
maxHeight: string | number;
|
@@ -13989,7 +13991,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
13989
13991
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
13990
13992
|
key: import("vue").Ref<number>;
|
13991
13993
|
reload: () => Promise<void>;
|
13992
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting"];
|
13994
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
13993
13995
|
exposed: Partial<FormRenderExpose>;
|
13994
13996
|
FormRender: import("vue").DefineComponent<{
|
13995
13997
|
fieldList: {
|
@@ -14377,8 +14379,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
14377
14379
|
onScroll?: ((...args: any[]) => any) | undefined;
|
14378
14380
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
14379
14381
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
14382
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
14380
14383
|
}>>;
|
14381
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields", ...args: any[]) => void;
|
14384
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
14382
14385
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
14383
14386
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
14384
14387
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -14724,7 +14727,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
14724
14727
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
14725
14728
|
}>;
|
14726
14729
|
NTabs: any;
|
14727
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
14730
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
14728
14731
|
fieldList: {
|
14729
14732
|
type: PropType<import("../../../components/form-render").FieldItem[]>;
|
14730
14733
|
};
|
@@ -14919,6 +14922,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
14919
14922
|
onScroll?: ((...args: any[]) => any) | undefined;
|
14920
14923
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
14921
14924
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
14925
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
14922
14926
|
}, {
|
14923
14927
|
anchor: boolean;
|
14924
14928
|
maxHeight: string | number;
|
@@ -19,7 +19,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
19
19
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
20
20
|
key: import("vue").Ref<number>;
|
21
21
|
reload: () => Promise<void>;
|
22
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting"];
|
22
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
23
23
|
exposed: Partial<FormRenderExpose>;
|
24
24
|
FormRender: import("vue").DefineComponent<{
|
25
25
|
fieldList: {
|
@@ -407,8 +407,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
407
407
|
onScroll?: ((...args: any[]) => any) | undefined;
|
408
408
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
409
409
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
410
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
410
411
|
}>>;
|
411
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields", ...args: any[]) => void;
|
412
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
412
413
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
413
414
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
414
415
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -754,7 +755,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
754
755
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
755
756
|
}>;
|
756
757
|
NTabs: any;
|
757
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
758
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
758
759
|
fieldList: {
|
759
760
|
type: import("vue").PropType<FieldItem[]>;
|
760
761
|
};
|
@@ -949,6 +950,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
949
950
|
onScroll?: ((...args: any[]) => any) | undefined;
|
950
951
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
951
952
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
953
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
952
954
|
}, {
|
953
955
|
anchor: boolean;
|
954
956
|
maxHeight: string | number;
|
@@ -5491,7 +5491,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
5491
5491
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
5492
5492
|
key: import("vue").Ref<number>;
|
5493
5493
|
reload: () => Promise<void>;
|
5494
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting"];
|
5494
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
5495
5495
|
exposed: Partial<FormRenderExpose>;
|
5496
5496
|
FormRender: import("vue").DefineComponent<{
|
5497
5497
|
fieldList: {
|
@@ -5879,8 +5879,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
5879
5879
|
onScroll?: ((...args: any[]) => any) | undefined;
|
5880
5880
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
5881
5881
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
5882
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
5882
5883
|
}>>;
|
5883
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields", ...args: any[]) => void;
|
5884
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
5884
5885
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
5885
5886
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
5886
5887
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -6226,7 +6227,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
6226
6227
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
6227
6228
|
}>;
|
6228
6229
|
NTabs: any;
|
6229
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
6230
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
6230
6231
|
fieldList: {
|
6231
6232
|
type: PropType<FieldItem[]>;
|
6232
6233
|
};
|
@@ -6421,6 +6422,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
6421
6422
|
onScroll?: ((...args: any[]) => any) | undefined;
|
6422
6423
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
6423
6424
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
6425
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
6424
6426
|
}, {
|
6425
6427
|
anchor: boolean;
|
6426
6428
|
maxHeight: string | number;
|
@@ -6,7 +6,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
6
6
|
formRenderRef: import("vue").Ref<import("./src/types").FormRenderExpose | undefined>;
|
7
7
|
key: import("vue").Ref<number>;
|
8
8
|
reload: () => Promise<void>;
|
9
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting"];
|
9
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
10
10
|
exposed: Partial<import("./src/types").FormRenderExpose>;
|
11
11
|
FormRender: import("vue").DefineComponent<{
|
12
12
|
fieldList: {
|
@@ -394,8 +394,9 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
394
394
|
onScroll?: ((...args: any[]) => any) | undefined;
|
395
395
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
396
396
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
397
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
397
398
|
}>>;
|
398
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields", ...args: any[]) => void;
|
399
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
399
400
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
400
401
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
401
402
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -741,7 +742,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
741
742
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
742
743
|
}>;
|
743
744
|
NTabs: any;
|
744
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
745
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
745
746
|
fieldList: {
|
746
747
|
type: import("vue").PropType<import("./src/types").FieldItem[]>;
|
747
748
|
};
|
@@ -936,6 +937,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
936
937
|
onScroll?: ((...args: any[]) => any) | undefined;
|
937
938
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
938
939
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
940
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
939
941
|
}, {
|
940
942
|
anchor: boolean;
|
941
943
|
maxHeight: string | number;
|
@@ -389,8 +389,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
389
389
|
onScroll?: ((...args: any[]) => any) | undefined;
|
390
390
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
391
391
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
392
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
392
393
|
}>>;
|
393
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields", ...args: any[]) => void;
|
394
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
394
395
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
395
396
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
396
397
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -736,7 +737,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
736
737
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
737
738
|
}>;
|
738
739
|
NTabs: any;
|
739
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
740
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
740
741
|
fieldList: {
|
741
742
|
type: PropType<FieldItem[]>;
|
742
743
|
};
|
@@ -931,6 +932,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
931
932
|
onScroll?: ((...args: any[]) => any) | undefined;
|
932
933
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
933
934
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
935
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
934
936
|
}, {
|
935
937
|
anchor: boolean;
|
936
938
|
maxHeight: string | number;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as o,provide as t,computed as r,onUnmounted as a,openBlock as s,createBlock as i,unref as l,mergeProps as n,withCtx as m,createElementBlock as d,createVNode as p,isRef as u,Fragment as c,renderList as f,createCommentVNode as h,createElementVNode as y,normalizeStyle as g,toDisplayString as b,renderSlot as j}from"vue";import{useTheme as v}from"../../../shared/hooks/useTheme.js";import{useElementSize as k}from"@vueuse/core";import"date-fns";import{isNumber as
|
1
|
+
import{defineComponent as e,ref as o,provide as t,computed as r,onUnmounted as a,openBlock as s,createBlock as i,unref as l,mergeProps as n,withCtx as m,createElementBlock as d,createVNode as p,isRef as u,Fragment as c,renderList as f,createCommentVNode as h,createElementVNode as y,normalizeStyle as g,toDisplayString as b,renderSlot as j}from"vue";import{useTheme as v}from"../../../shared/hooks/useTheme.js";import{useElementSize as k}from"@vueuse/core";import"date-fns";import{isNumber as F,cloneDeep as C}from"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{NForm as S,NTabs as w,NTabPane as H,NConfigProvider as x}from"naive-ui";import{useVersion as A}from"../../../shared/hooks/useVersion.js";import{createForm as B,onFormMount as L,onFieldValueChange as R,onFieldMount as O,onFieldUnmount as V,onFieldReact as I}from"@formily/core";import{Path as _}from"@formily/path";import{FormProvider as D,FormConsumer as N}from"@formily/vue";import{InjectionFormColumnWidth as T,InjectionFormLifeCycleCaller as W,InjectionFormGraph as U}from"./constants/index.js";import{createObjSchema as q}from"./utils/schema.js";import{useAnchor as E}from"./hooks/useAnchor.js";import{useAutoHidden as G}from"./hooks/useAutoHidden.js";import"../index.js";import{useComplexOptionsSpan as M}from"./hooks/useComplexOptions.js";import{useFieldListAdaptor as K}from"./hooks/useFieldListAdaptor.js";import"../../../shared/utils/tapable/SyncHook.js";import"../../../shared/utils/tapable/SyncBailHook.js";import"../../../shared/utils/tapable/SyncWaterfallHook.js";import"../../../shared/utils/tapable/SyncLoopHook.js";import"../../../shared/utils/tapable/AsyncParallelHook.js";import"../../../shared/utils/tapable/AsyncParallelBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesHook.js";import"../../../shared/utils/tapable/AsyncSeriesBailHook.js";import"../../../shared/utils/tapable/AsyncSeriesLoopHook.js";import"../../../shared/utils/tapable/AsyncSeriesWaterfallHook.js";import{useFieldVisitor as P}from"./hooks/useFieldVisitor.js";import{useFormContext as z}from"./hooks/useFormContext.js";import{useFormDomEvent as J,useFormExposeEvent as $}from"./hooks/useFormEvent.js";import{useFormGraph as Q}from"./hooks/useFormGraph.js";import{useFormRenderLifeCycle as X}from"./hooks/useFormRenderLifeCycle.js";import{validateMessageLocale as Y}from"./hooks/useFormValidator.js";import{useLowCodeEvent as Z}from"./hooks/useLowCodeEvent.js";import{useLowCodeReactions as ee}from"./hooks/useLowCodeReactions.js";import{useNuiThemeOverrides as oe}from"./hooks/useNuiThemeOverrides.js";import{useOperationalForm as te}from"./hooks/useOperationalForm.js";import{useWordbookSetting as re}from"./hooks/useWordbookSetting.js";import{useNewLowCodeReactions as ae}from"./hooks/useNewLowCodeReactions.js";const se={key:0,style:{height:"54px"}},ie={style:{"white-space":"pre"}};var le=e({__name:"FormRender",props:{fieldList:{type:Array},initialData:{type:Object,default:()=>({})},fieldVisitor:{type:Object},column:{type:Number,default:24},maxHeight:{type:[Number,String],default:""},anchor:{type:Boolean,default:!1},parallelism:{type:Number,default:3},businessFormatter:{type:Function},schema:{type:Object},components:{type:Object,default:()=>({})},scope:{type:Object,default:()=>({})},annotation:{type:Object},annotationShortcuts:{type:Array},consumer:{type:Boolean,default:!1},uuid:{type:String},lifeCycle:{type:Object},requestInstance:{type:Object},enterToNextWidget:{type:[Boolean,Function],default:!0},autoExpand:Boolean,lowCodeReactions:{type:Array},newLowCodeReactions:{type:Array},operationalForm:{type:Array},dateOperationalForm:{type:Object},operationalFormInit:{type:Boolean,default:!0},linebarAutoHidden:{type:Boolean},bordered:{type:[Boolean,String],default:!0},labelPlacementOverwrite:Boolean,outBordered:{type:Boolean,default:!1},uniqueCacheData:{type:Boolean,default:!1},forceClearable:Boolean,wordSplitFilter:{type:Boolean,default:!0},selectMode:Boolean,selectedFields:{type:Array},linebarDirection:{type:String,default:"vertical"},linebarTextDirection:{type:String,default:"horizontal"},linebarWidth:{type:[Number,String],default:120},autoWidth:{type:[Boolean,Number],default:!1}},emits:["formChange","annotationChange","scroll","update:selectedFields","linebarChange"],setup(e,{expose:le,emit:ne}){const me=e,de=v(),{nuiThemeOverrides:pe}=oe();Y();const ue=o(),{width:ce}=k(ue);t(T,r((()=>ce.value?(ce.value-16*(me.column-1))/24:0)));const fe=r((()=>F(me.maxHeight)?me.maxHeight+"px":me.maxHeight)),{SchemaField:he,businessCollector:ye,formItemDepsCollector:ge,changeContextCollector:be,formUUID:je}=z(me,ne),{anchorBarRef:ve,currentAnchor:ke,updateAnchorList:Fe,anchorIdList:Ce,onScroll:Se}=E(me,ne,ue,ge),{callLifeCycle:we}=X(me);t(W,we),we("onSetup");const{trigger:He}=G(),{observeFormGraph:xe,setGraph:Ae,removeGraph:Be}=Q();t(U,xe);const{lowCodeEventTrigger:Le}=Z(),Re=B({initialValues:me.initialData,effects(e){const o={};L((()=>{Object.assign(o,C(e.values))})),R("*",(t=>{const r=_.getIn(o,t.path);_.setIn(o,t.path,t.value);const a=t.props.name.toString();ye.trigger(e,a),ge.trigger(t.path),ne("formChange",{fieldInstance:t,fieldKey:a,oldValue:r,fieldName:t.title,value:t.value,context:be.getContext(a,t.value)}),Le(t),Oe(a),Ve(a),Ie.trigger(a),_e.trigger(a,t.value)})),O("*",Ae),O("*",(e=>{const o=e.props.name.toString();Oe(o),Ve(o),me.operationalFormInit&&Ie.trigger(o)})),V("*",Be),I("*",(e=>He(e,me.linebarAutoHidden))),L((e=>e.query("*").forEach((e=>He(e,me.linebarAutoHidden))))),me.anchor&&I("*",Fe)}}),{lowCodeReactionsHandler:Oe}=ee(r((()=>me.lowCodeReactions)),Re),{newLowCodeReactionsHandler:Ve}=ae(r((()=>me.newLowCodeReactions)),Re),Ie=te(me,Re),_e=re().create(Re,be),{schemaAdaptor:De}=K(ye,me.lifeCycle);let Ne=me.fieldList||[];const Te=r((()=>me.schema?me.schema:me.fieldList?(Ne=P().traverse(C(me.fieldList),me.fieldVisitor),q(De(Ne,me))):q({}))),{onKeydown:We}=J({formModel:Re,formRenderRef:ue,props:me,formUUID:je}),{clearSpan:Ue}=M();a((()=>Ue(je)));const qe=$({formModel:Re,formRenderRef:ue,formItemDepsCollector:ge,businessCollector:ye,wordbookSettingHandler:_e,operationalFormHandler:Ie,getFieldList:()=>Ne,formUUID:je,changeContextCollector:be});return le({formModel:Re,validate:(e="*",o={})=>qe.validate(e,o),getFormValues:(e=!0)=>qe.getFormValues(e),setFormValues:async(e,o={})=>qe.setFormValues(e,o),setFieldState(e,o){qe.setFieldState(e,o)},resetFields(e="*"){qe.resetFields(e)},queryWidget:async e=>qe.queryWidget(e),getFieldList:()=>Ne,applySelectedSetting:e=>qe.applySelectedSetting(e),async reload(){console.error("reload function is abstract,it should be overwrite!")},getTextFormValues:()=>qe.getTextFormValues()}),(o,t)=>(s(),i(l(S),n({class:["form-render",{"form-render--out-border":e.outBordered}],"require-mark-placement":"left",style:l(de)},l(A)(),{uuid:l(je)}),{default:m((()=>[e.anchor?(s(),d("section",se,[p(l(w),{value:l(ke),"onUpdate:value":t[0]||(t[0]=e=>u(ke)?ke.value=e:null),type:"line",ref_key:"anchorBarRef",ref:ve},{default:m((()=>[(s(!0),d(c,null,f(l(Ce),(e=>(s(),i(l(H),{name:e.name,tab:e.title,key:e.name},null,8,["name","tab"])))),128))])),_:1},8,["value"])])):h("v-if",!0),p(l(x),{"theme-overrides":l(pe)},{default:m((()=>[y("section",{class:"form-render__wrapper",style:g({"--column":e.column,"--form-height":l(fe)}),ref_key:"formRenderRef",ref:ue,onScroll:t[1]||(t[1]=(...e)=>l(Se)&&l(Se)(...e)),onKeydownCapture:t[2]||(t[2]=(...e)=>l(We)&&l(We)(...e))},[p(l(D),{form:l(Re)},{default:m((()=>[p(l(he),{schema:l(Te)},null,8,["schema"]),e.consumer?(s(),i(l(N),{key:0},{default:m((({form:e})=>[y("div",ie,b(JSON.stringify(e.values,null,2)),1)])),_:1})):h("v-if",!0),j(o.$slots,"default")])),_:3},8,["form"])],36)])),_:3},8,["theme-overrides"])])),_:3},16,["class","style","uuid"]))}});export{le as default};
|
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
4
4
|
formRenderRef: import("vue").Ref<FormRenderExpose | undefined>;
|
5
5
|
key: import("vue").Ref<number>;
|
6
6
|
reload: () => Promise<void>;
|
7
|
-
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting"];
|
7
|
+
formRenderExposeKeyList: readonly ["validate", "getFormValues", "setFormValues", "setFieldState", "resetFields", "queryWidget", "getFieldList", "applySelectedSetting", "getTextFormValues"];
|
8
8
|
exposed: Partial<FormRenderExpose>;
|
9
9
|
FormRender: import("vue").DefineComponent<{
|
10
10
|
fieldList: {
|
@@ -392,8 +392,9 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
392
392
|
onScroll?: ((...args: any[]) => any) | undefined;
|
393
393
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
394
394
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
395
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
395
396
|
}>>;
|
396
|
-
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields", ...args: any[]) => void;
|
397
|
+
emit: (event: "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", ...args: any[]) => void;
|
397
398
|
cssVars: import("vue").ComputedRef<import("vue").CSSProperties>;
|
398
399
|
nuiThemeOverrides: import("naive-ui").GlobalThemeOverrides;
|
399
400
|
formRenderRef: import("vue").Ref<HTMLElement | undefined>;
|
@@ -739,7 +740,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
739
740
|
readonly displayDirective: "if" | "show" | "show:lazy";
|
740
741
|
}>;
|
741
742
|
NTabs: any;
|
742
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
743
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange")[], "scroll" | "formChange" | "annotationChange" | "update:selectedFields" | "linebarChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
743
744
|
fieldList: {
|
744
745
|
type: import("vue").PropType<import("../../../components/form-render").FieldItem[]>;
|
745
746
|
};
|
@@ -934,6 +935,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
934
935
|
onScroll?: ((...args: any[]) => any) | undefined;
|
935
936
|
onAnnotationChange?: ((...args: any[]) => any) | undefined;
|
936
937
|
"onUpdate:selectedFields"?: ((...args: any[]) => any) | undefined;
|
938
|
+
onLinebarChange?: ((...args: any[]) => any) | undefined;
|
937
939
|
}, {
|
938
940
|
anchor: boolean;
|
939
941
|
maxHeight: string | number;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as r,computed as t,openBlock as l,createBlock as a,withCtx as o,renderSlot as u,nextTick as d}from"vue";import s from"./FormRender.vue.js";var n=e({__name:"FormRenderWrapper",setup(e,{expose:n}){const i=r(),
|
1
|
+
import{defineComponent as e,ref as r,computed as t,openBlock as l,createBlock as a,withCtx as o,renderSlot as u,nextTick as d}from"vue";import s from"./FormRender.vue.js";var n=e({__name:"FormRenderWrapper",setup(e,{expose:n}){const i=r(),m=r(0);return n({...["validate","getFormValues","setFormValues","setFieldState","resetFields","queryWidget","getFieldList","applySelectedSetting","getTextFormValues"].reduce(((e,r)=>(e[r]=(...e)=>{var t;return(null==(t=i.value)?void 0:t[r]).call(t,...e)},e)),{}),formModel:t((()=>{var e;return null==(e=i.value)?void 0:e.formModel})),reload:async function(){m.value++,await d()}}),(e,r)=>(l(),a(s,{key:m.value,ref_key:"formRenderRef",ref:i},{default:o((()=>[u(e.$slots,"default")])),_:3}))}});export{n as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as o,createVNode as
|
1
|
+
import{defineComponent as e,inject as o,createVNode as a}from"vue";import t from"../../../../../../shared/components/no-data/NoData.vue.js";import"../../../../../../shared/utils/index.js";import"lodash-es";import"naive-ui";import"@vueuse/core";import"date-fns";import"@vue/shared";import{useLevelSearchCascader as r}from"../../../../../../shared/hooks/useLevelSearchCascader.js";import"@vueuse/shared";import"../../../../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import{connect as s,mapProps as u}from"@formily/vue";import"../../../../index.js";import{InjectionAsyncQueue as l,InjectionChangeContextCollector as i}from"../../../constants/index.js";import{useCommonInjection as n}from"../../../hooks/useCommonInjection.js";import d from"../../../../../search-cascader/index.js";import{assignUpdateValue as m}from"../../../utils/schema.js";import{useFormField as p}from"../../../hooks/useFormField.js";const v=s(e({name:"FormSearchCascade",props:{options:{type:Array,default:()=>[]},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},autograph:{type:String,required:!0},lazyRequest:{type:Boolean,default:!0},requestCache:{type:Boolean,default:!0},wordbook:{type:Object,required:!0},onChange:{},value:{type:[String,Array]}},emits:["update:value"],setup(e,{emit:s}){const u=o(l),{field:m,fieldKey:v}=p(),{valueRef:c,labelKey:f,valueKey:h,optionsRef:y,showRef:j,fetchData:C,menuWidth:F,searchCascaderRef:S}=r(e,s,{fieldKey:v,asyncQueue:u,getRequestPayload:()=>({field:m.value})});function g(){F.value=150}o(i).setContext(v.value,(()=>({labelField:f.value,valueField:h.value})));const{injectValueValidate:k,injectValueBindKey:x}=n();k(c);const K=x(c);return()=>a(d,{ref:S,value:c.value,"onUpdate:value":e=>c.value=e,show:j.value,"onUpdate:show":e=>j.value=e,options:y.value,key:K.value,labelKey:f.value,valueKey:h.value,search:C,onFocus:g,menuWidth:F.value},{empty:()=>a(t,null,null)})}}),u({dataSource:"options"},m));export{v as LEVEL_SEARCH_CASCADER};
|
@@ -48,8 +48,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
48
48
|
};
|
49
49
|
}>> & {}>>;
|
50
50
|
_show: import("vue").Ref<boolean>;
|
51
|
+
globEmit: ((event: string, ...args: any[]) => void) | undefined;
|
51
52
|
toggleShow: () => void;
|
52
53
|
field: import("vue").Ref<import("@formily/core").GeneralField>;
|
54
|
+
fieldKey: import("vue").ComputedRef<string>;
|
53
55
|
formItemDepsCollector: import("../../../../../../components/form-render").FormItemDepsCollector;
|
54
56
|
globProps: Readonly<Partial<{
|
55
57
|
fieldList: import("../../../../../../components/form-render").FieldItem[];
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,ref as r,inject as
|
1
|
+
import{defineComponent as e,ref as r,inject as l,computed as i,openBlock as t,createElementBlock as a,createElementVNode as n,normalizeClass as o,unref as s,normalizeStyle as d,renderSlot as u,createTextVNode as m,toDisplayString as f,createBlock as v,createCommentVNode as b,Fragment as c,createVNode as p,withCtx as h}from"vue";import{widthAppend as _}from"../../../../../../shared/utils/index.js";import"../../../../index.js";import y from"../../tooltipMessage.vue.js";import{InjectionFormGlobalEmit as g,InjectionFormItemDepsCollector as k,InjectionFormGlobalProps as x}from"../../../constants/index.js";import{ChevronDown as w,ChevronUp as D}from"@vicons/ionicons5";import{NCollapseTransition as S}from"naive-ui";import{useFormField as j}from"../../../hooks/useFormField.js";const z={class:"form-render__linebar"};var T=e({__name:"FormCollapse",props:{show:{type:Boolean,default:!0},title:{type:String,default:""},remark:String,disabled:{type:Boolean,default:!1},linebarDirection:{type:String},linebarWidth:{type:[Number,String]},linebarTextDirection:{type:String}},setup(e){const T=e,B=r(T.show),C=l(g);function F(){!T.disabled&&$.value&&(B.value=!B.value,null==C||C("linebarChange",{field:H.value,fieldKey:W.value,show:B.value,showRef:B}))}const{field:H,fieldKey:W}=j();l(k).setDeps(H.value.path,H.value.path.toString(),((e,r=!0)=>{B.value=r}));const K=l(x,{}),$=i((()=>{var e;return"horizontal"!==(null!=(e=T.linebarDirection)?e:K.linebarDirection)})),I=i((()=>$.value?"":["form-render__linebar--horizontal","form-render__linebar--horizontalBorder"])),M=i((()=>{var e,r;return null!=(r=null!=(e=T.linebarWidth)?e:K.linebarWidth)?r:120})),N=i((()=>$.value?{}:{"--form-render-linebar-width":_(M.value),"border-right":"1px solid black"})),R=i((()=>["form-render__linebarHeader",{"form-render__linebarHeader--disabled":!!T.disabled}])),q=i((()=>{var e,r;return null!=(r=null!=(e=T.linebarTextDirection)?e:K.linebarTextDirection)?r:"horizontal"})),A=i((()=>"vertical"!==q.value||$.value?{}:{"writing-mode":"vertical-lr","text-orientation":"upright"}));return(r,l)=>(t(),a("section",z,[n("section",{class:o(s(I))},[n("header",{class:o(s(R)),onClick:F,style:d(s(N))},[n("div",{class:"form-render__linebarHeaderTitle",style:d(s(A))},[u(r.$slots,"title",{},(()=>[m(f(e.title),1)])),e.remark?(t(),v(y,{key:0,message:e.remark},null,8,["message"])):b("v-if",!0)],4),!e.disabled&&s($)?(t(),a(c,{key:0},[B.value?(t(),v(s(w),{key:0})):(t(),v(s(D),{key:1}))],64)):b("v-if",!0)],6),p(s(S),{class:"form-render__linebarItem",show:B.value},{default:h((()=>[u(r.$slots,"default")])),_:3},8,["show"])],2)]))}});export{T as default};
|
@@ -47,8 +47,10 @@ export declare const LINEBAR: import("vue").DefineComponent<{
|
|
47
47
|
};
|
48
48
|
}>> & {}>>;
|
49
49
|
_show: import("vue").Ref<boolean>;
|
50
|
+
globEmit: ((event: string, ...args: any[]) => void) | undefined;
|
50
51
|
toggleShow: () => void;
|
51
52
|
field: import("vue").Ref<import("@formily/core").GeneralField>;
|
53
|
+
fieldKey: import("vue").ComputedRef<string>;
|
52
54
|
formItemDepsCollector: import("../../../hooks").FormItemDepsCollector;
|
53
55
|
globProps: Readonly<Partial<{
|
54
56
|
fieldList: import("../../../types").FieldItem[];
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,computed as t,
|
1
|
+
import{defineComponent as e,computed as t,inject as l,createVNode as a,mergeProps as o,isVNode as n}from"vue";import r from"../../../../../shared/components/CancelRadio/CancelRadio.js";import{connect as i,mapProps as u}from"@formily/vue";import{cloneDeep as d,isArray as s,xor as c,isNumber as p,isEmpty as v}from"lodash-es";import{NCheckboxGroup as m,NCheckbox as f,NRadioGroup as h}from"naive-ui";import"../../../index.js";import{InjectionChangeContextCollector as y}from"../../constants/index.js";import{useComplexOptions as g}from"../../hooks/useComplexOptions.js";import"../../../../../shared/utils/index.js";import"@formily/core";import"@formily/path";import"@vicons/ionicons5";import"@vue/shared";import"@vueuse/core";import"date-fns";import{assignUpdateValue as j,createVisitedSetter as b}from"../../utils/schema.js";import{useUrlConfigOptions as x,useAutographOptions as F}from"../../hooks/useFormRenderOptions.js";import{useCommonInjection as C}from"../../hooks/useCommonInjection.js";import{useFormField as k}from"../../hooks/useFormField.js";function S(r,i,u){return e({name:r,props:{value:{type:[String,Number,Object,Array]},options:{type:Array,default:()=>[]},urlConfig:{type:Object},autograph:{type:String},lazyRequest:{type:Boolean,default:!1},requestCache:{type:Boolean,default:!0},labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},wordbook:{type:Object},vertical:{type:Boolean,default:!1},childFieldStrategy:{type:String,default:"checked"},childWidthMode:{type:String,default:"outer"},clearable:Boolean,selectAll:Boolean,onChange:{}},emits:["update:value"],setup(e,{emit:r,attrs:h}){const{field:j,fieldKey:S}=k();const O=t({get(){return t=e.value,p(t)?t+"":t;var t},set(e){r("update:value",e)}}),{renderComplexOption:w}=g(e,O),{labelKey:_,valueKey:B,fullOptions:K}=e.urlConfig?x(e,O):F(e,O);l(y).setContext(S.value,(e=>{return{currentOption:d((t=e,s(t)?function(e){const t=K.value.reduce(((e,t)=>(e[t[B.value]]=t,e)),{});return e.map((e=>t[e]))}(t):(l=t,K.value.find((e=>e[B.value]===l))))),labelField:_.value,valueField:B.value};var t,l}));const{injectValueBindKey:W,injectValueValidate:R}=C();R(O);const A=W(O);function I(){O.value=null}const M=t({get:()=>s(O.value)&&O.value.length===K.value.length,set(e){const t=e?K.value.map((e=>e[B.value])):[];c(t,O.value).length&&(O.value=t)}}),V=t((()=>s(e.value)&&e.value.length&&e.value.length<K.value.length));function P(t){let l;const o={display:"flex",alignItems:"center"};if(t.__spanPercent&&"inner"===e.childWidthMode){const e=`${t.__spanPercent}%`;o.maxWidth=e,function(e,t){return!v(t.childrenFields)&&(s(e)?e.includes(t[B.value]):e===t[B.value])}(O.value,t)&&(o.width=e)}return a(u,{key:t[B.value],value:t[B.value],disabled:t.disabled,currentValue:O.value,cancelable:e.clearable,onCancel:I,style:o},"function"==typeof(r=l=w({value:O.value,option:t,valueKey:B.value,labelKey:_.value,childFieldStrategy:e.childFieldStrategy,childWidthMode:e.childWidthMode}))||"[object Object]"===Object.prototype.toString.call(r)&&!n(r)?l:{default:()=>[l]});var r}return()=>{const t=K.value.map((e=>{var t;const l=null==(t=e.childrenFields)?void 0:t.reduce(((e,t)=>e+ +(t.elem_width||3)),0);return{...e,__spanPercent:(l||0)/12*100}})),l={display:"flex",flexDirection:e.vertical?"column":"row",flexWrap:"wrap",justifyItems:"flex-start",alignItems:e.vertical?"flex-start":"center",width:"100%"},n=a(i,o({key:A.value,value:O.value,"onUpdate:value":e=>O.value=e,onClick:b(j),style:{width:"100%"}},h),{default:()=>[a("section",{style:l},[t.map(P)])]});return e.selectAll?a("section",null,[[i!==m?null:a(f,{checked:M.value,"onUpdate:checked":e=>M.value=e,indeterminate:V.value},{default:()=>"全选"}),n]]):n}}})}const O=i(S("FormRadio",h,r),u({dataSource:"options"},j)),w=i(S("FormCheckbox",m,f),u({dataSource:"options"},j));export{w as CHECKBOX,O as RADIO};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,watch as l,inject as
|
1
|
+
import{defineComponent as e,watch as l,inject as a,computed as o,ref as t,createVNode as n}from"vue";import{connect as u,mapProps as r}from"@formily/vue";import{HelpCircleSharp as i}from"@vicons/ionicons5";import{useVModel as s,useDebounceFn as v}from"@vueuse/core";import{cloneDeep as p,isString as d}from"lodash-es";import{NSelect as m,NSpin as c,NEmpty as f,NTooltip as y,NIcon as g,NTag as h}from"naive-ui";import"../../../index.js";import{InjectionChangeContextCollector as C}from"../../constants/index.js";import{useCommonInjection as b,useSelectOptionProps as F}from"../../hooks/useCommonInjection.js";import{assignUpdateValue as j,assignClearBindVisited as S,createVisitedSetter as w}from"../../utils/schema.js";import{useFormField as x}from"../../hooks/useFormField.js";import{useUrlConfigOptions as B,useAutographOptions as K}from"../../hooks/useFormRenderOptions.js";const k=u(e({name:"FormRemoteSearch",props:{value:{type:String},requestCache:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},allowCreate:Boolean,labelField:{type:String,default:"text"},valueField:{type:String,default:"value"},showField:{type:String},urlConfig:{type:Object},autograph:{type:String},wordbook:{type:Object},onChange:{},useLoading:{type:Boolean,default:!0},lazyRequest:{type:Boolean,default:!0},multiple:Boolean,deletable:Boolean},emits:["update:value"],setup(e,{slots:u,emit:r}){const j=s(e,"value",r),{field:S,fieldKey:k}=x(),{injectValueValidate:O,injectValueBindKey:D}=b();O(j);const R=D(j),q={onRequestConfigChange:({fetchData:e,valueKey:l})=>e(j.value,{[l]:j.value}),onDepsChange:({fetchData:e,valueKey:l})=>e(j.value,{[l]:j.value})},{labelKey:L,valueKey:P,showKey:V,fetchData:I,searchContent:U,fullOptions:z,loading:A}=e.urlConfig?B(e,j,q):K(e,j,q),T=v(((e,l="label")=>I(e,{["value"===l?P.value:"keyword"]:e},{avoidSearchContent:!1})),300);l(j,(e=>{if(e&&!z.value.find((l=>l[P.value]===e)))return T(e,"value")}),{immediate:!0});a(C).setContext(k.value,(e=>{return{currentOption:p((l=e,z.value.find((e=>e[P.value]===l)))),labelField:L.value,valueField:P.value};var l}));const{menuProps:$,nodeProps:E}=F(),G=o((()=>z.value.length||!e.allowCreate?z.value:U.value?[{[L.value]:U.value,[P.value]:U.value},...z.value]:z.value));async function H(e){A.value=e,e&&T()}function J(e){const l=e.alias||e[L.value];if(!l||!d(l))return"";const a=l;return e.desc?n("section",{style:{display:"flex",alignItems:"center",gap:"4px"}},[a,e.desc?n(y,null,{trigger:()=>n(g,{component:i},null),default:()=>e.desc}):null]):a}function M({option:l,handleClose:a}){var o;const t=null!=(o=V.value&&l[V.value])?o:l[L.value];if(!e.multiple)return N.value=t,t;return N.value="",e.deletable?n(h,{closable:!0,onClose:function(e){e.stopPropagation(),a()}},{default:()=>t}):`${t};`}const N=t("");return()=>n(m,{title:N.value,remote:!0,filterable:!0,key:R.value,value:j.value,"onUpdate:value":e=>j.value=e,labelField:L.value,valueField:P.value,"menu-props":$,"node-props":E,onSearch:T,"onUpdate:show":H,options:G.value,onFocus:w(S),renderLabel:J,renderTag:M},{empty:()=>e.useLoading&&A.value?n(c,null,null):n(f,{description:"无数据"},null),...u})}}),r(j,S));export{k as REMOTE_SEARCH};
|