mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-01-05 04:38:09 +00:00
2 lines
5.3 KiB
JavaScript
2 lines
5.3 KiB
JavaScript
import{d as v,k as n,h as y,c as S,J as b,ad as _,u as e,a as d,e as l,w as s,i as C,t as i,aN as V,b as E,F as T,ae as P,af as U,G as N,H as R,D as k,b5 as F,ay as D,b7 as M}from"./index-f99f26c5.js";/* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css */import{u as z}from"./diy-e412e4fe.js";const j={class:"content-wrap"},G={class:"edit-attr-item-wrap"},I={class:"text-sm text-gray-400 mb-[10px] leading-[1.4]"},O={class:"edit-attr-item-wrap"},H={class:"mb-[10px]"},J={class:"edit-attr-item-wrap"},$={class:"mb-[10px]"},q={class:"style-wrap"},A={class:"edit-attr-item-wrap"},K={class:"mb-[10px]"},L=v({__name:"edit-form-submit",setup(Q,{expose:B}){const o=z();o.editComponent.ignore=["componentBgUrl"];const g=r=>{r=="hover_screen_bottom"&&(o.editComponent.margin.bottom=0,o.editComponent.margin.both=0,o.editComponent.margin.top=0)};return o.editComponent.verify=r=>{const t={code:!0,message:""};return o.value[r].submitBtn.text==""?(t.code=!1,t.message=n("submitBtnNamePlaceholder"),t):(o.value[r].resetBtn.text==""&&(t.code=!1,t.message=n("resetBtnNamePlaceholder")),t)},B({}),(r,t)=>{const c=P,w=U,m=N,p=R,f=k,u=F,h=D,x=M;return y(),S(T,null,[b(d("div",j,[d("div",G,[l(p,{"label-width":"80px",class:"px-[10px]"},{default:s(()=>[l(m,{label:e(n)("floatBtnButton"),class:"display-block"},{default:s(()=>[l(w,{modelValue:e(o).editComponent.btnPosition,"onUpdate:modelValue":t[0]||(t[0]=a=>e(o).editComponent.btnPosition=a),onChange:g},{default:s(()=>[l(c,{label:"follow_content"},{default:s(()=>[C(i(e(n)("followContent")),1)]),_:1}),l(c,{label:"hover_screen_bottom"},{default:s(()=>[C(i(e(n)("hoverScreenBottom")),1)]),_:1})]),_:1},8,["modelValue"]),b(d("div",{class:"text-sm text-gray-400 mb-[5px] leading-[1.4]"},i(e(n)("btnTips")),513),[[_,e(o).editComponent.btnPosition=="follow_content"]]),b(d("div",{class:"text-sm text-gray-400 mb-[5px]"},i(e(n)("btnTipsTwo")),513),[[_,e(o).editComponent.btnPosition=="hover_screen_bottom"]]),d("div",I,i(e(n)("btnTipsThree")),1)]),_:1},8,["label"])]),_:1})]),d("div",O,[d("h3",H,i(e(n)("submitBtn")),1),l(p,{"label-width":"80px",class:"px-[10px]",onSubmit:t[4]||(t[4]=V(()=>{},["prevent"]))},{default:s(()=>[l(m,{label:e(n)("submitBtnName")},{default:s(()=>[l(f,{modelValue:e(o).editComponent.submitBtn.text,"onUpdate:modelValue":t[1]||(t[1]=a=>e(o).editComponent.submitBtn.text=a),modelModifiers:{trim:!0},placeholder:e(n)("btnNamePlaceholder"),clearable:"",maxlength:"10","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(m,{label:e(n)("textColor")},{default:s(()=>[l(u,{modelValue:e(o).editComponent.submitBtn.color,"onUpdate:modelValue":t[2]||(t[2]=a=>e(o).editComponent.submitBtn.color=a)},null,8,["modelValue"])]),_:1},8,["label"]),l(m,{label:e(n)("subTextBgColor")},{default:s(()=>[l(u,{modelValue:e(o).editComponent.submitBtn.bgColor,"onUpdate:modelValue":t[3]||(t[3]=a=>e(o).editComponent.submitBtn.bgColor=a)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),d("div",J,[d("h3",$,i(e(n)("resetBtn")),1),l(p,{"label-width":"80px",class:"px-[10px]",onSubmit:t[9]||(t[9]=V(()=>{},["prevent"]))},{default:s(()=>[l(m,{label:e(n)("carouselSearchTabControl")},{default:s(()=>[l(h,{modelValue:e(o).editComponent.resetBtn.control,"onUpdate:modelValue":t[5]||(t[5]=a=>e(o).editComponent.resetBtn.control=a)},null,8,["modelValue"])]),_:1},8,["label"]),l(m,{label:e(n)("submitBtnName")},{default:s(()=>[l(f,{modelValue:e(o).editComponent.resetBtn.text,"onUpdate:modelValue":t[6]||(t[6]=a=>e(o).editComponent.resetBtn.text=a),modelModifiers:{trim:!0},placeholder:e(n)("btnNamePlaceholder"),clearable:"",maxlength:"10","show-word-limit":""},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),l(m,{label:e(n)("textColor")},{default:s(()=>[l(u,{modelValue:e(o).editComponent.resetBtn.color,"onUpdate:modelValue":t[7]||(t[7]=a=>e(o).editComponent.resetBtn.color=a)},null,8,["modelValue"])]),_:1},8,["label"]),l(m,{label:e(n)("subTextBgColor")},{default:s(()=>[l(u,{modelValue:e(o).editComponent.resetBtn.bgColor,"onUpdate:modelValue":t[8]||(t[8]=a=>e(o).editComponent.resetBtn.bgColor=a)},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})])],512),[[_,e(o).editTab=="content"]]),b(d("div",q,[d("div",A,[d("h3",K,i(e(n)("btnStyle")),1),l(p,{"label-width":"100px",class:"px-[10px]"},{default:s(()=>[l(m,{label:e(n)("topRounded")},{default:s(()=>[l(x,{modelValue:e(o).editComponent.topElementRounded,"onUpdate:modelValue":t[10]||(t[10]=a=>e(o).editComponent.topElementRounded=a),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider",max:50},null,8,["modelValue"])]),_:1},8,["label"]),l(m,{label:e(n)("bottomRounded")},{default:s(()=>[l(x,{modelValue:e(o).editComponent.bottomElementRounded,"onUpdate:modelValue":t[11]||(t[11]=a=>e(o).editComponent.bottomElementRounded=a),"show-input":"",size:"small",class:"ml-[10px] diy-nav-slider",max:50},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),E(r.$slots,"style")],512),[[_,e(o).editTab=="style"]])],64)}}}),re=Object.freeze(Object.defineProperty({__proto__:null,default:L},Symbol.toStringTag,{value:"Module"}));export{re as _};
|