feat(Loading): add text-color prop (#7806)

This commit is contained in:
晓晓晓晓晓丶vv
2020-12-29 19:52:18 +08:00
committed by GitHub
parent 81f15e868a
commit 680c93d103
6 changed files with 130 additions and 7 deletions
+2
View File
@@ -22,6 +22,7 @@ export default createComponent({
color: String,
vertical: Boolean,
textSize: [Number, String],
textColor: String,
type: {
type: String as PropType<LoadingType>,
default: 'circular',
@@ -41,6 +42,7 @@ export default createComponent({
class={bem('text')}
style={{
fontSize: addUnit(props.textSize),
color: props.textColor ?? props.color,
}}
>
{slots.default()}