mirror of
https://github.com/directus/directus.git
synced 2026-02-16 05:35:19 -05:00
Add progress circular (#32)
* made spinner more fancy * rebuild spinner to progress circular * update readme * cleaned code and style * clean readme * made spinner more fancy * rebuild spinner to progress circular * update readme * cleaned code and style * clean readme * Register circular progress * Fix broken import * Fix stylelint problems in v-progress-circular * Add some useful tests for circular progress * Delete package-lock.json * Update readme * Ignore package-lock Co-authored-by: Rijk van Zanten <rijkvanzanten@me.com>
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import { mount, createLocalVue } from '@vue/test-utils';
|
||||
import VueCompositionAPI from '@vue/composition-api';
|
||||
import VButton from './v-button.vue';
|
||||
import VProgressCircular from '../v-progress/circular/';
|
||||
|
||||
const localVue = createLocalVue();
|
||||
localVue.use(VueCompositionAPI);
|
||||
localVue.component('v-spinner', VSpinner);
|
||||
|
||||
import VButton from './v-button.vue';
|
||||
import VSpinner from '../v-spinner/';
|
||||
localVue.component('v-progress-circular', VProgressCircular);
|
||||
|
||||
describe('Button', () => {
|
||||
it('Renders the provided markup in the default slow', () => {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<span class="content" :class="{ invisible: loading }"><slot /></span>
|
||||
<div class="spinner">
|
||||
<slot v-if="loading" name="loading">
|
||||
<v-spinner :x-small="xSmall" :small="small" />
|
||||
<v-progress-circular :x-small="xSmall" :small="small" indeterminate />
|
||||
</slot>
|
||||
</div>
|
||||
</button>
|
||||
@@ -191,6 +191,11 @@ export default createComponent({
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
|
||||
.v-progress-circular {
|
||||
--v-progress-circular-color: var(--v-button-color);
|
||||
--v-progress-circular-background-color: transparent;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user