v-toolbox 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/README.md ADDED
@@ -0,0 +1,23 @@
1
+ [TOC]
2
+
3
+ ## v-toolbox
4
+
5
+ ## 版本
6
+
7
+ ## 简介
8
+
9
+ ## 作者
10
+
11
+ kangjinrui<1092014304@qq.com>
12
+
13
+ ## 开始使用
14
+
15
+ ### 安装
16
+
17
+ npm install v-toolbox --save
18
+
19
+ ### 全局引入组件
20
+
21
+ import 'v-toolbox/package/v-toolbox.css'
22
+ import VMap from 'v-toolbox'
23
+ vue.use(VMap)
@@ -0,0 +1 @@
1
+ .map-box[data-v-f4028074]{position:absolute;z-index:100;width:200px;height:calc(100% - 10px);background:#fff;top:0;box-shadow:0 0 0 1px #f1f5f9,0 2px 2px #0000000d,0 6px 14px #0000000d;border:1px solid #e1e1e1}.map-box-title[data-v-f4028074]{height:35px;background:#397dee;display:flex;align-items:center;padding:0 10px;color:#fff;font-size:16px;font-weight:700;letter-spacing:5px}.map-box-content[data-v-f4028074]{width:100%;height:calc(100% - 35px)}
@@ -0,0 +1,97 @@
1
+ import { defineComponent as h, ref as i, shallowRef as T, resolveComponent as d, openBlock as w, createElementBlock as g, createElementVNode as l, createVNode as c, withCtx as _, createTextVNode as v, toDisplayString as y } from "vue";
2
+ const k = (e, o) => {
3
+ const t = e.__vccOpts || e;
4
+ for (const [a, s] of o)
5
+ t[a] = s;
6
+ return t;
7
+ }, j = { class: "box" }, C = { class: "map-box" }, V = { class: "map-box-title" }, N = { class: "map-box-content" }, B = { class: "custom-tree-node" }, z = h({
8
+ name: "ToolBox"
9
+ }), D = /* @__PURE__ */ Object.assign(z, {
10
+ setup(e) {
11
+ const o = i(!1), t = i(""), a = T("");
12
+ i(!1);
13
+ const s = [
14
+ {
15
+ id: 1,
16
+ label: "GIS工具",
17
+ children: [
18
+ { id: "kjsjtyTool", label: "空间数据投影" },
19
+ { id: "wgccyTool", label: "网格重采样" },
20
+ { id: "kjsjcjTool", label: "空间数据裁剪" },
21
+ { id: "sjgszhTool", label: "数据格式转换" },
22
+ { id: "czfxTool", label: "插值分析" },
23
+ { id: "llscTool", label: "流量生成" },
24
+ { id: "hlljTool", label: "会流累积" },
25
+ { id: "hwtqTool", label: "河网提取" },
26
+ { id: "lyscTool", label: "流域生成" }
27
+ ]
28
+ },
29
+ {
30
+ id: 2,
31
+ label: "水文工具",
32
+ children: [
33
+ { id: "plfxTool", label: "频率分析" },
34
+ { id: "xsxfxTool", label: "相似性分析" },
35
+ { id: "tsdbxTool", label: "泰森多边形" },
36
+ { id: "wgpfTool", label: "网格剖分" }
37
+ ]
38
+ },
39
+ {
40
+ id: 3,
41
+ label: "其他工具",
42
+ children: [{ id: "otherTool", label: "多项式插值" }]
43
+ }
44
+ ], b = (n) => {
45
+ typeof n.id == "string" && (o.value = !0, t.value = n.label, a.value = routerList[n.id]);
46
+ };
47
+ return (n, r) => {
48
+ const f = d("FirstAidKit"), m = d("el-icon"), x = d("el-tree");
49
+ return w(), g("div", j, [
50
+ l("div", C, [
51
+ l("div", V, [
52
+ c(m, {
53
+ size: "18",
54
+ style: { "margin-right": "10px", "font-weight": "bold" }
55
+ }, {
56
+ default: _(() => [
57
+ c(f)
58
+ ]),
59
+ _: 1
60
+ }),
61
+ r[0] || (r[0] = v("工具集 ", -1))
62
+ ]),
63
+ l("div", N, [
64
+ c(x, {
65
+ style: { "max-width": "600px" },
66
+ data: s,
67
+ "node-key": "id",
68
+ "default-expand-all": "",
69
+ "expand-on-click-node": !1,
70
+ onNodeClick: b
71
+ }, {
72
+ default: _(({ node: u, data: A }) => [
73
+ l("div", B, [
74
+ l("span", null, y(u.label), 1)
75
+ ])
76
+ ]),
77
+ _: 1
78
+ })
79
+ ])
80
+ ])
81
+ ]);
82
+ };
83
+ }
84
+ }), E = /* @__PURE__ */ k(D, [["__scopeId", "data-v-f4028074"]]), S = [
85
+ E
86
+ ], p = (e) => {
87
+ S.forEach((o) => {
88
+ e.component(o.name, o);
89
+ });
90
+ };
91
+ typeof window < "u" && window.Vue && p(window.Vue);
92
+ const I = {
93
+ install: p
94
+ };
95
+ export {
96
+ I as default
97
+ };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "v-toolbox",
3
+ "description": "tools for map",
4
+ "author": "kangjinrui<1092014304@qq.com>",
5
+ "version": "0.0.1",
6
+ "private": false,
7
+ "main": "package/v-toolbox.mjs",
8
+ "files": [
9
+ "v-toolbox.css",
10
+ "v-toolbox.mjs"
11
+ ],
12
+ "keywords": [
13
+ "toolbox",
14
+ "map",
15
+ "vue3"
16
+ ],
17
+ "license": "MIT",
18
+ "scripts": {},
19
+ "dependencies": {},
20
+ "devDependencies": {},
21
+ "browserslist": [
22
+ "> 1%",
23
+ "last 2 versions",
24
+ "not dead"
25
+ ]
26
+ }