The time component problem (cancel time) of the Mint Ui framework in the vue project?

clipboard.png
after selecting a time, without clicking OK (click blank or click cancel), the new time values are generated into the pickerValue. How can I just click OK to generate a new time, click blank or cancel or the original time? Thank you!

Mar.22,2021

isn't there a confirmation event


do not bind a value in the component, pass the timestamp directly into the determined event conversion, and then assign it to the field that you store in data, or change a value to another value, and the value will not be assigned all the time

.
    //
    handleConfirm(data){
            // var oDate=new Date(timestamp);
            const y = data.getFullYear()
            let m = data.getMonth() + 1
            m = m < 10 ? '0' + m : m
            let d = data.getDate()
            d = d < 10 ? ('0' + d) : d
            let h = data.getHours()
            h = h < 10 ? ('0' + h) : h
            let ms = data.getMinutes()
            ms = ms < 10 ? ('0' + ms) : ms
            this.sendMsg.appoint_time = y + '-' + m + '-' + d + ' ' + h + ':' + ms + ':' + '00'
            console.log(this.sendMsg.appoint_time)
            return y + ' ' + m + ' ' + d + ' ' + h + ' ' + ms
            
        }

Menu