74 Star 567 Fork 182

ldy/vue-cron

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
App.vue 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
ldy 提交于 2018-06-11 13:53 +08:00 . init
<template>
<div id="app">
<el-form :model="form" label-width="80px">
<el-form-item style="margin-top: -10px; margin-bottom:0px;">
<cron v-if="showCronBox" v-model="form.cronExpression"></cron>
<span style="color: #E6A23C; font-size: 12px;">corn从左到右(用空格隔开):秒 分 小时 月份中的日期 月份 星期中的日期 年份</span>
</el-form-item>
<el-form-item label="Cron">
<el-input v-model="form.cronExpression" auto-complete="off">
<el-button slot="append" v-if="!showCronBox" icon="el-icon-arrow-up" @click="showCronBox = true" title="打开图形配置"></el-button>
<el-button slot="append" v-else icon="el-icon-arrow-down" @click="showCronBox = false" title="关闭图形配置"></el-button>
</el-input>
</el-form-item>
</el-form>
</div>
</template>
<script>
import cron from './components/cron'
export default {
name: 'App',
components: {
cron
},
data () {
return {
showCronBox: false,
form: {
cronExpression: ''
}
}
}
}
</script>
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
width: 700px;
color: #2c3e50;
margin-top: 60px;
}
</style>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/lindeyi/vue-cron.git
git@gitee.com:lindeyi/vue-cron.git
lindeyi
vue-cron
vue-cron
master

搜索帮助