Leszeu
V2EX  ›  Vue.js

请教一个关于 vue-elmentuivue 中 DatePicker 组件的问题

  •  
  •   Leszeu · Oct 12, 2018 · 3583 views
    This topic created in 2801 days ago, the information mentioned may be changed or developed.
    <el-date-picker
                  v-model="form.date"
                  type="date"
                  editable="false"
                  clearable="false"
                  placeholder="选择日期">
    </el-date-picker>
    

    我在 DatePicker 组件中使用了 editable (文本框是否可编辑) 和 clearable (是否显示清除按钮) 两个属性,都设置成了 false 但是页面组件中还是可以输入,而且也会显示清除按钮,有大佬指点迷津吗,谢谢啦!

    2 replies    2018-10-16 14:43:31 +08:00
    Leszeu
        1
    Leszeu  
    OP
       Oct 13, 2018
    麻烦大佬指点迷津啊
    thinker3
        2
    thinker3  
       Oct 16, 2018   ❤️ 1
    :editable="false"
    :clearable="false"
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2699 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:23 · PVG 10:23 · LAX 19:23 · JFK 22:23
    ♥ Do have faith in what you're doing.