Blame view

pages/component/textarea/textarea.vue 714 Bytes
4b045f7c   刘淇   江阴初始化项目
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
  <template>
  	<view>
  		<page-head :title="title"></page-head>
  		<view class="uni-title uni-common-pl">输入区域高度自适应,不会出现滚动条</view>
  		<view class="uni-textarea">
  			<textarea @blur="bindTextAreaBlur" auto-height />
  			</view>
  			<view class="uni-title uni-common-pl">占位符字体是红色的textarea</view>
  			<view class="uni-textarea">
  				<textarea placeholder-style="color:#F76260" placeholder="占位符字体是红色的"/>
  			</view>
  		</view>
  </template>
  <script>
  	export default {
  		data() {
  			return {
  				title: 'textarea',
  				focus: false
  			}
  		},
  		methods: {
  			bindTextAreaBlur: function (e) {
  				console.log(e.detail.value)
  			}
  		}
  	}
  </script>
  
  <style>
  </style>