add transition setting
Former-commit-id: 56f830d8693d9ac264c647aeb62e2cabf915f46e [formerly 56f830d8693d9ac264c647aeb62e2cabf915f46e [formerly 56f830d8693d9ac264c647aeb62e2cabf915f46e [formerly 56f830d8693d9ac264c647aeb62e2cabf915f46e [formerly 5c54818ab49b18a1c5f7dfdbcf9a3e585699623f [formerly 69d8a8881c6c5807882f566c1aad5aaf25c71844]]]]] Former-commit-id: b9f4b800e18a1b0b274170fceec985567a82fe21 Former-commit-id: a62959e0e06f81cee7460baf1bb69b592d9a81d2 Former-commit-id: 11ba6f480f66db6e352acc5975eb0f127c9d553c [formerly eed4539c51e4c855d708f74dea30b175c534772b] Former-commit-id: fc03c9f4d102371aaf3d1e53242b6e2e60e8a617 Former-commit-id: 69967ee1bbe532e61f96b46572cc2f4bfca6ca74 Former-commit-id: 7d78e41d4f5e39fb7b9690a1dd12766f04c79599 Former-commit-id: 2d0d79e4a4916c164f05d9eb761298a246928810 Former-commit-id: d741001cf4ee057219d432fbc26c62cc67bd6cad
This commit is contained in:
23
src/pages/demo/playground/store/transition/index.vue
Normal file
23
src/pages/demo/playground/store/transition/index.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<d2-container type="card">
|
||||
<el-button type="primary" @click="set(!active)">
|
||||
{{active ? '关闭页面切换动画' : '打开页面切换动画'}}
|
||||
</el-button>
|
||||
</d2-container>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState, mapMutations } from 'vuex'
|
||||
export default {
|
||||
computed: {
|
||||
...mapState('d2admin/transition', [
|
||||
'active'
|
||||
])
|
||||
},
|
||||
methods: {
|
||||
...mapMutations('d2admin/transition', [
|
||||
'set'
|
||||
])
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user