Skip to content

Commit

Permalink
fix(dropdown-menu): support multiple column radio (#1927)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeeJim authored Apr 25, 2023
1 parent 1737ab5 commit f78e01f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/dropdown-item/dropdown-item.less
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,16 @@
width: 100%;
overflow: scroll;
box-sizing: border-box;

&-group {
display: grid;
grid-gap: 24rpx;
}
}

&__checkbox {
&-group {
display: grid;
padding: 32rpx;
grid-gap: 24rpx;
}
}

Expand Down
1 change: 1 addition & 0 deletions src/dropdown-item/dropdown-item.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
wx:if="{{!multiple}}"
class="{{classPrefix}}__radio {{prefix}}-class-column"
t-class="{{classPrefix}}__radio-group"
style="grid-template-columns: repeat({{optionsColumns}}, 1fr)"
value="{{value}}"
placement="right"
bind:change="handleRadioChange"
Expand Down

0 comments on commit f78e01f

Please sign in to comment.