@topdatasec/report 1.0.8 → 1.0.9

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.
Files changed (91) hide show
  1. package/dist/index.iife.js +2 -1
  2. package/dist/index.js +1467 -345
  3. package/dist/index.umd.cjs +2 -1
  4. package/dist/style.css +1 -1
  5. package/es/components.d.ts +11 -0
  6. package/es/components.js +24 -2
  7. package/es/config/Config.vue.js +2 -2
  8. package/es/config/index.js +4 -4
  9. package/es/index.js +49 -27
  10. package/es/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +1 -0
  11. package/es/pie/Pie.vue.js +20 -0
  12. package/es/pie/Pie.vue2.js +4 -0
  13. package/es/pie/index.js +6 -0
  14. package/es/report/Report.vue.js +112 -0
  15. package/es/report/Report.vue2.js +4 -0
  16. package/es/report/index.js +6 -0
  17. package/es/select/Select.vue.js +39 -0
  18. package/es/select/Select.vue2.js +4 -0
  19. package/es/select/index.js +6 -0
  20. package/es/settingCharts/SettingCharts.vue.js +142 -0
  21. package/es/settingCharts/SettingCharts.vue2.js +4 -0
  22. package/es/settingCharts/index.js +6 -0
  23. package/es/settingFilter/index.js +6 -0
  24. package/es/settingFilter/settingFilter.vue.js +62 -0
  25. package/es/settingFilter/settingFilter.vue2.js +4 -0
  26. package/es/settingTable/SettingTable.vue.js +59 -0
  27. package/es/settingTable/SettingTable.vue2.js +4 -0
  28. package/es/settingTable/index.js +6 -0
  29. package/es/settingText/index.js +6 -0
  30. package/es/settingText/settingText.vue.js +112 -0
  31. package/es/settingText/settingText.vue2.js +4 -0
  32. package/es/settingTitle/index.js +6 -0
  33. package/es/settingTitle/settingTitle.css +1 -0
  34. package/es/settingTitle/settingTitle.vue.js +7 -0
  35. package/es/settingTitle/settingTitle.vue2.js +137 -0
  36. package/es/table/Table.vue.js +26 -0
  37. package/es/table/Table.vue2.js +4 -0
  38. package/es/table/index.js +6 -0
  39. package/es/text/Text.vue.js +27 -0
  40. package/es/text/Text.vue2.js +4 -0
  41. package/es/text/index.js +6 -0
  42. package/es/time/Time.vue.js +35 -0
  43. package/es/time/Time.vue2.js +4 -0
  44. package/es/time/index.js +6 -0
  45. package/es/utils/api.js +27 -4
  46. package/es/utils/chartsOption.js +333 -19
  47. package/es/utils/data.js +75 -14
  48. package/es/utils/resolver.js +28 -15
  49. package/lib/components.cjs +1 -1
  50. package/lib/components.d.ts +11 -0
  51. package/lib/index.cjs +1 -1
  52. package/lib/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +1 -0
  53. package/lib/pie/Pie.vue.cjs +1 -0
  54. package/lib/pie/Pie.vue2.cjs +1 -0
  55. package/lib/pie/index.cjs +1 -0
  56. package/lib/report/Report.vue.cjs +1 -0
  57. package/lib/report/Report.vue2.cjs +1 -0
  58. package/lib/report/index.cjs +1 -0
  59. package/lib/select/Select.vue.cjs +1 -0
  60. package/lib/select/Select.vue2.cjs +1 -0
  61. package/lib/select/index.cjs +1 -0
  62. package/lib/settingCharts/SettingCharts.vue.cjs +1 -0
  63. package/lib/settingCharts/SettingCharts.vue2.cjs +1 -0
  64. package/lib/settingCharts/index.cjs +1 -0
  65. package/lib/settingFilter/index.cjs +1 -0
  66. package/lib/settingFilter/settingFilter.vue.cjs +1 -0
  67. package/lib/settingFilter/settingFilter.vue2.cjs +1 -0
  68. package/lib/settingTable/SettingTable.vue.cjs +1 -0
  69. package/lib/settingTable/SettingTable.vue2.cjs +1 -0
  70. package/lib/settingTable/index.cjs +1 -0
  71. package/lib/settingText/index.cjs +1 -0
  72. package/lib/settingText/settingText.vue.cjs +1 -0
  73. package/lib/settingText/settingText.vue2.cjs +1 -0
  74. package/lib/settingTitle/index.cjs +1 -0
  75. package/lib/settingTitle/settingTitle.css +1 -0
  76. package/lib/settingTitle/settingTitle.vue.cjs +1 -0
  77. package/lib/settingTitle/settingTitle.vue2.cjs +1 -0
  78. package/lib/table/Table.vue.cjs +1 -0
  79. package/lib/table/Table.vue2.cjs +1 -0
  80. package/lib/table/index.cjs +1 -0
  81. package/lib/text/Text.vue.cjs +1 -0
  82. package/lib/text/Text.vue2.cjs +1 -0
  83. package/lib/text/index.cjs +1 -0
  84. package/lib/time/Time.vue.cjs +1 -0
  85. package/lib/time/Time.vue2.cjs +1 -0
  86. package/lib/time/index.cjs +1 -0
  87. package/lib/utils/api.cjs +1 -1
  88. package/lib/utils/chartsOption.cjs +2 -1
  89. package/lib/utils/data.cjs +1 -1
  90. package/lib/utils/resolver.cjs +1 -1
  91. package/package.json +1 -1
@@ -0,0 +1,142 @@
1
+ import { defineComponent as O, ref as b, computed as P, onMounted as j, watch as F, resolveComponent as f, resolveDirective as N, withDirectives as R, createElementBlock as C, openBlock as m, createVNode as c, withCtx as d, createBlock as g, createCommentVNode as w, Fragment as V, renderList as k, unref as D } from "vue";
2
+ import { getReportItemApi as U } from "../utils/api.js";
3
+ import { useReportStore as A } from "../stores/modules/report.js";
4
+ import { chartsBar as I, barParseData as H, chartsPie as M, pieParseData as $, chartsLine as q, lineParseData as z } from "../utils/chartsOption.js";
5
+ import { normalValueFn as G } from "../utils/data.js";
6
+ import J from "../settingTable/SettingTable.vue.js";
7
+ import K from "../config/Config.vue.js";
8
+ const ae = /* @__PURE__ */ O({
9
+ name: "TdsSettingCharts",
10
+ __name: "SettingCharts",
11
+ props: {
12
+ prodType: {}
13
+ },
14
+ setup(S) {
15
+ const T = S, i = A(), v = b(!1), _ = P(() => i.getActiveComponents), E = [
16
+ { value: "report-table", name: "表格" },
17
+ { value: "line", name: "趋势图" },
18
+ { value: "pie", name: "扇形图" },
19
+ { value: "bar", name: "柱状图" }
20
+ ], n = b(""), h = b();
21
+ async function y(r) {
22
+ const o = await U({
23
+ prod_type: T.prodType,
24
+ chart_type: r,
25
+ filter_uuid: i.filterForm.filter_uuid
26
+ });
27
+ h.value = o.data;
28
+ }
29
+ function L(r) {
30
+ let o = h.value.find((t) => t.rp_item_uuid === r);
31
+ const e = o.rp_item_content;
32
+ if (o.rp_item_content.type === "bar") {
33
+ e.options = I();
34
+ const t = [];
35
+ let l = "";
36
+ e.data.forEach((u) => {
37
+ l = u.data[0].name, t.push({
38
+ name: u.label,
39
+ value: u.data[0].value
40
+ });
41
+ }), H(e.options, t, l);
42
+ }
43
+ if (e.type === "pie" && (e.options = M({ isLegend: !0 }), $({ chartOption: e.options, data: e.data })), e.type === "line") {
44
+ let t = [];
45
+ e.data.forEach((s) => {
46
+ t = s.data.map((a, p) => ({ name: a.name, value: "value" + p }));
47
+ });
48
+ const l = {
49
+ name: "name",
50
+ value: t
51
+ }, u = e.data.map((s) => {
52
+ const a = {
53
+ name: s.label
54
+ };
55
+ return t.forEach((p, B) => {
56
+ a[p.value] = s.data[B].value;
57
+ }), a;
58
+ });
59
+ e.options = q([], l), z(e.options, u, l);
60
+ }
61
+ if (e.type === "report-table") {
62
+ const t = {};
63
+ e.showColumn.forEach((l) => {
64
+ t[l.key] = !0;
65
+ }), e.options = { ...e.options, showColumn: t, border: !0, showHeader: !0, stripe: !1 };
66
+ }
67
+ Object.assign(i.activeComponents, e), i.activeComponents.rp_item_uuid = o.rp_item_uuid;
68
+ }
69
+ j(async () => {
70
+ n.value = _.value.type, await y(n.value);
71
+ });
72
+ async function x(r) {
73
+ try {
74
+ v.value = !0, await y(r), Object.assign(i.activeComponents, G(r)), v.value = !1;
75
+ } catch {
76
+ v.value = !1;
77
+ }
78
+ }
79
+ return F(
80
+ () => _.value,
81
+ (r) => {
82
+ ~["bar", "pie", "line", "report-table"].indexOf(r.type) && (n.value = _.value.type, y(n.value));
83
+ }
84
+ ), (r, o) => {
85
+ const e = f("el-option"), t = f("el-select"), l = f("el-form-item"), u = f("el-form"), s = N("loading");
86
+ return R((m(), C("div", null, [
87
+ c(u, { "label-position": "top" }, {
88
+ default: d(() => [
89
+ c(l, { label: "图表类型" }, {
90
+ default: d(() => [
91
+ c(t, {
92
+ style: { width: "100%" },
93
+ modelValue: n.value,
94
+ "onUpdate:modelValue": o[0] || (o[0] = (a) => n.value = a),
95
+ onChange: x
96
+ }, {
97
+ default: d(() => [
98
+ (m(), C(V, null, k(E, (a, p) => c(e, {
99
+ key: p,
100
+ label: a.name,
101
+ value: a.value
102
+ }, null, 8, ["label", "value"])), 64))
103
+ ]),
104
+ _: 1
105
+ }, 8, ["modelValue"])
106
+ ]),
107
+ _: 1
108
+ }),
109
+ c(l, { label: "组件库" }, {
110
+ default: d(() => [
111
+ c(t, {
112
+ style: { width: "100%" },
113
+ modelValue: D(i).activeComponents.rp_item_uuid,
114
+ "onUpdate:modelValue": o[1] || (o[1] = (a) => D(i).activeComponents.rp_item_uuid = a),
115
+ onChange: L
116
+ }, {
117
+ default: d(() => [
118
+ (m(!0), C(V, null, k(h.value, (a, p) => (m(), g(e, {
119
+ key: p,
120
+ label: a.rp_item_name,
121
+ value: a.rp_item_uuid
122
+ }, null, 8, ["label", "value"]))), 128))
123
+ ]),
124
+ _: 1
125
+ }, 8, ["modelValue"])
126
+ ]),
127
+ _: 1
128
+ }),
129
+ n.value === "report-table" && _.value.options.showColumn ? (m(), g(J, { key: 0 })) : w("", !0),
130
+ n.value === "pie" || n.value === "bar" || n.value === "line" ? (m(), g(K, { key: 1 })) : w("", !0)
131
+ ]),
132
+ _: 1
133
+ })
134
+ ])), [
135
+ [s, v.value]
136
+ ]);
137
+ };
138
+ }
139
+ });
140
+ export {
141
+ ae as default
142
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./SettingCharts.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,6 @@
1
+ import t from "./SettingCharts.vue.js";
2
+ import { withInstall as o } from "../utils/type.js";
3
+ const r = o(t);
4
+ export {
5
+ r as default
6
+ };
@@ -0,0 +1,6 @@
1
+ import t from "./settingFilter.vue.js";
2
+ import { withInstall as o } from "../utils/type.js";
3
+ const r = o(t);
4
+ export {
5
+ r as default
6
+ };
@@ -0,0 +1,62 @@
1
+ import { defineComponent as v, ref as V, resolveComponent as l, createBlock as d, openBlock as a, withCtx as n, createVNode as i, unref as o, createElementBlock as k, Fragment as x, renderList as y } from "vue";
2
+ import { getReportFilterApi as w } from "../utils/api.js";
3
+ import { useReportStore as B } from "../stores/modules/report.js";
4
+ const T = /* @__PURE__ */ v({
5
+ name: "TdsSettingFilter",
6
+ __name: "settingFilter",
7
+ props: {
8
+ prodType: {}
9
+ },
10
+ setup(_) {
11
+ const f = _, u = V([]), t = B();
12
+ async function s() {
13
+ const m = await w({ prod_type: f.prodType });
14
+ u.value = m.data;
15
+ }
16
+ return s(), (m, r) => {
17
+ const c = l("el-option"), b = l("el-select"), p = l("el-form-item"), F = l("el-checkbox"), g = l("el-form");
18
+ return a(), d(g, {
19
+ "label-width": "80px",
20
+ "label-position": "top"
21
+ }, {
22
+ default: n(() => [
23
+ i(p, { label: "筛选条件" }, {
24
+ default: n(() => [
25
+ i(b, {
26
+ modelValue: o(t).filterForm.filter_uuid,
27
+ "onUpdate:modelValue": r[0] || (r[0] = (e) => o(t).filterForm.filter_uuid = e),
28
+ disabled: !!o(t).filterForm.filter_uuid
29
+ }, {
30
+ default: n(() => [
31
+ (a(!0), k(x, null, y(u.value, (e) => (a(), d(c, {
32
+ key: e.filter_uuid,
33
+ label: e.filter_name,
34
+ value: e.filter_uuid
35
+ }, null, 8, ["label", "value"]))), 128))
36
+ ]),
37
+ _: 1
38
+ }, 8, ["modelValue", "disabled"])
39
+ ]),
40
+ _: 1
41
+ }),
42
+ i(p, null, {
43
+ default: n(() => [
44
+ i(F, {
45
+ modelValue: o(t).filterForm.range_time,
46
+ "onUpdate:modelValue": r[1] || (r[1] = (e) => o(t).filterForm.range_time = e),
47
+ "true-value": 1,
48
+ "false-value": 0,
49
+ label: "时间范围"
50
+ }, null, 8, ["modelValue"])
51
+ ]),
52
+ _: 1
53
+ })
54
+ ]),
55
+ _: 1
56
+ });
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ T as default
62
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./settingFilter.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,59 @@
1
+ import { defineComponent as v, computed as V, resolveComponent as a, createElementBlock as i, openBlock as m, createVNode as t, withCtx as u, Fragment as f, renderList as w, createElementVNode as n, toDisplayString as b } from "vue";
2
+ import { useReportStore as C } from "../stores/modules/report.js";
3
+ const x = { class: "label" }, g = { class: "flex item-switch" }, h = { class: "flex item-switch" }, k = { class: "flex item-switch" }, B = /* @__PURE__ */ v({
4
+ name: "TdsSettingTable",
5
+ __name: "SettingTable",
6
+ setup(S) {
7
+ const d = C(), o = V(() => d.getActiveComponents);
8
+ return (U, e) => {
9
+ const s = a("el-switch"), p = a("el-form-item"), r = a("el-divider");
10
+ return m(), i("div", null, [
11
+ t(p, { label: "控制列" }, {
12
+ default: u(() => [
13
+ (m(!0), i(f, null, w(o.value.showColumn, (l, _) => (m(), i("p", {
14
+ class: "flex item-switch",
15
+ key: _
16
+ }, [
17
+ n("span", x, b(l.name), 1),
18
+ t(s, {
19
+ modelValue: o.value.options.showColumn[l.key],
20
+ "onUpdate:modelValue": (c) => o.value.options.showColumn[l.key] = c
21
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
22
+ ]))), 128))
23
+ ]),
24
+ _: 1
25
+ }),
26
+ t(r),
27
+ t(p, { label: "表格样式" }, {
28
+ default: u(() => [
29
+ n("p", g, [
30
+ e[3] || (e[3] = n("span", { class: "label" }, "斑马纹", -1)),
31
+ t(s, {
32
+ modelValue: o.value.options.stripe,
33
+ "onUpdate:modelValue": e[0] || (e[0] = (l) => o.value.options.stripe = l)
34
+ }, null, 8, ["modelValue"])
35
+ ]),
36
+ n("p", h, [
37
+ e[4] || (e[4] = n("span", { class: "label" }, "边框", -1)),
38
+ t(s, {
39
+ modelValue: o.value.options.border,
40
+ "onUpdate:modelValue": e[1] || (e[1] = (l) => o.value.options.border = l)
41
+ }, null, 8, ["modelValue"])
42
+ ]),
43
+ n("p", k, [
44
+ e[5] || (e[5] = n("span", { class: "label" }, "表头", -1)),
45
+ t(s, {
46
+ modelValue: o.value.options.showHeader,
47
+ "onUpdate:modelValue": e[2] || (e[2] = (l) => o.value.options.showHeader = l)
48
+ }, null, 8, ["modelValue"])
49
+ ])
50
+ ]),
51
+ _: 1
52
+ })
53
+ ]);
54
+ };
55
+ }
56
+ });
57
+ export {
58
+ B as default
59
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./SettingTable.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,6 @@
1
+ import t from "./SettingTable.vue.js";
2
+ import { withInstall as o } from "../utils/type.js";
3
+ const r = o(t);
4
+ export {
5
+ r as default
6
+ };
@@ -0,0 +1,6 @@
1
+ import t from "./settingText.vue.js";
2
+ import { withInstall as o } from "../utils/type.js";
3
+ const r = o(t);
4
+ export {
5
+ r as default
6
+ };
@@ -0,0 +1,112 @@
1
+ import { defineComponent as T, shallowRef as k, ref as w, onBeforeUnmount as S, resolveComponent as a, createElementBlock as p, createCommentVNode as j, unref as n, openBlock as m, createVNode as r, withCtx as d, Fragment as B, renderList as E, createBlock as F, createElementVNode as N } from "vue";
2
+ /* empty css */
3
+ import { Toolbar as U, Editor as H } from "@wangeditor/editor-for-vue";
4
+ import { getReportItemApi as I } from "../utils/api.js";
5
+ import { useReportStore as O } from "../stores/modules/report.js";
6
+ const z = { key: 0 }, A = { style: { border: "1px solid #ccc", "border-radius": "3px" } }, f = "default", M = /* @__PURE__ */ T({
7
+ name: "TdsSettingText",
8
+ __name: "settingText",
9
+ props: {
10
+ prodType: {}
11
+ },
12
+ setup(_) {
13
+ const y = _, o = O(), i = k(), u = w();
14
+ function C(e) {
15
+ const t = u.value.find((s) => s.rp_item_uuid === e);
16
+ o.activeComponents.uri = t.rp_item_content.uri, i.value.setHtml((t == null ? void 0 : t.rp_item_content.data) || "");
17
+ }
18
+ async function v() {
19
+ const e = await I({
20
+ prod_type: y.prodType,
21
+ chart_type: "p",
22
+ filter_uuid: o.filterForm.filter_uuid
23
+ });
24
+ u.value = e.data;
25
+ }
26
+ v();
27
+ const h = {
28
+ toolbarKeys: [
29
+ "bold",
30
+ "underline",
31
+ "italic",
32
+ "through",
33
+ "code",
34
+ "bulletedList",
35
+ // 无序列表
36
+ "numberedList",
37
+ // 有序列表
38
+ "clearStyle",
39
+ "color",
40
+ "bgColor",
41
+ "fontSize",
42
+ "fontFamily",
43
+ "justifyLeft",
44
+ "justifyRight",
45
+ "justifyCenter",
46
+ "justifyJustify",
47
+ "lineHeight"
48
+ ]
49
+ }, b = { placeholder: "请输入内容..." }, g = (e) => {
50
+ i.value = e;
51
+ }, V = (e) => {
52
+ };
53
+ return S(() => {
54
+ const e = i.value;
55
+ e != null && e.destroy();
56
+ }), (e, t) => {
57
+ const s = a("el-option"), x = a("el-select"), c = a("el-form-item"), L = a("el-form");
58
+ return n(o).activeComponents.id ? (m(), p("div", z, [
59
+ r(L, { "label-position": "top" }, {
60
+ default: d(() => [
61
+ r(c, { label: "组件库" }, {
62
+ default: d(() => [
63
+ r(x, {
64
+ style: { width: "100%" },
65
+ modelValue: n(o).activeComponents.rp_item_uuid,
66
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => n(o).activeComponents.rp_item_uuid = l),
67
+ onChange: C
68
+ }, {
69
+ default: d(() => [
70
+ (m(!0), p(B, null, E(u.value, (l, R) => (m(), F(s, {
71
+ key: R,
72
+ label: l.rp_item_name,
73
+ value: l.rp_item_uuid
74
+ }, null, 8, ["label", "value"]))), 128))
75
+ ]),
76
+ _: 1
77
+ }, 8, ["modelValue"])
78
+ ]),
79
+ _: 1
80
+ }),
81
+ r(c, { label: "文本内容" }, {
82
+ default: d(() => [
83
+ N("div", A, [
84
+ r(n(U), {
85
+ style: { "border-bottom": "1px solid #ccc" },
86
+ editor: i.value,
87
+ "default-config": h,
88
+ mode: f
89
+ }, null, 8, ["editor"]),
90
+ r(n(H), {
91
+ style: { height: "500px", "overflow-y": "hidden" },
92
+ onOnChange: V,
93
+ modelValue: n(o).activeComponents.data,
94
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => n(o).activeComponents.data = l),
95
+ "default-config": b,
96
+ mode: f,
97
+ onOnCreated: g
98
+ }, null, 8, ["modelValue"])
99
+ ])
100
+ ]),
101
+ _: 1
102
+ })
103
+ ]),
104
+ _: 1
105
+ })
106
+ ])) : j("", !0);
107
+ };
108
+ }
109
+ });
110
+ export {
111
+ M as default
112
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./settingText.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,6 @@
1
+ import t from "./settingTitle.vue.js";
2
+ import { withInstall as i } from "../utils/type.js";
3
+ const r = i(t);
4
+ export {
5
+ r as default
6
+ };
@@ -0,0 +1 @@
1
+ [data-v-86e0f9f6] .el-color-picker{width:100%}[data-v-86e0f9f6] .el-color-picker .el-color-picker__trigger{width:100%;top:1px}[data-v-86e0f9f6] .el-input-number{width:100%}.sub-title[data-v-86e0f9f6]{color:#555;font-size:12px;padding-left:5px;height:20px;line-height:20px;margin-bottom:10px}
@@ -0,0 +1,7 @@
1
+ import t from "./settingTitle.vue2.js";
2
+ /* empty css */
3
+ import o from "../_virtual/_plugin-vue_export-helper.js";
4
+ const i = /* @__PURE__ */ o(t, [["__scopeId", "data-v-86e0f9f6"]]);
5
+ export {
6
+ i as default
7
+ };
@@ -0,0 +1,137 @@
1
+ import { defineComponent as b, resolveComponent as s, createBlock as C, openBlock as c, withCtx as p, createVNode as o, unref as l, createElementVNode as i } from "vue";
2
+ import { useReportStore as g } from "../stores/modules/report.js";
3
+ const k = /* @__PURE__ */ b({
4
+ name: "TdsSettingTitle",
5
+ __name: "settingTitle",
6
+ setup(x) {
7
+ const t = g();
8
+ return (w, e) => {
9
+ const f = s("el-input"), d = s("el-form-item"), _ = s("el-color-picker"), a = s("el-col"), u = s("el-input-number"), m = s("el-option"), r = s("el-select"), V = s("el-row"), v = s("el-form");
10
+ return c(), C(v, {
11
+ "label-width": "auto",
12
+ "label-position": "top"
13
+ }, {
14
+ default: p(() => [
15
+ o(d, { label: "名称" }, {
16
+ default: p(() => [
17
+ o(f, {
18
+ modelValue: l(t).activeComponents.data,
19
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => l(t).activeComponents.data = n),
20
+ placeholder: "Please input",
21
+ maxlength: "24",
22
+ "show-word-limit": ""
23
+ }, null, 8, ["modelValue"])
24
+ ]),
25
+ _: 1
26
+ }),
27
+ o(d, { label: "样式" }, {
28
+ default: p(() => [
29
+ o(V, { gutter: 20 }, {
30
+ default: p(() => [
31
+ o(a, { span: 12 }, {
32
+ default: p(() => [
33
+ o(_, {
34
+ modelValue: l(t).activeComponents.options.color,
35
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => l(t).activeComponents.options.color = n),
36
+ "show-alpha": ""
37
+ }, null, 8, ["modelValue"]),
38
+ e[7] || (e[7] = i("p", { class: "sub-title" }, "颜色", -1))
39
+ ]),
40
+ _: 1
41
+ }),
42
+ o(a, { span: 12 }, {
43
+ default: p(() => [
44
+ o(u, {
45
+ modelValue: l(t).activeComponents.options.size,
46
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => l(t).activeComponents.options.size = n),
47
+ "controls-position": "right"
48
+ }, null, 8, ["modelValue"]),
49
+ e[8] || (e[8] = i("p", { class: "sub-title" }, "字体大小", -1))
50
+ ]),
51
+ _: 1
52
+ }),
53
+ o(a, { span: 12 }, {
54
+ default: p(() => [
55
+ o(r, {
56
+ modelValue: l(t).activeComponents.options.fontWeight,
57
+ "onUpdate:modelValue": e[3] || (e[3] = (n) => l(t).activeComponents.options.fontWeight = n)
58
+ }, {
59
+ default: p(() => [
60
+ o(m, {
61
+ label: "常规",
62
+ value: 500
63
+ }),
64
+ o(m, {
65
+ label: "加粗",
66
+ value: 600
67
+ })
68
+ ]),
69
+ _: 1
70
+ }, 8, ["modelValue"]),
71
+ e[9] || (e[9] = i("p", { class: "sub-title" }, "字体粗细", -1))
72
+ ]),
73
+ _: 1
74
+ }),
75
+ o(a, { span: 12 }, {
76
+ default: p(() => [
77
+ o(u, {
78
+ modelValue: l(t).activeComponents.options.letterSpacing,
79
+ "onUpdate:modelValue": e[4] || (e[4] = (n) => l(t).activeComponents.options.letterSpacing = n),
80
+ "controls-position": "right"
81
+ }, null, 8, ["modelValue"]),
82
+ e[10] || (e[10] = i("p", { class: "sub-title" }, "字间距", -1))
83
+ ]),
84
+ _: 1
85
+ }),
86
+ o(a, { span: 12 }, {
87
+ default: p(() => [
88
+ o(u, {
89
+ modelValue: l(t).activeComponents.options.textIndent,
90
+ "onUpdate:modelValue": e[5] || (e[5] = (n) => l(t).activeComponents.options.textIndent = n),
91
+ "controls-position": "right"
92
+ }, null, 8, ["modelValue"]),
93
+ e[11] || (e[11] = i("p", { class: "sub-title" }, "首行缩进", -1))
94
+ ]),
95
+ _: 1
96
+ }),
97
+ o(a, { span: 12 }, {
98
+ default: p(() => [
99
+ o(r, {
100
+ modelValue: l(t).activeComponents.options.textAlign,
101
+ "onUpdate:modelValue": e[6] || (e[6] = (n) => l(t).activeComponents.options.textAlign = n)
102
+ }, {
103
+ default: p(() => [
104
+ o(m, {
105
+ label: "左对齐",
106
+ value: "left"
107
+ }),
108
+ o(m, {
109
+ label: "居中对齐",
110
+ value: "center"
111
+ }),
112
+ o(m, {
113
+ label: "右对齐",
114
+ value: "right"
115
+ })
116
+ ]),
117
+ _: 1
118
+ }, 8, ["modelValue"]),
119
+ e[12] || (e[12] = i("p", { class: "sub-title" }, "位置", -1))
120
+ ]),
121
+ _: 1
122
+ })
123
+ ]),
124
+ _: 1
125
+ })
126
+ ]),
127
+ _: 1
128
+ })
129
+ ]),
130
+ _: 1
131
+ });
132
+ };
133
+ }
134
+ });
135
+ export {
136
+ k as default
137
+ };
@@ -0,0 +1,26 @@
1
+ import { defineComponent as n, createElementBlock as l, openBlock as s, createVNode as d, normalizeProps as p, guardReactiveProps as i } from "vue";
2
+ const m = /* @__PURE__ */ n({
3
+ name: "TdsReportTable",
4
+ __name: "Table",
5
+ props: {
6
+ data: {}
7
+ },
8
+ setup(o) {
9
+ const e = o, r = (a) => /* @__PURE__ */ React.createElement(
10
+ "el-table",
11
+ {
12
+ data: a.data,
13
+ border: e.data.options.border,
14
+ "show-header": !!e.data.options.showHeader,
15
+ stripe: e.data.options.stripe
16
+ },
17
+ a.showColumn.map((t) => e.data.options.showColumn[t.key] === !0 ? /* @__PURE__ */ React.createElement("el-table-column", { prop: t.key, label: t.name }) : null)
18
+ );
19
+ return (a, t) => (s(), l("div", null, [
20
+ d(r, p(i(a.data)), null, 16)
21
+ ]));
22
+ }
23
+ });
24
+ export {
25
+ m as default
26
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Table.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,6 @@
1
+ import t from "./Table.vue.js";
2
+ import { withInstall as o } from "../utils/type.js";
3
+ const r = o(t);
4
+ export {
5
+ r as default
6
+ };
@@ -0,0 +1,27 @@
1
+ import { defineComponent as a, createElementBlock as i, openBlock as r, normalizeStyle as p, toDisplayString as s } from "vue";
2
+ const d = /* @__PURE__ */ a({
3
+ name: "TdsReportText",
4
+ __name: "Text",
5
+ props: {
6
+ data: {}
7
+ },
8
+ setup(e) {
9
+ const n = e, o = () => {
10
+ const t = n.data.options || {};
11
+ return {
12
+ color: t.color,
13
+ "font-size": t.size + "px",
14
+ "font-weight": t.fontWeight,
15
+ "letter-spacing": t.letterSpacing + "px",
16
+ "text-indent": t.textIndent + "px",
17
+ "text-align": t.textAlign
18
+ };
19
+ };
20
+ return (t, c) => (r(), i("div", {
21
+ style: p(o())
22
+ }, s(t.data.data), 5));
23
+ }
24
+ });
25
+ export {
26
+ d as default
27
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./Text.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,6 @@
1
+ import t from "./Text.vue.js";
2
+ import { withInstall as o } from "../utils/type.js";
3
+ const r = o(t);
4
+ export {
5
+ r as default
6
+ };