@aochuang/client-sdk 1.0.331 → 1.0.332
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -88,6 +88,10 @@ export default {
|
|
|
88
88
|
},
|
|
89
89
|
sendMessageMethod: {
|
|
90
90
|
type: Function
|
|
91
|
+
},
|
|
92
|
+
preventSendButtonBubble: {
|
|
93
|
+
type: Boolean,
|
|
94
|
+
default: false
|
|
91
95
|
}
|
|
92
96
|
},
|
|
93
97
|
data () {
|
|
@@ -877,8 +881,11 @@ export default {
|
|
|
877
881
|
mentions: this.getMentions()
|
|
878
882
|
})
|
|
879
883
|
},
|
|
880
|
-
handleSendMessageClick () {
|
|
881
|
-
|
|
884
|
+
handleSendMessageClick (evt) {
|
|
885
|
+
if (this.preventSendButtonBubble && evt && evt.stopPropagation) {
|
|
886
|
+
evt.stopPropagation()
|
|
887
|
+
}
|
|
888
|
+
this.submit()
|
|
882
889
|
},
|
|
883
890
|
handleClick () {
|
|
884
891
|
if (this.disabled) {
|
package/package.json
CHANGED