style: breadcrumb

feat-css-var
tangjinzhou 2022-02-25 17:33:30 +08:00
parent 6c167c26af
commit c5e99040b3
3 changed files with 5 additions and 2 deletions

View File

@ -66,9 +66,9 @@ export default defineComponent({
return path;
};
const addChildPath = (paths: string[], childPath = '', params: unknown) => {
const addChildPath = (paths: string[], childPath: string, params: unknown) => {
const originalPaths = [...paths];
const path = getPath(childPath, params);
const path = getPath(childPath || '', params);
if (path) {
originalPaths.push(path);
}

View File

@ -16,6 +16,7 @@
a {
color: @breadcrumb-link-color;
transition: color 0.3s;
&:hover {
color: @breadcrumb-link-color-hover;
}
@ -23,6 +24,7 @@
& > span:last-child {
color: @breadcrumb-last-item-color;
a {
color: @breadcrumb-last-item-color;
}

View File

@ -1,5 +1,6 @@
import '../../style/index.less';
import './index.less';
// style dependencies
import '../../menu/style';
import '../../dropdown/style';