jiaqingjiayi-xiaochengxu/甲情_甲意/miniprogram/node_modules/antd-mini/less/NoticeBar/index.axml

47 lines
1.2 KiB
Plaintext
Raw Normal View History

2024-12-01 11:56:54 +00:00
<view
2024-11-10 07:01:22 +00:00
a:if="{{show}}"
2024-12-01 11:56:54 +00:00
class="ant-notice-bar {{className || ''}} {{type ? 'ant-notice-bar-' + type : ''}}"
2024-11-10 07:01:22 +00:00
style="{{style}}"
>
<slot name="icon">
2024-12-01 11:56:54 +00:00
<view class="ant-notice-bar-icon">
<image-icon
a:if="{{icon}}"
image="{{icon}}"
className="ant-notice-bar-icon-image"
></image-icon>
<icon
a:elif="{{type === 'error'}}"
type="InformationCircleOutline"
></icon>
<icon
a:else
type="SoundOutline"
></icon>
2024-11-10 07:01:22 +00:00
</view>
</slot>
2024-12-01 11:56:54 +00:00
<view class="ant-notice-bar-content ant-notice-bar-content{{$id ? '-' + $id : ''}}">
2024-11-10 07:01:22 +00:00
<view
2024-12-01 11:56:54 +00:00
class="ant-notice-bar-marquee ant-notice-bar-marquee{{$id ? '-' + $id : ''}}"
2024-11-10 07:01:22 +00:00
style="{{marqueeStyle}} display: {{enableMarquee ? 'inline-block' : 'block'}}"
2024-12-01 11:56:54 +00:00
onTransitionEnd="onTransitionEnd"
>
<slot></slot>
2024-11-10 07:01:22 +00:00
</view>
</view>
<view class="ant-notice-bar-operation">
2024-12-01 11:56:54 +00:00
<slot name="extra"></slot>
2024-11-10 07:01:22 +00:00
<icon
2024-12-01 11:56:54 +00:00
a:if="{{mode === 'link'}}"
2024-11-10 07:01:22 +00:00
className="ant-notice-bar-operation-icon"
type="RightOutline"
onTap="onTap"
2024-12-01 11:56:54 +00:00
></icon>
2024-11-10 07:01:22 +00:00
<icon
2024-12-01 11:56:54 +00:00
a:if="{{mode === 'closeable'}}"
2024-11-10 07:01:22 +00:00
className="ant-notice-bar-operation-icon"
type="CloseOutline"
2024-12-01 11:56:54 +00:00
onTap="onTap"
></icon>
2024-11-10 07:01:22 +00:00
</view>
2024-12-01 11:56:54 +00:00
</view>