react_hsbc_teller 2.0.46 → 2.0.48

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react_hsbc_teller",
3
- "version": "2.0.46",
3
+ "version": "2.0.48",
4
4
  "description": "React",
5
5
  "private": false,
6
6
  "main": "lib/hsbc.js",
@@ -5,18 +5,10 @@ import Pdf from './pdf.js'
5
5
  class Demo extends Component {
6
6
  state = {
7
7
  shareMask: false,
8
- imRoomId
9
- :
10
- "IZLZMoTxj@conference.ls-im-xmpp.chinawp.dev.ali.cloud.cn.hsbc",
11
- sessionId
12
- :
13
- "IZLZMoTxj",
14
- mtoken
15
- :
16
- "bc084d8a922f",
17
- roomId
18
- :
19
- "663912632731275",
8
+ imRoomId: "",
9
+ sessionId: "",
10
+ mtoken: "",
11
+ roomId: "",
20
12
  // roomId: '',
21
13
  // mtoken: '',
22
14
  // imRoomId: '',
@@ -216,6 +208,7 @@ userExit =(val)=>{
216
208
  whetherDetectFace={true}
217
209
  whetherDetectLight={true}
218
210
  whetherNeedAsr={true}
211
+ screenSharedInterval={6}
219
212
  prohibitPrompt={this.state.prohibitPrompt}
220
213
  voiceColor={this.state.voiceColor}
221
214
  titleBackground={this.state.titleBackground}
@@ -1,5 +1,6 @@
1
1
  import React, { Component } from 'react';
2
2
  import './foot.less'
3
+ import { debounce } from '../../utils/utils';
3
4
  import Popover from "antd/lib/popover";
4
5
  import 'antd/lib/popover/style'
5
6
  export default class foot extends Component {
@@ -115,7 +116,7 @@ export default class foot extends Component {
115
116
  </div>
116
117
  }
117
118
  {
118
- item == 'BOARD'&&<div className='footHover' onClick={this.switchExternal.bind(this)}>
119
+ item == 'BOARD'&&<div className='footHover' onClick={debounce(this.switchExternal.bind(this), 300)}>
119
120
  <div className="one">
120
121
  <img className="imgClass" src={require("../../assets/img/switchExternal.png").default} alt="" />
121
122
  <div className="text">
@@ -125,7 +126,7 @@ export default class foot extends Component {
125
126
  </div>
126
127
  }
127
128
  {
128
- item == 'SHARE' && <div className="one" onClick={this.sharedScreen.bind(this)}>
129
+ item == 'SHARE' && <div className="one" onClick={debounce(this.sharedScreen.bind(this), 300)}>
129
130
  <img className="imgClass" src={require("../../assets/img/Projection_screen.png").default} alt="" />
130
131
  <div className="text">
131
132
  {screenName}