ant-design-vue/components/time-picker/demo/index.vue

57 lines
1.3 KiB
Vue
Raw Normal View History

2018-03-09 02:19:00 +00:00
<script>
2019-01-12 03:33:27 +00:00
import Hours from './12hours';
import Addon from './addon';
import Basic from './basic';
import Disabled from './disabled';
import HideColumn from './hide-column';
import IntervalOptions from './interval-options';
import Size from './size';
import Value from './value';
import Suffix from './suffix';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
2018-03-09 02:19:00 +00:00
const md = {
cn: `# TimePicker 时间选择框
输入或选择时间的控件
## 何时使用
当用户需要输入一个时间可以点击标准输入框弹出时间面板进行选择
## 代码演示`,
us: `# TimePicker
To select/input a time.
## When To Use
2018-03-20 13:48:01 +00:00
By clicking the input box, you can select a time from a popup panel.
## Examples `,
2019-01-12 03:33:27 +00:00
};
2018-03-09 02:19:00 +00:00
export default {
category: 'Components',
subtitle: '时间选择框',
type: 'Data Entry',
title: 'TimePicker',
2019-09-28 12:45:07 +00:00
render() {
2018-03-09 02:19:00 +00:00
return (
2019-09-28 12:45:07 +00:00
<div id="components-timepicker-demo">
<md cn={md.cn} us={md.us} />
<Hours />
<Addon />
<Basic />
<Disabled />
<HideColumn />
<IntervalOptions />
<Size />
<Value />
<Suffix />
2018-03-09 02:19:00 +00:00
<api>
2019-09-28 12:45:07 +00:00
<CN slot="cn" />
<US />
2018-03-09 02:19:00 +00:00
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2018-03-09 02:19:00 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-03-09 02:19:00 +00:00
</script>
<style>
2019-09-28 12:45:07 +00:00
#components-timepicker-demo .ant-time-picker {
margin: 0 8px 12px 0;
}
2018-03-09 02:19:00 +00:00
</style>