2 lines
2.3 KiB
JavaScript
2 lines
2.3 KiB
JavaScript
|
|
System.register(["./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./mail-legacy-BX4bHMTA.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785"],(function(e,a){"use strict";var l,r,t,s,u,i,c,d,n,o,p,_,v,f,w,y,x,b;return{setters:[e=>{l=e._},e=>{r=e.ar,t=e.as},e=>{s=e.k,u=e.R,i=e.r,c=e.e,d=e.$,n=e.Z,o=e.a0,p=e.a9,_=e._,v=e.S,f=e.N},e=>{w=e.a1,y=e.b,x=e.a6,b=e.a8},null,null],execute:function(){const a={class:"p-20px"},h={class:"w-300px"},m={class:"w-300px"},g={class:"w-300px"};e("default",s({__name:"index",props:{row:{},isEdit:{type:Boolean}},emits:["refresh"],setup(e,{expose:s,emit:B}){const j=e,M=B,{isEdit:$,row:k}=j,{t:U}=u(),E=i(null),R=c({user:"",forward_user:"",type:"sender",active:1}),S=[{label:U("Mail.Bcc.index_2"),value:"sender"},{label:U("Mail.Bcc.index_3"),value:"recipient"}],Z={};return(()=>{const{row:e,isEdit:a}=j;a&&e&&(R.user=e.user,R.forward_user=e.forward_user,R.type=e.type,R.active=e.active)})(),s({onConfirm:async()=>{await(E.value?.validate()),$&&k?await r({user:k.user,type:k.type,forward_user:k.forward_user,type_new:R.type,forward_user_new:R.forward_user,active_new:R.active}):await t(f(R)),M("refresh")}}),(e,r)=>{const t=y,s=w,u=x,i=b,c=l;return d(),n("div",a,[o(c,{ref_key:"formRef",ref:E,model:v(R),rules:Z},{default:p((()=>[o(s,{label:e.$t("Mail.Bcc.index_4"),path:"user"},{default:p((()=>[_("div",h,[o(t,{value:v(R).user,"onUpdate:value":r[0]||(r[0]=e=>v(R).user=e),disabled:v($),placeholder:e.$t("Mail.Bcc.index_11")},null,8,["value","disabled","placeholder"])])])),_:1},8,["label"]),o(s,{label:e.$t("Mail.Bcc.index_5"),path:"forward_user"},{default:p((()=>[_("div",m,[o(t,{value:v(R).forward_user,"onUpdate:value":r[1]||(r[1]=e=>v(R).forward_user=e),placeholder:e.$t("Mail.Bcc.index_12")},null,8,["value","placeholder"])])])),_:1},8,["label"]),o(s,{label:e.$t("Mail.Bcc.index_7"),path:"type"},{default:p((()=>[_("div",g,[o(u,{value:v(R).type,"onUpdate:value":r[2]||(r[2]=e=>v(R).type=e),options:S},null,8,["value"])])])),_:1},8,["label"]),o(s,{label:"Active","show-feedback":!1},{default:p((()=>[o(i,{value:v(R).active,"onUpdate:value":r[3]||(r[3]=e=>v(R).active=e),"checked-value":1,"unchecked-value":0},null,8,["value"])])),_:1})])),_:1},8,["model"])])}}}))}}}));
|