forked from opentiny/tiny-vue
docs(anchor): [anchor] optimized the document (#1149)
This commit is contained in:
parent
07b2d70110
commit
fea7e62fed
|
@ -1,6 +1,8 @@
|
|||
<template>
|
||||
<tiny-switch v-model="type" true-value="line" false-value="dot"> </tiny-switch>
|
||||
当前类型:{{ type }}
|
||||
<div class="demo-top mb10">
|
||||
<tiny-switch v-model="type" true-value="line" false-value="dot"> </tiny-switch>
|
||||
<span>当前类型:{{ type }}</span>
|
||||
</div>
|
||||
<tiny-anchor :links="links" :type="type"></tiny-anchor>
|
||||
</template>
|
||||
|
||||
|
@ -45,3 +47,10 @@ const links = ref([
|
|||
|
||||
const type = ref('dot')
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.demo-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<template>
|
||||
<div>
|
||||
<tiny-switch v-model="type" true-value="line" false-value="dot"> </tiny-switch>
|
||||
当前类型:{{ type }}
|
||||
<div class="demo-top mb10">
|
||||
<tiny-switch v-model="type" true-value="line" false-value="dot"> </tiny-switch>
|
||||
<span>当前类型:{{ type }}</span>
|
||||
</div>
|
||||
<tiny-anchor :links="links" :type="type"></tiny-anchor>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -55,3 +57,10 @@ export default {
|
|||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.demo-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<template>
|
||||
<div class="wrap">
|
||||
<tiny-switch v-model="isAffix"></tiny-switch>
|
||||
<span>{{ isAffix ? '关闭固定模式' : '打开固定模式' }}</span>
|
||||
<div class="demo-top mb10">
|
||||
<tiny-switch v-model="isAffix"></tiny-switch>
|
||||
<span>{{ isAffix ? '关闭固定模式' : '打开固定模式' }}</span>
|
||||
</div>
|
||||
<tiny-anchor :links="links" :is-affix="isAffix"></tiny-anchor>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -51,4 +53,8 @@ const links = ref([
|
|||
.wrap {
|
||||
min-height: 180px;
|
||||
}
|
||||
.demo-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<template>
|
||||
<div class="wrap">
|
||||
<tiny-switch v-model="isAffix"></tiny-switch>
|
||||
<span>{{ isAffix ? '关闭固定模式' : '打开固定模式' }}</span>
|
||||
<div class="demo-top mb10">
|
||||
<tiny-switch v-model="isAffix"></tiny-switch>
|
||||
<span>{{ isAffix ? '关闭固定模式' : '打开固定模式' }}</span>
|
||||
</div>
|
||||
<tiny-anchor :links="links" :is-affix="isAffix"></tiny-anchor>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -60,4 +62,8 @@ export default {
|
|||
.wrap {
|
||||
min-height: 180px;
|
||||
}
|
||||
.demo-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue