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.
- package/dist/IKDetailPreviewFiles/ik.index.es.js +329 -373
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +381 -425
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +231 -275
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +422 -466
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkOnlyOffice/ik.index.es.js +80 -127
- package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +144 -188
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +194 -241
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/ik.index.es.js +314 -352
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/index.es.js +5064 -5102
- package/dist/index.umd.js +56 -56
- package/dist/src/components/IkOnlyOffice/index.d.ts +0 -18
- package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +0 -18
- package/dist/src/components/IkUploadFile/index.d.ts +19 -0
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +9 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,99 +1,99 @@
|
|
|
1
|
-
import { defineComponent as I, openBlock as
|
|
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 = (
|
|
3
|
+
if (e.install = (n) => {
|
|
4
4
|
for (const i of [e, ...Object.values(t ?? {})])
|
|
5
|
-
|
|
5
|
+
n.component(i.name, i);
|
|
6
6
|
}, t)
|
|
7
|
-
for (const [
|
|
8
|
-
e[
|
|
7
|
+
for (const [n, i] of Object.entries(t))
|
|
8
|
+
e[n] = i;
|
|
9
9
|
return e;
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
function s(
|
|
13
|
-
return
|
|
14
|
-
|
|
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 (
|
|
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 (
|
|
22
|
-
|
|
21
|
+
} catch (_) {
|
|
22
|
+
p(_);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function g(h) {
|
|
26
26
|
try {
|
|
27
27
|
a(i.throw(h));
|
|
28
|
-
} catch (
|
|
29
|
-
|
|
28
|
+
} catch (_) {
|
|
29
|
+
p(_);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
function a(h) {
|
|
33
|
-
h.done ?
|
|
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
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
41
|
-
throw
|
|
42
|
-
return
|
|
43
|
-
}, trys: [], ops: [] }, i, s,
|
|
44
|
-
return
|
|
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
|
-
}),
|
|
46
|
+
}), p;
|
|
47
47
|
function f(a) {
|
|
48
48
|
return function(h) {
|
|
49
|
-
return
|
|
49
|
+
return g([a, h]);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function g(a) {
|
|
53
53
|
if (i)
|
|
54
54
|
throw new TypeError("Generator is already executing.");
|
|
55
|
-
for (;
|
|
55
|
+
for (; p && (p = 0, a[0] && (n = 0)), n; )
|
|
56
56
|
try {
|
|
57
|
-
if (i = 1, s && (
|
|
58
|
-
return
|
|
59
|
-
switch (s = 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
|
-
|
|
62
|
+
o = a;
|
|
63
63
|
break;
|
|
64
64
|
case 4:
|
|
65
|
-
return
|
|
65
|
+
return n.label++, { value: a[1], done: !1 };
|
|
66
66
|
case 5:
|
|
67
|
-
|
|
67
|
+
n.label++, s = a[1], a = [0];
|
|
68
68
|
continue;
|
|
69
69
|
case 7:
|
|
70
|
-
a =
|
|
70
|
+
a = n.ops.pop(), n.trys.pop();
|
|
71
71
|
continue;
|
|
72
72
|
default:
|
|
73
|
-
if (
|
|
74
|
-
|
|
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 && (!
|
|
78
|
-
|
|
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 &&
|
|
82
|
-
|
|
81
|
+
if (a[0] === 6 && n.label < o[1]) {
|
|
82
|
+
n.label = o[1], o = a;
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
|
-
if (
|
|
86
|
-
|
|
85
|
+
if (o && n.label < o[2]) {
|
|
86
|
+
n.label = o[2], n.ops.push(a);
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
o[2] && n.ops.pop(), n.trys.pop();
|
|
90
90
|
continue;
|
|
91
91
|
}
|
|
92
|
-
a = t.call(e,
|
|
92
|
+
a = t.call(e, n);
|
|
93
93
|
} catch (h) {
|
|
94
94
|
a = [6, h], s = 0;
|
|
95
95
|
} finally {
|
|
96
|
-
i =
|
|
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
|
|
105
|
-
return
|
|
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
|
|
111
|
-
if (
|
|
112
|
-
var
|
|
113
|
-
var
|
|
114
|
-
if (!
|
|
115
|
-
if (clearInterval(
|
|
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
|
-
|
|
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 (
|
|
126
|
-
console.error(
|
|
125
|
+
} catch (g) {
|
|
126
|
+
console.error(g);
|
|
127
127
|
}
|
|
128
128
|
})];
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
|
-
}, x = function(e, t,
|
|
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"),
|
|
135
|
-
}, s.onerror = function(
|
|
136
|
-
s.removeAttribute("loading"), i(
|
|
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
|
|
193
|
-
K(
|
|
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
|
|
237
|
-
if (window.DocsAPI || this.onError(-3), !((e = window == null ? void 0 : window.DocEditor) === null || e === void 0) && e.instances[
|
|
238
|
-
console.log("Skip loading. Instance already exists",
|
|
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(
|
|
278
|
-
window.DocEditor.instances[
|
|
279
|
-
} catch (
|
|
280
|
-
console.error(
|
|
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,
|
|
309
|
-
return
|
|
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
|
-
|
|
345
|
-
const t = e, o = T({
|
|
334
|
+
const t = e, n = O({
|
|
346
335
|
width: "100%",
|
|
347
336
|
height: "100%",
|
|
348
|
-
|
|
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 (
|
|
341
|
+
return (s, o) => (d(), w(
|
|
389
342
|
"div",
|
|
390
343
|
{
|
|
391
|
-
style:
|
|
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:
|
|
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
|
|
361
|
+
const n = e.__vccOpts || e;
|
|
409
362
|
for (const [i, s] of t)
|
|
410
|
-
|
|
411
|
-
return
|
|
412
|
-
}, Y = /* @__PURE__ */ P(Q, [["__scopeId", "data-v-
|
|
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__ */
|
|
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"],
|
|
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
|
|
404
|
+
const n = e, i = t, s = (l) => {
|
|
452
405
|
i("handleTitleEdit", l);
|
|
453
|
-
},
|
|
406
|
+
}, o = (l) => {
|
|
454
407
|
i("handleTitleDel", l);
|
|
455
|
-
},
|
|
408
|
+
}, p = (l) => {
|
|
456
409
|
i("handleGetTitleData", l);
|
|
457
410
|
}, f = (l) => {
|
|
458
411
|
i("handleDataBlockEdit", l);
|
|
459
|
-
},
|
|
412
|
+
}, g = (l) => {
|
|
460
413
|
i("handleDataBlockDel", l);
|
|
461
|
-
}, a = (l,
|
|
462
|
-
for (const
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}, h = (l,
|
|
466
|
-
i("handleDifferentTypeDataBlock", l,
|
|
467
|
-
},
|
|
468
|
-
let
|
|
469
|
-
name:
|
|
470
|
-
children:
|
|
471
|
-
childName:
|
|
472
|
-
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
|
-
|
|
476
|
-
},
|
|
477
|
-
return
|
|
478
|
-
() =>
|
|
428
|
+
v.value = S;
|
|
429
|
+
}, v = O(n.data);
|
|
430
|
+
return U(
|
|
431
|
+
() => n.data,
|
|
479
432
|
(l) => {
|
|
480
|
-
|
|
433
|
+
_(l);
|
|
481
434
|
},
|
|
482
435
|
{ immediate: !0 }
|
|
483
436
|
), document.addEventListener("contextmenu", (l) => {
|
|
484
|
-
|
|
485
|
-
}), (l,
|
|
486
|
-
const
|
|
487
|
-
return
|
|
488
|
-
(
|
|
489
|
-
|
|
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(
|
|
444
|
+
F(v.value, (u, q) => (d(), w("div", {
|
|
492
445
|
key: q,
|
|
493
446
|
class: "mt-4"
|
|
494
447
|
}, [
|
|
495
|
-
e.isShowTitleOperate ? (
|
|
496
|
-
|
|
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:
|
|
506
|
-
|
|
458
|
+
reference: m(() => [
|
|
459
|
+
c(
|
|
507
460
|
"span",
|
|
508
461
|
ae,
|
|
509
|
-
R(
|
|
462
|
+
R(u.name),
|
|
510
463
|
1
|
|
511
464
|
/* TEXT */
|
|
512
465
|
)
|
|
513
466
|
]),
|
|
514
|
-
default:
|
|
515
|
-
|
|
516
|
-
|
|
467
|
+
default: m(() => [
|
|
468
|
+
c("div", ne, [
|
|
469
|
+
c("p", {
|
|
517
470
|
class: "point",
|
|
518
471
|
style: { margin: "0" },
|
|
519
|
-
onClick: (r) => s(
|
|
472
|
+
onClick: (r) => s(u)
|
|
520
473
|
}, "编辑", 8, oe),
|
|
521
|
-
|
|
474
|
+
c("p", {
|
|
522
475
|
style: { color: "var(--ik-error)", margin: "0" },
|
|
523
476
|
class: "point",
|
|
524
|
-
onClick: (r) =>
|
|
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
|
-
)) : (
|
|
534
|
-
|
|
486
|
+
)) : (d(), w(
|
|
487
|
+
T,
|
|
535
488
|
{ key: 1 },
|
|
536
489
|
[
|
|
537
490
|
C(" 不能操作的标题 "),
|
|
538
|
-
|
|
539
|
-
|
|
491
|
+
c("div", se, [
|
|
492
|
+
c("p", {
|
|
540
493
|
class: "mb-2 point",
|
|
541
|
-
onClick: (r) =>
|
|
542
|
-
}, R(
|
|
543
|
-
|
|
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:
|
|
502
|
+
reference: m(() => [
|
|
550
503
|
le
|
|
551
504
|
]),
|
|
552
|
-
default:
|
|
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
|
-
|
|
565
|
-
(
|
|
566
|
-
|
|
517
|
+
c("div", de, [
|
|
518
|
+
(d(!0), w(
|
|
519
|
+
T,
|
|
567
520
|
null,
|
|
568
|
-
F(
|
|
521
|
+
F(u.children, (r, B) => (d(), w("div", {
|
|
569
522
|
key: B,
|
|
570
523
|
style: { "flex-grow": "1" }
|
|
571
524
|
}, [
|
|
572
|
-
|
|
573
|
-
|
|
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:
|
|
583
|
-
|
|
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:
|
|
595
|
-
|
|
596
|
-
|
|
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
|
-
|
|
554
|
+
c("p", {
|
|
602
555
|
class: "point",
|
|
603
556
|
style: { margin: "0" },
|
|
604
557
|
onClick: (b) => h(r, "LIST")
|
|
605
|
-
}, "列表", 8,
|
|
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
|
-
|
|
615
|
-
|
|
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:
|
|
625
|
-
|
|
577
|
+
reference: m(() => [
|
|
578
|
+
c("p", {
|
|
626
579
|
class: A([{ "choose-item": r.isChoose }, "item-block"]),
|
|
627
|
-
onClick: (b) => a(
|
|
580
|
+
onClick: (b) => a(u, r)
|
|
628
581
|
}, R(r.childName), 11, me)
|
|
629
582
|
]),
|
|
630
|
-
default:
|
|
631
|
-
|
|
632
|
-
|
|
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,
|
|
637
|
-
|
|
589
|
+
}, "编辑", 8, _e),
|
|
590
|
+
c("p", {
|
|
638
591
|
style: { color: "var(--ik-error)", cursor: "pointer", margin: "0" },
|
|
639
|
-
onClick: (b) =>
|
|
640
|
-
}, " 删除 ", 8,
|
|
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
|
-
)) : (
|
|
601
|
+
)) : (d(), w("p", {
|
|
649
602
|
key: 2,
|
|
650
603
|
class: A([{ "choose-item": r.isChoose }, "item-block"]),
|
|
651
|
-
onClick: (b) => a(
|
|
652
|
-
}, R(r.childName), 11,
|
|
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(
|
|
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:
|
|
739
|
-
|
|
691
|
+
setup(e, { expose: t, emit: n }) {
|
|
692
|
+
W((_) => ({
|
|
740
693
|
f1632ab6: e.contentHeight
|
|
741
694
|
}));
|
|
742
|
-
const i = e, s =
|
|
743
|
-
f.value = "",
|
|
744
|
-
}, f =
|
|
745
|
-
s("handleSearchDataBlock", f.value,
|
|
746
|
-
}, a = (
|
|
747
|
-
s("handleClickBlockData",
|
|
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: (
|
|
750
|
-
window[0][0].postMessage(JSON.stringify({ type: "INSERT_TEXT", text:
|
|
751
|
-
} }), (
|
|
752
|
-
const l = D("el-tab-pane"),
|
|
753
|
-
return
|
|
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:
|
|
756
|
-
E(
|
|
757
|
-
default:
|
|
758
|
-
|
|
759
|
-
i.isShowTabs ? (
|
|
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:
|
|
762
|
-
"onUpdate:modelValue":
|
|
763
|
-
onTabClick:
|
|
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:
|
|
766
|
-
(
|
|
767
|
-
|
|
718
|
+
default: m(() => [
|
|
719
|
+
(d(!0), w(
|
|
720
|
+
T,
|
|
768
721
|
null,
|
|
769
|
-
F(i.tabsData, (r, B) => (
|
|
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 ? (
|
|
734
|
+
i.isShowSearchCondition ? (d(), k(y, {
|
|
782
735
|
key: 1,
|
|
783
736
|
modelValue: f.value,
|
|
784
|
-
"onUpdate:modelValue":
|
|
737
|
+
"onUpdate:modelValue": v[2] || (v[2] = (r) => f.value = r),
|
|
785
738
|
placeholder: "请输入关键字",
|
|
786
739
|
clearable: "",
|
|
787
|
-
onInput:
|
|
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:
|
|
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(
|
|
803
|
-
default:
|
|
804
|
-
|
|
805
|
-
i.visible ? (
|
|
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,
|