fix: form valid-error style in naive (#5336)

This commit is contained in:
Netfan 2025-01-10 01:15:30 +08:00 committed by GitHub
parent 516d0b8dc8
commit c979c23e6b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import { registerAccessDirective } from '@vben/access';
import { preferences } from '@vben/preferences';
import { initStores } from '@vben/stores';
import '@vben/styles';
import '@vben/styles/naive';
import { useTitle } from '@vueuse/core';

View File

@ -21,6 +21,9 @@
"./ele": {
"default": "./src/ele/index.css"
},
"./naive": {
"default": "./src/naive/index.css"
},
"./global": {
"default": "./src/global/index.scss"
}

View File

@ -0,0 +1,20 @@
.form-valid-error {
.n-base-selection__state-border,
.n-input__state-border,
.n-radio-group__splitor {
border: var(--n-border-error);
}
.n-radio-group .n-radio-button,
.n-radio-group .n-radio-group__splitor {
--n-button-border-color: rgb(255 56 96);
}
.n-radio__dot {
--n-box-shadow: inset 0 0 0 1px rgb(255 56 96);
}
.n-checkbox-box__border {
--n-border: 1px solid rgb(255 56 96);
}
}