Open shinnlu opened 10 months ago
i have found the answer to use custom template
<date-picker v-model="BirthDate">
<template v-slot="{ inputValue, inputEvents }">
<input id="BirthDate" :value="inputValue" v-on="inputEvents" readonly=""/>
<span v-show="isDateEmpty(inputValue)" class="remove" @click.stop="BirthDate=''">x</span>
</template>
</date-picker>
the date-picker was generate html
<input data-v-3ca7c91d="" readonly="readonly" class="form-control">
how to add id attribute to it?