提交 eb156647 编写于 作者: D dolymood

loading default size to 1em

上级 85a779ba
...@@ -17,12 +17,14 @@ ...@@ -17,12 +17,14 @@
}, },
props: { props: {
size: { size: {
type: Number, type: Number
default: 24
} }
}, },
computed: { computed: {
style() { style() {
if (!this.size) {
return
}
const value = `${this.size}px` const value = `${this.size}px`
return { return {
width: value, width: value,
...@@ -33,18 +35,20 @@ ...@@ -33,18 +35,20 @@
} }
</script> </script>
<style lang="stylus" rel="stylesheet/stylus"> <style lang="stylus" rel="stylesheet/stylus">
@require "../../common/stylus/variable.styl"
.cube-loading .cube-loading
font-size: 0 font-size: $fontsize-large-xxx
.cube-loading-spinners .cube-loading-spinners
position: relative position: relative
display: inline-block display: block
width: 20px width: 1em
height: 20px height: 1em
.cube-loading-spinner .cube-loading-spinner
position: absolute position: absolute
left: 44.5% left: 44.5%
top: 37% top: 37%
width: 10% width: 2PX // for rem
height: 25% height: 25%
border-radius: 50%/20% border-radius: 50%/20%
opacity: .25 opacity: .25
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册