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

60 lines
1.4 KiB
Vue
Raw Normal View History

2017-11-03 18:06:00 +08:00
<script>
2019-01-12 11:33:27 +08:00
import Basic from './basic.md';
import ArrowPointAtCenter from './arrow-point-at-center.md';
import AutoAdjustOverflow from './auto-adjust-overflow.md';
import Placement from './placement.md';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
2018-03-22 18:19:12 +08:00
const md = {
cn: `# Tooltip
简单的文字提示气泡框
## 何时使用
鼠标移入则显示提示移出消失气泡浮层不承载复杂文本和操作
可用来代替系统默认的 'title' 提示提供一个'按钮/文字/操作'的文案解释
## 代码演示`,
us: `# Tooltip
A simple text popup tip.
# When To Use
- The tip is shown on mouse enter, and is hidden on mouse leave. The Tooltip doesn't support complex text or operations.
- To provide an explanation of a 'button/text/operation'. It's often used instead of the html 'title' attribute.
## Examples
`,
2019-01-12 11:33:27 +08:00
};
2018-01-11 18:53:51 +08:00
export default {
2018-03-20 21:48:01 +08:00
category: 'Components',
subtitle: '文字提示',
type: 'Data Display',
title: 'Tooltip',
2019-09-28 20:45:07 +08:00
render() {
2018-03-22 18:19:12 +08:00
return (
<div>
2019-09-28 20:45:07 +08:00
<md cn={md.cn} us={md.us} />
<br />
2018-03-22 18:19:12 +08:00
<Basic />
2019-09-28 20:45:07 +08:00
<br />
2018-03-22 18:19:12 +08:00
<Placement />
2019-09-28 20:45:07 +08:00
<br />
2018-03-22 18:19:12 +08:00
<ArrowPointAtCenter />
2019-09-28 20:45:07 +08:00
<br />
2018-03-22 18:19:12 +08:00
<AutoAdjustOverflow />
2019-09-28 20:45:07 +08:00
<br />
2018-03-22 18:19:12 +08:00
<api>
2019-09-28 20:45:07 +08:00
<template slot="cn">
<CN />
2018-03-22 18:19:12 +08:00
</template>
2019-09-28 20:45:07 +08:00
<US />
2018-03-22 18:19:12 +08:00
</api>
</div>
2019-01-12 11:33:27 +08:00
);
2018-01-11 18:53:51 +08:00
},
2019-01-12 11:33:27 +08:00
};
2017-11-03 18:06:00 +08:00
</script>