Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0e0661fe
authored
Feb 27, 2025
by
Netfan
Committed by
GitHub
Feb 27, 2025
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: breadcrumb style is affected by the globally-imported antd styles (#5627)
* 修复全局引入Antd时,面包屑的样式会受到影响的问题
1 parent
86ce65e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/breadcrumb-view.vue
packages/@core/ui-kit/shadcn-ui/src/components/breadcrumb/breadcrumb-view.vue
View file @
0e0661f
...
...
@@ -17,6 +17,23 @@ const emit = defineEmits<{ select: [string] }>();
const
forward
=
useForwardPropsEmits
(
props
,
emit
);
</
script
>
<
template
>
<Breadcrumb
v-if=
"styleType === 'normal'"
v-bind=
"forward"
/>
<BreadcrumbBackground
v-if=
"styleType === 'background'"
v-bind=
"forward"
/>
<Breadcrumb
v-if=
"styleType === 'normal'"
v-bind=
"forward"
class=
"vben-breadcrumb"
/>
<BreadcrumbBackground
v-if=
"styleType === 'background'"
v-bind=
"forward"
class=
"vben-breadcrumb"
/>
</
template
>
<
style
lang=
"scss"
scoped
>
/** 修复全局引入Antd时,ol和ul的默认样式会被修改的问题 */
.vben-breadcrumb
{
:deep(ol),
:deep(ul)
{
margin-bottom
:
0
;
}
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment