1. 程式人生 > >iView常用元件清空技巧

iView常用元件清空技巧

  • 清空DatePicker(日期選擇器)的方法:

        this.$refs.element.handleClear()

  • 清空TimePicker(時間選擇器)的方法:

        this.$refs.element.handleClear()

  • 清空Select元件的方法:

        this.$refs.element.clearSingleSelect()

  • 清空Table元件的方法:

        this.$refs.element.selectAll(flase)

  • 清空input元件的方法:

        直接讓繫結的變數等於空

轉載於:https://blog.csdn.net/weixin_41804384/article/details/80609240