mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-11-03 12:57:11 +08:00
Merge branch '1.1.x' into dev
This commit is contained in:
@@ -95,7 +95,10 @@
|
||||
_route.forEach((element) => {
|
||||
// This is demo, modify nodes as needed
|
||||
const icon = element?.meta?.icon
|
||||
? () => h(compile(`<icon-${element?.meta?.icon}/>`))
|
||||
? () =>
|
||||
h(
|
||||
compile(`<svg-icon icon-class="${element?.meta?.icon}"/>`)
|
||||
)
|
||||
: null;
|
||||
const node =
|
||||
element?.children && element?.children.length !== 0 ? (
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
const iconName = computed(() => `#icon-${props.iconClass}`);
|
||||
const svgClass = computed(() => {
|
||||
if (props.className) {
|
||||
return `svg-icon ${props.className}`;
|
||||
return `arco-icon ${props.className}`;
|
||||
}
|
||||
return 'svg-icon';
|
||||
return 'arco-icon';
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -37,19 +37,4 @@
|
||||
};
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
.sub-el-icon,
|
||||
.nav-icon {
|
||||
display: inline-block;
|
||||
font-size: 15px;
|
||||
margin-right: 12px;
|
||||
position: relative;
|
||||
}
|
||||
.svg-icon {
|
||||
width: 1em;
|
||||
height: 1em;
|
||||
position: relative;
|
||||
fill: currentColor;
|
||||
vertical-align: -2px;
|
||||
}
|
||||
</style>
|
||||
<style scoped lang="less"></style>
|
||||
|
||||
Reference in New Issue
Block a user