Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

<el-date-picker
    v-model="value1"
    type="daterange"
    start-placeholder="开始日期"
    end-placeholder="结束日期"
</el-date-picker>

使用daterange这个配置,变成范围选择,但是我只想出现左边的选择区域,不想选择右边的选择区域该如何设置
image.png

既如下效果在一个区域内选择日期
image.png


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
848 views
Welcome To Ask or Share your Answers For Others

1 Answer

<div class="block">

<span class="demonstration">默认</span>
<el-date-picker
  v-model="value1"
  type="date"
  placeholder="选择日期">
</el-date-picker>

</div>


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...