
vue3+elementPlus cron组件
element
A Vue.js 2.0 UI Toolkit for Web
项目地址:https://gitcode.com/gh_mirrors/eleme/element

·
使用:
element
A Vue.js 2.0 UI Toolkit for Web
项目地址:https://gitcode.com/gh_mirrors/eleme/element
<template>
<div class="vuecron ">
<el-input v-model="state.cron" placeholder="cron表达式..." @click="togglePopover(true)">
<template #append>
<el-popover v-model:visible="state.cronPopover" width="700px" trigger="manual" placement="top">
<Vue3Cron
:cron-value="state.cron"
@change="changeCron"
@close="togglePopover(false)"
max-height="200px"
i18n="cn"
></Vue3Cron>
</el-popover>
</template>
<template #reference>
<el-button @click="togglePopover(true)">设置</el-button>
</template>
</el-input>
</div>
</template>
<script setup>
import Vue3Cron from '@/components/vue3-cron/index.vue'
import { reactive } from 'vue'
const state = reactive({
cronPopover: false,
cron: ''
})
const changeCron = (val) => {
if(typeof(val) !== 'string') return false
state.cron = val
}
const togglePopover = (bol) => {
state.cronPopover = bol
}
</script>
<style lang="scss" scoped>
.vuecron {
width: 400px;
margin: 0 auto;
margin-top: 100px;
}
</style>
推荐内容




A Vue.js 2.0 UI Toolkit for Web
最近提交(Master分支:8 个月前 )
c345bb45
1 年前
a07f3a59
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update transition.md
* Update table.md
* Update table.md
* Update transition.md
* Update popover.md 1 年前
更多推荐
相关推荐
查看更多
element

A Vue.js 2.0 UI Toolkit for Web
element

Fast and simple custom elements.
element

热门开源项目
活动日历
查看更多
直播时间 2025-04-09 14:34:18

樱花限定季|G-Star校园行&华中师范大学专场
直播时间 2025-04-07 14:51:20

樱花限定季|G-Star校园行&华中农业大学专场
直播时间 2025-03-26 14:30:09

开源工业物联实战!
直播时间 2025-03-25 14:30:17

Heygem.ai数字人超4000颗星火燎原!
直播时间 2025-03-13 18:32:35

全栈自研企业级AI平台:Java核心技术×私有化部署实战
所有评论(0)