diff --git a/package/component/src/component/radio/index.less b/package/component/src/component/radio/index.less index 00531704..4eae0d2a 100644 --- a/package/component/src/component/radio/index.less +++ b/package/component/src/component/radio/index.less @@ -1,3 +1,31 @@ +@lg: 24px; +@md: 22px; +@sm: 20px; +@xs: 18px; + +.set-size(@size) { + & { + .layui-form-radio > i { + font-size: @size; + } + } +} + +.layui-radio{ + &[size="lg"] { + .set-size(@lg); + } + &[size="md"] { + .set-size(@md); + } + &[size="sm"] { + .set-size(@sm); + } + &[size="xs"] { + .set-size(@xs); + } +} + .layui-radio input[type="radio"]{ display: none; } diff --git a/package/component/src/component/radio/index.vue b/package/component/src/component/radio/index.vue index 5b5fc897..0dc4671d 100644 --- a/package/component/src/component/radio/index.vue +++ b/package/component/src/component/radio/index.vue @@ -7,9 +7,9 @@ export default {