Skip to content

Commit 9a4aaea

Browse files
committed
edit [b-loading]
1 parent ed35377 commit 9a4aaea

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

src/components/base/Loading/b-loading.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<template>
2-
<div
3-
:class="objClass"
4-
role="status"
2+
<div
3+
:class="objClass"
4+
role="status"
55
>
6-
<span class="sr-only">Loading...</span>
6+
<span class="visually-hidden">Loading...</span>
77
</div>
88
</template>
99

@@ -31,8 +31,8 @@ export default {
3131
computed: {
3232
objClass: function() {
3333
let color = this.color ? `text-${this.color}` : "";
34-
let size = this.size ? `spinner-border-${this.size}` : "";
35-
return `spinner-${this.status} ${color} ${size}`;
34+
let size = this.size ? `spinner-${this.status}-${this.size}` : "";
35+
return `spinner-${this.status} ${size} ${color}`;
3636
}
3737
}
3838
};

src/pages/Demo/Base/b-loading-demo.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
</font>
2323
<b-loading status="grow" />
2424
</div>
25-
<div class="row py-1">
25+
<div class="row my-1">
2626
<font class="col-1">
2727
size:
2828
</font>
@@ -33,11 +33,13 @@
3333
<font class="col-1">
3434
sm:
3535
</font>
36-
<b-loading size="sm" />
37-
<b-loading
38-
size="sm"
39-
status="grow"
40-
/>
36+
<div class="col-auto">
37+
<b-loading size="sm" />
38+
<b-loading
39+
size="sm"
40+
status="grow"
41+
/>
42+
</div>
4143
</div>
4244
<div class="row py-1">
4345
<font class="col-1">

0 commit comments

Comments
 (0)