1import{B as w}from"./BasicUpload-qWpjUGh7.js";import{d as j,b_ as q,r as N,u as R,a as f,f as S,o as F,g as c,k as e,w as t,n as m,am as P,bb as T,b9 as E,p as G,_ as H,l as J,h as u,a_ as L,B as M}from"./index-CD2XdgVm.js";import"./componentSetting-BWfeBKaO.js";import"./PlusOutlined-C6fnC74x.js";import"./DeleteOutlined-D1WdHhzV.js";const Q={class:"n-layout-page-header"},W={style:{"margin-left":"80px"}},$=j({__name:"index",setup(Z){const g=q(),b={name:{required:!0,message:"请è¾å
¥é¢çº¦å§å",trigger:"blur"},remark:{required:!0,message:"请è¾å
¥é¢çº¦å¤æ³¨",trigger:"blur"},images:{required:!0,type:"array",message:"请ä¸ä¼ ç
ä¾å¾ç",trigger:"change"}},s=N(null),i=R(),{uploadUrl:v}=g,a=f({name:"",mobile:"",images:["https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png"]}),h=f({platform:"miniPrograms",timestamp:new Date().getTime(),token:"Q6fFCuhc1vkKn5JNFWaCLf6gRAc5n0LQHd08dSnG4qo="});function k(){s.value.validate(l=>{l?i.error("éªè¯å¤±è´¥ï¼è¯·å¡«å宿´ä¿¡æ¯"):i.success("éªè¯æå")})}function x(){s.value.restoreValidation()}function y(l){a.images=u(l)}return(l,n)=>{const _=P,p=J,r=H,d=M,C=L,B=G,U=E,V=T;return F(),S("div",null,[c("div",Q,[e(_,{bordered:!1,title:"ä¸ä¼ å¾ç"},{default:t(()=>n[3]||(n[3]=[m(" ä¸ä¼ å¾çï¼ç¨äºåç¨æ·æ¶éå¾çä¿¡æ¯ ")])),_:1})]),e(_,{bordered:!1,class:"mt-4 proCard"},{default:t(()=>[e(V,{cols:"2 s:1 m:3 l:3 xl:3 2xl:3",responsive:"screen"},{default:t(()=>[e(U,{offset:"0 s:0 m:1 l:1 xl:1 2xl:1"},{default:t(()=>[e(B,{"label-width":80,model:a,rules:b,"label-placement":"left",ref_key:"formRef",ref:s,class:"py-8"},{default:t(()=>[e(r,{label:"é¢çº¦å§å",path:"name"},{default:t(()=>[e(p,{value:a.name,"onUpdate:value":n[0]||(n[0]=o=>a.name=o),placeholder:"è¾å
¥å§å"},null,8,["value"])]),_:1}),e(r,{label:"é¢çº¦å·ç ",path:"mobile"},{default:t(()=>[e(p,{placeholder:"çµè¯å·ç ",value:a.mobile,"onUpdate:value":n[1]||(n[1]=o=>a.mobile=o)},null,8,["value"])]),_:1}),e(r,{label:"ç
ä¾å¾ç",path:"images"},{default:t(()=>[e(u(w),{action:`${u(v)}/v1.0/files`,headers:h,data:{type:0},name:"files",width:100,height:100,onUploadChange:y,value:a.images,"onUpdate:value":n[2]||(n[2]=o=>a.images=o),helpText:"å个æä»¶ä¸è¶
è¿2MBï¼æå¤åªè½ä¸ä¼ 10个æä»¶"},null,8,["action","headers","value"])]),_:1}),c("div",W,[e(C,null,{default:t(()=>[e(d,{type:"primary",onClick:k},{default:t(()=>n[4]||(n[4]=[m("æäº¤é¢çº¦")])),_:1}),e(d,{onClick:x},{default:t(()=>n[5]||(n[5]=[m("éç½®")])),_:1})]),_:1})])]),_:1},8,["model"])]),_:1})]),_:1})]),_:1})])}}});export{$ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.