| 1 |
- import{c as e}from"./mobile.4dd9a46f.js";import{a,x as l,y as o,r as t,o as n,c as s,f as d,s as r}from"./vendor.36ea9f7d.js";import"./index.d26ed273.js";const{createDemo:c}=e("textarea");var u=c({setup(){const e=a({val0:"",val1:"初始数据"});setTimeout((function(){e.val1="异步测试数据,2秒"}),2e3);return{state:e,change:e=>{console.log("change: ",e)}}}});const m=r();l("data-v-1a007613");const h={class:"demo-nopading"},i=d("h2",null,"基础用法",-1),p=d("h2",null,"显示字数统计",-1),v=d("h2",null,"只读",-1);o();const g=m(((e,a,l,o,r,c)=>{const u=t("nut-textarea");return n(),s("div",h,[i,d(u,{modelValue:e.state.val0,"onUpdate:modelValue":a[1]||(a[1]=a=>e.state.val0=a),onChange:e.change,rows:"10",placeholder:"高度可拉伸",autosize:!0,label:"留言:"},null,8,["modelValue","onChange"]),p,d(u,{modelValue:e.state.val1,"onUpdate:modelValue":a[2]||(a[2]=a=>e.state.val1=a),onChange:e.change,rows:"5","limit-show":!0,"max-length":"20",placeholder:"设置输入五行",label:"留言:"},null,8,["modelValue","onChange"]),v,d(u,{readonly:"true",rows:"5",placeholder:"只读",label:"留言:"})])}));u.render=g,u.__scopeId="data-v-1a007613";export default u;
|