/
githubmirror
/
element
Обзор
Документация
Войти
/
githubmirror
/
element
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
examples/components/theme/loader/loading/index.vue
35 строк
572 B
iamkun
Chore: support theme configuration (#15190)
24 апр 2019, 14:52
24 апр 2019, 14:52
ac3aa99
Код
Авторство
О чём код?
<style> .loadingClass { z-index: 0!important; .el-loading-spinner { top: 0%; margin-top: 30%; } } </style> <script> import bus from '../../../../bus.js'; import './progress.js'; export default { data() { return { count: 0 }; }, created() { bus.$on('user-theme-config-loading', val => { if (val) { this.count++; if (this.count > 1) return; this.$bar.start(); } else { this.count--; if (this.count) return; this.$bar.finish(); } }); } }; </script>