feat: 为 PSelect 组件添加动态边框颜色样式
All checks were successful
/ test (push) Successful in 23s
/ surge (push) Successful in 16s

This commit is contained in:
严浩
2024-12-24 12:14:34 +08:00
parent 28ff670dc5
commit b8280cecdd

View File

@ -70,6 +70,10 @@ const SchemaComponent = defineComponent(
return () => {
return (
<PrimevueSelect
style={{
'border-color':
!formkitContext.state.invalid && valueSlot.value !== undefined ? 'var(--p-yellow-200)' : undefined,
}}
ref={primevueSelectInstance}
labelId={formkitContext.id}
fluid