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

32 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-12-01 11:56:54 +00:00
<import-sjs
from="./index.sjs"
name="divider"
></import-sjs>
<view
a:if="{{direction === 'horizontal'}}"
2024-11-10 07:01:22 +00:00
class="ant-divider ant-divider-horizontal {{className || ''}}"
style="{{style || ''}}"
>
2024-12-01 11:56:54 +00:00
<view
class="ant-divider-horizontal-left"
style="flex: {{divider.getLineWidthFlex(textPosition, text)[0]}};{{lineHeight ? 'border-bottom-width:' + lineHeight + 'px;' : ''}}{{lineType ? 'border-bottom-style:' + lineType + ';' : ''}}{{lineColor ? 'border-bottom-color:' + lineColor + ';' : ''}}"
></view>
2024-11-10 07:01:22 +00:00
<slot name="text">
2024-12-01 11:56:54 +00:00
<view
a:if="{{text}}"
class="ant-divider-horizontal-text {{textClassName || ''}}"
2024-11-10 07:01:22 +00:00
style="{{textStyle || ''}}"
2024-12-01 11:56:54 +00:00
>
{{text}}
</view>
2024-11-10 07:01:22 +00:00
</slot>
2024-12-01 11:56:54 +00:00
<view
class="ant-divider-horizontal-right"
style="flex: {{divider.getLineWidthFlex(textPosition, text)[1]}};{{lineHeight ? 'border-bottom-width:' + lineHeight + 'px;' : ''}}{{lineType ? 'border-bottom-style:' + lineType + ';' : ''}}{{lineColor ? 'border-bottom-color:' + lineColor + ';' : ''}}"
></view>
2024-11-10 07:01:22 +00:00
</view>
2024-12-01 11:56:54 +00:00
<view
a:if="{{direction === 'vertical'}}"
class="ant-divider ant-divider-vertical {{className || ''}}"
style="{{style || ''}};{{lineWidth ? 'border-right-width:' + lineWidth + 'px;' : ''}}{{lineType ? 'border-right-style:' + lineType + ';' : ''}}{{lineColor ? 'border-right-color:' + lineColor + ';' : ''}}"
></view>