first commit
This commit is contained in:
22
src/store/modules/toolbar.js
Normal file
22
src/store/modules/toolbar.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { defineStore } from 'pinia'
|
||||
|
||||
const useToolBarStore = defineStore(
|
||||
'toolbar',
|
||||
{
|
||||
state: () => ({
|
||||
expand: false, //地图图例位置
|
||||
trawler: {
|
||||
visible: false // 渔船动态详情收缩框显示
|
||||
}
|
||||
}),
|
||||
actions: {
|
||||
toogleExpand(expand) {
|
||||
this.expand = expand
|
||||
},
|
||||
toggleTrawlerVisible(visible) {
|
||||
this.trawler.visible = visible
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
export default useToolBarStore
|
||||
Reference in New Issue
Block a user