ui-process-h5 0.1.36 → 0.1.40
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/build/configure/README.md +171 -0
- package/build/configure/package.json +27 -0
- package/build/scripts/postinstall.mjs +14 -0
- package/build/scripts/switch-cli.mjs +4 -0
- package/build/scripts/utils.mjs +60 -0
- package/index.html +12 -0
- package/package.json +48 -20
- package/src/App.vue +151 -0
- package/src/assets/font-icon/iconfont.scss +57 -0
- package/src/assets/font-icon/iconfont.ttf +0 -0
- package/src/assets/img/arrow-right.png +0 -0
- package/src/assets/img/arrow.png +0 -0
- package/src/assets/img/check.png +0 -0
- package/src/assets/js/auth.js +41 -0
- package/src/assets/js/errorCode.js +6 -0
- package/src/assets/js/message.js +352 -0
- package/src/assets/js/request.js +90 -0
- package/src/assets/js/toast.js +239 -0
- package/src/assets/js/top.js +229 -0
- package/src/assets/js/utils.js +82 -0
- package/src/assets/js/vuePopper.js +123 -0
- package/src/assets/query.png +0 -0
- package/src/main.js +15 -0
- package/src/packages/attchUpload/index.js +371 -0
- package/src/packages/attchUpload/index.scss +136 -0
- package/src/packages/attchUpload/index.vue +173 -0
- package/src/packages/downSelect/index.js +81 -0
- package/src/packages/downSelect/index.scss +82 -0
- package/src/packages/downSelect/index.vue +54 -0
- package/src/packages/index.js +6 -0
- package/src/packages/popup/index.js +61 -0
- package/src/packages/popup/index.scss +174 -0
- package/src/packages/popup/index.vue +79 -0
- package/src/packages/preview/index.js +36 -0
- package/src/packages/preview/index.vue +15 -0
- package/src/packages/previewImage/index.js +158 -0
- package/src/packages/previewImage/index.scss +59 -0
- package/src/packages/previewImage/index.vue +32 -0
- package/{packages/components/process/src/process.vue → src/packages/process/index.js} +219 -440
- package/src/packages/process/index.scss +164 -0
- package/src/packages/process/index.vue +189 -0
- package/src/packages/process/operation/backNode.vue +393 -0
- package/src/packages/process/operation/cancel.vue +399 -0
- package/src/packages/process/operation/ccTask.vue +461 -0
- package/src/packages/process/operation/complete.vue +488 -0
- package/src/packages/process/operation/counterSign.vue +485 -0
- package/src/packages/process/operation/delegateTask.vue +480 -0
- package/src/packages/process/operation/restart.vue +305 -0
- package/src/packages/submitPopup/index.js +296 -0
- package/src/packages/submitPopup/index.scss +83 -0
- package/src/packages/submitPopup/index.vue +138 -0
- package/src/packages/tab/index.js +207 -0
- package/src/packages/tab/index.scss +176 -0
- package/src/packages/tab/index.vue +155 -0
- package/src/packages/tip/index.js +74 -0
- package/src/packages/tip/index.scss +82 -0
- package/src/packages/tip/index.vue +57 -0
- package/src/packages/viewAttchList/index.js +132 -0
- package/src/packages/viewAttchList/index.scss +76 -0
- package/src/packages/viewAttchList/index.vue +112 -0
- package/src/style.css +80 -0
- package/ui-process-h5/README.md +171 -0
- package/ui-process-h5/package.json +27 -0
- package/ui-process-h5/scripts/postinstall.mjs +14 -0
- package/ui-process-h5/scripts/switch-cli.mjs +4 -0
- package/ui-process-h5/scripts/utils.mjs +60 -0
- package/ui-process-h5/v2/style.css +1 -0
- package/ui-process-h5/v2/ui-process-h5.js +13467 -0
- package/ui-process-h5/v2/ui-process-h5.umd.cjs +67 -0
- package/ui-process-h5/v2.7/style.css +1 -0
- package/ui-process-h5/v2.7/ui-process-h5.js +12844 -0
- package/ui-process-h5/v2.7/ui-process-h5.umd.cjs +67 -0
- package/ui-process-h5/v3/style.css +1 -0
- package/ui-process-h5/v3/ui-process-h5.js +10336 -0
- package/ui-process-h5/v3/ui-process-h5.umd.cjs +55 -0
- package/vite.config.ts +78 -0
- package/packages/components/approval/index.js +0 -0
- package/packages/components/process/index.js +0 -8
- package/packages/components/process/src/attchlist-upload.vue +0 -585
- package/packages/components/process/src/operation/backNode.vue +0 -141
- package/packages/components/process/src/operation/cancel.vue +0 -170
- package/packages/components/process/src/operation/ccTask.vue +0 -170
- package/packages/components/process/src/operation/complete.vue +0 -224
- package/packages/components/process/src/operation/counterSign.vue +0 -178
- package/packages/components/process/src/operation/delegateTask.vue +0 -168
- package/packages/components/process/src/operation/restart.vue +0 -172
- package/packages/components/process/src/popup.vue +0 -230
- package/packages/components/process/src/tab.vue +0 -459
- package/packages/components/process/src/tip.vue +0 -207
- package/packages/index.js +0 -4
- /package/{packages/components/process/theme → src/assets}/img/add-file.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/del.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/doc.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/file.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/image.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/pdf.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/xls.png +0 -0
- /package/{packages/components/process/theme → src/assets}/img/zip.png +0 -0
- /package/{packages/components/process/theme → src/assets}/status/error.png +0 -0
- /package/{packages/components/process/theme → src/assets}/status/loading.png +0 -0
- /package/{packages/components/process/theme → src/assets}/status/success.png +0 -0
- /package/{packages/components/process/src → src/packages/process}/operation/index.js +0 -0
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div
|
|
4
|
-
v-if="!statusTips"
|
|
5
|
-
class="top-tipss"
|
|
6
|
-
:style="
|
|
7
|
-
show
|
|
8
|
-
? 'visibility: visible; opacity: 1;'
|
|
9
|
-
: 'visibility: hidden; opacity: 0;'
|
|
10
|
-
"
|
|
11
|
-
>
|
|
12
|
-
<div v-if="text" class="top-tipss-text">{{ text }}</div>
|
|
13
|
-
</div>
|
|
14
|
-
<div
|
|
15
|
-
v-else
|
|
16
|
-
class="top-tipss"
|
|
17
|
-
:style="
|
|
18
|
-
show
|
|
19
|
-
? 'visibility: visible; opacity: 1;'
|
|
20
|
-
: 'visibility: hidden; opacity: 0;'
|
|
21
|
-
"
|
|
22
|
-
>
|
|
23
|
-
<div class="top-tipss-status">
|
|
24
|
-
<div :class="status" v-if="type == 'loading'">
|
|
25
|
-
<img src="../theme/status/loading.png" />
|
|
26
|
-
<div v-if="text" class="top-tipss-status-text">
|
|
27
|
-
{{ text }}
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
<div :class="status" v-if="type == 'success'">
|
|
31
|
-
<img src="../theme/status/success.png" />
|
|
32
|
-
<div v-if="text" class="top-tipss-status-text">
|
|
33
|
-
{{ text }}
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
<div :class="status" v-if="type == 'error'">
|
|
37
|
-
<img src="../theme/status/error.png" />
|
|
38
|
-
<div v-if="text" class="top-tipss-status-text">
|
|
39
|
-
{{ text }}
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
</div>
|
|
43
|
-
</div>
|
|
44
|
-
<div
|
|
45
|
-
class="top-tipss-mask"
|
|
46
|
-
:style="
|
|
47
|
-
show && statusTips
|
|
48
|
-
? 'visibility: visible; opacity: .7;'
|
|
49
|
-
: 'visibility: hidden; opacity: 0;'
|
|
50
|
-
"
|
|
51
|
-
></div>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
54
|
-
<script>
|
|
55
|
-
export default {
|
|
56
|
-
props: {
|
|
57
|
-
text: { default: "", type: String },
|
|
58
|
-
type: { default: "default", type: String },
|
|
59
|
-
statusTips: { default: false, type: Boolean },
|
|
60
|
-
},
|
|
61
|
-
data() {
|
|
62
|
-
return {
|
|
63
|
-
show: false,
|
|
64
|
-
status: "",
|
|
65
|
-
};
|
|
66
|
-
},
|
|
67
|
-
watch: {
|
|
68
|
-
type: {
|
|
69
|
-
handler(val, preVal) {
|
|
70
|
-
switch (val) {
|
|
71
|
-
case "loading":
|
|
72
|
-
this.status = "top-tipss-loadinig";
|
|
73
|
-
break;
|
|
74
|
-
case "success":
|
|
75
|
-
this.status = "top-tipss-success";
|
|
76
|
-
setTimeout(() => {
|
|
77
|
-
this.handleClose();
|
|
78
|
-
}, 1500);
|
|
79
|
-
break;
|
|
80
|
-
case "error":
|
|
81
|
-
this.status = "top-tipss-error";
|
|
82
|
-
setTimeout(() => {
|
|
83
|
-
this.handleClose();
|
|
84
|
-
}, 1500);
|
|
85
|
-
break;
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
immediate: true,
|
|
89
|
-
deep: true,
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
mounted() {
|
|
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
|
-
methods: {
|
|
103
|
-
handleOpen() {
|
|
104
|
-
if (
|
|
105
|
-
!this.show &&
|
|
106
|
-
(this.type == "success" ||
|
|
107
|
-
this.type == "error" ||
|
|
108
|
-
this.type == "default")
|
|
109
|
-
) {
|
|
110
|
-
this.show = true;
|
|
111
|
-
setTimeout(() => {
|
|
112
|
-
this.handleClose();
|
|
113
|
-
}, 1500);
|
|
114
|
-
} else {
|
|
115
|
-
this.show = true;
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
handleClose() {
|
|
119
|
-
this.show = false;
|
|
120
|
-
},
|
|
121
|
-
},
|
|
122
|
-
};
|
|
123
|
-
</script>
|
|
124
|
-
<style>
|
|
125
|
-
.top-tipss {
|
|
126
|
-
position: absolute;
|
|
127
|
-
z-index: 2999;
|
|
128
|
-
top: 50%;
|
|
129
|
-
left: 50%;
|
|
130
|
-
-webkit-transform: translate(-50%, -50%);
|
|
131
|
-
transform: translate(-50%, -50%);
|
|
132
|
-
text-align: center;
|
|
133
|
-
max-width: 80%;
|
|
134
|
-
transition: all 0.3s ease;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
.top-tipss-mask {
|
|
138
|
-
position: fixed;
|
|
139
|
-
width: 100vw;
|
|
140
|
-
height: 100vh;
|
|
141
|
-
background-color: #000;
|
|
142
|
-
opacity: 0.7;
|
|
143
|
-
top: 0;
|
|
144
|
-
left: 0;
|
|
145
|
-
z-index: 1999;
|
|
146
|
-
transition: all 0.3s ease;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.top-tipss-text {
|
|
150
|
-
display: inline-block;
|
|
151
|
-
vertical-align: middle;
|
|
152
|
-
color: #fff;
|
|
153
|
-
padding: 10px 20px;
|
|
154
|
-
border-radius: 5px;
|
|
155
|
-
font-size: 13px;
|
|
156
|
-
text-align: center;
|
|
157
|
-
max-width: 100%;
|
|
158
|
-
word-break: break-all;
|
|
159
|
-
white-space: normal;
|
|
160
|
-
background-color: rgba(17, 17, 17, 0.7);
|
|
161
|
-
}
|
|
162
|
-
.top-tipss-status {
|
|
163
|
-
width: 120px;
|
|
164
|
-
height: 120px;
|
|
165
|
-
border-radius: 12px;
|
|
166
|
-
background-color: rgba(17, 17, 17, 0.7);
|
|
167
|
-
display: flex;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.top-tipss-loadinig,
|
|
171
|
-
.top-tipss-success,
|
|
172
|
-
.top-tipss-error {
|
|
173
|
-
width: 100%;
|
|
174
|
-
height: 100%;
|
|
175
|
-
display: flex;
|
|
176
|
-
align-items: center;
|
|
177
|
-
justify-content: center;
|
|
178
|
-
flex-direction: column;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.top-tipss-loadinig img,
|
|
182
|
-
.top-tipss-success img,
|
|
183
|
-
.top-tipss-error img {
|
|
184
|
-
width: 40px;
|
|
185
|
-
height: 40px;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.top-tipss-loadinig img {
|
|
189
|
-
-webkit-animation: rotation 0.8s linear infinite;
|
|
190
|
-
animation: rotation 0.8s linear infinite;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.top-tipss-status-text {
|
|
194
|
-
color: #fff;
|
|
195
|
-
padding-top: 10px;
|
|
196
|
-
font-size: 12px;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
@-webkit-keyframes rotation {
|
|
200
|
-
0% {
|
|
201
|
-
transform: rotate(0deg);
|
|
202
|
-
}
|
|
203
|
-
100% {
|
|
204
|
-
transform: rotate(360deg);
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
</style>
|
package/packages/index.js
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|