boka-human-cliend-v3 0.0.37 → 0.0.39
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.
|
@@ -5204,6 +5204,14 @@
|
|
|
5204
5204
|
fullScreen: {
|
|
5205
5205
|
type: [Boolean, Number],
|
|
5206
5206
|
default: 0
|
|
5207
|
+
},
|
|
5208
|
+
hideIcon: {
|
|
5209
|
+
type: Boolean,
|
|
5210
|
+
default: false
|
|
5211
|
+
},
|
|
5212
|
+
viewTitle: {
|
|
5213
|
+
type: String,
|
|
5214
|
+
default: "客服"
|
|
5207
5215
|
}
|
|
5208
5216
|
},
|
|
5209
5217
|
computed: {
|
|
@@ -5232,7 +5240,11 @@
|
|
|
5232
5240
|
console.log(`%c 客服组件属性 `, "background: #f00; color: #fff; padding: 2px 2px; border-radius: 3px;");
|
|
5233
5241
|
console.log(this.$props);
|
|
5234
5242
|
setTimeout(() => {
|
|
5235
|
-
this.
|
|
5243
|
+
if (!this.hideIcon) {
|
|
5244
|
+
this.icon();
|
|
5245
|
+
} else {
|
|
5246
|
+
this.visible = true;
|
|
5247
|
+
}
|
|
5236
5248
|
if (!this.fullScreen) {
|
|
5237
5249
|
this.chatMainInitDrag();
|
|
5238
5250
|
}
|
|
@@ -5391,15 +5403,17 @@
|
|
|
5391
5403
|
};
|
|
5392
5404
|
const _hoisted_1 = { class: "boka-human-v2" };
|
|
5393
5405
|
const _hoisted_2 = { class: "humanMainHeader my-dialog__header" };
|
|
5394
|
-
const _hoisted_3 = { class: "
|
|
5395
|
-
const _hoisted_4 =
|
|
5406
|
+
const _hoisted_3 = { class: "humanMainHeaderCenter" };
|
|
5407
|
+
const _hoisted_4 = { class: "humanMainHeaderRight" };
|
|
5408
|
+
const _hoisted_5 = ["src"];
|
|
5396
5409
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
5397
5410
|
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
5398
|
-
_cache[
|
|
5411
|
+
_cache[6] || (_cache[6] = vue.createElementVNode("div", {
|
|
5399
5412
|
id: "humanViewOuter",
|
|
5400
5413
|
style: { "position": "fixed", "width": "100vw", "height": "100vh", "top": "0", "left": "0", "display": "none" }
|
|
5401
5414
|
}, null, -1)),
|
|
5402
|
-
vue.
|
|
5415
|
+
!$props.hideIcon ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
5416
|
+
key: 0,
|
|
5403
5417
|
class: vue.normalizeClass(["humanEnterIcon", [$data.unreadCount > 0 ? "unreadCount" : ""]]),
|
|
5404
5418
|
id: "humanEnterIcon"
|
|
5405
5419
|
}, [
|
|
@@ -5413,15 +5427,16 @@
|
|
|
5413
5427
|
key: 1,
|
|
5414
5428
|
onClick: _cache[1] || (_cache[1] = (...args) => $options.changeChatViewVisible && $options.changeChatViewVisible(...args))
|
|
5415
5429
|
}, vue.toDisplayString($data.unreadCount > 99 ? "99+" : $data.unreadCount), 1))
|
|
5416
|
-
], 2),
|
|
5430
|
+
], 2)) : vue.createCommentVNode("", true),
|
|
5417
5431
|
vue.withDirectives(vue.createElementVNode("div", {
|
|
5418
5432
|
class: vue.normalizeClass(["humanMainView", $props.fullScreen ? "full" : ""])
|
|
5419
5433
|
}, [
|
|
5420
5434
|
vue.createElementVNode("div", _hoisted_2, [
|
|
5421
5435
|
_cache[5] || (_cache[5] = vue.createElementVNode("div", { class: "humanMainHeaderLeft" }, null, -1)),
|
|
5422
|
-
|
|
5423
|
-
vue.createElementVNode("div",
|
|
5424
|
-
vue.
|
|
5436
|
+
vue.createElementVNode("div", _hoisted_3, vue.toDisplayString($props.viewTitle || "客服"), 1),
|
|
5437
|
+
vue.createElementVNode("div", _hoisted_4, [
|
|
5438
|
+
!$props.hideIcon ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
5439
|
+
key: 0,
|
|
5425
5440
|
onClick: _cache[2] || (_cache[2] = ($event) => $data.visible = false),
|
|
5426
5441
|
onTouchstart: _cache[3] || (_cache[3] = vue.withModifiers(($event) => $data.visible = false, ["stop"]))
|
|
5427
5442
|
}, [..._cache[4] || (_cache[4] = [
|
|
@@ -5430,7 +5445,7 @@
|
|
|
5430
5445
|
alt: "",
|
|
5431
5446
|
style: { "width": "14px" }
|
|
5432
5447
|
}, null, -1)
|
|
5433
|
-
])], 32)
|
|
5448
|
+
])], 32)) : vue.createCommentVNode("", true)
|
|
5434
5449
|
])
|
|
5435
5450
|
]),
|
|
5436
5451
|
vue.createElementVNode("iframe", {
|
|
@@ -5438,7 +5453,7 @@
|
|
|
5438
5453
|
src: $options.src,
|
|
5439
5454
|
frameborder: "0",
|
|
5440
5455
|
allowfullscreen: ""
|
|
5441
|
-
}, null, 8,
|
|
5456
|
+
}, null, 8, _hoisted_5)
|
|
5442
5457
|
], 2), [
|
|
5443
5458
|
[vue.vShow, $data.visible]
|
|
5444
5459
|
])
|