V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Leszeu
V2EX  ›  Vue.js

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

  •  
  •   Leszeu · Oct 12, 2018 · 3519 views
    This topic created in 2757 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   ·   1015 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 50ms · UTC 18:29 · PVG 02:29 · LAX 11:29 · JFK 14:29
    ♥ Do have faith in what you're doing.