mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-02 03:08:12 +00:00
2 lines
22 KiB
JavaScript
2 lines
22 KiB
JavaScript
import{d as De,q as Ne,v as qe,f as Ie,r as _,l as H,an as C,al as ce,O as W,h as r,c as v,e as l,w as s,a as i,u as t,ay as Pe,t as m,k as a,F as J,T as Y,m as g,B as u,i as h,n as Q,aH as w,z as ue,J as _e,ae as ge,aI as Re,a4 as fe,Y as $e,aB as je,Q as Ae,a3 as Je,ah as Ge,E as Le,be as Me,Z as Fe,$ as He,a2 as We,aC as Ye,D as Qe,b6 as Ze,G as Ke,af as Xe,ag as et,b8 as tt,H as ot,L as lt,p as at,g as nt,_ as it}from"./index-9f163f98.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css */import st from"./index-b01212c8.js";/* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css */import{_ as pt}from"./index.vue_vue_type_script_setup_true_lang-b29ac1a4.js";/* empty css *//* empty css *//* empty css */import{_ as rt}from"./add-theme-5af1359e.js";import{_ as dt}from"./edit-active-cube-6d89078e.js";import{_ as mt}from"./edit-carousel-search-92bf6d7a.js";import{_ as ct}from"./edit-float-btn-9ece0515.js";import{_ as ut}from"./edit-graphic-nav-30041530.js";import{_ as _t}from"./edit-horz-blank-0fdb51d0.js";import{_ as gt}from"./edit-horz-line-5b10987d.js";import{_ as ft}from"./edit-hot-area-4594b3a2.js";import{_ as vt}from"./edit-image-ads-03dda0b8.js";import{_ as bt}from"./edit-member-info-7d3c53bf.js";import{_ as xt}from"./edit-member-level-ae4725b5.js";import{_ as yt}from"./edit-notice-348840a6.js";import{_ as ht}from"./edit-page-e252eeb6.js";import{_ as Ct}from"./edit-picture-show-456d7c84.js";import{_ as wt}from"./edit-rich-text-b3a6ba29.js";import{_ as kt}from"./edit-rubik-cube-abbb4202.js";import{_ as Bt}from"./edit-text-396fa1cc.js";import{_ as St}from"./edit-theme-4d702518.js";import{_ as Vt}from"./theme-list-968b1dd9.js";import{i as Tt,f as Et,h as Ot,j as Ut}from"./diy-3042ded9.js";import{u as zt}from"./diy-700f9c59.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-eb3f7737.js";/* empty css *//* empty css */import"./attachment-d1610ab5.js";/* empty css */import"./index.vue_vue_type_script_setup_true_lang-761ba1b4.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-e32ef5b5.js";/* empty css */import"./sys-135535fa.js";import"./sortable.esm-be94e56d.js";import"./add-theme.vue_vue_type_script_setup_true_lang-a2796768.js";import"./index.vue_vue_type_style_index_0_lang-81acf0a3.js";import"./range-60f1c18d.js";/* empty css *//* empty css */import"./index-6f9ab0db.js";import"./index.vue_vue_type_script_setup_true_lang-78e6a09a.js";import"./edit-theme.vue_vue_type_script_setup_true_lang-75cea0d7.js";const Z=N=>(at("data-v-a9c7eade"),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"},It=Z(()=>i("span",{class:"mr-[5px] text-[rgba(255,255,255,.5)]"},"|",-1)),Pt={class:"mr-[5px] text-[14px]"},Rt={key:0,class:"flex items-center"},$t={class:"text-white mr-[10px] text-base"},jt={class:"w-[180px]"},At=Z(()=>i("div",{class:"flex-1"},null,-1)),Jt={class:"full-container flex flex-row flex-1 bg-page"},Gt={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]"},Kt=["src"],Xt={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]"},co={class:"mb-[20px] flex flex-col"},uo={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]"},bo={class:"edit-component-wrap"},xo={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=zt(),c=qe(),K=Ie();c.query.id=c.query.id||0,c.query.name=c.query.name||"",c.query.url=c.query.url||"",c.query.type=c.query.type||"",c.query.title=c.query.title||"",c.query.back=c.query.back||"/admin/diy/list";const q=c.query.back,k=_(""),X=_(""),I=_(""),V=_(""),G=_(""),P=_(!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),be=()=>{M.value?(location.href=`${location.origin}${q}`,K.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":rt,"./components/edit-active-cube.vue":dt,"./components/edit-carousel-search.vue":mt,"./components/edit-float-btn.vue":ct,"./components/edit-graphic-nav.vue":ut,"./components/edit-horz-blank.vue":_t,"./components/edit-horz-line.vue":gt,"./components/edit-hot-area.vue":ft,"./components/edit-image-ads.vue":vt,"./components/edit-member-info.vue":bt,"./components/edit-member-level.vue":xt,"./components/edit-notice.vue":yt,"./components/edit-page.vue":ht,"./components/edit-picture-show.vue":Ct,"./components/edit-rich-text.vue":wt,"./components/edit-rubik-cube.vue":kt,"./components/edit-text.vue":Bt,"./components/edit-theme.vue":St,"./components/theme-list.vue":Vt}),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({}),xe=p=>{Et({type:p,mode:"diy"}).then(o=>{for(const d in o.data)$[d]=o.data[d]})};ce(()=>k.value,(p,o)=>{X.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 c.query.title&&(e.global.title=e.typeName)}).catch(()=>{k.value=X.value});else if(e.init(),p){let o=W($[p].data);e.global=o.global,o.value.length&&(e.value=o.value)}else c.query.title&&(e.global.title=e.typeName)};ce(()=>e,(p,o)=>{const d={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(d)==JSON.stringify(B)},{deep:!0}),Tt({id:c.query.id,name:c.query.name,url:c.query.url,type:c.query.type,title:c.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.global)for(const d in o.global)if(o.global[d])for(const b in o.global[d])e.global[d][b]=o.global[d][b];else e.global[d]=o.global[d];if(o.value){const d=JSON.parse(o.value);e.global=d.global,d.value.length&&(e.value=d.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 d in T.value){oe.push(d);for(const b in T.value[d].list){const f=W(T.value[d].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)}}xe(o.type),V.value=o.domain_url.wap_domain,I.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,P.value=!0;let d=new Date().getTime();te.value=d-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}I.value=V.value+"/wap",pe(),je.set({key:"wap_domain",data:I.value}),P.value=!0,R.value=!1},pe=()=>{G.value=`${I.value}${L.value}?mode=decorate`;const p=()=>{ee.value=new Date().getTime(),Ce()};p();let o=0,d=setInterval(()=>{if(se.value||o>=50){clearInterval(d);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,P.value=!1,G.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?Ot:Ut)(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=K.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 d=Ae,b=Je,f=Ge,O=Le,Se=Me,y=pt,Ve=Fe,Te=He,F=We,U=Ye,Ee=Qe,j=Ze,x=Ke,A=Xe,de=et,Oe=st,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:be},[l(d,{size:"14"},{default:s(()=>[l(t(Pe))]),_:1}),i("span",Nt,m(t(a)("back")),1)]),i("div",qt,[It,i("span",Pt,m(t(a)("decorating"))+":"+m(t(e).typeName),1)]),t(e).type&&t(e).type!="DIY_PAGE"?(r(),v("div",Rt,[i("span",$t,m(t(a)("templatePagePlaceholder")),1),i("div",jt,[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(J,null,Y($,(n,z)=>(r(),g(b,{label:n.title,value:z,key:z},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])])])):u("",!0),At,l(O,{onClick:o[1]||(o[1]=n=>ke())},{default:s(()=>[h(m(t(a)("preview")),1)]),_:1}),l(O,{onClick:o[2]||(o[2]=n=>re())},{default:s(()=>[h(m(t(a)("save")),1)]),_:1})]),_:1}),i("div",Jt,[i("div",Gt,[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(J,null,Y(T.value,(n,z)=>(r(),g(Ve,{key:z,title:n.title,name:z},{default:s(()=>[i("ul",Lt,[(r(!0),v(J,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,m(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(m(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})},m(t(e).global.title),5)])):u("",!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(ue)(t(e).global.topStatusBar.imgUrl),mode:"heightFix"},null,8,Kt)])):u("",!0),i("div",{style:w({color:t(e).global.topStatusBar.textColor})},m(t(e).global.title),5)],4)])):u("",!0),t(e).global.topStatusBar.style=="style-3"&&t(e).global.topStatusBar.isShow?(r(),v("div",Xt,[t(e).global.topStatusBar.imgUrl?(r(),v("div",eo,[i("img",{class:"max-w-[100%] max-h-[100%]",src:t(ue)(t(e).global.topStatusBar.imgUrl)},null,8,to)])):u("",!0),i("div",oo,[lo,i("span",ao,m(t(e).global.topStatusBar.inputPlaceholder),1)])])):u("",!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)])):u("",!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:G.value,frameborder:"0",class:"preview-iframe w-[375px]"},null,8,po),[[ge,P.value]]),_e(i("div",ro,[i("div",mo,m(t(a)("developTitle")),1),i("div",co,[i("text",uo,m(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(m(t(a)("confirm")),1)]),_:1}),l(O,{type:"primary",onClick:o[7]||(o[7]=n=>Be()),plain:""},{default:s(()=>[h(m(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,m(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")},m(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")},m(t(a)("tabEditStyle")),3)])):u("",!0)])]),default:s(()=>[i("div",bo,[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",xo,[i("h3",yo,m(t(a)("componentStyleTitle")),1),l(Ue,{"label-width":"90px",class:"px-[10px]"},{default:s(()=>[t(e).editComponent.ignore.indexOf("pageBgColor")==-1?(r(),v(J,{key:0},[l(x,{label:t(a)("bottomBgColor")},{default:s(()=>[l(j,{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(j,{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,m(t(a)("bottomBgTips")),1)],64)):u("",!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(A,{label:"to bottom"},{default:s(()=>[h(m(t(a)("topToBottom")),1)]),_:1}),l(A,{label:"to right"},{default:s(()=>[h(m(t(a)("leftToRight")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):u("",!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"])):u("",!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"])):u("",!0),t(e).editComponent.ignore.indexOf("componentBgColor")==-1?(r(),g(x,{key:4,label:t(a)("componentBgColor")},{default:s(()=>[l(j,{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(j,{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"])):u("",!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(A,{label:"to bottom"},{default:s(()=>[h(m(t(a)("topToBottom")),1)]),_:1}),l(A,{label:"to right"},{default:s(()=>[h(m(t(a)("leftToRight")),1)]),_:1})]),_:1},8,["modelValue"])]),_:1},8,["label"])):u("",!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"])):u("",!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"])):u("",!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"])):u("",!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"])):u("",!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"])):u("",!0)]),_:1})])]),_:1},8,["value"])):u("",!0)])]),_:1})]),_:1})])])])}}});const Rl=it(Co,[["__scopeId","data-v-a9c7eade"]]);export{Rl as default};
|