feat: add anchor link for all headings

This commit is contained in:
Justineo
2022-05-26 19:16:47 +08:00
parent 9c98bc65e2
commit 0941d4e2f3
12 changed files with 347 additions and 17 deletions

View File

@@ -3,7 +3,7 @@
class="content post"
:class="{ 'filter-version': compareValid }"
>
<h1 data-markdown>
<h1 data-md>
升级日志
</h1>
<veui-form
@@ -78,7 +78,7 @@
v-for="{ version, codeName, date, changeset } of pagedChangelog"
:key="version"
class="version-item"
data-markdown
data-md
>
<h2
:id="getHash(version)"

View File

@@ -0,0 +1,57 @@
<template>
<article>
<section>
<strong :class="{ tabular }">
{{ value }}
</strong>
<veui-checkbox v-model="tabular">
Tabular numbers
</veui-checkbox>
</section>
<veui-slider
v-model="value"
:step="1"
:min="19000101"
:max="21001231"
/>
</article>
</template>
<script>
import { Checkbox, Slider } from 'veui'
export default {
components: {
'veui-checkbox': Checkbox,
'veui-slider': Slider
},
data () {
return {
tabular: true,
value: 20170320
}
}
}
</script>
<style scoped>
section {
display: flex;
align-items: center;
gap: 24px;
}
strong {
font-family: "Baidu Number", sans-serif;
font-size: 32px;
}
.tabular {
font-variant-numeric: tabular-nums;
}
.veui-slider {
width: 50%;
margin-top: 24px;
}
</style>