-
Notifications
You must be signed in to change notification settings - Fork 12
fix(entities-plugins): freeform - default card appearance for record array #2473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
eae673e
to
e17fd1e
Compare
v-bind="props" | ||
appearance="card" | ||
/> | ||
</FieldRenderer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No longer need overriding for record array
Preview components from this PR in consuming applicationIn consuming application project install preview versions of shared packages generated by this PR:
|
@@ -44,15 +32,11 @@ | |||
<CalloutsForm /> | |||
|
|||
<ObjectField | |||
appearance="card" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The appearance
is not working before, once I fixed it, it seems a bit weird, so let's remove it
@@ -164,6 +166,10 @@ const realResetLabelPath = computed(() => { | |||
|
|||
const fieldAttrs = useFieldAttrs(field.path!, toRef(() => ({ required, ...props, resetLabelPath: realResetLabelPath.value }))) | |||
const realAdded = computed(() => !fieldAttrs.value.required ? added.value ?? defaultAdded : true) | |||
const wrapper = computed(() => { | |||
if (appearance === 'card') return 'KCard' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (appearance === 'card') return 'KCard' | |
if (appearance === 'card') return KCard |
And we should explicitly import components we are using here.
Summary
In this PR:
appearance
prop ofObjectField
Before
After