sat-earth 0.0.14 → 0.0.17
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 +43 -19
- package/dist/packages/components/globe/SatGlobe.vue.d.ts +3 -3
- package/dist/packages/components/globe/helpers.d.ts +1 -2
- package/dist/packages/components/globe/index.d.ts +11 -11
- package/dist/packages/components/index.d.ts +1 -0
- package/dist/packages/components/menu/MenuDrawer.vue.d.ts +24 -11
- package/dist/packages/components/menu/SatMenu.vue.d.ts +22 -10
- package/dist/packages/components/menu/helpers.d.ts +0 -1
- package/dist/packages/components/menu/index.d.ts +22 -10
- package/dist/packages/components/menu/tree/SatMenuTree.vue.d.ts +20 -6
- package/dist/packages/components/menu/tree/index.d.ts +19 -5
- package/dist/packages/components/panel/SatPanel.vue.d.ts +52 -0
- package/dist/packages/components/panel/index.d.ts +52 -0
- package/dist/packages/components/source/LayerStyleSlider.vue.d.ts +1 -1
- package/dist/packages/components/source/SatSource.vue.d.ts +82 -24
- package/dist/packages/components/source/SatSourceMain.vue.d.ts +1 -1
- package/dist/packages/components/source/helpers.d.ts +1 -1
- package/dist/packages/components/source/index.d.ts +82 -24
- package/dist/packages/global.d.ts +1 -0
- package/dist/packages/hooks/useRenderer.d.ts +2 -3
- package/dist/packages/sat-earth/index.d.ts +1 -1
- package/dist/packages/store/modules/compState.d.ts +4 -5
- package/dist/packages/store/modules/layer.d.ts +1 -1
- package/dist/packages/utils/index.d.ts +1 -7
- package/dist/packages/utils/map/index.d.ts +0 -1
- package/dist/packages/utils/map/satMap/index.d.ts +1 -1
- package/dist/packages/utils/map/satMap/layer/index.d.ts +1 -1
- package/dist/packages/utils/{map/types.d.ts → types/index.d.ts} +0 -0
- package/dist/sat-earth.es.js +660 -663
- package/dist/sat-earth.umd.js +21 -22
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -121,7 +121,7 @@ export default defineConfig({
|
|
|
121
121
|
- 开始使用,组件化调用`<SatGlobe></SatGlobe>`,或者调用 `sat-earth` 暴露的方法,例:
|
|
122
122
|
```ts
|
|
123
123
|
<script setup lang="ts">
|
|
124
|
-
import {
|
|
124
|
+
import { SatMapTypes, type MenuItem } from 'sat-earth'
|
|
125
125
|
/*
|
|
126
126
|
初始化参数尽量保证了和mars3d的Map构造一致性,但是任然有一些地方进行了小改动,下面请看
|
|
127
127
|
改动:
|
|
@@ -157,7 +157,7 @@ import { SatUtil, type MenuItem } from 'sat-earth'
|
|
|
157
157
|
)
|
|
158
158
|
|
|
159
159
|
*/
|
|
160
|
-
const options:
|
|
160
|
+
const options: SatMapTypes.SatMapOptions = {
|
|
161
161
|
map3d: {
|
|
162
162
|
control: {
|
|
163
163
|
baseLayerPicker: true,
|
|
@@ -252,42 +252,54 @@ const options: SatUtil.types.SatMapOptions = {
|
|
|
252
252
|
},
|
|
253
253
|
}
|
|
254
254
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
255
|
+
const isSourceVisible = ref(true)
|
|
256
|
+
|
|
257
|
+
const treeData = ref<MenuItem[]>([
|
|
258
|
+
{
|
|
259
|
+
name: 'hello',
|
|
260
|
+
label: '你好',
|
|
261
|
+
icon: {
|
|
262
|
+
class: 'fa-commenting-o',
|
|
263
|
+
},
|
|
264
|
+
enable: false,
|
|
265
|
+
active: false
|
|
261
266
|
},
|
|
262
|
-
|
|
263
|
-
}])
|
|
267
|
+
])
|
|
264
268
|
const changeDataToEnable = (item: MenuItem) => {
|
|
265
269
|
item.enable = true
|
|
270
|
+
item.active = true
|
|
271
|
+
console.log('do init...')
|
|
266
272
|
}
|
|
267
273
|
const changeDataToUnEnable = (item: MenuItem) => {
|
|
268
274
|
item.enable = false
|
|
275
|
+
item.active = false
|
|
276
|
+
console.log('do destroy...')
|
|
269
277
|
}
|
|
278
|
+
|
|
279
|
+
const isMounted = ref(false)
|
|
280
|
+
onMounted(() => {
|
|
281
|
+
isMounted.value = true
|
|
282
|
+
})
|
|
270
283
|
</script>
|
|
271
284
|
```
|
|
272
285
|
```html
|
|
273
286
|
<template>
|
|
274
|
-
<SatGlobe
|
|
275
|
-
|
|
287
|
+
<SatGlobe
|
|
288
|
+
v-if="isMounted"
|
|
289
|
+
:sat-map-options="options"
|
|
290
|
+
>
|
|
276
291
|
<SatMenu>
|
|
277
|
-
<!-- 在菜单组件中再嵌入内置数据源组件 -->
|
|
278
292
|
<SatSource></SatSource>
|
|
279
293
|
<!-- 自定义菜单项 -->
|
|
280
294
|
<template #custom-enable>
|
|
281
|
-
<!-- 启用中 -->
|
|
282
295
|
<SatMenuTree
|
|
283
296
|
:custom="true"
|
|
284
297
|
show-type="enabled"
|
|
285
|
-
:tree-data="treeData.filter(i => i.enable)"
|
|
298
|
+
:tree-data="treeData.filter((i) => i.enable)"
|
|
286
299
|
@custom-click="changeDataToEnable"
|
|
287
300
|
@custom-close-click="changeDataToUnEnable"
|
|
288
301
|
></SatMenuTree>
|
|
289
302
|
</template>
|
|
290
|
-
<!-- 所有菜单项 -->
|
|
291
303
|
<template #custom>
|
|
292
304
|
<SatMenuTree
|
|
293
305
|
:custom="true"
|
|
@@ -296,11 +308,23 @@ const changeDataToUnEnable = (item: MenuItem) => {
|
|
|
296
308
|
></SatMenuTree>
|
|
297
309
|
</template>
|
|
298
310
|
</SatMenu>
|
|
299
|
-
|
|
300
|
-
<!--
|
|
311
|
+
|
|
312
|
+
<!-- 使用SatPanel 面板组件 配合自定义菜单项完成自定义功能面板的开发-->
|
|
313
|
+
<!-- <SatPanel
|
|
314
|
+
v-if="treeData.filter(item=>item.name=='hello')[0].enable"
|
|
315
|
+
v-show="treeData.filter(item=>item.name=='hello')[0].active"
|
|
316
|
+
title="你好啊"
|
|
317
|
+
:close="()=>{treeData.filter(item=>item.name=='hello')[0].enable = false}"
|
|
318
|
+
:shrink="()=>{treeData.filter(item=>item.name=='hello')[0].active = false}"
|
|
319
|
+
>
|
|
320
|
+
内容
|
|
321
|
+
</SatPanel> -->
|
|
322
|
+
|
|
323
|
+
<!-- 在内置的menu外部使用组件 -->
|
|
324
|
+
<!-- <SatSource v-model:visible="isSourceVisible"></SatSource> -->
|
|
301
325
|
</SatGlobe>
|
|
302
326
|
<!-- 在SatGlobe外部无法使用组件 -->
|
|
303
|
-
<!-- <SatSource v-model:visible="
|
|
327
|
+
<!-- <SatSource v-model:visible="isSourceVisible"></SatSource> -->
|
|
304
328
|
</template>
|
|
305
329
|
<style>
|
|
306
330
|
body {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType } from 'vue';
|
|
2
|
-
import { type SatMapOptions, type SatLayerDev } from '../../utils/
|
|
2
|
+
import { type SatMapOptions, type SatLayerDev } from '../../utils/types';
|
|
3
3
|
import { type TreeSatLayer } from '../../store/modules/layer';
|
|
4
4
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
5
|
eleId: {
|
|
@@ -20,11 +20,11 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
20
20
|
enable: boolean;
|
|
21
21
|
active: boolean;
|
|
22
22
|
ready?: boolean | undefined;
|
|
23
|
-
isUnDestroy?: boolean | undefined;
|
|
24
23
|
} | undefined;
|
|
25
24
|
} & import("pinia").PiniaCustomStateProperties<import('../../store/modules/compState').CompState>) => any;
|
|
26
25
|
}, {
|
|
27
|
-
setSatSource(
|
|
26
|
+
setSatSource(item: import('../../store/modules/compState').StateItem): void;
|
|
27
|
+
changeCompState(itemName: string, flag: boolean): void;
|
|
28
28
|
}>;
|
|
29
29
|
layerStore: import("pinia").Store<"SatLayerDev", import('../../store/modules/layer').LayerState, {}, {
|
|
30
30
|
setLayerList(val: SatLayerDev[]): void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { SatMapOptions } from '../../utils/
|
|
2
|
-
import { type SatLayer } from '../../utils/map/types';
|
|
1
|
+
import { type SatLayer, type SatMapOptions } from '../../utils/types';
|
|
3
2
|
export declare const getMergedData: (propMapInitOptions: SatMapOptions) => SatMapOptions;
|
|
4
3
|
export declare const setDeepUnChecked: (list: SatLayer[], rootid: string | number) => void;
|
|
5
4
|
export declare const mapOptions: SatMapOptions;
|
|
@@ -4,8 +4,8 @@ export declare const SatGlobe: import('../../utils/installer').SFCWithInstall<im
|
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
satMapOptions: {
|
|
7
|
-
type: import("vue").PropType<import("../../utils/
|
|
8
|
-
default: () => import("../../utils/
|
|
7
|
+
type: import("vue").PropType<import("../../utils/types").SatMapOptions>;
|
|
8
|
+
default: () => import("../../utils/types").SatMapOptions;
|
|
9
9
|
};
|
|
10
10
|
}, {
|
|
11
11
|
compStore: import("pinia").Store<"SatCompState", import("../../store/modules/compState").CompState, {
|
|
@@ -17,14 +17,14 @@ export declare const SatGlobe: import('../../utils/installer').SFCWithInstall<im
|
|
|
17
17
|
enable: boolean;
|
|
18
18
|
active: boolean;
|
|
19
19
|
ready?: boolean | undefined;
|
|
20
|
-
isUnDestroy?: boolean | undefined;
|
|
21
20
|
} | undefined;
|
|
22
21
|
} & import("pinia").PiniaCustomStateProperties<import("../../store/modules/compState").CompState>) => any;
|
|
23
22
|
}, {
|
|
24
|
-
setSatSource(
|
|
23
|
+
setSatSource(item: import("../../store/modules/compState").StateItem): void;
|
|
24
|
+
changeCompState(itemName: string, flag: boolean): void;
|
|
25
25
|
}>;
|
|
26
26
|
layerStore: import("pinia").Store<"SatLayerDev", import("../../store/modules/layer").LayerState, {}, {
|
|
27
|
-
setLayerList(val: import("../../utils/
|
|
27
|
+
setLayerList(val: import("../../utils/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, {}, {
|
|
@@ -38,13 +38,13 @@ export declare const SatGlobe: import('../../utils/installer').SFCWithInstall<im
|
|
|
38
38
|
default: string;
|
|
39
39
|
};
|
|
40
40
|
satMapOptions: {
|
|
41
|
-
type: import("vue").PropType<import("../../utils/
|
|
42
|
-
default: () => import("../../utils/
|
|
41
|
+
type: import("vue").PropType<import("../../utils/types").SatMapOptions>;
|
|
42
|
+
default: () => import("../../utils/types").SatMapOptions;
|
|
43
43
|
};
|
|
44
44
|
}>> & {
|
|
45
45
|
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
46
46
|
}>>;
|
|
47
|
-
merged: import("../../utils/
|
|
47
|
+
merged: import("../../utils/types").SatMapOptions;
|
|
48
48
|
isDark: import("vue").Ref<boolean>;
|
|
49
49
|
DarkIcon: {
|
|
50
50
|
name: string;
|
|
@@ -58,11 +58,11 @@ export declare const SatGlobe: import('../../utils/installer').SFCWithInstall<im
|
|
|
58
58
|
default: string;
|
|
59
59
|
};
|
|
60
60
|
satMapOptions: {
|
|
61
|
-
type: import("vue").PropType<import("../../utils/
|
|
62
|
-
default: () => import("../../utils/
|
|
61
|
+
type: import("vue").PropType<import("../../utils/types").SatMapOptions>;
|
|
62
|
+
default: () => import("../../utils/types").SatMapOptions;
|
|
63
63
|
};
|
|
64
64
|
}>>, {
|
|
65
65
|
eleId: string;
|
|
66
|
-
satMapOptions: import("../../utils/
|
|
66
|
+
satMapOptions: import("../../utils/types").SatMapOptions;
|
|
67
67
|
}>>;
|
|
68
68
|
export default SatGlobe;
|
|
@@ -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: {
|
|
@@ -22,6 +23,21 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
22
23
|
default: () => boolean;
|
|
23
24
|
};
|
|
24
25
|
}, {
|
|
26
|
+
compStateStore: import("pinia").Store<"SatCompState", import("../../store/modules/compState").CompState, {
|
|
27
|
+
getComponents: (state: {
|
|
28
|
+
SatSource?: {
|
|
29
|
+
label: string;
|
|
30
|
+
name: string;
|
|
31
|
+
parentName: string;
|
|
32
|
+
enable: boolean;
|
|
33
|
+
active: boolean;
|
|
34
|
+
ready?: boolean | undefined;
|
|
35
|
+
} | undefined;
|
|
36
|
+
} & import("pinia").PiniaCustomStateProperties<import("../../store/modules/compState").CompState>) => any;
|
|
37
|
+
}, {
|
|
38
|
+
setSatSource(item: import("../../store/modules/compState").StateItem): void;
|
|
39
|
+
changeCompState(itemName: string, flag: boolean): void;
|
|
40
|
+
}>;
|
|
25
41
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
26
42
|
treeData: {
|
|
27
43
|
type: import("vue").PropType<import("./helpers").MenuItem[]>;
|
|
@@ -36,16 +52,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
36
52
|
default: () => boolean;
|
|
37
53
|
};
|
|
38
54
|
}>> & {
|
|
39
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
40
55
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
41
56
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
42
57
|
}>>;
|
|
43
|
-
emit: (event: "
|
|
58
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
59
|
+
isShowDrawer: Ref<boolean> | undefined;
|
|
44
60
|
handleClose: () => void;
|
|
45
61
|
handleMenuClick: (item: import("./helpers").MenuItem) => void;
|
|
46
62
|
handleCloseItemClick: (item: import("./helpers").MenuItem) => void;
|
|
47
|
-
getAssetsSource: typeof import("../../utils").getAssetsSource;
|
|
48
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
63
|
+
getAssetsSource: typeof import("../../utils/getAssetsSource").getAssetsSource;
|
|
64
|
+
}, 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
65
|
treeData: {
|
|
50
66
|
type: import("vue").PropType<import("./helpers").MenuItem[]>;
|
|
51
67
|
default: () => import("./helpers").MenuItem[];
|
|
@@ -59,7 +75,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
59
75
|
default: () => boolean;
|
|
60
76
|
};
|
|
61
77
|
}>> & {
|
|
62
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
63
78
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
64
79
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
65
80
|
}, {
|
|
@@ -69,14 +84,12 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
69
84
|
}>;
|
|
70
85
|
menuList: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
71
86
|
menuListEnabled: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
72
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
87
|
+
}, 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
88
|
isVisible: {
|
|
74
89
|
type: BooleanConstructor;
|
|
75
90
|
default: () => boolean;
|
|
76
91
|
};
|
|
77
|
-
}
|
|
78
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
79
|
-
}, {
|
|
92
|
+
}>>, {
|
|
80
93
|
isVisible: boolean;
|
|
81
94
|
}>;
|
|
82
95
|
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[];
|
|
@@ -25,6 +25,21 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
25
25
|
default: () => boolean;
|
|
26
26
|
};
|
|
27
27
|
}, {
|
|
28
|
+
compStateStore: import("pinia").Store<"SatCompState", import("../../store/modules/compState").CompState, {
|
|
29
|
+
getComponents: (state: {
|
|
30
|
+
SatSource?: {
|
|
31
|
+
label: string;
|
|
32
|
+
name: string;
|
|
33
|
+
parentName: string;
|
|
34
|
+
enable: boolean;
|
|
35
|
+
active: boolean;
|
|
36
|
+
ready?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
} & import("pinia").PiniaCustomStateProperties<import("../../store/modules/compState").CompState>) => any;
|
|
39
|
+
}, {
|
|
40
|
+
setSatSource(item: import("../../store/modules/compState").StateItem): void;
|
|
41
|
+
changeCompState(itemName: string, flag: boolean): void;
|
|
42
|
+
}>;
|
|
28
43
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
29
44
|
treeData: {
|
|
30
45
|
type: import("vue").PropType<import("./helpers").MenuItem[]>;
|
|
@@ -39,16 +54,16 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
39
54
|
default: () => boolean;
|
|
40
55
|
};
|
|
41
56
|
}>> & {
|
|
42
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
43
57
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
44
58
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
45
59
|
}>>;
|
|
46
|
-
emit: (event: "
|
|
60
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
61
|
+
isShowDrawer: import("vue").Ref<boolean> | undefined;
|
|
47
62
|
handleClose: () => void;
|
|
48
63
|
handleMenuClick: (item: import("./helpers").MenuItem) => void;
|
|
49
64
|
handleCloseItemClick: (item: import("./helpers").MenuItem) => void;
|
|
50
|
-
getAssetsSource: typeof import("../../utils").getAssetsSource;
|
|
51
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
65
|
+
getAssetsSource: typeof import("../../utils/getAssetsSource").getAssetsSource;
|
|
66
|
+
}, 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
67
|
treeData: {
|
|
53
68
|
type: import("vue").PropType<import("./helpers").MenuItem[]>;
|
|
54
69
|
default: () => import("./helpers").MenuItem[];
|
|
@@ -62,7 +77,6 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
62
77
|
default: () => boolean;
|
|
63
78
|
};
|
|
64
79
|
}>> & {
|
|
65
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
66
80
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
67
81
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
68
82
|
}, {
|
|
@@ -72,14 +86,12 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
72
86
|
}>;
|
|
73
87
|
menuList: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
74
88
|
menuListEnabled: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
75
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
89
|
+
}, 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
90
|
isVisible: {
|
|
77
91
|
type: BooleanConstructor;
|
|
78
92
|
default: () => boolean;
|
|
79
93
|
};
|
|
80
|
-
}
|
|
81
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
}, {
|
|
94
|
+
}>>, {
|
|
83
95
|
isVisible: boolean;
|
|
84
96
|
}>;
|
|
85
97
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
@@ -12,4 +12,3 @@ export declare type MenuItem = Partial<StateItem> & {
|
|
|
12
12
|
export declare const menuTemplate: Array<MenuItem>;
|
|
13
13
|
export declare const menuList: import("vue").ComputedRef<MenuItem[]>;
|
|
14
14
|
export declare const menuListEnabled: import("vue").ComputedRef<MenuItem[]>;
|
|
15
|
-
export declare const changeCompState: (item: MenuItem, flag: boolean) => void;
|
|
@@ -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[];
|
|
@@ -25,6 +25,21 @@ export declare const SatMenu: import('../../utils/installer').SFCWithInstall<imp
|
|
|
25
25
|
default: () => boolean;
|
|
26
26
|
};
|
|
27
27
|
}, {
|
|
28
|
+
compStateStore: import("pinia").Store<"SatCompState", import("../../store/modules/compState").CompState, {
|
|
29
|
+
getComponents: (state: {
|
|
30
|
+
SatSource?: {
|
|
31
|
+
label: string;
|
|
32
|
+
name: string;
|
|
33
|
+
parentName: string;
|
|
34
|
+
enable: boolean;
|
|
35
|
+
active: boolean;
|
|
36
|
+
ready?: boolean | undefined;
|
|
37
|
+
} | undefined;
|
|
38
|
+
} & import("pinia").PiniaCustomStateProperties<import("../../store/modules/compState").CompState>) => any;
|
|
39
|
+
}, {
|
|
40
|
+
setSatSource(item: import("../../store/modules/compState").StateItem): void;
|
|
41
|
+
changeCompState(itemName: string, flag: boolean): void;
|
|
42
|
+
}>;
|
|
28
43
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
29
44
|
treeData: {
|
|
30
45
|
type: import("vue").PropType<import("./helpers").MenuItem[]>;
|
|
@@ -39,16 +54,16 @@ export declare const SatMenu: import('../../utils/installer').SFCWithInstall<imp
|
|
|
39
54
|
default: () => boolean;
|
|
40
55
|
};
|
|
41
56
|
}>> & {
|
|
42
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
43
57
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
44
58
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
45
59
|
}>>;
|
|
46
|
-
emit: (event: "
|
|
60
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
61
|
+
isShowDrawer: import("vue").Ref<boolean> | undefined;
|
|
47
62
|
handleClose: () => void;
|
|
48
63
|
handleMenuClick: (item: import("./helpers").MenuItem) => void;
|
|
49
64
|
handleCloseItemClick: (item: import("./helpers").MenuItem) => void;
|
|
50
|
-
getAssetsSource: typeof import("../../utils").getAssetsSource;
|
|
51
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
65
|
+
getAssetsSource: typeof import("../../utils/getAssetsSource").getAssetsSource;
|
|
66
|
+
}, 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
67
|
treeData: {
|
|
53
68
|
type: import("vue").PropType<import("./helpers").MenuItem[]>;
|
|
54
69
|
default: () => import("./helpers").MenuItem[];
|
|
@@ -62,7 +77,6 @@ export declare const SatMenu: import('../../utils/installer').SFCWithInstall<imp
|
|
|
62
77
|
default: () => boolean;
|
|
63
78
|
};
|
|
64
79
|
}>> & {
|
|
65
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
66
80
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
67
81
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
68
82
|
}, {
|
|
@@ -72,14 +86,12 @@ export declare const SatMenu: import('../../utils/installer').SFCWithInstall<imp
|
|
|
72
86
|
}>;
|
|
73
87
|
menuList: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
74
88
|
menuListEnabled: import("vue").ComputedRef<import("./helpers").MenuItem[]>;
|
|
75
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
89
|
+
}, 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
90
|
isVisible: {
|
|
77
91
|
type: BooleanConstructor;
|
|
78
92
|
default: () => boolean;
|
|
79
93
|
};
|
|
80
|
-
}
|
|
81
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
82
|
-
}, {
|
|
94
|
+
}>>, {
|
|
83
95
|
isVisible: boolean;
|
|
84
96
|
}>;
|
|
85
97
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type PropType } from 'vue';
|
|
2
|
-
import { getAssetsSource } from '../../../utils';
|
|
1
|
+
import { type PropType, type Ref } from 'vue';
|
|
2
|
+
import { getAssetsSource } from '../../../utils/getAssetsSource';
|
|
3
3
|
import { type MenuItem } from '../helpers';
|
|
4
4
|
declare const _sfc_main: import("vue").DefineComponent<{
|
|
5
5
|
treeData: {
|
|
@@ -15,6 +15,21 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
15
15
|
default: () => boolean;
|
|
16
16
|
};
|
|
17
17
|
}, {
|
|
18
|
+
compStateStore: import("pinia").Store<"SatCompState", import('../../../store/modules/compState').CompState, {
|
|
19
|
+
getComponents: (state: {
|
|
20
|
+
SatSource?: {
|
|
21
|
+
label: string;
|
|
22
|
+
name: string;
|
|
23
|
+
parentName: string;
|
|
24
|
+
enable: boolean;
|
|
25
|
+
active: boolean;
|
|
26
|
+
ready?: boolean | undefined;
|
|
27
|
+
} | undefined;
|
|
28
|
+
} & import("pinia").PiniaCustomStateProperties<import('../../../store/modules/compState').CompState>) => any;
|
|
29
|
+
}, {
|
|
30
|
+
setSatSource(item: import('../../../store/modules/compState').StateItem): void;
|
|
31
|
+
changeCompState(itemName: string, flag: boolean): void;
|
|
32
|
+
}>;
|
|
18
33
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
19
34
|
treeData: {
|
|
20
35
|
type: PropType<MenuItem[]>;
|
|
@@ -29,16 +44,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
29
44
|
default: () => boolean;
|
|
30
45
|
};
|
|
31
46
|
}>> & {
|
|
32
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
33
47
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
34
48
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
35
49
|
}>>;
|
|
36
|
-
emit: (event: "
|
|
50
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
51
|
+
isShowDrawer: Ref<boolean> | undefined;
|
|
37
52
|
handleClose: () => void;
|
|
38
53
|
handleMenuClick: (item: MenuItem) => void;
|
|
39
54
|
handleCloseItemClick: (item: MenuItem) => void;
|
|
40
55
|
getAssetsSource: typeof getAssetsSource;
|
|
41
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
56
|
+
}, 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
57
|
treeData: {
|
|
43
58
|
type: PropType<MenuItem[]>;
|
|
44
59
|
default: () => MenuItem[];
|
|
@@ -52,7 +67,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
52
67
|
default: () => boolean;
|
|
53
68
|
};
|
|
54
69
|
}>> & {
|
|
55
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
56
70
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
57
71
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
58
72
|
}, {
|
|
@@ -12,6 +12,21 @@ export declare const SatMenuTree: import('../../../utils/installer').SFCWithInst
|
|
|
12
12
|
default: () => boolean;
|
|
13
13
|
};
|
|
14
14
|
}, {
|
|
15
|
+
compStateStore: import("pinia").Store<"SatCompState", import("../../../store/modules/compState").CompState, {
|
|
16
|
+
getComponents: (state: {
|
|
17
|
+
SatSource?: {
|
|
18
|
+
label: string;
|
|
19
|
+
name: string;
|
|
20
|
+
parentName: string;
|
|
21
|
+
enable: boolean;
|
|
22
|
+
active: boolean;
|
|
23
|
+
ready?: boolean | undefined;
|
|
24
|
+
} | undefined;
|
|
25
|
+
} & import("pinia").PiniaCustomStateProperties<import("../../../store/modules/compState").CompState>) => any;
|
|
26
|
+
}, {
|
|
27
|
+
setSatSource(item: import("../../../store/modules/compState").StateItem): void;
|
|
28
|
+
changeCompState(itemName: string, flag: boolean): void;
|
|
29
|
+
}>;
|
|
15
30
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
16
31
|
treeData: {
|
|
17
32
|
type: import("vue").PropType<import("..").MenuItem[]>;
|
|
@@ -26,16 +41,16 @@ export declare const SatMenuTree: import('../../../utils/installer').SFCWithInst
|
|
|
26
41
|
default: () => boolean;
|
|
27
42
|
};
|
|
28
43
|
}>> & {
|
|
29
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
30
44
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
31
45
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
32
46
|
}>>;
|
|
33
|
-
emit: (event: "
|
|
47
|
+
emit: (event: "customClick" | "customCloseClick", ...args: any[]) => void;
|
|
48
|
+
isShowDrawer: import("vue").Ref<boolean> | undefined;
|
|
34
49
|
handleClose: () => void;
|
|
35
50
|
handleMenuClick: (item: import("..").MenuItem) => void;
|
|
36
51
|
handleCloseItemClick: (item: import("..").MenuItem) => void;
|
|
37
|
-
getAssetsSource: typeof import("../../../utils").getAssetsSource;
|
|
38
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
52
|
+
getAssetsSource: typeof import("../../../utils/getAssetsSource").getAssetsSource;
|
|
53
|
+
}, 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
54
|
treeData: {
|
|
40
55
|
type: import("vue").PropType<import("..").MenuItem[]>;
|
|
41
56
|
default: () => import("..").MenuItem[];
|
|
@@ -49,7 +64,6 @@ export declare const SatMenuTree: import('../../../utils/installer').SFCWithInst
|
|
|
49
64
|
default: () => boolean;
|
|
50
65
|
};
|
|
51
66
|
}>> & {
|
|
52
|
-
onChangeVisible?: ((...args: any[]) => any) | undefined;
|
|
53
67
|
onCustomClick?: ((...args: any[]) => any) | undefined;
|
|
54
68
|
onCustomCloseClick?: ((...args: any[]) => any) | undefined;
|
|
55
69
|
}, {
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
2
|
+
title: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
shrink: {
|
|
7
|
+
type: FunctionConstructor;
|
|
8
|
+
default: () => void;
|
|
9
|
+
};
|
|
10
|
+
close: {
|
|
11
|
+
type: FunctionConstructor;
|
|
12
|
+
default: () => void;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
title: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
shrink: {
|
|
21
|
+
type: FunctionConstructor;
|
|
22
|
+
default: () => void;
|
|
23
|
+
};
|
|
24
|
+
close: {
|
|
25
|
+
type: FunctionConstructor;
|
|
26
|
+
default: () => void;
|
|
27
|
+
};
|
|
28
|
+
}>> & {
|
|
29
|
+
[x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
|
|
30
|
+
}>>;
|
|
31
|
+
isMobile: import("vue").Ref<boolean>;
|
|
32
|
+
draggable: import("vue").Ref<boolean>;
|
|
33
|
+
dragElement: import("vue").Ref<HTMLElement | null>;
|
|
34
|
+
style: import("vue").ComputedRef<string>;
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
title: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
required: true;
|
|
39
|
+
};
|
|
40
|
+
shrink: {
|
|
41
|
+
type: FunctionConstructor;
|
|
42
|
+
default: () => void;
|
|
43
|
+
};
|
|
44
|
+
close: {
|
|
45
|
+
type: FunctionConstructor;
|
|
46
|
+
default: () => void;
|
|
47
|
+
};
|
|
48
|
+
}>>, {
|
|
49
|
+
close: Function;
|
|
50
|
+
shrink: Function;
|
|
51
|
+
}>;
|
|
52
|
+
export default _sfc_main;
|