Files
FirstUI-vue/pages/component/form/textarea/textarea.vue
2023-08-17 21:28:49 +08:00

63 lines
2.0 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!--本文件由FirstUI授权予新疆天衡创新研究院有限公司手机号 1 861 4 0 72 5 49身份证尾号5A07X5专用请尊重知识产权勿私下传播违者追究法律责任-->
<template>
<view class="fui-wrap">
<view class="fui-page__hd">
<view class="fui-page__title">Textarea</view>
<view class="fui-page__desc">Textarea 多行输入框该组件是对原生textarea组件的增强内置了常用布局样式同时包含 textarea 所有功能</view>
</view>
<view class="fui-page__bd">
<view class="fui-section__title">基本使用</view>
<fui-textarea placeholder="请输入内容"></fui-textarea>
<view class="fui-section__title">带标题</view>
<fui-textarea flexStart label="标题" placeholder="请输入内容"></fui-textarea>
<view class="fui-section__title">调整高度必填</view>
<!-- #ifndef MP-TOUTIAO -->
<fui-textarea required height="40rpx" label="标题" placeholder="请输入内容"></fui-textarea>
<!-- #endif -->
<!-- #ifdef MP-TOUTIAO -->
<fui-textarea required height="40rpx" label="标题"></fui-textarea>
<!-- #endif -->
<view class="fui-section__title">输入长度计数双向绑定</view>
<fui-textarea isCounter placeholder="请输入内容" v-model="text"></fui-textarea>
<view class="fui-section__title">带边框</view>
<view class="fui-textarea__box">
<fui-textarea textareaBorder placeholder="请输入简介"></fui-textarea>
</view>
<view class="fui-section__title">设置圆角</view>
<view class="fui-textarea__box">
<fui-textarea :radius="24" textareaBorder border-color="#FFB703" background-color="#f8f8f8" placeholder="请输入内容"></fui-textarea>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
text: ''
}
},
methods: {
}
}
</script>
<style>
page {
font-weight: normal;
}
.fui-section__title {
margin-left: 32rpx;
}
.fui-textarea__box {
width: 100%;
padding: 32rpx;
box-sizing: border-box;
background-color: #FFFFFF;
}
</style>