DatePicker add confirm prop
DatePicker add confirm prop
This commit is contained in:
parent
fe44201b46
commit
b9041a0df9
7 changed files with 83 additions and 13 deletions
|
@ -57,6 +57,10 @@
|
|||
:disabled-date="disabledDate"
|
||||
@on-pick="handleMonthPick"></month-table>
|
||||
</div>
|
||||
<Confirm
|
||||
v-if="confirm"
|
||||
@on-pick-clear="handlePickClear"
|
||||
@on-pick-success="handlePickSuccess"></Confirm>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -65,6 +69,7 @@
|
|||
import DateTable from '../base/date-table.vue';
|
||||
import YearTable from '../base/year-table.vue';
|
||||
import MonthTable from '../base/month-table.vue';
|
||||
import Confirm from '../base/confirm.vue';
|
||||
import { formatDate, parseDate } from '../util';
|
||||
|
||||
import Mixin from './mixin';
|
||||
|
@ -74,7 +79,7 @@
|
|||
|
||||
export default {
|
||||
mixins: [Mixin],
|
||||
components: { Icon, DateTable, YearTable, MonthTable },
|
||||
components: { Icon, DateTable, YearTable, MonthTable, Confirm },
|
||||
data () {
|
||||
return {
|
||||
prefixCls: prefixCls,
|
||||
|
@ -85,12 +90,10 @@
|
|||
value: '',
|
||||
showTime: false,
|
||||
selectionMode: 'day',
|
||||
visible: false,
|
||||
disabledDate: '',
|
||||
year: null,
|
||||
month: null,
|
||||
showWeekNumber: false,
|
||||
timePickerVisible: false
|
||||
confirm: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue