Skip to content

Commit

Permalink
fix(divider): css standard
Browse files Browse the repository at this point in the history
  • Loading branch information
jin0209 committed Dec 16, 2021
1 parent 35d473a commit 4cad692
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/divider/divider.less
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
border-style: dashed;
}

&--content {
&__content {
color: rgba(0, 0, 0, .4);
}

Expand Down
6 changes: 3 additions & 3 deletions src/divider/divider.wxml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<view class="{{layout==='vertical'? 't-divider--vertical-center' : ''}}">
<view class="{{layout==='vertical'? classPrefix + '--vertical-center' : ''}}">
<view
class="t-class {{classPrefix}} {{classPrefix}}--{{layout}} {{classPrefix}}--{{align}} {{dashed? 't-divider--dashed' : ''}} "
class="t-class {{classPrefix}} {{classPrefix}}--{{layout}} {{classPrefix}}--{{align}} {{dashed? classPrefix + '--dashed' : ''}} "
style="{{ lineColor ? 'border-color: ' + lineColor + ';' : '' }}"
>
<view class="t-class-content t-divider--content">
<view class="t-class-content {{classPrefix}}__content">
<view wx:if="{{content}}"> {{content}} </view>
<slot wx:else name="content" />
</view>
Expand Down

0 comments on commit 4cad692

Please sign in to comment.