refactor(components): [loading] change viewBox default value (#9769)

This commit is contained in:
qiang
2022-09-17 00:10:16 +08:00
committed by GitHub
parent 861a7953b4
commit 599bd8e4ed

View File

@@ -80,14 +80,14 @@ export function createLoadingComponent(options: LoadingOptionsResolved) {
'svg',
{
class: 'circular',
viewBox: data.svgViewBox ? data.svgViewBox : '25 25 50 50',
viewBox: data.svgViewBox ? data.svgViewBox : '0 0 50 50',
...(svg ? { innerHTML: svg } : {}),
},
[
h('circle', {
class: 'path',
cx: '50',
cy: '50',
cx: '25',
cy: '25',
r: '20',
fill: 'none',
}),