ant-design-vue/components/anchor/demo/index.vue

54 lines
1022 B
Vue
Raw Normal View History

2018-06-04 09:09:01 +00:00
<script>
2019-01-12 03:33:27 +00:00
import Basic from './basic';
import Static from './static';
import OnClick from './onClick';
2018-06-04 09:09:01 +00:00
2019-01-12 03:33:27 +00:00
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
2018-06-04 09:09:01 +00:00
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
`,
2019-01-12 03:33:27 +00:00
};
2018-06-04 09:09:01 +00:00
export default {
category: 'Components',
subtitle: '锚点',
cols: 2,
type: 'Other',
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/>
<OnClick />
2018-06-04 09:09:01 +00:00
<api>
<CN slot='cn' />
<US/>
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2018-06-04 09:09:01 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-06-04 09:09:01 +00:00
</script>
<style>
#components-anchor-demo .ant-affix {
z-index: 11;
}
</style>