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
28
src/components/date-picker/base/confirm.vue
Normal file
28
src/components/date-picker/base/confirm.vue
Normal file
|
@ -0,0 +1,28 @@
|
|||
<template>
|
||||
<div :class="[prefixCls + '-confirm']">
|
||||
<i-button size="small" type="text" @click="handleClear">清空</i-button>
|
||||
<i-button size="small" type="primary" @click="handleSuccess">确定</i-button>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import iButton from '../../button/button.vue';
|
||||
|
||||
const prefixCls = 'ivu-picker';
|
||||
|
||||
export default {
|
||||
components: { iButton },
|
||||
data () {
|
||||
return {
|
||||
prefixCls: prefixCls
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
handleClear () {
|
||||
this.$emit('on-pick-clear');
|
||||
},
|
||||
handleSuccess () {
|
||||
this.$emit('on-pick-success');
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue