Skip to content

Commit

Permalink
chore(DropdownMenuItem): when option is an empty array, no space is o…
Browse files Browse the repository at this point in the history
…ccupied (#3235)
  • Loading branch information
anlyyao authored Oct 29, 2024
1 parent 55a5e32 commit 4239dcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dropdown-item/dropdown-item.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
t-class="{{classPrefix}}__popup-host"
t-class-content="{{classPrefix}}__content {{prefix}}-class-content"
>
<view class="{{classPrefix}}__body">
<view wx:if="{{options && options.length > 0}}" class="{{classPrefix}}__body">
<!-- 单选列表 -->
<scroll-view wx:if="{{!multiple}}" class="{{classPrefix}}__scroll" scroll-y scroll-into-view="id_{{value}}">
<t-radio-group
Expand Down Expand Up @@ -56,7 +56,7 @@
class="{{classPrefix}}__checkbox {{prefix}}-class-column"
t-class="{{classPrefix}}__checkbox-group"
style="grid-template-columns: repeat({{optionsColumns}}, 1fr)"
value="{{value}}"
value="{{value ? value : []}}"
bind:change="handleRadioChange"
>
<view wx:for="{{options}}" wx:key="index" id="id_{{item[valueAlias]}}">
Expand Down

0 comments on commit 4239dcb

Please sign in to comment.