go-view-worker 0.0.1
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 +221 -0
- package/dist/chunks/403-382550a8.js +42 -0
- package/dist/chunks/404-3d357d75.js +42 -0
- package/dist/chunks/500-96d14fb0.js +43 -0
- package/dist/chunks/StylesSetting-952ff564.js +338 -0
- package/dist/chunks/chartEditStore-a725b558.js +4975 -0
- package/dist/chunks/designStore-fe92c2ba.js +6268 -0
- package/dist/chunks/index-00b6339d.js +588 -0
- package/dist/chunks/index-0472b3a5.js +173 -0
- package/dist/chunks/index-097ae4b0.js +436 -0
- package/dist/chunks/index-09e62bb4.js +284 -0
- package/dist/chunks/index-1cb69ab6.js +136 -0
- package/dist/chunks/index-32d13283.js +26 -0
- package/dist/chunks/index-3fd591ea.js +81 -0
- package/dist/chunks/index-51458edb.js +143 -0
- package/dist/chunks/index-54f304ef.js +89 -0
- package/dist/chunks/index-62a7855c.js +51 -0
- package/dist/chunks/index-82d00e13.js +300 -0
- package/dist/chunks/index-9502bd7e.js +155 -0
- package/dist/chunks/index-95c5f0a0.js +1664 -0
- package/dist/chunks/index-a410a1d3.js +250 -0
- package/dist/chunks/index-da8ddb02.js +13 -0
- package/dist/chunks/index-de0a1234.js +482 -0
- package/dist/chunks/index-e31a7881.js +32 -0
- package/dist/chunks/index-f266153a.js +1985 -0
- package/dist/chunks/index-f97e5ffc.js +13 -0
- package/dist/chunks/index-fdf7dc1e.js +88 -0
- package/dist/chunks/index-fec9f9f8.js +368 -0
- package/dist/chunks/index.vue_vue_type_script_setup_true_lang-c6159a17.js +3357 -0
- package/dist/chunks/lodash-c80b695e.js +3680 -0
- package/dist/chunks/router-106a6abc.js +57 -0
- package/dist/chunks/useKeyboard.hook-da88451a.js +341 -0
- package/dist/chunks/useSyncUpdate.hook-5517a8ad.js +40 -0
- package/dist/chunks/useTargetData.hook-28a7e43b.js +12 -0
- package/dist/chunks/wrapper-4c15ca94.js +28 -0
- package/dist/favicon.ico +0 -0
- package/dist/go-view-worker.js +23 -0
- package/dist/init.js +688 -0
- package/dist/style.css +7 -0
- package/dist/types/packages/index.d.ts +12 -0
- package/dist/types/packages/init.d.ts +6 -0
- package/dist/types/packages/utils/resize.d.ts +1 -0
- package/dist/types/src/components/GoAppProvider/index.d.ts +3 -0
- package/dist/types/src/components/GoIconify/index.d.ts +3 -0
- package/dist/types/src/components/GoLoading/index.d.ts +5 -0
- package/dist/types/src/components/GoReload/index.d.ts +3 -0
- package/dist/types/src/components/GoSkeleton/index.d.ts +3 -0
- package/dist/types/src/components/GoSystemInfo/index.d.ts +3 -0
- package/dist/types/src/components/GoSystemSet/index.d.ts +3 -0
- package/dist/types/src/components/GoThemeSelect/index.d.ts +3 -0
- package/dist/types/src/components/GoUserInfo/index.d.ts +3 -0
- package/dist/types/src/components/Pages/ChartGlobImage/index.d.ts +3 -0
- package/dist/types/src/components/Pages/ChartItemSetting/index.d.ts +11 -0
- package/dist/types/src/components/Pages/Flipper/index.d.ts +4 -0
- package/dist/types/src/components/Pages/ThemeColorSelect/index.d.ts +3 -0
- package/dist/types/src/components/Pages/VChartItemSetting/index.d.ts +8 -0
- package/dist/types/src/components/Plugins/DialogContent/index.d.ts +3 -0
- package/dist/types/src/components/Plugins/LoadingContent/index.d.ts +3 -0
- package/dist/types/src/components/Plugins/MessageContent/index.d.ts +3 -0
- package/dist/types/src/components/Tips/MacOsControlBtn/index.d.ts +3 -0
- package/dist/types/src/directives/index.d.ts +2 -0
- package/dist/types/src/enums/editPageEnum.d.ts +55 -0
- package/dist/types/src/enums/eventEnum.d.ts +32 -0
- package/dist/types/src/enums/fileTypeEnum.d.ts +7 -0
- package/dist/types/src/enums/httpEnum.d.ts +96 -0
- package/dist/types/src/enums/pageEnum.d.ts +34 -0
- package/dist/types/src/enums/pluginEnum.d.ts +6 -0
- package/dist/types/src/enums/storageEnum.d.ts +10 -0
- package/dist/types/src/enums/styleEnum.d.ts +14 -0
- package/dist/types/src/hooks/index.d.ts +6 -0
- package/dist/types/src/hooks/useCanvasInitOptions.hook.d.ts +8 -0
- package/dist/types/src/hooks/useChartDataPondFetch.hook.d.ts +8 -0
- package/dist/types/src/hooks/useChartInteract.hook.d.ts +9 -0
- package/dist/types/src/hooks/useLang.hook.d.ts +126 -0
- package/dist/types/src/hooks/useLifeHandler.hook.d.ts +10 -0
- package/dist/types/src/hooks/usePreviewScale.hook.d.ts +32 -0
- package/dist/types/src/hooks/useTheme.hook.d.ts +7 -0
- package/dist/types/src/layout/components/LayoutFooter/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutHeader/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutHeaderPro/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutMain/index.d.ts +3 -0
- package/dist/types/src/layout/components/LayoutTransitionMain/index.d.ts +3 -0
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/src/packages/chartConfiguration/echarts/axis.d.ts +24 -0
- package/dist/types/src/packages/chartConfiguration/echarts/index.d.ts +4 -0
- package/dist/types/src/packages/chartConfiguration/echarts/label.d.ts +10 -0
- package/dist/types/src/packages/chartConfiguration/echarts/legend.d.ts +18 -0
- package/dist/types/src/packages/chartConfiguration/echarts/line.d.ts +8 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/index.d.ts +3 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/label.d.ts +14 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/legends.d.ts +27 -0
- package/dist/types/src/packages/chartConfiguration/vcharts/style.d.ts +18 -0
- package/dist/types/src/packages/components/Charts/Bars/BarCommon/config.d.ts +63 -0
- package/dist/types/src/packages/components/Charts/Bars/BarCommon/index.d.ts +3 -0
- package/dist/types/src/packages/components/Charts/Bars/index.d.ts +2 -0
- package/dist/types/src/packages/components/Charts/index.d.ts +8 -0
- package/dist/types/src/packages/components/Photos/Private/index.d.ts +17 -0
- package/dist/types/src/packages/components/Photos/Share/index.d.ts +14 -0
- package/dist/types/src/packages/components/Photos/index.d.ts +9 -0
- package/dist/types/src/packages/index.d.ts +214 -0
- package/dist/types/src/packages/public/index.d.ts +2 -0
- package/dist/types/src/packages/public/publicConfig.d.ts +81 -0
- package/dist/types/src/packages/public/vChart.d.ts +14 -0
- package/dist/types/src/plugins/customComponents.d.ts +7 -0
- package/dist/types/src/plugins/directives.d.ts +7 -0
- package/dist/types/src/plugins/icon.d.ts +111 -0
- package/dist/types/src/plugins/index.d.ts +5 -0
- package/dist/types/src/plugins/initFunction.d.ts +4 -0
- package/dist/types/src/plugins/naive.d.ts +3 -0
- package/dist/types/src/router/base.d.ts +7 -0
- package/dist/types/src/router/constant.d.ts +5 -0
- package/dist/types/src/router/index.d.ts +6 -0
- package/dist/types/src/router/modules/chart.route.d.ts +4 -0
- package/dist/types/src/router/modules/index.d.ts +5 -0
- package/dist/types/src/router/modules/preview.route.d.ts +4 -0
- package/dist/types/src/router/router-guards.d.ts +3 -0
- package/dist/types/src/router/types.d.ts +26 -0
- package/dist/types/src/settings/animations/index.d.ts +7 -0
- package/dist/types/src/settings/chartThemes/index.d.ts +195 -0
- package/dist/types/src/settings/designSetting.d.ts +33 -0
- package/dist/types/src/settings/pathConst.d.ts +3 -0
- package/dist/types/src/settings/systemSetting.d.ts +11 -0
- package/dist/types/src/settings/vchartThemes/index.d.ts +139 -0
- package/dist/types/src/store/index.d.ts +5 -0
- package/dist/types/src/store/modules/chartEditStore/chartEditStore.d.ts +215 -0
- package/dist/types/src/store/modules/chartHistoryStore/chartHistoryDefine.d.ts +20 -0
- package/dist/types/src/store/modules/chartHistoryStore/chartHistoryStore.d.ts +79 -0
- package/dist/types/src/store/modules/chartLayoutStore/chartLayoutStore.d.ts +36 -0
- package/dist/types/src/store/modules/designStore/designStore.d.ts +20 -0
- package/dist/types/src/store/modules/globalConfigStore/globalConfigStore.d.ts +183 -0
- package/dist/types/src/store/modules/langStore/langStore.d.ts +6 -0
- package/dist/types/src/store/modules/packagesStore/packagesStore.d.ts +10 -0
- package/dist/types/src/store/modules/settingStore/settingStore.d.ts +31 -0
- package/dist/types/src/utils/components.d.ts +13 -0
- package/dist/types/src/utils/file.d.ts +19 -0
- package/dist/types/src/utils/index.d.ts +8 -0
- package/dist/types/src/utils/plugin.d.ts +30 -0
- package/dist/types/src/utils/router.d.ts +77 -0
- package/dist/types/src/utils/storage.d.ts +35 -0
- package/dist/types/src/utils/style.d.ts +154 -0
- package/dist/types/src/utils/type.d.ts +8 -0
- package/dist/types/src/utils/utils.d.ts +128 -0
- package/dist/types/src/views/chart/ContentBox/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/components/ChartsItemBox/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/components/ChartsOptionContent/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/components/ChartsSearch/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentCharts/hooks/useAside.hook.d.ts +11 -0
- package/dist/types/src/views/chart/ContentCharts/hooks/useLayout.hook.d.ts +10 -0
- package/dist/types/src/views/chart/ContentCharts/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRender/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/barOptions.d.ts +2 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/components/CreateColorRenderChart/lineOptions.d.ts +2 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/CanvasPage/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentConfigurations/components/hooks/useTargetData.hook.d.ts +57 -0
- package/dist/types/src/views/chart/ContentConfigurations/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditAlignLine/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditBottom/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditGroup/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditHistory/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditRange/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditRule/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditSelect/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditShapeBox/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditShortcutKey/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useFile.hooks.d.ts +9 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/hooks/useSyncUpdate.hook.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditTools/utils/index.d.ts +1 -0
- package/dist/types/src/views/chart/ContentEdit/components/EditWatermark/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentEdit/hooks/useDrag.hook.d.ts +13 -0
- package/dist/types/src/views/chart/ContentEdit/hooks/useLayout.hook.d.ts +1 -0
- package/dist/types/src/views/chart/ContentEdit/hooks/useStyle.hook.d.ts +17 -0
- package/dist/types/src/views/chart/ContentEdit/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentHeader/headerLeftBtn/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentHeader/headerRightBtn/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentHeader/headerTitle/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/components/LayersGroupListItem/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/components/LayersListItem/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/components/LayersStatus/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLayers/enums.d.ts +0 -0
- package/dist/types/src/views/chart/ContentLayers/index.d.ts +3 -0
- package/dist/types/src/views/chart/ContentLoad/index.d.ts +3 -0
- package/dist/types/src/views/chart/hooks/useContextMenu.hook.d.ts +12 -0
- package/dist/types/src/views/chart/hooks/useKeyboard.hook.d.ts +38 -0
- package/dist/types/src/views/chart/hooks/useSync.hook.d.ts +5 -0
- package/dist/types/src/views/preview/components/PreviewRenderGroup/index.d.ts +3 -0
- package/dist/types/src/views/preview/components/PreviewRenderList/index.d.ts +3 -0
- package/dist/types/src/views/preview/hooks/useComInstall.hook.d.ts +5 -0
- package/dist/types/src/views/preview/hooks/useScale.hook.d.ts +17 -0
- package/dist/types/src/views/preview/hooks/useStore.hook.d.ts +3 -0
- package/dist/types/src/views/preview/utils/drag.d.ts +1 -0
- package/dist/types/src/views/preview/utils/index.d.ts +4 -0
- package/dist/types/src/views/preview/utils/keyboard.d.ts +1 -0
- package/dist/types/src/views/preview/utils/storage.d.ts +6 -0
- package/dist/types/src/views/preview/utils/style.d.ts +26 -0
- package/package.json +99 -0
|
@@ -0,0 +1,482 @@
|
|
|
1
|
+
import { defineComponent as I, computed as ge, reactive as he, ref as h, watch as E, resolveComponent as d, openBlock as f, createElementBlock as S, withDirectives as x, createVNode as c, unref as s, vShow as L, createElementVNode as O, withCtx as _, resolveDirective as fe, normalizeStyle as ve, useCssVars as Z, onUnmounted as ye, normalizeClass as T, Fragment as R, renderList as U, createBlock as $, createTextVNode as j, toDisplayString as q, isRef as Ce, createCommentVNode as be } from "vue";
|
|
2
|
+
import { i as ee, h as ke, f as Se, a as Oe, c as xe, u as Ie } from "./index.vue_vue_type_script_setup_true_lang-c6159a17.js";
|
|
3
|
+
import { C as we } from "./index-51458edb.js";
|
|
4
|
+
import { d as He, u as Le, i as A, e as $e, l as Ne, f as Pe, h as Ee, j as D, k as G } from "./chartEditStore-a725b558.js";
|
|
5
|
+
import "naive-ui";
|
|
6
|
+
import { A as B, J as Te, K as ze, C as K } from "./designStore-fe92c2ba.js";
|
|
7
|
+
import "vue-router";
|
|
8
|
+
import { l as Ae, c as J } from "./index-82d00e13.js";
|
|
9
|
+
import { u as te, a as Y, C as z } from "./index-097ae4b0.js";
|
|
10
|
+
const Be = { class: "go-chart-common" }, Fe = { class: "chart-content-list" }, Ve = /* @__PURE__ */ I({
|
|
11
|
+
__name: "index",
|
|
12
|
+
props: {
|
|
13
|
+
selectOptions: {
|
|
14
|
+
type: Object,
|
|
15
|
+
default: () => {
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(l) {
|
|
20
|
+
const i = Ae(() => import("./index-fec9f9f8.js")), u = ee(), g = l, v = He(), k = ge(() => e.categorysNum > 2 ? !0 : !v.getHidePackageOneCategory);
|
|
21
|
+
let e = he({
|
|
22
|
+
// 侧边栏
|
|
23
|
+
menuOptions: [],
|
|
24
|
+
// 当前选择
|
|
25
|
+
selectOptions: {},
|
|
26
|
+
// 分类归档
|
|
27
|
+
categorys: {
|
|
28
|
+
all: []
|
|
29
|
+
},
|
|
30
|
+
categoryNames: {
|
|
31
|
+
all: "所有"
|
|
32
|
+
},
|
|
33
|
+
// 分类归档数量
|
|
34
|
+
categorysNum: 0,
|
|
35
|
+
// 存储不同类别组件进来的选中值
|
|
36
|
+
saveSelectOptions: {}
|
|
37
|
+
});
|
|
38
|
+
const p = h("all"), m = (n) => {
|
|
39
|
+
for (const o in n) {
|
|
40
|
+
e.selectOptions = n[o];
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
E(
|
|
45
|
+
// @ts-ignore
|
|
46
|
+
() => g.selectOptions,
|
|
47
|
+
(n) => {
|
|
48
|
+
if (e.categorysNum = 0, !!n) {
|
|
49
|
+
n.list.forEach((o) => {
|
|
50
|
+
const C = e.categorys[o.category];
|
|
51
|
+
e.categorys[o.category] = C && C.length ? [...C, o] : [o], e.categoryNames[o.category] = o.categoryName, e.categorys.all.push(o);
|
|
52
|
+
});
|
|
53
|
+
for (const o in e.categorys)
|
|
54
|
+
e.categorysNum += 1, e.menuOptions.push({
|
|
55
|
+
key: o,
|
|
56
|
+
label: e.categoryNames[o]
|
|
57
|
+
});
|
|
58
|
+
m(e.categorys), p.value = e.menuOptions[0].key;
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
immediate: !0
|
|
63
|
+
}
|
|
64
|
+
), E(
|
|
65
|
+
() => u.newPhoto,
|
|
66
|
+
(n) => {
|
|
67
|
+
if (!n)
|
|
68
|
+
return;
|
|
69
|
+
const o = n.category;
|
|
70
|
+
e.categorys[o].splice(1, 0, n), e.categorys.all.splice(1, 0, n);
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
const y = (n, o) => {
|
|
74
|
+
e.categorys[n.category].splice(o, 1), e.categorys.all.splice(o, 1);
|
|
75
|
+
}, b = (n) => {
|
|
76
|
+
e.selectOptions = e.categorys[n];
|
|
77
|
+
};
|
|
78
|
+
return (n, o) => {
|
|
79
|
+
const C = d("n-menu"), w = d("n-scrollbar");
|
|
80
|
+
return f(), S("div", Be, [
|
|
81
|
+
x(c(C, {
|
|
82
|
+
class: "chart-menu-width",
|
|
83
|
+
value: p.value,
|
|
84
|
+
"onUpdate:value": [
|
|
85
|
+
o[0] || (o[0] = (N) => p.value = N),
|
|
86
|
+
b
|
|
87
|
+
],
|
|
88
|
+
options: s(e).menuOptions,
|
|
89
|
+
"icon-size": 16,
|
|
90
|
+
indent: 18
|
|
91
|
+
}, null, 8, ["value", "options"]), [
|
|
92
|
+
[L, k.value]
|
|
93
|
+
]),
|
|
94
|
+
O("div", Fe, [
|
|
95
|
+
c(w, { trigger: "none" }, {
|
|
96
|
+
default: _(() => [
|
|
97
|
+
c(s(i), {
|
|
98
|
+
menuOptions: s(e).selectOptions,
|
|
99
|
+
onDeletePhoto: y
|
|
100
|
+
}, null, 8, ["menuOptions"])
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
})
|
|
104
|
+
])
|
|
105
|
+
]);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
const Me = /* @__PURE__ */ B(Ve, [["__scopeId", "data-v-00605800"]]), Re = () => te(), oe = h(""), Q = (...l) => Re().setItem(...l), W = { value: !1 }, Ue = {
|
|
110
|
+
class: "list-img",
|
|
111
|
+
alt: "图表图片"
|
|
112
|
+
}, je = /* @__PURE__ */ I({
|
|
113
|
+
__name: "index",
|
|
114
|
+
props: {
|
|
115
|
+
chartConfig: {
|
|
116
|
+
type: Object,
|
|
117
|
+
required: !0
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
setup(l) {
|
|
121
|
+
const i = l, u = h(""), g = async () => {
|
|
122
|
+
u.value = await ke(i.chartConfig);
|
|
123
|
+
};
|
|
124
|
+
return E(
|
|
125
|
+
() => i.chartConfig.key,
|
|
126
|
+
() => g(),
|
|
127
|
+
{
|
|
128
|
+
immediate: !0
|
|
129
|
+
}
|
|
130
|
+
), (v, k) => {
|
|
131
|
+
const e = fe("lazy");
|
|
132
|
+
return x((f(), S("img", Ue, null, 512)), [
|
|
133
|
+
[e, u.value]
|
|
134
|
+
]);
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
}), qe = ["icon", "rotate", "width"], De = /* @__PURE__ */ I({
|
|
138
|
+
__name: "index",
|
|
139
|
+
props: {
|
|
140
|
+
icon: {
|
|
141
|
+
type: String,
|
|
142
|
+
required: !0
|
|
143
|
+
},
|
|
144
|
+
color: {
|
|
145
|
+
type: String,
|
|
146
|
+
default: "#999999",
|
|
147
|
+
required: !1
|
|
148
|
+
},
|
|
149
|
+
width: {
|
|
150
|
+
type: [String, Number],
|
|
151
|
+
default: "20",
|
|
152
|
+
required: !1
|
|
153
|
+
},
|
|
154
|
+
rotate: {
|
|
155
|
+
type: [String, Number],
|
|
156
|
+
default: "0",
|
|
157
|
+
required: !1
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
setup(l) {
|
|
161
|
+
return (i, u) => (f(), S("iconify-icon", {
|
|
162
|
+
icon: l.icon,
|
|
163
|
+
rotate: `${l.rotate}deg`,
|
|
164
|
+
width: l.width,
|
|
165
|
+
style: ve({
|
|
166
|
+
color: l.color
|
|
167
|
+
})
|
|
168
|
+
}, null, 12, qe));
|
|
169
|
+
}
|
|
170
|
+
}), Ge = { class: "go-chart-search-box" }, Ke = { class: "search-list-box" }, Je = ["title", "onClick"], Ye = /* @__PURE__ */ I({
|
|
171
|
+
__name: "index",
|
|
172
|
+
props: {
|
|
173
|
+
menuOptions: {
|
|
174
|
+
type: Array,
|
|
175
|
+
default: () => []
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
setup(l) {
|
|
179
|
+
Z((t) => ({
|
|
180
|
+
"42a060ac": s(oe)
|
|
181
|
+
}));
|
|
182
|
+
const i = l, u = Le(), g = te(), { SearchIcon: v, AlbumsIcon: k, GridIcon: e } = A.ionicons5, p = h(!1), m = h(!1), y = h(void 0), b = h(null), n = h([]), o = h(g.getChartType), C = [
|
|
183
|
+
{ label: "单列", icon: k, value: Y.SINGLE },
|
|
184
|
+
{ label: "双列", icon: e, value: Y.DOUBLE }
|
|
185
|
+
], N = ((t) => {
|
|
186
|
+
const a = [];
|
|
187
|
+
for (const H of t)
|
|
188
|
+
a.push(...H.list);
|
|
189
|
+
return a;
|
|
190
|
+
})(i.menuOptions), P = () => {
|
|
191
|
+
y.value = void 0, m.value = !1, b.value = null, n.value = [];
|
|
192
|
+
}, ne = (t) => {
|
|
193
|
+
if (!$e(t) || !t.length) {
|
|
194
|
+
P();
|
|
195
|
+
return;
|
|
196
|
+
}
|
|
197
|
+
y.value = !0, m.value = !0, n.value = N.filter(
|
|
198
|
+
(a) => !a.disabled && (!t || a.title.toLowerCase().includes(t.toLowerCase()))
|
|
199
|
+
), setTimeout(() => {
|
|
200
|
+
y.value = void 0;
|
|
201
|
+
}, 500);
|
|
202
|
+
}, F = (t) => {
|
|
203
|
+
m.value && t.target && (t.target.closest(".go-chart-search") || P());
|
|
204
|
+
}, se = async (t) => {
|
|
205
|
+
if (!t.disabled)
|
|
206
|
+
try {
|
|
207
|
+
Ne(), J(t.chartKey, Se(t)), J(t.conKey, Oe(t));
|
|
208
|
+
let a = await xe(t);
|
|
209
|
+
t.redirectComponent && (t.dataset && (a.option.dataset = t.dataset), a.chartConfig.title = t.title, a.chartConfig.chartFrame = t.chartFrame), u.addComponentList(a, !1, !0), u.setTargetSelectChart(a.id), P(), Pe();
|
|
210
|
+
} catch {
|
|
211
|
+
Ee(), window.$message.warning("图表正在研发中, 敬请期待...");
|
|
212
|
+
}
|
|
213
|
+
}, V = (t) => {
|
|
214
|
+
p.value = t;
|
|
215
|
+
}, ae = (t) => {
|
|
216
|
+
o.value = t, g.setItem(z.Chart_TYPE, t);
|
|
217
|
+
};
|
|
218
|
+
return Te(document, "click", (t) => {
|
|
219
|
+
F(t);
|
|
220
|
+
}), ye(() => {
|
|
221
|
+
ze(document, "click", F);
|
|
222
|
+
}), (t, a) => {
|
|
223
|
+
const H = d("n-icon"), ce = d("n-input"), le = d("n-input-group"), re = d("n-empty"), ie = d("n-text"), ue = d("n-scrollbar"), pe = d("n-popover"), de = d("n-tooltip"), _e = d("n-button"), me = d("n-button-group");
|
|
224
|
+
return f(), S("div", Ge, [
|
|
225
|
+
O("div", {
|
|
226
|
+
class: T(["chart-search go-transition", { "chart-search-focus": p.value }])
|
|
227
|
+
}, [
|
|
228
|
+
c(pe, {
|
|
229
|
+
class: "chart-search-popover",
|
|
230
|
+
"show-arrow": !1,
|
|
231
|
+
show: m.value,
|
|
232
|
+
to: !1,
|
|
233
|
+
trigger: "hover",
|
|
234
|
+
placement: "bottom-start"
|
|
235
|
+
}, {
|
|
236
|
+
trigger: _(() => [
|
|
237
|
+
c(le, null, {
|
|
238
|
+
default: _(() => [
|
|
239
|
+
c(ce, {
|
|
240
|
+
size: "small",
|
|
241
|
+
placeholder: "搜索组件",
|
|
242
|
+
value: b.value,
|
|
243
|
+
"onUpdate:value": [
|
|
244
|
+
a[0] || (a[0] = (r) => b.value = r),
|
|
245
|
+
ne
|
|
246
|
+
],
|
|
247
|
+
valueModifiers: { trim: !0 },
|
|
248
|
+
loading: y.value,
|
|
249
|
+
onFocus: a[1] || (a[1] = (r) => V(!0)),
|
|
250
|
+
onBlur: a[2] || (a[2] = (r) => V(!1))
|
|
251
|
+
}, {
|
|
252
|
+
suffix: _(() => [
|
|
253
|
+
x(c(H, { component: s(v) }, null, 8, ["component"]), [
|
|
254
|
+
[L, !y.value]
|
|
255
|
+
])
|
|
256
|
+
]),
|
|
257
|
+
_: 1
|
|
258
|
+
}, 8, ["value", "loading"])
|
|
259
|
+
]),
|
|
260
|
+
_: 1
|
|
261
|
+
})
|
|
262
|
+
]),
|
|
263
|
+
default: _(() => [
|
|
264
|
+
O("div", Ke, [
|
|
265
|
+
c(ue, { style: { "max-height": "500px" } }, {
|
|
266
|
+
default: _(() => [
|
|
267
|
+
x(c(re, {
|
|
268
|
+
size: "small",
|
|
269
|
+
description: "没有找到组件~"
|
|
270
|
+
}, null, 512), [
|
|
271
|
+
[L, !n.value.length]
|
|
272
|
+
]),
|
|
273
|
+
(f(!0), S(R, null, U(n.value, (r) => (f(), S("div", {
|
|
274
|
+
class: "list-item go-flex-items-center go-ellipsis-1",
|
|
275
|
+
key: r.key,
|
|
276
|
+
title: r.title,
|
|
277
|
+
onClick: (M) => se(r)
|
|
278
|
+
}, [
|
|
279
|
+
r.icon ? (f(), $(s(De), {
|
|
280
|
+
key: 0,
|
|
281
|
+
class: "list-img",
|
|
282
|
+
icon: r.icon,
|
|
283
|
+
color: "#999",
|
|
284
|
+
width: "20"
|
|
285
|
+
}, null, 8, ["icon"])) : (f(), $(s(je), {
|
|
286
|
+
key: 1,
|
|
287
|
+
class: "list-item-img",
|
|
288
|
+
chartConfig: r
|
|
289
|
+
}, null, 8, ["chartConfig"])),
|
|
290
|
+
c(ie, {
|
|
291
|
+
class: "list-item-fs",
|
|
292
|
+
depth: "2"
|
|
293
|
+
}, {
|
|
294
|
+
default: _(() => [
|
|
295
|
+
j(q(r.title), 1)
|
|
296
|
+
]),
|
|
297
|
+
_: 2
|
|
298
|
+
}, 1024)
|
|
299
|
+
], 8, Je))), 128))
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
}),
|
|
303
|
+
a[3] || (a[3] = O("div", { class: "popover-modal" }, null, -1))
|
|
304
|
+
])
|
|
305
|
+
]),
|
|
306
|
+
_: 1
|
|
307
|
+
}, 8, ["show"])
|
|
308
|
+
], 2),
|
|
309
|
+
c(me, {
|
|
310
|
+
class: T(["btn-group go-transition", { "btn-group-focus": p.value }]),
|
|
311
|
+
style: { display: "flex" }
|
|
312
|
+
}, {
|
|
313
|
+
default: _(() => [
|
|
314
|
+
(f(), S(R, null, U(C, (r, M) => c(_e, {
|
|
315
|
+
ghost: "",
|
|
316
|
+
size: "small",
|
|
317
|
+
key: M,
|
|
318
|
+
type: o.value === r.value ? "primary" : "tertiary",
|
|
319
|
+
onClick: (at) => ae(r.value)
|
|
320
|
+
}, {
|
|
321
|
+
default: _(() => [
|
|
322
|
+
c(de, {
|
|
323
|
+
"show-arrow": !1,
|
|
324
|
+
trigger: "hover"
|
|
325
|
+
}, {
|
|
326
|
+
trigger: _(() => [
|
|
327
|
+
c(H, {
|
|
328
|
+
size: "14",
|
|
329
|
+
component: r.icon
|
|
330
|
+
}, null, 8, ["component"])
|
|
331
|
+
]),
|
|
332
|
+
default: _(() => [
|
|
333
|
+
j(" " + q(r.label), 1)
|
|
334
|
+
]),
|
|
335
|
+
_: 2
|
|
336
|
+
}, 1024)
|
|
337
|
+
]),
|
|
338
|
+
_: 2
|
|
339
|
+
}, 1032, ["type", "onClick"])), 64))
|
|
340
|
+
]),
|
|
341
|
+
_: 1
|
|
342
|
+
}, 8, ["class"])
|
|
343
|
+
]);
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
const Qe = /* @__PURE__ */ B(Ye, [["__scopeId", "data-v-833c2b76"]]), { AirPlaneOutlineIcon: gt, ImageIcon: We, BarChartIcon: Xe } = A.ionicons5, { TableSplitIcon: ht, RoadmapIcon: Ze, ChartPieIcon: ft, SpellCheckIcon: vt, GraphicalDataFlowIcon: yt } = A.carbon, X = {
|
|
348
|
+
[D.CHARTS]: {
|
|
349
|
+
icon: K(Ze),
|
|
350
|
+
label: G.CHARTS
|
|
351
|
+
},
|
|
352
|
+
// [PackagesCategoryEnum.VCHART]: {
|
|
353
|
+
// icon: renderIcon(ChartPieIcon),
|
|
354
|
+
// label: PackagesCategoryName.VCHART
|
|
355
|
+
// },
|
|
356
|
+
// [PackagesCategoryEnum.INFORMATIONS]: {
|
|
357
|
+
// icon: renderIcon(SpellCheckIcon),
|
|
358
|
+
// label: PackagesCategoryName.INFORMATIONS
|
|
359
|
+
// },
|
|
360
|
+
// [PackagesCategoryEnum.TABLES]: {
|
|
361
|
+
// icon: renderIcon(TableSplitIcon),
|
|
362
|
+
// label: PackagesCategoryName.TABLES
|
|
363
|
+
// },
|
|
364
|
+
// [PackagesCategoryEnum.DECORATES]: {
|
|
365
|
+
// icon: renderIcon(GraphicalDataFlowIcon),
|
|
366
|
+
// label: PackagesCategoryName.DECORATES
|
|
367
|
+
// },
|
|
368
|
+
[D.PHOTOS]: {
|
|
369
|
+
icon: K(We),
|
|
370
|
+
label: G.PHOTOS
|
|
371
|
+
}
|
|
372
|
+
// [PackagesCategoryEnum.ICONS]: {
|
|
373
|
+
// icon: renderIcon(AirPlaneOutlineIcon),
|
|
374
|
+
// label: PackagesCategoryName.ICONS
|
|
375
|
+
// }
|
|
376
|
+
}, et = (l = []) => {
|
|
377
|
+
let i = [];
|
|
378
|
+
if (l.length)
|
|
379
|
+
i = l;
|
|
380
|
+
else {
|
|
381
|
+
const e = ee();
|
|
382
|
+
(() => {
|
|
383
|
+
for (const m in e.getPackagesList)
|
|
384
|
+
i.push({
|
|
385
|
+
key: m,
|
|
386
|
+
// @ts-ignore
|
|
387
|
+
icon: X[m].icon,
|
|
388
|
+
// @ts-ignore
|
|
389
|
+
label: X[m].label,
|
|
390
|
+
// @ts-ignore
|
|
391
|
+
list: e.getPackagesList[m]
|
|
392
|
+
});
|
|
393
|
+
})();
|
|
394
|
+
}
|
|
395
|
+
let u = i[0].key;
|
|
396
|
+
const g = h(i[0].key), v = h(i[0]);
|
|
397
|
+
return {
|
|
398
|
+
getCharts: W,
|
|
399
|
+
BarChartIcon: Xe,
|
|
400
|
+
themeColor: oe,
|
|
401
|
+
selectOptions: v,
|
|
402
|
+
selectValue: g,
|
|
403
|
+
clickItemHandle: (e, p) => {
|
|
404
|
+
v.value = p, u === e ? Q(z.CHARTS, !W.value, !1) : Q(z.CHARTS, !0, !1), u = e;
|
|
405
|
+
},
|
|
406
|
+
menuOptions: i
|
|
407
|
+
};
|
|
408
|
+
}, tt = { class: "menu-width-box" }, ot = { class: "menu-component-box" }, nt = /* @__PURE__ */ I({
|
|
409
|
+
__name: "index",
|
|
410
|
+
setup(l) {
|
|
411
|
+
Z((y) => ({
|
|
412
|
+
"4704d6d7": s(k)
|
|
413
|
+
}));
|
|
414
|
+
const u = Ie().getMenuOptions, { getCharts: g, BarChartIcon: v, themeColor: k, selectOptions: e, selectValue: p, clickItemHandle: m } = et(u);
|
|
415
|
+
return (y, b) => {
|
|
416
|
+
const n = d("n-icon"), o = d("n-menu"), C = d("go-skeleton");
|
|
417
|
+
return f(), $(s(we), {
|
|
418
|
+
class: T(["go-content-charts", { scoped: !s(g) }]),
|
|
419
|
+
title: "组件",
|
|
420
|
+
depth: 1,
|
|
421
|
+
backIcon: !1
|
|
422
|
+
}, {
|
|
423
|
+
icon: _(() => [
|
|
424
|
+
c(n, {
|
|
425
|
+
size: "14",
|
|
426
|
+
depth: 2
|
|
427
|
+
}, {
|
|
428
|
+
default: _(() => [
|
|
429
|
+
c(s(v))
|
|
430
|
+
]),
|
|
431
|
+
_: 1
|
|
432
|
+
})
|
|
433
|
+
]),
|
|
434
|
+
"top-right": _(() => [
|
|
435
|
+
x(c(s(Qe), { menuOptions: s(u) }, null, 8, ["menuOptions"]), [
|
|
436
|
+
[L, s(g)]
|
|
437
|
+
])
|
|
438
|
+
]),
|
|
439
|
+
default: _(() => [
|
|
440
|
+
O("aside", null, [
|
|
441
|
+
O("div", tt, [
|
|
442
|
+
c(o, {
|
|
443
|
+
class: "menu-width",
|
|
444
|
+
value: s(p),
|
|
445
|
+
"onUpdate:value": [
|
|
446
|
+
b[0] || (b[0] = (w) => Ce(p) ? p.value = w : null),
|
|
447
|
+
s(m)
|
|
448
|
+
],
|
|
449
|
+
options: s(u),
|
|
450
|
+
"icon-size": 16,
|
|
451
|
+
indent: 18
|
|
452
|
+
}, null, 8, ["value", "options", "onUpdate:value"]),
|
|
453
|
+
O("div", ot, [
|
|
454
|
+
c(C, {
|
|
455
|
+
load: !s(e),
|
|
456
|
+
round: "",
|
|
457
|
+
text: "",
|
|
458
|
+
repeat: 2,
|
|
459
|
+
style: { width: "90%" }
|
|
460
|
+
}, null, 8, ["load"]),
|
|
461
|
+
s(e) ? (f(), $(s(Me), {
|
|
462
|
+
selectOptions: s(e),
|
|
463
|
+
key: s(p)
|
|
464
|
+
}, null, 8, ["selectOptions"])) : be("", !0)
|
|
465
|
+
])
|
|
466
|
+
])
|
|
467
|
+
])
|
|
468
|
+
]),
|
|
469
|
+
_: 1
|
|
470
|
+
}, 8, ["class"]);
|
|
471
|
+
};
|
|
472
|
+
}
|
|
473
|
+
});
|
|
474
|
+
const st = /* @__PURE__ */ B(nt, [["__scopeId", "data-v-3b9b52f8"]]), Ct = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
475
|
+
__proto__: null,
|
|
476
|
+
default: st
|
|
477
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
478
|
+
export {
|
|
479
|
+
De as _,
|
|
480
|
+
je as a,
|
|
481
|
+
Ct as i
|
|
482
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { defineComponent as c, resolveComponent as t, openBlock as s, createBlock as m, withCtx as o, createVNode as u, createTextVNode as a } from "vue";
|
|
2
|
+
import { useRoute as i, useRouter as l } from "vue-router";
|
|
3
|
+
const k = /* @__PURE__ */ c({
|
|
4
|
+
__name: "index",
|
|
5
|
+
setup(d) {
|
|
6
|
+
i();
|
|
7
|
+
const n = l(), r = () => {
|
|
8
|
+
n.replace({ path: "/" });
|
|
9
|
+
};
|
|
10
|
+
return (f, e) => {
|
|
11
|
+
const p = t("n-button"), _ = t("n-empty");
|
|
12
|
+
return s(), m(_, { description: "你什么也找不到" }, {
|
|
13
|
+
extra: o(() => [
|
|
14
|
+
u(p, {
|
|
15
|
+
size: "small",
|
|
16
|
+
onClick: r
|
|
17
|
+
}, {
|
|
18
|
+
default: o(() => e[0] || (e[0] = [
|
|
19
|
+
a("看看别的")
|
|
20
|
+
])),
|
|
21
|
+
_: 1,
|
|
22
|
+
__: [0]
|
|
23
|
+
})
|
|
24
|
+
]),
|
|
25
|
+
_: 1
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
k as default
|
|
32
|
+
};
|