Skip to content

Commit 4126a05

Browse files
committed
fixed: easyinput clearable bug when disabled
1 parent cd874fa commit 4126a05

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

uni_modules/uni-easyinput/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 0.0.13(2021-06-04)
2+
- 修复 disabled 状态可清出内容的 bug
13
## 0.0.12(2021-05-12)
24
- 新增 组件示例地址
35
## 0.0.11(2021-05-07)

uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
</template>
2424
<template v-else>
2525
<uni-icons class="content-clear-icon" :class="{'is-textarea-icon':type==='textarea'}" type="clear" :size="clearSize"
26-
v-if="clearable && val " color="#c0c4cc" @click="onClear"></uni-icons>
26+
v-if="clearable && val && !disabled" color="#c0c4cc" @click="onClear"></uni-icons>
2727
</template>
2828
<slot name="right"></slot>
2929
</view>

uni_modules/uni-easyinput/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "uni-easyinput",
33
"displayName": "uni-easyinput 增强输入框",
4-
"version": "0.0.12",
4+
"version": "0.0.13",
55
"description": "Easyinput 组件是对原生input组件的增强",
66
"keywords": [
77
"uni-ui",

0 commit comments

Comments
 (0)