zl-lcyq 0.0.1 → 0.0.3

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.
package/README.md CHANGED
@@ -1,83 +1 @@
1
- # [vue3-starry-sky](https://www.npmjs.com/package/vue3-starry-sky)
2
1
 
3
- # 组件下载
4
-
5
- ```
6
- npm i vue3-starry-sky
7
- ```
8
-
9
- # 组件效果预览
10
-
11
- * [gitee pages](https://zero-dg.gitee.io/vue3-starry-sky)
12
- * [github pages](https://zero-dg.github.io/vue3-starry-sky/)
13
-
14
- # 全局使用方法
15
-
16
- 在vue3项目中全局引用的方式
17
- ``` ts
18
- //main.ts or main.js
19
- import { createApp } from 'vue';
20
- import App from './App.vue';
21
- import Vue3StarrySky from 'vue3-starry-sky';
22
- import 'vue3-starry-sky/lib/style.css';
23
-
24
- const app = createApp(App);
25
-
26
- app.use(Vue3StarrySky);
27
- app.mount('#app');
28
- ```
29
- 如果使用ts+vite的方式,需要在env.d.ts中加入最后一句声明,否则ts会检测报错。
30
- ``` ts
31
- /// <reference types="vite/client" />
32
- declare module '*.vue' {
33
- import type { DefineComponent } from 'vue'
34
- // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
35
- const component: DefineComponent<{}, {}, any>
36
- export default component
37
- }
38
-
39
- declare module 'vue3-starry-sky';
40
- ```
41
- 组件内使用
42
- ``` html
43
- <script setup></script>
44
-
45
- <template>
46
- <starry-sky :stars-count="1000" :distance="1000" />
47
- </template>
48
-
49
- <style></style>
50
- ```
51
-
52
- # 局部引用方法
53
-
54
- 示例:
55
- ``` html
56
- <script setup>
57
- import { StarrySky } from '../packages/index';
58
- </script>
59
-
60
- <template>
61
- <starry-sky :stars-count="1000" :distance="1000" />
62
- </template>
63
-
64
- <style></style>
65
- ```
66
-
67
- # 参数说明
68
-
69
- | 属性 | 类型 | 默认值 |
70
- | ---- | ---- | ---- |
71
- | stars-count | Number | 800 |
72
- | distance | Number | 800 |
73
-
74
- # 源码地址
75
-
76
- * gitee地址:[vue3-starry-sky](https://gitee.com/zero-dg/vue3-starry-sky)
77
- * github地址:[vue3-starry-sky](https://github.com/ZERO-DG/vue3-starry-sky)
78
-
79
- # 相关([vue-starry-sky](https://www.npmjs.com/package/vue-starry-sky))
80
-
81
- 本项目基于vite+vue3基于之前的cli+vue2升级改造而来,想访问vue2库组件请点击下面链接地址:
82
- * gitee地址:[vue-starry-sky](https://gitee.com/zero-dg/vue-starry-sky)
83
- * github地址:[vue-starry-sky](https://github.com/ZERO-DG/vue-starry-sky)
package/lib/data.json CHANGED
@@ -5,127 +5,6 @@
5
5
  "node_name": "申请",
6
6
  "node_key": "R8iKwcw4JuSoLkQc4uRL",
7
7
  "type": 0,
8
- "childNode": {
9
- "node_name": "审核",
10
- "node_key": "DE1fE9uEua-U0-9x4XMd",
11
- "type": 1,
12
- "node_config": {
13
- "assignee": {},
14
- "examine_type": 0,
15
- "operations": [
16
- {
17
- "name": "同意",
18
- "value": 1,
19
- "enable": 1,
20
- "action": "default",
21
- "jump_nodes": [],
22
- "form_required": 1
23
- },
24
- {
25
- "name": "终止",
26
- "value": 2,
27
- "enable": 0,
28
- "action": "stop",
29
- "jump_nodes": [],
30
- "form_required": 0
31
- },
32
- {
33
- "name": "提交",
34
- "value": 3,
35
- "enable": 0,
36
- "action": "default",
37
- "jump_nodes": [],
38
- "form_required": 1,
39
- "color": ""
40
- },
41
- {
42
- "name": "驳回",
43
- "value": 4,
44
- "enable": 1,
45
- "action": "default",
46
- "jump_nodes": [],
47
- "form_required": 0
48
- }
49
- ],
50
- "task_type": 0,
51
- "expression": ""
52
- },
53
- "childNode": {
54
- "node_name": "抄送",
55
- "node_key": "KegXHBtStFelqcIxsGLd",
56
- "type": 2,
57
- "childNode": {
58
- "node_name": "路由",
59
- "node_key": "UMkcSNPkuKSJQHO-aZ7j",
60
- "type": 4,
61
- "childNode": null,
62
- "conditionNodes": [
63
- {
64
- "node_name": "条件1",
65
- "node_key": "sAGj-5wwD3kvNxq8MN0U",
66
- "error": false,
67
- "type": 3,
68
- "priorityLevel": 1,
69
- "node_config": {
70
- "expression": ""
71
- },
72
- "childNode": {}
73
- },
74
- {
75
- "node_name": "条件2",
76
- "node_key": "ZPXuJjZ5aiPCkKCikMA4",
77
- "error": false,
78
- "type": 3,
79
- "priorityLevel": 2,
80
- "node_config": {
81
- "expression": ""
82
- },
83
- "childNode": null
84
- }
85
- ]
86
- },
87
- "node_config": {
88
- "examine_type": 0,
89
- "examine_complete_condition": "",
90
- "assignee": {},
91
- "task_type": 0,
92
- "operations": [
93
- {
94
- "name": "同意",
95
- "value": 1,
96
- "enable": 1,
97
- "action": "default",
98
- "jump_nodes": [],
99
- "form_required": 1
100
- },
101
- {
102
- "name": "终止",
103
- "value": 2,
104
- "enable": 0,
105
- "action": "stop",
106
- "jump_nodes": [],
107
- "form_required": 0
108
- },
109
- {
110
- "name": "提交",
111
- "value": 3,
112
- "enable": 0,
113
- "action": "default",
114
- "jump_nodes": [],
115
- "form_required": 1,
116
- "color": ""
117
- },
118
- {
119
- "name": "驳回",
120
- "value": 4,
121
- "enable": 1,
122
- "action": "default",
123
- "jump_nodes": [],
124
- "form_required": 0
125
- }
126
- ]
127
- }
128
- }
129
- }
8
+ "childNode": null
130
9
  }
131
10
  }
package/lib/plugins.json CHANGED
@@ -2,172 +2,6 @@
2
2
  "e": 0,
3
3
  "m": "success",
4
4
  "d": {
5
- "1": [
6
- {
7
- "name": "节点名称",
8
- "key": "node_name",
9
- "type": "Input",
10
- "required": true
11
- },
12
- {
13
- "name": "审批方式",
14
- "key": "examine_type",
15
- "type": "Select",
16
- "options": [
17
- {
18
- "label": "竞争审批",
19
- "value": 0
20
- },
21
- {
22
- "label": "会签并行",
23
- "value": 1
24
- },
25
- {
26
- "label": "会签串行",
27
- "value": 2
28
- }
29
- ],
30
- "defaultValue": 0
31
- },
32
- {
33
- "name": "会签完成率",
34
- "key": "examine_complete_condition",
35
- "type": "Expression",
36
- "defaultValue": "",
37
- "config": {
38
- "hideInput": true
39
- }
40
- },
41
- {
42
- "name": "审批人设置",
43
- "key": "assignee",
44
- "type": "Personnel",
45
- "defaultValue": {},
46
- "required": true
47
- },
48
- {
49
- "name": "节点场景",
50
- "key": "task_type",
51
- "type": "Select",
52
- "options": [
53
- {
54
- "label": "审批节点",
55
- "value": 0,
56
- "useOperations": [
57
- 1,
58
- 2,
59
- 3,
60
- 4
61
- ]
62
- },
63
- {
64
- "label": "驳回节点",
65
- "value": 1,
66
- "useOperations": [
67
- 3
68
- ]
69
- }
70
- ],
71
- "defaultValue": 0
72
- },
73
- {
74
- "name": "操作",
75
- "key": "operations",
76
- "type": "Operation",
77
- "defaultValue": [],
78
- "required": true
79
- }
80
- ],
81
- "2": [
82
- {
83
- "name": "节点名称",
84
- "key": "node_name",
85
- "type": "Input",
86
- "required": true
87
- },
88
- {
89
- "name": "审批方式",
90
- "key": "examine_type",
91
- "type": "Select",
92
- "options": [
93
- {
94
- "label": "竞争审批",
95
- "value": 0
96
- },
97
- {
98
- "label": "会签并行",
99
- "value": 1
100
- },
101
- {
102
- "label": "会签串行",
103
- "value": 2
104
- }
105
- ],
106
- "defaultValue": 0
107
- },
108
- {
109
- "name": "会签完成率",
110
- "key": "examine_complete_condition",
111
- "type": "Expression",
112
- "defaultValue": "",
113
- "config": {
114
- "hideInput": true
115
- }
116
- },
117
- {
118
- "name": "审批人设置",
119
- "key": "assignee",
120
- "type": "Personnel",
121
- "defaultValue": {},
122
- "required": true
123
- },
124
- {
125
- "name": "节点场景",
126
- "key": "task_type",
127
- "type": "Select",
128
- "options": [
129
- {
130
- "label": "审批节点",
131
- "value": 0,
132
- "useOperations": [
133
- 1,
134
- 2,
135
- 3,
136
- 4
137
- ]
138
- },
139
- {
140
- "label": "驳回节点",
141
- "value": 1,
142
- "useOperations": [
143
- 3
144
- ]
145
- }
146
- ],
147
- "defaultValue": 0
148
- },
149
- {
150
- "name": "操作",
151
- "key": "operations",
152
- "type": "Operation",
153
- "defaultValue": [],
154
- "required": true
155
- }
156
- ],
157
- "3": [
158
- {
159
- "name": "节点名称",
160
- "key": "node_name",
161
- "type": "Input"
162
- },
163
- {
164
- "name": "规则设置",
165
- "key": "expression",
166
- "type": "Expression",
167
- "defaultValue": "",
168
- "required": true
169
- }
170
- ],
171
5
  "5": [
172
6
  {
173
7
  "name": "节点名称",