2016-12-20 13:48:39 +08:00
|
|
|
<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
|
2016-12-25 22:49:42 +08:00
|
|
|
};
|
2016-12-20 13:48:39 +08:00
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
handleClear () {
|
|
|
|
this.$emit('on-pick-clear');
|
|
|
|
},
|
|
|
|
handleSuccess () {
|
|
|
|
this.$emit('on-pick-success');
|
|
|
|
}
|
|
|
|
}
|
2016-12-25 22:49:42 +08:00
|
|
|
};
|
|
|
|
</script>
|