feat: 为 PSelect 组件添加动态边框颜色样式
This commit is contained in:
@ -70,6 +70,10 @@ const SchemaComponent = defineComponent(
|
|||||||
return () => {
|
return () => {
|
||||||
return (
|
return (
|
||||||
<PrimevueSelect
|
<PrimevueSelect
|
||||||
|
style={{
|
||||||
|
'border-color':
|
||||||
|
!formkitContext.state.invalid && valueSlot.value !== undefined ? 'var(--p-yellow-200)' : undefined,
|
||||||
|
}}
|
||||||
ref={primevueSelectInstance}
|
ref={primevueSelectInstance}
|
||||||
labelId={formkitContext.id}
|
labelId={formkitContext.id}
|
||||||
fluid
|
fluid
|
||||||
|
Reference in New Issue
Block a user