Skip to content

Commit

Permalink
feat(color-picker): 体验优化
Browse files Browse the repository at this point in the history
  • Loading branch information
novlan1 committed Oct 21, 2024
1 parent 78180b0 commit 6e2dc74
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/color-picker/_example/color-picker.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<multiple />
</t-demo>

<t-demo title="02 组件状态" desc="{{curFormat}} 模式">
<t-demo title="02 组件状态" desc="组件模式选择">
<format />
</t-demo>
</view>
7 changes: 7 additions & 0 deletions src/color-picker/_example/format/index.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
box-sizing: border-box;
position: relative;
overflow: hidden;

display: flex;
align-items: center;
}

.format-item.active {
border: 3rpx solid #0052d9;
}

.format-item.active::after {
Expand Down
2 changes: 2 additions & 0 deletions src/color-picker/color-picker.less
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
outline: none;
width: @color-picker-slider-thumb-size;
height: @color-picker-slider-thumb-size;

border-radius: @color-picker-border-radius-circle;
box-shadow: @color-picker-thumbs-shadow;
color: @text-color-brand;
box-sizing: border-box;

Expand Down

0 comments on commit 6e2dc74

Please sign in to comment.