新增: 全局色弱模式;

This commit is contained in:
iczer
2020-06-20 11:55:59 +08:00
parent 5bbe94728e
commit 3d568c6caa
10 changed files with 80 additions and 38 deletions

View File

@@ -8,7 +8,7 @@
</template>
<script>
import {animates} from '@/config'
import animates from '@/config/animates'
export default {
name: 'PageToggleTransition',
@@ -16,7 +16,7 @@
animate: {
type: String,
validator(value) {
return animates.find(item => item.name == value) != -1
return animates.findIndex(item => item.name == value) != -1
},
default: 'bounce'
},