ui-process-h5 0.1.36 → 1.0.5

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 (41) hide show
  1. package/README.md +0 -18
  2. package/package.json +15 -20
  3. package/scripts/postinstall.mjs +14 -0
  4. package/scripts/switch-cli.mjs +4 -0
  5. package/scripts/utils.mjs +60 -0
  6. package/v2/style.css +1 -0
  7. package/v2/ui-process-h5.js +13448 -0
  8. package/v2/ui-process-h5.umd.cjs +67 -0
  9. package/v2.7/style.css +1 -0
  10. package/v2.7/ui-process-h5.js +12825 -0
  11. package/v2.7/ui-process-h5.umd.cjs +67 -0
  12. package/v3/style.css +1 -0
  13. package/v3/ui-process-h5.js +10316 -0
  14. package/v3/ui-process-h5.umd.cjs +55 -0
  15. package/packages/components/approval/index.js +0 -0
  16. package/packages/components/process/index.js +0 -8
  17. package/packages/components/process/src/attchlist-upload.vue +0 -585
  18. package/packages/components/process/src/operation/backNode.vue +0 -141
  19. package/packages/components/process/src/operation/cancel.vue +0 -170
  20. package/packages/components/process/src/operation/ccTask.vue +0 -170
  21. package/packages/components/process/src/operation/complete.vue +0 -224
  22. package/packages/components/process/src/operation/counterSign.vue +0 -178
  23. package/packages/components/process/src/operation/delegateTask.vue +0 -168
  24. package/packages/components/process/src/operation/index.js +0 -9
  25. package/packages/components/process/src/operation/restart.vue +0 -172
  26. package/packages/components/process/src/popup.vue +0 -230
  27. package/packages/components/process/src/process.vue +0 -900
  28. package/packages/components/process/src/tab.vue +0 -459
  29. package/packages/components/process/src/tip.vue +0 -207
  30. package/packages/components/process/theme/img/add-file.png +0 -0
  31. package/packages/components/process/theme/img/del.png +0 -0
  32. package/packages/components/process/theme/img/doc.png +0 -0
  33. package/packages/components/process/theme/img/file.png +0 -0
  34. package/packages/components/process/theme/img/image.png +0 -0
  35. package/packages/components/process/theme/img/pdf.png +0 -0
  36. package/packages/components/process/theme/img/xls.png +0 -0
  37. package/packages/components/process/theme/img/zip.png +0 -0
  38. package/packages/components/process/theme/status/error.png +0 -0
  39. package/packages/components/process/theme/status/loading.png +0 -0
  40. package/packages/components/process/theme/status/success.png +0 -0
  41. package/packages/index.js +0 -4
@@ -1,230 +0,0 @@
1
- <template>
2
- <div>
3
- <div
4
- v-if="!isTips"
5
- class="top-popup"
6
- :style="
7
- show
8
- ? 'transform: translateY(0)'
9
- : 'transform: translateY(100%)'
10
- "
11
- >
12
- <div class="top-popup-header">
13
- <div class="header-cancel" @click="handleCancel">
14
- {{ cancelText }}
15
- </div>
16
- <div class="header-title">{{ titleText }}</div>
17
- <div class="header-comfig" @click="handleComfig">
18
- {{ comfigText }}
19
- </div>
20
- </div>
21
- <div class="top-popup-body">
22
- <slot name="default"></slot>
23
- </div>
24
- </div>
25
- <div
26
- class="top-tips"
27
- v-else
28
- :style="
29
- show
30
- ? 'visibility: visible; opacity: 1; transform: scale(1)'
31
- : 'visibility: hidden; opacity: 0; transform: scale(1.2)'
32
- "
33
- >
34
- <div class="top-tips-header">{{ titleText }}</div>
35
- <div class="top-tips-body">{{ context }}</div>
36
- <div class="top-tips-footer">
37
- <div class="top-tips-btn" @click="handleCancel">
38
- {{ cancelText }}
39
- </div>
40
- <div class="top-tips-btn" @click="handleComfig">
41
- {{ comfigText }}
42
- </div>
43
- </div>
44
- </div>
45
- <div
46
- class="top-popup-mask"
47
- :style="
48
- show && isMask
49
- ? 'visibility: visible; opacity: .7;'
50
- : 'visibility: hidden; opacity: 0;'
51
- "
52
- @click="isMaskClose && handleClose()"
53
- ></div>
54
- </div>
55
- </template>
56
- <script>
57
- export default {
58
- name: "TopPopup",
59
- props: {
60
- titleText: { default: "top-popup", type: String },// 标题文本
61
- context: { default: "内容", type: String },// 内容文本
62
- cancelText: { default: "取消", type: String },// 取消按钮文案
63
- comfigText: { default: "确定", type: String },// 确定按钮文案
64
- comfig: { default: null, type: Function },// 确定方法
65
- cancel: { default: null, type: Function }, // 取消方法
66
- isMask: { default: true, type: Boolean },// 是否开启蒙版
67
- isMaskClose: { default: true, type: Boolean },// 蒙版关闭功能
68
- isTips: { default: false, type: Boolean },//判断当前是否为dialog
69
- },
70
- data() {
71
- return {
72
- show: false,
73
- };
74
- },
75
-
76
- methods: {
77
- handleOpen() {
78
- this.show = true;
79
- },
80
- handleClose() {
81
- this.show = false;
82
- },
83
- handleCancel() {
84
- typeof this.cancel === "function" && this.cancel();
85
- this.handleClose();
86
- },
87
- handleComfig() {
88
- typeof this.comfig === "function" && this.comfig();
89
- },
90
- },
91
- mounted() {
92
- // 渲染组件到body
93
- this.$nextTick(() => {
94
- const body = document.querySelector("body");
95
- if (body.append) {
96
- body.append(this.$el);
97
- } else {
98
- body.appendChild(this.$el);
99
- }
100
- });
101
- },
102
- };
103
- </script>
104
- <style scoped>
105
- .top-popup {
106
- width: 100%;
107
- max-height: 80vh;
108
- min-height: 65vh;
109
- position: fixed;
110
- left: 0;
111
- background-color: #fff;
112
- z-index: 399;
113
- border-radius: 20px 20px 0 0;
114
- padding: 0 20px;
115
- box-sizing: border-box;
116
- transition: transform 0.3s ease;
117
- bottom: 0;
118
- overflow-x: hidden;
119
- overflow-y: auto;
120
- }
121
- .top-popup-mask {
122
- position: fixed;
123
- width: 100vw;
124
- height: 100vh;
125
- background-color: #000;
126
- opacity: 0.7;
127
- top: 0;
128
- left: 0;
129
- z-index: 299;
130
- transition: all 0.3s ease;
131
- }
132
- .top-popup-header {
133
- display: flex;
134
- justify-content: space-between;
135
- align-items: center;
136
- padding: 10px 0;
137
- font-size: 15px;
138
- }
139
-
140
- .top-popup-header .header-title {
141
- font-size: 16px;
142
- font-weight: 700;
143
- color: #333;
144
- }
145
-
146
- .top-popup-header .header-cancel {
147
- color: #333;
148
- }
149
- .top-popup-header .header-comfig {
150
- color: #1389ff;
151
- }
152
-
153
-
154
- .top-tips {
155
- width: 80vw;
156
- /* height: 200px; */
157
- border-radius: 11px;
158
- background-color: #fff;
159
- position: fixed;
160
- top: calc(50% - 100px);
161
- left: calc(50% - 40vw);
162
- z-index: 399;
163
- box-sizing: border-box;
164
- transition: all 0.3s ease;
165
- }
166
-
167
- .top-tips-header {
168
- display: flex;
169
- flex-direction: row;
170
- justify-content: center;
171
- padding-top: 25px;
172
- font-size: 15px;
173
- color: #323233;
174
- }
175
-
176
- .top-tips-body {
177
- display: flex;
178
- flex-direction: row;
179
- justify-content: center;
180
- align-items: center;
181
- padding: 20px;
182
- padding-top: 8px;
183
- font-size: 14px;
184
- color: #6c6c6c;
185
- }
186
-
187
- .top-tips-footer {
188
- display: flex;
189
- flex-direction: row;
190
- border-top-color: #f5f5f5;
191
- border-top-style: solid;
192
- border-top-width: 1px;
193
- position: relative;
194
- }
195
- .top-tips-footer::before {
196
- content: "";
197
- position: absolute;
198
- width: 100%;
199
- height: 0.5px;
200
- top: 0;
201
- left: 0;
202
- background-color: #f2f2f2;
203
- }
204
-
205
- .top-tips-btn {
206
- display: flex;
207
- flex: 1;
208
- flex-direction: row;
209
- justify-content: center;
210
- align-items: center;
211
- height: 45px;
212
- position: relative;
213
- font-size: 16px;
214
- color: #333;
215
- }
216
-
217
- .top-tips-btn:last-child {
218
- color: #ee0a24;
219
- }
220
-
221
- .top-tips-btn:last-child::before {
222
- content: "";
223
- position: absolute;
224
- width: 1px;
225
- height: 100%;
226
- top: 0;
227
- left: 0;
228
- background-color: #f2f2f2;
229
- }
230
- </style>