boka-human-cliend-v3 0.0.37 → 0.0.38

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.
@@ -509,6 +509,7 @@
509
509
  z-index: 999;
510
510
  background: #fff;
511
511
  white-space: nowrap;
512
+ user-select: none;
512
513
  }
513
514
  .humanMainView .humanMainHeader .humanMainHeaderRight {
514
515
  text-align: right;
@@ -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,10 @@
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.icon();
5243
+ if (!this.hideIcon) {
5244
+ this.icon();
5245
+ this.visible = true;
5246
+ }
5236
5247
  if (!this.fullScreen) {
5237
5248
  this.chatMainInitDrag();
5238
5249
  }
@@ -5391,15 +5402,17 @@
5391
5402
  };
5392
5403
  const _hoisted_1 = { class: "boka-human-v2" };
5393
5404
  const _hoisted_2 = { class: "humanMainHeader my-dialog__header" };
5394
- const _hoisted_3 = { class: "humanMainHeaderRight" };
5395
- const _hoisted_4 = ["src"];
5405
+ const _hoisted_3 = { class: "humanMainHeaderCenter" };
5406
+ const _hoisted_4 = { class: "humanMainHeaderRight" };
5407
+ const _hoisted_5 = ["src"];
5396
5408
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
5397
5409
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
5398
- _cache[7] || (_cache[7] = vue.createElementVNode("div", {
5410
+ _cache[6] || (_cache[6] = vue.createElementVNode("div", {
5399
5411
  id: "humanViewOuter",
5400
5412
  style: { "position": "fixed", "width": "100vw", "height": "100vh", "top": "0", "left": "0", "display": "none" }
5401
5413
  }, null, -1)),
5402
- vue.createElementVNode("div", {
5414
+ !$props.hideIcon ? (vue.openBlock(), vue.createElementBlock("div", {
5415
+ key: 0,
5403
5416
  class: vue.normalizeClass(["humanEnterIcon", [$data.unreadCount > 0 ? "unreadCount" : ""]]),
5404
5417
  id: "humanEnterIcon"
5405
5418
  }, [
@@ -5413,15 +5426,16 @@
5413
5426
  key: 1,
5414
5427
  onClick: _cache[1] || (_cache[1] = (...args) => $options.changeChatViewVisible && $options.changeChatViewVisible(...args))
5415
5428
  }, vue.toDisplayString($data.unreadCount > 99 ? "99+" : $data.unreadCount), 1))
5416
- ], 2),
5429
+ ], 2)) : vue.createCommentVNode("", true),
5417
5430
  vue.withDirectives(vue.createElementVNode("div", {
5418
5431
  class: vue.normalizeClass(["humanMainView", $props.fullScreen ? "full" : ""])
5419
5432
  }, [
5420
5433
  vue.createElementVNode("div", _hoisted_2, [
5421
5434
  _cache[5] || (_cache[5] = vue.createElementVNode("div", { class: "humanMainHeaderLeft" }, null, -1)),
5422
- _cache[6] || (_cache[6] = vue.createElementVNode("div", { class: "humanMainHeaderCenter" }, "客服", -1)),
5423
- vue.createElementVNode("div", _hoisted_3, [
5424
- vue.createElementVNode("span", {
5435
+ vue.createElementVNode("div", _hoisted_3, vue.toDisplayString($props.viewTitle || "客服"), 1),
5436
+ vue.createElementVNode("div", _hoisted_4, [
5437
+ !$props.hideIcon ? (vue.openBlock(), vue.createElementBlock("span", {
5438
+ key: 0,
5425
5439
  onClick: _cache[2] || (_cache[2] = ($event) => $data.visible = false),
5426
5440
  onTouchstart: _cache[3] || (_cache[3] = vue.withModifiers(($event) => $data.visible = false, ["stop"]))
5427
5441
  }, [..._cache[4] || (_cache[4] = [
@@ -5430,7 +5444,7 @@
5430
5444
  alt: "",
5431
5445
  style: { "width": "14px" }
5432
5446
  }, null, -1)
5433
- ])], 32)
5447
+ ])], 32)) : vue.createCommentVNode("", true)
5434
5448
  ])
5435
5449
  ]),
5436
5450
  vue.createElementVNode("iframe", {
@@ -5438,7 +5452,7 @@
5438
5452
  src: $options.src,
5439
5453
  frameborder: "0",
5440
5454
  allowfullscreen: ""
5441
- }, null, 8, _hoisted_4)
5455
+ }, null, 8, _hoisted_5)
5442
5456
  ], 2), [
5443
5457
  [vue.vShow, $data.visible]
5444
5458
  ])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boka-human-cliend-v3",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "main": "dist/boka-human-v3.umd.js",
5
5
  "scripts": {
6
6
  "dev": "vite",