Browse Source

修改textarea问题

dmb
douzhuo 1 year ago
parent
commit
b03eb6547f
2 changed files with 18 additions and 5 deletions
  1. +11
    -3
      pages/mine/details.vue
  2. +7
    -2
      pages/mine/details2.vue

+ 11
- 3
pages/mine/details.vue View File

@@ -137,15 +137,15 @@
<viwe class="tian-view-t1"></viwe>
<viwe class="tian-view-t2">常错词:</viwe>
<viwe class="tian-view-t3">
<u-input :auto-height="true" height="30" type="textarea" v-model="thewrongword" :disabled="isNum"
class="tian-input" placeholder="请输入" />
<u-input :auto-height="false" type="textarea" v-model="thewrongword" :disabled="isNum"
:custom-style="customStyle" placeholder="请输入" />
</viwe>
</view>
<view class="tian-view" style="margin-bottom: 74rpx;">
<viwe class="tian-view-t1"></viwe>
<viwe class="tian-view-t2">正确词:</viwe>
<viwe class="tian-view-t3">
<u-input class="tian-input" height="30" v-model="reswrongword" type="textarea" placeholder="请输入" />
<u-input :auto-height="false" :custom-style="customStyle" v-model="reswrongword" type="textarea" placeholder="请输入" />
</viwe>
</view>
</u-modal>
@@ -205,6 +205,12 @@
},
data() {
return {
customStyle: {
'width': '320rpx',
'font-size': '34rpx',
'height': '30rpx',
'border-bottom': '1px solid #ccc'
},
noClick: true,
recordPath: "",
customerId: "",
@@ -1121,6 +1127,7 @@

.tian-input {
width: 98%;
height: 30rpx;
font-size: 34rpx;
border: none;
}
@@ -1734,4 +1741,5 @@
/deep/ .u-model-title {
padding: 34rpx 0 16rpx !important;
}
</style>

+ 7
- 2
pages/mine/details2.vue View File

@@ -193,7 +193,7 @@
<!-- <textarea :auto-height="true" v-model="thewrongword" class="tian-input"
placeholder="请输入" /> -->
<u-input :auto-height="false" height="30" :disabled="isNum" type="textarea" v-model="thewrongword"
:border="false" class="tian-input" placeholder="请输入" />
:custom-style="customStyle" :border="false" class="tian-input" placeholder="请输入" />
</viwe>
</view>
<view class="tian-view" style="margin-bottom: 74rpx;">
@@ -201,7 +201,7 @@
<viwe class="tian-view-t2">正确词:</viwe>
<viwe class="tian-view-t3">
<u-input class="tian-input" height="30" type="textarea" v-model="reswrongword" :border="false"
placeholder="请输入" />
:custom-style="customStyle" placeholder="请输入" />
</viwe>
</view>
</u-modal>
@@ -474,6 +474,11 @@
},
data() {
return {
customStyle: {
'width': '320rpx',
'font-size': '34rpx',
'border-bottom': '1px solid #ccc'
},
noClick: true,
moreShow: false,
kehuyixiangcenterindex: 0,


Loading…
Cancel
Save