niucloud-admin/niucloud/public/admin/assets/edit-form-submit-e7077515.js
全栈小学生 eff269ab88 up
2025-09-20 09:12:11 +08:00

2 lines
5.3 KiB
JavaScript

import{d as v,k as n,h as y,c as S,J as b,ae as _,u as e,a as d,e as l,w as s,i as C,t as i,aO as V,b as E,F as T,af as P,ag as U,G as N,H as R,D as k,b6 as F,aA as D,b8 as M}from"./index-9f163f98.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-700f9c59.js";const O={class:"content-wrap"},j={class:"edit-attr-item-wrap"},G={class:"text-sm text-gray-400 mb-[10px] leading-[1.4]"},I={class:"edit-attr-item-wrap"},A={class:"mb-[10px]"},H={class:"edit-attr-item-wrap"},J={class:"mb-[10px]"},$={class:"style-wrap"},q={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",O,[d("div",j,[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",G,i(e(n)("btnTipsThree")),1)]),_:1},8,["label"])]),_:1})]),d("div",I,[d("h3",A,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",H,[d("h3",J,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",$,[d("div",q,[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 _};