Skip to content

Commit

Permalink
chore: update dev docs (#2416)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu authored Jul 12, 2023
1 parent 43d0731 commit 9ead77f
Show file tree
Hide file tree
Showing 10 changed files with 166 additions and 728 deletions.
3 changes: 0 additions & 3 deletions packages/nutui-taro-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,5 @@
"typescript": "^4.9.3",
"vue-loader": "^17.0.0",
"webpack": "^5.69.0"
},
"resolutions": {
"@swc/core": "1.3.42"
}
}
62 changes: 62 additions & 0 deletions src/sites/doc/components/DocHeader.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<template>
<div class="doc-header doc-header-black">
<div class="header-logo">
<a class="logo-link" href="#" @click="toHome"></a>
</div>
</div>
</template>
<script setup lang="ts">
import { RefData } from '@/sites/assets/util/ref';
const toHome = () => {
RefData.getInstance().currentRoute.value = '/';
};
</script>

<style lang="scss">
.doc-header {
height: $doc-header-height;
line-height: $doc-header-height;
padding: 0 50px;
font-size: 20px;
}
.header {
&-logo {
position: relative;
display: inline-block;
width: 240px;
height: 64px;
.logo-link {
width: 120px;
height: 46px;
vertical-align: middle;
position: absolute;
top: 50%;
margin-top: -23px;
}
.logo-border {
width: 1px;
height: 26px;
position: absolute;
right: 0;
top: 50%;
margin-top: -13px;
}
}
}
// 颜色
.doc-header-black {
background: black;
color: $theme-black-word;
border-bottom: 1px solid $theme-black-box-border;
.header {
&-logo {
.logo-link {
background: url('../../assets/images/logo-header-red.png') no-repeat center/100%;
}
.logo-border {
background: $theme-black-border;
}
}
}
}
</style>
Loading

0 comments on commit 9ead77f

Please sign in to comment.