From 1f9e43b7bbb848c7ee2aaa89ffece17002b2c915 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 16 一月 2026 17:31:08 +0800
Subject: [PATCH] 2026.1.16
---
miniprogram_npm/tdesign-miniprogram/side-bar-item/side-bar-item.wxml | 25 +------------------------
1 files changed, 1 insertions(+), 24 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/side-bar-item/side-bar-item.wxml b/miniprogram_npm/tdesign-miniprogram/side-bar-item/side-bar-item.wxml
index a95478e..c69a84a 100644
--- a/miniprogram_npm/tdesign-miniprogram/side-bar-item/side-bar-item.wxml
+++ b/miniprogram_npm/tdesign-miniprogram/side-bar-item/side-bar-item.wxml
@@ -1,24 +1 @@
-<import src="../common/template/badge" />
-<import src="../common/template/icon" />
-<wxs src="../common/utils.wxs" module="_" />
-
-<view
- class="{{_.cls(classPrefix, [['active', active], ['disabled', disabled]])}} class {{prefix}}-class"
- style="{{_._style([style, customStyle])}}"
- bind:tap="handleClick"
- aria-role="button"
- aria-label="{{ active ? '宸查�変腑锛�' + label : label}}"
- aria-label="{{ ariaLabel || (badgeProps.dot || badgeProps.count ? (active ? '宸查�変腑锛�' + label + _.getBadgeAriaLabel({ ...badgeProps }) : label + _.getBadgeAriaLabel({ ...badgeProps })) : '') }}"
- aria-disabled="{{disabled}}"
->
- <block wx:if="{{active}}">
- <view class="{{classPrefix}}__line"></view>
- <view class="{{classPrefix}}__prefix"></view>
- <view class="{{classPrefix}}__suffix"></view>
- </block>
- <template wx:if="{{_icon}}" is="icon" data="{{ class: classPrefix + '__icon', ..._icon }}" />
- <block wx:if="{{badgeProps}}">
- <template is="badge" data="{{ ...badgeProps, content: label }}" />
- </block>
- <block wx:else>{{label}}</block>
-</view>
+<import src="../common/template/badge"/><import src="../common/template/icon"/><wxs src="../common/utils.wxs" module="_"/><view id="{{tId}}" class="{{_.cls(classPrefix, [['active', active], ['disabled', disabled]])}} class {{prefix}}-class" style="{{_._style([style, customStyle])}}" bind:tap="handleClick" aria-role="button" aria-label="{{ active ? '宸查�変腑锛�' + label : label}}" aria-label="{{ ariaLabel || (badgeProps.dot || badgeProps.count ? (active ? '宸查�変腑锛�' + label + _.getBadgeAriaLabel({ ...badgeProps }) : label + _.getBadgeAriaLabel({ ...badgeProps })) : '') }}" aria-disabled="{{disabled}}"><block wx:if="{{active}}"><view class="{{classPrefix}}__line"></view><view class="{{classPrefix}}__prefix"></view><view class="{{classPrefix}}__suffix"></view></block><template wx:if="{{_icon}}" is="icon" data="{{ tClass: classPrefix + '__icon', ..._icon }}"/><block wx:if="{{badgeProps}}"><template is="badge" data="{{ ...badgeProps, content: label }}"/></block><block wx:else>{{label}}</block><slot/></view>
\ No newline at end of file
--
Gitblit v1.9.3