[bugfix] Circle: incorrect style in android devices (#2062)

This commit is contained in:
neverland 2018-11-10 17:24:05 +08:00 committed by GitHub
parent d1cad717f2
commit 33561bfbc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 5 deletions

View File

@ -26,10 +26,7 @@ export default create({
disabled: Boolean, disabled: Boolean,
checkedColor: String, checkedColor: String,
labelPosition: String, labelPosition: String,
labelDisabled: { labelDisabled: Boolean,
type: Boolean,
default: false
},
shape: { shape: {
type: String, type: String,
default: 'round' default: 'round'

View File

@ -19,7 +19,9 @@
stroke-dasharray: 3140; stroke-dasharray: 3140;
stroke-dashoffset: 3140; stroke-dashoffset: 3140;
transform: rotate(90deg); transform: rotate(90deg);
transform-origin: center; // should not use transform-origin: center
// that will cause incorrect style in android devices
transform-origin: 530px 530px;
} }
&__text { &__text {