iking-web-ui-pro 0.2.0 → 0.2.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.
@@ -1,99 +1,99 @@
1
- import { defineComponent as I, openBlock as u, createElementBlock as w, ref as T, normalizeStyle as U, createVNode as E, unref as $, watch as H, resolveComponent as D, Fragment as O, renderList as F, createBlock as S, withCtx as y, createElementVNode as d, toDisplayString as R, createCommentVNode as C, normalizeClass as A, pushScopeId as N, popScopeId as G, useCssVars as j } from "vue";
1
+ import { defineComponent as I, openBlock as d, createElementBlock as w, ref as O, normalizeStyle as H, createVNode as E, unref as $, watch as U, resolveComponent as D, Fragment as T, renderList as F, createBlock as k, withCtx as m, createElementVNode as c, toDisplayString as R, createCommentVNode as C, normalizeClass as A, pushScopeId as N, popScopeId as j, useCssVars as W } from "vue";
2
2
  const L = (e, t) => {
3
- if (e.install = (o) => {
3
+ if (e.install = (n) => {
4
4
  for (const i of [e, ...Object.values(t ?? {})])
5
- o.component(i.name, i);
5
+ n.component(i.name, i);
6
6
  }, t)
7
- for (const [o, i] of Object.entries(t))
8
- e[o] = i;
7
+ for (const [n, i] of Object.entries(t))
8
+ e[n] = i;
9
9
  return e;
10
10
  };
11
- function z(e, t, o, i) {
12
- function s(n) {
13
- return n instanceof o ? n : new o(function(c) {
14
- c(n);
11
+ function G(e, t, n, i) {
12
+ function s(o) {
13
+ return o instanceof n ? o : new n(function(p) {
14
+ p(o);
15
15
  });
16
16
  }
17
- return new (o || (o = Promise))(function(n, c) {
17
+ return new (n || (n = Promise))(function(o, p) {
18
18
  function f(h) {
19
19
  try {
20
20
  a(i.next(h));
21
- } catch (v) {
22
- c(v);
21
+ } catch (_) {
22
+ p(_);
23
23
  }
24
24
  }
25
- function m(h) {
25
+ function g(h) {
26
26
  try {
27
27
  a(i.throw(h));
28
- } catch (v) {
29
- c(v);
28
+ } catch (_) {
29
+ p(_);
30
30
  }
31
31
  }
32
32
  function a(h) {
33
- h.done ? n(h.value) : s(h.value).then(f, m);
33
+ h.done ? o(h.value) : s(h.value).then(f, g);
34
34
  }
35
35
  a((i = i.apply(e, t || [])).next());
36
36
  });
37
37
  }
38
- function W(e, t) {
39
- var o = { label: 0, sent: function() {
40
- if (n[0] & 1)
41
- throw n[1];
42
- return n[1];
43
- }, trys: [], ops: [] }, i, s, n, c;
44
- return c = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (c[Symbol.iterator] = function() {
38
+ function z(e, t) {
39
+ var n = { label: 0, sent: function() {
40
+ if (o[0] & 1)
41
+ throw o[1];
42
+ return o[1];
43
+ }, trys: [], ops: [] }, i, s, o, p;
44
+ return p = { next: f(0), throw: f(1), return: f(2) }, typeof Symbol == "function" && (p[Symbol.iterator] = function() {
45
45
  return this;
46
- }), c;
46
+ }), p;
47
47
  function f(a) {
48
48
  return function(h) {
49
- return m([a, h]);
49
+ return g([a, h]);
50
50
  };
51
51
  }
52
- function m(a) {
52
+ function g(a) {
53
53
  if (i)
54
54
  throw new TypeError("Generator is already executing.");
55
- for (; c && (c = 0, a[0] && (o = 0)), o; )
55
+ for (; p && (p = 0, a[0] && (n = 0)), n; )
56
56
  try {
57
- if (i = 1, s && (n = a[0] & 2 ? s.return : a[0] ? s.throw || ((n = s.return) && n.call(s), 0) : s.next) && !(n = n.call(s, a[1])).done)
58
- return n;
59
- switch (s = 0, n && (a = [a[0] & 2, n.value]), a[0]) {
57
+ if (i = 1, s && (o = a[0] & 2 ? s.return : a[0] ? s.throw || ((o = s.return) && o.call(s), 0) : s.next) && !(o = o.call(s, a[1])).done)
58
+ return o;
59
+ switch (s = 0, o && (a = [a[0] & 2, o.value]), a[0]) {
60
60
  case 0:
61
61
  case 1:
62
- n = a;
62
+ o = a;
63
63
  break;
64
64
  case 4:
65
- return o.label++, { value: a[1], done: !1 };
65
+ return n.label++, { value: a[1], done: !1 };
66
66
  case 5:
67
- o.label++, s = a[1], a = [0];
67
+ n.label++, s = a[1], a = [0];
68
68
  continue;
69
69
  case 7:
70
- a = o.ops.pop(), o.trys.pop();
70
+ a = n.ops.pop(), n.trys.pop();
71
71
  continue;
72
72
  default:
73
- if (n = o.trys, !(n = n.length > 0 && n[n.length - 1]) && (a[0] === 6 || a[0] === 2)) {
74
- o = 0;
73
+ if (o = n.trys, !(o = o.length > 0 && o[o.length - 1]) && (a[0] === 6 || a[0] === 2)) {
74
+ n = 0;
75
75
  continue;
76
76
  }
77
- if (a[0] === 3 && (!n || a[1] > n[0] && a[1] < n[3])) {
78
- o.label = a[1];
77
+ if (a[0] === 3 && (!o || a[1] > o[0] && a[1] < o[3])) {
78
+ n.label = a[1];
79
79
  break;
80
80
  }
81
- if (a[0] === 6 && o.label < n[1]) {
82
- o.label = n[1], n = a;
81
+ if (a[0] === 6 && n.label < o[1]) {
82
+ n.label = o[1], o = a;
83
83
  break;
84
84
  }
85
- if (n && o.label < n[2]) {
86
- o.label = n[2], o.ops.push(a);
85
+ if (o && n.label < o[2]) {
86
+ n.label = o[2], n.ops.push(a);
87
87
  break;
88
88
  }
89
- n[2] && o.ops.pop(), o.trys.pop();
89
+ o[2] && n.ops.pop(), n.trys.pop();
90
90
  continue;
91
91
  }
92
- a = t.call(e, o);
92
+ a = t.call(e, n);
93
93
  } catch (h) {
94
94
  a = [6, h], s = 0;
95
95
  } finally {
96
- i = n = 0;
96
+ i = o = 0;
97
97
  }
98
98
  if (a[0] & 5)
99
99
  throw a[1];
@@ -101,39 +101,39 @@ function W(e, t) {
101
101
  }
102
102
  }
103
103
  var K = function(e, t) {
104
- return z(void 0, void 0, void 0, function() {
105
- return W(this, function(o) {
104
+ return G(void 0, void 0, void 0, function() {
105
+ return z(this, function(n) {
106
106
  return [2, new Promise(function(i, s) {
107
107
  try {
108
108
  if (window.DocsAPI)
109
109
  return i(null);
110
- var n = document.getElementById(t);
111
- if (n)
112
- var c = setInterval(function() {
113
- var m = n.getAttribute("loading");
114
- if (!m) {
115
- if (clearInterval(c), window.DocsAPI)
110
+ var o = document.getElementById(t);
111
+ if (o)
112
+ var p = setInterval(function() {
113
+ var g = o.getAttribute("loading");
114
+ if (!g) {
115
+ if (clearInterval(p), window.DocsAPI)
116
116
  return i(null);
117
117
  var a = x(t, e, i, s);
118
- n.remove(), document.body.appendChild(a);
118
+ o.remove(), document.body.appendChild(a);
119
119
  }
120
120
  }, 500);
121
121
  else {
122
122
  var f = x(t, e, i, s);
123
123
  document.body.appendChild(f);
124
124
  }
125
- } catch (m) {
126
- console.error(m);
125
+ } catch (g) {
126
+ console.error(g);
127
127
  }
128
128
  })];
129
129
  });
130
130
  });
131
- }, x = function(e, t, o, i) {
131
+ }, x = function(e, t, n, i) {
132
132
  var s = document.createElement("script");
133
133
  return s.id = e, s.type = "text/javascript", s.src = t, s.async = !0, s.onload = function() {
134
- s.removeAttribute("loading"), o(null);
135
- }, s.onerror = function(n) {
136
- s.removeAttribute("loading"), i(n);
134
+ s.removeAttribute("loading"), n(null);
135
+ }, s.onerror = function(o) {
136
+ s.removeAttribute("loading"), i(o);
137
137
  }, s.setAttribute("loading", ""), s;
138
138
  }, V = I({
139
139
  name: "DocumentEditor",
@@ -189,8 +189,8 @@ var K = function(e, t) {
189
189
  mounted: function() {
190
190
  var e = this, t = this.documentServerUrl;
191
191
  t.endsWith("/") || (t += "/");
192
- var o = "".concat(t, "web-apps/apps/api/documents/api.js");
193
- K(o, "onlyoffice-api-script").then(function() {
192
+ var n = "".concat(t, "web-apps/apps/api/documents/api.js");
193
+ K(n, "onlyoffice-api-script").then(function() {
194
194
  return e.onLoad();
195
195
  }).catch(function() {
196
196
  e.onError(-2);
@@ -233,9 +233,9 @@ var K = function(e, t) {
233
233
  onLoad: function() {
234
234
  var e, t;
235
235
  try {
236
- var o = this.id || "";
237
- if (window.DocsAPI || this.onError(-3), !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[o]) {
238
- console.log("Skip loading. Instance already exists", o);
236
+ var n = this.id || "";
237
+ if (window.DocsAPI || this.onError(-3), !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[n]) {
238
+ console.log("Skip loading. Instance already exists", n);
239
239
  return;
240
240
  }
241
241
  !((t = window == null ? void 0 : window.DocEditor) === null || t === void 0) && t.instances || (window.DocEditor = { instances: {} });
@@ -274,10 +274,10 @@ var K = function(e, t) {
274
274
  height: this.height,
275
275
  type: this.type,
276
276
  width: this.width
277
- }, this.config || {}), s = window.DocsAPI.DocEditor(o, i);
278
- window.DocEditor.instances[o] = s;
279
- } catch (n) {
280
- console.error(n), this.onError(-1);
277
+ }, this.config || {}), s = window.DocsAPI.DocEditor(n, i);
278
+ window.DocEditor.instances[n] = s;
279
+ } catch (o) {
280
+ console.error(o), this.onError(-1);
281
281
  }
282
282
  },
283
283
  onError: function(e) {
@@ -305,8 +305,8 @@ var K = function(e, t) {
305
305
  }
306
306
  });
307
307
  const J = ["id"];
308
- function X(e, t, o, i, s, n) {
309
- return u(), w("div", { id: e.id }, null, 8, J);
308
+ function X(e, t, n, i, s, o) {
309
+ return d(), w("div", { id: e.id }, null, 8, J);
310
310
  }
311
311
  V.render = X;
312
312
  V.__file = "src/components/DocumentEditor.vue";
@@ -318,84 +318,37 @@ const Q = /* @__PURE__ */ I({
318
318
  type: String,
319
319
  default: ""
320
320
  },
321
- // 当前onlyoffice的模式 (edit 编辑模式 view是查看模式)
322
- mode: {
323
- type: String,
324
- default: ""
325
- },
326
321
  // 配置项
327
322
  configOptions: {
328
323
  type: Object,
329
324
  default: () => {
330
325
  }
331
326
  },
332
- // 元素的高度
327
+ // 元素的高度
333
328
  officeHeight: {
334
329
  type: String,
335
330
  default: "100%"
336
- },
337
- // 加密后的token
338
- token: {
339
- type: String,
340
- default: ""
341
331
  }
342
332
  },
343
333
  setup(e) {
344
- var s, n, c, f;
345
- const t = e, o = T({
334
+ const t = e, n = O({
346
335
  width: "100%",
347
336
  height: "100%",
348
- document: (s = t.configOptions) == null ? void 0 : s.document,
349
- // word cell(表格) slide(PPT)
350
- documentType: (n = t.configOptions) == null ? void 0 : n.documentType,
351
- editorConfig: {
352
- callbackUrl: (f = (c = t.configOptions) == null ? void 0 : c.editorConfig) == null ? void 0 : f.callbackUrl,
353
- // 保存的回调函数
354
- lang: "zh-CN",
355
- mode: t.mode,
356
- // 强制保存
357
- customization: {
358
- forcesave: !0,
359
- autosave: !0
360
- }
361
- },
362
- // 权限
363
- permissions: {
364
- comment: !0,
365
- commentGroups: {
366
- edit: ["Group1"],
367
- remove: ["Group1"],
368
- view: ""
369
- },
370
- copy: !0,
371
- deleteCommentAuthorOnly: !0,
372
- download: !0,
373
- edit: !0,
374
- editCommentAuthorOnly: !0,
375
- fillForms: !0,
376
- modifyContentControl: !0,
377
- modifyFilter: !0,
378
- print: !0,
379
- review: !0,
380
- reviewGroups: ["Group1", "Group2", "Group3"],
381
- userInfoGroups: ["Group1"]
382
- },
383
- mode: t.mode,
384
- token: t.token
337
+ ...t.configOptions || {}
385
338
  }), i = () => {
386
- console.info("文档加载完成");
339
+ console.info("文档加载完成", t.configOptions);
387
340
  };
388
- return (m, a) => (u(), w(
341
+ return (s, o) => (d(), w(
389
342
  "div",
390
343
  {
391
- style: U({ height: t.officeHeight })
344
+ style: H({ height: t.officeHeight })
392
345
  },
393
346
  [
394
347
  E($(V), {
395
348
  id: `${(/* @__PURE__ */ new Date()).getTime()}`,
396
349
  ref: "editorRef",
397
350
  "document-server-url": e.documentServerUrl,
398
- config: o.value,
351
+ config: n.value,
399
352
  events_onDocumentReady: i
400
353
  }, null, 8, ["id", "document-server-url", "config"])
401
354
  ],
@@ -405,23 +358,23 @@ const Q = /* @__PURE__ */ I({
405
358
  }
406
359
  });
407
360
  const P = (e, t) => {
408
- const o = e.__vccOpts || e;
361
+ const n = e.__vccOpts || e;
409
362
  for (const [i, s] of t)
410
- o[i] = s;
411
- return o;
412
- }, Y = /* @__PURE__ */ P(Q, [["__scopeId", "data-v-ea0a8f6d"]]), Z = L(Y), ee = Z, M = (e) => (N("data-v-af8d674c"), e = e(), G(), e), te = { class: "template-data" }, ne = { class: "operate-btn" }, oe = ["onClick"], ie = ["onClick"], ae = { class: "m-12 point" }, se = { class: "flex" }, re = ["onClick"], le = /* @__PURE__ */ M(() => /* @__PURE__ */ d(
363
+ n[i] = s;
364
+ return n;
365
+ }, Y = /* @__PURE__ */ P(Q, [["__scopeId", "data-v-fe959cd8"]]), Z = L(Y), ee = Z, M = (e) => (N("data-v-af8d674c"), e = e(), j(), e), te = { class: "template-data" }, ne = { class: "operate-btn" }, oe = ["onClick"], ie = ["onClick"], ae = { class: "m-12 point" }, se = { class: "flex" }, re = ["onClick"], le = /* @__PURE__ */ M(() => /* @__PURE__ */ c(
413
366
  "i",
414
367
  { class: "icon-icon_particulars iconfont tips" },
415
368
  null,
416
369
  -1
417
370
  /* HOISTED */
418
- )), ce = /* @__PURE__ */ M(() => /* @__PURE__ */ d(
371
+ )), ce = /* @__PURE__ */ M(() => /* @__PURE__ */ c(
419
372
  "p",
420
373
  null,
421
374
  "鼠标右键选择操作的数据类型",
422
375
  -1
423
376
  /* HOISTED */
424
- )), de = { class: "flex data-block" }, ue = { class: "operate-btn" }, pe = ["onClick"], fe = ["onClick"], he = { class: "operate-btn" }, ve = ["onClick"], _e = ["onClick"], me = ["onClick"], ye = ["onClick"], ge = /* @__PURE__ */ I({
377
+ )), de = { class: "flex data-block" }, ue = { class: "operate-btn" }, pe = ["onClick"], he = ["onClick"], fe = { class: "operate-btn" }, _e = ["onClick"], ve = ["onClick"], me = ["onClick"], ge = ["onClick"], ye = /* @__PURE__ */ I({
425
378
  __name: "templateOfficeData",
426
379
  props: {
427
380
  // 详情数据
@@ -448,52 +401,52 @@ const P = (e, t) => {
448
401
  },
449
402
  emits: ["handleTitleEdit", "handleTitleDel", "handleGetTitleData", "handleDataBlockEdit", "handleDataBlockDel", "handleChooseDataBlock", "handleDifferentTypeDataBlock"],
450
403
  setup(e, { emit: t }) {
451
- const o = e, i = t, s = (l) => {
404
+ const n = e, i = t, s = (l) => {
452
405
  i("handleTitleEdit", l);
453
- }, n = (l) => {
406
+ }, o = (l) => {
454
407
  i("handleTitleDel", l);
455
- }, c = (l) => {
408
+ }, p = (l) => {
456
409
  i("handleGetTitleData", l);
457
410
  }, f = (l) => {
458
411
  i("handleDataBlockEdit", l);
459
- }, m = (l) => {
412
+ }, g = (l) => {
460
413
  i("handleDataBlockDel", l);
461
- }, a = (l, k) => {
462
- for (const g of _.value)
463
- g.children.forEach((p) => p.isChoose = !1);
464
- k.isChoose = !0, i("handleChooseDataBlock", l, k);
465
- }, h = (l, k) => {
466
- i("handleDifferentTypeDataBlock", l, k);
467
- }, v = (l) => {
468
- let k = l.map((g) => ({
469
- name: g[o.defaultProps.name],
470
- children: g[o.defaultProps.children].map((p) => ({
471
- childName: p[o.defaultProps.childName],
472
- childId: p[o.defaultProps.childId]
414
+ }, a = (l, S) => {
415
+ for (const y of v.value)
416
+ y.children.forEach((u) => u.isChoose = !1);
417
+ S.isChoose = !0, i("handleChooseDataBlock", l, S);
418
+ }, h = (l, S) => {
419
+ i("handleDifferentTypeDataBlock", l, S);
420
+ }, _ = (l) => {
421
+ let S = l.map((y) => ({
422
+ name: y[n.defaultProps.name],
423
+ children: y[n.defaultProps.children].map((u) => ({
424
+ childName: u[n.defaultProps.childName],
425
+ childId: u[n.defaultProps.childId]
473
426
  }))
474
427
  }));
475
- _.value = k;
476
- }, _ = T(o.data);
477
- return H(
478
- () => o.data,
428
+ v.value = S;
429
+ }, v = O(n.data);
430
+ return U(
431
+ () => n.data,
479
432
  (l) => {
480
- v(l);
433
+ _(l);
481
434
  },
482
435
  { immediate: !0 }
483
436
  ), document.addEventListener("contextmenu", (l) => {
484
- o.isShowTitleOperate && l.preventDefault();
485
- }), (l, k) => {
486
- const g = D("el-popover");
487
- return u(), w("div", te, [
488
- (u(!0), w(
489
- O,
437
+ n.isShowTitleOperate && l.preventDefault();
438
+ }), (l, S) => {
439
+ const y = D("el-popover");
440
+ return d(), w("div", te, [
441
+ (d(!0), w(
442
+ T,
490
443
  null,
491
- F(_.value, (p, q) => (u(), w("div", {
444
+ F(v.value, (u, q) => (d(), w("div", {
492
445
  key: q,
493
446
  class: "mt-4"
494
447
  }, [
495
- e.isShowTitleOperate ? (u(), S(
496
- g,
448
+ e.isShowTitleOperate ? (d(), k(
449
+ y,
497
450
  {
498
451
  key: 0,
499
452
  "popper-class": "sort-popper",
@@ -502,26 +455,26 @@ const P = (e, t) => {
502
455
  trigger: "contextmenu"
503
456
  },
504
457
  {
505
- reference: y(() => [
506
- d(
458
+ reference: m(() => [
459
+ c(
507
460
  "span",
508
461
  ae,
509
- R(p.name),
462
+ R(u.name),
510
463
  1
511
464
  /* TEXT */
512
465
  )
513
466
  ]),
514
- default: y(() => [
515
- d("div", ne, [
516
- d("p", {
467
+ default: m(() => [
468
+ c("div", ne, [
469
+ c("p", {
517
470
  class: "point",
518
471
  style: { margin: "0" },
519
- onClick: (r) => s(p)
472
+ onClick: (r) => s(u)
520
473
  }, "编辑", 8, oe),
521
- d("p", {
474
+ c("p", {
522
475
  style: { color: "var(--ik-error)", margin: "0" },
523
476
  class: "point",
524
- onClick: (r) => n(p)
477
+ onClick: (r) => o(u)
525
478
  }, " 删除 ", 8, ie)
526
479
  ])
527
480
  ]),
@@ -530,26 +483,26 @@ const P = (e, t) => {
530
483
  },
531
484
  1024
532
485
  /* DYNAMIC_SLOTS */
533
- )) : (u(), w(
534
- O,
486
+ )) : (d(), w(
487
+ T,
535
488
  { key: 1 },
536
489
  [
537
490
  C(" 不能操作的标题 "),
538
- d("div", se, [
539
- d("p", {
491
+ c("div", se, [
492
+ c("p", {
540
493
  class: "mb-2 point",
541
- onClick: (r) => c(p)
542
- }, R(p.name), 9, re),
543
- p.resultType === "LIST" ? (u(), S(g, {
494
+ onClick: (r) => p(u)
495
+ }, R(u.name), 9, re),
496
+ u.resultType === "LIST" ? (d(), k(y, {
544
497
  key: 0,
545
498
  placement: "right",
546
499
  width: 210,
547
500
  trigger: "hover"
548
501
  }, {
549
- reference: y(() => [
502
+ reference: m(() => [
550
503
  le
551
504
  ]),
552
- default: y(() => [
505
+ default: m(() => [
553
506
  ce
554
507
  ]),
555
508
  _: 1
@@ -561,16 +514,16 @@ const P = (e, t) => {
561
514
  /* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
562
515
  )),
563
516
  C(" 标题下的内容 "),
564
- d("div", de, [
565
- (u(!0), w(
566
- O,
517
+ c("div", de, [
518
+ (d(!0), w(
519
+ T,
567
520
  null,
568
- F(p.children, (r, B) => (u(), w("div", {
521
+ F(u.children, (r, B) => (d(), w("div", {
569
522
  key: B,
570
523
  style: { "flex-grow": "1" }
571
524
  }, [
572
- o.isShowContentOperate && p.resultType === "LIST" ? (u(), S(
573
- g,
525
+ n.isShowContentOperate && u.resultType === "LIST" ? (d(), k(
526
+ y,
574
527
  {
575
528
  key: 0,
576
529
  "popper-class": "operate-popper",
@@ -579,8 +532,8 @@ const P = (e, t) => {
579
532
  trigger: "contextmenu"
580
533
  },
581
534
  {
582
- reference: y(() => [
583
- d(
535
+ reference: m(() => [
536
+ c(
584
537
  "p",
585
538
  {
586
539
  class: A([{ "choose-item": r.isChoose }, "item-block"]),
@@ -591,18 +544,18 @@ const P = (e, t) => {
591
544
  /* TEXT, CLASS */
592
545
  )
593
546
  ]),
594
- default: y(() => [
595
- d("div", ue, [
596
- d("p", {
547
+ default: m(() => [
548
+ c("div", ue, [
549
+ c("p", {
597
550
  class: "point",
598
551
  style: { margin: "0" },
599
552
  onClick: (b) => h(r, "TABLE")
600
553
  }, "表格", 8, pe),
601
- d("p", {
554
+ c("p", {
602
555
  class: "point",
603
556
  style: { margin: "0" },
604
557
  onClick: (b) => h(r, "LIST")
605
- }, "列表", 8, fe)
558
+ }, "列表", 8, he)
606
559
  ])
607
560
  ]),
608
561
  _: 2
@@ -611,8 +564,8 @@ const P = (e, t) => {
611
564
  1024
612
565
  /* DYNAMIC_SLOTS */
613
566
  )) : C("v-if", !0),
614
- o.isShowContentOperate ? (u(), S(
615
- g,
567
+ n.isShowContentOperate ? (d(), k(
568
+ y,
616
569
  {
617
570
  key: 1,
618
571
  "popper-class": "operate-popper",
@@ -621,23 +574,23 @@ const P = (e, t) => {
621
574
  trigger: "contextmenu"
622
575
  },
623
576
  {
624
- reference: y(() => [
625
- d("p", {
577
+ reference: m(() => [
578
+ c("p", {
626
579
  class: A([{ "choose-item": r.isChoose }, "item-block"]),
627
- onClick: (b) => a(p, r)
580
+ onClick: (b) => a(u, r)
628
581
  }, R(r.childName), 11, me)
629
582
  ]),
630
- default: y(() => [
631
- d("div", he, [
632
- d("p", {
583
+ default: m(() => [
584
+ c("div", fe, [
585
+ c("p", {
633
586
  class: "point",
634
587
  style: { margin: "0" },
635
588
  onClick: (b) => f(r)
636
- }, "编辑", 8, ve),
637
- d("p", {
589
+ }, "编辑", 8, _e),
590
+ c("p", {
638
591
  style: { color: "var(--ik-error)", cursor: "pointer", margin: "0" },
639
- onClick: (b) => m(r)
640
- }, " 删除 ", 8, _e)
592
+ onClick: (b) => g(r)
593
+ }, " 删除 ", 8, ve)
641
594
  ])
642
595
  ]),
643
596
  _: 2
@@ -645,11 +598,11 @@ const P = (e, t) => {
645
598
  },
646
599
  1024
647
600
  /* DYNAMIC_SLOTS */
648
- )) : (u(), w("p", {
601
+ )) : (d(), w("p", {
649
602
  key: 2,
650
603
  class: A([{ "choose-item": r.isChoose }, "item-block"]),
651
- onClick: (b) => a(p, r)
652
- }, R(r.childName), 11, ye))
604
+ onClick: (b) => a(u, r)
605
+ }, R(r.childName), 11, ge))
653
606
  ]))),
654
607
  128
655
608
  /* KEYED_FRAGMENT */
@@ -663,7 +616,7 @@ const P = (e, t) => {
663
616
  };
664
617
  }
665
618
  });
666
- const we = /* @__PURE__ */ P(ge, [["__scopeId", "data-v-af8d674c"]]), ke = { class: "template-config" }, Se = { class: "template-config-data" }, Ce = { class: "template-panel" }, De = /* @__PURE__ */ I({
619
+ const we = /* @__PURE__ */ P(ye, [["__scopeId", "data-v-af8d674c"]]), Se = { class: "template-config" }, ke = { class: "template-config-data" }, Ce = { class: "template-panel" }, De = /* @__PURE__ */ I({
667
620
  __name: "IkTemplateOfficeConfig",
668
621
  props: {
669
622
  // 标题
@@ -735,38 +688,38 @@ const we = /* @__PURE__ */ P(ge, [["__scopeId", "data-v-af8d674c"]]), ke = { cla
735
688
  }
736
689
  },
737
690
  emits: ["handleSearchDataBlock", "handleClickBlockData"],
738
- setup(e, { expose: t, emit: o }) {
739
- j((v) => ({
691
+ setup(e, { expose: t, emit: n }) {
692
+ W((_) => ({
740
693
  f1632ab6: e.contentHeight
741
694
  }));
742
- const i = e, s = o, n = T(i.tabsData[0].id), c = (v) => {
743
- f.value = "", n.value = v, v && s("handleSearchDataBlock", "", n.value);
744
- }, f = T(""), m = () => {
745
- s("handleSearchDataBlock", f.value, n.value);
746
- }, a = (v, _) => {
747
- s("handleClickBlockData", v, _);
695
+ const i = e, s = n, o = O(i.tabsData[0].id), p = (_) => {
696
+ f.value = "", o.value = _, _ && s("handleSearchDataBlock", "", o.value);
697
+ }, f = O(""), g = () => {
698
+ s("handleSearchDataBlock", f.value, o.value);
699
+ }, a = (_, v) => {
700
+ s("handleClickBlockData", _, v);
748
701
  };
749
- return t({ handleSendMessage: (v) => {
750
- window[0][0].postMessage(JSON.stringify({ type: "INSERT_TEXT", text: v }), "*");
751
- } }), (v, _) => {
752
- const l = D("el-tab-pane"), k = D("el-tabs"), g = D("el-input"), p = D("el-col"), q = D("el-row");
753
- return u(), w("div", ke, [
702
+ return t({ handleSendMessage: (_) => {
703
+ window[0][0].postMessage(JSON.stringify({ type: "INSERT_TEXT", text: _ }), "*");
704
+ } }), (_, v) => {
705
+ const l = D("el-tab-pane"), S = D("el-tabs"), y = D("el-input"), u = D("el-col"), q = D("el-row");
706
+ return d(), w("div", Se, [
754
707
  E(q, { gutter: 10 }, {
755
- default: y(() => [
756
- E(p, { span: 6 }, {
757
- default: y(() => [
758
- d("div", Se, [
759
- i.isShowTabs ? (u(), S(k, {
708
+ default: m(() => [
709
+ E(u, { span: 6 }, {
710
+ default: m(() => [
711
+ c("div", ke, [
712
+ i.isShowTabs ? (d(), k(S, {
760
713
  key: 0,
761
- modelValue: n.value,
762
- "onUpdate:modelValue": _[0] || (_[0] = (r) => n.value = r),
763
- onTabClick: _[1] || (_[1] = (r) => c(r.props.name))
714
+ modelValue: o.value,
715
+ "onUpdate:modelValue": v[0] || (v[0] = (r) => o.value = r),
716
+ onTabClick: v[1] || (v[1] = (r) => p(r.props.name))
764
717
  }, {
765
- default: y(() => [
766
- (u(!0), w(
767
- O,
718
+ default: m(() => [
719
+ (d(!0), w(
720
+ T,
768
721
  null,
769
- F(i.tabsData, (r, B) => (u(), S(l, {
722
+ F(i.tabsData, (r, B) => (d(), k(l, {
770
723
  key: B,
771
724
  label: r.label,
772
725
  name: r.id
@@ -778,17 +731,17 @@ const we = /* @__PURE__ */ P(ge, [["__scopeId", "data-v-af8d674c"]]), ke = { cla
778
731
  _: 1
779
732
  /* STABLE */
780
733
  }, 8, ["modelValue"])) : C("v-if", !0),
781
- i.isShowSearchCondition ? (u(), S(g, {
734
+ i.isShowSearchCondition ? (d(), k(y, {
782
735
  key: 1,
783
736
  modelValue: f.value,
784
- "onUpdate:modelValue": _[2] || (_[2] = (r) => f.value = r),
737
+ "onUpdate:modelValue": v[2] || (v[2] = (r) => f.value = r),
785
738
  placeholder: "请输入关键字",
786
739
  clearable: "",
787
- onInput: _[3] || (_[3] = (r) => m())
740
+ onInput: v[3] || (v[3] = (r) => g())
788
741
  }, null, 8, ["modelValue"])) : C("v-if", !0),
789
742
  E(we, {
790
743
  data: i.tableData,
791
- type: n.value,
744
+ type: o.value,
792
745
  defaultProps: i.defaultProps,
793
746
  onHandleChooseDataBlock: a,
794
747
  isShowTitleOperate: i.isShowTitleOperate,
@@ -799,10 +752,10 @@ const we = /* @__PURE__ */ P(ge, [["__scopeId", "data-v-af8d674c"]]), ke = { cla
799
752
  _: 1
800
753
  /* STABLE */
801
754
  }),
802
- E(p, { span: 18 }, {
803
- default: y(() => [
804
- d("div", Ce, [
805
- i.visible ? (u(), S($(ee), {
755
+ E(u, { span: 18 }, {
756
+ default: m(() => [
757
+ c("div", Ce, [
758
+ i.visible ? (d(), k($(ee), {
806
759
  key: 0,
807
760
  "config-options": i.onlyOfficeConfig,
808
761
  documentServerUrl: i.documentServerUrl,