riku
2025-04-27 f46786f11c5c08ead7501a82e5a71430ad69b782
miniprogram_npm/tdesign-miniprogram/cell/cell.wxml
@@ -1,3 +1,4 @@
<import src="../common/template/icon.wxml" />
<wxs src="../common/utils.wxs" module="_" />
<view
@@ -10,10 +11,10 @@
  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"
    <template
      wx:if="{{_leftIcon}}"
      is="icon"
      data="{{tClass: classPrefix + '__left-icon ' + prefix + '-class-left-icon', ..._leftIcon }}"
    />
    <slot name="left-icon" />
    <t-image
@@ -24,8 +25,8 @@
    />
    <slot name="image" />
  </view>
  <view class="{{classPrefix}}__title">
    <view class="{{classPrefix}}__title-text  {{prefix}}-class-title">
  <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}}">
@@ -45,13 +46,17 @@
  </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"
    <template
      wx:if="{{_arrow}}"
      is="icon"
      data="{{tClass: classPrefix + '__right-icon ' + prefix + '-class-right-icon', ..._arrow }}"
    />
    <block wx:else>
      <t-icon name="{{rightIcon}}" t-class="{{classPrefix}}__right-icon {{prefix}}-class-right-icon" />
      <template
        wx:if="{{_rightIcon}}"
        is="icon"
        data="{{tClass: classPrefix + '__right-icon ' + prefix + '-class-right-icon', ..._rightIcon }}"
      />
      <slot name="right-icon" />
    </block>
  </view>