feat: publicize doc implemetation
This commit is contained in:
55
one/docs/demo/link/default.vue
Normal file
55
one/docs/demo/link/default.vue
Normal file
@@ -0,0 +1,55 @@
|
||||
<template>
|
||||
<article>
|
||||
<section>
|
||||
<h4>Router link</h4>
|
||||
<div>
|
||||
<veui-link :to="{ name: 'components-icon' }">
|
||||
Previous
|
||||
</veui-link>
|
||||
</div>
|
||||
</section>
|
||||
<section>
|
||||
<h4>Native link (<code>ui="strong s"</code>)</h4>
|
||||
<div>
|
||||
<veui-link
|
||||
ui="strong s"
|
||||
native
|
||||
to="./pagination"
|
||||
>
|
||||
Next
|
||||
</veui-link>
|
||||
</div>
|
||||
</section>
|
||||
<section>
|
||||
<h4>External link</h4>
|
||||
<div>
|
||||
<veui-link
|
||||
to="https://www.baidu.com/"
|
||||
target="_blank"
|
||||
>
|
||||
Baidu
|
||||
</veui-link>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { Link } from 'veui'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
'veui-link': Link
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped docs>
|
||||
h4 {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
section:not(:last-child) {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
</style>
|
Reference in New Issue
Block a user