@fuxishi/el-cron-picker 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +19 -0
  2. package/README.md +24 -19
  3. package/package.json +10 -2
package/LICENSE ADDED
@@ -0,0 +1,19 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025-present, Fuxishi
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10
+
11
+ MIT许可
12
+
13
+ 版权所有(c) 2025年至今, Fuxishi
14
+
15
+ 特此免费授予任何人获得本软件和相关文档文件(“软件”)的副本,不受限制地处理本软件,包括但不限于使用、复制、修改、合并、发布、分发、再许可和/或销售本软件副本的权利,并允许提供本软件的人这样做,但须符合以下条件:
16
+
17
+ 上述版权声明和本许可声明应包含在本软件的所有副本或主要部分中。
18
+
19
+ 本软件“按原样”提供,不提供任何形式的明示或暗示的保证,包括但不限于适销性、适用于特定目的和不侵权的保证。在任何情况下,作者或版权所有人都不承担任何索赔、损害赔偿或其他责任,无论是在合同诉讼、侵权行为或其他诉讼中,由软件、软件的使用或其他交易引起的或与之有关的。
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # cron-picker
2
2
 
3
- vue3 element-plus cron 表达式生成器 正式版本 verision 1.1.1
3
+ vue3 element-plus cron 表达式生成器
4
4
 
5
5
  # 使用方式
6
6
 
@@ -17,26 +17,26 @@ npm i @fuxishi/el-cron-picker
17
17
  ## 全局引入
18
18
 
19
19
  ```ts
20
- import { createApp } from "vue";
21
- import App from "./App.vue";
22
- import ElementPlus from "element-plus";
23
- import "element-plus/dist/index.css";
20
+ import { createApp } from "vue"
21
+ import App from "./App.vue"
22
+ import ElementPlus from "element-plus"
23
+ import "element-plus/dist/index.css"
24
24
 
25
25
  // 全局引入
26
- import { ElCronPicker, ElCronConfig } from "@fuxishi/el-cron-picker";
27
- import "@fuxishi/el-cron-picker/dist/el-cron-picker.css";
26
+ import { ElCronPicker, ElCronConfig } from "@fuxishi/el-cron-picker"
27
+ import "@fuxishi/el-cron-picker/dist/el-cron-picker.css"
28
28
 
29
- const app = createApp(App);
30
- app.use(ElementPlus);
31
- app.use(ElCronPicker);
32
- app.mount("#app");
29
+ const app = createApp(App)
30
+ app.use(ElementPlus)
31
+ app.use(ElCronPicker)
32
+ app.mount("#app")
33
33
  ```
34
34
 
35
35
  ## 局部引入
36
36
 
37
37
  ```ts
38
- import { ElCronPicker, ElCronConfig } from "@fuxishi/el-cron-picker";
39
- import "@fuxishi/el-cron-picker/dist/el-cron-picker.css";
38
+ import { ElCronPicker, ElCronConfig } from "@fuxishi/el-cron-picker"
39
+ import "@fuxishi/el-cron-picker/dist/el-cron-picker.css"
40
40
  ```
41
41
 
42
42
  ## 示例
@@ -49,11 +49,11 @@ import "@fuxishi/el-cron-picker/dist/el-cron-picker.css";
49
49
  <el-cron-config v-model="cron" v-model:numberCount="numberCount" />
50
50
  </template>
51
51
  <script setup lang="ts">
52
- import { ref } from "vue";
53
- import { ElCronPicker, ElCronConfig } from "@fuxishi/el-cron-picker";
54
- import "@fuxishi/el-cron-picker/dist/el-cron-picker.css";
55
- const cron = ref("* * * * * ?");
56
- const numberCount = ref(50);
52
+ import { ref } from "vue"
53
+ import { ElCronPicker, ElCronConfig } from "@fuxishi/el-cron-picker"
54
+ import "@fuxishi/el-cron-picker/dist/el-cron-picker.css"
55
+ const cron = ref("* * * * * ?")
56
+ const numberCount = ref(50)
57
57
  </script>
58
58
  ```
59
59
 
@@ -65,7 +65,7 @@ import "@fuxishi/el-cron-picker/dist/el-cron-picker.css";
65
65
  例如:
66
66
 
67
67
  ```ts
68
- import { zh } from "@fuxishi/el-cron-picker";
68
+ import { zh } from "@fuxishi/el-cron-picker"
69
69
  ```
70
70
 
71
71
  也可自定义
@@ -131,6 +131,11 @@ import { zh } from "@fuxishi/el-cron-picker";
131
131
  | update:numberCount | - | 值改变 |
132
132
  | executionError | error:Error | 执行错误时触发 |
133
133
 
134
+ ## 示例图片
135
+
136
+ ![示例图片 1](https://github.com/Fuxi-zy/el-cron-picker/blob/main/docs/image/cron.png?raw=true)
137
+ ![示例图片 2](https://github.com/Fuxi-zy/el-cron-picker/blob/main/docs/image/quick.png?raw=true)
138
+
134
139
  # 更新日志
135
140
 
136
141
  | 版本号 | 更新内容 | 更新时间 |
package/package.json CHANGED
@@ -1,11 +1,18 @@
1
1
  {
2
2
  "name": "@fuxishi/el-cron-picker",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "license": "MIT",
5
5
  "description": "vue3 element-plus cron表达式生成器",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
+ "bugs": {
10
+ "url": "https://github.com/Fuxi-zy/el-cron-picker/issues"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/Fuxi-zy/el-cron-picker"
15
+ },
9
16
  "scripts": {
10
17
  "dev": "vite --host",
11
18
  "build": "vue-tsc -b && vite build",
@@ -15,7 +22,8 @@
15
22
  },
16
23
  "author": {
17
24
  "name": "fuxishi",
18
- "email": "zhangzjx1422@163.com"
25
+ "email": "zhangzjx1422@163.com",
26
+ "url": "https://github.com/fuxishi"
19
27
  },
20
28
  "main": "./dist/el-cron-picker.umd.cjs",
21
29
  "module": "./dist/el-cron-picker.es.js",