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

方便清除时间/日期选择器中的值 #759

Closed
reverland opened this issue Oct 31, 2016 · 0 comments
Closed

方便清除时间/日期选择器中的值 #759

reverland opened this issue Oct 31, 2016 · 0 comments

Comments

@reverland
Copy link
Contributor

有时候需要方便地清空时间日期选择器的值,而不是通过在外部设置一个重置按钮。

有没有考虑增加类似ant-design中清除特性?https://ant.design/components/date-picker/

魔改了一个。。。类似下图这样

  // packages/date-picker/picker.vue
    <span
      @click="value = ''"
      class="el-date-editor__trigger el-icon el-icon-close"
      v-if="allowClear && value && !pickerVisible">
    </span>

record

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants