Skip to content
This repository was archived by the owner on Oct 27, 2021. It is now read-only.

Commit 838ae3a

Browse files
committed
fix: #106, #109
1 parent 7a49bf4 commit 838ae3a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

packages/taro-ui-vue/src/components/image-picker/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,10 @@ const AtImagePicker = {
117117
type: Array,
118118
default: () => ['album', 'camera']
119119
},
120+
count: {
121+
type: Number,
122+
default: 1
123+
}
120124
},
121125
computed: {
122126
rootCls() {

packages/taro-ui-vue/src/components/search-bar/index.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,10 @@ const AtSearchBar = {
8989
return function () {}
9090
},
9191
},
92+
onClear: {
93+
type: Function,
94+
default: undefined,
95+
}
9296
},
9397
computed: {
9498
rootCls() {
@@ -167,7 +171,7 @@ const AtSearchBar = {
167171
this.onChange(e.target.value, e)
168172
},
169173
handleClear(event: CommonEvent): void {
170-
if (this.onClear) {
174+
if (this.onClear && typeof this.onClear === 'function') {
171175
this.onClear(event)
172176
} else {
173177
this.onChange('', event)

0 commit comments

Comments
 (0)