test: 测试
parent
f744a664e9
commit
31fc7e35f3
|
@ -9,14 +9,20 @@
|
|||
</split-pane>
|
||||
</template>
|
||||
<script lang="ts">
|
||||
import { defineComponent, ref } from 'vue'
|
||||
import { computed, defineComponent, ref, watch } from 'vue'
|
||||
import SplitPane from 'vue-splitpane'
|
||||
import SideMenu from './SideMenu.vue'
|
||||
import RightList from './List.vue'
|
||||
|
||||
import { useStore } from '@cmp/cmp-core'
|
||||
export default defineComponent({
|
||||
components: { SplitPane, SideMenu, RightList },
|
||||
setup() {
|
||||
const store = useStore()
|
||||
console.log(store)
|
||||
const selectedPostion = computed(() => store.state.position.selectedPostion)
|
||||
watch(selectedPostion, (val) => {
|
||||
console.log('阵地切换', val)
|
||||
})
|
||||
const listRef = ref()
|
||||
function handleNodeClick(node: any) {
|
||||
const { type, id } = node
|
||||
|
|
Loading…
Reference in New Issue