添加重置隐藏
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<el-option v-for="item in timeOptions" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
|
||||
<el-date-picker v-model="timeValue" type="daterange" :disabled="disabledPicker"
|
||||
<el-date-picker v-model="timeValue" type="daterange" :disabled="disabledPicker" :disabled-date="isFutureDate"
|
||||
style="width: 220px; margin-right: 10px" unlink-panels :clearable="false" range-separator="至"
|
||||
start-placeholder="开始日期" end-placeholder="结束日期" value-format="YYYY-MM-DD" :shortcuts="shortcuts" />
|
||||
<el-button :disabled="backDisabled" type="primary" :icon="DArrowLeft" @click="preClick"></el-button>
|
||||
@@ -70,6 +70,9 @@ const shortcuts = [
|
||||
}
|
||||
}
|
||||
]
|
||||
const isFutureDate = (time) => {
|
||||
return time && time > Date.now();
|
||||
};
|
||||
onMounted(() => {
|
||||
timeChange(3)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user