<el-formref="form":model="form":rules="rules"label-width="80px"><el-form-itemlabel="配置时间"prop="currentAllocationDate"><divv-for="(item,key) in timeList"><el-date-pickerv-model="item.time"type="datetimerange"value-format="timestamp"range-separator="至"start-placeholder="开始日期"end-placeholder="结束日期"></el-date-picker><el-buttonclass="add"@click="passStreamAdd">+</el-button><el-buttonclass="reduce"@click="passStreamReduce(key)">-</el-button></div></el-form-item></el-form>
文章目录 背景解决方案基础版升级版 背景
For example, instead of writing mydict[‘val’], I’d like to write mydict.val.
解决方案
基础版
I’ve always kept this around in a util file. You can use it as a mixin on your own classes too.
class dotdict(dict)…