iking-web-ui-pro 0.2.52 → 0.2.53
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/IKExpandCollapse/ik.index.es.js +3 -3
- package/dist/IKExpandCollapse/ik.index.umd.js +1 -1
- package/dist/IKExpandCollapse/style.css +1 -1
- package/dist/IKHorizontalStepBar/ik.index.es.js +93 -93
- package/dist/IKHorizontalStepBar/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +2098 -2017
- package/dist/IKPreviewFile/ik.index.umd.js +49 -49
- package/dist/IKPreviewFile/style.css +1 -1
- package/dist/IKSearch/ik.index.es.js +1035 -1035
- package/dist/IKSearch/ik.index.umd.js +2 -2
- package/dist/IKVerticalStepBar/ik.index.es.js +3 -3
- package/dist/IKVerticalStepBar/ik.index.umd.js +3 -3
- package/dist/IKVerticalStepBar/style.css +1 -1
- package/dist/{IKApprovalProcess → IkApprovalProcess}/ik.index.es.js +853 -853
- package/dist/IkApprovalProcess/ik.index.umd.js +1 -0
- package/dist/{IKApprovalProcess → IkApprovalProcess}/style.css +1 -1
- package/dist/{IKApprovalProcessDetail → IkApprovalProcessDetail}/ik.index.es.js +2794 -2713
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +226 -0
- package/dist/IkApprovalProcessDetail/style.css +1 -0
- package/dist/IkBaseDialog/ik.index.es.js +4 -4
- package/dist/IkBaseDialog/ik.index.umd.js +1 -1
- package/dist/IkBaseDialog/style.css +1 -1
- package/dist/IkBottomOperate/ik.index.es.js +60 -60
- package/dist/IkBottomOperate/ik.index.umd.js +1 -1
- package/dist/IkBottomOperate/style.css +1 -1
- package/dist/IkBtnContent/style.css +1 -1
- package/dist/IkBtnSetting/ik.index.es.js +111 -111
- package/dist/IkBtnSetting/ik.index.umd.js +1 -1
- package/dist/IkBtnSetting/style.css +1 -1
- package/dist/{IKCalendar → IkCalendar}/ik.index.es.js +2372 -2355
- package/dist/IkCalendar/ik.index.umd.js +1 -0
- package/dist/{IKCalendar → IkCalendar}/style.css +1 -1
- package/dist/IkCollapseCard/ik.index.es.js +4 -4
- package/dist/IkCollapseCard/ik.index.umd.js +1 -1
- package/dist/IkCollapseCard/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +2016 -1935
- package/dist/IkDescription/ik.index.umd.js +49 -49
- package/dist/IkDescription/style.css +1 -1
- package/dist/IkDetailPreviewFiles/ik.index.es.js +2317 -2236
- package/dist/IkDetailPreviewFiles/ik.index.umd.js +50 -50
- package/dist/IkDetailPreviewFiles/style.css +1 -1
- package/dist/IkFileIcon/ik.index.es.js +394 -394
- package/dist/IkFileIcon/ik.index.umd.js +1 -1
- package/dist/IkFullCalendar/ik.index.es.js +601 -584
- package/dist/IkFullCalendar/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/ik.index.es.js +3 -3
- package/dist/IkIconPicker/ik.index.umd.js +1 -1
- package/dist/IkIconPicker/style.css +1 -1
- package/dist/IkMonacoEditor/ik.index.es.js +30 -30
- package/dist/IkMonacoEditor/ik.index.umd.js +3 -3
- package/dist/IkMonacoEditor/style.css +1 -1
- package/dist/IkPageFull/ik.index.es.js +1467 -1467
- package/dist/IkPageFull/ik.index.umd.js +3 -3
- package/dist/IkPageFull/style.css +1 -1
- package/dist/IkPickerUser/ik.index.es.js +839 -839
- package/dist/IkPickerUser/ik.index.umd.js +1 -1
- package/dist/IkPlayer/ik.index.es.js +1062 -981
- package/dist/IkPlayer/ik.index.umd.js +52 -52
- package/dist/IkPreviewFileDialog/ik.index.es.js +791 -710
- package/dist/IkPreviewFileDialog/ik.index.umd.js +50 -50
- package/dist/IkPreviewFileDialog/style.css +1 -1
- package/dist/IkRadioGroup/ik.index.es.js +5 -5
- package/dist/IkRadioGroup/ik.index.umd.js +1 -1
- package/dist/IkRadioGroup/style.css +1 -1
- package/dist/IkSchedule/ik.index.es.js +1553 -1536
- package/dist/IkSchedule/ik.index.umd.js +1 -1
- package/dist/IkSchedule/style.css +1 -1
- package/dist/IkSideText/ik.index.es.js +29 -29
- package/dist/IkSideText/ik.index.umd.js +1 -1
- package/dist/IkSideText/style.css +1 -1
- package/dist/IkSvgIcon/ik.index.es.js +9 -9
- package/dist/IkSvgIcon/ik.index.umd.js +1 -1
- package/dist/IkSvgIcon/style.css +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +108 -108
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkTinymce/ik.index.es.js +26332 -26791
- package/dist/IkTinymce/ik.index.umd.js +61 -61
- package/dist/IkUploadFile/ik.index.es.js +1341 -1260
- package/dist/IkUploadFile/ik.index.umd.js +50 -50
- package/dist/IkUploadFile/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +278 -278
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +37603 -37964
- package/dist/index.umd.js +133 -133
- package/dist/src/components/IKExpandCollapse/index.d.ts +5 -5
- package/dist/src/components/IKExpandCollapse/src/IKExpandCollapse.vue.d.ts +5 -5
- package/dist/src/components/IKHorizontalStepBar/index.d.ts +30 -90
- package/dist/src/components/IKHorizontalStepBar/src/IKHorizontalStepBar.vue.d.ts +7 -7
- package/dist/src/components/IKPreviewFile/index.d.ts +13 -101
- package/dist/src/components/IKPreviewFile/src/IkPreviewFile.vue.d.ts +7 -7
- package/dist/src/components/IKSearch/index.d.ts +24 -84
- package/dist/src/components/IKSearch/src/IKSearch.vue.d.ts +10 -10
- package/dist/src/components/IKSearch/src/IkSearchAuto.d.ts +5 -5
- package/dist/src/components/IKSearchHead/index.d.ts +5 -5
- package/dist/src/components/IKSearchHead/src/IKSearchHead.vue.d.ts +5 -5
- package/dist/src/components/IKVerticalStepBar/index.d.ts +5 -5
- package/dist/src/components/IKVerticalStepBar/src/IKVerticalStepBar.vue.d.ts +5 -5
- package/dist/src/components/IkApprovalProcess/index.d.ts +7 -7
- package/dist/src/components/IkApprovalProcess/src/IKApprovalProcess.vue.d.ts +7 -7
- package/dist/src/components/IkApprovalProcessDetail/index.d.ts +5 -5
- package/dist/src/components/IkApprovalProcessDetail/src/IKApprovalProcessDetail.vue.d.ts +5 -5
- package/dist/src/components/IkAutoCard/index.d.ts +6 -12
- package/dist/src/components/IkAutoCard/src/IkAutoCard.vue.d.ts +4 -4
- package/dist/src/components/IkBaseDialog/index.d.ts +6 -35
- package/dist/src/components/IkBaseDialog/src/CloseIcon.vue.d.ts +4 -4
- package/dist/src/components/IkBaseDialog/src/IkBaseDialog.vue.d.ts +4 -4
- package/dist/src/components/IkBottomOperate/index.d.ts +15 -43
- package/dist/src/components/IkBottomOperate/src/IkBottomOperate.vue.d.ts +7 -7
- package/dist/src/components/IkBtnContent/index.d.ts +7 -5
- package/dist/src/components/IkBtnContent/src/index.d.ts +7 -5
- package/dist/src/components/IkBtnSetting/index.d.ts +5 -5
- package/dist/src/components/IkBtnSetting/src/IkBtnSetting.vue.d.ts +5 -5
- package/dist/src/components/IkCalendar/index.d.ts +5 -5
- package/dist/src/components/IkCalendar/src/IKCalendar.vue.d.ts +5 -5
- package/dist/src/components/IkCollapseCard/index.d.ts +6 -12
- package/dist/src/components/IkCollapseCard/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkCurrencyInput/index.d.ts +5 -5
- package/dist/src/components/IkCurrencyInput/src/IkCurrencyInput.vue.d.ts +5 -5
- package/dist/src/components/IkDescription/index.d.ts +6 -39
- package/dist/src/components/IkDescription/src/IkDescription.vue.d.ts +4 -4
- package/dist/src/components/IkDetailPreviewFiles/index.d.ts +4 -4
- package/dist/src/components/IkDetailPreviewFiles/src/IkDetailPreviewFiles.vue.d.ts +4 -4
- package/dist/src/components/IkDragList/index.d.ts +13 -130
- package/dist/src/components/IkDragList/src/IkDragList.vue.d.ts +6 -6
- package/dist/src/components/IkEmpty/index.d.ts +6 -19
- package/dist/src/components/IkEmpty/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkFileIcon/index.d.ts +4 -4
- package/dist/src/components/IkFileIcon/src/IkFileIcon.vue.d.ts +4 -4
- package/dist/src/components/IkFullCalendar/index.d.ts +6 -6
- package/dist/src/components/IkIconPicker/index.d.ts +4 -4
- package/dist/src/components/IkIconPicker/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkMonacoEditor/index.d.ts +167 -10
- package/dist/src/components/IkMonacoEditor/src/index.vue.d.ts +167 -10
- package/dist/src/components/IkOnlyOffice/index.d.ts +4 -4
- package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +4 -4
- package/dist/src/components/IkPageFull/index.d.ts +54 -143
- package/dist/src/components/IkPageFull/src/IkDialog.d.ts +369 -5
- package/dist/src/components/IkPageFull/src/IkPage.vue.d.ts +5 -5
- package/dist/src/components/IkPageFull/src/IkPageHead.vue.d.ts +5 -5
- package/dist/src/components/IkPageFull/src/IkPageTable.vue.d.ts +8 -8
- package/dist/src/components/IkPageFull/src/IkSearchAuto.d.ts +6 -6
- package/dist/src/components/IkPageFull/src/index.vue.d.ts +20 -14
- package/dist/src/components/IkPageTabs/index.d.ts +13 -38
- package/dist/src/components/IkPageTabs/src/IkPageTabs.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/index.d.ts +10 -10
- package/dist/src/components/IkPickerUser/src/avatar/Avatar.vue.d.ts +4 -4
- package/dist/src/components/IkPickerUser/src/list/GroupList.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/src/list/PostList.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/src/list/RoleList.vue.d.ts +6 -6
- package/dist/src/components/IkPickerUser/src/picker.vue.d.ts +10 -10
- package/dist/src/components/IkPickerUser/src/svg/close_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/group_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/post_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/role_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/svg/search_svg.vue.d.ts +1 -1
- package/dist/src/components/IkPickerUser/src/use-picker-data.d.ts +1 -1
- package/dist/src/components/IkPlayer/index.d.ts +10 -26
- package/dist/src/components/IkPlayer/src/Player.vue.d.ts +5 -5
- package/dist/src/components/IkPreviewFileDialog/index.d.ts +4 -4
- package/dist/src/components/IkPreviewFileDialog/src/IkPreviewFileDialog.vue.d.ts +4 -4
- package/dist/src/components/IkPrintConfig/index.d.ts +5 -5
- package/dist/src/components/IkPrintView/index.d.ts +5 -5
- package/dist/src/components/IkRadioGroup/index.d.ts +4 -4
- package/dist/src/components/IkRadioGroup/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkSchedule/index.d.ts +17 -48
- package/dist/src/components/IkSelectTag/index.d.ts +10 -25
- package/dist/src/components/IkSelectTag/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkSideText/IkLinearIcon.vue.d.ts +4 -4
- package/dist/src/components/IkSideText/IkSideText.vue.d.ts +4 -4
- package/dist/src/components/IkSideText/index.d.ts +4 -4
- package/dist/src/components/IkStatu/index.d.ts +5 -5
- package/dist/src/components/IkStatu/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkStatuOver/index.d.ts +5 -5
- package/dist/src/components/IkStatuOver/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkSvgIcon/index.d.ts +12 -12
- package/dist/src/components/IkSvgIcon/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkTemplateOfficeConfig/index.d.ts +6 -6
- package/dist/src/components/IkTinymce/index.d.ts +5 -5
- package/dist/src/components/IkTinymce/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkTooltip/index.d.ts +6 -19
- package/dist/src/components/IkTooltip/src/index.vue.d.ts +4 -4
- package/dist/src/components/IkTree/IkTree.vue.d.ts +807 -127
- package/dist/src/components/IkTree/index.d.ts +2630 -611
- package/dist/src/components/IkUploadFile/index.d.ts +14 -135
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +7 -7
- package/dist/src/components/IkUploadImage/index.d.ts +10 -79
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +5 -5
- package/dist/src/components/IkUploadImage/src/loading.vue.d.ts +1 -1
- package/dist/src/components/Provider/ProviderConfig.vue.d.ts +4 -4
- package/dist/src/components/Provider/index.d.ts +6 -27
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/IKApprovalProcess/ik.index.umd.js +0 -1
- package/dist/IKApprovalProcessDetail/ik.index.umd.js +0 -226
- package/dist/IKApprovalProcessDetail/style.css +0 -1
- package/dist/IKCalendar/ik.index.umd.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as q, openBlock as d, createElementBlock as
|
|
1
|
+
import { defineComponent as q, openBlock as d, createElementBlock as S, ref as O, normalizeStyle as M, createVNode as E, unref as x, watch as H, resolveComponent as D, Fragment as T, renderList as F, createBlock as k, withCtx as g, createElementVNode as c, toDisplayString as R, createCommentVNode as C, normalizeClass as A, useCssVars as U } from "vue";
|
|
2
2
|
const $ = (e, t) => {
|
|
3
3
|
if (e.install = (n) => {
|
|
4
4
|
for (const i of [e, ...Object.values(t ?? {})])
|
|
@@ -8,7 +8,7 @@ const $ = (e, t) => {
|
|
|
8
8
|
e[n] = i;
|
|
9
9
|
return e;
|
|
10
10
|
};
|
|
11
|
-
function
|
|
11
|
+
function N(e, t, n, i) {
|
|
12
12
|
function s(o) {
|
|
13
13
|
return o instanceof n ? o : new n(function(p) {
|
|
14
14
|
p(o);
|
|
@@ -22,7 +22,7 @@ function G(e, t, n, i) {
|
|
|
22
22
|
p(v);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function y(h) {
|
|
26
26
|
try {
|
|
27
27
|
a(i.throw(h));
|
|
28
28
|
} catch (v) {
|
|
@@ -30,12 +30,12 @@ function G(e, t, n, i) {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
function a(h) {
|
|
33
|
-
h.done ? o(h.value) : s(h.value).then(f,
|
|
33
|
+
h.done ? o(h.value) : s(h.value).then(f, y);
|
|
34
34
|
}
|
|
35
35
|
a((i = i.apply(e, t || [])).next());
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function j(e, t) {
|
|
39
39
|
var n = { label: 0, sent: function() {
|
|
40
40
|
if (o[0] & 1)
|
|
41
41
|
throw o[1];
|
|
@@ -46,10 +46,10 @@ function z(e, t) {
|
|
|
46
46
|
}), p;
|
|
47
47
|
function f(a) {
|
|
48
48
|
return function(h) {
|
|
49
|
-
return
|
|
49
|
+
return y([a, h]);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function y(a) {
|
|
53
53
|
if (i)
|
|
54
54
|
throw new TypeError("Generator is already executing.");
|
|
55
55
|
for (; p && (p = 0, a[0] && (n = 0)), n; )
|
|
@@ -100,9 +100,9 @@ function z(e, t) {
|
|
|
100
100
|
return { value: a[0] ? a[1] : void 0, done: !0 };
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
var
|
|
104
|
-
return
|
|
105
|
-
return
|
|
103
|
+
var W = function(e, t) {
|
|
104
|
+
return N(void 0, void 0, void 0, function() {
|
|
105
|
+
return j(this, function(n) {
|
|
106
106
|
return [2, new Promise(function(i, s) {
|
|
107
107
|
try {
|
|
108
108
|
if (window.DocsAPI)
|
|
@@ -110,8 +110,8 @@ var J = function(e, t) {
|
|
|
110
110
|
var o = document.getElementById(t);
|
|
111
111
|
if (o)
|
|
112
112
|
var p = setInterval(function() {
|
|
113
|
-
var
|
|
114
|
-
if (!
|
|
113
|
+
var y = o.getAttribute("loading");
|
|
114
|
+
if (!y) {
|
|
115
115
|
if (clearInterval(p), window.DocsAPI)
|
|
116
116
|
return i(null);
|
|
117
117
|
var a = P(t, e, i, s);
|
|
@@ -122,8 +122,8 @@ var J = function(e, t) {
|
|
|
122
122
|
var f = P(t, e, i, s);
|
|
123
123
|
document.body.appendChild(f);
|
|
124
124
|
}
|
|
125
|
-
} catch (
|
|
126
|
-
console.error(
|
|
125
|
+
} catch (y) {
|
|
126
|
+
console.error(y);
|
|
127
127
|
}
|
|
128
128
|
})];
|
|
129
129
|
});
|
|
@@ -190,7 +190,7 @@ var J = function(e, t) {
|
|
|
190
190
|
var e = this, t = this.documentServerUrl;
|
|
191
191
|
t.endsWith("/") || (t += "/");
|
|
192
192
|
var n = "".concat(t, "web-apps/apps/api/documents/api.js");
|
|
193
|
-
|
|
193
|
+
W(n, "onlyoffice-api-script").then(function() {
|
|
194
194
|
return e.onLoad();
|
|
195
195
|
}).catch(function() {
|
|
196
196
|
e.onError(-2);
|
|
@@ -304,13 +304,13 @@ var J = function(e, t) {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
});
|
|
307
|
-
const
|
|
308
|
-
function
|
|
309
|
-
return d(),
|
|
307
|
+
const G = ["id"];
|
|
308
|
+
function z(e, t, n, i, s, o) {
|
|
309
|
+
return d(), S("div", { id: e.id }, null, 8, G);
|
|
310
310
|
}
|
|
311
|
-
V.render =
|
|
311
|
+
V.render = z;
|
|
312
312
|
V.__file = "src/components/DocumentEditor.vue";
|
|
313
|
-
const
|
|
313
|
+
const J = /* @__PURE__ */ q({
|
|
314
314
|
__name: "IkOnlyOffice",
|
|
315
315
|
props: {
|
|
316
316
|
// 文件服务器的服务的地址
|
|
@@ -339,10 +339,10 @@ const Q = /* @__PURE__ */ q({
|
|
|
339
339
|
}), i = () => {
|
|
340
340
|
console.info("文档加载完成", t.configOptions);
|
|
341
341
|
};
|
|
342
|
-
return (s, o) => (d(),
|
|
342
|
+
return (s, o) => (d(), S(
|
|
343
343
|
"div",
|
|
344
344
|
{
|
|
345
|
-
style:
|
|
345
|
+
style: M({ height: t.officeHeight })
|
|
346
346
|
},
|
|
347
347
|
[
|
|
348
348
|
E(x(V), {
|
|
@@ -357,19 +357,7 @@ const Q = /* @__PURE__ */ q({
|
|
|
357
357
|
/* STYLE */
|
|
358
358
|
));
|
|
359
359
|
}
|
|
360
|
-
}),
|
|
361
|
-
"i",
|
|
362
|
-
{ class: "icon-icon_particulars iconfont tips" },
|
|
363
|
-
null,
|
|
364
|
-
-1
|
|
365
|
-
/* HOISTED */
|
|
366
|
-
)), le = /* @__PURE__ */ L(() => /* @__PURE__ */ c(
|
|
367
|
-
"p",
|
|
368
|
-
null,
|
|
369
|
-
"鼠标右键选择操作的数据类型",
|
|
370
|
-
-1
|
|
371
|
-
/* HOISTED */
|
|
372
|
-
)), ce = { class: "flex data-block" }, de = { class: "operate-btn" }, ue = ["onClick"], pe = ["onClick"], he = { class: "operate-btn" }, fe = ["onClick"], ve = ["onClick"], _e = ["onClick"], me = ["onClick"], ge = /* @__PURE__ */ q({
|
|
360
|
+
}), K = $(J), X = K, Q = { class: "template-data" }, Y = { class: "operate-btn" }, Z = ["onClick"], ee = ["onClick"], te = { class: "m-12 point" }, ne = { class: "flex" }, oe = ["onClick"], ie = { class: "flex data-block" }, ae = { class: "operate-btn" }, se = ["onClick"], re = ["onClick"], le = { class: "operate-btn" }, ce = ["onClick"], de = ["onClick"], ue = ["onClick"], pe = ["onClick"], he = /* @__PURE__ */ q({
|
|
373
361
|
__name: "templateOfficeData",
|
|
374
362
|
props: {
|
|
375
363
|
// 详情数据
|
|
@@ -404,25 +392,25 @@ const Q = /* @__PURE__ */ q({
|
|
|
404
392
|
i("handleGetTitleData", l);
|
|
405
393
|
}, f = (l) => {
|
|
406
394
|
i("handleDataBlockEdit", l);
|
|
407
|
-
},
|
|
395
|
+
}, y = (l) => {
|
|
408
396
|
i("handleDataBlockDel", l);
|
|
409
|
-
}, a = (l,
|
|
410
|
-
for (const
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
}, h = (l,
|
|
414
|
-
i("handleDifferentTypeDataBlock", l,
|
|
397
|
+
}, a = (l, m) => {
|
|
398
|
+
for (const w of _.value)
|
|
399
|
+
w.children.forEach((u) => u.isChoose = !1);
|
|
400
|
+
m.isChoose = !0, i("handleChooseDataBlock", l, m);
|
|
401
|
+
}, h = (l, m) => {
|
|
402
|
+
i("handleDifferentTypeDataBlock", l, m);
|
|
415
403
|
}, v = (l) => {
|
|
416
|
-
let
|
|
417
|
-
name:
|
|
418
|
-
children:
|
|
404
|
+
let m = l.map((w) => ({
|
|
405
|
+
name: w[n.defaultProps.name],
|
|
406
|
+
children: w[n.defaultProps.children].map((u) => ({
|
|
419
407
|
childName: u[n.defaultProps.childName],
|
|
420
408
|
childId: u[n.defaultProps.childId]
|
|
421
409
|
}))
|
|
422
410
|
}));
|
|
423
|
-
_.value =
|
|
411
|
+
_.value = m;
|
|
424
412
|
}, _ = O(n.data);
|
|
425
|
-
return
|
|
413
|
+
return H(
|
|
426
414
|
() => n.data,
|
|
427
415
|
(l) => {
|
|
428
416
|
v(l);
|
|
@@ -430,18 +418,18 @@ const Q = /* @__PURE__ */ q({
|
|
|
430
418
|
{ immediate: !0 }
|
|
431
419
|
), document.addEventListener("contextmenu", (l) => {
|
|
432
420
|
n.isShowTitleOperate && l.preventDefault();
|
|
433
|
-
}), (l,
|
|
434
|
-
const
|
|
435
|
-
return d(),
|
|
436
|
-
(d(!0),
|
|
421
|
+
}), (l, m) => {
|
|
422
|
+
const w = D("el-popover");
|
|
423
|
+
return d(), S("div", Q, [
|
|
424
|
+
(d(!0), S(
|
|
437
425
|
T,
|
|
438
426
|
null,
|
|
439
|
-
F(_.value, (u, I) => (d(),
|
|
427
|
+
F(_.value, (u, I) => (d(), S("div", {
|
|
440
428
|
key: I,
|
|
441
429
|
class: "mt-4"
|
|
442
430
|
}, [
|
|
443
431
|
e.isShowTitleOperate ? (d(), k(
|
|
444
|
-
|
|
432
|
+
w,
|
|
445
433
|
{
|
|
446
434
|
key: 0,
|
|
447
435
|
"popper-class": "sort-popper",
|
|
@@ -450,27 +438,27 @@ const Q = /* @__PURE__ */ q({
|
|
|
450
438
|
trigger: "contextmenu"
|
|
451
439
|
},
|
|
452
440
|
{
|
|
453
|
-
reference:
|
|
441
|
+
reference: g(() => [
|
|
454
442
|
c(
|
|
455
443
|
"span",
|
|
456
|
-
|
|
444
|
+
te,
|
|
457
445
|
R(u.name),
|
|
458
446
|
1
|
|
459
447
|
/* TEXT */
|
|
460
448
|
)
|
|
461
449
|
]),
|
|
462
|
-
default:
|
|
463
|
-
c("div",
|
|
450
|
+
default: g(() => [
|
|
451
|
+
c("div", Y, [
|
|
464
452
|
c("p", {
|
|
465
453
|
class: "point",
|
|
466
454
|
style: { margin: "0" },
|
|
467
455
|
onClick: (r) => s(u)
|
|
468
|
-
}, "编辑", 8,
|
|
456
|
+
}, "编辑", 8, Z),
|
|
469
457
|
c("p", {
|
|
470
458
|
style: { color: "var(--ik-error)", margin: "0" },
|
|
471
459
|
class: "point",
|
|
472
460
|
onClick: (r) => o(u)
|
|
473
|
-
}, " 删除 ", 8,
|
|
461
|
+
}, " 删除 ", 8, ee)
|
|
474
462
|
])
|
|
475
463
|
]),
|
|
476
464
|
_: 2
|
|
@@ -478,27 +466,39 @@ const Q = /* @__PURE__ */ q({
|
|
|
478
466
|
},
|
|
479
467
|
1024
|
|
480
468
|
/* DYNAMIC_SLOTS */
|
|
481
|
-
)) : (d(),
|
|
469
|
+
)) : (d(), S(
|
|
482
470
|
T,
|
|
483
471
|
{ key: 1 },
|
|
484
472
|
[
|
|
485
473
|
C(" 不能操作的标题 "),
|
|
486
|
-
c("div",
|
|
474
|
+
c("div", ne, [
|
|
487
475
|
c("p", {
|
|
488
476
|
class: "mb-2 point",
|
|
489
477
|
onClick: (r) => p(u)
|
|
490
|
-
}, R(u.name), 9,
|
|
491
|
-
u.resultType === "LIST" ? (d(), k(
|
|
478
|
+
}, R(u.name), 9, oe),
|
|
479
|
+
u.resultType === "LIST" ? (d(), k(w, {
|
|
492
480
|
key: 0,
|
|
493
481
|
placement: "right",
|
|
494
482
|
width: 210,
|
|
495
483
|
trigger: "hover"
|
|
496
484
|
}, {
|
|
497
|
-
reference:
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
485
|
+
reference: g(() => m[0] || (m[0] = [
|
|
486
|
+
c(
|
|
487
|
+
"i",
|
|
488
|
+
{ class: "icon-icon_particulars iconfont tips" },
|
|
489
|
+
null,
|
|
490
|
+
-1
|
|
491
|
+
/* HOISTED */
|
|
492
|
+
)
|
|
493
|
+
])),
|
|
494
|
+
default: g(() => [
|
|
495
|
+
m[1] || (m[1] = c(
|
|
496
|
+
"p",
|
|
497
|
+
null,
|
|
498
|
+
"鼠标右键选择操作的数据类型",
|
|
499
|
+
-1
|
|
500
|
+
/* HOISTED */
|
|
501
|
+
))
|
|
502
502
|
]),
|
|
503
503
|
_: 1
|
|
504
504
|
/* STABLE */
|
|
@@ -509,16 +509,16 @@ const Q = /* @__PURE__ */ q({
|
|
|
509
509
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
510
510
|
)),
|
|
511
511
|
C(" 标题下的内容 "),
|
|
512
|
-
c("div",
|
|
513
|
-
(d(!0),
|
|
512
|
+
c("div", ie, [
|
|
513
|
+
(d(!0), S(
|
|
514
514
|
T,
|
|
515
515
|
null,
|
|
516
|
-
F(u.children, (r, B) => (d(),
|
|
516
|
+
F(u.children, (r, B) => (d(), S("div", {
|
|
517
517
|
key: B,
|
|
518
518
|
style: { "flex-grow": "1" }
|
|
519
519
|
}, [
|
|
520
520
|
n.isShowContentOperate && u.resultType === "LIST" ? (d(), k(
|
|
521
|
-
|
|
521
|
+
w,
|
|
522
522
|
{
|
|
523
523
|
key: 0,
|
|
524
524
|
"popper-class": "operate-popper",
|
|
@@ -527,7 +527,7 @@ const Q = /* @__PURE__ */ q({
|
|
|
527
527
|
trigger: "contextmenu"
|
|
528
528
|
},
|
|
529
529
|
{
|
|
530
|
-
reference:
|
|
530
|
+
reference: g(() => [
|
|
531
531
|
c(
|
|
532
532
|
"p",
|
|
533
533
|
{
|
|
@@ -539,18 +539,18 @@ const Q = /* @__PURE__ */ q({
|
|
|
539
539
|
/* TEXT, CLASS */
|
|
540
540
|
)
|
|
541
541
|
]),
|
|
542
|
-
default:
|
|
543
|
-
c("div",
|
|
542
|
+
default: g(() => [
|
|
543
|
+
c("div", ae, [
|
|
544
544
|
c("p", {
|
|
545
545
|
class: "point",
|
|
546
546
|
style: { margin: "0" },
|
|
547
547
|
onClick: (b) => h(r, "TABLE")
|
|
548
|
-
}, "表格", 8,
|
|
548
|
+
}, "表格", 8, se),
|
|
549
549
|
c("p", {
|
|
550
550
|
class: "point",
|
|
551
551
|
style: { margin: "0" },
|
|
552
552
|
onClick: (b) => h(r, "LIST")
|
|
553
|
-
}, "列表", 8,
|
|
553
|
+
}, "列表", 8, re)
|
|
554
554
|
])
|
|
555
555
|
]),
|
|
556
556
|
_: 2
|
|
@@ -560,7 +560,7 @@ const Q = /* @__PURE__ */ q({
|
|
|
560
560
|
/* DYNAMIC_SLOTS */
|
|
561
561
|
)) : C("v-if", !0),
|
|
562
562
|
n.isShowContentOperate ? (d(), k(
|
|
563
|
-
|
|
563
|
+
w,
|
|
564
564
|
{
|
|
565
565
|
key: 1,
|
|
566
566
|
"popper-class": "operate-popper",
|
|
@@ -569,23 +569,23 @@ const Q = /* @__PURE__ */ q({
|
|
|
569
569
|
trigger: "contextmenu"
|
|
570
570
|
},
|
|
571
571
|
{
|
|
572
|
-
reference:
|
|
572
|
+
reference: g(() => [
|
|
573
573
|
c("p", {
|
|
574
574
|
class: A([{ "choose-item": r.isChoose }, "item-block"]),
|
|
575
575
|
onClick: (b) => a(u, r)
|
|
576
|
-
}, R(r.childName), 11,
|
|
576
|
+
}, R(r.childName), 11, ue)
|
|
577
577
|
]),
|
|
578
|
-
default:
|
|
579
|
-
c("div",
|
|
578
|
+
default: g(() => [
|
|
579
|
+
c("div", le, [
|
|
580
580
|
c("p", {
|
|
581
581
|
class: "point",
|
|
582
582
|
style: { margin: "0" },
|
|
583
583
|
onClick: (b) => f(r)
|
|
584
|
-
}, "编辑", 8,
|
|
584
|
+
}, "编辑", 8, ce),
|
|
585
585
|
c("p", {
|
|
586
586
|
style: { color: "var(--ik-error)", cursor: "pointer", margin: "0" },
|
|
587
|
-
onClick: (b) =>
|
|
588
|
-
}, " 删除 ", 8,
|
|
587
|
+
onClick: (b) => y(r)
|
|
588
|
+
}, " 删除 ", 8, de)
|
|
589
589
|
])
|
|
590
590
|
]),
|
|
591
591
|
_: 2
|
|
@@ -593,11 +593,11 @@ const Q = /* @__PURE__ */ q({
|
|
|
593
593
|
},
|
|
594
594
|
1024
|
|
595
595
|
/* DYNAMIC_SLOTS */
|
|
596
|
-
)) : (d(),
|
|
596
|
+
)) : (d(), S("p", {
|
|
597
597
|
key: 2,
|
|
598
598
|
class: A([{ "choose-item": r.isChoose }, "item-block"]),
|
|
599
599
|
onClick: (b) => a(u, r)
|
|
600
|
-
}, R(r.childName), 11,
|
|
600
|
+
}, R(r.childName), 11, pe))
|
|
601
601
|
]))),
|
|
602
602
|
128
|
|
603
603
|
/* KEYED_FRAGMENT */
|
|
@@ -611,12 +611,12 @@ const Q = /* @__PURE__ */ q({
|
|
|
611
611
|
};
|
|
612
612
|
}
|
|
613
613
|
});
|
|
614
|
-
const
|
|
614
|
+
const L = (e, t) => {
|
|
615
615
|
const n = e.__vccOpts || e;
|
|
616
616
|
for (const [i, s] of t)
|
|
617
617
|
n[i] = s;
|
|
618
618
|
return n;
|
|
619
|
-
},
|
|
619
|
+
}, fe = /* @__PURE__ */ L(he, [["__scopeId", "data-v-af8d674c"]]), ve = { class: "template-config" }, _e = { class: "template-config-data" }, me = { class: "template-panel" }, ge = /* @__PURE__ */ q({
|
|
620
620
|
__name: "IkTemplateOfficeConfig",
|
|
621
621
|
props: {
|
|
622
622
|
// 标题
|
|
@@ -689,12 +689,12 @@ const M = (e, t) => {
|
|
|
689
689
|
},
|
|
690
690
|
emits: ["handleSearchDataBlock", "handleClickBlockData"],
|
|
691
691
|
setup(e, { expose: t, emit: n }) {
|
|
692
|
-
|
|
692
|
+
U((v) => ({
|
|
693
693
|
f1632ab6: e.contentHeight
|
|
694
694
|
}));
|
|
695
695
|
const i = e, s = n, o = O(i.tabsData[0].id), p = (v) => {
|
|
696
696
|
f.value = "", o.value = v, v && s("handleSearchDataBlock", "", o.value);
|
|
697
|
-
}, f = O(""),
|
|
697
|
+
}, f = O(""), y = () => {
|
|
698
698
|
s("handleSearchDataBlock", f.value, o.value);
|
|
699
699
|
}, a = (v, _) => {
|
|
700
700
|
s("handleClickBlockData", v, _);
|
|
@@ -702,21 +702,21 @@ const M = (e, t) => {
|
|
|
702
702
|
return t({ handleSendMessage: (v) => {
|
|
703
703
|
window[0][0].postMessage(JSON.stringify({ type: "INSERT_TEXT", text: v }), "*");
|
|
704
704
|
} }), (v, _) => {
|
|
705
|
-
const l = D("el-tab-pane"),
|
|
706
|
-
return d(),
|
|
705
|
+
const l = D("el-tab-pane"), m = D("el-tabs"), w = D("el-input"), u = D("el-col"), I = D("el-row");
|
|
706
|
+
return d(), S("div", ve, [
|
|
707
707
|
E(I, { gutter: 10 }, {
|
|
708
|
-
default:
|
|
708
|
+
default: g(() => [
|
|
709
709
|
E(u, { span: 6 }, {
|
|
710
|
-
default:
|
|
711
|
-
c("div",
|
|
712
|
-
i.isShowTabs ? (d(), k(
|
|
710
|
+
default: g(() => [
|
|
711
|
+
c("div", _e, [
|
|
712
|
+
i.isShowTabs ? (d(), k(m, {
|
|
713
713
|
key: 0,
|
|
714
714
|
modelValue: o.value,
|
|
715
715
|
"onUpdate:modelValue": _[0] || (_[0] = (r) => o.value = r),
|
|
716
716
|
onTabClick: _[1] || (_[1] = (r) => p(r.props.name))
|
|
717
717
|
}, {
|
|
718
|
-
default:
|
|
719
|
-
(d(!0),
|
|
718
|
+
default: g(() => [
|
|
719
|
+
(d(!0), S(
|
|
720
720
|
T,
|
|
721
721
|
null,
|
|
722
722
|
F(i.tabsData, (r, B) => (d(), k(l, {
|
|
@@ -731,15 +731,15 @@ const M = (e, t) => {
|
|
|
731
731
|
_: 1
|
|
732
732
|
/* STABLE */
|
|
733
733
|
}, 8, ["modelValue"])) : C("v-if", !0),
|
|
734
|
-
i.isShowSearchCondition ? (d(), k(
|
|
734
|
+
i.isShowSearchCondition ? (d(), k(w, {
|
|
735
735
|
key: 1,
|
|
736
736
|
modelValue: f.value,
|
|
737
737
|
"onUpdate:modelValue": _[2] || (_[2] = (r) => f.value = r),
|
|
738
738
|
placeholder: "请输入关键字",
|
|
739
739
|
clearable: "",
|
|
740
|
-
onInput: _[3] || (_[3] = (r) =>
|
|
740
|
+
onInput: _[3] || (_[3] = (r) => y())
|
|
741
741
|
}, null, 8, ["modelValue"])) : C("v-if", !0),
|
|
742
|
-
E(
|
|
742
|
+
E(fe, {
|
|
743
743
|
data: i.tableData,
|
|
744
744
|
type: o.value,
|
|
745
745
|
defaultProps: i.defaultProps,
|
|
@@ -753,9 +753,9 @@ const M = (e, t) => {
|
|
|
753
753
|
/* STABLE */
|
|
754
754
|
}),
|
|
755
755
|
E(u, { span: 18 }, {
|
|
756
|
-
default:
|
|
757
|
-
c("div",
|
|
758
|
-
i.visible ? (d(), k(x(
|
|
756
|
+
default: g(() => [
|
|
757
|
+
c("div", me, [
|
|
758
|
+
i.visible ? (d(), k(x(X), {
|
|
759
759
|
key: 0,
|
|
760
760
|
"config-options": i.onlyOfficeConfig,
|
|
761
761
|
documentServerUrl: i.documentServerUrl,
|
|
@@ -774,8 +774,8 @@ const M = (e, t) => {
|
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
776
|
});
|
|
777
|
-
const
|
|
777
|
+
const ye = /* @__PURE__ */ L(ge, [["__scopeId", "data-v-d31d0157"]]), Se = $(ye);
|
|
778
778
|
export {
|
|
779
|
-
|
|
780
|
-
|
|
779
|
+
Se as IkTemplateOfficeConfig,
|
|
780
|
+
Se as default
|
|
781
781
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w.index={},w.vue))})(this,function(w,e){"use strict";const D=(t,n)=>{if(t.install=o=>{for(const i of[t,...Object.values(n??{})])o.component(i.name,i)},n)for(const[o,i]of Object.entries(n))t[o]=i;return t};function V(t,n,o,i){function r(a){return a instanceof o?a:new o(function(p){p(a)})}return new(o||(o=Promise))(function(a,p){function h(f){try{s(i.next(f))}catch(u){p(u)}}function _(f){try{s(i.throw(f))}catch(u){p(u)}}function s(f){f.done?a(f.value):r(f.value).then(h,_)}s((i=i.apply(t,n||[])).next())})}function T(t,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,p;return p={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function h(s){return function(f){return _([s,f])}}function _(s){if(i)throw new TypeError("Generator is already executing.");for(;p&&(p=0,s[0]&&(o=0)),o;)try{if(i=1,r&&(a=s[0]&2?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(s[0]===6&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(t,o)}catch(f){s=[6,f],r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var O=function(t,n){return V(void 0,void 0,void 0,function(){return T(this,function(o){return[2,new Promise(function(i,r){try{if(window.DocsAPI)return i(null);var a=document.getElementById(n);if(a)var p=setInterval(function(){var _=a.getAttribute("loading");if(!_){if(clearInterval(p),window.DocsAPI)return i(null);var s=v(n,t,i,r);a.remove(),document.body.appendChild(s)}},500);else{var h=v(n,t,i,r);document.body.appendChild(h)}}catch(_){console.error(_)}})]})})},v=function(t,n,o,i){var r=document.createElement("script");return r.id=t,r.type="text/javascript",r.src=n,r.async=!0,r.onload=function(){r.removeAttribute("loading"),o(null)},r.onerror=function(a){r.removeAttribute("loading"),i(a)},r.setAttribute("loading",""),r},C=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var t=this,n=this.documentServerUrl;n.endsWith("/")||(n+="/");var o="".concat(n,"web-apps/apps/api/documents/api.js");O(o,"onlyoffice-api-script").then(function(){return t.onLoad()}).catch(function(){t.onError(-2)})},unmounted:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0)},watch:{config:{handler:function(t,n){this.onChangeProps()},deep:!0},document_fileType:function(t,n){this.onChangeProps()},document_title:function(t,n){this.onChangeProps()},documentType:function(t,n){this.onChangeProps()},editorConfig_lang:function(t,n){this.onChangeProps()},height:function(t,n){this.onChangeProps()},type:function(t,n){this.onChangeProps()},width:function(t,n){this.onChangeProps()}},methods:{onLoad:function(){var t,n;try{var o=this.id||"";if(window.DocsAPI||this.onError(-3),!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[o]){console.log("Skip loading. Instance already exists",o);return}!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances||(window.DocEditor={instances:{}});var i=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),r=window.DocsAPI.DocEditor(o,i);window.DocEditor.instances[o]=r}catch(a){console.error(a),this.onError(-1)}},onError:function(t){var n;switch(t){case-2:n="Error load DocsAPI from "+this.documentServerUrl;break;case-3:n="DocsAPI is not defined";break;default:n="Unknown error loading component",t=-1}typeof this.onLoadComponentError>"u"?console.error(n):this.onLoadComponentError(t,n)},onAppReady:function(){var t=this.id||"";this.events_onAppReady(window.DocEditor.instances[t])},onChangeProps:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const q=["id"];function I(t,n,o,i,r,a){return e.openBlock(),e.createElementBlock("div",{id:t.id},null,8,q)}C.render=I,C.__file="src/components/DocumentEditor.vue";const N=D(e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(t){const n=t,o=e.ref({width:"100%",height:"100%",...n.configOptions||{},...n.configOptions}),i=()=>{console.info("文档加载完成",n.configOptions)};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:n.officeHeight})},[e.createVNode(e.unref(C),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":t.documentServerUrl,config:o.value,events_onDocumentReady:i},null,8,["id","document-server-url","config"])],4))}})),b=t=>(e.pushScopeId("data-v-af8d674c"),t=t(),e.popScopeId(),t),x={class:"template-data"},F={class:"operate-btn"},A=["onClick"],P=["onClick"],$={class:"m-12 point"},L={class:"flex"},M=["onClick"],H=b(()=>e.createElementVNode("i",{class:"icon-icon_particulars iconfont tips"},null,-1)),j=b(()=>e.createElementVNode("p",null,"鼠标右键选择操作的数据类型",-1)),U={class:"flex data-block"},z={class:"operate-btn"},W=["onClick"],G=["onClick"],K={class:"operate-btn"},J=["onClick"],X=["onClick"],Q=["onClick"],Y=["onClick"],Z=e.defineComponent({__name:"templateOfficeData",props:{data:{type:Array,default:()=>[]},isShowTitleOperate:{type:Boolean,default:!1},isShowContentOperate:{type:Boolean,default:!1},defaultProps:{type:Object,default:()=>{}}},emits:["handleTitleEdit","handleTitleDel","handleGetTitleData","handleDataBlockEdit","handleDataBlockDel","handleChooseDataBlock","handleDifferentTypeDataBlock"],setup(t,{emit:n}){const o=t,i=n,r=c=>{i("handleTitleEdit",c)},a=c=>{i("handleTitleDel",c)},p=c=>{i("handleGetTitleData",c)},h=c=>{i("handleDataBlockEdit",c)},_=c=>{i("handleDataBlockDel",c)},s=(c,y)=>{for(const g of m.value)g.children.forEach(d=>d.isChoose=!1);y.isChoose=!0,i("handleChooseDataBlock",c,y)},f=(c,y)=>{i("handleDifferentTypeDataBlock",c,y)},u=c=>{let y=c.map(g=>({name:g[o.defaultProps.name],children:g[o.defaultProps.children].map(d=>({childName:d[o.defaultProps.childName],childId:d[o.defaultProps.childId]}))}));m.value=y},m=e.ref(o.data);return e.watch(()=>o.data,c=>{u(c)},{immediate:!0}),document.addEventListener("contextmenu",c=>{o.isShowTitleOperate&&c.preventDefault()}),(c,y)=>{const g=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",x,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(d,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:"mt-4"},[t.isShowTitleOperate?(e.openBlock(),e.createBlock(g,{key:0,"popper-class":"sort-popper",placement:"right",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("span",$,e.toDisplayString(d.name),1)]),default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:l=>r(d)},"编辑",8,A),e.createElementVNode("p",{style:{color:"var(--ik-error)",margin:"0"},class:"point",onClick:l=>a(d)}," 删除 ",8,P)])]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 不能操作的标题 "),e.createElementVNode("div",L,[e.createElementVNode("p",{class:"mb-2 point",onClick:l=>p(d)},e.toDisplayString(d.name),9,M),d.resultType==="LIST"?(e.openBlock(),e.createBlock(g,{key:0,placement:"right",width:210,trigger:"hover"},{reference:e.withCtx(()=>[H]),default:e.withCtx(()=>[j]),_:1})):e.createCommentVNode("v-if",!0)])],2112)),e.createCommentVNode(" 标题下的内容 "),e.createElementVNode("div",U,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.children,(l,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,style:{"flex-grow":"1"}},[o.isShowContentOperate&&d.resultType==="LIST"?(e.openBlock(),e.createBlock(g,{key:0,"popper-class":"operate-popper",placement:"bottom-end",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),title:"鼠标右键选择操作的数据类型"},e.toDisplayString(l.chileName),3)]),default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:k=>f(l,"TABLE")},"表格",8,W),e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:k=>f(l,"LIST")},"列表",8,G)])]),_:2},1024)):e.createCommentVNode("v-if",!0),o.isShowContentOperate?(e.openBlock(),e.createBlock(g,{key:1,"popper-class":"operate-popper",placement:"bottom-end",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),onClick:k=>s(d,l)},e.toDisplayString(l.childName),11,Q)]),default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:k=>h(l)},"编辑",8,J),e.createElementVNode("p",{style:{color:"var(--ik-error)",cursor:"pointer",margin:"0"},onClick:k=>_(l)}," 删除 ",8,X)])]),_:2},1024)):(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),onClick:k=>s(d,l)},e.toDisplayString(l.childName),11,Y))]))),128))])]))),128))])}}}),re="",B=(t,n)=>{const o=t.__vccOpts||t;for(const[i,r]of n)o[i]=r;return o},ee=B(Z,[["__scopeId","data-v-af8d674c"]]),te={class:"template-config"},ne={class:"template-config-data"},oe={class:"template-panel"},ie=e.defineComponent({__name:"IkTemplateOfficeConfig",props:{title:{type:String,default:"模板配置"},visible:{type:Boolean,default:!1},onlyOfficeConfig:{type:Object,default:()=>{}},isShowTabs:{type:Boolean,default:!0},isShowSearchCondition:{type:Boolean,default:!0},tabsData:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},documentServerUrl:{type:String,default:""},jwtToken:{type:String,default:""},contentHeight:{type:String,default:"650px"},defaultProps:{type:Object,default:()=>{}},isShowTitleOperate:{type:Boolean,default:!1},isShowContentOperate:{type:Boolean,default:!1}},emits:["handleSearchDataBlock","handleClickBlockData"],setup(t,{expose:n,emit:o}){e.useCssVars(u=>({f1632ab6:t.contentHeight}));const i=t,r=o,a=e.ref(i.tabsData[0].id),p=u=>{h.value="",a.value=u,u&&r("handleSearchDataBlock","",a.value)},h=e.ref(""),_=()=>{r("handleSearchDataBlock",h.value,a.value)},s=(u,m)=>{r("handleClickBlockData",u,m)};return n({handleSendMessage:u=>{window[0][0].postMessage(JSON.stringify({type:"INSERT_TEXT",text:u}),"*")}}),(u,m)=>{const c=e.resolveComponent("el-tab-pane"),y=e.resolveComponent("el-tabs"),g=e.resolveComponent("el-input"),d=e.resolveComponent("el-col"),S=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",te,[e.createVNode(S,{gutter:10},{default:e.withCtx(()=>[e.createVNode(d,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",ne,[i.isShowTabs?(e.openBlock(),e.createBlock(y,{key:0,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=l=>a.value=l),onTabClick:m[1]||(m[1]=l=>p(l.props.name))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tabsData,(l,E)=>(e.openBlock(),e.createBlock(c,{key:E,label:l.label,name:l.id},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("v-if",!0),i.isShowSearchCondition?(e.openBlock(),e.createBlock(g,{key:1,modelValue:h.value,"onUpdate:modelValue":m[2]||(m[2]=l=>h.value=l),placeholder:"请输入关键字",clearable:"",onInput:m[3]||(m[3]=l=>_())},null,8,["modelValue"])):e.createCommentVNode("v-if",!0),e.createVNode(ee,{data:i.tableData,type:a.value,defaultProps:i.defaultProps,onHandleChooseDataBlock:s,isShowTitleOperate:i.isShowTitleOperate,isShowContentOperate:i.isShowContentOperate},null,8,["data","type","defaultProps","isShowTitleOperate","isShowContentOperate"])])]),_:1}),e.createVNode(d,{span:18},{default:e.withCtx(()=>[e.createElementVNode("div",oe,[i.visible?(e.openBlock(),e.createBlock(e.unref(N),{key:0,"config-options":i.onlyOfficeConfig,documentServerUrl:i.documentServerUrl,token:i.jwtToken},null,8,["config-options","documentServerUrl","token"])):e.createCommentVNode("v-if",!0)])]),_:1})]),_:1})])}}}),le="",R=D(B(ie,[["__scopeId","data-v-d31d0157"]]));w.IkTemplateOfficeConfig=R,w.default=R,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
1
|
+
(function(k,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(k=typeof globalThis<"u"?globalThis:k||self,e(k.index={},k.vue))})(this,function(k,e){"use strict";const D=(t,n)=>{if(t.install=o=>{for(const i of[t,...Object.values(n??{})])o.component(i.name,i)},n)for(const[o,i]of Object.entries(n))t[o]=i;return t};function R(t,n,o,i){function r(a){return a instanceof o?a:new o(function(p){p(a)})}return new(o||(o=Promise))(function(a,p){function h(f){try{s(i.next(f))}catch(u){p(u)}}function g(f){try{s(i.throw(f))}catch(u){p(u)}}function s(f){f.done?a(f.value):r(f.value).then(h,g)}s((i=i.apply(t,n||[])).next())})}function V(t,n){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,p;return p={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(p[Symbol.iterator]=function(){return this}),p;function h(s){return function(f){return g([s,f])}}function g(s){if(i)throw new TypeError("Generator is already executing.");for(;p&&(p=0,s[0]&&(o=0)),o;)try{if(i=1,r&&(a=s[0]&2?r.return:s[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,s[1])).done)return a;switch(r=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(a=o.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){o=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){o.label=s[1];break}if(s[0]===6&&o.label<a[1]){o.label=a[1],a=s;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(s);break}a[2]&&o.ops.pop(),o.trys.pop();continue}s=n.call(t,o)}catch(f){s=[6,f],r=0}finally{i=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}typeof SuppressedError=="function"&&SuppressedError;var T=function(t,n){return R(void 0,void 0,void 0,function(){return V(this,function(o){return[2,new Promise(function(i,r){try{if(window.DocsAPI)return i(null);var a=document.getElementById(n);if(a)var p=setInterval(function(){var g=a.getAttribute("loading");if(!g){if(clearInterval(p),window.DocsAPI)return i(null);var s=v(n,t,i,r);a.remove(),document.body.appendChild(s)}},500);else{var h=v(n,t,i,r);document.body.appendChild(h)}}catch(g){console.error(g)}})]})})},v=function(t,n,o,i){var r=document.createElement("script");return r.id=t,r.type="text/javascript",r.src=n,r.async=!0,r.onload=function(){r.removeAttribute("loading"),o(null)},r.onerror=function(a){r.removeAttribute("loading"),i(a)},r.setAttribute("loading",""),r},C=e.defineComponent({name:"DocumentEditor",props:{id:{type:String,required:!0},documentServerUrl:{type:String,required:!0},config:{type:Object,required:!0},document_fileType:String,document_title:String,documentType:String,editorConfig_lang:String,height:String,type:String,width:String,onLoadComponentError:Function,events_onAppReady:Function,events_onDocumentStateChange:Function,events_onMetaChange:Function,events_onDocumentReady:Function,events_onInfo:Function,events_onWarning:Function,events_onError:Function,events_onRequestSharingSettings:Function,events_onRequestRename:Function,events_onMakeActionLink:Function,events_onRequestInsertImage:Function,events_onRequestSaveAs:Function,events_onRequestMailMergeRecipients:Function,events_onRequestCompareFile:Function,events_onRequestEditRights:Function,events_onRequestHistory:Function,events_onRequestHistoryClose:Function,events_onRequestHistoryData:Function,events_onRequestRestore:Function,events_onRequestSelectSpreadsheet:Function,events_onRequestSelectDocument:Function},mounted:function(){var t=this,n=this.documentServerUrl;n.endsWith("/")||(n+="/");var o="".concat(n,"web-apps/apps/api/documents/api.js");T(o,"onlyoffice-api-script").then(function(){return t.onLoad()}).catch(function(){t.onError(-2)})},unmounted:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0)},watch:{config:{handler:function(t,n){this.onChangeProps()},deep:!0},document_fileType:function(t,n){this.onChangeProps()},document_title:function(t,n){this.onChangeProps()},documentType:function(t,n){this.onChangeProps()},editorConfig_lang:function(t,n){this.onChangeProps()},height:function(t,n){this.onChangeProps()},type:function(t,n){this.onChangeProps()},width:function(t,n){this.onChangeProps()}},methods:{onLoad:function(){var t,n;try{var o=this.id||"";if(window.DocsAPI||this.onError(-3),!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[o]){console.log("Skip loading. Instance already exists",o);return}!((n=window==null?void 0:window.DocEditor)===null||n===void 0)&&n.instances||(window.DocEditor={instances:{}});var i=Object.assign({document:{fileType:this.document_fileType,title:this.document_title},documentType:this.documentType,editorConfig:{lang:this.editorConfig_lang},events:{onAppReady:this.onAppReady,onDocumentStateChange:this.events_onDocumentStateChange,onMetaChange:this.events_onMetaChange,onDocumentReady:this.events_onDocumentReady,onInfo:this.events_onInfo,onWarning:this.events_onWarning,onError:this.events_onError,onRequestSharingSettings:this.events_onRequestSharingSettings,onRequestRename:this.events_onRequestRename,onMakeActionLink:this.events_onMakeActionLink,onRequestInsertImage:this.events_onRequestInsertImage,onRequestSaveAs:this.events_onRequestSaveAs,onRequestMailMergeRecipients:this.events_onRequestMailMergeRecipients,onRequestCompareFile:this.events_onRequestCompareFile,onRequestEditRights:this.events_onRequestEditRights,onRequestHistory:this.events_onRequestHistory,onRequestHistoryClose:this.events_onRequestHistoryClose,onRequestHistoryData:this.events_onRequestHistoryData,onRequestRestore:this.events_onRequestRestore,onRequestSelectSpreadsheet:this.events_onRequestSelectSpreadsheet,onRequestSelectDocument:this.events_onRequestSelectDocument},height:this.height,type:this.type,width:this.width},this.config||{}),r=window.DocsAPI.DocEditor(o,i);window.DocEditor.instances[o]=r}catch(a){console.error(a),this.onError(-1)}},onError:function(t){var n;switch(t){case-2:n="Error load DocsAPI from "+this.documentServerUrl;break;case-3:n="DocsAPI is not defined";break;default:n="Unknown error loading component",t=-1}typeof this.onLoadComponentError>"u"?console.error(n):this.onLoadComponentError(t,n)},onAppReady:function(){var t=this.id||"";this.events_onAppReady(window.DocEditor.instances[t])},onChangeProps:function(){var t,n=this.id||"";!((t=window==null?void 0:window.DocEditor)===null||t===void 0)&&t.instances[n]&&(window.DocEditor.instances[n].destroyEditor(),window.DocEditor.instances[n]=void 0,console.log("Important props have been changed. Load new Editor."),this.onLoad())}}});const O=["id"];function q(t,n,o,i,r,a){return e.openBlock(),e.createElementBlock("div",{id:t.id},null,8,O)}C.render=q,C.__file="src/components/DocumentEditor.vue";const I=D(e.defineComponent({__name:"IkOnlyOffice",props:{documentServerUrl:{type:String,default:""},configOptions:{type:Object,default:()=>{}},officeHeight:{type:String,default:"100%"}},setup(t){const n=t,o=e.ref({width:"100%",height:"100%",...n.configOptions||{},...n.configOptions}),i=()=>{console.info("文档加载完成",n.configOptions)};return(r,a)=>(e.openBlock(),e.createElementBlock("div",{style:e.normalizeStyle({height:n.officeHeight})},[e.createVNode(e.unref(C),{id:`${new Date().getTime()}`,ref:"editorRef","document-server-url":t.documentServerUrl,config:o.value,events_onDocumentReady:i},null,8,["id","document-server-url","config"])],4))}})),N={class:"template-data"},x={class:"operate-btn"},F=["onClick"],A=["onClick"],P={class:"m-12 point"},$={class:"flex"},L=["onClick"],M={class:"flex data-block"},H={class:"operate-btn"},j=["onClick"],U=["onClick"],z={class:"operate-btn"},W=["onClick"],G=["onClick"],K=["onClick"],J=["onClick"],X=e.defineComponent({__name:"templateOfficeData",props:{data:{type:Array,default:()=>[]},isShowTitleOperate:{type:Boolean,default:!1},isShowContentOperate:{type:Boolean,default:!1},defaultProps:{type:Object,default:()=>{}}},emits:["handleTitleEdit","handleTitleDel","handleGetTitleData","handleDataBlockEdit","handleDataBlockDel","handleChooseDataBlock","handleDifferentTypeDataBlock"],setup(t,{emit:n}){const o=t,i=n,r=c=>{i("handleTitleEdit",c)},a=c=>{i("handleTitleDel",c)},p=c=>{i("handleGetTitleData",c)},h=c=>{i("handleDataBlockEdit",c)},g=c=>{i("handleDataBlockDel",c)},s=(c,_)=>{for(const y of m.value)y.children.forEach(d=>d.isChoose=!1);_.isChoose=!0,i("handleChooseDataBlock",c,_)},f=(c,_)=>{i("handleDifferentTypeDataBlock",c,_)},u=c=>{let _=c.map(y=>({name:y[o.defaultProps.name],children:y[o.defaultProps.children].map(d=>({childName:d[o.defaultProps.childName],childId:d[o.defaultProps.childId]}))}));m.value=_},m=e.ref(o.data);return e.watch(()=>o.data,c=>{u(c)},{immediate:!0}),document.addEventListener("contextmenu",c=>{o.isShowTitleOperate&&c.preventDefault()}),(c,_)=>{const y=e.resolveComponent("el-popover");return e.openBlock(),e.createElementBlock("div",N,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,(d,S)=>(e.openBlock(),e.createElementBlock("div",{key:S,class:"mt-4"},[t.isShowTitleOperate?(e.openBlock(),e.createBlock(y,{key:0,"popper-class":"sort-popper",placement:"right",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("span",P,e.toDisplayString(d.name),1)]),default:e.withCtx(()=>[e.createElementVNode("div",x,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:l=>r(d)},"编辑",8,F),e.createElementVNode("p",{style:{color:"var(--ik-error)",margin:"0"},class:"point",onClick:l=>a(d)}," 删除 ",8,A)])]),_:2},1024)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createCommentVNode(" 不能操作的标题 "),e.createElementVNode("div",$,[e.createElementVNode("p",{class:"mb-2 point",onClick:l=>p(d)},e.toDisplayString(d.name),9,L),d.resultType==="LIST"?(e.openBlock(),e.createBlock(y,{key:0,placement:"right",width:210,trigger:"hover"},{reference:e.withCtx(()=>_[0]||(_[0]=[e.createElementVNode("i",{class:"icon-icon_particulars iconfont tips"},null,-1)])),default:e.withCtx(()=>[_[1]||(_[1]=e.createElementVNode("p",null,"鼠标右键选择操作的数据类型",-1))]),_:1})):e.createCommentVNode("v-if",!0)])],2112)),e.createCommentVNode(" 标题下的内容 "),e.createElementVNode("div",M,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(d.children,(l,E)=>(e.openBlock(),e.createElementBlock("div",{key:E,style:{"flex-grow":"1"}},[o.isShowContentOperate&&d.resultType==="LIST"?(e.openBlock(),e.createBlock(y,{key:0,"popper-class":"operate-popper",placement:"bottom-end",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),title:"鼠标右键选择操作的数据类型"},e.toDisplayString(l.chileName),3)]),default:e.withCtx(()=>[e.createElementVNode("div",H,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:w=>f(l,"TABLE")},"表格",8,j),e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:w=>f(l,"LIST")},"列表",8,U)])]),_:2},1024)):e.createCommentVNode("v-if",!0),o.isShowContentOperate?(e.openBlock(),e.createBlock(y,{key:1,"popper-class":"operate-popper",placement:"bottom-end",width:"60",trigger:"contextmenu"},{reference:e.withCtx(()=>[e.createElementVNode("p",{class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),onClick:w=>s(d,l)},e.toDisplayString(l.childName),11,K)]),default:e.withCtx(()=>[e.createElementVNode("div",z,[e.createElementVNode("p",{class:"point",style:{margin:"0"},onClick:w=>h(l)},"编辑",8,W),e.createElementVNode("p",{style:{color:"var(--ik-error)",cursor:"pointer",margin:"0"},onClick:w=>g(l)}," 删除 ",8,G)])]),_:2},1024)):(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass([{"choose-item":l.isChoose},"item-block"]),onClick:w=>s(d,l)},e.toDisplayString(l.childName),11,J))]))),128))])]))),128))])}}}),ie="",b=(t,n)=>{const o=t.__vccOpts||t;for(const[i,r]of n)o[i]=r;return o},Q=b(X,[["__scopeId","data-v-af8d674c"]]),Y={class:"template-config"},Z={class:"template-config-data"},ee={class:"template-panel"},te=e.defineComponent({__name:"IkTemplateOfficeConfig",props:{title:{type:String,default:"模板配置"},visible:{type:Boolean,default:!1},onlyOfficeConfig:{type:Object,default:()=>{}},isShowTabs:{type:Boolean,default:!0},isShowSearchCondition:{type:Boolean,default:!0},tabsData:{type:Array,default:()=>[]},tableData:{type:Array,default:()=>[]},documentServerUrl:{type:String,default:""},jwtToken:{type:String,default:""},contentHeight:{type:String,default:"650px"},defaultProps:{type:Object,default:()=>{}},isShowTitleOperate:{type:Boolean,default:!1},isShowContentOperate:{type:Boolean,default:!1}},emits:["handleSearchDataBlock","handleClickBlockData"],setup(t,{expose:n,emit:o}){e.useCssVars(u=>({f1632ab6:t.contentHeight}));const i=t,r=o,a=e.ref(i.tabsData[0].id),p=u=>{h.value="",a.value=u,u&&r("handleSearchDataBlock","",a.value)},h=e.ref(""),g=()=>{r("handleSearchDataBlock",h.value,a.value)},s=(u,m)=>{r("handleClickBlockData",u,m)};return n({handleSendMessage:u=>{window[0][0].postMessage(JSON.stringify({type:"INSERT_TEXT",text:u}),"*")}}),(u,m)=>{const c=e.resolveComponent("el-tab-pane"),_=e.resolveComponent("el-tabs"),y=e.resolveComponent("el-input"),d=e.resolveComponent("el-col"),S=e.resolveComponent("el-row");return e.openBlock(),e.createElementBlock("div",Y,[e.createVNode(S,{gutter:10},{default:e.withCtx(()=>[e.createVNode(d,{span:6},{default:e.withCtx(()=>[e.createElementVNode("div",Z,[i.isShowTabs?(e.openBlock(),e.createBlock(_,{key:0,modelValue:a.value,"onUpdate:modelValue":m[0]||(m[0]=l=>a.value=l),onTabClick:m[1]||(m[1]=l=>p(l.props.name))},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.tabsData,(l,E)=>(e.openBlock(),e.createBlock(c,{key:E,label:l.label,name:l.id},null,8,["label","name"]))),128))]),_:1},8,["modelValue"])):e.createCommentVNode("v-if",!0),i.isShowSearchCondition?(e.openBlock(),e.createBlock(y,{key:1,modelValue:h.value,"onUpdate:modelValue":m[2]||(m[2]=l=>h.value=l),placeholder:"请输入关键字",clearable:"",onInput:m[3]||(m[3]=l=>g())},null,8,["modelValue"])):e.createCommentVNode("v-if",!0),e.createVNode(Q,{data:i.tableData,type:a.value,defaultProps:i.defaultProps,onHandleChooseDataBlock:s,isShowTitleOperate:i.isShowTitleOperate,isShowContentOperate:i.isShowContentOperate},null,8,["data","type","defaultProps","isShowTitleOperate","isShowContentOperate"])])]),_:1}),e.createVNode(d,{span:18},{default:e.withCtx(()=>[e.createElementVNode("div",ee,[i.visible?(e.openBlock(),e.createBlock(e.unref(I),{key:0,"config-options":i.onlyOfficeConfig,documentServerUrl:i.documentServerUrl,token:i.jwtToken},null,8,["config-options","documentServerUrl","token"])):e.createCommentVNode("v-if",!0)])]),_:1})]),_:1})])}}}),ae="",B=D(b(te,[["__scopeId","data-v-d31d0157"]]));k.IkTemplateOfficeConfig=B,k.default=B,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|