feat:头部和主容器改造
This commit is contained in:
parent
47ab984f4d
commit
d5e00f2098
@ -39,7 +39,7 @@ const router = useRouter();
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
handleWidth();
|
handleWidth();
|
||||||
});
|
});
|
||||||
const emit = defineEmits(['changeTitle']);
|
// const emit = defineEmits(['changeTitle']);
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
titles: {
|
titles: {
|
||||||
type: Array,
|
type: Array,
|
||||||
@ -109,7 +109,7 @@ function handleTitleBtn(t = -1) {
|
|||||||
}
|
}
|
||||||
function handleTitleClick(val) {
|
function handleTitleClick(val) {
|
||||||
activeTitle.value = val;
|
activeTitle.value = val;
|
||||||
emit('changeTitle', val);
|
// emit('changeTitle', val);
|
||||||
router.push({ name: val });
|
router.push({ name: val });
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<section class="_contaioner">
|
<section class="_contaioner">
|
||||||
<custom-scroll-title class="header_titles" @change-title="handleChangeTitle" />
|
<custom-scroll-title class="header_titles" />
|
||||||
<section class="_content">
|
<section class="_content">
|
||||||
<router-view />
|
<router-view />
|
||||||
</section>
|
</section>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user