u
This commit is contained in:
1 parent
5a7e96db02
commit
97b88528a5
2 files changed
+11
-9
No files matched your search
@@ -10,7 +10,7 @@ $radio-group-prefix: '#{$prefix}-radio-group';
|
|||||||
position: relative;
|
position: relative;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
line-height: 20px;
|
||||||
&.#{$radio-prefix}-disabled {
|
&.#{$radio-prefix}-disabled {
|
||||||
cursor: not-allowed;
|
cursor: not-allowed;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
@@ -30,10 +30,12 @@ $radio-group-prefix: '#{$prefix}-radio-group';
|
|||||||
|
|
||||||
.#{$radio-prefix}-main {
|
.#{$radio-prefix}-main {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
display: inline-flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
|
margin-top: 2px;
|
||||||
|
vertical-align: sub;
|
||||||
.#{$radio-prefix}-input {
|
.#{$radio-prefix}-input {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
@@ -48,8 +50,8 @@ $radio-group-prefix: '#{$prefix}-radio-group';
|
|||||||
.#{$radio-prefix}-inner {
|
.#{$radio-prefix}-inner {
|
||||||
border: 1px solid $border-color;
|
border: 1px solid $border-color;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
width: 14px;
|
width: 16px;
|
||||||
height: 14px;
|
height: 16px;
|
||||||
background-color: $bg-color-container;
|
background-color: $bg-color-container;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
@@ -58,8 +60,8 @@ $radio-group-prefix: '#{$prefix}-radio-group';
|
|||||||
outline: 0;
|
outline: 0;
|
||||||
&::after {
|
&::after {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
width: 6px;
|
width: 8px;
|
||||||
height: 6px;
|
height: 8px;
|
||||||
border-radius: 999px;
|
border-radius: 999px;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
content: '';
|
content: '';
|
||||||
|
|||||||
@@ -86,9 +86,9 @@ export default defineComponent({
|
|||||||
onClick={e => e.stopPropagation()}
|
onClick={e => e.stopPropagation()}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<span class={`${prefixCls}-content`}>
|
<div class={`${prefixCls}-content`}>
|
||||||
{slots.default?.()}
|
{slots.default?.()}
|
||||||
</span>
|
</div>
|
||||||
|
|
||||||
</label>
|
</label>
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user