mirror of https://github.com/ElemeFE/element
DatePicker: register el-button
parent
917b8e78f2
commit
6e65590775
|
@ -193,6 +193,7 @@
|
||||||
import TimePicker from './time';
|
import TimePicker from './time';
|
||||||
import DateTable from '../basic/date-table';
|
import DateTable from '../basic/date-table';
|
||||||
import ElInput from 'element-ui/packages/input';
|
import ElInput from 'element-ui/packages/input';
|
||||||
|
import ElButton from 'element-ui/packages/button';
|
||||||
|
|
||||||
const advanceDate = (date, amount) => {
|
const advanceDate = (date, amount) => {
|
||||||
return new Date(new Date(date).getTime() + amount);
|
return new Date(new Date(date).getTime() + amount);
|
||||||
|
@ -586,6 +587,6 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
components: { TimePicker, DateTable, ElInput }
|
components: { TimePicker, DateTable, ElInput, ElButton }
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -148,6 +148,7 @@
|
||||||
} from '../util';
|
} from '../util';
|
||||||
import Locale from 'element-ui/src/mixins/locale';
|
import Locale from 'element-ui/src/mixins/locale';
|
||||||
import ElInput from 'element-ui/packages/input';
|
import ElInput from 'element-ui/packages/input';
|
||||||
|
import ElButton from 'element-ui/packages/button';
|
||||||
import TimePicker from './time';
|
import TimePicker from './time';
|
||||||
import YearTable from '../basic/year-table';
|
import YearTable from '../basic/year-table';
|
||||||
import MonthTable from '../basic/month-table';
|
import MonthTable from '../basic/month-table';
|
||||||
|
@ -431,7 +432,7 @@
|
||||||
},
|
},
|
||||||
|
|
||||||
components: {
|
components: {
|
||||||
TimePicker, YearTable, MonthTable, DateTable, ElInput
|
TimePicker, YearTable, MonthTable, DateTable, ElInput, ElButton
|
||||||
},
|
},
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
|
|
Loading…
Reference in New Issue