Начало перехода от Element-UI на Quasar

This commit is contained in:
Book Pauk
2020-01-09 21:07:59 +07:00
parent e89b6e3ea0
commit 452f4e69fd
5 changed files with 42 additions and 2 deletions

View File

@@ -1,7 +1,21 @@
<template>
<div v-show="visible" class="main">
<div class="center">
<el-progress type="circle" :width="100" :stroke-width="6" color="#0F9900" :percentage="percentage"></el-progress>
<!--el-progress type="circle" :width="100" :stroke-width="6" color="#0F9900" :percentage="percentage"></el-progress-->
<q-circular-progress
show-value
instant-feedback
font-size="14px"
:value="percentage"
size="100px"
:thickness="0.12"
color="green-7"
track-color="grey-4"
class="q-ma-md"
>
{{ percentage }}%
</q-circular-progress>
<p class="text">{{ text }}</p>
</div>
</div>
@@ -84,7 +98,7 @@ class ProgressPage extends Vue {
align-items: center;
color: white;
height: 300px;
height: 250px;
}
.text {

View File

@@ -3,6 +3,7 @@ import Vue from 'vue';
import router from './router';
import store from './store';
import './element';
import './quasar';
import App from './components/App.vue';
//Vue.config.productionTip = false;

19
client/quasar.js Normal file
View File

@@ -0,0 +1,19 @@
import Vue from 'vue';
import 'quasar/dist/quasar.css';
import Quasar, {
QColor,
QCircularProgress
} from 'quasar';
Vue.use(Quasar, {
config: {},
components: {
QColor,
QCircularProgress
},
directives: {
},
plugins: {
}
});