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

66 lines
1.6 KiB
Vue
Raw Normal View History

2018-03-20 01:10:56 +00:00
<script>
2019-01-12 03:33:27 +00:00
import Basic from './basic';
import DateRender from './date-render';
import DisabledDate from './disabled-date';
import Disabled from './disabled';
import ExtraFooter from './extra-footer';
import Format from './format';
import Mode from './mode';
import PresettedRanges from './presetted-ranges';
import Size from './size';
import StartEnd from './start-end';
import Time from './time';
import Suffix from './suffix';
import CN from '../index.zh-CN.md';
import US from '../index.en-US.md';
2018-03-20 01:10:56 +00:00
const md = {
cn: `# DatePicker 日期选择框
输入或选择日期的控件
## 何时使用
当用户需要输入一个日期可以点击标准输入框弹出日期面板进行选择
## 代码演示`,
us: `# DatePicker
To select or input a date.
## When To Use
By clicking the input box, you can select a date from a popup calendar.
## Examples
`,
2019-01-12 03:33:27 +00:00
};
2018-03-20 01:10:56 +00:00
export default {
category: 'Components',
type: 'Data Entry',
2018-12-08 08:47:05 +00:00
zhType: '数据录入',
2018-03-20 01:10:56 +00:00
title: 'DatePicker',
subtitle: '日期选择框',
render () {
return (
<div id='components-date-picker-demo'>
<md cn={md.cn} us={md.us}/>
<Basic/>
<DateRender/>
<DisabledDate/>
<Disabled/>
<ExtraFooter/>
<Format/>
<Mode/>
<PresettedRanges/>
<Size/>
<StartEnd/>
<Time/>
2018-12-08 08:47:05 +00:00
<Suffix />
2018-03-20 01:10:56 +00:00
<api>
<CN slot='cn' />
<US/>
</api>
</div>
2019-01-12 03:33:27 +00:00
);
2018-03-20 01:10:56 +00:00
},
2019-01-12 03:33:27 +00:00
};
2018-03-20 01:10:56 +00:00
</script>
<style>
#components-date-picker-demo .ant-calendar-picker {
margin: 0 8px 12px 0;
}
</style>