sat-earth 0.0.13 → 0.0.16
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 +39 -10
- package/dist/packages/auto-import.d.ts +11 -14
- package/dist/packages/components/common/DarkIcon.vue.d.ts +4 -0
- package/dist/packages/components/common/LightIcon.vue.d.ts +4 -0
- package/dist/packages/components/globe/SatGlobe.vue.d.ts +11 -5
- package/dist/packages/components/globe/index.d.ts +10 -4
- package/dist/packages/components/menu/MenuDrawer.vue.d.ts +8 -10
- package/dist/packages/components/menu/SatMenu.vue.d.ts +6 -9
- package/dist/packages/components/menu/index.d.ts +6 -9
- package/dist/packages/components/menu/tree/SatMenuTree.vue.d.ts +4 -5
- package/dist/packages/components/menu/tree/index.d.ts +3 -4
- package/dist/packages/components/source/LayerStyleSlider.vue.d.ts +38 -0
- package/dist/packages/components/source/SatSource.vue.d.ts +536 -11
- package/dist/packages/components/source/SatSourceMain.vue.d.ts +534 -9
- package/dist/packages/components/source/helpers.d.ts +3 -3
- package/dist/packages/components/source/index.d.ts +536 -11
- package/dist/packages/global.d.ts +8 -3
- package/dist/packages/sat-earth/index.d.ts +1 -1
- package/dist/packages/store/modules/compState.d.ts +2 -2
- package/dist/packages/store/modules/layer.d.ts +7 -7
- package/dist/packages/utils/map/satMap/layer/index.d.ts +11 -5
- package/dist/packages/utils/map/types.d.ts +9 -4
- package/dist/sat-earth.es.js +8231 -5052
- package/dist/sat-earth.umd.js +32 -1
- package/dist/style.css +1 -1
- package/package.json +27 -26
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
##
|
|
1
|
+
## 什么是快乐“星球” ?
|
|
2
2
|
  [SatEarth](https://gitee.com/gengkaibo/sat-earth)是延续了 [vite2-vue3-ts-quick-start](https://gitee.com/gengkaibo/vite2-vue3-ts-quick-start) 底层技术,基于 [航天星云](https://www.satcloud.com.cn/#/index) · 数字地球技术中台的功能及UI风格以及 [Mars3D](http://mars3d.cn/) 和 [Cesium](https://cesium.com/) 的底层API,实现的一个开源三维地球组件库,目的是支持开发人员快速搭建三维场景,目前尚在搭建中,后续会封装符合扩展性、通用性、健壮性的组件,以及完善guide文档。
|
|
3
3
|
|
|
4
4
|
## 前序准备
|
|
@@ -25,6 +25,7 @@ npm i sat-earth
|
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
- 在 `main.[jt]s` 中全量引入我们的 `sat-earth` 资源
|
|
28
|
+
|
|
28
29
|
```ts
|
|
29
30
|
import { createApp } from "vue"
|
|
30
31
|
import App from "./app.vue"
|
|
@@ -36,18 +37,46 @@ app.use(satEarth)
|
|
|
36
37
|
app.mount("#app")
|
|
37
38
|
|
|
38
39
|
```
|
|
39
|
-
|
|
40
|
+
- 因为sat-earth组件库使用按需自动导入的形式依赖了element-plus组件库的部分组件,如果您也在项目中使用element-plus组件库,请尽量使用[`按需自动导入`](https://element-plus.gitee.io/zh-CN/guide/quickstart.html#%E6%8C%89%E9%9C%80%E5%AF%BC%E5%85%A5)的形式,自动导入配置示例:
|
|
40
41
|
```ts
|
|
41
|
-
import {
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import '
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
import { defineConfig } from 'vite'
|
|
43
|
+
import { resolve } from 'path'
|
|
44
|
+
import vue from '@vitejs/plugin-vue'
|
|
45
|
+
import DefineOptions from 'unplugin-vue-define-options/vite' // 支持在vue3 script setup语法中写入options API,如:给组件添加name
|
|
46
|
+
import AutoImport from 'unplugin-auto-import/vite' // 函数自动导入,当前用于vite打包,如果是库模式开发请用 unplugin-auto-import/rollup
|
|
47
|
+
import Components from 'unplugin-vue-components/vite' // 组件自动导入,当前用于vite打包,如果是库模式开发请用 unplugin-vue-components/rollup
|
|
48
|
+
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers' // element-plus的自动注册自动导入解析器
|
|
49
|
+
export default defineConfig({
|
|
50
|
+
base: '/',
|
|
51
|
+
publicDir: 'public',
|
|
52
|
+
resolve: {
|
|
53
|
+
alias: {
|
|
54
|
+
'@packages': resolve(__dirname, 'packages'),
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
plugins: [
|
|
58
|
+
DefineOptions(),
|
|
59
|
+
vue(),
|
|
60
|
+
AutoImport({
|
|
61
|
+
imports: [
|
|
62
|
+
'vue',
|
|
63
|
+
'@vueuse/core',
|
|
64
|
+
'pinia',
|
|
65
|
+
],
|
|
66
|
+
dts: 'typings/auto-import.d.ts'
|
|
67
|
+
}),
|
|
68
|
+
Components({
|
|
69
|
+
resolvers: [ElementPlusResolver()], // 自动暴露组件
|
|
70
|
+
dts: 'typings/components.d.ts',
|
|
71
|
+
}),
|
|
72
|
+
], // 编译vue
|
|
73
|
+
server: {
|
|
74
|
+
port: 8888,
|
|
75
|
+
}
|
|
76
|
+
})
|
|
49
77
|
|
|
50
78
|
```
|
|
79
|
+
|
|
51
80
|
- 在`tsconfig.json`中引入类型声明文件`sat-earth/dist/packages/global`,来支持[Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)的代码提示功能
|
|
52
81
|
```json
|
|
53
82
|
{
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Generated by 'unplugin-auto-import'
|
|
2
|
-
|
|
2
|
+
export {}
|
|
3
3
|
declare global {
|
|
4
|
+
const EffectScope: typeof import('vue')['EffectScope']
|
|
4
5
|
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
|
|
5
6
|
const asyncComputed: typeof import('@vueuse/core')['asyncComputed']
|
|
6
7
|
const autoResetRef: typeof import('@vueuse/core')['autoResetRef']
|
|
@@ -27,14 +28,6 @@ declare global {
|
|
|
27
28
|
const defineStore: typeof import('pinia')['defineStore']
|
|
28
29
|
const eagerComputed: typeof import('@vueuse/core')['eagerComputed']
|
|
29
30
|
const effectScope: typeof import('vue')['effectScope']
|
|
30
|
-
const EffectScope: typeof import('vue')['EffectScope']
|
|
31
|
-
const ElDrawer: typeof import('element-plus/es')['ElDrawer']
|
|
32
|
-
const ElMenu: typeof import('element-plus/es')['ElMenu']
|
|
33
|
-
const ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
|
|
34
|
-
const ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
|
|
35
|
-
const ElTabPane: typeof import('element-plus/es')['ElTabPane']
|
|
36
|
-
const ElTabs: typeof import('element-plus/es')['ElTabs']
|
|
37
|
-
const ElTree: typeof import('element-plus/es')['ElTree']
|
|
38
31
|
const extendRef: typeof import('@vueuse/core')['extendRef']
|
|
39
32
|
const getActivePinia: typeof import('pinia')['getActivePinia']
|
|
40
33
|
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
|
|
@@ -43,6 +36,8 @@ declare global {
|
|
|
43
36
|
const ignorableWatch: typeof import('@vueuse/core')['ignorableWatch']
|
|
44
37
|
const inject: typeof import('vue')['inject']
|
|
45
38
|
const isDefined: typeof import('@vueuse/core')['isDefined']
|
|
39
|
+
const isProxy: typeof import('vue')['isProxy']
|
|
40
|
+
const isReactive: typeof import('vue')['isReactive']
|
|
46
41
|
const isReadonly: typeof import('vue')['isReadonly']
|
|
47
42
|
const isRef: typeof import('vue')['isRef']
|
|
48
43
|
const logicAnd: typeof import('@vueuse/core')['logicAnd']
|
|
@@ -136,8 +131,8 @@ declare global {
|
|
|
136
131
|
const useDark: typeof import('@vueuse/core')['useDark']
|
|
137
132
|
const useDateFormat: typeof import('@vueuse/core')['useDateFormat']
|
|
138
133
|
const useDebounce: typeof import('@vueuse/core')['useDebounce']
|
|
139
|
-
const useDebouncedRefHistory: typeof import('@vueuse/core')['useDebouncedRefHistory']
|
|
140
134
|
const useDebounceFn: typeof import('@vueuse/core')['useDebounceFn']
|
|
135
|
+
const useDebouncedRefHistory: typeof import('@vueuse/core')['useDebouncedRefHistory']
|
|
141
136
|
const useDeviceMotion: typeof import('@vueuse/core')['useDeviceMotion']
|
|
142
137
|
const useDeviceOrientation: typeof import('@vueuse/core')['useDeviceOrientation']
|
|
143
138
|
const useDevicePixelRatio: typeof import('@vueuse/core')['useDevicePixelRatio']
|
|
@@ -145,6 +140,7 @@ declare global {
|
|
|
145
140
|
const useDisplayMedia: typeof import('@vueuse/core')['useDisplayMedia']
|
|
146
141
|
const useDocumentVisibility: typeof import('@vueuse/core')['useDocumentVisibility']
|
|
147
142
|
const useDraggable: typeof import('@vueuse/core')['useDraggable']
|
|
143
|
+
const useDropZone: typeof import('@vueuse/core')['useDropZone']
|
|
148
144
|
const useElementBounding: typeof import('@vueuse/core')['useElementBounding']
|
|
149
145
|
const useElementByPoint: typeof import('@vueuse/core')['useElementByPoint']
|
|
150
146
|
const useElementHover: typeof import('@vueuse/core')['useElementHover']
|
|
@@ -215,8 +211,8 @@ declare global {
|
|
|
215
211
|
const useTemplateRefsList: typeof import('@vueuse/core')['useTemplateRefsList']
|
|
216
212
|
const useTextSelection: typeof import('@vueuse/core')['useTextSelection']
|
|
217
213
|
const useThrottle: typeof import('@vueuse/core')['useThrottle']
|
|
218
|
-
const useThrottledRefHistory: typeof import('@vueuse/core')['useThrottledRefHistory']
|
|
219
214
|
const useThrottleFn: typeof import('@vueuse/core')['useThrottleFn']
|
|
215
|
+
const useThrottledRefHistory: typeof import('@vueuse/core')['useThrottledRefHistory']
|
|
220
216
|
const useTimeAgo: typeof import('@vueuse/core')['useTimeAgo']
|
|
221
217
|
const useTimeout: typeof import('@vueuse/core')['useTimeout']
|
|
222
218
|
const useTimeoutFn: typeof import('@vueuse/core')['useTimeoutFn']
|
|
@@ -227,10 +223,10 @@ declare global {
|
|
|
227
223
|
const useTransition: typeof import('@vueuse/core')['useTransition']
|
|
228
224
|
const useUrlSearchParams: typeof import('@vueuse/core')['useUrlSearchParams']
|
|
229
225
|
const useUserMedia: typeof import('@vueuse/core')['useUserMedia']
|
|
230
|
-
const useVibrate: typeof import('@vueuse/core')['useVibrate']
|
|
231
|
-
const useVirtualList: typeof import('@vueuse/core')['useVirtualList']
|
|
232
226
|
const useVModel: typeof import('@vueuse/core')['useVModel']
|
|
233
227
|
const useVModels: typeof import('@vueuse/core')['useVModels']
|
|
228
|
+
const useVibrate: typeof import('@vueuse/core')['useVibrate']
|
|
229
|
+
const useVirtualList: typeof import('@vueuse/core')['useVirtualList']
|
|
234
230
|
const useWakeLock: typeof import('@vueuse/core')['useWakeLock']
|
|
235
231
|
const useWebNotification: typeof import('@vueuse/core')['useWebNotification']
|
|
236
232
|
const useWebSocket: typeof import('@vueuse/core')['useWebSocket']
|
|
@@ -246,8 +242,9 @@ declare global {
|
|
|
246
242
|
const watchIgnorable: typeof import('@vueuse/core')['watchIgnorable']
|
|
247
243
|
const watchOnce: typeof import('@vueuse/core')['watchOnce']
|
|
248
244
|
const watchPausable: typeof import('@vueuse/core')['watchPausable']
|
|
245
|
+
const watchPostEffect: typeof import('vue')['watchPostEffect']
|
|
246
|
+
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
|
|
249
247
|
const watchThrottled: typeof import('@vueuse/core')['watchThrottled']
|
|
250
248
|
const watchWithFilter: typeof import('@vueuse/core')['watchWithFilter']
|
|
251
249
|
const whenever: typeof import('@vueuse/core')['whenever']
|
|
252
250
|
}
|
|
253
|
-
export {}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type SatMapOptions, type
|
|
2
|
+
import { type SatMapOptions, type SatLayerDev } from '../../utils/map/types';
|
|
3
3
|
import { type TreeSatLayer } from '../../store/modules/layer';
|
|
4
4
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
5
|
eleId: {
|
|
@@ -22,12 +22,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
22
22
|
ready?: boolean | undefined;
|
|
23
23
|
isUnDestroy?: boolean | undefined;
|
|
24
24
|
} | undefined;
|
|
25
|
-
} &
|
|
25
|
+
} & import("pinia").PiniaCustomStateProperties<import('../../store/modules/compState').CompState>) => any;
|
|
26
26
|
}, {
|
|
27
27
|
setSatSource(val: import('../../store/modules/compState').StateItem): void;
|
|
28
28
|
}>;
|
|
29
|
-
layerStore: import("pinia").Store<"
|
|
30
|
-
setLayerList(val:
|
|
29
|
+
layerStore: import("pinia").Store<"SatLayerDev", import('../../store/modules/layer').LayerState, {}, {
|
|
30
|
+
setLayerList(val: SatLayerDev[]): void;
|
|
31
31
|
setLayerTree(val: TreeSatLayer[]): void;
|
|
32
32
|
}>;
|
|
33
33
|
layoutStore: import("pinia").Store<"SatLayout", import('../../store/modules/layout').LayoutState, {}, {
|
|
@@ -48,7 +48,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
48
48
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
49
49
|
}>>;
|
|
50
50
|
merged: SatMapOptions;
|
|
51
|
-
|
|
51
|
+
isDark: import("vue").Ref<boolean>;
|
|
52
|
+
DarkIcon: {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
55
|
+
LightIcon: {
|
|
56
|
+
name: string;
|
|
57
|
+
};
|
|
52
58
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
59
|
eleId: {
|
|
54
60
|
type: StringConstructor;
|
|
@@ -19,12 +19,12 @@ export declare const SatGlobe: import('../../utils/installer').SFCWithInstall<im
|
|
|
19
19
|
ready?: boolean | undefined;
|
|
20
20
|
isUnDestroy?: boolean | undefined;
|
|
21
21
|
} | undefined;
|
|
22
|
-
} &
|
|
22
|
+
} & import("pinia").PiniaCustomStateProperties<import("../../store/modules/compState").CompState>) => any;
|
|
23
23
|
}, {
|
|
24
24
|
setSatSource(val: import("../../store/modules/compState").StateItem): void;
|
|
25
25
|
}>;
|
|
26
|
-
layerStore: import("pinia").Store<"
|
|
27
|
-
setLayerList(val: import("../../utils/map/types").
|
|
26
|
+
layerStore: import("pinia").Store<"SatLayerDev", import("../../store/modules/layer").LayerState, {}, {
|
|
27
|
+
setLayerList(val: import("../../utils/map/types").SatLayerDev[]): void;
|
|
28
28
|
setLayerTree(val: import("../../store/modules/layer").TreeSatLayer[]): void;
|
|
29
29
|
}>;
|
|
30
30
|
layoutStore: import("pinia").Store<"SatLayout", import("../../store/modules/layout").LayoutState, {}, {
|
|
@@ -45,7 +45,13 @@ export declare const SatGlobe: import('../../utils/installer').SFCWithInstall<im
|
|
|
45
45
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
46
46
|
}>>;
|
|
47
47
|
merged: import("../../utils/map/types").SatMapOptions;
|
|
48
|
-
|
|
48
|
+
isDark: import("vue").Ref<boolean>;
|
|
49
|
+
DarkIcon: {
|
|
50
|
+
name: string;
|
|
51
|
+
};
|
|
52
|
+
LightIcon: {
|
|
53
|
+
name: string;
|
|
54
|
+
};
|
|
49
55
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
56
|
eleId: {
|
|
51
57
|
type: StringConstructor;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
1
2
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
3
|
isVisible: {
|
|
3
4
|
type: BooleanConstructor;
|
|
4
5
|
default: () => boolean;
|
|
5
6
|
};
|
|
6
7
|
}, {
|
|
7
|
-
|
|
8
|
+
isShowDrawer: Ref<boolean> | undefined;
|
|
8
9
|
handleClose: () => void;
|
|
9
|
-
isMobile:
|
|
10
|
+
isMobile: Ref<boolean>;
|
|
10
11
|
defaultOpend: string[];
|
|
11
12
|
SatMenuTree: import("vue").DefineComponent<{
|
|
12
13
|
treeData: {
|
|
@@ -36,16 +37,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
36
37
|
default: () => boolean;
|
|
37
38
|
};
|
|
38
39
|
}>> & {
|
|
39
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
40
40
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
41
41
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
}>>;
|
|
43
|
-
emit: (event: "
|
|
43
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
44
|
+
isShowDrawer: Ref<boolean> | undefined;
|
|
44
45
|
handleClose: () => void;
|
|
45
46
|
handleMenuClick: (item: import("./helpers").MenuItem) => void;
|
|
46
47
|
handleCloseItemClick: (item: import("./helpers").MenuItem) => void;
|
|
47
48
|
getAssetsSource: typeof import("../../utils").getAssetsSource;
|
|
48
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
49
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("customClick" | "customCloseClick")[], "customClick" | "customCloseClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
50
|
treeData: {
|
|
50
51
|
type: import("vue").PropType<import("./helpers").MenuItem[]>;
|
|
51
52
|
default: () => import("./helpers").MenuItem[];
|
|
@@ -59,7 +60,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
59
60
|
default: () => boolean;
|
|
60
61
|
};
|
|
61
62
|
}>> & {
|
|
62
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
63
63
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
64
64
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
65
65
|
}, {
|
|
@@ -69,14 +69,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
69
69
|
}>;
|
|
70
70
|
menuList: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
71
71
|
menuListEnabled: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
72
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
72
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
73
73
|
isVisible: {
|
|
74
74
|
type: BooleanConstructor;
|
|
75
75
|
default: () => boolean;
|
|
76
76
|
};
|
|
77
|
-
}
|
|
78
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
79
|
-
}, {
|
|
77
|
+
}>>, {
|
|
80
78
|
isVisible: boolean;
|
|
81
79
|
}>;
|
|
82
80
|
export default _sfc_main;
|
|
@@ -7,7 +7,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
7
7
|
default: () => boolean;
|
|
8
8
|
};
|
|
9
9
|
}, {
|
|
10
|
-
|
|
10
|
+
isShowDrawer: import("vue").Ref<boolean> | undefined;
|
|
11
11
|
handleClose: () => void;
|
|
12
12
|
isMobile: import("vue").Ref<boolean>;
|
|
13
13
|
defaultOpend: string[];
|
|
@@ -39,16 +39,16 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
39
39
|
default: () => boolean;
|
|
40
40
|
};
|
|
41
41
|
}>> & {
|
|
42
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
43
42
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
44
43
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
45
44
|
}>>;
|
|
46
|
-
emit: (event: "
|
|
45
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
46
|
+
isShowDrawer: import("vue").Ref<boolean> | undefined;
|
|
47
47
|
handleClose: () => void;
|
|
48
48
|
handleMenuClick: (item: import("./helpers").MenuItem) => void;
|
|
49
49
|
handleCloseItemClick: (item: import("./helpers").MenuItem) => void;
|
|
50
50
|
getAssetsSource: typeof import("../../utils").getAssetsSource;
|
|
51
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
51
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("customClick" | "customCloseClick")[], "customClick" | "customCloseClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
52
|
treeData: {
|
|
53
53
|
type: import("vue").PropType<import("./helpers").MenuItem[]>;
|
|
54
54
|
default: () => import("./helpers").MenuItem[];
|
|
@@ -62,7 +62,6 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
62
62
|
default: () => boolean;
|
|
63
63
|
};
|
|
64
64
|
}>> & {
|
|
65
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
66
65
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
67
66
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
68
67
|
}, {
|
|
@@ -72,14 +71,12 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
72
71
|
}>;
|
|
73
72
|
menuList: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
74
73
|
menuListEnabled: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
75
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
74
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
75
|
isVisible: {
|
|
77
76
|
type: BooleanConstructor;
|
|
78
77
|
default: () => boolean;
|
|
79
78
|
};
|
|
80
|
-
}
|
|
81
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
}, {
|
|
79
|
+
}>>, {
|
|
83
80
|
isVisible: boolean;
|
|
84
81
|
}>;
|
|
85
82
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -7,7 +7,7 @@ export declare const SatMenu: import('../../utils/installer').SFCWithInstall<imp
|
|
|
7
7
|
default: () => boolean;
|
|
8
8
|
};
|
|
9
9
|
}, {
|
|
10
|
-
|
|
10
|
+
isShowDrawer: import("vue").Ref<boolean> | undefined;
|
|
11
11
|
handleClose: () => void;
|
|
12
12
|
isMobile: import("vue").Ref<boolean>;
|
|
13
13
|
defaultOpend: string[];
|
|
@@ -39,16 +39,16 @@ export declare const SatMenu: import('../../utils/installer').SFCWithInstall<imp
|
|
|
39
39
|
default: () => boolean;
|
|
40
40
|
};
|
|
41
41
|
}>> & {
|
|
42
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
43
42
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
44
43
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
45
44
|
}>>;
|
|
46
|
-
emit: (event: "
|
|
45
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
46
|
+
isShowDrawer: import("vue").Ref<boolean> | undefined;
|
|
47
47
|
handleClose: () => void;
|
|
48
48
|
handleMenuClick: (item: import("./helpers").MenuItem) => void;
|
|
49
49
|
handleCloseItemClick: (item: import("./helpers").MenuItem) => void;
|
|
50
50
|
getAssetsSource: typeof import("../../utils").getAssetsSource;
|
|
51
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
51
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("customClick" | "customCloseClick")[], "customClick" | "customCloseClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
52
52
|
treeData: {
|
|
53
53
|
type: import("vue").PropType<import("./helpers").MenuItem[]>;
|
|
54
54
|
default: () => import("./helpers").MenuItem[];
|
|
@@ -62,7 +62,6 @@ export declare const SatMenu: import('../../utils/installer').SFCWithInstall<imp
|
|
|
62
62
|
default: () => boolean;
|
|
63
63
|
};
|
|
64
64
|
}>> & {
|
|
65
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
66
65
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
67
66
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
68
67
|
}, {
|
|
@@ -72,14 +71,12 @@ export declare const SatMenu: import('../../utils/installer').SFCWithInstall<imp
|
|
|
72
71
|
}>;
|
|
73
72
|
menuList: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
74
73
|
menuListEnabled: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
75
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
74
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
75
|
isVisible: {
|
|
77
76
|
type: BooleanConstructor;
|
|
78
77
|
default: () => boolean;
|
|
79
78
|
};
|
|
80
|
-
}
|
|
81
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
}, {
|
|
79
|
+
}>>, {
|
|
83
80
|
isVisible: boolean;
|
|
84
81
|
}>;
|
|
85
82
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
1
|
+
import { type PropType, type Ref } from 'vue';
|
|
2
2
|
import { getAssetsSource } from '../../../utils';
|
|
3
3
|
import { type MenuItem } from '../helpers';
|
|
4
4
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
@@ -29,16 +29,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
29
29
|
default: () => boolean;
|
|
30
30
|
};
|
|
31
31
|
}>> & {
|
|
32
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
33
32
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
34
33
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
35
34
|
}>>;
|
|
36
|
-
emit: (event: "
|
|
35
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
36
|
+
isShowDrawer: Ref<boolean> | undefined;
|
|
37
37
|
handleClose: () => void;
|
|
38
38
|
handleMenuClick: (item: MenuItem) => void;
|
|
39
39
|
handleCloseItemClick: (item: MenuItem) => void;
|
|
40
40
|
getAssetsSource: typeof getAssetsSource;
|
|
41
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
41
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("customClick" | "customCloseClick")[], "customClick" | "customCloseClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
42
|
treeData: {
|
|
43
43
|
type: PropType<MenuItem[]>;
|
|
44
44
|
default: () => MenuItem[];
|
|
@@ -52,7 +52,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
52
52
|
default: () => boolean;
|
|
53
53
|
};
|
|
54
54
|
}>> & {
|
|
55
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
56
55
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
57
56
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
58
57
|
}, {
|
|
@@ -26,16 +26,16 @@ export declare const SatMenuTree: import('../../../utils/installer').SFCWithInst
|
|
|
26
26
|
default: () => boolean;
|
|
27
27
|
};
|
|
28
28
|
}>> & {
|
|
29
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
30
29
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
31
30
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
32
31
|
}>>;
|
|
33
|
-
emit: (event: "
|
|
32
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
33
|
+
isShowDrawer: import("vue").Ref<boolean> | undefined;
|
|
34
34
|
handleClose: () => void;
|
|
35
35
|
handleMenuClick: (item: import("..").MenuItem) => void;
|
|
36
36
|
handleCloseItemClick: (item: import("..").MenuItem) => void;
|
|
37
37
|
getAssetsSource: typeof import("../../../utils").getAssetsSource;
|
|
38
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
38
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("customClick" | "customCloseClick")[], "customClick" | "customCloseClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
39
|
treeData: {
|
|
40
40
|
type: import("vue").PropType<import("..").MenuItem[]>;
|
|
41
41
|
default: () => import("..").MenuItem[];
|
|
@@ -49,7 +49,6 @@ export declare const SatMenuTree: import('../../../utils/installer').SFCWithInst
|
|
|
49
49
|
default: () => boolean;
|
|
50
50
|
};
|
|
51
51
|
}>> & {
|
|
52
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
53
52
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
54
53
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
55
54
|
}, {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { type PropType } from 'vue';
|
|
2
|
+
import type { SatLayerDev } from '../../utils/map/types';
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
layer: {
|
|
5
|
+
type: PropType<SatLayerDev>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
layer: {
|
|
11
|
+
type: PropType<SatLayerDev>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}>> & {
|
|
15
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
16
|
+
}>>;
|
|
17
|
+
styleChange: (layer: SatLayerDev, field: string, data: number) => void;
|
|
18
|
+
getStyleFromMapLayer: (layer: SatLayerDev, field: string) => {
|
|
19
|
+
value?: number | undefined;
|
|
20
|
+
disabled: boolean;
|
|
21
|
+
};
|
|
22
|
+
layerStyle: import("vue").Ref<{
|
|
23
|
+
type: string;
|
|
24
|
+
field: string;
|
|
25
|
+
label: string;
|
|
26
|
+
step: number;
|
|
27
|
+
min: number;
|
|
28
|
+
max: number;
|
|
29
|
+
value: number;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
}[]>;
|
|
32
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
layer: {
|
|
34
|
+
type: PropType<SatLayerDev>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
}>>, {}>;
|
|
38
|
+
export default _sfc_main;
|