Textarea 多行文本框
cols 和设置宽度,通过 rows 设置高度
Textarea 多行文本框
>{}
<template>
<Textarea
v-model="the.text"
placeholder="请输入多行文本框"
spellcheck="false"
cols="300"
rows="20"
@onEvent="onRespEvent"
/>
</template>
<script>
export default {
setup() {
const $plus = window.$plus;
const { reactive } = $plus.vue;
const the = reactive({
text: '多行文本框\r 测试 \n',
});
const onRespEvent = (resp) => {
console.log('tree', resp);
};
return {
the,
onRespEvent,
};
},
};
</script>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Quick 文档 0.2.3