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

Categories

0 votes
856 views
in Technique[技术] by (71.8m points)

关于elementUI的el-date-picker组件的问题?

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

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

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


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

1 Answer

0 votes
by (71.8m points)

<div class="block">

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

</div>


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...