2 lines
2.0 KiB
JavaScript
2 lines
2.0 KiB
JavaScript
import{r as e,d as l,o as a,k as o,w as t,e as r,f as u}from"./index.e5c8b0d6.js";const n={__name:"basicInfoForm",props:{info:{type:Object,default:null}},setup(n){const d=e({tableName:[{required:!0,message:"请输入表名称",trigger:"blur"}],tableComment:[{required:!0,message:"请输入表描述",trigger:"blur"}],className:[{required:!0,message:"请输入实体类名称",trigger:"blur"}],functionAuthor:[{required:!0,message:"请输入作者",trigger:"blur"}]});return(e,m)=>{const s=l("el-input"),f=l("el-form-item"),p=l("el-col"),i=l("el-row"),b=l("el-form");return a(),o(b,{ref:"basicInfoForm",model:n.info,rules:u(d),"label-width":"150px"},{default:t((()=>[r(i,null,{default:t((()=>[r(p,{span:12},{default:t((()=>[r(f,{label:"表名称",prop:"tableName"},{default:t((()=>[r(s,{placeholder:"请输入仓库名称",modelValue:n.info.tableName,"onUpdate:modelValue":m[0]||(m[0]=e=>n.info.tableName=e)},null,8,["modelValue"])])),_:1})])),_:1}),r(p,{span:12},{default:t((()=>[r(f,{label:"表描述",prop:"tableComment"},{default:t((()=>[r(s,{placeholder:"请输入",modelValue:n.info.tableComment,"onUpdate:modelValue":m[1]||(m[1]=e=>n.info.tableComment=e)},null,8,["modelValue"])])),_:1})])),_:1}),r(p,{span:12},{default:t((()=>[r(f,{label:"实体类名称",prop:"className"},{default:t((()=>[r(s,{placeholder:"请输入",modelValue:n.info.className,"onUpdate:modelValue":m[2]||(m[2]=e=>n.info.className=e)},null,8,["modelValue"])])),_:1})])),_:1}),r(p,{span:12},{default:t((()=>[r(f,{label:"作者",prop:"functionAuthor"},{default:t((()=>[r(s,{placeholder:"请输入",modelValue:n.info.functionAuthor,"onUpdate:modelValue":m[3]||(m[3]=e=>n.info.functionAuthor=e)},null,8,["modelValue"])])),_:1})])),_:1}),r(p,{span:24},{default:t((()=>[r(f,{label:"备注",prop:"remark"},{default:t((()=>[r(s,{type:"textarea",rows:3,modelValue:n.info.remark,"onUpdate:modelValue":m[4]||(m[4]=e=>n.info.remark=e)},null,8,["modelValue"])])),_:1})])),_:1})])),_:1})])),_:1},8,["model","rules"])}}};export{n as default};
|