pages-component-text-text.C_dd72T5.js 1.8 KB

1
  1. import{_ as e,b as t,d as a,p as i,w as n,H as s,i as d,o as l,f as r,k as o,t as u,C as p,R as h}from"./index-2PZN6pGH.js";const c=e({data:()=>({title:"text",texts:["HBuilder,400万开发者选择的IDE","MUI,轻巧、漂亮的前端开源框架","wap2app,M站快速转换原生体验的App","5+Runtime,为HTML5插上原生的翅膀","HBuilderX,轻巧、极速,极客编辑器","uni-app,终极跨平台方案","HBuilder,400万开发者选择的IDE","MUI,轻巧、漂亮的前端开源框架","wap2app,M站快速转换原生体验的App","5+Runtime,为HTML5插上原生的翅膀","HBuilderX,轻巧、极速,极客编辑器","uni-app,终极跨平台方案","......"],text:"",canAdd:!0,canRemove:!1,extraLine:[]}),methods:{add:function(e){this.extraLine.push(this.texts[this.extraLine.length%12]),this.text=this.extraLine.join("\n"),this.canAdd=this.extraLine.length<12,this.canRemove=this.extraLine.length>0},remove:function(e){this.extraLine.length>0&&(this.extraLine.pop(),this.text=this.extraLine.join("\n"),this.canAdd=this.extraLine.length<12,this.canRemove=this.extraLine.length>0)}}},[["render",function(e,c,x,m,f,L){const _=t(a("page-head"),s),v=p,b=d,g=h;return l(),i(b,null,{default:n((()=>[r(_,{title:f.title},null,8,["title"]),r(b,{class:"uni-padding-wrap uni-common-mt"},{default:n((()=>[r(b,{class:"text-box","scroll-y":"true"},{default:n((()=>[r(v,null,{default:n((()=>[o(u(f.text),1)])),_:1})])),_:1}),r(b,{class:"uni-btn-v"},{default:n((()=>[r(g,{type:"primary",disabled:!f.canAdd,onClick:L.add},{default:n((()=>[o("add line")])),_:1},8,["disabled","onClick"]),r(g,{type:"warn",disabled:!f.canRemove,onClick:L.remove},{default:n((()=>[o("remove line")])),_:1},8,["disabled","onClick"])])),_:1})])),_:1})])),_:1})}],["__scopeId","data-v-96d11b5f"]]);export{c as default};