diff --git a/packages/button/index.wxml b/packages/button/index.wxml index 77b49429..162010a5 100644 --- a/packages/button/index.wxml +++ b/packages/button/index.wxml @@ -28,7 +28,7 @@ custom-class="loading-class" size="{{ loadingSize }}" type="{{ loadingType }}" - color="{{ type === 'default' ? '#c9c9c9' : 'white' }}" + color="{{ loadingColor(type,color,plain) }}" /> + + + +function get(type, color,plain) { + if(plain) { + return color ? color: '#c9c9c9'; + } + + if(type === 'default') { + return '#c9c9c9'; + } + return 'white'; +} + +module.exports = get; + \ No newline at end of file