yt-chat-components 1.1.1 → 1.1.2

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": "yt-chat-components",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "build/static/js/bundle.min.js",
5
5
  "module": "build/static/js/bundle.min.js",
6
6
  "types": "build/static/js/index.d.ts",
@@ -16,7 +16,7 @@ import icon_history_upload from '../../assets/aicenter/icon_history_upload.png';
16
16
  import icon_history_headerbg from '../../assets/aicenter/icon_history_headerbg.png';
17
17
  import icon_history_add from '../../assets/aicenter/icon_history_add.png';
18
18
  import ChatWidget from "../chatWidget";
19
- // import Draggable from 'react-draggable';
19
+ import Draggable from 'react-draggable';
20
20
 
21
21
 
22
22
  const style=`
@@ -776,16 +776,15 @@ export class MobileChatPage extends React.Component {
776
776
  {
777
777
  isShowSideRight && (
778
778
  <>
779
- {/*<Draggable onStart={() => { this.dragging = false; }}*/}
780
- {/* onDrag={() => { this.dragging = true; }}*/}
781
- {/* onStop={(e) => {*/}
782
- {/* if (!this.dragging) {*/}
783
- {/* this.setState({drawerVisible: true})*/}
784
- {/* }*/}
785
- {/* }}>*/}
779
+ <Draggable onStart={() => { this.dragging = false; }}
780
+ onDrag={() => { this.dragging = true; }}
781
+ onStop={(e) => {
782
+ if (!this.dragging) {
783
+ this.setState({drawerVisible: true})
784
+ }
785
+ }}>
786
786
  <img
787
787
  src={icon_agents}
788
- onClick={() => {this.setState({drawerVisible: true})}}
789
788
  style={{
790
789
  width: '60px',
791
790
  height: '60px',
@@ -795,7 +794,7 @@ export class MobileChatPage extends React.Component {
795
794
  zIndex: 1000
796
795
  }}
797
796
  />
798
- {/*</Draggable>*/}
797
+ </Draggable>
799
798
  <Drawer
800
799
  title={'专项技能'}
801
800
  // closable={false}