<template> <div> <a-range-picker v-bind="$attrs" :allowClear="allowClear" valueFormat="YYYY-MM-DD" :value="value" @change="handleChange" > <img slot="suffixIcon" src="@/assets/images/dataManage/icon-date.png" /> </a-range-picker> </div> </template> <script> export default { model: { value: "value", event: "change", }, props: { value: { required: true, default: "", }, allowClear: { default: false, }, }, data() { return {}; }, methods: { handleChange(value) { this.$emit("change", value); }, }, }; </script> <style lang="less" scoped> </style>