style: breadcrumb
parent
6c167c26af
commit
c5e99040b3
|
@ -66,9 +66,9 @@ export default defineComponent({
|
||||||
return path;
|
return path;
|
||||||
};
|
};
|
||||||
|
|
||||||
const addChildPath = (paths: string[], childPath = '', params: unknown) => {
|
const addChildPath = (paths: string[], childPath: string, params: unknown) => {
|
||||||
const originalPaths = [...paths];
|
const originalPaths = [...paths];
|
||||||
const path = getPath(childPath, params);
|
const path = getPath(childPath || '', params);
|
||||||
if (path) {
|
if (path) {
|
||||||
originalPaths.push(path);
|
originalPaths.push(path);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
a {
|
a {
|
||||||
color: @breadcrumb-link-color;
|
color: @breadcrumb-link-color;
|
||||||
transition: color 0.3s;
|
transition: color 0.3s;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
color: @breadcrumb-link-color-hover;
|
color: @breadcrumb-link-color-hover;
|
||||||
}
|
}
|
||||||
|
@ -23,6 +24,7 @@
|
||||||
|
|
||||||
& > span:last-child {
|
& > span:last-child {
|
||||||
color: @breadcrumb-last-item-color;
|
color: @breadcrumb-last-item-color;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: @breadcrumb-last-item-color;
|
color: @breadcrumb-last-item-color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import '../../style/index.less';
|
import '../../style/index.less';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
|
|
||||||
|
// style dependencies
|
||||||
import '../../menu/style';
|
import '../../menu/style';
|
||||||
import '../../dropdown/style';
|
import '../../dropdown/style';
|
Loading…
Reference in New Issue