Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose changed date component #3353

Merged
merged 1 commit into from
Apr 16, 2018

Conversation

SergioCrisostomo
Copy link
Contributor

(New Feature)

When we use the @on-change event in DatePicker we get only a new string dddd-mm-yy hh:mm:ss in the functions 1st argument. This change adds a new argument so we can know what was changed, if the date or the time in case of datetime picker.

Test case:

<template>
    <div style="width: 500px;margin: 100px;">
        <date-picker type="date" @on-change="onChange"></date-picker>
    </div>
</template>
<script>
    export default {
        methods: {
            onChange(...args){
                console.log(...args);
            }
        }
    }
</script>

@icarusion icarusion merged commit b079417 into iview:2.0 Apr 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants