From 3282e95db0207ee133d1e98d9771dec9d83b0fc4 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 02 四月 2026 16:24:38 +0800
Subject: [PATCH] 2026.4.2 新增专题管理功能
---
miniprogram_npm/tdesign-miniprogram/cell/cell.wxml | 59 +----------------------------------------------------------
1 files changed, 1 insertions(+), 58 deletions(-)
diff --git a/miniprogram_npm/tdesign-miniprogram/cell/cell.wxml b/miniprogram_npm/tdesign-miniprogram/cell/cell.wxml
index e154869..ab240fa 100644
--- a/miniprogram_npm/tdesign-miniprogram/cell/cell.wxml
+++ b/miniprogram_npm/tdesign-miniprogram/cell/cell.wxml
@@ -1,58 +1 @@
-<wxs src="../common/utils.wxs" module="_" />
-
-<view
- style="{{_._style([style, customStyle])}}"
- class="class {{prefix}}-class {{classPrefix}} {{ !bordered || isLastChild ? classPrefix + '--borderless' : ''}} {{classPrefix}}--{{align}}"
- hover-class="{{ hover ? classPrefix + '--hover' : ''}}"
- hover-stay-time="70"
- bind:tap="onClick"
- aria-role="{{ariaRole || (arrow ? 'button' : '')}}"
- aria-label="{{ariaLabel}}"
->
- <view class="{{classPrefix}}__left {{prefix}}-class-left">
- <t-icon
- wx:if="{{ leftIcon }}"
- name="{{leftIcon}}"
- t-class="{{classPrefix}}__left-icon {{prefix}}-class-left-icon"
- />
- <slot name="left-icon" />
- <t-image
- wx:if="{{ image }}"
- shape="round"
- t-class="{{classPrefix}}__left-image {{prefix}}-class-image"
- src="{{ image }}"
- />
- <slot name="image" />
- </view>
- <view class="{{classPrefix}}__title">
- <view class="{{classPrefix}}__title-text {{prefix}}-class-title">
- <block wx:if="{{ title }}"> {{ title}} </block>
- <slot name="title" />
- <block wx:if="{{required}}">
- <text decode class="{{classPrefix}}--required"> *</text>
- </block>
- </view>
-
- <view class="{{classPrefix}}__description {{prefix}}-class-description">
- <view wx:if="{{ description }}" class="{{classPrefix}}__description-text">{{description}}</view>
- <slot name="description" />
- </view>
- </view>
-
- <view class="{{classPrefix}}__note {{prefix}}-class-note">
- <text wx:if="{{ note }}">{{note}}</text>
- <slot name="note" />
- </view>
-
- <view class="{{classPrefix}}__right {{prefix}}-class-right">
- <t-icon
- wx:if="{{ arrow }}"
- name="chevron-right"
- t-class="{{classPrefix}}__right-icon {{prefix}}-class-right-icon"
- />
- <block wx:else>
- <t-icon name="{{rightIcon}}" t-class="{{classPrefix}}__right-icon {{prefix}}-class-right-icon" />
- <slot name="right-icon" />
- </block>
- </view>
-</view>
+<import src="../common/template/icon.wxml"/><wxs src="../common/utils.wxs" module="_"/><view style="{{_._style([style, customStyle])}}" class="class {{prefix}}-class {{_.cls(classPrefix, [['bordered', bordered && !isLastChild]])}}" hover-class="{{ hover ? classPrefix + '--hover' : ''}}" hover-stay-time="70" bind:tap="onClick" aria-role="{{ariaRole || (arrow ? 'button' : '')}}" aria-label="{{ariaLabel}}"><view class="{{classPrefix}}__left {{prefix}}-class-left"><template wx:if="{{_leftIcon}}" is="icon" data="{{tClass: classPrefix + '__left-icon ' + prefix + '-class-left-icon', ..._leftIcon }}"/><slot name="left-icon"/><t-image wx:if="{{ image }}" shape="round" t-class="{{classPrefix}}__left-image {{prefix}}-class-image" src="{{ image }}"/><slot name="image"/></view><view class="{{classPrefix}}__title {{prefix}}-class-center"><view class="{{classPrefix}}__title-text {{prefix}}-class-title"><block wx:if="{{ title }}">{{ title}}</block><slot name="title"/><block wx:if="{{required}}"><text decode class="{{classPrefix}}--required"> *</text></block></view><view class="{{classPrefix}}__description {{prefix}}-class-description"><view wx:if="{{ description }}" class="{{classPrefix}}__description-text">{{description}}</view><slot name="description"/></view></view><view class="{{classPrefix}}__note {{prefix}}-class-note"><text wx:if="{{ note }}">{{note}}</text><slot name="note"/></view><view class="{{_.cls(classPrefix + '__right', [align])}} {{prefix}}-class-right"><template wx:if="{{_arrow}}" is="icon" data="{{tClass: classPrefix + '__right-icon ' + prefix + '-class-right-icon', ..._arrow }}"/><block wx:else><template wx:if="{{_rightIcon}}" is="icon" data="{{tClass: classPrefix + '__right-icon ' + prefix + '-class-right-icon', ..._rightIcon }}"/><slot name="right-icon"/></block></view></view>
\ No newline at end of file
--
Gitblit v1.9.3