mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-06 21:18:10 +00:00
2 lines
22 KiB
JavaScript
2 lines
22 KiB
JavaScript
import{d as De,q as Ne,v as qe,f as Pe,r as _,l as H,al as C,ak as ue,O as W,h as r,c as v,e as l,w as s,a as i,u as t,aw as Ie,t as d,k as a,F as G,T as Y,m as g,B as c,i as h,n as Q,aF as w,z as ce,J as _e,ad as ge,aG as Re,a3 as fe,Y as $e,az as Ae,Q as je,a2 as Ge,ag as Je,E as Le,bd as Me,Z as Fe,_ as He,a1 as We,aA as Ye,D as Qe,b5 as Ze,G as Xe,ae as Ke,af as et,b7 as tt,H as ot,L as lt,p as at,g as nt}from"./index-f99f26c5.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import it from"./index-d26bf7a9.js";/* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as st}from"./index.vue_vue_type_script_setup_true_lang-72e25793.js";/* empty css *//* empty css *//* empty css */import{_ as pt}from"./add-theme-11f90583.js";import{_ as rt}from"./edit-active-cube-e7b0d017.js";import{_ as dt}from"./edit-carousel-search-c0a45390.js";import{_ as mt}from"./edit-float-btn-d4e1708c.js";import{_ as ut}from"./edit-graphic-nav-8794ad38.js";import{_ as ct}from"./edit-horz-blank-d1298573.js";import{_ as _t}from"./edit-horz-line-1246d346.js";import{_ as gt}from"./edit-hot-area-a7807e51.js";import{_ as ft}from"./edit-image-ads-87fdaeb4.js";import{_ as vt}from"./edit-member-info-9b8f36cf.js";import{_ as xt}from"./edit-member-level-ba61ae29.js";import{_ as bt}from"./edit-notice-2f1d219c.js";import{_ as yt}from"./edit-page-200aaf74.js";import{_ as ht}from"./edit-picture-show-85a8e95a.js";import{_ as Ct}from"./edit-rich-text-60ec5604.js";import{_ as wt}from"./edit-rubik-cube-8ef6b591.js";import{_ as kt}from"./edit-text-bd72e0fb.js";import{_ as Bt}from"./edit-theme-64fed815.js";import{_ as St}from"./theme-list-ee7ebefe.js";import{i as Vt,f as Tt,h as Et,j as Ot}from"./diy-ba9878e3.js";import{u as Ut}from"./diy-e412e4fe.js";import{_ as zt}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-5728e7cf.js";/* empty css *//* empty css */import"./attachment-153bb8c5.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-b1bfcd32.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-5c0ce90b.js";/* empty css */import"./sys-c0964254.js";import"./sortable.esm-be94e56d.js";import"./add-theme.vue_vue_type_script_setup_true_lang-99bb6249.js";import"./index.vue_vue_type_style_index_0_lang-cdc3a85e.js";import"./range-37ff0733.js";/* empty css *//* empty css */import"./index-a7dbd031.js";import"./index.vue_vue_type_script_setup_true_lang-db003204.js";import"./edit-theme.vue_vue_type_script_setup_true_lang-742c68e4.js";const Z=N=>(at("data-v-ae054117"),N=N(),nt(),N),Dt={class:"main-container flex-1"},Nt={class:"pl-[5px] text-[14px]"},qt={class:"text-white ml-[10px] mr-[20px] flex items-center"},Pt=Z(()=>i("span",{class:"mr-[5px] text-[rgba(255,255,255,.5)]"},"|",-1)),It={class:"mr-[5px] text-[14px]"},Rt={key:0,class:"flex items-center"},$t={class:"text-white mr-[10px] text-base"},At={class:"w-[180px]"},jt=Z(()=>i("div",{class:"flex-1"},null,-1)),Gt={class:"full-container flex flex-row flex-1 bg-page"},Jt={class:"component-list w-[290px]"},Lt={class:"flex flex-row flex-wrap"},Mt=["title","onClick"],Ft={class:"block text-[12px] truncate"},Ht={class:"preview-wrap flex-1 relative mt-[20px]"},Wt={class:"diy-view-wrap w-[375px] shadow-lg mx-auto"},Yt={key:0,class:"content-wrap"},Qt={key:1,class:"content-wrap"},Zt={key:0,class:"h-[28px] max-w-[150px] mr-[8px]"},Xt=["src"],Kt={key:2,class:"content-wrap"},eo={key:0,class:"title-wrap"},to=["src"],oo={class:"search"},lo=Z(()=>i("span",{class:"nc-iconfont nc-icon-sousuo-duanV6xx1 !text-[12px] absolute left-[10px]"},null,-1)),ao={class:"text-[12px]"},no={key:3,class:"content-wrap"},io={class:"preview-block relative"},so={class:"quick-action absolute text-center -right-[70px] top-[20px] w-[42px] rounded shadow-md"},po=["src"],ro={class:"preview-iframe w-[375px] pt-[20px] px-[20px]"},mo={class:"font-bold text-xl mb-[40px]"},uo={class:"mb-[20px] flex flex-col"},co={class:"mb-[10px]"},_o={class:"edit-attribute-wrap w-[400px]"},go={class:"card-header flex justify-between items-center"},fo={class:"title flex-1"},vo={key:0,class:"tab-wrap flex rounded-[50px] bg-gray-100 text-[14px]"},xo={class:"edit-component-wrap"},bo={class:"edit-attr-item-wrap"},yo={class:"mb-[10px]"},ho={class:"text-sm text-gray-400 ml-[90px] mb-[10px]"},Co=De({__name:"edit",setup(N){Ne("setLayout")("decorate");const e=Ut(),m=qe(),X=Pe();m.query.id=m.query.id||0,m.query.name=m.query.name||"",m.query.url=m.query.url||"",m.query.type=m.query.type||"",m.query.title=m.query.title||"",m.query.back=m.query.back||"/admin/diy/list";const q=m.query.back,k=_(""),K=_(""),P=_(""),V=_(""),J=_(""),I=_(!1),R=_(!1),ee=_(0),te=_(0),T=_([]),oe=H([]),L=_(""),le=_(oe),ve=p=>{},B=H({id:e.id,name:e.name,pageTitle:e.pageTitle,title:e.global.title,value:JSON.stringify({global:C(e.global),value:C(e.value)})}),M=_(!0),xe=()=>{M.value?(location.href=`${location.origin}${q}`,X.push(q)):fe.confirm(a("leavePageTitleTips"),a("leavePageContentTips"),{confirmButtonText:a("confirm"),cancelButtonText:a("cancel"),type:"warning",autofocus:!1}).then(()=>{location.href=`${location.origin}${q}`}).catch(()=>{})},ae=Object.assign({"./components/add-theme.vue":pt,"./components/edit-active-cube.vue":rt,"./components/edit-carousel-search.vue":dt,"./components/edit-float-btn.vue":mt,"./components/edit-graphic-nav.vue":ut,"./components/edit-horz-blank.vue":ct,"./components/edit-horz-line.vue":_t,"./components/edit-hot-area.vue":gt,"./components/edit-image-ads.vue":ft,"./components/edit-member-info.vue":vt,"./components/edit-member-level.vue":xt,"./components/edit-notice.vue":bt,"./components/edit-page.vue":yt,"./components/edit-picture-show.vue":ht,"./components/edit-rich-text.vue":Ct,"./components/edit-rubik-cube.vue":wt,"./components/edit-text.vue":kt,"./components/edit-theme.vue":Bt,"./components/theme-list.vue":St}),ne=Object.assign({});ne&&Object.assign(ae,ne);const ie={};for(const[p,o]of Object.entries(ae)){const b=p.split("/").pop().split(".")[0];ie[b]=o.default}const $=H({}),be=p=>{Tt({type:p,mode:"diy"}).then(o=>{for(const u in o.data)$[u]=o.data[u]})};ue(()=>k.value,(p,o)=>{K.value=o});const ye=p=>{if(e.value.length)fe.confirm(a("changeTemplatePageTips"),a("warning"),{confirmButtonText:a("confirm"),cancelButtonText:a("cancel"),type:"warning"}).then(()=>{if(e.changeCurrentIndex(-99),e.init(),p){let o=W($[p].data);e.global=o.global,o.value.length&&(e.value=o.value)}else m.query.title&&(e.global.title=e.typeName)}).catch(()=>{k.value=K.value});else if(e.init(),p){let o=W($[p].data);e.global=o.global,o.value.length&&(e.value=o.value)}else m.query.title&&(e.global.title=e.typeName)};ue(()=>e,(p,o)=>{const u={id:p.id,name:p.name,pageTitle:p.pageTitle,title:p.global.title,value:JSON.stringify({global:C(p.global),value:C(p.value)})};e.postMessage(),M.value=JSON.stringify(u)==JSON.stringify(B)},{deep:!0}),Vt({id:m.query.id,name:m.query.name,url:m.query.url,type:m.query.type,title:m.query.title}).then(async p=>{const o=p.data;if(e.init(),e.id=o.id||0,e.name=o.name,e.pageTitle=o.page_title,e.type=o.type,e.typeName=o.type_name,e.templateName=o.template,k.value=o.template,e.isDefault=o.is_default,e.pageMode=o.mode,o.value){const u=JSON.parse(o.value);e.global=u.global,u.value.length&&(e.value=u.value)}else e.global.title=o.title;B.id=e.id,B.name=e.name,B.pageTitle=e.pageTitle,B.title=e.global.title,B.value=JSON.stringify({global:C(e.global),value:C(e.value)}),T.value=o.component;for(const u in T.value){oe.push(u);for(const b in T.value[u].list){const f=W(T.value[u].list[b]);f.id=e.generateRandom(),f.componentName=b,f.componentTitle=f.title,Object.assign(f,f.value),delete f.name,delete f.title,delete f.value,delete f.type,delete f.icon,e.components.push(f)}}be(o.type),V.value=o.domain_url.wap_domain,P.value=o.domain_url.wap_url,L.value=o.page,pe()});const se=_(!1);window.addEventListener("message",p=>{try{let o={type:""};if(typeof p.data=="string"?o=JSON.parse(p.data):typeof p.data=="object"&&(o=p.data),!o.type)return;switch(o.type){case"appOnLaunch":case"appOnReady":R.value=!1,I.value=!0;let u=new Date().getTime();te.value=u-ee.value,se.value=!0;break;case"init":e.load=!0,e.postMessage();break;case"change":e.changeCurrentIndex(o.index,o.component);break;case"data":e.changeCurrentIndex(o.index,o.component),e.global=o.global,e.value=o.value;break}}catch(o){console.log("diy edit 后台接受数据错误",o)}},!1);const he=()=>{if(V.value.trim().length==0){$e({type:"warning",message:`${a("wapDomainPlaceholder")}`});return}P.value=V.value+"/wap",pe(),Ae.set({key:"wap_domain",data:P.value}),I.value=!0,R.value=!1},pe=()=>{J.value=`${P.value}${L.value}?mode=decorate`;const p=()=>{ee.value=new Date().getTime(),Ce()};p();let o=0,u=setInterval(()=>{if(se.value||o>=50){clearInterval(u);return}p(),o++},200);setTimeout(()=>{te.value==0&&we()},1e3*10)},Ce=()=>{const p=JSON.stringify({type:"appOnReady",message:"加载完成"});window.previewIframe&&window.previewIframe.contentWindow.postMessage(p,"*")},we=()=>{R.value=!0,I.value=!1,J.value=""},E=_(!1),re=p=>{if(!e.verify()||E.value)return;E.value=!0,e.templateName=k.value;let o={id:e.id,name:e.name,page_title:e.pageTitle,title:e.global.title,type:e.type,template:e.templateName,is_default:e.isDefault,is_change:M.value?0:1,value:JSON.stringify({global:C(e.global),value:C(e.value)})};(e.id?Et:Ot)(o).then(b=>{E.value=!1,b.code==1&&(e.id?E.value=!1:location.href=`${location.origin}${q}`,p&&p(b.data.id))}).catch(()=>{E.value=!1})},ke=()=>{re(p=>{p=e.id||p;const o=X.resolve({path:"/admin/preview/wap",query:{page:L.value+"?id="+p}});window.open(o.href)})},Be=()=>{window.open("https://www.kancloud.cn/niucloud/niucloud-admin-develop/3213393")};return(p,o)=>{const u=je,b=Ge,f=Je,O=Le,Se=Me,y=st,Ve=Fe,Te=He,F=We,U=Ye,Ee=Qe,A=Ze,x=Xe,j=Ke,de=et,Oe=it,S=tt,Ue=ot,ze=lt;return r(),v("div",Dt,[l(Se,{class:"flex items-center h-[60px] bg-primary px-[20px]"},{default:s(()=>[i("div",{class:"text-white cursor-pointer flex items-center",onClick:xe},[l(u,{size:"14"},{default:s(()=>[l(t(Ie))]),_:1}),i("span",Nt,d(t(a)("back")),1)]),i("div",qt,[Pt,i("span",It,d(t(a)("decorating"))+":"+d(t(e).typeName),1)]),t(e).type&&t(e).type!="DIY_PAGE"?(r(),v("div",Rt,[i("span",$t,d(t(a)("templatePagePlaceholder")),1),i("div",At,[l(f,{size:"small",modelValue:k.value,"onUpdate:modelValue":o[0]||(o[0]=n=>k.value=n),placeholder:t(a)("templatePagePlaceholder"),onChange:ye},{default:s(()=>[l(b,{label:t(a)("templatePageEmpty"),value:""},null,8,["label"]),(r(!0),v(G,null,Y($,(n,z)=>(r(),g(b,{label:n.title,value:z,key:z},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])])):c("",!0),jt,l(O,{onClick:o[1]||(o[1]=n=>ke())},{default:s(()=>[h(d(t(a)("preview")),1)]),_:1}),l(O,{onClick:o[2]||(o[2]=n=>re())},{default:s(()=>[h(d(t(a)("save")),1)]),_:1})]),_:1}),i("div",Gt,[i("div",Jt,[l(F,{class:"px-[10px]"},{default:s(()=>[l(Te,{modelValue:le.value,"onUpdate:modelValue":o[3]||(o[3]=n=>le.value=n),onChange:ve},{default:s(()=>[(r(!0),v(G,null,Y(T.value,(n,z)=>(r(),g(Ve,{key:z,title:n.title,name:z},{default:s(()=>[i("ul",Lt,[(r(!0),v(G,null,Y(n.list,(D,me)=>(r(),v("li",{key:me,class:"w-2/6 text-center cursor-pointer h-[65px]",title:D.title,onClick:ko=>t(e).addComponent(me,D)},[D.icon?(r(),g(y,{key:0,name:D.icon,size:"20px",class:"inline-block mt-[3px]"},null,8,["name"])):(r(),g(y,{key:1,name:"iconfont iconkaifazujian",size:"20px",class:"inline-block mt-[3px]"})),i("span",Ft,d(D.title),1)],8,Mt))),128))])]),_:2},1032,["title","name"]))),128))]),_:1},8,["modelValue"])]),_:1})]),i("div",Ht,[l(F,null,{default:s(()=>[l(O,{class:"page-btn absolute right-[20px]",onClick:o[4]||(o[4]=n=>t(e).changeCurrentIndex(-99))},{default:s(()=>[h(d(t(a)("pageSet")),1)]),_:1}),i("div",Wt,[i("div",{class:Q(["preview-head bg-no-repeat bg-center bg-cover cursor-pointer h-[64px]",[t(e).global.topStatusBar.style]]),style:w({backgroundColor:t(e).global.topStatusBar.bgColor}),onClick:o[5]||(o[5]=n=>t(e).changeCurrentIndex(-99))},[t(e).global.topStatusBar.style=="style-1"&&t(e).global.topStatusBar.isShow?(r(),v("div",Yt,[i("div",{class:"title-wrap",style:w({fontSize:"14px",color:t(e).global.topStatusBar.textColor,textAlign:t(e).global.topStatusBar.textAlign})},d(t(e).global.title),5)])):c("",!0),t(e).global.topStatusBar.style=="style-2"&&t(e).global.topStatusBar.isShow?(r(),v("div",Qt,[i("div",{class:"title-wrap",style:w({color:t(e).global.topStatusBar.textColor})},[t(e).global.topStatusBar.imgUrl?(r(),v("div",Zt,[i("img",{class:"max-w-[100%] max-h-[100%]",src:t(ce)(t(e).global.topStatusBar.imgUrl),mode:"heightFix"},null,8,Xt)])):c("",!0),i("div",{style:w({color:t(e).global.topStatusBar.textColor})},d(t(e).global.title),5)],4)])):c("",!0),t(e).global.topStatusBar.style=="style-3"&&t(e).global.topStatusBar.isShow?(r(),v("div",Kt,[t(e).global.topStatusBar.imgUrl?(r(),v("div",eo,[i("img",{class:"max-w-[100%] max-h-[100%]",src:t(ce)(t(e).global.topStatusBar.imgUrl)},null,8,to)])):c("",!0),i("div",oo,[lo,i("span",ao,d(t(e).global.topStatusBar.inputPlaceholder),1)])])):c("",!0),t(e).global.topStatusBar.style=="style-4"&&t(e).global.topStatusBar.isShow?(r(),v("div",no,[i("span",{class:"iconfont iconxiazai19 !text-[14px]",style:w({color:t(e).global.topStatusBar.textColor})},null,4),i("div",{class:"title-wrap",style:w({color:t(e).global.topStatusBar.textColor})},"我的位置",4),i("span",{class:"iconfont iconxiangyoujiantou !text-[12px]",style:w({color:t(e).global.topStatusBar.textColor})},null,4)])):c("",!0)],6),i("div",io,[i("ul",so,[l(U,{effect:"light",content:t(a)("moveUpComponent"),placement:"right"},{default:s(()=>[l(y,{name:"iconfont iconjiantoushang",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).moveUpComponent},null,8,["onClick"])]),_:1},8,["content"]),l(U,{effect:"light",content:t(a)("moveDownComponent"),placement:"right"},{default:s(()=>[l(y,{name:"iconfont iconjiantouxia",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).moveDownComponent},null,8,["onClick"])]),_:1},8,["content"]),l(U,{effect:"light",content:t(a)("copyComponent"),placement:"right"},{default:s(()=>[l(y,{name:"iconfont iconcopy-line",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).copyComponent},null,8,["onClick"])]),_:1},8,["content"]),l(U,{effect:"light",content:t(a)("delComponent"),placement:"right"},{default:s(()=>[l(y,{name:"iconfont icondelete-line",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).delComponent},null,8,["onClick"])]),_:1},8,["content"]),l(U,{effect:"light",content:t(a)("resetComponent"),placement:"right"},{default:s(()=>[l(y,{name:"iconfont iconloader-line",size:"20px",class:"block cursor-pointer leading-[40px]",onClick:t(e).resetComponent},null,8,["onClick"])]),_:1},8,["content"])]),_e(i("iframe",{id:"previewIframe",src:J.value,frameborder:"0",class:"preview-iframe w-[375px]"},null,8,po),[[ge,I.value]]),_e(i("div",ro,[i("div",mo,d(t(a)("developTitle")),1),i("div",uo,[i("text",co,d(t(a)("wapDomain")),1),l(Ee,{modelValue:V.value,"onUpdate:modelValue":o[6]||(o[6]=n=>V.value=n),modelModifiers:{trim:!0},placeholder:t(a)("wapDomainPlaceholder"),clearable:""},null,8,["modelValue","placeholder"])]),l(O,{type:"primary",onClick:he},{default:s(()=>[h(d(t(a)("confirm")),1)]),_:1}),l(O,{type:"primary",onClick:o[7]||(o[7]=n=>Be()),plain:""},{default:s(()=>[h(d(t(a)("settingTips")),1)]),_:1})],512),[[ge,R.value]])])])]),_:1})]),i("div",_o,[l(F,null,{default:s(()=>[l(ze,{class:"box-card",shadow:"never"},{header:s(()=>[i("div",go,[i("span",fo,d(t(e).currentIndex==-99?t(a)("pageSet"):t(e).editComponent.componentTitle),1),t(e).currentComponent?(r(),v("div",vo,[i("span",{class:Q(["cursor-pointer rounded-[50px] py-[5px] px-[15px]",{"bg-primary text-white":t(e).editTab=="content"}]),onClick:o[8]||(o[8]=n=>t(e).editTab="content")},d(t(a)("tabEditContent")),3),i("span",{class:Q(["cursor-pointer rounded-[50px] py-[5px] px-[15px]",{"bg-primary text-white":t(e).editTab=="style"}]),onClick:o[9]||(o[9]=n=>t(e).editTab="style")},d(t(a)("tabEditStyle")),3)])):c("",!0)])]),default:s(()=>[i("div",xo,[t(e).currentComponent?(r(),g(Re(ie[t(e).currentComponent]),{key:t(e).currentIndex,value:t(e).value[t(e).currentIndex]},{style:s(()=>[i("div",bo,[i("h3",yo,d(t(a)("componentStyleTitle")),1),l(Ue,{"label-width":"90px",class:"px-[10px]"},{default:s(()=>[t(e).editComponent.ignore.indexOf("pageBgColor")==-1?(r(),v(G,{key:0},[l(x,{label:t(a)("bottomBgColor")},{default:s(()=>[l(A,{modelValue:t(e).editComponent.pageStartBgColor,"onUpdate:modelValue":o[10]||(o[10]=n=>t(e).editComponent.pageStartBgColor=n),"show-alpha":"",predefine:t(e).predefineColors},null,8,["modelValue","predefine"]),l(y,{name:"iconfont iconmap-connect",size:"20px",class:"block !text-gray-400 mx-[5px]"}),l(A,{modelValue:t(e).editComponent.pageEndBgColor,"onUpdate:modelValue":o[11]||(o[11]=n=>t(e).editComponent.pageEndBgColor=n),"show-alpha":"",predefine:t(e).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"]),i("div",ho,d(t(a)("bottomBgTips")),1)],64)):c("",!0),t(e).editComponent.ignore.indexOf("pageBgColor")==-1?(r(),g(x,{key:1,label:t(a)("bgGradientAngle")},{default:s(()=>[l(de,{modelValue:t(e).editComponent.pageGradientAngle,"onUpdate:modelValue":o[12]||(o[12]=n=>t(e).editComponent.pageGradientAngle=n)},{default:s(()=>[l(j,{label:"to bottom"},{default:s(()=>[h(d(t(a)("topToBottom")),1)]),_:1}),l(j,{label:"to right"},{default:s(()=>[h(d(t(a)("leftToRight")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0),t(e).editComponent.ignore.indexOf("componentBgUrl")==-1?(r(),g(x,{key:2,label:t(a)("componentBgUrl")},{default:s(()=>[l(Oe,{modelValue:t(e).editComponent.componentBgUrl,"onUpdate:modelValue":o[13]||(o[13]=n=>t(e).editComponent.componentBgUrl=n),limit:1},null,8,["modelValue"])]),_:1},8,["label"])):c("",!0),t(e).editComponent.ignore.indexOf("componentBgUrl")==-1&&t(e).editComponent.componentBgUrl?(r(),g(x,{key:3,label:t(a)("componentBgAlpha")},{default:s(()=>[l(S,{modelValue:t(e).editComponent.componentBgAlpha,"onUpdate:modelValue":o[14]||(o[14]=n=>t(e).editComponent.componentBgAlpha=n),"show-input":"",size:"small",min:0,max:10,class:"ml-[10px] diy-nav-slider"},null,8,["modelValue"])]),_:1},8,["label"])):c("",!0),t(e).editComponent.ignore.indexOf("componentBgColor")==-1?(r(),g(x,{key:4,label:t(a)("componentBgColor")},{default:s(()=>[l(A,{modelValue:t(e).editComponent.componentStartBgColor,"onUpdate:modelValue":o[15]||(o[15]=n=>t(e).editComponent.componentStartBgColor=n),"show-alpha":"",predefine:t(e).predefineColors},null,8,["modelValue","predefine"]),l(y,{name:"iconfont iconmap-connect",size:"20px",class:"block !text-gray-400 mx-[5px]"}),l(A,{modelValue:t(e).editComponent.componentEndBgColor,"onUpdate:modelValue":o[16]||(o[16]=n=>t(e).editComponent.componentEndBgColor=n),"show-alpha":"",predefine:t(e).predefineColors},null,8,["modelValue","predefine"])]),_:1},8,["label"])):c("",!0),t(e).editComponent.ignore.indexOf("componentBgColor")==-1?(r(),g(x,{key:5,label:t(a)("bgGradientAngle")},{default:s(()=>[l(de,{modelValue:t(e).editComponent.componentGradientAngle,"onUpdate:modelValue":o[17]||(o[17]=n=>t(e).editComponent.componentGradientAngle=n)},{default:s(()=>[l(j,{label:"to bottom"},{default:s(()=>[h(d(t(a)("topToBottom")),1)]),_:1}),l(j,{label:"to right"},{default:s(()=>[h(d(t(a)("leftToRight")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):c("",!0),t(e).editComponent.ignore.indexOf("marginTop")==-1?(r(),g(x,{key:6,label:t(a)("marginTop")},{default:s(()=>[l(S,{modelValue:t(e).editComponent.margin.top,"onUpdate:modelValue":o[18]||(o[18]=n=>t(e).editComponent.margin.top=n),"show-input":"",size:"small",min:-100,class:"ml-[10px] diy-nav-slider"},null,8,["modelValue"])]),_:1},8,["label"])):c("",!0),t(e).editComponent.ignore.indexOf("marginBottom")==-1?(r(),g(x,{key:7,label:t(a)("marginBottom")},{default:s(()=>[l(S,{modelValue:t(e).editComponent.margin.bottom,"onUpdate:modelValue":o[19]||(o[19]=n=>t(e).editComponent.margin.bottom=n),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider"},null,8,["modelValue"])]),_:1},8,["label"])):c("",!0),t(e).editComponent.ignore.indexOf("marginBoth")==-1?(r(),g(x,{key:8,label:t(a)("marginBoth")},{default:s(()=>[l(S,{modelValue:t(e).editComponent.margin.both,"onUpdate:modelValue":o[20]||(o[20]=n=>t(e).editComponent.margin.both=n),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider"},null,8,["modelValue"])]),_:1},8,["label"])):c("",!0),t(e).editComponent.ignore.indexOf("topRounded")==-1?(r(),g(x,{key:9,label:t(a)("topRounded")},{default:s(()=>[l(S,{modelValue:t(e).editComponent.topRounded,"onUpdate:modelValue":o[21]||(o[21]=n=>t(e).editComponent.topRounded=n),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider",max:100},null,8,["modelValue"])]),_:1},8,["label"])):c("",!0),t(e).editComponent.ignore.indexOf("bottomRounded")==-1?(r(),g(x,{key:10,label:t(a)("bottomRounded")},{default:s(()=>[l(S,{modelValue:t(e).editComponent.bottomRounded,"onUpdate:modelValue":o[22]||(o[22]=n=>t(e).editComponent.bottomRounded=n),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider",max:100},null,8,["modelValue"])]),_:1},8,["label"])):c("",!0)]),_:1})])]),_:1},8,["value"])):c("",!0)])]),_:1})]),_:1})])])])}}});const $l=zt(Co,[["__scopeId","data-v-ae054117"]]);export{$l as default};
|