ui-process-h5 0.1.40 → 1.0.6

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 (89) hide show
  1. package/README.md +171 -18
  2. package/package.json +21 -51
  3. package/build/configure/README.md +0 -171
  4. package/build/configure/package.json +0 -27
  5. package/index.html +0 -12
  6. package/src/App.vue +0 -151
  7. package/src/assets/font-icon/iconfont.scss +0 -57
  8. package/src/assets/font-icon/iconfont.ttf +0 -0
  9. package/src/assets/img/add-file.png +0 -0
  10. package/src/assets/img/arrow-right.png +0 -0
  11. package/src/assets/img/arrow.png +0 -0
  12. package/src/assets/img/check.png +0 -0
  13. package/src/assets/img/del.png +0 -0
  14. package/src/assets/img/doc.png +0 -0
  15. package/src/assets/img/file.png +0 -0
  16. package/src/assets/img/image.png +0 -0
  17. package/src/assets/img/pdf.png +0 -0
  18. package/src/assets/img/xls.png +0 -0
  19. package/src/assets/img/zip.png +0 -0
  20. package/src/assets/js/auth.js +0 -41
  21. package/src/assets/js/errorCode.js +0 -6
  22. package/src/assets/js/message.js +0 -352
  23. package/src/assets/js/request.js +0 -90
  24. package/src/assets/js/toast.js +0 -239
  25. package/src/assets/js/top.js +0 -229
  26. package/src/assets/js/utils.js +0 -82
  27. package/src/assets/js/vuePopper.js +0 -123
  28. package/src/assets/query.png +0 -0
  29. package/src/assets/status/error.png +0 -0
  30. package/src/assets/status/loading.png +0 -0
  31. package/src/assets/status/success.png +0 -0
  32. package/src/main.js +0 -15
  33. package/src/packages/attchUpload/index.js +0 -371
  34. package/src/packages/attchUpload/index.scss +0 -136
  35. package/src/packages/attchUpload/index.vue +0 -173
  36. package/src/packages/downSelect/index.js +0 -81
  37. package/src/packages/downSelect/index.scss +0 -82
  38. package/src/packages/downSelect/index.vue +0 -54
  39. package/src/packages/index.js +0 -6
  40. package/src/packages/popup/index.js +0 -61
  41. package/src/packages/popup/index.scss +0 -174
  42. package/src/packages/popup/index.vue +0 -79
  43. package/src/packages/preview/index.js +0 -36
  44. package/src/packages/preview/index.vue +0 -15
  45. package/src/packages/previewImage/index.js +0 -158
  46. package/src/packages/previewImage/index.scss +0 -59
  47. package/src/packages/previewImage/index.vue +0 -32
  48. package/src/packages/process/index.js +0 -679
  49. package/src/packages/process/index.scss +0 -164
  50. package/src/packages/process/index.vue +0 -189
  51. package/src/packages/process/operation/backNode.vue +0 -393
  52. package/src/packages/process/operation/cancel.vue +0 -399
  53. package/src/packages/process/operation/ccTask.vue +0 -461
  54. package/src/packages/process/operation/complete.vue +0 -488
  55. package/src/packages/process/operation/counterSign.vue +0 -485
  56. package/src/packages/process/operation/delegateTask.vue +0 -480
  57. package/src/packages/process/operation/index.js +0 -9
  58. package/src/packages/process/operation/restart.vue +0 -305
  59. package/src/packages/submitPopup/index.js +0 -296
  60. package/src/packages/submitPopup/index.scss +0 -83
  61. package/src/packages/submitPopup/index.vue +0 -138
  62. package/src/packages/tab/index.js +0 -207
  63. package/src/packages/tab/index.scss +0 -176
  64. package/src/packages/tab/index.vue +0 -155
  65. package/src/packages/tip/index.js +0 -74
  66. package/src/packages/tip/index.scss +0 -82
  67. package/src/packages/tip/index.vue +0 -57
  68. package/src/packages/viewAttchList/index.js +0 -132
  69. package/src/packages/viewAttchList/index.scss +0 -76
  70. package/src/packages/viewAttchList/index.vue +0 -112
  71. package/src/style.css +0 -80
  72. package/ui-process-h5/README.md +0 -171
  73. package/ui-process-h5/package.json +0 -27
  74. package/ui-process-h5/scripts/postinstall.mjs +0 -14
  75. package/ui-process-h5/scripts/switch-cli.mjs +0 -4
  76. package/ui-process-h5/scripts/utils.mjs +0 -60
  77. package/vite.config.ts +0 -78
  78. /package/{build/scripts → scripts}/postinstall.mjs +0 -0
  79. /package/{build/scripts → scripts}/switch-cli.mjs +0 -0
  80. /package/{build/scripts → scripts}/utils.mjs +0 -0
  81. /package/{ui-process-h5/v2 → v2}/style.css +0 -0
  82. /package/{ui-process-h5/v2 → v2}/ui-process-h5.js +0 -0
  83. /package/{ui-process-h5/v2 → v2}/ui-process-h5.umd.cjs +0 -0
  84. /package/{ui-process-h5/v2.7 → v2.7}/style.css +0 -0
  85. /package/{ui-process-h5/v2.7 → v2.7}/ui-process-h5.js +0 -0
  86. /package/{ui-process-h5/v2.7 → v2.7}/ui-process-h5.umd.cjs +0 -0
  87. /package/{ui-process-h5/v3 → v3}/style.css +0 -0
  88. /package/{ui-process-h5/v3 → v3}/ui-process-h5.js +0 -0
  89. /package/{ui-process-h5/v3 → v3}/ui-process-h5.umd.cjs +0 -0
@@ -1,74 +0,0 @@
1
- import { defineComponent } from "vue-demi";
2
- import error from "@/assets/status/error.png";
3
- import loading from "@/assets/status/loading.png";
4
- import success from "@/assets/status/success.png";
5
-
6
- export default defineComponent({
7
- name:"TopTips",
8
- props: {
9
- text: { default: "", type: String }, // tips文本展示
10
- type: { default: "default", type: String }, // tips 类型 (success, error, loading)
11
- statusTips: { default: false, type: Boolean }, // 开启状态展示
12
- },
13
- data() {
14
- return {
15
- show: false,
16
- status: "",
17
- timeOut: null,
18
- };
19
- },
20
- computed: {
21
- error() {
22
- return error;
23
- },
24
- loading() {
25
- return loading;
26
- },
27
- success() {
28
- return success;
29
- },
30
- },
31
- watch: {
32
- type: {
33
- handler(val, preVal) {
34
- if (val == "loading") {
35
- clearInterval(this.timeOut);
36
- return;
37
- } else {
38
- this.timeOut = setTimeout(() => {
39
- this.show = false;
40
- }, 1500);
41
- }
42
- },
43
- immediate: true,
44
- deep: true,
45
- },
46
- },
47
- mounted() {
48
- this.$nextTick(() => {
49
- const body = document.querySelector("body");
50
- if (body.append) {
51
- body.append(this.$el);
52
- } else {
53
- body.appendChild(this.$el);
54
- }
55
- });
56
- },
57
- methods: {
58
- handleOpen() {
59
- if (!this.show) {
60
- this.show = true;
61
- if (this.type == "loading") {
62
- clearInterval(this.timeOut);
63
- } else {
64
- this.timeOut = setTimeout(() => {
65
- this.show = false;
66
- }, 1500);
67
- }
68
- }
69
- },
70
- handleClose() {
71
- this.show = false;
72
- },
73
- },
74
- });
@@ -1,82 +0,0 @@
1
- .top-tipss {
2
- position: absolute;
3
- z-index: 2999;
4
- top: 50%;
5
- left: 50%;
6
- -webkit-transform: translate(-50%, -50%);
7
- transform: translate(-50%, -50%);
8
- text-align: center;
9
- max-width: 80%;
10
- transition: all 0.3s ease;
11
- }
12
-
13
- .top-tipss-mask {
14
- position: fixed;
15
- width: 100vw;
16
- height: 100vh;
17
- background-color: #000;
18
- opacity: 0.7;
19
- top: 0;
20
- left: 0;
21
- z-index: 1999;
22
- transition: all 0.3s ease;
23
- }
24
-
25
- .top-tipss-text {
26
- display: inline-block;
27
- vertical-align: middle;
28
- color: #fff;
29
- padding: 10px 20px;
30
- border-radius: 5px;
31
- font-size: 13px;
32
- text-align: center;
33
- max-width: 100%;
34
- word-break: break-all;
35
- white-space: normal;
36
- background-color: rgba(17, 17, 17, 0.7);
37
- }
38
- .top-tipss-status {
39
- width: 120px;
40
- height: 120px;
41
- border-radius: 12px;
42
- background-color: rgba(17, 17, 17, 0.7);
43
- display: flex;
44
- }
45
-
46
- .top-tipss-loadinig,
47
- .top-tipss-success,
48
- .top-tipss-error {
49
- width: 100%;
50
- height: 100%;
51
- display: flex;
52
- align-items: center;
53
- justify-content: center;
54
- flex-direction: column;
55
- }
56
-
57
- .top-tipss-loadinig img,
58
- .top-tipss-success img,
59
- .top-tipss-error img {
60
- width: 40px;
61
- height: 40px;
62
- }
63
-
64
- .top-tipss-loadinig img {
65
- -webkit-animation: rotation 0.8s linear infinite;
66
- animation: rotation 0.8s linear infinite;
67
- }
68
-
69
- .top-tipss-status-text {
70
- color: #fff;
71
- font-size: 12px;
72
- padding: 10px 5px 0;
73
- }
74
-
75
- @-webkit-keyframes rotation {
76
- 0% {
77
- transform: rotate(0deg);
78
- }
79
- 100% {
80
- transform: rotate(360deg);
81
- }
82
- }
@@ -1,57 +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="top-tipss-loadinig" v-if="type == 'loading'">
25
- <img :src="loading" />
26
- <div v-if="text" class="top-tipss-status-text">
27
- {{ text }}
28
- </div>
29
- </div>
30
- <div class="top-tipss-success" v-if="type == 'success'">
31
- <img :src="success" />
32
- <div v-if="text" class="top-tipss-status-text">
33
- {{ text }}
34
- </div>
35
- </div>
36
- <div class="top-tipss-error" v-if="type == 'error'">
37
- <img :src="error" />
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 src="./index.js"></script>
55
- <style lang="scss" scoped>
56
- @import "./index.scss";
57
- </style>
@@ -1,132 +0,0 @@
1
- import { defineComponent } from "vue-demi";
2
- // import dsBridge from "dsbridge";
3
-
4
- import PreView from "../preview/index.vue";
5
- import TopPopup from "../popup/index.vue";
6
- import PreviewImage from "../previewImage/index.vue";
7
-
8
- import del from "@/assets/img/del.png";
9
- import doc from "@/assets/img/doc.png";
10
- import file from "@/assets/img/file.png";
11
- import image from "@/assets/img/image.png";
12
- import pdf from "@/assets/img/pdf.png";
13
- import xls from "@/assets/img/xls.png";
14
- import zip from "@/assets/img/zip.png";
15
-
16
- export default defineComponent({
17
- name: "ViewAttchList",
18
- components: {
19
- PreView,
20
- TopPopup,
21
- PreviewImage,
22
- },
23
- computed: {
24
- del() {
25
- return del;
26
- },
27
- doc() {
28
- return doc;
29
- },
30
- file() {
31
- return file;
32
- },
33
- image() {
34
- return image;
35
- },
36
- pdf() {
37
- return pdf;
38
- },
39
- xls() {
40
- return xls;
41
- },
42
- zip() {
43
- return zip;
44
- },
45
- },
46
- props: {
47
- inList: {
48
- type: Array,
49
- default: () => [],
50
- },
51
- },
52
- data() {
53
- return {
54
- listData: [],
55
- imgIcon: ["jpg", "jpge", "png", "gif"],
56
- docIcon: ["doc", "docx"],
57
- xlsIcon: ["xls", "xlsx"],
58
- zipIcon: ["zip", "rar", "7z"],
59
- preList: [],
60
- fileUrl: "",
61
- visible: false,
62
-
63
- visibleImg: false,
64
- lists: [],
65
- indexd: 0,
66
- };
67
- },
68
- watch: {
69
- inList: {
70
- handler(val, preVal) {
71
- if (val.length) {
72
- this.listData = val;
73
-
74
- this.lists = [];
75
- let arr = [];
76
- val.map((v, i) => {
77
- if (
78
- this.imgIcon.includes(
79
- v.name.substring(v.name.lastIndexOf(".") + 1)
80
- )
81
- ) {
82
- }
83
- });
84
- arr = val.filter((value) => {
85
- return this.imgIcon.includes(
86
- value.name.substring(
87
- value.name.lastIndexOf(".") + 1
88
- )
89
- );
90
- });
91
- arr.forEach((v, i) => {
92
- this.lists.push(v.url);
93
- });
94
- }
95
- },
96
- immediate: true,
97
- deep: true,
98
- },
99
- },
100
- methods: {
101
- viewFile(val) {
102
- if (
103
- this.imgIcon.includes(
104
- val.url.substring(val.url.lastIndexOf(".") + 1)
105
- )
106
- ) {
107
- this.visibleImg = true;
108
- this.indexd = this.lists.indexOf(val.url);
109
- } else {
110
- this.fileUrl = val.url;
111
- this.visible = true;
112
- }
113
- },
114
- loadFile(val) {
115
- console.log("loadFile", val);
116
- if (val.url) {
117
- if (navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)) {
118
- window.open("CnSellersApp://"); //ios app协议
119
- window.setTimeout(function () {
120
- window.location.href = val.url;
121
- }, 2000);
122
- }
123
- if (navigator.userAgent.match(/android/i)) {
124
- window.open("sellingworldapp://"); //android app协议
125
- window.setTimeout(function () {
126
- window.location.href = val.url; // 下载地址
127
- }, 2000);
128
- }
129
- }
130
- },
131
- },
132
- });
@@ -1,76 +0,0 @@
1
- .wrap-header {
2
- height: 40px;
3
- width: 100%;
4
- display: flex;
5
- align-items: center;
6
- padding: 0 10px;
7
- }
8
- .wrap-header-back {
9
- transform: rotateY(180deg);
10
- width: 18px;
11
- height: 18px;
12
-
13
- }
14
- .wrap-header-back img {
15
- width: 100%;
16
- height: 100%;
17
- }
18
- .wrap-header-title {
19
- padding-left: calc(50% - 54px);
20
- font-size: 18px;
21
- color: #333;
22
- }
23
-
24
- .attch-list {
25
- width: 100%;
26
- }
27
- .list-items {
28
- display: flex;
29
- margin-top: 18px;
30
- padding: 0 20px 0 10px;
31
- }
32
-
33
- .list-items-icon {
34
- width: 36px;
35
- height: 40px;
36
- margin-right: 10px;
37
- line-height: 44px;
38
- }
39
- .list-items-icon .icon-img {
40
- width: 100%;
41
- height: 100%;
42
- }
43
-
44
- .list-items-info {
45
- width: 225px;
46
- }
47
-
48
- .info-name {
49
- font-size: 15px;
50
- color: #333;
51
- overflow-wrap: break-word;
52
- }
53
- .info-attribute {
54
- color: #999;
55
- font-size: 13px;
56
- margin-top: 4px;
57
- }
58
- .info-attribute-time {
59
- margin-right: 10px;
60
- }
61
-
62
- .list-items-download {
63
- width: 26px;
64
- margin-left: auto;
65
- color: #1389ff;
66
- font-size: 13px;
67
- line-height: 44px;
68
- white-space: nowrap;
69
- }
70
-
71
- .attch-list--white {
72
- text-align: center;
73
- margin-top: 50%;
74
- font-size: 15px;
75
- color: #333;
76
- }
@@ -1,112 +0,0 @@
1
- <template>
2
- <div class="process-wrap">
3
- <div class="attch-list" v-if="listData.length > 0">
4
- <div v-for="(v, i) of listData" :key="v.id" class="list-items">
5
- <div class="list-items-icon">
6
- <img
7
- v-if="
8
- xlsIcon.includes(
9
- v.name.substring(v.name.lastIndexOf('.') + 1)
10
- )
11
- "
12
- class="icon-img"
13
- :src="xls"
14
- />
15
- <img
16
- v-else-if="
17
- imgIcon.includes(
18
- v.name.substring(v.name.lastIndexOf('.') + 1)
19
- )
20
- "
21
- class="icon-img"
22
- :src="image"
23
- />
24
- <img
25
- v-else-if="
26
- v.name.substring(v.name.lastIndexOf('.') + 1) ==
27
- 'pdf'
28
- "
29
- class="icon-img"
30
- :src="pdf"
31
- />
32
- <img
33
- v-else-if="
34
- docIcon.includes(
35
- v.name.substring(v.name.lastIndexOf('.') + 1)
36
- )
37
- "
38
- class="icon-img"
39
- :src="doc"
40
- />
41
- <img
42
- v-else-if="
43
- zipIcon.includes(
44
- v.name.substring(v.name.lastIndexOf('.') + 1)
45
- )
46
- "
47
- class="icon-img"
48
- :src="zip"
49
- />
50
- <img v-else class="icon-img" :src="file" />
51
- </div>
52
- <div class="list-items-info" @click="viewFile(v)">
53
- <div class="info-name">
54
- <span class="info-name-text">{{ v.name }}</span>
55
- </div>
56
- <div class="info-attribute">
57
- <span class="info-attribute-time">{{
58
- v.uploadTime
59
- }}</span>
60
-
61
- <span class="info-attribute-size"
62
- >{{
63
- v.size < 1024
64
- ? v.size
65
- : v.size / 1024 > 1024
66
- ? parseFloat(
67
- (v.size / 1024 / 1024).toFixed(2)
68
- )
69
- : parseFloat((v.size / 1024).toFixed(2))
70
- }}{{
71
- v.size < 1024
72
- ? "b"
73
- : parseFloat((v.size / 1024).toFixed(2)) <
74
- 1024
75
- ? "kb"
76
- : "M"
77
- }}
78
- </span>
79
- </div>
80
- </div>
81
- <div class="list-items-download" @click="loadFile(v)">
82
- <span class="download-text">下载</span>
83
- </div>
84
- </div>
85
- </div>
86
- <div class="attch-list" v-else>
87
- <div class="attch-list--white">
88
- <div class="attch-list--label">暂无附件</div>
89
- </div>
90
- </div>
91
- <TopPopup
92
- v-bind:visible="visible"
93
- v-on:update:visible="(val) => (visible = val)"
94
- ref="TopPopup"
95
- titleText="附件预览"
96
- isDrawer
97
- :isIndex="99"
98
- >
99
- <PreView :file="fileUrl" />
100
- </TopPopup>
101
- <PreviewImage
102
- :images="lists"
103
- v-bind:visible="visibleImg"
104
- v-on:update:visible="(val) => (visibleImg = val)"
105
- :indexd="indexd"
106
- />
107
- </div>
108
- </template>
109
- <script src="./index.js"></script>
110
- <style lang="scss" scoped>
111
- @import "./index.scss";
112
- </style>
package/src/style.css DELETED
@@ -1,80 +0,0 @@
1
- :root {
2
- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
3
- line-height: 1.5;
4
- font-weight: 400;
5
-
6
- color-scheme: light dark;
7
- color: rgba(255, 255, 255, 0.87);
8
- background-color: #242424;
9
-
10
- font-synthesis: none;
11
- text-rendering: optimizeLegibility;
12
- -webkit-font-smoothing: antialiased;
13
- -moz-osx-font-smoothing: grayscale;
14
- -webkit-text-size-adjust: 100%;
15
- }
16
-
17
- a {
18
- font-weight: 500;
19
- color: #646cff;
20
- text-decoration: inherit;
21
- }
22
- a:hover {
23
- color: #535bf2;
24
- }
25
-
26
- body {
27
- margin: 0;
28
- display: flex;
29
- place-items: center;
30
- min-width: 320px;
31
- min-height: 100vh;
32
- }
33
-
34
- h1 {
35
- font-size: 3.2em;
36
- line-height: 1.1;
37
- }
38
-
39
- button {
40
- border-radius: 8px;
41
- border: 1px solid transparent;
42
- padding: 0.6em 1.2em;
43
- font-size: 1em;
44
- font-weight: 500;
45
- font-family: inherit;
46
- background-color: #1a1a1a;
47
- cursor: pointer;
48
- transition: border-color 0.25s;
49
- }
50
- button:hover {
51
- border-color: #646cff;
52
- }
53
- button:focus,
54
- button:focus-visible {
55
- outline: 4px auto -webkit-focus-ring-color;
56
- }
57
-
58
- .card {
59
- padding: 2em;
60
- }
61
-
62
- #app {
63
- max-width: 1280px;
64
- margin: 0 auto;
65
- padding: 2rem;
66
- text-align: center;
67
- }
68
-
69
- @media (prefers-color-scheme: light) {
70
- :root {
71
- color: #213547;
72
- background-color: #ffffff;
73
- }
74
- a:hover {
75
- color: #747bff;
76
- }
77
- button {
78
- background-color: #f9f9f9;
79
- }
80
- }