提交 7d256714 编写于 作者: Y yangxiaolu3

feat: 底部固定

上级 20a1d307
......@@ -19,6 +19,6 @@ export default defineComponent({
width: 100%;
display: flex;
flex-direction: column;
// padding-top: $doc-header-height;
padding-top: $doc-header-height;
}
</style>
......@@ -86,7 +86,7 @@ export default defineComponent({
<style lang="scss">
.doc {
&-header {
// position: fixed;
position: fixed;
z-index: 2;
top: 0;
left: 0;
......
......@@ -34,7 +34,7 @@ export default defineComponent({
initSiteLang();
const excludeTaro = ['/intro', '/start', '/theme', '/joinus', '/starttaro', '/contributing'];
const state = reactive({
fixed: false, // 是否吸顶
fixed: true, // 是否吸顶
hidden: false, // 是否隐藏
// 组件名称
componentName: {
......@@ -111,7 +111,7 @@ export default defineComponent({
componentTitle();
watchDemoUrl(route);
data.curKey = isTaro(route) ? 'taro' : 'vue';
document.addEventListener('scroll', scrollTitle);
// document.addEventListener('scroll', scrollTitle);
});
const scrollTitle = () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册