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

Commit

Permalink
fix: #106, #109
Browse files Browse the repository at this point in the history
  • Loading branch information
psaren committed Mar 16, 2021
1 parent 7a49bf4 commit 838ae3a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/taro-ui-vue/src/components/image-picker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ const AtImagePicker = {
type: Array,
default: () => ['album', 'camera']
},
count: {
type: Number,
default: 1
}
},
computed: {
rootCls() {
Expand Down
6 changes: 5 additions & 1 deletion packages/taro-ui-vue/src/components/search-bar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ const AtSearchBar = {
return function () {}
},
},
onClear: {
type: Function,
default: undefined,
}
},
computed: {
rootCls() {
Expand Down Expand Up @@ -167,7 +171,7 @@ const AtSearchBar = {
this.onChange(e.target.value, e)
},
handleClear(event: CommonEvent): void {
if (this.onClear) {
if (this.onClear && typeof this.onClear === 'function') {
this.onClear(event)
} else {
this.onChange('', event)
Expand Down

0 comments on commit 838ae3a

Please sign in to comment.