boka-human-cliend-v2 0.0.22 → 0.0.23
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/dist/boka-human-v2.common.js +19 -17
- package/dist/boka-human-v2.css +1 -509
- package/dist/boka-human-v2.umd.js +19 -17
- package/dist/boka-human-v2.umd.min.js +2 -2
- package/package.json +1 -1
- package/src/BokaHumanV2.vue +5 -3
package/package.json
CHANGED
package/src/BokaHumanV2.vue
CHANGED
|
@@ -69,8 +69,10 @@ export default {
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
mounted() {
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
setTimeout(()=>{
|
|
73
|
+
this.icon();
|
|
74
|
+
this.chatMainInitDrag();
|
|
75
|
+
})
|
|
74
76
|
|
|
75
77
|
window.humanFunction = {
|
|
76
78
|
showChatView: this.showChat
|
|
@@ -139,7 +141,7 @@ export default {
|
|
|
139
141
|
icon(){
|
|
140
142
|
const container = document.body;
|
|
141
143
|
let defx = container.clientWidth-40;
|
|
142
|
-
let defy = container.clientHeight-150;
|
|
144
|
+
let defy = Math.min(screen.availHeight,container.clientHeight)-150;
|
|
143
145
|
let tmpIcon = document.querySelector('#humanEnterIcon');
|
|
144
146
|
tmpIcon.style.transform = `translate(${defx}px, ${defy}px)`;
|
|
145
147
|
tmpIcon.setAttribute('data-x', defx);
|