You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< template >
< view class = "mix-icon-loading" >
< view
class = "loading-icon"
: style = "{
width: size,
height: size,
borderRightColor: color
}"
> < / view >
< / view >
< / template >
< script >
/**
* 菊花loading小图标
* @prop size 尺寸, 单位rpx
* @prop color 颜色
*/
export default {
name : 'MixIconLoading' ,
data ( ) {
return {
} ;
} ,
props : {
size : {
type : String ,
default : '26rpx'
} ,
color : {
type : String ,
default : '#999'
}
} ,
methods : {
}
}
< / script >
< style scoped lang = 'scss' >
. mix - icon - loading {
display : flex ;
align - items : center ;
justify - content : center ;
width : auto ;
height : auto ;
}
. loading - icon {
width : 28 rpx ;
height : 28 rpx ;
border : 4 rpx solid # ddd ;
animation : mix - loading 1.8 s steps ( 12 ) infinite ;
border - radius : 100 rpx ;
}
@ keyframes mix - loading {
from {
transform : rotate ( 0 deg )
}
to {
transform : rotate ( 1 turn )
}
}
< / style >