mirror of
https://gitee.com/TSpecific/tuniao-ui.git
synced 2026-06-06 19:44:38 +08:00
[fix] 修复输入框为select的时候,点击事件失效问题
This commit is contained in:
@@ -33,6 +33,15 @@
|
|||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
@confirm="onConfirm"
|
@confirm="onConfirm"
|
||||||
/>
|
/>
|
||||||
|
<view v-else>
|
||||||
|
|
||||||
|
<view
|
||||||
|
v-if="type === 'select'"
|
||||||
|
class="tn-input__text"
|
||||||
|
>
|
||||||
|
{{defaultValue}}
|
||||||
|
</view>
|
||||||
|
|
||||||
<input
|
<input
|
||||||
v-else
|
v-else
|
||||||
class="tn-input__input"
|
class="tn-input__input"
|
||||||
@@ -55,6 +64,8 @@
|
|||||||
@focus="onFocus"
|
@focus="onFocus"
|
||||||
@confirm="onConfirm"
|
@confirm="onConfirm"
|
||||||
/>
|
/>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<!-- 右边的icon -->
|
<!-- 右边的icon -->
|
||||||
<view class="tn-input__right-icon tn-flex tn-flex-col-center">
|
<view class="tn-input__right-icon tn-flex tn-flex-col-center">
|
||||||
@@ -377,6 +388,15 @@
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&__text {
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: $tn-font-color;
|
||||||
|
flex: 1;
|
||||||
|
min-width: 296rpx;
|
||||||
|
max-width: 100%;
|
||||||
|
text-overflow:clip;
|
||||||
|
}
|
||||||
|
|
||||||
&__textarea {
|
&__textarea {
|
||||||
width: auto;
|
width: auto;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
|
|||||||
Reference in New Issue
Block a user