boka-human-cliend-v3 0.0.23 → 0.0.25

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.
@@ -479,11 +479,18 @@
479
479
  }
480
480
  .humanMainView {
481
481
  position: fixed;
482
- min-width: 420px;
483
- min-height: 400px;
482
+ min-width: 360px;
483
+ max-width: 600px;
484
+ min-height: 360px;
484
485
  height: 80vh;
485
486
  border: 1px solid #ccc;
486
487
  }
488
+ .humanMainView.full {
489
+ width: 100vw!important;
490
+ max-width: 100vw!important;
491
+ height: 100vh!important;
492
+ max-height: 100vh!important;
493
+ }
487
494
  .humanMainView .humanMainHeader {
488
495
  width: 100%;
489
496
  height: 40px;
@@ -5196,6 +5196,10 @@
5196
5196
  source: {
5197
5197
  type: String,
5198
5198
  default: ""
5199
+ },
5200
+ fullScreen: {
5201
+ type: Number,
5202
+ default: 0
5199
5203
  }
5200
5204
  },
5201
5205
  computed: {
@@ -5372,10 +5376,9 @@
5372
5376
  width: "32",
5373
5377
  height: "32"
5374
5378
  };
5375
- const _hoisted_3 = { class: "humanMainView" };
5376
- const _hoisted_4 = { class: "humanMainHeader my-dialog__header" };
5377
- const _hoisted_5 = { class: "humanMainHeaderRight" };
5378
- const _hoisted_6 = ["src"];
5379
+ const _hoisted_3 = { class: "humanMainHeader my-dialog__header" };
5380
+ const _hoisted_4 = { class: "humanMainHeaderRight" };
5381
+ const _hoisted_5 = ["src"];
5379
5382
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
5380
5383
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
5381
5384
  vue.createElementVNode("div", {
@@ -5392,11 +5395,13 @@
5392
5395
  vue.createTextVNode(vue.toDisplayString($data.unreadCount > 99 ? "99+" : $data.unreadCount), 1)
5393
5396
  ], 64))
5394
5397
  ], 2),
5395
- vue.withDirectives(vue.createElementVNode("div", _hoisted_3, [
5396
- vue.createElementVNode("div", _hoisted_4, [
5398
+ vue.withDirectives(vue.createElementVNode("div", {
5399
+ class: vue.normalizeClass(["humanMainView", $props.fullScreen ? "full" : ""])
5400
+ }, [
5401
+ vue.createElementVNode("div", _hoisted_3, [
5397
5402
  _cache[3] || (_cache[3] = vue.createElementVNode("div", { class: "humanMainHeaderLeft" }, null, -1)),
5398
5403
  _cache[4] || (_cache[4] = vue.createElementVNode("div", { class: "humanMainHeaderCenter" }, "客服", -1)),
5399
- vue.createElementVNode("div", _hoisted_5, [
5404
+ vue.createElementVNode("div", _hoisted_4, [
5400
5405
  vue.createElementVNode("span", {
5401
5406
  onClick: _cache[1] || (_cache[1] = ($event) => $data.visible = !$data.visible)
5402
5407
  }, "关闭")
@@ -5407,8 +5412,8 @@
5407
5412
  src: $options.src,
5408
5413
  frameborder: "0",
5409
5414
  allowfullscreen: ""
5410
- }, null, 8, _hoisted_6)
5411
- ], 512), [
5415
+ }, null, 8, _hoisted_5)
5416
+ ], 2), [
5412
5417
  [vue.vShow, $data.visible]
5413
5418
  ])
5414
5419
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boka-human-cliend-v3",
3
- "version": "0.0.23",
3
+ "version": "0.0.25",
4
4
  "main": "dist/boka-human-v3.umd.js",
5
5
  "scripts": {
6
6
  "dev": "vite",