riku
2026-04-02 3282e95db0207ee133d1e98d9771dec9d83b0fc4
miniprogram_npm/tdesign-miniprogram/drawer/drawer.wxml
@@ -1,44 +1 @@
<wxs src="../common/utils.wxs" module="_" />
<t-popup
  wx:if="{{!destroyOnClose || visible}}"
  style="{{_._style([style, customStyle])}}"
  class="class"
  bind:visible-change="visibleChange"
  visible="{{visible}}"
  zIndex="{{zIndex}}"
  usingCustomNavbar="{{usingCustomNavbar}}"
  placement="{{placement == 'right' ? 'right' : 'left'}}"
  showOverlay="{{showOverlay}}"
  closeOnOverlayClick="{{closeOnOverlayClick}}"
>
  <view class="{{classPrefix}}">
    <slot name="title" />
    <view wx:if="{{title}}" class="{{classPrefix}}__title">{{title}}</view>
    <scroll-view class="{{classPrefix}}__sidebar" scroll-y type="list">
      <view
        class="{{classPrefix}}__sidebar-item"
        hover-class="{{classPrefix}}--hover"
        hover-start-time="{{0}}"
        hover-stay-time="{{100}}"
        wx:for="{{items}}"
        wx:item="item"
        wx:key="index"
        data-item="{{item}}"
        data-index="{{index}}"
        bindtap="itemClick"
        aria-role="{{ ariaRole || 'button' }}"
        aria-label="{{item.title}}"
      >
        <view aria-hidden="{{true}}" wx:if="{{item.icon}}" class="{{classPrefix}}__sidebar-item-icon">
          <t-icon name="{{item.icon}}" />
        </view>
        <view class="{{classPrefix}}__sidebar-item-title"> {{item.title}} </view>
      </view>
    </scroll-view>
    <view class="{{classPrefix}}__footer">
      <slot />
      <slot name="footer" />
    </view>
  </view>
</t-popup>
<wxs src="../common/utils.wxs" module="_"/><t-popup wx:if="{{!destroyOnClose || visible}}" style="{{_._style([style, customStyle])}}" class="class" visible="{{visible}}" z-index="{{zIndex}}" using-custom-navbar="{{usingCustomNavbar}}" placement="{{placement == 'right' ? 'right' : 'left'}}" show-overlay="{{showOverlay}}" overlay-props="{{overlayProps}}" close-on-click-overlay="{{closeOnOverlayClick}}" bind:visible-change="onVisibleChange"><view class="{{classPrefix}}"><slot name="title"/><view wx:if="{{title}}" class="{{classPrefix}}__title">{{title}}</view><scroll-view class="{{classPrefix}}__sidebar" scroll-y type="list"><view class="{{classPrefix}}__sidebar-item" hover-class="{{classPrefix}}--hover" hover-start-time="{{0}}" hover-stay-time="{{100}}" wx:for="{{items}}" wx:item="item" wx:key="index" data-item="{{item}}" data-index="{{index}}" aria-role="{{ ariaRole || 'button' }}" aria-label="{{item.title}}" bindtap="onItemClick"><view aria-hidden="{{true}}" wx:if="{{item.icon}}" class="{{classPrefix}}__sidebar-item-icon"><t-icon name="{{item.icon}}"/></view><view class="{{classPrefix}}__sidebar-item-title">{{item.title}}</view></view></scroll-view><view class="{{classPrefix}}__footer"><slot/><slot name="footer"/></view></view></t-popup>