This commit is contained in:
dap
2025-02-04 18:40:47 +08:00
8 changed files with 86 additions and 74 deletions

View File

@@ -329,10 +329,14 @@ function autofocus() {
v-bind="createComponentProps(slotProps)"
:disabled="shouldDisabled"
>
<template v-for="name in renderContentKey" :key="name" #[name]>
<template
v-for="name in renderContentKey"
:key="name"
#[name]="renderSlotProps"
>
<VbenRenderContent
:content="customContentRender[name]"
v-bind="slotProps"
v-bind="{ ...renderSlotProps, $formContext: slotProps }"
/>
</template>
<!-- <slot></slot> -->

View File

@@ -13,15 +13,25 @@
}
/* * 修复按钮添加图标时的位置问题 */
svg {
> svg {
display: inline-block;
}
svg + span {
> svg + span {
margin-inline-start: 6px;
}
}
.ant-tag {
> svg {
display: inline-block;
}
> svg + span {
margin-inline-start: 4px;
}
}
.ant-message-notice-content,
.ant-notification-notice {
@apply dark:border-border/60 dark:border;