@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
- this.submit()
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aochuang/client-sdk",
3
- "version": "1.0.331",
3
+ "version": "1.0.332",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -254,4 +254,4 @@ export default {
254
254
  padding-bottom: calc(constant(safe-area-inset-bottom)); /* window-bottom + 适配 iPhoneX */
255
255
  padding-bottom: calc(env(safe-area-inset-bottom));
256
256
  }
257
- </style>
257
+ </style>