import{_ as e}from"./uni-easyinput.D7PPGXPC.js";import{a2 as a,r as l,T as o,f as t,g as p,o as u,h as r,w as s,i,a as n,x as d,z as f}from"./index-DXvjTqMr.js";import{_ as m}from"./uni-popup-dialog.CT6ZRSND.js";import{_ as c}from"./uni-popup.BpvJsdxE.js";import{_ as v}from"./_plugin-vue_export-helper.BCo6x5W8.js";const _=v({__name:"index",props:{configData:{type:Object,default:()=>({}),required:!0}},emits:["change"],setup(v,{expose:_,emit:x}){const g=v,h=x,{configData:y}=a(g),C=l(null),j=l(""),b=()=>{C.value.close()},k=()=>{if(!j.value)return d.error("输入的内容不能为空"),!1;const e={value:j.value,type:y.value.type};h("change",e),j.value="",b()};return o(y,((e,a)=>{e.text&&(j.value=e.text)}),{deep:!1,immediate:!0}),_({popupOpen:e=>{C.value.open(),e&&(j.value=e)}}),(a,l)=>{const o=t(p("uni-easyinput"),e),d=t(p("uni-popup-dialog"),m),v=t(p("uni-popup"),c),_=f;return u(),r(_,null,{default:s((()=>[i(v,{ref_key:"popupRef",ref:C,type:"dialog","mask-click":!0},{default:s((()=>[i(d,{ref:"inputClose",mode:"input","before-close":!0,title:n(y).title,value:n(y).value,onClose:b,onConfirm:k},{default:s((()=>[i(o,{modelValue:j.value,"onUpdate:modelValue":l[0]||(l[0]=e=>j.value=e),type:"textarea",inputBorder:!1,maxlength:255,placeholder:n(y).placeholder,placeholderStyle:"color: #C0C4CC;font-size: 30rpx;"},null,8,["modelValue","placeholder"])])),_:1},8,["title","value"])])),_:1},512)])),_:1})}}},[["__scopeId","data-v-75f6bfa4"]]);export{_ as t};
