vuv-ui 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/button/Data.vue +0 -1
- package/src/components/collapse/Data.vue +1 -1
- package/src/components/collapse/View.vue +1 -1
- package/src/components/collapse/index.ts +4 -4
- package/src/components/index.ts +18 -1
- package/src/components/numberBxo/Data.vue +1 -1
- package/src/components/numberBxo/View.vue +1 -1
- package/src/components/numberBxo/index.ts +4 -4
- package/src/components/textarea/Data.vue +1 -1
- package/src/components/textarea/View.vue +2 -2
- package/src/components/textarea/index.ts +4 -4
- package/vuv-ui/style.css +1 -1
- package/vuv-ui/vuv-ui.es.js +606 -595
- package/vuv-ui/vuv-ui.umd.js +1 -1
package/vuv-ui/vuv-ui.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(u,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("uv-ui"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","uv-ui","element-plus"],e):(u=typeof globalThis<"u"?globalThis:u||self,e(u.VuvUi={},u.Vue,u.UvUi,u.ElementPlus))})(this,function(u,e,w,o){"use strict";const E=e.defineComponent({name:"uvuiButtonView"}),U=e.defineComponent({...E,props:{data:{type:Object,default:()=>{}}},setup(d){return(r,t)=>d.data&&d.data.options?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button_box",{plain:d.data.options.plain}]),style:e.normalizeStyle({"justify-content":d.data.options.position})},[e.createVNode(e.unref(w.uvButton),{type:d.data.options.type||"primary",bgColor:d.data.options.color,disabled:d.data.options.disabled,color:d.data.options.textColor,round:d.data.options.shape=="circle",square:d.data.options.shape=="square",size:d.data.options.size,loading:d.data.options.loading,icon:d.data.options.icon,style:e.normalizeStyle({width:d.data.options.width+"px",height:d.data.options.height+"px"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.data.options.text||"按钮"),1)]),_:1},8,["type","bgColor","disabled","color","round","square","size","loading","icon","style"])],6)):e.createCommentVNode("",!0)}}),ge="",N=(d,r)=>{const t=d.__vccOpts||d;for(const[m,s]of r)t[m]=s;return t},h=N(U,[["__scopeId","data-v-ddf92851"]]),k={key:0,class:"banner-content"},B=e.defineComponent({name:"uvuiButtonData"}),T=e.defineComponent({...B,props:{data:{type:Object,default:()=>({})}},setup(d){const r=d,t=e.ref(),m=e.ref(),s=e.ref(!1);return e.onMounted(()=>{console.log(r.data,r,"参数接收"),r.data&&(m.value=r.data.data,t.value=r.data.options,s.value=!0)}),(V,l)=>s.value?(e.openBlock(),e.createElementBlock("div",k,[e.createVNode(e.unref(o.ElForm),{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElFormItem),{label:"显示边框"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElSwitch),{modelValue:t.value.hairline,"onUpdate:modelValue":l[0]||(l[0]=n=>t.value.hairline=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElInputNumber),{modelValue:t.value.width,"onUpdate:modelValue":l[1]||(l[1]=n=>t.value.width=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"高度"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElInputNumber),{modelValue:t.value.height,"onUpdate:modelValue":l[2]||(l[2]=n=>t.value.height=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"主题颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElSelect),{modelValue:t.value.type,"onUpdate:modelValue":l[3]||(l[3]=n=>t.value.type=n),placeholder:"请选择",style:{width:"180px"}},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElOption),{label:"primary",value:"primary"}),e.createVNode(e.unref(o.ElOption),{label:"success",value:"success"}),e.createVNode(e.unref(o.ElOption),{label:"info",value:"info"}),e.createVNode(e.unref(o.ElOption),{label:"warning",value:"warning"}),e.createVNode(e.unref(o.ElOption),{label:"error",value:"error"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"大小"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElRadioGroup),{modelValue:t.value.size,"onUpdate:modelValue":l[4]||(l[4]=n=>t.value.size=n)},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElRadioButton),{label:"normal"},{default:e.withCtx(()=>[e.createTextVNode("normal")]),_:1}),e.createVNode(e.unref(o.ElRadioButton),{label:"medium"},{default:e.withCtx(()=>[e.createTextVNode("medium")]),_:1}),e.createVNode(e.unref(o.ElRadioButton),{label:"mini"},{default:e.withCtx(()=>[e.createTextVNode("mini")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"按钮位置"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElRadioGroup),{modelValue:t.value.position,"onUpdate:modelValue":l[5]||(l[5]=n=>t.value.position=n)},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElRadioButton),{label:"left"},{default:e.withCtx(()=>[e.createTextVNode("居左")]),_:1}),e.createVNode(e.unref(o.ElRadioButton),{label:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中")]),_:1}),e.createVNode(e.unref(o.ElRadioButton),{label:"right"},{default:e.withCtx(()=>[e.createTextVNode("居右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"形状"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElRadioGroup),{modelValue:t.value.shape,"onUpdate:modelValue":l[6]||(l[6]=n=>t.value.shape=n)},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElRadioButton),{label:"square"},{default:e.withCtx(()=>[e.createTextVNode("square")]),_:1}),e.createVNode(e.unref(o.ElRadioButton),{label:"circle"},{default:e.withCtx(()=>[e.createTextVNode("circle")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"镂空"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElSwitch),{modelValue:t.value.plain,"onUpdate:modelValue":l[7]||(l[7]=n=>t.value.plain=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"禁用"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElSwitch),{modelValue:t.value.disabled,"onUpdate:modelValue":l[8]||(l[8]=n=>t.value.disabled=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"铺满"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElSwitch),{modelValue:t.value.fill,"onUpdate:modelValue":l[9]||(l[9]=n=>t.value.fill=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"loading图标"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElSwitch),{modelValue:t.value.loading,"onUpdate:modelValue":l[10]||(l[10]=n=>t.value.loading=n)},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"加载中文字"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElInput),{modelValue:t.value.loadingText,"onUpdate:modelValue":l[11]||(l[11]=n=>t.value.loadingText=n),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"开放能力"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElSelect),{modelValue:t.value.openType,"onUpdate:modelValue":l[12]||(l[12]=n=>t.value.openType=n),placeholder:"请选择",style:{width:"180px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElOption),{label:"跳转页面",value:"navigateTo"}),e.createVNode(e.unref(o.ElOption),{label:"获取用户信息",value:"getUserInfo"}),e.createVNode(e.unref(o.ElOption),{label:"联系客服",value:"contact"}),e.createVNode(e.unref(o.ElOption),{label:"获取手机号",value:"getPhoneNumber"}),e.createVNode(e.unref(o.ElOption),{label:"打开授权设置",value:"openSetting"}),e.createVNode(e.unref(o.ElOption),{label:"获取用户头像",value:"chooseAvatar"}),e.createVNode(e.unref(o.ElOption),{label:"意见反馈",value:"feedback"}),e.createVNode(e.unref(o.ElOption),{label:"分享",value:"share"}),e.createVNode(e.unref(o.ElOption),{label:"自定义",value:"customize"})]),_:1},8,["modelValue"])]),_:1}),t.value.openType=="navigateTo"?(e.openBlock(),e.createBlock(e.unref(o.ElFormItem),{key:0,label:"页面路径"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElInput),{modelValue:t.value.pagePath,"onUpdate:modelValue":l[13]||(l[13]=n=>t.value.pagePath=n),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),t.value.openType=="navigateTo"?(e.openBlock(),e.createBlock(e.unref(o.ElFormItem),{key:1,label:"tabbar页面"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElSwitch),{modelValue:t.value.isTabBar,"onUpdate:modelValue":l[14]||(l[14]=n=>t.value.isTabBar=n)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(o.ElFormItem),{label:"按钮文字"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElInput),{modelValue:t.value.text,"onUpdate:modelValue":l[15]||(l[15]=n=>t.value.text=n),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"按钮颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElColorPicker),{modelValue:t.value.color,"onUpdate:modelValue":l[16]||(l[16]=n=>t.value.color=n),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"文字颜色"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElColorPicker),{modelValue:t.value.textColor,"onUpdate:modelValue":l[17]||(l[17]=n=>t.value.textColor=n),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(e.unref(o.ElFormItem),{label:"自定义样式"},{default:e.withCtx(()=>[e.createVNode(e.unref(o.ElInput),{modelValue:t.value.customStyle,"onUpdate:modelValue":l[18]||(l[18]=n=>t.value.customStyle=n),style:{width:"240px"},placeholder:"分号分隔,如width: 100px;height: 50px;",type:"textarea",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}),Ee="",y=N(T,[["__scopeId","data-v-3a40ecc1"]]),I={type:"uvui-button",name:"按钮",icon:"Postcard",fontIcon:"icon-shangpinanniu_changtiaoanniu",page:"index,activity",viewCom:h,editCom:y,limit:0},S={data:{},options:{width:"100",height:"45",hairline:!0,type:"primary",size:"normal",shape:"square",position:"left",plain:!1,disabled:!1,loading:!1,loadingText:"",openType:"navigateTo",pagePath:"",isTabBar:!1,text:"",textColor:"#ffffff",icon:"",color:"",customStyle:"",fill:!0}},O={key:0,class:"textarea_box"},F=e.defineComponent({name:"TextareaView"}),z=e.defineComponent({...F,props:{data:{type:Object,default:()=>{}}},setup(d){const r=e.ref("");return(t,m)=>{const s=e.resolveComponent("el-input");return d.data&&d.data.options?(e.openBlock(),e.createElementBlock("div",O,[e.createVNode(s,{modelValue:r.value,"onUpdate:modelValue":m[0]||(m[0]=V=>r.value=V),placeholder:d.data.options.placeholder||"请输入",style:e.normalizeStyle({width:"100%",height:d.data.options.height}),"show-word-limit":d.data.options.count,autosize:d.data.options.autoHeight,maxlength:d.data.options.maxlength,rows:2,type:"textarea"},null,8,["modelValue","placeholder","style","show-word-limit","autosize","maxlength"])])):e.createCommentVNode("",!0)}}}),Ue="",$=N(z,[["__scopeId","data-v-b4db5b9f"]]),D={key:0,class:"banner-content"},L=e.defineComponent({name:"TextareaData"}),M=e.defineComponent({...L,props:{data:{type:Object,default:()=>{}}},setup(d){const r=d,t=e.ref(),m=e.ref(),s=e.ref(!1);return e.onMounted(()=>{console.log(r.data,r,"参数接收"),r.data&&(m.value=r.data.data,t.value=r.data.options,s.value=!0)}),(V,l)=>{const n=e.resolveComponent("el-input"),i=e.resolveComponent("el-form-item"),p=e.resolveComponent("el-input-number"),f=e.resolveComponent("el-switch"),x=e.resolveComponent("el-radio-button"),C=e.resolveComponent("el-radio-group"),_=e.resolveComponent("el-form");return s.value?(e.openBlock(),e.createElementBlock("div",D,[e.createVNode(_,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"空值占位内容"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.placeholder,"onUpdate:modelValue":l[0]||(l[0]=a=>t.value.placeholder=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.height,"onUpdate:modelValue":l[1]||(l[1]=a=>t.value.height=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"右下角按钮文字"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.confirmType,"onUpdate:modelValue":l[2]||(l[2]=a=>t.value.confirmType=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示字数统计"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.value.count,"onUpdate:modelValue":l[3]||(l[3]=a=>t.value.count=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"自动增高"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.value.autoHeight,"onUpdate:modelValue":l[4]||(l[4]=a=>t.value.autoHeight=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示完成按钮"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.value.showConfirmBar,"onUpdate:modelValue":l[5]||(l[5]=a=>t.value.showConfirmBar=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"输入长度"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.maxlength,"onUpdate:modelValue":l[6]||(l[6]=a=>t.value.maxlength=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"是否铺满"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.value.fill,"onUpdate:modelValue":l[7]||(l[7]=a=>t.value.fill=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"边框"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:t.value.size,"onUpdate:modelValue":l[8]||(l[8]=a=>t.value.size=a)},{default:e.withCtx(()=>[e.createVNode(x,{label:"surround"},{default:e.withCtx(()=>[e.createTextVNode("四周边框")]),_:1}),e.createVNode(x,{label:"none"},{default:e.withCtx(()=>[e.createTextVNode("无边框")]),_:1}),e.createVNode(x,{label:"bottom"},{default:e.withCtx(()=>[e.createTextVNode("底部边框")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"自定义样式"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.customStyle,"onUpdate:modelValue":l[9]||(l[9]=a=>t.value.customStyle=a),style:{width:"240px"},placeholder:"分号分隔,如width: 100px;height: 50px;",type:"textarea",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),ke="",j={type:"uvui-textarea",name:"文本域",icon:"Textarea",fontIcon:"icon-24gl-grid",page:"index,activity",viewCom:$,editCom:N(M,[["__scopeId","data-v-91c833b3"]]),limit:0},R={type:"uvui-textarea",data:{},options:{placeholder:"请输入",height:"70",confirmType:"done",count:!1,autoHeight:!1,showConfirmBar:!1,maxlength:140,border:"surround",customStyle:"",fill:!0}},q=e.defineComponent({name:"NumberBoxView"}),W=e.defineComponent({...q,props:{data:{type:Object,default:()=>{}}},setup(d){const r=d,t=e.ref(1);return e.watch(()=>r.data.options,m=>{t.value=m}),(m,s)=>d.data&&d.data.options?(e.openBlock(),e.createElementBlock("div",{key:0,class:"number-box-wrapper",style:e.normalizeStyle({"justify-content":d.data.options.align})},[e.createVNode(e.unref(w.uvStepper),{min:d.data.options.min,modelValue:t.value,"onUpdate:modelValue":s[0]||(s[0]=V=>t.value=V),max:d.data.options.max,integer:d.data.options.integer,disabled:!0,inputWidth:d.data.options.inputWidth+"px",step:d.data.options.step},null,8,["min","modelValue","max","integer","inputWidth","step"])],4)):e.createCommentVNode("",!0)}}),Te="",G=N(W,[["__scopeId","data-v-d025175e"]]),H={key:0,class:"banner-content"},A=e.defineComponent({name:"NumberBoxData"}),X=e.defineComponent({...A,props:{data:{type:Object,default:()=>{}}},setup(d){const r=d,t=e.ref(),m=e.ref(),s=e.ref(!1);return e.onMounted(()=>{console.log(r.data,r,"参数接收"),r.data&&(m.value=r.data.data,t.value=r.data.options,s.value=!0)}),(V,l)=>{const n=e.resolveComponent("el-input-number"),i=e.resolveComponent("el-form-item"),p=e.resolveComponent("el-switch"),f=e.resolveComponent("el-color-picker"),x=e.resolveComponent("el-radio-button"),C=e.resolveComponent("el-radio-group"),_=e.resolveComponent("el-form");return s.value?(e.openBlock(),e.createElementBlock("div",H,[e.createVNode(_,{"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(i,{label:"当前值"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.value,"onUpdate:modelValue":l[0]||(l[0]=a=>t.value.value=a),min:t.value.min,max:t.value.max,step:t.value.step},null,8,["modelValue","min","max","step"])]),_:1}),e.createVNode(i,{label:"最小值"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.min,"onUpdate:modelValue":l[1]||(l[1]=a=>t.value.min=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"最大值"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.max,"onUpdate:modelValue":l[2]||(l[2]=a=>t.value.max=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"步长"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.step,"onUpdate:modelValue":l[3]||(l[3]=a=>t.value.step=a),min:0,precision:2},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"只能正整数"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.integer,"onUpdate:modelValue":l[4]||(l[4]=a=>t.value.integer=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"禁用操作"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.disabled,"onUpdate:modelValue":l[5]||(l[5]=a=>t.value.disabled=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"禁止输入框"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.disabledInput,"onUpdate:modelValue":l[6]||(l[6]=a=>t.value.disabledInput=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"输入框宽度(px)"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.inputWidth,"onUpdate:modelValue":l[7]||(l[7]=a=>t.value.inputWidth=a),min:20,max:200},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示减少按钮"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.showMinus,"onUpdate:modelValue":l[8]||(l[8]=a=>t.value.showMinus=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"显示增加按钮"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.showPlus,"onUpdate:modelValue":l[9]||(l[9]=a=>t.value.showPlus=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"小数位数"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.decimalLength,"onUpdate:modelValue":l[10]||(l[10]=a=>t.value.decimalLength=a),min:0,max:10},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"允许长按"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.longPress,"onUpdate:modelValue":l[11]||(l[11]=a=>t.value.longPress=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"文字颜色"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.value.color,"onUpdate:modelValue":l[12]||(l[12]=a=>t.value.color=a),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"按钮大小(px)"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.value.buttonSize,"onUpdate:modelValue":l[13]||(l[13]=a=>t.value.buttonSize=a),min:20,max:100},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:t.value.bgColor,"onUpdate:modelValue":l[14]||(l[14]=a=>t.value.bgColor=a),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"禁用增加按钮"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.disablePlus,"onUpdate:modelValue":l[15]||(l[15]=a=>t.value.disablePlus=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"禁用减少按钮"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.disableMinus,"onUpdate:modelValue":l[16]||(l[16]=a=>t.value.disableMinus=a)},null,8,["modelValue"])]),_:1}),e.createVNode(i,{label:"对齐方式"},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:t.value.align,"onUpdate:modelValue":l[17]||(l[17]=a=>t.value.align=a)},{default:e.withCtx(()=>[e.createVNode(x,{label:"left"},{default:e.withCtx(()=>[e.createTextVNode("左对齐")]),_:1}),e.createVNode(x,{label:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中对齐")]),_:1}),e.createVNode(x,{label:"right"},{default:e.withCtx(()=>[e.createTextVNode("右对齐")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(i,{label:"铺满"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.fill,"onUpdate:modelValue":l[18]||(l[18]=a=>t.value.fill=a)},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),Ie="",J={type:"uvui-numberBox",name:"步进器",icon:"Postcard",fontIcon:"icon-shangpinanniu_changtiaoanniu",page:"index,activity",viewCom:G,editCom:N(X,[["__scopeId","data-v-0130b026"]]),limit:0},K={data:{},options:{value:1,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:0,longPress:!0,color:"#323233",buttonSize:30,bgColor:"#EBECEE",disablePlus:!1,disableMinus:!1,align:"left",fill:!1}},Q={key:0,class:"cell_box"},Y=e.defineComponent({name:"CollapseView"}),Z=e.defineComponent({...Y,props:{data:{type:Object,default:()=>{}}},setup(d){const r=d,t=e.ref([]),m=e.computed(()=>r.data.data&&r.data.data.list?(t.value=r.data.data.list.map((s,V)=>s.title+"_"+V),r.data.data.list):[]);return(s,V)=>d.data&&d.data.options?(e.openBlock(),e.createElementBlock("div",Q,[e.createVNode(e.unref(w.uvCollapse),{modelValue:t.value,"onUpdate:modelValue":V[0]||(V[0]=l=>t.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(m),(l,n)=>(e.openBlock(),e.createBlock(e.unref(w.uvCollapseItem),{key:n,name:l.title+"_"+n},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),right:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(l.label),1)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)}}),Oe="",P=N(Z,[["__scopeId","data-v-cd08eed6"]]),b=d=>(e.pushScopeId("data-v-c904acd0"),d=d(),e.popScopeId(),d),v={key:0,class:"banner-content"},ee={class:"l-info"},te={class:"mt-5px"},le=b(()=>e.createElementVNode("span",null,"标题:",-1)),ae={class:"mt-5px"},oe=b(()=>e.createElementVNode("span",null,"内容:",-1)),de={class:"mt-5px"},ne=b(()=>e.createElementVNode("span",null,"描述:",-1)),re={class:"mt-5px"},ie=b(()=>e.createElementVNode("span",null,"禁用:",-1)),se={class:"mt-5px"},me=b(()=>e.createElementVNode("span",null,"右箭头:",-1)),pe={class:"mt-5px"},ce=b(()=>e.createElementVNode("span",null,"点击反馈:",-1)),Ve={class:"mt-5px"},ue=b(()=>e.createElementVNode("span",null,"显示内边框:",-1)),fe={class:"mt-5px"},xe=e.defineComponent({name:"CollapseData"}),Ne=e.defineComponent({...xe,props:{data:{type:Object,default:()=>{}}},setup(d){const r=d,t=e.ref(),m=e.ref(),s=e.ref(!1),V=n=>{m.value.list.splice(n,1)},l=()=>{m.value.list.push({title:"面板标题",value:"右侧内容",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0})};return e.onMounted(()=>{r.data&&(m.value=r.data.data,t.value=r.data.options,s.value=!0)}),(n,i)=>{const p=e.resolveComponent("el-switch"),f=e.resolveComponent("el-form-item"),x=e.resolveComponent("el-form"),C=e.resolveComponent("el-button"),_=e.resolveComponent("el-input");return s.value?(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(x,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(f,{label:"是否铺满"},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:t.value.fill,"onUpdate:modelValue":i[0]||(i[0]=a=>t.value.fill=a)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(C,{type:"primary",onClick:l,class:"mt-10px"},{default:e.withCtx(()=>[e.createTextVNode("添加项")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value.list,(a,g)=>(e.openBlock(),e.createElementBlock("div",{class:"item-list",key:g},[e.createElementVNode("div",ee,[e.createElementVNode("div",te,[le,e.createVNode(_,{modelValue:a.title,"onUpdate:modelValue":c=>a.title=c,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",ae,[oe,e.createVNode(_,{modelValue:a.value,"onUpdate:modelValue":c=>a.value=c,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",de,[ne,e.createVNode(_,{modelValue:a.label,"onUpdate:modelValue":c=>a.label=c,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",re,[ie,e.createVNode(p,{modelValue:a.disabled,"onUpdate:modelValue":c=>a.disabled=c},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",se,[me,e.createVNode(p,{modelValue:a.isLink,"onUpdate:modelValue":c=>a.isLink=c},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",pe,[ce,e.createVNode(p,{modelValue:a.clickable,"onUpdate:modelValue":c=>a.clickable=c},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",Ve,[ue,e.createVNode(p,{modelValue:a.border,"onUpdate:modelValue":c=>a.border=c},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",fe,[e.createVNode(C,{type:"danger",onClick:c=>V(g),size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])])])]))),128))])):e.createCommentVNode("",!0)}}}),Fe="",be={type:"uvui-collapse",name:"折叠面板",icon:"Postcard",fontIcon:"icon-danyuange1",page:"index,activity",viewCom:P,editCom:N(Ne,[["__scopeId","data-v-c904acd0"]]),limit:0},_e={data:{list:[{title:"面板标题",value:"右侧内容",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0}]},options:{fill:!1}},Ce={buttonTypeList:I,textareaTypeList:j,numberBoxTypeList:J,collapseTypeList:be},we={buttonOptions:S,textareaOptions:R,numberBoxOptions:K,collapseOptions:_e},he=[y,h],ye={install(d){he.forEach(r=>{d.component(r.name,r)})}};u.default=ye,u.uvUIOptions=we,u.uvUiList=Ce,Object.defineProperties(u,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("uv-ui")):typeof define=="function"&&define.amd?define(["exports","vue","uv-ui"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N.VuvUi={},N.Vue,N.UvUi))})(this,function(N,e,h){"use strict";const I=e.defineComponent({name:"uvuiButtonView"}),z=e.defineComponent({...I,props:{data:{type:Object,default:()=>{}}},setup(a){return(n,t)=>a.data&&a.data.options?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button_box",{plain:a.data.options.plain}]),style:e.normalizeStyle({"justify-content":a.data.options.position})},[e.createVNode(e.unref(h.uvButton),{type:a.data.options.type||"primary",bgColor:a.data.options.color,disabled:a.data.options.disabled,color:a.data.options.textColor,round:a.data.options.shape=="circle",square:a.data.options.shape=="square",size:a.data.options.size,loading:a.data.options.loading,icon:a.data.options.icon,style:e.normalizeStyle({width:a.data.options.width+"px",height:a.data.options.height+"px"})},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.data.options.text||"按钮"),1)]),_:1},8,["type","bgColor","disabled","color","round","square","size","loading","icon","style"])],6)):e.createCommentVNode("",!0)}}),Te="",b=(a,n)=>{const t=a.__vccOpts||a;for(const[p,m]of n)t[p]=m;return t},y=b(z,[["__scopeId","data-v-ddf92851"]]),$={key:0,class:"banner-content"},P=e.defineComponent({name:"uvuiButtonData"}),D=e.defineComponent({...P,props:{data:{type:Object,default:()=>({})}},setup(a){const n=a,t=e.ref(),p=e.ref(),m=e.ref(!1);return e.onMounted(()=>{console.log(n.data,n,"参数接收"),n.data&&(p.value=n.data.data,t.value=n.data.options,m.value=!0)}),(f,l)=>{const r=e.resolveComponent("el-switch"),d=e.resolveComponent("el-form-item"),c=e.resolveComponent("el-input-number"),s=e.resolveComponent("el-option"),_=e.resolveComponent("el-select"),V=e.resolveComponent("el-radio-button"),x=e.resolveComponent("el-radio-group"),o=e.resolveComponent("el-input"),w=e.resolveComponent("el-color-picker"),u=e.resolveComponent("el-form");return m.value?(e.openBlock(),e.createElementBlock("div",$,[e.createVNode(u,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"显示边框"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.hairline,"onUpdate:modelValue":l[0]||(l[0]=i=>t.value.hairline=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"宽度"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.width,"onUpdate:modelValue":l[1]||(l[1]=i=>t.value.width=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.height,"onUpdate:modelValue":l[2]||(l[2]=i=>t.value.height=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"主题颜色"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.value.type,"onUpdate:modelValue":l[3]||(l[3]=i=>t.value.type=i),placeholder:"请选择",style:{width:"180px"}},{default:e.withCtx(()=>[e.createVNode(s,{label:"primary",value:"primary"}),e.createVNode(s,{label:"success",value:"success"}),e.createVNode(s,{label:"info",value:"info"}),e.createVNode(s,{label:"warning",value:"warning"}),e.createVNode(s,{label:"error",value:"error"})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"大小"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:t.value.size,"onUpdate:modelValue":l[4]||(l[4]=i=>t.value.size=i)},{default:e.withCtx(()=>[e.createVNode(V,{label:"normal"},{default:e.withCtx(()=>[e.createTextVNode("normal")]),_:1}),e.createVNode(V,{label:"medium"},{default:e.withCtx(()=>[e.createTextVNode("medium")]),_:1}),e.createVNode(V,{label:"mini"},{default:e.withCtx(()=>[e.createTextVNode("mini")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"按钮位置"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:t.value.position,"onUpdate:modelValue":l[5]||(l[5]=i=>t.value.position=i)},{default:e.withCtx(()=>[e.createVNode(V,{label:"left"},{default:e.withCtx(()=>[e.createTextVNode("居左")]),_:1}),e.createVNode(V,{label:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中")]),_:1}),e.createVNode(V,{label:"right"},{default:e.withCtx(()=>[e.createTextVNode("居右")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"形状"},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:t.value.shape,"onUpdate:modelValue":l[6]||(l[6]=i=>t.value.shape=i)},{default:e.withCtx(()=>[e.createVNode(V,{label:"square"},{default:e.withCtx(()=>[e.createTextVNode("square")]),_:1}),e.createVNode(V,{label:"circle"},{default:e.withCtx(()=>[e.createTextVNode("circle")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"镂空"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.plain,"onUpdate:modelValue":l[7]||(l[7]=i=>t.value.plain=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.disabled,"onUpdate:modelValue":l[8]||(l[8]=i=>t.value.disabled=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"铺满"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.fill,"onUpdate:modelValue":l[9]||(l[9]=i=>t.value.fill=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"loading图标"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.loading,"onUpdate:modelValue":l[10]||(l[10]=i=>t.value.loading=i)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"加载中文字"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.value.loadingText,"onUpdate:modelValue":l[11]||(l[11]=i=>t.value.loadingText=i),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"开放能力"},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.value.openType,"onUpdate:modelValue":l[12]||(l[12]=i=>t.value.openType=i),placeholder:"请选择",style:{width:"180px"},clearable:""},{default:e.withCtx(()=>[e.createVNode(s,{label:"跳转页面",value:"navigateTo"}),e.createVNode(s,{label:"获取用户信息",value:"getUserInfo"}),e.createVNode(s,{label:"联系客服",value:"contact"}),e.createVNode(s,{label:"获取手机号",value:"getPhoneNumber"}),e.createVNode(s,{label:"打开授权设置",value:"openSetting"}),e.createVNode(s,{label:"获取用户头像",value:"chooseAvatar"}),e.createVNode(s,{label:"意见反馈",value:"feedback"}),e.createVNode(s,{label:"分享",value:"share"}),e.createVNode(s,{label:"自定义",value:"customize"})]),_:1},8,["modelValue"])]),_:1}),t.value.openType=="navigateTo"?(e.openBlock(),e.createBlock(d,{key:0,label:"页面路径"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.value.pagePath,"onUpdate:modelValue":l[13]||(l[13]=i=>t.value.pagePath=i),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),t.value.openType=="navigateTo"?(e.openBlock(),e.createBlock(d,{key:1,label:"tabbar页面"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.isTabBar,"onUpdate:modelValue":l[14]||(l[14]=i=>t.value.isTabBar=i)},null,8,["modelValue"])]),_:1})):e.createCommentVNode("",!0),e.createVNode(d,{label:"按钮文字"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.value.text,"onUpdate:modelValue":l[15]||(l[15]=i=>t.value.text=i),style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"按钮颜色"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:t.value.color,"onUpdate:modelValue":l[16]||(l[16]=i=>t.value.color=i),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"文字颜色"},{default:e.withCtx(()=>[e.createVNode(w,{modelValue:t.value.textColor,"onUpdate:modelValue":l[17]||(l[17]=i=>t.value.textColor=i),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"自定义样式"},{default:e.withCtx(()=>[e.createVNode(o,{modelValue:t.value.customStyle,"onUpdate:modelValue":l[18]||(l[18]=i=>t.value.customStyle=i),style:{width:"240px"},placeholder:"分号分隔,如width: 100px;height: 50px;",type:"textarea",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),Be="",g=b(D,[["__scopeId","data-v-b6cfa2c3"]]),L={type:"uvui-button",name:"按钮",icon:"Postcard",fontIcon:"icon-shangpinanniu_changtiaoanniu",page:"index,activity",viewCom:y,editCom:g,limit:0},O={data:{},options:{width:"100",height:"45",hairline:!0,type:"primary",size:"normal",shape:"square",position:"left",plain:!1,disabled:!1,loading:!1,loadingText:"",openType:"navigateTo",pagePath:"",isTabBar:!1,text:"",textColor:"#ffffff",icon:"",color:"",customStyle:"",fill:!0}},M={key:0,class:"textarea_box"},j=e.defineComponent({name:"uvuiTextareaView"}),q=e.defineComponent({...j,props:{data:{type:Object,default:()=>{}}},setup(a){const n=e.ref("");return(t,p)=>{const m=e.resolveComponent("el-input");return a.data&&a.data.options?(e.openBlock(),e.createElementBlock("div",M,[e.createVNode(m,{modelValue:n.value,"onUpdate:modelValue":p[0]||(p[0]=f=>n.value=f),placeholder:a.data.options.placeholder||"请输入",style:e.normalizeStyle({width:"100%",height:a.data.options.height}),"show-word-limit":a.data.options.count,autosize:a.data.options.autoHeight,maxlength:a.data.options.maxlength,rows:2,type:"textarea"},null,8,["modelValue","placeholder","style","show-word-limit","autosize","maxlength"])])):e.createCommentVNode("",!0)}}}),Ee="",U=b(q,[["__scopeId","data-v-2c9ba636"]]),W={key:0,class:"banner-content"},H=e.defineComponent({name:"uvuiTextareaData"}),A=e.defineComponent({...H,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref(),p=e.ref(),m=e.ref(!1);return e.onMounted(()=>{console.log(n.data,n,"参数接收"),n.data&&(p.value=n.data.data,t.value=n.data.options,m.value=!0)}),(f,l)=>{const r=e.resolveComponent("el-input"),d=e.resolveComponent("el-form-item"),c=e.resolveComponent("el-input-number"),s=e.resolveComponent("el-switch"),_=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-form");return m.value?(e.openBlock(),e.createElementBlock("div",W,[e.createVNode(x,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"空值占位内容"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.placeholder,"onUpdate:modelValue":l[0]||(l[0]=o=>t.value.placeholder=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"高度"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.height,"onUpdate:modelValue":l[1]||(l[1]=o=>t.value.height=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"右下角按钮文字"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.confirmType,"onUpdate:modelValue":l[2]||(l[2]=o=>t.value.confirmType=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示字数统计"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.count,"onUpdate:modelValue":l[3]||(l[3]=o=>t.value.count=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"自动增高"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.autoHeight,"onUpdate:modelValue":l[4]||(l[4]=o=>t.value.autoHeight=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示完成按钮"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.showConfirmBar,"onUpdate:modelValue":l[5]||(l[5]=o=>t.value.showConfirmBar=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"输入长度"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.maxlength,"onUpdate:modelValue":l[6]||(l[6]=o=>t.value.maxlength=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"是否铺满"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.fill,"onUpdate:modelValue":l[7]||(l[7]=o=>t.value.fill=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"边框"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:t.value.size,"onUpdate:modelValue":l[8]||(l[8]=o=>t.value.size=o)},{default:e.withCtx(()=>[e.createVNode(_,{label:"surround"},{default:e.withCtx(()=>[e.createTextVNode("四周边框")]),_:1}),e.createVNode(_,{label:"none"},{default:e.withCtx(()=>[e.createTextVNode("无边框")]),_:1}),e.createVNode(_,{label:"bottom"},{default:e.withCtx(()=>[e.createTextVNode("底部边框")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"自定义样式"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.customStyle,"onUpdate:modelValue":l[9]||(l[9]=o=>t.value.customStyle=o),style:{width:"240px"},placeholder:"分号分隔,如width: 100px;height: 50px;",type:"textarea",clearable:""},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),Se="",k=b(A,[["__scopeId","data-v-5fabf6f4"]]),F={type:"uvui-textarea",name:"文本域",icon:"Textarea",fontIcon:"icon-24gl-grid",page:"index,activity",viewCom:U,editCom:k,limit:0},G={type:"uvui-textarea",data:{},options:{placeholder:"请输入",height:"70",confirmType:"done",count:!1,autoHeight:!1,showConfirmBar:!1,maxlength:140,border:"surround",customStyle:"",fill:!0}},R=e.defineComponent({name:"uvuiNumberBoxView"}),X=e.defineComponent({...R,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref(1);return e.watch(()=>n.data.options,p=>{t.value=p}),(p,m)=>a.data&&a.data.options?(e.openBlock(),e.createElementBlock("div",{key:0,class:"number-box-wrapper",style:e.normalizeStyle({"justify-content":a.data.options.align})},[e.createVNode(e.unref(h.uvStepper),{min:a.data.options.min,modelValue:t.value,"onUpdate:modelValue":m[0]||(m[0]=f=>t.value=f),max:a.data.options.max,integer:a.data.options.integer,disabled:!0,inputWidth:a.data.options.inputWidth+"px",step:a.data.options.step},null,8,["min","modelValue","max","integer","inputWidth","step"])],4)):e.createCommentVNode("",!0)}}),Ie="",T=b(X,[["__scopeId","data-v-5e5cedd4"]]),J={key:0,class:"banner-content"},K=e.defineComponent({name:"uvuiNumberBoxData"}),Q=e.defineComponent({...K,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref(),p=e.ref(),m=e.ref(!1);return e.onMounted(()=>{console.log(n.data,n,"参数接收"),n.data&&(p.value=n.data.data,t.value=n.data.options,m.value=!0)}),(f,l)=>{const r=e.resolveComponent("el-input-number"),d=e.resolveComponent("el-form-item"),c=e.resolveComponent("el-switch"),s=e.resolveComponent("el-color-picker"),_=e.resolveComponent("el-radio-button"),V=e.resolveComponent("el-radio-group"),x=e.resolveComponent("el-form");return m.value?(e.openBlock(),e.createElementBlock("div",J,[e.createVNode(x,{"label-width":"120px"},{default:e.withCtx(()=>[e.createVNode(d,{label:"当前值"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.value,"onUpdate:modelValue":l[0]||(l[0]=o=>t.value.value=o),min:t.value.min,max:t.value.max,step:t.value.step},null,8,["modelValue","min","max","step"])]),_:1}),e.createVNode(d,{label:"最小值"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.min,"onUpdate:modelValue":l[1]||(l[1]=o=>t.value.min=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"最大值"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.max,"onUpdate:modelValue":l[2]||(l[2]=o=>t.value.max=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"步长"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.step,"onUpdate:modelValue":l[3]||(l[3]=o=>t.value.step=o),min:0,precision:2},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"只能正整数"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.integer,"onUpdate:modelValue":l[4]||(l[4]=o=>t.value.integer=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用操作"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.disabled,"onUpdate:modelValue":l[5]||(l[5]=o=>t.value.disabled=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁止输入框"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.disabledInput,"onUpdate:modelValue":l[6]||(l[6]=o=>t.value.disabledInput=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"输入框宽度(px)"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.inputWidth,"onUpdate:modelValue":l[7]||(l[7]=o=>t.value.inputWidth=o),min:20,max:200},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示减少按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.showMinus,"onUpdate:modelValue":l[8]||(l[8]=o=>t.value.showMinus=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"显示增加按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.showPlus,"onUpdate:modelValue":l[9]||(l[9]=o=>t.value.showPlus=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"小数位数"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.decimalLength,"onUpdate:modelValue":l[10]||(l[10]=o=>t.value.decimalLength=o),min:0,max:10},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"允许长按"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.longPress,"onUpdate:modelValue":l[11]||(l[11]=o=>t.value.longPress=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"文字颜色"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.color,"onUpdate:modelValue":l[12]||(l[12]=o=>t.value.color=o),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"按钮大小(px)"},{default:e.withCtx(()=>[e.createVNode(r,{modelValue:t.value.buttonSize,"onUpdate:modelValue":l[13]||(l[13]=o=>t.value.buttonSize=o),min:20,max:100},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"背景颜色"},{default:e.withCtx(()=>[e.createVNode(s,{modelValue:t.value.bgColor,"onUpdate:modelValue":l[14]||(l[14]=o=>t.value.bgColor=o),"show-alpha":""},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用增加按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.disablePlus,"onUpdate:modelValue":l[15]||(l[15]=o=>t.value.disablePlus=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"禁用减少按钮"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.disableMinus,"onUpdate:modelValue":l[16]||(l[16]=o=>t.value.disableMinus=o)},null,8,["modelValue"])]),_:1}),e.createVNode(d,{label:"对齐方式"},{default:e.withCtx(()=>[e.createVNode(V,{modelValue:t.value.align,"onUpdate:modelValue":l[17]||(l[17]=o=>t.value.align=o)},{default:e.withCtx(()=>[e.createVNode(_,{label:"left"},{default:e.withCtx(()=>[e.createTextVNode("左对齐")]),_:1}),e.createVNode(_,{label:"center"},{default:e.withCtx(()=>[e.createTextVNode("居中对齐")]),_:1}),e.createVNode(_,{label:"right"},{default:e.withCtx(()=>[e.createTextVNode("右对齐")]),_:1})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(d,{label:"铺满"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.fill,"onUpdate:modelValue":l[18]||(l[18]=o=>t.value.fill=o)},null,8,["modelValue"])]),_:1})]),_:1})])):e.createCommentVNode("",!0)}}}),ze="",B=b(Q,[["__scopeId","data-v-8c36631f"]]),Y={type:"uvui-numberBox",name:"步进器",icon:"Postcard",fontIcon:"icon-shangpinanniu_changtiaoanniu",page:"index,activity",viewCom:T,editCom:B,limit:0},Z={data:{},options:{value:1,min:1,max:Number.MAX_SAFE_INTEGER,step:1,integer:!1,disabled:!1,disabledInput:!1,inputWidth:35,showMinus:!0,showPlus:!0,decimalLength:0,longPress:!0,color:"#323233",buttonSize:30,bgColor:"#EBECEE",disablePlus:!1,disableMinus:!1,align:"left",fill:!1}},v={key:0,class:"cell_box"},ee=e.defineComponent({name:"uvuiCollapseView"}),te=e.defineComponent({...ee,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref([]),p=e.computed(()=>n.data.data&&n.data.data.list?(t.value=n.data.data.list.map((m,f)=>m.title+"_"+f),n.data.data.list):[]);return(m,f)=>a.data&&a.data.options?(e.openBlock(),e.createElementBlock("div",v,[e.createVNode(e.unref(h.uvCollapse),{modelValue:t.value,"onUpdate:modelValue":f[0]||(f[0]=l=>t.value=l)},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(p),(l,r)=>(e.openBlock(),e.createBlock(e.unref(h.uvCollapseItem),{key:r,name:l.title+"_"+r},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.title),1)]),right:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.value),1)]),default:e.withCtx(()=>[e.createTextVNode(" "+e.toDisplayString(l.label),1)]),_:2},1032,["name"]))),128))]),_:1},8,["modelValue"])])):e.createCommentVNode("",!0)}}),$e="",E=b(te,[["__scopeId","data-v-5dc143d6"]]),C=a=>(e.pushScopeId("data-v-127edc70"),a=a(),e.popScopeId(),a),le={key:0,class:"banner-content"},oe={class:"l-info"},ae={class:"mt-5px"},de=C(()=>e.createElementVNode("span",null,"标题:",-1)),ne={class:"mt-5px"},ie=C(()=>e.createElementVNode("span",null,"内容:",-1)),re={class:"mt-5px"},se=C(()=>e.createElementVNode("span",null,"描述:",-1)),me={class:"mt-5px"},ce=C(()=>e.createElementVNode("span",null,"禁用:",-1)),pe={class:"mt-5px"},ue=C(()=>e.createElementVNode("span",null,"右箭头:",-1)),Ve={class:"mt-5px"},fe=C(()=>e.createElementVNode("span",null,"点击反馈:",-1)),_e={class:"mt-5px"},xe=C(()=>e.createElementVNode("span",null,"显示内边框:",-1)),Ne={class:"mt-5px"},be=e.defineComponent({name:"uvuiCollapseData"}),Ce=e.defineComponent({...be,props:{data:{type:Object,default:()=>{}}},setup(a){const n=a,t=e.ref(),p=e.ref(),m=e.ref(!1),f=r=>{p.value.list.splice(r,1)},l=()=>{p.value.list.push({title:"面板标题",value:"右侧内容",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0})};return e.onMounted(()=>{n.data&&(p.value=n.data.data,t.value=n.data.options,m.value=!0)}),(r,d)=>{const c=e.resolveComponent("el-switch"),s=e.resolveComponent("el-form-item"),_=e.resolveComponent("el-form"),V=e.resolveComponent("el-button"),x=e.resolveComponent("el-input");return m.value?(e.openBlock(),e.createElementBlock("div",le,[e.createVNode(_,{"label-width":"100px"},{default:e.withCtx(()=>[e.createVNode(s,{label:"是否铺满"},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:t.value.fill,"onUpdate:modelValue":d[0]||(d[0]=o=>t.value.fill=o)},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(V,{type:"primary",onClick:l,class:"mt-10px"},{default:e.withCtx(()=>[e.createTextVNode("添加项")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value.list,(o,w)=>(e.openBlock(),e.createElementBlock("div",{class:"item-list",key:w},[e.createElementVNode("div",oe,[e.createElementVNode("div",ae,[de,e.createVNode(x,{modelValue:o.title,"onUpdate:modelValue":u=>o.title=u,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",ne,[ie,e.createVNode(x,{modelValue:o.value,"onUpdate:modelValue":u=>o.value=u,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",re,[se,e.createVNode(x,{modelValue:o.label,"onUpdate:modelValue":u=>o.label=u,style:{width:"180px"},placeholder:"请输入",clearable:""},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",me,[ce,e.createVNode(c,{modelValue:o.disabled,"onUpdate:modelValue":u=>o.disabled=u},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",pe,[ue,e.createVNode(c,{modelValue:o.isLink,"onUpdate:modelValue":u=>o.isLink=u},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",Ve,[fe,e.createVNode(c,{modelValue:o.clickable,"onUpdate:modelValue":u=>o.clickable=u},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",_e,[xe,e.createVNode(c,{modelValue:o.border,"onUpdate:modelValue":u=>o.border=u},null,8,["modelValue","onUpdate:modelValue"])]),e.createElementVNode("div",Ne,[e.createVNode(V,{type:"danger",onClick:u=>f(w),size:"small"},{default:e.withCtx(()=>[e.createTextVNode("删除")]),_:2},1032,["onClick"])])])]))),128))])):e.createCommentVNode("",!0)}}}),Pe="",S=b(Ce,[["__scopeId","data-v-127edc70"]]),we={type:"uvui-collapse",name:"折叠面板",icon:"Postcard",fontIcon:"icon-danyuange1",page:"index,activity",viewCom:E,editCom:S,limit:0},he={data:{list:[{title:"面板标题",value:"右侧内容",label:"",disabled:!1,isLink:!0,clickable:!0,border:!0}]},options:{fill:!1}},ye={buttonTypeList:L,textareaTypeList:F,numberBoxTypeList:Y,collapseTypeList:we},ge={buttonOptions:O,textareaOptions:G,numberBoxOptions:Z,collapseOptions:he},Ue=[g,y,k,U,B,T,S,E],ke={install(a){Ue.forEach(n=>{a.component(n.name,n)})}};N.default=ke,N.uvUIOptions=ge,N.uvUiList=ye,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|