Showing
2 changed files
with
12 additions
and
4 deletions
| ... | ... | @@ -55,6 +55,11 @@ $uni-border-radius-base: 3px; |
| 55 | 55 | $uni-border-radius-lg: 6px; |
| 56 | 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 | 64 | $uni-spacing-row-sm: 5px; |
| 60 | 65 | $uni-spacing-row-base: 10px; |
| ... | ... | @@ -81,4 +86,4 @@ $uni-headings: ( |
| 81 | 86 | 'h2': ( |
| 82 | 87 | size: 18px |
| 83 | 88 | ) |
| 84 | -); | |
| \ No newline at end of file | ||
| 89 | +); | ... | ... |
| ... | ... | @@ -20,9 +20,9 @@ |
| 20 | 20 | <view class="uni-date__x-input text-center">{{ displayRangeValue.endDate || endPlaceholderText }}</view> |
| 21 | 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 | 26 | </view> |
| 27 | 27 | </slot> |
| 28 | 28 | </view> |
| ... | ... | @@ -1024,3 +1024,6 @@ |
| 1024 | 1024 | border-bottom-color: #fff; |
| 1025 | 1025 | } |
| 1026 | 1026 | </style> |
| 1027 | + .uni-date__icon-clear .uni-icons { | |
| 1028 | + color: $theme-primary !important; | |
| 1029 | + } | ... | ... |