feat: 登录的选项框的颜色

This commit is contained in:
2026-04-19 10:38:45 +08:00
parent d49bf738f8
commit 1408a97027
2 changed files with 2 additions and 6 deletions

View File

@@ -4,8 +4,8 @@
class="checkbox-icon"
:type="isChecked"
:checked="isChecked"
:color="iconColor"
size="24"
color="opacity"
/>
<slot></slot>
</view>
@@ -28,11 +28,6 @@ const isChecked = computed(() => {
return props.modelValue ? "checkbox-filled" : "circle";
});
// 计算图标颜色
const iconColor = computed(() => {
return props.modelValue ? "#1890FF" : "#00A6FF";
});
// 切换选中状态
const onChange = () => {
emit("update:modelValue", !props.modelValue);

View File

@@ -5,5 +5,6 @@
.checkbox-icon {
margin-right: 6px;
color: $theme-color-500;
}
}