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/badge/badge.wxml |   45 +--------------------------------------------
 1 files changed, 1 insertions(+), 44 deletions(-)

diff --git a/miniprogram_npm/tdesign-miniprogram/badge/badge.wxml b/miniprogram_npm/tdesign-miniprogram/badge/badge.wxml
index f669d65..81e7b25 100644
--- a/miniprogram_npm/tdesign-miniprogram/badge/badge.wxml
+++ b/miniprogram_npm/tdesign-miniprogram/badge/badge.wxml
@@ -1,44 +1 @@
-<wxs src="./badge.wxs" module="this" />
-<wxs src="../common/utils.wxs" module="_" />
-
-<!--
-  1. labelID 鐢ㄤ簬鎻忚堪褰撳墠鍏冪礌鐨勬枃鏈�
-  2. descriptionID 鐢ㄤ簬鎻忚堪badge娑堟伅鐨勬枃鏈�
-  3. role=option涓�鑸敤浜庡涓唴瀹瑰悎骞剁劍鐐硅繛缁湕璇�
--->
-
-<view
-  style="{{_._style([style, customStyle])}}"
-  class="{{this.getBadgeOuterClass({shape})}} class {{prefix}}-class"
-  aria-labelledby="{{labelID}}"
-  aria-describedby="{{descriptionID}}"
-  aria-role="{{ ariaRole || 'option'}}"
->
-  <view id="{{labelID}}" class="{{classPrefix}}__content {{prefix}}-class-content" aria-hidden="true">
-    <slot wx:if="{{!content}}" class="{{classPrefix}}__content-slot" />
-    <text wx:else class="{{classPrefix}}__content-text">{{content}}</text>
-  </view>
-  <view
-    aria-hidden="true"
-    aria-label="{{ ariaLabel || _.getBadgeAriaLabel({dot, count, maxCount}) }}"
-    wx:if="{{this.isShowBadge({dot,count,showZero})}}"
-    id="{{descriptionID}}"
-    class="{{this.getBadgeInnerClass({dot, size, shape, count})}} {{prefix}}-has-count {{prefix}}-class-count"
-    style="{{this.getBadgeStyles({color, offset})}}"
-    aria-hidden="true"
-    aria-label="{{ ariaLabel || _.getBadgeAriaLabel({dot, count, maxCount}) }}"
-  >
-    <view
-      wx:if="{{shape == 'ribbon'}}"
-      class="t-badge__ribbon--before"
-      style="{{color ? 'border-color: ' + color : ''}}"
-    />
-    {{ this.getBadgeValue({dot, count, maxCount}) }}
-    <view
-      wx:if="{{shape == 'ribbon'}}"
-      class="t-badge__ribbon--after"
-      style="{{color ? 'border-color: ' + color : ''}}"
-    />
-  </view>
-  <slot name="count" />
-</view>
+<wxs src="./badge.wxs" module="_this"/><wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="{{_this.getBadgeOuterClass({shape})}} class {{prefix}}-class" aria-labelledby="{{labelID}}" aria-describedby="{{descriptionID}}" aria-role="{{ ariaRole || 'option'}}"><view id="{{labelID}}" class="{{classPrefix}}__content {{prefix}}-class-content" aria-hidden="true"><slot wx:if="{{!content}}" class="{{classPrefix}}__content-slot"/><text wx:else class="{{classPrefix}}__content-text">{{content}}</text></view><view aria-hidden="true" aria-label="{{ ariaLabel || _.getBadgeAriaLabel({dot, count, maxCount}) }}" wx:if="{{_this.isShowBadge({dot,count,showZero})}}" id="{{descriptionID}}" class="{{_this.getBadgeInnerClass({dot, size, shape, count})}} {{prefix}}-has-count {{prefix}}-class-count" style="{{_._style([_this.getBadgeStyles({color, offset})])}}" aria-hidden="true" aria-label="{{ ariaLabel || _.getBadgeAriaLabel({dot, count, maxCount}) }}">{{ _this.getBadgeValue({dot, count, maxCount}) }}</view><slot name="count"/></view>
\ No newline at end of file

--
Gitblit v1.9.3