[Doc] DatetimePicker: improve documentation (#747)

This commit is contained in:
neverland
2018-03-22 11:48:30 +08:00
committed by GitHub
parent 4810630215
commit 70fbdea35d
5 changed files with 123 additions and 38 deletions
+4 -4
View File
@@ -35,11 +35,11 @@ describe('DatetimePicker', () => {
expect(wrapper.vm.innerValue.getTime()).to.equal(testDate.getTime());
});
it('create a date-year-month', () => {
it('create a year-month', () => {
wrapper = mount(DatetimePicker, {
attachToDocument: true,
propsData: {
type: 'date-year-month',
type: 'year-month',
value: testDate
}
});
@@ -104,11 +104,11 @@ describe('DatetimePicker', () => {
}, 10);
});
it('drag date-year-month picker', (done) => {
it('drag year-month picker', (done) => {
wrapper = mount(DatetimePicker, {
attachToDocument: true,
propsData: {
type: 'date-year-month',
type: 'year-month',
value: testDate,
minDate,
maxDate