# vue-input-cron

> 这是一个cron表达式生成插件,基于vue与element-ui实现

Latest version **1.0.0** (published 2024-02-27) · 0 weekly downloads

## Install

```sh
npm install vue-input-cron
pnpm add vue-input-cron
yarn add vue-input-cron
bun add vue-input-cron
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2024-02-27 |
| First published | 2021-09-14 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 3.3 MB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | mmyhs |
| Keywords | vue, cron, vue-cron, vue-input-cron |

## Links

- npm: https://www.npmjs.com/package/vue-input-cron
- npm.io page: https://npm.io/package/vue-input-cron

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.6.11
- [core-js](https://npm.io/package/core-js.md) ^3.6.5
- [element-ui](https://npm.io/package/element-ui.md) ^2.15.6

## Recent versions

- 1.0.0 (latest) — 2024-02-27
- 0.1.2 — 2021-09-15
- 0.1.1 — 2021-09-15
- 0.1.0 — 2021-09-14

## README

# vue-input-cron
这是一个cron表达式生成插件,基于vue与element-ui实现

## 依赖
- Vue 2.0.0+
- element-ui 2.0.0+

### 安装方式
```
npm install vue-input-cron
# or 
yarn add vue-input-cron
```

### 引入方式
```js
//全局引入
import VueInputCron  from 'vue-input-cron'
Vue.use(VueInputCron);//使用方式：<vue-input-cron></vue-input-cron>

//局部引入
import { VueInputCron } from 'vue-input-cron'
 
export default {
    template: '<vue-input-cron />',
    components: { VueInputCron }
}
```

### 示例
```vue
<vue-input-cron v-model.trim="value" 
                :show-result="true" 
                placeholder="请输入CRON" 
                @change="handleChange" />
```

### Attribute
- show-result
    - 是否在弹出框中显示每个`表达式字段`的值
- placeholder
    - 默认提示，通 input 的 placeholder 一样

### Events
- change
    - 当corn表达式的值发生变化变化时触发
    - 参数:
    ```json
        {
          "choice": "",
          "complete": "",
          "completeInfo": {
            "day": "",
            "hour": "",
            "minute": "",
            "month": "",
            "second": "",
            "week": "",
            "year": ""
          },
          "data": "",
          "type": ""
        }
    ```

 ### Slot
 - footer
    - 显示在`popover`最下边的内容区域

---
_Source: https://npm.io/package/vue-input-cron · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
