antd-mini
Version:
antd-mini 是支付宝小程序 UI 组件库,遵循 Ant Design 规范。
51 lines (42 loc) • 884 B
text/less
@import (reference) '../variable.less';
@radioGroupPrefix: ant-radio-group;
.@{radioGroupPrefix} {
&-horizontal {
.@{radioGroupPrefix}-body {
display: flex;
flex-wrap: wrap;
justify-content: flex-start;
.ant-list-item-line {
padding-right: 0;
}
.ant-radio-item {
flex-flow: 0;
}
.ant-list-item-line::after {
display: none;
}
}
}
&-header:empty,
&-footer:empty {
display: none;
}
&-header,
&-footer {
display: flex;
align-items: center;
padding: @v-spacing-standard @v-spacing-large;
line-height: 1.4;
font-size: 30 * @rpx;
color: @radio-header-color;
}
&-body {
position: relative;
overflow: hidden;
.ant-radio-item-content {
.ant-radio-group-item-label-default:not(:nth-child(1)) {
display: none;
}
}
}
}