优化
This commit is contained in:
@@ -17,7 +17,8 @@ Page({
|
||||
list_2: [],
|
||||
show: false,
|
||||
add_message: "",
|
||||
current_words_type: 1
|
||||
current_words_type: 1,
|
||||
focus: true
|
||||
},
|
||||
onTabChange(e){
|
||||
this.setData({
|
||||
@@ -68,5 +69,9 @@ Page({
|
||||
show: false,
|
||||
});
|
||||
},
|
||||
|
||||
onInput(){
|
||||
this.setData({
|
||||
focus: true
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -1,5 +1,5 @@
|
||||
<te-nav-bar navbar-data='{{navbarData}}' ></te-nav-bar>
|
||||
<view class="container" style="height: calc(100vh - 96rpx - {{height}}px);">
|
||||
<view class="container">
|
||||
|
||||
<t-tabs
|
||||
defaultValue="{{ current_words_type }}"
|
||||
@@ -45,7 +45,11 @@
|
||||
type="textarea"
|
||||
placeholder="请输入文字"
|
||||
autosize
|
||||
maxlength="500"
|
||||
custom-style="height: 100%;"
|
||||
border="{{ false }}"
|
||||
focus="{{focus}}"
|
||||
bindtap="onInput"
|
||||
/>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
page{
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.container{
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
.item_list{
|
||||
width: 92vw;
|
||||
|
||||
Reference in New Issue
Block a user