0.1.5 • Published 2 months ago

shiyzhangcron v0.1.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 months ago

shiyzhang@cron

一个基于vue3+Ant-Design-vue的cron表达式组件

效果图

秒

使用方式

前置条件:项目基于vue+Ant-Design-vue开发(用到Ant-Design-vue相关组件)
第一步
    安装组件
    npm i shiyzhangcron 或 pnpm i shiyzhangcron
第二步
    导入组件
    import E from 'shiyzhangcron';
    import 'shiyzhangcron/dist/style.css';
第三步
    使用组件
      const EasyCronInner = E.EasyCronInner;
      <EasyCronInner v-model="easyCronInnerValue"/>

API

Attributes

参数说明类型默认值
model-value / v-model绑定值string-
disabled是否禁用booleanfalse
hideSecond是否显示秒booleanfalse
hideYear是否显示年(秒不显示时会显示年)booleanfalse
inputArea是否显示下面输入区booleanfalse

Events

事件名说明类型
change仅当 modelValue 改变时Function(e)

项目目录

├── components
|  ├── components.ts
|  ├── EasyCron
|  ├── index.ts
|  └── _utils
├── dist
|  ├── shiyzhang@cron.js
|  ├── shiyzhang@cron.umd.cjs
|  └── style.css
├── internal
|  ├── eslint-config
|  ├── stylelint-config
|  └── ts-config
├── LICENSE
├── package.json
├── pnpm-lock.yaml
├── pnpm-workspace.yaml
├── README.md
├── src
├── tsconfig.json
├── turbo.json
├── types
|  ├── global.d.ts
|  ├── index.d.ts
|  └── module.d.ts
├── uno.config.ts
└── vite.config.ts

完整效果

秒 分 时 日 月 周 年

0.1.2

2 months ago

0.1.4

2 months ago

0.1.3

2 months ago

0.1.5

2 months ago

0.1.1

2 months ago

0.0.6

2 months ago

0.0.5

2 months ago

0.0.4

2 months ago

0.0.3

2 months ago

0.0.2

2 months ago

0.0.1

2 months ago