cnhis-design-vue 3.2.2-beta.10 → 3.2.2-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/biunique-chat/index.d.ts +2 -0
- package/es/components/biunique-chat/src/Index.vue.d.ts +3 -0
- package/es/components/biunique-chat/src/Index.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/ChatMain.vue.d.ts +2 -0
- package/es/components/biunique-chat/src/components/ChatMain.vue2.js +1 -1
- package/es/components/biunique-chat/src/components/SiderList.vue.d.ts +2 -0
- package/es/components/biunique-chat/src/components/SiderList.vue2.js +1 -1
- package/es/components/biunique-chat/src/constants/index.d.ts +20 -0
- package/es/components/biunique-chat/src/constants/index.js +1 -0
- package/es/components/biunique-chat/src/hooks/useState.js +1 -1
- package/es/components/biunique-chat/src/utils/index.d.ts +2 -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/dialog/drawer.vue2.js +1 -1
- package/es/components/callback/src/components/dialog/modal.vue2.js +1 -1
- package/es/components/callback/src/components/render/popupMaps.d.ts +5 -0
- package/es/components/card-reader-sdk/src/cardReaderSDK.d.ts +26 -7
- package/es/components/card-reader-sdk/src/cardReaderSDK.js +1 -1
- package/es/components/card-reader-sdk/src/types/index.d.ts +4 -1
- package/es/components/card-reader-sdk/src/utils/ensureUID2IdCard.d.ts +17 -0
- package/es/components/card-reader-sdk/src/utils/ensureUID2IdCard.js +1 -0
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/PersonModal.vue2.js +1 -1
- package/es/components/expand-field/src/components/form.vue2.js +1 -1
- package/es/components/form-config/index.d.ts +16 -0
- package/es/components/form-config/src/FormConfig.vue.d.ts +16 -0
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +5 -0
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +8 -0
- package/es/components/form-render/index.d.ts +5 -0
- package/es/components/form-render/src/FormRender.vue.d.ts +5 -0
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +5 -0
- package/es/components/form-render/src/components/renderer/inputNumber.js +1 -1
- package/es/components/form-render/src/hooks/useFieldNormalize.d.ts +2 -0
- package/es/components/form-render/src/hooks/useFormEvent.d.ts +2 -1
- package/es/components/form-render/src/hooks/useFormEvent.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +1 -0
- package/es/components/iho-table/src/IhoTable.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/verticalTablePlugin/src/utils.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +15 -0
- package/es/components/info-header/src/InfoHeader.vue.d.ts +15 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionItem.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/DescriptionList.vue.d.ts +1 -0
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +6 -0
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +5 -0
- package/es/components/shortcut-setter/index.d.ts +5 -0
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +5 -0
- package/es/components/step-notice/src/components/NoticeItem.vue2.js +1 -1
- package/es/components/step-notice/style/index.css +1 -1
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +1 -1
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/index.js +1 -1
- package/package.json +2 -2
|
@@ -47,8 +47,11 @@ export declare namespace InsuranceType {
|
|
|
47
47
|
} & Partial<{
|
|
48
48
|
returndata: Partial<{
|
|
49
49
|
personinfo: Record<'address' | 'age' | 'birthday' | 'cardnum' | 'cardpwd' | 'folk' | 'idnumber' | 'location' | 'ownpay' | 'ptname' | 'pttype' | 'recordid' | 'sex' | 'updateflag', string>;
|
|
50
|
-
cardinfo: Partial<Record<'cardno' | 'cardid' | 'name' | 'sex' | 'sex_code' | 'birthday' | 'nation_name' | 'nation_code' | 'address' | 'idnumber' | 'idtype' | 'issuer' | 'issuedate' | 'expirydate' | 'hasphoto' | 'telphone' | 'companyname' | 'age' | 'age_code' | 'age_name' | 'ages', string
|
|
50
|
+
cardinfo: Partial<Record<'uid' | 'cardno' | 'cardid' | 'name' | 'sex' | 'sex_code' | 'birthday' | 'nation_name' | 'nation_code' | 'address' | 'idnumber' | 'idtype' | 'issuer' | 'issuedate' | 'expirydate' | 'hasphoto' | 'telphone' | 'companyname' | 'age' | 'age_code' | 'age_name' | 'ages', string> & {
|
|
51
|
+
[K: string]: any;
|
|
52
|
+
}>;
|
|
51
53
|
iar1: Record<'acf01' | 'iaa01' | 'iab02' | 'iac03' | 'iad04' | 'iai03' | 'iak04' | 'iak05' | 'iak06' | 'iak22' | 'iar01' | 'iar10' | MapperIar<NumberRange<10, 75>>[number], string>;
|
|
54
|
+
[K: string]: any;
|
|
52
55
|
}>;
|
|
53
56
|
transcmd: string;
|
|
54
57
|
}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AnyObject } from '../../../../shared/types';
|
|
2
|
+
export declare type EnsureIdCardOption = {
|
|
3
|
+
saveUrl?: string;
|
|
4
|
+
getUrl?: string;
|
|
5
|
+
saveParams?: AnyObject;
|
|
6
|
+
getParams?: AnyObject;
|
|
7
|
+
requestInstance: {
|
|
8
|
+
post: (url: string, data: any) => Promise<any>;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare function ensureUID2IdCard(res: {
|
|
12
|
+
uid?: string | undefined;
|
|
13
|
+
cardid?: string | undefined;
|
|
14
|
+
}, options: EnsureIdCardOption): Promise<{
|
|
15
|
+
uid?: string | undefined;
|
|
16
|
+
cardid?: string | undefined;
|
|
17
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function a(a,t){const{uid:s,cardid:e}=a;if(s){const{requestInstance:i,saveParams:n,getParams:r,getUrl:c,saveUrl:g}=t;if(e)await i.post(g||"/ipatient/vaag1/save",{...n,vaa15:e,vaag02:s});else{const t=await i.post(c||"/ipatient/vaag1/getVaag1InfoList",{...r,vaag02:s});t.data&&Object.assign(a,{...t.data,cardid:t.data.vaa15})}}return a}export{a as ensureUID2IdCard};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as t,watch as l,openBlock as a,createBlock as i,unref as n,
|
|
1
|
+
import{defineComponent as e,ref as t,watch as l,openBlock as a,createBlock as i,unref as n,withCtx as o,createVNode as r,createElementVNode as s,createTextVNode as d}from"vue";import{NModal as u,NCard as c,NButton as p,NInput as h}from"naive-ui";const v={class:"flex_right"},f={class:"barch-container"},x=s("div",null,"每行一个,输入格式为:选项值,选项文本",-1);var g=e({__name:"FormBatchOptionsModal",props:{visible:{type:Boolean,default:!1},options:{type:Array,default:()=>[]}},emits:["handleSaveBatch","triggerBatch"],setup(e,{emit:g}){const m=e,b=t("");function y(){let e=b.value.split(/[\n]/).filter((e=>!!e)).map(((e,t)=>{let l=[];return l=e.includes(",")?e.split(","):e.split(","),{value:l[0],text:l[1]||""}}));g("handleSaveBatch",e),k()}function k(){g("triggerBatch",!1)}return l((()=>m.visible),(e=>{e&&function(){let e=m.options;if(!e.length)return;let t=e.map((e=>e.value||e.text?`${e.value||""},${e.text||""}`:"")).filter((e=>!!e));t.length&&(b.value=t.join("\n"))}()}),{immediate:!0}),(t,l)=>(a(),i(n(u),{class:"expand-field-modal-block",show:e.visible,maskClosable:!1,width:"860px",bodyStyle:"height: 496px;maxHeight: 496px;",closable:!1,centered:"",onPositiveClick:y,onNegativeClick:k},{default:o((()=>[r(n(c),{style:{width:"860px",height:"496px",maxHeight:"496px"},title:"批量编辑",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":o((()=>[s("div",{class:"svg-wrap"},[s("i",{onClick:k,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:o((()=>[s("div",v,[r(n(p),{onClick:k},{default:o((()=>[d("取消")])),_:1}),r(n(p),{type:"info",onClick:y},{default:o((()=>[d("保存")])),_:1})])])),default:o((()=>[s("div",f,[x,r(n(h),{value:b.value,"onUpdate:value":l[0]||(l[0]=e=>b.value=e),placeholder:"1,男\n2,女",type:"textarea",clearable:"",rows:6},null,8,["value"])])])),_:1})])),_:1},8,["show"]))}});export{g as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as a,openBlock as o,createBlock as t,unref as i,
|
|
1
|
+
import{defineComponent as e,ref as a,openBlock as o,createBlock as t,unref as i,withCtx as n,createVNode as l,createElementVNode as d,createTextVNode as r}from"vue";import{NModal as s,NCard as u,NButton as p}from"naive-ui";import c from"../../../select-person/index.js";const _={class:"flex_right"};var f=e({__name:"PersonModal",props:{visible:{type:Boolean,default:!1},defaultList:{type:Array,default:()=>[]},treeData:{type:Array,default:()=>[]}},emits:["check","changeModalVisible"],setup(e,{emit:f}){const m=a({parent_id_obj:"id",parent_id_obj_key:"id",parent_name_obj:"name",parent_name_obj_key:"name",user_count_obj:"count"}),h={user_id_obj:"id",user_id_obj_key:"id",user_name_obj:"name",user_name_obj_key:"name"},b=a([]),k=a([]);function x(){f("check",k.value),b.value=[],g()}function g(){f("changeModalVisible")}function v(e){const a=e.map((e=>e.originItem));a.forEach((e=>{e.parentNode&&delete e.parentNode})),k.value=a}return(a,f)=>(o(),t(i(s),{class:"expand-field-modal-block expand-person-modal",show:e.visible,maskClosable:!1,width:"700px",bodyStyle:"height: 556px;maxHeight: 556px;",closable:!1,centered:"",onPositiveClick:x,onNegativeClick:g},{default:n((()=>[l(i(u),{style:{width:"700px",height:"556px",maxHeight:"556px"},title:"批量编辑",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":n((()=>[d("div",{class:"svg-wrap"},[d("i",{onClick:g,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:n((()=>[d("div",_,[l(i(p),{onClick:g},{default:n((()=>[r("取消")])),_:1}),l(i(p),{type:"info",onClick:x},{default:n((()=>[r("保存")])),_:1})])])),default:n((()=>[l(i(c),{style:{padding:"0"},ref:"personRef",wordbook:m.value,wordbookChild:h,data:e.treeData,defaultList:e.defaultList,onCheckWithLevel:v},null,8,["wordbook","data","defaultList"])])),_:1})])),_:1},8,["show"]))}});export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,inject as a,computed as t,watch as u,openBlock as n,createBlock as i,unref as o,normalizeClass as v,isRef as d,withCtx as r,createVNode as s,normalizeStyle as p,createElementVNode as f,createTextVNode as m,createCommentVNode as c,createElementBlock as y,Fragment as h,renderList as _,withDirectives as g,withKeys as b,withModifiers as x,vShow as k,toDisplayString as M}from"vue";import{useMessage as w,NModal as H,NCard as C,NButton as U,NForm as S,NFormItem as j,NInput as O,NTooltip as I,NSelect as z,NGrid as T,NGridItem as N,NIcon as Y,NInputNumber as $,NPopover as L,NDatePicker as V,NTimePicker as B,NSwitch as D}from"naive-ui";import{isMulti as F,isShowOptions as P,isNumber as q,isDate as A,isCandidate as E,isTextarea as J}from"../utils/index.js";import K from"moment";import{InjectionExpandFieldApiConfig as R}from"../constants/index.js";import W from"../hooks/useAsyncData.js";import{HtmlTypeList as X}from"../utils/constant.js";import{isJSON as G,isValidDate as Q}from"../utils/tool.js";import Z from"./FormBatchOptionsModal.vue.js";import ee from"./FormItemPerson.vue.js";const le={class:"svg-wrap"},ae={class:"flex_right"},te={class:"options-title"},ue=f("span",null,"字段键名",-1),ne=f("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ie={class:"options-title"},oe=f("span",null,"字段问号提示",-1),ve=f("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),de={class:"options-title"},re=f("span",null,"选项值",-1),se=f("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[f("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),f("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),f("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),f("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),pe={class:"options-title"},fe=f("span",null,"默认值",-1),me=f("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ce={style:{display:"flex","align-items":"center"}},ye=f("span",null,"选择",-1),he={style:{width:"100%"}},_e={key:0,class:"validate_tip"};var ge=e({__name:"form",props:{visible:{type:Boolean,default:!1},formOntype:{type:String,default:"add"},formItemData:{type:Object,default:()=>({})},id:{type:String,default:""},orgId:{type:String,default:""},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelModal"],setup(e,{emit:ge}){const be=e,xe=w(),ke="请输入默认值",Me={name:[{required:!0,message:"请输入字段标题",trigger:["input","blur"]}],html_type:[{required:!0,message:"请选择字段类型",trigger:["input","blur"]}]},we=[{value:"yyyy-MM-dd HH:mm:ss",label:"年-月-日 时:分:秒"},{value:"yyyy-MM-dd HH:mm",label:"年-月-日 时:分"},{value:"yyyy-MM-dd",label:"年-月-日"},{value:"yyyy-MM",label:"年-月"},{value:"MM-dd HH:mm",label:"月-日 时:分"},{value:"MM-dd",label:"月-日"},{value:"HH:mm:ss",label:"时:分:秒"},{value:"HH:mm",label:"时:分"}],He=[{value:"12",label:"整行"},{value:"6",label:"半行"},{value:"4",label:"1/3行"},{value:"8",label:"2/3行"},{value:"3",label:"1/4行"},{value:"9",label:"3/4行"},{value:"2",label:"1/6行"},{value:"10",label:"5/6行"},{value:"1.5",label:"1/8行"},{value:"10.5",label:"7/8行"}],Ce=l(!1),Ue=l("860px");let Se=l({maxHeight:"496px",height:"496px"});const{saveOrUpdateExtendField:je}=W(),Oe=a(R),Ie=l(null),ze=l({name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}),Te=l([{text:void 0,value:void 0}]),Ne=l({format:"yyyy-MM-dd HH:mm:ss",dateType:"date",mode:"date",value:null,showTime:!0,open:!1,componentType:"datetime"}),Ye=l({obj_type:"",vali_obj:"",event_obj:"",max_length:"",min_length:"",min_value:"",max_value:""}),$e=l({value_key:"",levelSetting:[],search_key:[],level_num:void 0,render_key:[],name:"",level_key:"",id:"",type:"",primary_key:"",sqlExpression:"",conObj:"",add_btn:"",setting:{cascading:[]}}),Le=l(!1),Ve=l(!1),Be=l(void 0),De=l(!1),Fe=l(!1);l(!1);const Pe=l(!1),qe=l(""),Ae=t((()=>"edit"===be.formOntype)),Ee=t((()=>ze.value.html_type||""));t((()=>"TEXTAREA"===Ee.value?1e3:255));const Je=t((()=>Te.value.filter((e=>e.value&&e.text)))),Ke=t((()=>F(Ee.value))),Re=t((()=>"date"===Ne.value.dateType));function We(e){Pe.value=e}function Xe(e){let l=e;"string"!=typeof e&&(l=JSON.stringify(e)),ze.value.default_val=l}function Ge(e){Ne.value.value=null,ze.value.default_val=void 0,il(e)}function Qe(){Ce.value=!Ce.value;let e=document.body.clientHeight;"860px"===Ue.value?(Ue.value="100%",Se.value.maxHeight=`${e}px`,Se.value.height=`${e}px`):(Ue.value="860px",Se.value.maxHeight="496px",Se.value.height="")}function Ze(e){return["HH:mm:ss","HH:mm"].includes(e)}function el(e,l){switch(e){case"isNull":Le.value=l,ze.value.is_null=l?"0":"1";break;case"isMultiSelect":Ve.value=l,ze.value.isMultiSelect=l?"1":"0"}}function ll(){if("add"===be.formOntype)return;let e=Object.assign({},be.formItemData),l=e.setting;l&&G(l)&&(l=JSON.parse(l),delete e.setting,Object.assign(e,{...l})),e.key=e.code,delete e.code,A(e.html_type)&&function(e){il(e.date_format);let l=e.default_val;l&&!l.startsWith("${")&&(Ze(e.date_format)&&(l=`${K().format("YYYY-MM-dd")} ${l}`),Q(new Date(l))&&(Ne.value.value=K(l)))}(e),F(e.html_type)&&(e.default_val=function(e){let l=e.default_val;return l?l.split(",").filter(Boolean):[]}(e)),Le.value="0"==e.is_null,Ve.value="1"==e.isMultiSelect,Ye.value=Object.assign(Ye.value,e.validate||{}),$e.value=Object.assign($e.value,e.wordbook||{}),ze.value=Object.assign(ze.value,e||{}),P(e.html_type)&&function(e){let l=(null==e?void 0:e.optionValue)||[];l.length||l.push({text:void 0,value:void 0}),Te.value=[...l],delete e.optionValue}(e)}function al(e){ze.value.html_type=e,Te.value=[{text:void 0,value:void 0}];let l=function(){if(F(Ee.value))return[]}();ze.value.default_val=l,A(e)?ze.value.date_format="yyyy-MM-dd HH:mm:ss":ze.value.date_format=""}function tl(){Te.value.push({value:"",text:""})}function ul(e){let l=e;(e<0||0===e)&&(l=0),e>5&&(l=5),Be.value=0===l?l:l||void 0}function nl(e){Te.value=e}function il(e){let l=e||"yyyy-MM-dd HH:mm:ss",a=Ze(l)?"time":"date",t="yyyy-MM"===l?"month":"date";let u=function(e){return["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)}(l),n="";["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)&&(n="datetime"),["yyyy-MM-dd","MM-dd"].includes(e)&&(n="date"),Object.assign(Ne.value,{format:l,dateType:a,mode:t,showTime:u,componentType:n})}function ol(e,l){if(e)return l&&(l.includes("yyyy")&&(l=l.replace("yyyy","YYYY")),l.includes("dd")&&(l=l.replace("dd","DD"))),K(e).format(l)}function vl(){Ne.value.open=!Ne.value.open}function dl(e){let l=ol(e,Ne.value.format);ze.value.default_val=l}function rl(e){let l=ol(e,Ne.value.format);ze.value.default_val=l,Ne.value.format.includes("HH:mm")||vl()}function sl(e){let l=ol(e,Ne.value.format);ze.value.default_val=l}function pl(){ge("cancelModal"),Ue.value="860px",Se.value={height:"496px",maxHeight:"496px"},Ce.value=!1,ze.value={name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}}function fl(){var e;null==(e=Ie.value)||e.validate((async e=>{if(e)return;let l=Object.assign({},ze.value);if(l.validate={...Ye.value},l.extendId=be.id,P(Ee.value)){let e=function(){let e={validate:!1,message:"请完善选项配置"};if(!Te.value||!Te.value.length)return e;let l,a,t,u=0,n=Te.value.length,i=!1;for(;u<n;u++){if(l=Te.value[u],a=l.value?l.value.trim():l.value,t=l.text?l.text.trim():l.text,!a||!t){i=!0;break}l.value=a,l.text=t}return[...new Set(Te.value.map((e=>e.value)))].length!==Te.value.length?(e.message="选项值不能重复",e):(!i&&(e.validate=!0),e)}();if(!e.validate)return De.value=!0,void xe.warning(e.message);De.value=!1,l.option=[...Te.value]}if(q(Ee.value)?l.default_val=function(e){let l=e.default_val;if(void 0===Be.value)return l;if(!l)return l;let a=String(l).split(".")[1];return a&&a.length!==Be.value?Number(l.toFixed(Be.value)):l}(l):F(Ee.value)&&(l.default_val=l.default_val.join(",")),!E(Ee.value)||function(e){let{default_val:l}=e;qe.value="",l&&G(l)&&(l=JSON.parse(l));let a=function(e,l){if(!e)return;if("string"!=typeof e)return;if(!(e=e.trim()))return!0;if(!e.startsWith("${"))return ml(l,"请输入有效系统变量"),"error";let a=/\${sys.(.*?)\}/g.exec(e);if(!a||!a[1])return ml(l,"请输入有效系统变量"),"error";return!0}(l,e);if(a)return"error"!==a;if(console.log("saveOjb.isMultiSelect>>>",e.isMultiSelect),console.log("default_val?.length>>>",null==l?void 0:l.length),"0"===e.isMultiSelect&&(null==l?void 0:l.length)>1)return console.log("进入到判断里面了>>>>>"),ml(e,"选人组件为单选"),!1;return!0}(l)){for(let e in l){let a=l[e];"string"==typeof a&&(l[e]=null==a?void 0:a.trim())}console.log("saveOjb>>>",l),await async function(e={}){Fe.value=!0;try{const l=await je(e,Oe);if(Fe.value=!1,"SUCCESS"!==(null==l?void 0:l.result))return void xe.error((null==l?void 0:l.resultMsg)||"保存失败");pl()}catch(e){Fe.value=!1}}(l)}}))}function ml(e,l){qe.value=l}return u((()=>be.visible),(e=>{e&&ll()})),(l,a)=>(n(),i(o(H),{class:v(["expand-field-modal-block",{"modal-screen":Ce.value}]),show:e.visible,"onUpdate:show":a[22]||(a[22]=e=>d(visible)?visible.value=e:null),maskClosable:!1,width:Ue.value,bodyStyle:o(Se),closable:!1,centered:"",onPositiveClick:fl,onNegativeClick:pl},{default:r((()=>[s(o(C),{style:p({width:Ue.value,...o(Se)}),title:"add"===be.formOntype?"新增拓展字段":"编辑拓展字段",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":r((()=>[f("div",le,[f("i",{onClick:Qe,class:v(["iconfont-expand-field",Ce.value?"icon-expand-field-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-expand-field-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),f("i",{onClick:pl,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:r((()=>[f("div",ae,[s(o(U),{onClick:pl},{default:r((()=>[m("取消")])),_:1}),s(o(U),{type:"info",onClick:fl},{default:r((()=>[m("保存")])),_:1})])])),default:r((()=>[s(o(S),{ref_key:"formRef",ref:Ie,model:ze.value,rules:Me},{default:r((()=>[s(o(j),{path:"name",label:"字段标题","require-mark-placement":"left"},{default:r((()=>[s(o(O),{value:ze.value.name,"onUpdate:value":a[0]||(a[0]=e=>ze.value.name=e),maxlength:100,clearable:"",placeholder:"请输入"},null,8,["value"])])),_:1}),s(o(j),{path:"key"},{label:r((()=>[f("div",te,[ue,s(o(I),{duration:0},{trigger:r((()=>[ne])),default:r((()=>[m(" 数据库字段键名,不填写时由系统生成,填写则以填写为准 ")])),_:1})])])),default:r((()=>[s(o(O),{value:ze.value.key,"onUpdate:value":a[1]||(a[1]=e=>ze.value.key=e),maxlength:32,disabled:o(Ae),clearable:"",placeholder:"数据库字段键名,不填写时由系统生成,填写则以填写为准"},null,8,["value","disabled"])])),_:1}),s(o(j),{path:"html_type",label:"字段类型","require-mark-placement":"left"},{default:r((()=>[s(o(z),{value:ze.value.html_type,"onUpdate:value":[a[2]||(a[2]=e=>ze.value.html_type=e),al],placeholder:"请选择字段类型",clearable:"",filterable:"",options:o(X)},null,8,["value","options"])])),_:1}),s(o(j),{path:"remark",label:"字段问号提示"},{label:r((()=>[f("div",ie,[oe,s(o(I),{duration:0},{trigger:r((()=>[ve])),default:r((()=>[m(" 设置后该字段旁会有问号图标,鼠标悬浮展示“问号提示”内容,常用于告诉用户该字段的含义 ")])),_:1})])])),default:r((()=>[s(o(O),{value:ze.value.remark,"onUpdate:value":a[3]||(a[3]=e=>ze.value.remark=e),placeholder:"请输入",type:"textarea",clearable:"",maxlength:255,rows:3},null,8,["value"])])),_:1}),c(" 选项值>>>>>类型对应关系 "),o(P)(o(Ee))?(n(),i(o(j),{key:0},{label:r((()=>[f("div",de,[re,f("span",{class:"batch-span",onClick:tl},"添加选项"),f("span",{class:"batch-span",onClick:a[4]||(a[4]=()=>We(!0))},"批量编辑")])])),default:r((()=>[f("div",{class:v(["options-item",{"options-item-err":De.value}])},[(n(!0),y(h,null,_(Te.value,((e,l)=>(n(),i(o(T),{class:"mgb-10",key:l,cols:24,"x-gap":8,"y-gap":8},{default:r((()=>[s(o(N),{span:11},{default:r((()=>[s(o(O),{value:e.value,"onUpdate:value":l=>e.value=l,maxLength:100,allowClear:"",placeholder:"选项值"},null,8,["value","onUpdate:value"])])),_:2},1024),s(o(N),{span:11},{default:r((()=>[s(o(O),{value:e.text,"onUpdate:value":l=>e.text=l,maxLength:100,allowClear:"",placeholder:"选项文本"},null,8,["value","onUpdate:value"])])),_:2},1024),s(o(N),{span:2,class:"flex-center"},{default:r((()=>[Te.value.length>1?(n(),i(o(Y),{key:0,onClick:a=>function(e,l){Te.value.splice(l,1);let a=ze.value.default_val;if(F(Ee.value)){if(!a||!a.length)return;let l=a.findIndex((l=>l===e.value));l||a.splice(l,1)}else{if(!a)return;a===e.value&&(a=void 0)}ze.value.default_val=a}(e,l)},{default:r((()=>[se])),_:2},1032,["onClick"])):c("v-if",!0)])),_:2},1024)])),_:2},1024)))),128))],2)])),_:1})):c("v-if",!0),o(q)(o(Ee))?(n(),i(o(j),{key:1,path:"decimal_length",label:"小数位"},{default:r((()=>[s(o($),{style:{width:"100%"},min:0,max:5,placeholder:"请输入",precision:0,clearable:"",value:ze.value.decimal_length,"onUpdate:value":[a[5]||(a[5]=e=>ze.value.decimal_length=e),ul]},null,8,["value"])])),_:1})):c("v-if",!0),o(A)(o(Ee))?(n(),i(o(j),{key:2,path:"date_format",label:"日期格式"},{default:r((()=>[s(o(z),{style:{width:"100%"},value:ze.value.date_format,"onUpdate:value":[a[6]||(a[6]=e=>ze.value.date_format=e),Ge],placeholder:"请选择",options:we},null,8,["value"])])),_:1})):c("v-if",!0),c(" 默认值>>>>>类型对应关系 "),s(o(j),{path:"default_val",label:"默认值"},{label:r((()=>[f("div",pe,[fe,o(E)(o(Ee))?(n(),i(o(I),{key:0,duration:0},{trigger:r((()=>[me])),default:r((()=>[m(" 支持输入系统变量当前操作人${sys.userId},也支持选择一个人 ")])),_:1})):c("v-if",!0)])])),default:r((()=>[o(J)(o(Ee))?(n(),i(o(O),{key:0,value:ze.value.default_val,"onUpdate:value":a[7]||(a[7]=e=>ze.value.default_val=e),placeholder:ke,type:"textarea",clearable:"",maxlength:1e3,rows:3},null,8,["value"])):o(q)(o(Ee))?(n(),y(h,{key:1},[c(" 数字框 "),s(o($),{style:{width:"100%"},clearable:"",placeholder:ke,precision:Be.value,value:ze.value.default_val,"onUpdate:value":a[8]||(a[8]=e=>ze.value.default_val=e)},null,8,["precision","value"])],2112)):o(P)(o(Ee))?(n(),y(h,{key:2},[c(" 下拉框、横向单选、纵向单选、横向多选、纵向多选、下拉多选框 "),s(o(z),{style:{width:"100%"},multiple:o(Ke),clearable:"",value:ze.value.default_val,"onUpdate:value":a[9]||(a[9]=e=>ze.value.default_val=e),"label-field":"text",placeholder:ke,options:o(Je)},null,8,["multiple","value","options"])],2112)):o(A)(o(Ee))?(n(),y(h,{key:3},[c(" 日期 "),f("div",ce,[s(o(O),{clearable:"",maxLength:255,value:ze.value.default_val,"onUpdate:value":a[10]||(a[10]=e=>ze.value.default_val=e),placeholder:ke},null,8,["value"]),o(Re)?(n(),y(h,{key:0},["month"===Ne.value.mode?(n(),i(o(L),{key:0,trigger:"click",show:Ne.value.open},{trigger:r((()=>[s(o(U),{type:"info",onClick:vl},{default:r((()=>[m("选择")])),_:1})])),default:r((()=>[s(o(V),{panel:"",value:Ne.value.value,"onUpdate:value":[a[11]||(a[11]=e=>Ne.value.value=e),dl],type:"month","input-readonly":"",clearable:"",onConfirm:vl},null,8,["value"])])),_:1},8,["show"])):(n(),i(o(L),{key:1,trigger:"click",show:Ne.value.open},{trigger:r((()=>[s(o(U),{type:"info",onClick:vl},{default:r((()=>[m("选择")])),_:1})])),default:r((()=>[s(o(V),{panel:"",value:Ne.value.value,"onUpdate:value":[a[12]||(a[12]=e=>Ne.value.value=e),rl],format:Ne.value.format,type:Ne.value.componentType,"input-readonly":"",clearable:"",onConfirm:vl},null,8,["value","format","type"])])),_:1},8,["show"]))],64)):(n(),y(h,{key:1},[c(' <n-input\n allowClear\n :maxLength="255"\n v-model:value="dateInfo.value"\n @keydown.enter.prevent\n :placeholder="defaultPlaceholder"\n /> '),s(o(U),{type:"info",class:"date-time-button"},{default:r((()=>[ye,s(o(B),{value:Ne.value.value,"onUpdate:value":[a[13]||(a[13]=e=>Ne.value.value=e),sl],format:Ne.value.format,"input-readonly":"",clearable:""},null,8,["value","format"])])),_:1}),c(' <n-popover trigger="click">\n <template #trigger>\n <n-button type="info">选择</n-button>\n </template>\n <n-time-picker\n panel\n v-model:value="dateInfo.value"\n :format="dateInfo.format"\n input-readonly\n clearable\n @update:value="timeChange"\n >\n <template v-slot:icon>111</template>\n\n </n-time-picker>\n </n-popover> ')],64))])],2112)):o(E)(o(Ee))?(n(),y(h,{key:4},[c(" 选人组件(增加一个选人组件) "),f("div",he,[g(s(o(O),{allowClear:"",maxLength:255,value:ze.value.default_val,"onUpdate:value":a[14]||(a[14]=e=>ze.value.default_val=e),onKeydown:a[15]||(a[15]=b(x((()=>{}),["prevent"]),["enter"])),placeholder:ke},null,8,["value"]),[[k,!1]]),c(' 点击弹出选人组件弹窗 :mainForm="this" '),s(ee,{orgId:e.orgId,defaultValue:ze.value.default_val,onCheckPerson:Xe},null,8,["orgId","defaultValue"]),qe.value?(n(),y("span",_e,M(qe.value),1)):c("v-if",!0),c(' <n-button type="info">选择</n-button> ')])],2112)):(n(),y(h,{key:5},[c(" 其他 "),s(o(O),{value:ze.value.default_val,"onUpdate:value":a[16]||(a[16]=e=>ze.value.default_val=e),onKeydown:a[17]||(a[17]=b(x((()=>{}),["prevent"]),["enter"])),placeholder:"请输入默认值"},null,8,["value"])],2112))])),_:1}),s(o(j),{path:"elem_width",label:"宽度"},{default:r((()=>[s(o(z),{value:ze.value.elem_width,"onUpdate:value":a[18]||(a[18]=e=>ze.value.elem_width=e),placeholder:"请选择宽度",options:He},null,8,["value"])])),_:1}),s(o(j),{path:"isNull",label:"是否必填","label-placement":"left"},{default:r((()=>[s(o(D),{value:Le.value,"onUpdate:value":[a[19]||(a[19]=e=>Le.value=e),a[20]||(a[20]=e=>el("isNull",e))]},null,8,["value"])])),_:1}),o(E)(o(Ee))?(n(),i(o(j),{key:3,"label-placement":"left",path:"isMultiSelect",label:"是否多选"},{default:r((()=>[s(o(D),{value:Ve.value,"onUpdate:value":a[21]||(a[21]=e=>el("isMultiSelect",e))},null,8,["value"])])),_:1})):c("v-if",!0)])),_:1},8,["model"]),s(Z,{visible:Pe.value,options:Te.value,onHandleSaveBatch:nl,onTriggerBatch:We},null,8,["visible","options"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}});export{ge as default};
|
|
1
|
+
import{defineComponent as e,ref as l,inject as a,computed as t,watch as u,openBlock as n,createBlock as i,unref as o,normalizeClass as v,withCtx as d,createVNode as r,normalizeStyle as s,createElementVNode as p,createTextVNode as f,createCommentVNode as m,createElementBlock as c,Fragment as y,renderList as h,withDirectives as _,withKeys as g,withModifiers as b,vShow as x,toDisplayString as k}from"vue";import{useMessage as M,NModal as w,NCard as H,NButton as C,NForm as U,NFormItem as S,NInput as j,NTooltip as O,NSelect as I,NGrid as z,NGridItem as T,NIcon as N,NInputNumber as Y,NPopover as $,NDatePicker as L,NTimePicker as V,NSwitch as B}from"naive-ui";import{isMulti as D,isShowOptions as F,isNumber as P,isDate as q,isCandidate as A,isTextarea as E}from"../utils/index.js";import J from"moment";import{InjectionExpandFieldApiConfig as K}from"../constants/index.js";import R from"../hooks/useAsyncData.js";import{HtmlTypeList as W}from"../utils/constant.js";import{isJSON as X,isValidDate as G}from"../utils/tool.js";import Q from"./FormBatchOptionsModal.vue.js";import Z from"./FormItemPerson.vue.js";const ee={class:"svg-wrap"},le={class:"flex_right"},ae={class:"options-title"},te=p("span",null,"字段键名",-1),ue=p("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ne={class:"options-title"},ie=p("span",null,"字段问号提示",-1),oe=p("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),ve={class:"options-title"},de=p("span",null,"选项值",-1),re=p("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 32 32"},[p("path",{d:"M12 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M18 12h2v12h-2z",fill:"currentColor"}),p("path",{d:"M4 6v2h2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V8h2V6zm4 22V8h16v20z",fill:"currentColor"}),p("path",{d:"M12 2h8v2h-8z",fill:"currentColor"})],-1),se={class:"options-title"},pe=p("span",null,"默认值",-1),fe=p("i",{class:"iconfont-expand-field icon-expand-field-help"},null,-1),me={style:{display:"flex","align-items":"center"}},ce=p("span",null,"选择",-1),ye={style:{width:"100%"}},he={key:0,class:"validate_tip"};var _e=e({__name:"form",props:{visible:{type:Boolean,default:!1},formOntype:{type:String,default:"add"},formItemData:{type:Object,default:()=>({})},id:{type:String,default:""},orgId:{type:String,default:""},conditionList:{type:Array,default:()=>[]},searchFieldList:{type:Array,default:()=>[]}},emits:["cancelModal"],setup(e,{emit:_e}){const ge=e,be=M(),xe="请输入默认值",ke={name:[{required:!0,message:"请输入字段标题",trigger:["input","blur"]}],html_type:[{required:!0,message:"请选择字段类型",trigger:["input","blur"]}]},Me=[{value:"yyyy-MM-dd HH:mm:ss",label:"年-月-日 时:分:秒"},{value:"yyyy-MM-dd HH:mm",label:"年-月-日 时:分"},{value:"yyyy-MM-dd",label:"年-月-日"},{value:"yyyy-MM",label:"年-月"},{value:"MM-dd HH:mm",label:"月-日 时:分"},{value:"MM-dd",label:"月-日"},{value:"HH:mm:ss",label:"时:分:秒"},{value:"HH:mm",label:"时:分"}],we=[{value:"12",label:"整行"},{value:"6",label:"半行"},{value:"4",label:"1/3行"},{value:"8",label:"2/3行"},{value:"3",label:"1/4行"},{value:"9",label:"3/4行"},{value:"2",label:"1/6行"},{value:"10",label:"5/6行"},{value:"1.5",label:"1/8行"},{value:"10.5",label:"7/8行"}],He=l(!1),Ce=l("860px");let Ue=l({maxHeight:"496px",height:"496px"});const{saveOrUpdateExtendField:Se}=R(),je=a(K),Oe=l(null),Ie=l({name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}),ze=l([{text:void 0,value:void 0}]),Te=l({format:"yyyy-MM-dd HH:mm:ss",dateType:"date",mode:"date",value:null,showTime:!0,open:!1,componentType:"datetime"}),Ne=l({obj_type:"",vali_obj:"",event_obj:"",max_length:"",min_length:"",min_value:"",max_value:""}),Ye=l({value_key:"",levelSetting:[],search_key:[],level_num:void 0,render_key:[],name:"",level_key:"",id:"",type:"",primary_key:"",sqlExpression:"",conObj:"",add_btn:"",setting:{cascading:[]}}),$e=l(!1),Le=l(!1),Ve=l(void 0),Be=l(!1),De=l(!1);l(!1);const Fe=l(!1),Pe=l(""),qe=t((()=>"edit"===ge.formOntype)),Ae=t((()=>Ie.value.html_type||""));t((()=>"TEXTAREA"===Ae.value?1e3:255));const Ee=t((()=>ze.value.filter((e=>e.value&&e.text)))),Je=t((()=>D(Ae.value))),Ke=t((()=>"date"===Te.value.dateType));function Re(e){Fe.value=e}function We(e){let l=e;"string"!=typeof e&&(l=JSON.stringify(e)),Ie.value.default_val=l}function Xe(e){Te.value.value=null,Ie.value.default_val=void 0,nl(e)}function Ge(){He.value=!He.value;let e=document.body.clientHeight;"860px"===Ce.value?(Ce.value="100%",Ue.value.maxHeight=`${e}px`,Ue.value.height=`${e}px`):(Ce.value="860px",Ue.value.maxHeight="496px",Ue.value.height="")}function Qe(e){return["HH:mm:ss","HH:mm"].includes(e)}function Ze(e,l){switch(e){case"isNull":$e.value=l,Ie.value.is_null=l?"0":"1";break;case"isMultiSelect":Le.value=l,Ie.value.isMultiSelect=l?"1":"0"}}function el(){if("add"===ge.formOntype)return;let e=Object.assign({},ge.formItemData),l=e.setting;l&&X(l)&&(l=JSON.parse(l),delete e.setting,Object.assign(e,{...l})),e.key=e.code,delete e.code,q(e.html_type)&&function(e){nl(e.date_format);let l=e.default_val;l&&!l.startsWith("${")&&(Qe(e.date_format)&&(l=`${J().format("YYYY-MM-dd")} ${l}`),G(new Date(l))&&(Te.value.value=J(l)))}(e),D(e.html_type)&&(e.default_val=function(e){let l=e.default_val;return l?l.split(",").filter(Boolean):[]}(e)),$e.value="0"==e.is_null,Le.value="1"==e.isMultiSelect,Ne.value=Object.assign(Ne.value,e.validate||{}),Ye.value=Object.assign(Ye.value,e.wordbook||{}),Ie.value=Object.assign(Ie.value,e||{}),F(e.html_type)&&function(e){let l=(null==e?void 0:e.optionValue)||[];l.length||l.push({text:void 0,value:void 0}),ze.value=[...l],delete e.optionValue}(e)}function ll(e){Ie.value.html_type=e,ze.value=[{text:void 0,value:void 0}];let l=function(){if(D(Ae.value))return[]}();Ie.value.default_val=l,q(e)?Ie.value.date_format="yyyy-MM-dd HH:mm:ss":Ie.value.date_format=""}function al(){ze.value.push({value:"",text:""})}function tl(e){let l=e;(e<0||0===e)&&(l=0),e>5&&(l=5),Ve.value=0===l?l:l||void 0}function ul(e){ze.value=e}function nl(e){let l=e||"yyyy-MM-dd HH:mm:ss",a=Qe(l)?"time":"date",t="yyyy-MM"===l?"month":"date";let u=function(e){return["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)}(l),n="";["yyyy-MM-dd HH:mm:ss","yyyy-MM-dd HH:mm","MM-dd HH:mm"].includes(e)&&(n="datetime"),["yyyy-MM-dd","MM-dd"].includes(e)&&(n="date"),Object.assign(Te.value,{format:l,dateType:a,mode:t,showTime:u,componentType:n})}function il(e,l){if(e)return l&&(l.includes("yyyy")&&(l=l.replace("yyyy","YYYY")),l.includes("dd")&&(l=l.replace("dd","DD"))),J(e).format(l)}function ol(){Te.value.open=!Te.value.open}function vl(e){let l=il(e,Te.value.format);Ie.value.default_val=l}function dl(e){let l=il(e,Te.value.format);Ie.value.default_val=l,Te.value.format.includes("HH:mm")||ol()}function rl(e){let l=il(e,Te.value.format);Ie.value.default_val=l}function sl(){_e("cancelModal"),Ce.value="860px",Ue.value={height:"496px",maxHeight:"496px"},He.value=!1,Ie.value={name:void 0,remark:void 0,is_edit:"1",is_null:"1",is_show:"1",key:"",val_key:void 0,validate:{},html_type:"INPUT",name_i18n:void 0,elem_width:"12",default_val:void 0,label_type:void 0,isMultiSelect:"0",decimal_length:void 0,date_format:""}}function pl(){var e;null==(e=Oe.value)||e.validate((async e=>{if(e)return;let l=Object.assign({},Ie.value);if(l.validate={...Ne.value},l.extendId=ge.id,F(Ae.value)){let e=function(){let e={validate:!1,message:"请完善选项配置"};if(!ze.value||!ze.value.length)return e;let l,a,t,u=0,n=ze.value.length,i=!1;for(;u<n;u++){if(l=ze.value[u],a=l.value?l.value.trim():l.value,t=l.text?l.text.trim():l.text,!a||!t){i=!0;break}l.value=a,l.text=t}return[...new Set(ze.value.map((e=>e.value)))].length!==ze.value.length?(e.message="选项值不能重复",e):(!i&&(e.validate=!0),e)}();if(!e.validate)return Be.value=!0,void be.warning(e.message);Be.value=!1,l.option=[...ze.value]}if(P(Ae.value)?l.default_val=function(e){let l=e.default_val;if(void 0===Ve.value)return l;if(!l)return l;let a=String(l).split(".")[1];return a&&a.length!==Ve.value?Number(l.toFixed(Ve.value)):l}(l):D(Ae.value)&&(l.default_val=l.default_val.join(",")),!A(Ae.value)||function(e){let{default_val:l}=e;Pe.value="",l&&X(l)&&(l=JSON.parse(l));let a=function(e,l){if(!e)return;if("string"!=typeof e)return;if(!(e=e.trim()))return!0;if(!e.startsWith("${"))return fl(l,"请输入有效系统变量"),"error";let a=/\${sys.(.*?)\}/g.exec(e);if(!a||!a[1])return fl(l,"请输入有效系统变量"),"error";return!0}(l,e);if(a)return"error"!==a;if(console.log("saveOjb.isMultiSelect>>>",e.isMultiSelect),console.log("default_val?.length>>>",null==l?void 0:l.length),"0"===e.isMultiSelect&&(null==l?void 0:l.length)>1)return console.log("进入到判断里面了>>>>>"),fl(e,"选人组件为单选"),!1;return!0}(l)){for(let e in l){let a=l[e];"string"==typeof a&&(l[e]=null==a?void 0:a.trim())}console.log("saveOjb>>>",l),await async function(e={}){De.value=!0;try{const l=await Se(e,je);if(De.value=!1,"SUCCESS"!==(null==l?void 0:l.result))return void be.error((null==l?void 0:l.resultMsg)||"保存失败");sl()}catch(e){De.value=!1}}(l)}}))}function fl(e,l){Pe.value=l}return u((()=>ge.visible),(e=>{e&&el()})),(l,a)=>(n(),i(o(w),{class:v(["expand-field-modal-block",{"modal-screen":He.value}]),show:e.visible,maskClosable:!1,width:Ce.value,bodyStyle:o(Ue),closable:!1,centered:"",onPositiveClick:pl,onNegativeClick:sl},{default:d((()=>[r(o(H),{style:s({width:Ce.value,...o(Ue)}),title:"add"===ge.formOntype?"新增拓展字段":"编辑拓展字段",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{"header-extra":d((()=>[p("div",ee,[p("i",{onClick:Ge,class:v(["iconfont-expand-field",He.value?"icon-expand-field-menzhenyishengzhanxitongtubiaozuixiaohua2":"icon-expand-field-menzhenyishengzhanxitongtubiaozuidahua"])},null,2),p("i",{onClick:sl,class:"iconfont-expand-field icon-expand-field-menzhenyishengzhanxitongtubiaoguanbi"})])])),footer:d((()=>[p("div",le,[r(o(C),{onClick:sl},{default:d((()=>[f("取消")])),_:1}),r(o(C),{type:"info",onClick:pl},{default:d((()=>[f("保存")])),_:1})])])),default:d((()=>[r(o(U),{ref_key:"formRef",ref:Oe,model:Ie.value,rules:ke},{default:d((()=>[r(o(S),{path:"name",label:"字段标题","require-mark-placement":"left"},{default:d((()=>[r(o(j),{value:Ie.value.name,"onUpdate:value":a[0]||(a[0]=e=>Ie.value.name=e),maxlength:100,clearable:"",placeholder:"请输入"},null,8,["value"])])),_:1}),r(o(S),{path:"key"},{label:d((()=>[p("div",ae,[te,r(o(O),{duration:0},{trigger:d((()=>[ue])),default:d((()=>[f(" 数据库字段键名,不填写时由系统生成,填写则以填写为准 ")])),_:1})])])),default:d((()=>[r(o(j),{value:Ie.value.key,"onUpdate:value":a[1]||(a[1]=e=>Ie.value.key=e),maxlength:32,disabled:o(qe),clearable:"",placeholder:"数据库字段键名,不填写时由系统生成,填写则以填写为准"},null,8,["value","disabled"])])),_:1}),r(o(S),{path:"html_type",label:"字段类型","require-mark-placement":"left"},{default:d((()=>[r(o(I),{value:Ie.value.html_type,"onUpdate:value":[a[2]||(a[2]=e=>Ie.value.html_type=e),ll],placeholder:"请选择字段类型",clearable:"",filterable:"",options:o(W)},null,8,["value","options"])])),_:1}),r(o(S),{path:"remark",label:"字段问号提示"},{label:d((()=>[p("div",ne,[ie,r(o(O),{duration:0},{trigger:d((()=>[oe])),default:d((()=>[f(" 设置后该字段旁会有问号图标,鼠标悬浮展示“问号提示”内容,常用于告诉用户该字段的含义 ")])),_:1})])])),default:d((()=>[r(o(j),{value:Ie.value.remark,"onUpdate:value":a[3]||(a[3]=e=>Ie.value.remark=e),placeholder:"请输入",type:"textarea",clearable:"",maxlength:255,rows:3},null,8,["value"])])),_:1}),m(" 选项值>>>>>类型对应关系 "),o(F)(o(Ae))?(n(),i(o(S),{key:0},{label:d((()=>[p("div",ve,[de,p("span",{class:"batch-span",onClick:al},"添加选项"),p("span",{class:"batch-span",onClick:a[4]||(a[4]=()=>Re(!0))},"批量编辑")])])),default:d((()=>[p("div",{class:v(["options-item",{"options-item-err":Be.value}])},[(n(!0),c(y,null,h(ze.value,((e,l)=>(n(),i(o(z),{class:"mgb-10",key:l,cols:24,"x-gap":8,"y-gap":8},{default:d((()=>[r(o(T),{span:11},{default:d((()=>[r(o(j),{value:e.value,"onUpdate:value":l=>e.value=l,maxLength:100,allowClear:"",placeholder:"选项值"},null,8,["value","onUpdate:value"])])),_:2},1024),r(o(T),{span:11},{default:d((()=>[r(o(j),{value:e.text,"onUpdate:value":l=>e.text=l,maxLength:100,allowClear:"",placeholder:"选项文本"},null,8,["value","onUpdate:value"])])),_:2},1024),r(o(T),{span:2,class:"flex-center"},{default:d((()=>[ze.value.length>1?(n(),i(o(N),{key:0,onClick:a=>function(e,l){ze.value.splice(l,1);let a=Ie.value.default_val;if(D(Ae.value)){if(!a||!a.length)return;let l=a.findIndex((l=>l===e.value));l||a.splice(l,1)}else{if(!a)return;a===e.value&&(a=void 0)}Ie.value.default_val=a}(e,l)},{default:d((()=>[re])),_:2},1032,["onClick"])):m("v-if",!0)])),_:2},1024)])),_:2},1024)))),128))],2)])),_:1})):m("v-if",!0),o(P)(o(Ae))?(n(),i(o(S),{key:1,path:"decimal_length",label:"小数位"},{default:d((()=>[r(o(Y),{style:{width:"100%"},min:0,max:5,placeholder:"请输入",precision:0,clearable:"",value:Ie.value.decimal_length,"onUpdate:value":[a[5]||(a[5]=e=>Ie.value.decimal_length=e),tl]},null,8,["value"])])),_:1})):m("v-if",!0),o(q)(o(Ae))?(n(),i(o(S),{key:2,path:"date_format",label:"日期格式"},{default:d((()=>[r(o(I),{style:{width:"100%"},value:Ie.value.date_format,"onUpdate:value":[a[6]||(a[6]=e=>Ie.value.date_format=e),Xe],placeholder:"请选择",options:Me},null,8,["value"])])),_:1})):m("v-if",!0),m(" 默认值>>>>>类型对应关系 "),r(o(S),{path:"default_val",label:"默认值"},{label:d((()=>[p("div",se,[pe,o(A)(o(Ae))?(n(),i(o(O),{key:0,duration:0},{trigger:d((()=>[fe])),default:d((()=>[f(" 支持输入系统变量当前操作人${sys.userId},也支持选择一个人 ")])),_:1})):m("v-if",!0)])])),default:d((()=>[o(E)(o(Ae))?(n(),i(o(j),{key:0,value:Ie.value.default_val,"onUpdate:value":a[7]||(a[7]=e=>Ie.value.default_val=e),placeholder:xe,type:"textarea",clearable:"",maxlength:1e3,rows:3},null,8,["value"])):o(P)(o(Ae))?(n(),c(y,{key:1},[m(" 数字框 "),r(o(Y),{style:{width:"100%"},clearable:"",placeholder:xe,precision:Ve.value,value:Ie.value.default_val,"onUpdate:value":a[8]||(a[8]=e=>Ie.value.default_val=e)},null,8,["precision","value"])],2112)):o(F)(o(Ae))?(n(),c(y,{key:2},[m(" 下拉框、横向单选、纵向单选、横向多选、纵向多选、下拉多选框 "),r(o(I),{style:{width:"100%"},multiple:o(Je),clearable:"",value:Ie.value.default_val,"onUpdate:value":a[9]||(a[9]=e=>Ie.value.default_val=e),"label-field":"text",placeholder:xe,options:o(Ee)},null,8,["multiple","value","options"])],2112)):o(q)(o(Ae))?(n(),c(y,{key:3},[m(" 日期 "),p("div",me,[r(o(j),{clearable:"",maxLength:255,value:Ie.value.default_val,"onUpdate:value":a[10]||(a[10]=e=>Ie.value.default_val=e),placeholder:xe},null,8,["value"]),o(Ke)?(n(),c(y,{key:0},["month"===Te.value.mode?(n(),i(o($),{key:0,trigger:"click",show:Te.value.open},{trigger:d((()=>[r(o(C),{type:"info",onClick:ol},{default:d((()=>[f("选择")])),_:1})])),default:d((()=>[r(o(L),{panel:"",value:Te.value.value,"onUpdate:value":[a[11]||(a[11]=e=>Te.value.value=e),vl],type:"month","input-readonly":"",clearable:"",onConfirm:ol},null,8,["value"])])),_:1},8,["show"])):(n(),i(o($),{key:1,trigger:"click",show:Te.value.open},{trigger:d((()=>[r(o(C),{type:"info",onClick:ol},{default:d((()=>[f("选择")])),_:1})])),default:d((()=>[r(o(L),{panel:"",value:Te.value.value,"onUpdate:value":[a[12]||(a[12]=e=>Te.value.value=e),dl],format:Te.value.format,type:Te.value.componentType,"input-readonly":"",clearable:"",onConfirm:ol},null,8,["value","format","type"])])),_:1},8,["show"]))],64)):(n(),c(y,{key:1},[m(' <n-input\r\n allowClear\r\n :maxLength="255"\r\n v-model:value="dateInfo.value"\r\n @keydown.enter.prevent\r\n :placeholder="defaultPlaceholder"\r\n /> '),r(o(C),{type:"info",class:"date-time-button"},{default:d((()=>[ce,r(o(V),{value:Te.value.value,"onUpdate:value":[a[13]||(a[13]=e=>Te.value.value=e),rl],format:Te.value.format,"input-readonly":"",clearable:""},null,8,["value","format"])])),_:1}),m(' <n-popover trigger="click">\r\n <template #trigger>\r\n <n-button type="info">选择</n-button>\r\n </template>\r\n <n-time-picker\r\n panel\r\n v-model:value="dateInfo.value"\r\n :format="dateInfo.format"\r\n input-readonly\r\n clearable\r\n @update:value="timeChange"\r\n >\r\n <template v-slot:icon>111</template>\r\n\r\n </n-time-picker>\r\n </n-popover> ')],64))])],2112)):o(A)(o(Ae))?(n(),c(y,{key:4},[m(" 选人组件(增加一个选人组件) "),p("div",ye,[_(r(o(j),{allowClear:"",maxLength:255,value:Ie.value.default_val,"onUpdate:value":a[14]||(a[14]=e=>Ie.value.default_val=e),onKeydown:a[15]||(a[15]=g(b((()=>{}),["prevent"]),["enter"])),placeholder:xe},null,8,["value"]),[[x,!1]]),m(' 点击弹出选人组件弹窗 :mainForm="this" '),r(Z,{orgId:e.orgId,defaultValue:Ie.value.default_val,onCheckPerson:We},null,8,["orgId","defaultValue"]),Pe.value?(n(),c("span",he,k(Pe.value),1)):m("v-if",!0),m(' <n-button type="info">选择</n-button> ')])],2112)):(n(),c(y,{key:5},[m(" 其他 "),r(o(j),{value:Ie.value.default_val,"onUpdate:value":a[16]||(a[16]=e=>Ie.value.default_val=e),onKeydown:a[17]||(a[17]=g(b((()=>{}),["prevent"]),["enter"])),placeholder:"请输入默认值"},null,8,["value"])],2112))])),_:1}),r(o(S),{path:"elem_width",label:"宽度"},{default:d((()=>[r(o(I),{value:Ie.value.elem_width,"onUpdate:value":a[18]||(a[18]=e=>Ie.value.elem_width=e),placeholder:"请选择宽度",options:we},null,8,["value"])])),_:1}),r(o(S),{path:"isNull",label:"是否必填","label-placement":"left"},{default:d((()=>[r(o(B),{value:$e.value,"onUpdate:value":[a[19]||(a[19]=e=>$e.value=e),a[20]||(a[20]=e=>Ze("isNull",e))]},null,8,["value"])])),_:1}),o(A)(o(Ae))?(n(),i(o(S),{key:3,"label-placement":"left",path:"isMultiSelect",label:"是否多选"},{default:d((()=>[r(o(B),{value:Le.value,"onUpdate:value":a[21]||(a[21]=e=>Ze("isMultiSelect",e))},null,8,["value"])])),_:1})):m("v-if",!0)])),_:1},8,["model"]),r(Q,{visible:Fe.value,options:ze.value,onHandleSaveBatch:ul,onTriggerBatch:Re},null,8,["visible","options"])])),_:1},8,["style","title"])])),_:1},8,["class","show","width","bodyStyle"]))}});export{_e as default};
|
|
@@ -106,6 +106,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
106
106
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
107
107
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
108
108
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
109
|
+
autoExpand: boolean;
|
|
109
110
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
110
111
|
linebarAutoHidden: boolean;
|
|
111
112
|
bordered: string | boolean;
|
|
@@ -225,6 +226,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
225
226
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
226
227
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
227
228
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
229
|
+
autoExpand: boolean;
|
|
228
230
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
229
231
|
linebarAutoHidden: boolean;
|
|
230
232
|
bordered: string | boolean;
|
|
@@ -7529,6 +7531,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7529
7531
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
7530
7532
|
default: boolean;
|
|
7531
7533
|
};
|
|
7534
|
+
autoExpand: BooleanConstructor;
|
|
7532
7535
|
lowCodeReactions: {
|
|
7533
7536
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
7534
7537
|
};
|
|
@@ -7698,6 +7701,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7698
7701
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
7699
7702
|
default: boolean;
|
|
7700
7703
|
};
|
|
7704
|
+
autoExpand: BooleanConstructor;
|
|
7701
7705
|
lowCodeReactions: {
|
|
7702
7706
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
7703
7707
|
};
|
|
@@ -7891,6 +7895,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
7891
7895
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
7892
7896
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
7893
7897
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
7898
|
+
autoExpand: boolean;
|
|
7894
7899
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
7895
7900
|
linebarAutoHidden: boolean;
|
|
7896
7901
|
bordered: string | boolean;
|
|
@@ -8208,6 +8213,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8208
8213
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
8209
8214
|
default: boolean;
|
|
8210
8215
|
};
|
|
8216
|
+
autoExpand: BooleanConstructor;
|
|
8211
8217
|
lowCodeReactions: {
|
|
8212
8218
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
8213
8219
|
};
|
|
@@ -8258,6 +8264,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8258
8264
|
scope: import("../../shared/types").AnyObject;
|
|
8259
8265
|
consumer: boolean;
|
|
8260
8266
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
8267
|
+
autoExpand: boolean;
|
|
8261
8268
|
linebarAutoHidden: boolean;
|
|
8262
8269
|
bordered: string | boolean;
|
|
8263
8270
|
uniqueCacheData: boolean;
|
|
@@ -8476,6 +8483,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8476
8483
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
8477
8484
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
8478
8485
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
8486
|
+
autoExpand: boolean;
|
|
8479
8487
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
8480
8488
|
linebarAutoHidden: boolean;
|
|
8481
8489
|
bordered: string | boolean;
|
|
@@ -8583,6 +8591,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
8583
8591
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
8584
8592
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
8585
8593
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
8594
|
+
autoExpand: boolean;
|
|
8586
8595
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
8587
8596
|
linebarAutoHidden: boolean;
|
|
8588
8597
|
bordered: string | boolean;
|
|
@@ -13976,6 +13985,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
13976
13985
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
13977
13986
|
default: boolean;
|
|
13978
13987
|
};
|
|
13988
|
+
autoExpand: BooleanConstructor;
|
|
13979
13989
|
lowCodeReactions: {
|
|
13980
13990
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
13981
13991
|
};
|
|
@@ -14145,6 +14155,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14145
14155
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
14146
14156
|
default: boolean;
|
|
14147
14157
|
};
|
|
14158
|
+
autoExpand: BooleanConstructor;
|
|
14148
14159
|
lowCodeReactions: {
|
|
14149
14160
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
14150
14161
|
};
|
|
@@ -14338,6 +14349,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14338
14349
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
14339
14350
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
14340
14351
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
14352
|
+
autoExpand: boolean;
|
|
14341
14353
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
14342
14354
|
linebarAutoHidden: boolean;
|
|
14343
14355
|
bordered: string | boolean;
|
|
@@ -14655,6 +14667,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14655
14667
|
type: import("vue").PropType<boolean | ((fieldItem: import("..").FieldItem) => boolean | void)>;
|
|
14656
14668
|
default: boolean;
|
|
14657
14669
|
};
|
|
14670
|
+
autoExpand: BooleanConstructor;
|
|
14658
14671
|
lowCodeReactions: {
|
|
14659
14672
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
14660
14673
|
};
|
|
@@ -14705,6 +14718,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14705
14718
|
scope: import("../../shared/types").AnyObject;
|
|
14706
14719
|
consumer: boolean;
|
|
14707
14720
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
14721
|
+
autoExpand: boolean;
|
|
14708
14722
|
linebarAutoHidden: boolean;
|
|
14709
14723
|
bordered: string | boolean;
|
|
14710
14724
|
uniqueCacheData: boolean;
|
|
@@ -14810,6 +14824,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
14810
14824
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
14811
14825
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
14812
14826
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
14827
|
+
autoExpand: boolean;
|
|
14813
14828
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
14814
14829
|
linebarAutoHidden: boolean;
|
|
14815
14830
|
bordered: string | boolean;
|
|
@@ -15089,6 +15104,7 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
15089
15104
|
businessFormatter: import("..").FormBusinessFormatter;
|
|
15090
15105
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
15091
15106
|
enterToNextWidget: boolean | ((fieldItem: import("..").FieldItem) => boolean | void);
|
|
15107
|
+
autoExpand: boolean;
|
|
15092
15108
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
15093
15109
|
linebarAutoHidden: boolean;
|
|
15094
15110
|
bordered: string | boolean;
|
|
@@ -109,6 +109,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
109
|
businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
|
|
110
110
|
requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
|
|
111
111
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
112
|
+
autoExpand: boolean;
|
|
112
113
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
113
114
|
linebarAutoHidden: boolean;
|
|
114
115
|
bordered: string | boolean;
|
|
@@ -228,6 +229,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
228
229
|
businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
|
|
229
230
|
requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
|
|
230
231
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
232
|
+
autoExpand: boolean;
|
|
231
233
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
232
234
|
linebarAutoHidden: boolean;
|
|
233
235
|
bordered: string | boolean;
|
|
@@ -7532,6 +7534,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7532
7534
|
type: PropType<boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void)>;
|
|
7533
7535
|
default: boolean;
|
|
7534
7536
|
};
|
|
7537
|
+
autoExpand: BooleanConstructor;
|
|
7535
7538
|
lowCodeReactions: {
|
|
7536
7539
|
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
7537
7540
|
};
|
|
@@ -7701,6 +7704,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7701
7704
|
type: PropType<boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void)>;
|
|
7702
7705
|
default: boolean;
|
|
7703
7706
|
};
|
|
7707
|
+
autoExpand: BooleanConstructor;
|
|
7704
7708
|
lowCodeReactions: {
|
|
7705
7709
|
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
7706
7710
|
};
|
|
@@ -7894,6 +7898,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7894
7898
|
businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
|
|
7895
7899
|
requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
|
|
7896
7900
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
7901
|
+
autoExpand: boolean;
|
|
7897
7902
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
7898
7903
|
linebarAutoHidden: boolean;
|
|
7899
7904
|
bordered: string | boolean;
|
|
@@ -8211,6 +8216,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8211
8216
|
type: PropType<boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void)>;
|
|
8212
8217
|
default: boolean;
|
|
8213
8218
|
};
|
|
8219
|
+
autoExpand: BooleanConstructor;
|
|
8214
8220
|
lowCodeReactions: {
|
|
8215
8221
|
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
8216
8222
|
};
|
|
@@ -8261,6 +8267,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8261
8267
|
scope: import("../../../shared/types").AnyObject;
|
|
8262
8268
|
consumer: boolean;
|
|
8263
8269
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
8270
|
+
autoExpand: boolean;
|
|
8264
8271
|
linebarAutoHidden: boolean;
|
|
8265
8272
|
bordered: string | boolean;
|
|
8266
8273
|
uniqueCacheData: boolean;
|
|
@@ -8479,6 +8486,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8479
8486
|
businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
|
|
8480
8487
|
requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
|
|
8481
8488
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
8489
|
+
autoExpand: boolean;
|
|
8482
8490
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
8483
8491
|
linebarAutoHidden: boolean;
|
|
8484
8492
|
bordered: string | boolean;
|
|
@@ -8586,6 +8594,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8586
8594
|
businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
|
|
8587
8595
|
requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
|
|
8588
8596
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
8597
|
+
autoExpand: boolean;
|
|
8589
8598
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
8590
8599
|
linebarAutoHidden: boolean;
|
|
8591
8600
|
bordered: string | boolean;
|
|
@@ -13979,6 +13988,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13979
13988
|
type: PropType<boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void)>;
|
|
13980
13989
|
default: boolean;
|
|
13981
13990
|
};
|
|
13991
|
+
autoExpand: BooleanConstructor;
|
|
13982
13992
|
lowCodeReactions: {
|
|
13983
13993
|
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
13984
13994
|
};
|
|
@@ -14148,6 +14158,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14148
14158
|
type: PropType<boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void)>;
|
|
14149
14159
|
default: boolean;
|
|
14150
14160
|
};
|
|
14161
|
+
autoExpand: BooleanConstructor;
|
|
14151
14162
|
lowCodeReactions: {
|
|
14152
14163
|
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
14153
14164
|
};
|
|
@@ -14341,6 +14352,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14341
14352
|
businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
|
|
14342
14353
|
requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
|
|
14343
14354
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
14355
|
+
autoExpand: boolean;
|
|
14344
14356
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
14345
14357
|
linebarAutoHidden: boolean;
|
|
14346
14358
|
bordered: string | boolean;
|
|
@@ -14658,6 +14670,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14658
14670
|
type: PropType<boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void)>;
|
|
14659
14671
|
default: boolean;
|
|
14660
14672
|
};
|
|
14673
|
+
autoExpand: BooleanConstructor;
|
|
14661
14674
|
lowCodeReactions: {
|
|
14662
14675
|
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
14663
14676
|
};
|
|
@@ -14708,6 +14721,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14708
14721
|
scope: import("../../../shared/types").AnyObject;
|
|
14709
14722
|
consumer: boolean;
|
|
14710
14723
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
14724
|
+
autoExpand: boolean;
|
|
14711
14725
|
linebarAutoHidden: boolean;
|
|
14712
14726
|
bordered: string | boolean;
|
|
14713
14727
|
uniqueCacheData: boolean;
|
|
@@ -14813,6 +14827,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14813
14827
|
businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
|
|
14814
14828
|
requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
|
|
14815
14829
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
14830
|
+
autoExpand: boolean;
|
|
14816
14831
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
14817
14832
|
linebarAutoHidden: boolean;
|
|
14818
14833
|
bordered: string | boolean;
|
|
@@ -15092,6 +15107,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15092
15107
|
businessFormatter: import("../../../components/form-render").FormBusinessFormatter;
|
|
15093
15108
|
requestInstance: import("../../../shared/hooks").FormRequestDefine.RequestInstance;
|
|
15094
15109
|
enterToNextWidget: boolean | ((fieldItem: import("../../../components/form-render").FieldItem) => boolean | void);
|
|
15110
|
+
autoExpand: boolean;
|
|
15095
15111
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
15096
15112
|
linebarAutoHidden: boolean;
|
|
15097
15113
|
bordered: string | boolean;
|
|
@@ -153,6 +153,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
153
153
|
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
154
154
|
default: boolean;
|
|
155
155
|
};
|
|
156
|
+
autoExpand: BooleanConstructor;
|
|
156
157
|
lowCodeReactions: {
|
|
157
158
|
type: import("vue").PropType<import("../../..").LowCodeTypes.reactionConfig[]>;
|
|
158
159
|
};
|
|
@@ -322,6 +323,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
322
323
|
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
323
324
|
default: boolean;
|
|
324
325
|
};
|
|
326
|
+
autoExpand: BooleanConstructor;
|
|
325
327
|
lowCodeReactions: {
|
|
326
328
|
type: import("vue").PropType<import("../../..").LowCodeTypes.reactionConfig[]>;
|
|
327
329
|
};
|
|
@@ -515,6 +517,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
515
517
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
516
518
|
requestInstance: import("../../..").FormRequestDefine.RequestInstance;
|
|
517
519
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
520
|
+
autoExpand: boolean;
|
|
518
521
|
lowCodeReactions: import("../../..").LowCodeTypes.reactionConfig[];
|
|
519
522
|
linebarAutoHidden: boolean;
|
|
520
523
|
bordered: string | boolean;
|
|
@@ -832,6 +835,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
832
835
|
type: import("vue").PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
833
836
|
default: boolean;
|
|
834
837
|
};
|
|
838
|
+
autoExpand: BooleanConstructor;
|
|
835
839
|
lowCodeReactions: {
|
|
836
840
|
type: import("vue").PropType<import("../../..").LowCodeTypes.reactionConfig[]>;
|
|
837
841
|
};
|
|
@@ -882,6 +886,7 @@ declare const _default: import("vue").DefineComponent<{}, {
|
|
|
882
886
|
scope: AnyObject;
|
|
883
887
|
consumer: boolean;
|
|
884
888
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
889
|
+
autoExpand: boolean;
|
|
885
890
|
linebarAutoHidden: boolean;
|
|
886
891
|
bordered: string | boolean;
|
|
887
892
|
uniqueCacheData: boolean;
|
|
@@ -97,6 +97,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
97
97
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
98
98
|
requestInstance: import("../../../../components/index").FormRequestDefine.RequestInstance;
|
|
99
99
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
100
|
+
autoExpand: boolean;
|
|
100
101
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
101
102
|
linebarAutoHidden: boolean;
|
|
102
103
|
bordered: string | boolean;
|
|
@@ -204,6 +205,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
204
205
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
205
206
|
requestInstance: import("../../../../components/index").FormRequestDefine.RequestInstance;
|
|
206
207
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
208
|
+
autoExpand: boolean;
|
|
207
209
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
208
210
|
linebarAutoHidden: boolean;
|
|
209
211
|
bordered: string | boolean;
|
|
@@ -5597,6 +5599,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5597
5599
|
type: PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
5598
5600
|
default: boolean;
|
|
5599
5601
|
};
|
|
5602
|
+
autoExpand: BooleanConstructor;
|
|
5600
5603
|
lowCodeReactions: {
|
|
5601
5604
|
type: PropType<import("../../../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
5602
5605
|
};
|
|
@@ -5766,6 +5769,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5766
5769
|
type: PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
5767
5770
|
default: boolean;
|
|
5768
5771
|
};
|
|
5772
|
+
autoExpand: BooleanConstructor;
|
|
5769
5773
|
lowCodeReactions: {
|
|
5770
5774
|
type: PropType<import("../../../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
5771
5775
|
};
|
|
@@ -5959,6 +5963,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5959
5963
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
5960
5964
|
requestInstance: import("../../../../components/index").FormRequestDefine.RequestInstance;
|
|
5961
5965
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
5966
|
+
autoExpand: boolean;
|
|
5962
5967
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
5963
5968
|
linebarAutoHidden: boolean;
|
|
5964
5969
|
bordered: string | boolean;
|
|
@@ -6276,6 +6281,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6276
6281
|
type: PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
6277
6282
|
default: boolean;
|
|
6278
6283
|
};
|
|
6284
|
+
autoExpand: BooleanConstructor;
|
|
6279
6285
|
lowCodeReactions: {
|
|
6280
6286
|
type: PropType<import("../../../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
6281
6287
|
};
|
|
@@ -6326,6 +6332,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6326
6332
|
scope: import("../../../../shared/types").AnyObject;
|
|
6327
6333
|
consumer: boolean;
|
|
6328
6334
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
6335
|
+
autoExpand: boolean;
|
|
6329
6336
|
linebarAutoHidden: boolean;
|
|
6330
6337
|
bordered: string | boolean;
|
|
6331
6338
|
uniqueCacheData: boolean;
|
|
@@ -6431,6 +6438,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
6431
6438
|
businessFormatter: import("../../../../components/form-render").FormBusinessFormatter;
|
|
6432
6439
|
requestInstance: import("../../../../components/index").FormRequestDefine.RequestInstance;
|
|
6433
6440
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
6441
|
+
autoExpand: boolean;
|
|
6434
6442
|
lowCodeReactions: import("../../../../shared/types").LowCodeTypes.reactionConfig[];
|
|
6435
6443
|
linebarAutoHidden: boolean;
|
|
6436
6444
|
bordered: string | boolean;
|
|
@@ -140,6 +140,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
140
140
|
type: import("vue").PropType<boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void)>;
|
|
141
141
|
default: boolean;
|
|
142
142
|
};
|
|
143
|
+
autoExpand: BooleanConstructor;
|
|
143
144
|
lowCodeReactions: {
|
|
144
145
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
145
146
|
};
|
|
@@ -309,6 +310,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
309
310
|
type: import("vue").PropType<boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void)>;
|
|
310
311
|
default: boolean;
|
|
311
312
|
};
|
|
313
|
+
autoExpand: BooleanConstructor;
|
|
312
314
|
lowCodeReactions: {
|
|
313
315
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
314
316
|
};
|
|
@@ -502,6 +504,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
502
504
|
businessFormatter: import("./src/types").FormBusinessFormatter;
|
|
503
505
|
requestInstance: import("..").FormRequestDefine.RequestInstance;
|
|
504
506
|
enterToNextWidget: boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void);
|
|
507
|
+
autoExpand: boolean;
|
|
505
508
|
lowCodeReactions: import("../../shared/types").LowCodeTypes.reactionConfig[];
|
|
506
509
|
linebarAutoHidden: boolean;
|
|
507
510
|
bordered: string | boolean;
|
|
@@ -819,6 +822,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
819
822
|
type: import("vue").PropType<boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void)>;
|
|
820
823
|
default: boolean;
|
|
821
824
|
};
|
|
825
|
+
autoExpand: BooleanConstructor;
|
|
822
826
|
lowCodeReactions: {
|
|
823
827
|
type: import("vue").PropType<import("../../shared/types").LowCodeTypes.reactionConfig[]>;
|
|
824
828
|
};
|
|
@@ -869,6 +873,7 @@ declare const FormRender: SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
|
869
873
|
scope: import("../../shared/types").AnyObject;
|
|
870
874
|
consumer: boolean;
|
|
871
875
|
enterToNextWidget: boolean | ((fieldItem: import("./src/types").FieldItem) => boolean | void);
|
|
876
|
+
autoExpand: boolean;
|
|
872
877
|
linebarAutoHidden: boolean;
|
|
873
878
|
bordered: string | boolean;
|
|
874
879
|
uniqueCacheData: boolean;
|
|
@@ -135,6 +135,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
135
135
|
type: PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
136
136
|
default: boolean;
|
|
137
137
|
};
|
|
138
|
+
autoExpand: BooleanConstructor;
|
|
138
139
|
lowCodeReactions: {
|
|
139
140
|
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
140
141
|
};
|
|
@@ -304,6 +305,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
304
305
|
type: PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
305
306
|
default: boolean;
|
|
306
307
|
};
|
|
308
|
+
autoExpand: BooleanConstructor;
|
|
307
309
|
lowCodeReactions: {
|
|
308
310
|
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
309
311
|
};
|
|
@@ -497,6 +499,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
497
499
|
businessFormatter: FormBusinessFormatter;
|
|
498
500
|
requestInstance: FormRequestDefine.RequestInstance;
|
|
499
501
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
502
|
+
autoExpand: boolean;
|
|
500
503
|
lowCodeReactions: LowCodeTypes.reactionConfig[];
|
|
501
504
|
linebarAutoHidden: boolean;
|
|
502
505
|
bordered: string | boolean;
|
|
@@ -814,6 +817,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
814
817
|
type: PropType<boolean | ((fieldItem: FieldItem) => boolean | void)>;
|
|
815
818
|
default: boolean;
|
|
816
819
|
};
|
|
820
|
+
autoExpand: BooleanConstructor;
|
|
817
821
|
lowCodeReactions: {
|
|
818
822
|
type: PropType<LowCodeTypes.reactionConfig[]>;
|
|
819
823
|
};
|
|
@@ -864,6 +868,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
864
868
|
scope: AnyObject;
|
|
865
869
|
consumer: boolean;
|
|
866
870
|
enterToNextWidget: boolean | ((fieldItem: FieldItem) => boolean | void);
|
|
871
|
+
autoExpand: boolean;
|
|
867
872
|
linebarAutoHidden: boolean;
|
|
868
873
|
bordered: string | boolean;
|
|
869
874
|
uniqueCacheData: boolean;
|