b9041a0d
梁灏
DatePicker add co...
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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>
|