Commit 507bd5ee31cd9d2edcf7180a982999b735a5f96a

Authored by 史婷婷
1 parent c9392bb6

feat: 日期组件-关门按钮改成主题色

@@ -55,6 +55,11 @@ $uni-border-radius-base: 3px; @@ -55,6 +55,11 @@ $uni-border-radius-base: 3px;
55 $uni-border-radius-lg: 6px; 55 $uni-border-radius-lg: 6px;
56 $uni-border-radius-circle: 50%; 56 $uni-border-radius-circle: 50%;
57 57
  58 +:root {
  59 + --theme-primary: #{$theme-primary};
  60 + --uni-primary: #{$uni-primary};
  61 +}
  62 +
58 /* 水平间距 */ 63 /* 水平间距 */
59 $uni-spacing-row-sm: 5px; 64 $uni-spacing-row-sm: 5px;
60 $uni-spacing-row-base: 10px; 65 $uni-spacing-row-base: 10px;
@@ -81,4 +86,4 @@ $uni-headings: ( @@ -81,4 +86,4 @@ $uni-headings: (
81 'h2': ( 86 'h2': (
82 size: 18px 87 size: 18px
83 ) 88 )
84 -);  
  89 +);
@@ -20,9 +20,9 @@ @@ -20,9 +20,9 @@
20 <view class="uni-date__x-input text-center">{{ displayRangeValue.endDate || endPlaceholderText }}</view> 20 <view class="uni-date__x-input text-center">{{ displayRangeValue.endDate || endPlaceholderText }}</view>
21 </view> 21 </view>
22 22
23 - <view v-if="showClearIcon" class="uni-date__icon-clear" @click.stop="clear">  
24 - <uni-icons type="clear" color="#c0c4cc" size="22"></uni-icons>  
25 - </view> 23 + <view v-if="showClearIcon" class="uni-date__icon-clear" @click.stop="clear">
  24 + <uni-icons type="clear" color="var(--theme-primary)" size="22"></uni-icons>
  25 + </view>
26 </view> 26 </view>
27 </slot> 27 </slot>
28 </view> 28 </view>
@@ -1024,3 +1024,6 @@ @@ -1024,3 +1024,6 @@
1024 border-bottom-color: #fff; 1024 border-bottom-color: #fff;
1025 } 1025 }
1026 </style> 1026 </style>
  1027 + .uni-date__icon-clear .uni-icons {
  1028 + color: $theme-primary !important;
  1029 + }