Skip to content

Commit

Permalink
style: 表单项宽度默认100%
Browse files Browse the repository at this point in the history
  • Loading branch information
kailong321200875 committed Nov 16, 2023
1 parent 31ea31d commit 416de2b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/components/Form/src/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,11 @@ export default defineComponent({
ref={(el: any) => setComponentRefMap(el, item.field)}
{...(autoSetPlaceholder && setTextPlaceholder(item))}
{...setComponentProps(item)}
style={item.componentProps?.style || {}}
style={
item.componentProps?.style || {
width: '100%'
}
}
>
{{ ...slotsMap }}
</Com>
Expand Down

0 comments on commit 416de2b

Please sign in to comment.