@topdatasec/report 1.0.9 → 1.0.10
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/LICENSE +21 -0
- package/README.md +218 -0
- package/lib/index.d.ts +5 -8
- package/{es/bar/Bar.d.ts → lib/report/components/Bar.vue.d.ts} +2 -2
- package/{es/pie/Pie.d.ts → lib/report/components/Line.vue.d.ts} +2 -2
- package/{es/table/Table.d.ts → lib/report/components/Pie.vue.d.ts} +2 -2
- package/{es/time/Time.d.ts → lib/report/components/RangeTime.vue.d.ts} +3 -3
- package/lib/report/components/Report.vue.d.ts +18 -0
- package/{es/line/Line.d.ts → lib/report/components/ReportChart.vue.d.ts} +2 -2
- package/lib/report/components/ReportDescribe.vue.d.ts +5 -0
- package/{es/select/Select.d.ts → lib/report/components/ReportSelect.vue.d.ts} +3 -3
- package/lib/report/components/ReportTable.vue.d.ts +5 -0
- package/lib/report/components/ReportText.vue.d.ts +5 -0
- package/lib/report/components/SettingTable.vue.d.ts +2 -0
- package/lib/report/components/editor/components/Setting.vue.d.ts +2 -0
- package/lib/report/components/editor/index.vue.d.ts +24 -0
- package/{es/settingFilter/settingFilter.d.ts → lib/report/components/preview/Catalogue.vue.d.ts} +5 -3
- package/lib/report/components/preview/index.vue.d.ts +24 -0
- package/lib/report/index.d.ts +5 -8
- package/lib/report/index.vue.d.ts +2 -0
- package/lib/stores/interface/index.d.ts +1 -0
- package/lib/stores/modules/report.d.ts +10 -9
- package/lib/style.css +1 -0
- package/lib/tds-report-ui.es.js +26431 -0
- package/lib/tds-report-ui.umd.js +205 -0
- package/lib/utils/api.d.ts +6 -0
- package/lib/utils/chartsOption.d.ts +45 -12
- package/lib/utils/index.d.ts +1 -41
- package/lib/withInstall.d.ts +4 -0
- package/package.json +69 -88
- package/README.zh-CN.md +0 -0
- package/dist/index.iife.js +0 -2
- package/dist/index.js +0 -2041
- package/dist/index.umd.cjs +0 -2
- package/dist/style.css +0 -1
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/es/bar/Bar.vue.js +0 -20
- package/es/bar/Bar.vue2.js +0 -4
- package/es/bar/index.d.ts +0 -15
- package/es/bar/index.js +0 -6
- package/es/components.d.ts +0 -15
- package/es/components.js +0 -30
- package/es/config/Config.css +0 -1
- package/es/config/Config.vue.js +0 -7
- package/es/config/Config.vue2.js +0 -207
- package/es/config/index.d.ts +0 -14
- package/es/config/index.js +0 -6
- package/es/index.d.ts +0 -10
- package/es/index.js +0 -60
- package/es/line/Line.vue.js +0 -20
- package/es/line/Line.vue2.js +0 -4
- package/es/line/index.d.ts +0 -15
- package/es/line/index.js +0 -6
- package/es/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
- package/es/pie/Pie.vue.js +0 -20
- package/es/pie/Pie.vue2.js +0 -4
- package/es/pie/index.d.ts +0 -15
- package/es/pie/index.js +0 -6
- package/es/report/Report.d.ts +0 -7
- package/es/report/Report.vue.js +0 -112
- package/es/report/Report.vue2.js +0 -4
- package/es/report/index.d.ts +0 -17
- package/es/report/index.js +0 -6
- package/es/select/Select.vue.js +0 -39
- package/es/select/Select.vue2.js +0 -4
- package/es/select/index.d.ts +0 -25
- package/es/select/index.js +0 -6
- package/es/settingCharts/SettingCharts.d.ts +0 -5
- package/es/settingCharts/SettingCharts.vue.js +0 -142
- package/es/settingCharts/SettingCharts.vue2.js +0 -4
- package/es/settingCharts/index.d.ts +0 -14
- package/es/settingCharts/index.js +0 -6
- package/es/settingFilter/index.d.ts +0 -15
- package/es/settingFilter/index.js +0 -6
- package/es/settingFilter/settingFilter.vue.js +0 -62
- package/es/settingFilter/settingFilter.vue2.js +0 -4
- package/es/settingTable/SettingTable.vue.js +0 -59
- package/es/settingTable/SettingTable.vue2.js +0 -4
- package/es/settingTable/index.d.ts +0 -14
- package/es/settingTable/index.js +0 -6
- package/es/settingText/index.d.ts +0 -15
- package/es/settingText/index.js +0 -6
- package/es/settingText/settingText.d.ts +0 -5
- package/es/settingText/settingText.vue.js +0 -112
- package/es/settingText/settingText.vue2.js +0 -4
- package/es/settingTitle/index.d.ts +0 -14
- package/es/settingTitle/index.js +0 -6
- package/es/settingTitle/settingTitle.css +0 -1
- package/es/settingTitle/settingTitle.vue.js +0 -7
- package/es/settingTitle/settingTitle.vue2.js +0 -137
- package/es/stores/interface/index.d.ts +0 -18
- package/es/stores/modules/report.d.ts +0 -35
- package/es/stores/modules/report.js +0 -45
- package/es/style/global.css +0 -1
- package/es/table/Table.vue.js +0 -26
- package/es/table/Table.vue2.js +0 -4
- package/es/table/index.d.ts +0 -15
- package/es/table/index.js +0 -6
- package/es/text/Text.d.ts +0 -5
- package/es/text/Text.vue.js +0 -27
- package/es/text/Text.vue2.js +0 -4
- package/es/text/index.d.ts +0 -15
- package/es/text/index.js +0 -6
- package/es/time/Time.vue.js +0 -35
- package/es/time/Time.vue2.js +0 -4
- package/es/time/index.d.ts +0 -25
- package/es/time/index.js +0 -6
- package/es/utils/api.d.ts +0 -12
- package/es/utils/api.js +0 -32
- package/es/utils/chartsOption.d.ts +0 -298
- package/es/utils/chartsOption.js +0 -501
- package/es/utils/data.d.ts +0 -4
- package/es/utils/data.js +0 -162
- package/es/utils/index.d.ts +0 -43
- package/es/utils/index.js +0 -309
- package/es/utils/resolver.d.ts +0 -11
- package/es/utils/resolver.js +0 -49
- package/es/utils/type.d.ts +0 -2
- package/es/utils/type.js +0 -9
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -1
- package/lib/bar/Bar.d.ts +0 -5
- package/lib/bar/Bar.vue.cjs +0 -1
- package/lib/bar/Bar.vue2.cjs +0 -1
- package/lib/bar/index.cjs +0 -1
- package/lib/bar/index.d.ts +0 -15
- package/lib/components.cjs +0 -1
- package/lib/components.d.ts +0 -15
- package/lib/config/Config.css +0 -1
- package/lib/config/Config.vue.cjs +0 -1
- package/lib/config/Config.vue2.cjs +0 -1
- package/lib/config/index.cjs +0 -1
- package/lib/config/index.d.ts +0 -14
- package/lib/index.cjs +0 -1
- package/lib/line/Line.d.ts +0 -5
- package/lib/line/Line.vue.cjs +0 -1
- package/lib/line/Line.vue2.cjs +0 -1
- package/lib/line/index.cjs +0 -1
- package/lib/line/index.d.ts +0 -15
- package/lib/node_modules/.pnpm/@wangeditor_editor@5.1.23/node_modules/@wangeditor/editor/dist/css/style.css +0 -1
- package/lib/pie/Pie.d.ts +0 -5
- package/lib/pie/Pie.vue.cjs +0 -1
- package/lib/pie/Pie.vue2.cjs +0 -1
- package/lib/pie/index.cjs +0 -1
- package/lib/pie/index.d.ts +0 -15
- package/lib/report/Report.d.ts +0 -7
- package/lib/report/Report.vue.cjs +0 -1
- package/lib/report/Report.vue2.cjs +0 -1
- package/lib/report/index.cjs +0 -1
- package/lib/select/Select.d.ts +0 -9
- package/lib/select/Select.vue.cjs +0 -1
- package/lib/select/Select.vue2.cjs +0 -1
- package/lib/select/index.cjs +0 -1
- package/lib/select/index.d.ts +0 -25
- package/lib/settingCharts/SettingCharts.d.ts +0 -5
- package/lib/settingCharts/SettingCharts.vue.cjs +0 -1
- package/lib/settingCharts/SettingCharts.vue2.cjs +0 -1
- package/lib/settingCharts/index.cjs +0 -1
- package/lib/settingCharts/index.d.ts +0 -14
- package/lib/settingFilter/index.cjs +0 -1
- package/lib/settingFilter/index.d.ts +0 -15
- package/lib/settingFilter/settingFilter.d.ts +0 -5
- package/lib/settingFilter/settingFilter.vue.cjs +0 -1
- package/lib/settingFilter/settingFilter.vue2.cjs +0 -1
- package/lib/settingTable/SettingTable.vue.cjs +0 -1
- package/lib/settingTable/SettingTable.vue2.cjs +0 -1
- package/lib/settingTable/index.cjs +0 -1
- package/lib/settingTable/index.d.ts +0 -14
- package/lib/settingText/index.cjs +0 -1
- package/lib/settingText/index.d.ts +0 -15
- package/lib/settingText/settingText.d.ts +0 -5
- package/lib/settingText/settingText.vue.cjs +0 -1
- package/lib/settingText/settingText.vue2.cjs +0 -1
- package/lib/settingTitle/index.cjs +0 -1
- package/lib/settingTitle/index.d.ts +0 -14
- package/lib/settingTitle/settingTitle.css +0 -1
- package/lib/settingTitle/settingTitle.vue.cjs +0 -1
- package/lib/settingTitle/settingTitle.vue2.cjs +0 -1
- package/lib/stores/modules/report.cjs +0 -1
- package/lib/style/global.css +0 -1
- package/lib/table/Table.d.ts +0 -5
- package/lib/table/Table.vue.cjs +0 -1
- package/lib/table/Table.vue2.cjs +0 -1
- package/lib/table/index.cjs +0 -1
- package/lib/table/index.d.ts +0 -15
- package/lib/text/Text.d.ts +0 -5
- package/lib/text/Text.vue.cjs +0 -1
- package/lib/text/Text.vue2.cjs +0 -1
- package/lib/text/index.cjs +0 -1
- package/lib/text/index.d.ts +0 -15
- package/lib/time/Time.d.ts +0 -9
- package/lib/time/Time.vue.cjs +0 -1
- package/lib/time/Time.vue2.cjs +0 -1
- package/lib/time/index.cjs +0 -1
- package/lib/time/index.d.ts +0 -25
- package/lib/utils/api.cjs +0 -1
- package/lib/utils/chartsOption.cjs +0 -2
- package/lib/utils/data.cjs +0 -1
- package/lib/utils/index.cjs +0 -1
- package/lib/utils/resolver.cjs +0 -1
- package/lib/utils/resolver.d.ts +0 -11
- package/lib/utils/type.cjs +0 -1
- package/lib/utils/type.d.ts +0 -2
- /package/{es/config/Config.d.ts → lib/report/components/ChartsUniConfig.vue.d.ts} +0 -0
- /package/{es/settingTable/SettingTable.d.ts → lib/report/components/SettingCharts.vue.d.ts} +0 -0
- /package/lib/{settingTable/SettingTable.d.ts → report/components/SettingDescribe.vue.d.ts} +0 -0
- /package/{es/settingTitle/settingTitle.d.ts → lib/report/components/SettingFilter.vue.d.ts} +0 -0
- /package/lib/{config/Config.d.ts → report/components/SettingText.vue.d.ts} +0 -0
- /package/lib/{settingTitle/settingTitle.d.ts → report/components/SettingTitle.vue.d.ts} +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
3
|
-
P: {};
|
|
4
|
-
B: {};
|
|
5
|
-
D: {};
|
|
6
|
-
C: {};
|
|
7
|
-
M: {};
|
|
8
|
-
Defaults: {};
|
|
9
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
-
__isFragment?: never;
|
|
11
|
-
__isTeleport?: never;
|
|
12
|
-
__isSuspense?: never;
|
|
13
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
14
|
-
export default _default;
|
package/es/settingTable/index.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './settingText';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./settingText').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./settingText').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./settingText').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
package/es/settingText/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
prodType: number | string;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
|
-
export default _default;
|
|
@@ -1,112 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
3
|
-
P: {};
|
|
4
|
-
B: {};
|
|
5
|
-
D: {};
|
|
6
|
-
C: {};
|
|
7
|
-
M: {};
|
|
8
|
-
Defaults: {};
|
|
9
|
-
}, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
10
|
-
__isFragment?: never;
|
|
11
|
-
__isTeleport?: never;
|
|
12
|
-
__isSuspense?: never;
|
|
13
|
-
} & import('vue').ComponentOptionsBase<Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
14
|
-
export default _default;
|
package/es/settingTitle/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
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}
|
|
@@ -1,137 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface ContentType {
|
|
2
|
-
type: string;
|
|
3
|
-
id: string;
|
|
4
|
-
name?: string;
|
|
5
|
-
hide?: boolean;
|
|
6
|
-
active?: boolean;
|
|
7
|
-
showColumn?: any;
|
|
8
|
-
data: any;
|
|
9
|
-
options?: any;
|
|
10
|
-
rp_item_uuid?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ReportState {
|
|
13
|
-
componentList: ContentType[];
|
|
14
|
-
activeComponents: any;
|
|
15
|
-
notDraggableList: ContentType[];
|
|
16
|
-
filterForm?: any;
|
|
17
|
-
titleComponent: any;
|
|
18
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ReportState, ContentType } from '../interface';
|
|
2
|
-
export declare const useReportStore: import('pinia').StoreDefinition<"tds-report", ReportState, {
|
|
3
|
-
getActiveComponents: (state: {
|
|
4
|
-
componentList: {
|
|
5
|
-
type: string;
|
|
6
|
-
id: string;
|
|
7
|
-
name?: string | undefined;
|
|
8
|
-
hide?: boolean | undefined;
|
|
9
|
-
active?: boolean | undefined;
|
|
10
|
-
showColumn?: any;
|
|
11
|
-
data: any;
|
|
12
|
-
options?: any;
|
|
13
|
-
rp_item_uuid?: string | undefined;
|
|
14
|
-
}[];
|
|
15
|
-
activeComponents: any;
|
|
16
|
-
notDraggableList: {
|
|
17
|
-
type: string;
|
|
18
|
-
id: string;
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
hide?: boolean | undefined;
|
|
21
|
-
active?: boolean | undefined;
|
|
22
|
-
showColumn?: any;
|
|
23
|
-
data: any;
|
|
24
|
-
options?: any;
|
|
25
|
-
rp_item_uuid?: string | undefined;
|
|
26
|
-
}[];
|
|
27
|
-
filterForm?: any;
|
|
28
|
-
titleComponent: any;
|
|
29
|
-
} & import('pinia').PiniaCustomStateProperties<ReportState>) => any;
|
|
30
|
-
}, {
|
|
31
|
-
setComponentList(list: ContentType[]): void;
|
|
32
|
-
getReportDemo(reportId?: string): Promise<void>;
|
|
33
|
-
setActiveComponents(item: any): void;
|
|
34
|
-
clearComponents(): void;
|
|
35
|
-
}>;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { defineStore as n } from "pinia";
|
|
2
|
-
import { getReportDemoApi as r } from "../../utils/api.js";
|
|
3
|
-
import { deepClone as s, getUniId as p } from "../../utils/index.js";
|
|
4
|
-
import { normalValue as a } from "../../utils/data.js";
|
|
5
|
-
const f = n("tds-report", {
|
|
6
|
-
state: () => ({
|
|
7
|
-
componentList: [],
|
|
8
|
-
activeComponents: {},
|
|
9
|
-
notDraggableList: [],
|
|
10
|
-
titleComponent: {},
|
|
11
|
-
filterForm: {
|
|
12
|
-
range_time: 1,
|
|
13
|
-
filter_uuid: ""
|
|
14
|
-
}
|
|
15
|
-
}),
|
|
16
|
-
getters: {
|
|
17
|
-
getActiveComponents: (t) => t.activeComponents
|
|
18
|
-
},
|
|
19
|
-
actions: {
|
|
20
|
-
// setComponentList
|
|
21
|
-
setComponentList(t) {
|
|
22
|
-
this.componentList = t;
|
|
23
|
-
},
|
|
24
|
-
async getReportDemo(t) {
|
|
25
|
-
let e = [];
|
|
26
|
-
t ? e = (await r({ report_uuid: t })).data : e = { content: s(a), range_time: 1 };
|
|
27
|
-
const i = [];
|
|
28
|
-
e.content.forEach((o) => {
|
|
29
|
-
(o.type === "report-select" || o.type === "range-time") && i.push(o), o.type === "h1" && (this.titleComponent = o), o.id = p();
|
|
30
|
-
}), this.notDraggableList = i, this.filterForm.range_time = e.range_time, this.filterForm.filter_uuid = e.filter_uuid, e.content.splice(0, 3), this.componentList = e.content;
|
|
31
|
-
},
|
|
32
|
-
setActiveComponents(t) {
|
|
33
|
-
this.activeComponents = t;
|
|
34
|
-
},
|
|
35
|
-
clearComponents() {
|
|
36
|
-
this.activeComponents = {}, this.componentList = [], this.notDraggableList = [], this.titleComponent = {}, this.filterForm = {
|
|
37
|
-
range_time: 1,
|
|
38
|
-
filter_uuid: ""
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
export {
|
|
44
|
-
f as useReportStore
|
|
45
|
-
};
|
package/es/style/global.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
*,*:before,*:after{box-sizing:border-box;margin:0;padding:0;caret-color:transparent}:root{--primary-color: #1677ff;--primary-color-hover: #4096ff}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}input,textarea{caret-color:auto}a{color:var(--primary-color);text-decoration:none;background-color:transparent;-webkit-tap-highlight-color:transparent;outline:none;cursor:pointer;transition:color .3s ease}a:hover{color:var(--primary-color-hover)}
|
package/es/table/Table.vue.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
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
|
-
};
|
package/es/table/Table.vue2.js
DELETED
package/es/table/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Table';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Table').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./Table').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Table').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
package/es/table/index.js
DELETED
package/es/text/Text.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export type Props = {
|
|
2
|
-
data: any;
|
|
3
|
-
};
|
|
4
|
-
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
-
export default _default;
|
package/es/text/Text.vue.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
};
|
package/es/text/Text.vue2.js
DELETED
package/es/text/index.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Text';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Text').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
4
|
-
P: {};
|
|
5
|
-
B: {};
|
|
6
|
-
D: {};
|
|
7
|
-
C: {};
|
|
8
|
-
M: {};
|
|
9
|
-
Defaults: {};
|
|
10
|
-
}, Readonly<import('./Text').Props> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
11
|
-
__isFragment?: never;
|
|
12
|
-
__isTeleport?: never;
|
|
13
|
-
__isSuspense?: never;
|
|
14
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Text').Props> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
15
|
-
export default _default;
|
package/es/text/index.js
DELETED
package/es/time/Time.vue.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as c, ref as o, onMounted as p, resolveComponent as i, createElementBlock as v, openBlock as _, createVNode as f } from "vue";
|
|
2
|
-
const h = /* @__PURE__ */ c({
|
|
3
|
-
name: "TdsReportTime",
|
|
4
|
-
__name: "Time",
|
|
5
|
-
props: {
|
|
6
|
-
data: {}
|
|
7
|
-
},
|
|
8
|
-
emits: ["change"],
|
|
9
|
-
setup(l, { emit: m }) {
|
|
10
|
-
const r = m, a = o(l.data), e = o([]);
|
|
11
|
-
function d(t) {
|
|
12
|
-
t ? (a.value.data[0].start_time = t[0], a.value.data[0].end_time = t[1]) : e.value = [], r("change", e.value);
|
|
13
|
-
}
|
|
14
|
-
return p(() => {
|
|
15
|
-
e.value = [a.value.data[0].start_time, a.value.data[0].end_time];
|
|
16
|
-
}), (t, n) => {
|
|
17
|
-
const s = i("el-date-picker");
|
|
18
|
-
return _(), v("div", null, [
|
|
19
|
-
f(s, {
|
|
20
|
-
modelValue: e.value,
|
|
21
|
-
"onUpdate:modelValue": n[0] || (n[0] = (u) => e.value = u),
|
|
22
|
-
type: "datetimerange",
|
|
23
|
-
placeholder: "Pick a Date",
|
|
24
|
-
format: "YYYY-MM-DD HH:mm:ss",
|
|
25
|
-
"value-format": "YYYY-MM-DD HH:mm:ss",
|
|
26
|
-
onChange: d,
|
|
27
|
-
clearable: !1
|
|
28
|
-
}, null, 8, ["modelValue"])
|
|
29
|
-
]);
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
export {
|
|
34
|
-
h as default
|
|
35
|
-
};
|
package/es/time/Time.vue2.js
DELETED
package/es/time/index.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type { Props } from './Time';
|
|
2
|
-
declare const _default: {
|
|
3
|
-
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./Time').Props> & Readonly<{
|
|
4
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
5
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
-
change: (...args: any[]) => void;
|
|
7
|
-
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
8
|
-
P: {};
|
|
9
|
-
B: {};
|
|
10
|
-
D: {};
|
|
11
|
-
C: {};
|
|
12
|
-
M: {};
|
|
13
|
-
Defaults: {};
|
|
14
|
-
}, Readonly<import('./Time').Props> & Readonly<{
|
|
15
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
16
|
-
}>, {}, {}, {}, {}, {}>;
|
|
17
|
-
__isFragment?: never;
|
|
18
|
-
__isTeleport?: never;
|
|
19
|
-
__isSuspense?: never;
|
|
20
|
-
} & import('vue').ComponentOptionsBase<Readonly<import('./Time').Props> & Readonly<{
|
|
21
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
-
change: (...args: any[]) => void;
|
|
24
|
-
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
25
|
-
export default _default;
|