2018-06-04 09:09:01 +00:00
|
|
|
|
<script>
|
|
|
|
|
import Basic from './basic'
|
|
|
|
|
import Static from './static'
|
2018-11-28 02:35:37 +00:00
|
|
|
|
import OnClick from './onClick'
|
2018-06-04 09:09:01 +00:00
|
|
|
|
|
|
|
|
|
import CN from '../index.zh-CN.md'
|
|
|
|
|
import US from '../index.en-US.md'
|
|
|
|
|
const md = {
|
|
|
|
|
cn: `# Anchor 锚点
|
|
|
|
|
用于跳转到页面指定位置。
|
|
|
|
|
|
|
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
|
|
需要展现当前页面上可供跳转的锚点链接,以及快速在锚点之间跳转。
|
|
|
|
|
## 代码演示`,
|
|
|
|
|
us: `# Anchor
|
|
|
|
|
|
|
|
|
|
Hyperlinks to scroll on one page.
|
|
|
|
|
|
|
|
|
|
## When To Use
|
|
|
|
|
|
|
|
|
|
For displaying anchor hyperlinks on page and jumping between them.
|
|
|
|
|
## Examples
|
|
|
|
|
`,
|
|
|
|
|
}
|
|
|
|
|
export default {
|
|
|
|
|
category: 'Components',
|
|
|
|
|
subtitle: '锚点',
|
|
|
|
|
cols: 2,
|
|
|
|
|
type: 'Other',
|
2018-11-28 13:58:42 +00:00
|
|
|
|
zhType: '其他',
|
2018-06-04 09:09:01 +00:00
|
|
|
|
title: 'Anchor',
|
|
|
|
|
render () {
|
|
|
|
|
return (
|
|
|
|
|
<div id='components-anchor-demo'>
|
|
|
|
|
<md cn={md.cn} us={md.us}/>
|
|
|
|
|
<Basic/>
|
|
|
|
|
<Static/>
|
2018-11-28 02:35:37 +00:00
|
|
|
|
<OnClick />
|
2018-06-04 09:09:01 +00:00
|
|
|
|
<api>
|
|
|
|
|
<CN slot='cn' />
|
|
|
|
|
<US/>
|
|
|
|
|
</api>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
<style>
|
|
|
|
|
#components-anchor-demo .ant-affix {
|
|
|
|
|
z-index: 11;
|
|
|
|
|
}
|
|
|
|
|
</style>
|