File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
packages/pro-components/chat/attachments Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 9191 // 文件项样式
9292 &__file {
9393 border-radius : @radius-extraLarge ;
94- margin-top : @attachments-file-margin-tiny ;
9594 display : block ;
9695 position : relative ;
9796 background-color : @attachments-background-color ;
9897
98+ // 仅当有删除按钮时,增加上边距
99+ &--removable {
100+ margin-top : @attachments-file-margin-tiny ;
101+ }
102+
99103 // 删除按钮样式
100104 .@{attachments} __remove {
101105 background-color : @text-color-primary ;
Original file line number Diff line number Diff line change 1010 <block wx:for="{{files}}" wx:for-item="item" wx:for-index="index" wx:key="index">
1111 <view class="{{classPrefix}}__files" bindtap="onFileWrapTap" data-index="{{index}}">
1212 <block wx:if="{{item.fileType==='image'}}">
13- <view class="file-image {{classPrefix}}__file">
13+ <view class="file-image {{classPrefix}}__file {{removable ? classPrefix + '__file--removable' : ''}} ">
1414 <block wx:if="{{item.status==='pending' || item.status==='fail' || item.status==='error'}}">
1515 <view class="{{item.status}} {{classPrefix}}__file--{{item.status}}">
1616 <t-loading theme="circular" size="48rpx" />
2020 <image
2121 class="image"
2222 src="{{item.url}}"
23- mode="{{ _this.getImageMode(item)}}"
23+ mode="{{_this.getImageMode(item)}}"
2424 lazy-load="false"
2525 style="{{inChat ? _this.imageStyle(item) : ''}}"
2626 ></image>
3131 </view>
3232 </block>
3333 <block wx:else>
34- <view class="file {{classPrefix}}__file">
34+ <view class="file {{classPrefix}}__file {{removable ? classPrefix + '__file--removable' : ''}} ">
3535 <view class="image">
3636 <block wx:if="{{item.status==='pending'}}">
3737 <view class="loading {{classPrefix}}__file--pending">
You can’t perform that action at this time.
0 commit comments