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,158 +0,0 @@
1
- import { defineComponent } from "vue-demi";
2
-
3
- export default defineComponent({
4
- name: "preview-image",
5
- props: {
6
- // 图片列表
7
- images: {
8
- type: Array,
9
- defalut: () => [],
10
- },
11
- startPosition: {
12
- type: Number,
13
- defalut: 0,
14
- },
15
- // 展示
16
- visible: {
17
- type: Boolean,
18
- defalut: false,
19
- },
20
- // 当前位置
21
- indexd: {
22
- type: Number,
23
- defalut: 0,
24
- },
25
- // 单一展示
26
- isOne: {
27
- type: Boolean,
28
- defalut: false,
29
- },
30
- isStyle: {
31
- type: String,
32
- defalut: "",
33
- },
34
- },
35
- data() {
36
- return {
37
- imagesList: [],
38
-
39
- moveNum: 0,
40
- flag: false,
41
- // 当前屏幕宽度
42
- windowWidth: 0,
43
- // 初始获取当前触摸位置
44
- startX: 0,
45
- // 移动计数
46
- move: 0,
47
- startMove: 0,
48
- // 阈值
49
- maxX: 0,
50
- duration:
51
- "transition-duration: 0.2s;transition-timing-function:ease;",
52
- isIndex: 1,
53
- show: false,
54
- };
55
- },
56
-
57
- watch: {
58
- images: {
59
- handler(val, preVal) {
60
- this.imagesList = val;
61
- console.log("打印图片列表:::", this.imagesList);
62
- },
63
- //如果加了这个参数,值为true的话,就消除了惰性,watch会在创建后立即执行一次
64
- //那么首次执行,val为默认值,preVal为undefined
65
- immediate: true,
66
- //这个参数代表监听对象时,可以监听深度嵌套的对象属性
67
- deep: true,
68
- },
69
- visible: {
70
- handler(val, preVal) {
71
- this.show = val;
72
- console.log("打印:::", val);
73
- },
74
- immediate: true,
75
- },
76
- indexd: {
77
- handler(val, preVal) {
78
- if (val >= 0) {
79
- this.isIndex = val + 1;
80
- this.move = val * 100 * -1;
81
- }
82
- },
83
- immediate: true,
84
- },
85
- },
86
-
87
- methods: {
88
- touchstartView(e) {
89
- if (this.isOne) return;
90
- // 获取元素
91
- this.duration =
92
- "transition-duration: 0.05s;transition-timing-function:linear";
93
- this.flag = true;
94
- this.windowWidth =
95
- (document.documentElement.clientWidth ||
96
- document.body.clientWidth) / 100;
97
- this.startX = e.touches[0].clientX;
98
- this.startMove = this.move;
99
- },
100
- touchmoveView(e) {
101
- if (this.isOne) return;
102
- // 判断当前操作方向
103
- if (this.startX > e.touches[0].clientX) {
104
- if (this.move <= -((this.imagesList.length - 1) * 100)) {
105
- this.move = -((this.imagesList.length - 1) * 100);
106
- } else {
107
- this.move =
108
- this.startMove +
109
- Math.ceil(
110
- (e.touches[0].clientX - this.startX) /
111
- this.windowWidth
112
- );
113
- }
114
- } else if (this.startX < e.touches[0].clientX && this.move < 0) {
115
- if (this.move >= 0) {
116
- this.move = 0;
117
- } else {
118
- this.move =
119
- this.startMove +
120
- Math.ceil(
121
- (e.touches[0].clientX - this.startX) /
122
- this.windowWidth
123
- );
124
- }
125
- }
126
- },
127
- touchendView() {
128
- if (this.isOne) return;
129
- this.duration =
130
- "transition-duration: 0.2s;transition-timing-function:ease";
131
- let paint = Math.floor(Math.abs(this.move / 100));
132
- let num = Math.abs((this.move / 100) % 1);
133
- if (num > 0.5) {
134
- this.isIndex = paint + 2;
135
- this.move = (paint + 1) * 100 * -1;
136
- } else {
137
- this.isIndex = paint + 1;
138
- this.move = paint * 100 * -1;
139
- }
140
- this.flag = false;
141
- },
142
- handleClose() {
143
- this.$emit("update:visible", false);
144
- },
145
- },
146
-
147
- mounted() {
148
- // 渲染组件到body
149
- this.$nextTick(() => {
150
- const body = document.querySelector("body");
151
- if (body.append) {
152
- body.append(this.$el);
153
- } else {
154
- body.appendChild(this.$el);
155
- }
156
- });
157
- },
158
- });
@@ -1,59 +0,0 @@
1
- .preview-image {
2
- position: absolute;
3
- top: 0;
4
- left: 0;
5
- width: 100vw;
6
- height: 100vh;
7
- z-index: 3999;
8
- }
9
-
10
- .preview-image-view {
11
- width: 100%;
12
- height: 100%;
13
-
14
- position: relative;
15
- }
16
-
17
- .preview-image-view--img {
18
- min-width: 100%;
19
- position: fixed;
20
- top: 50%;
21
- display: inline-flex;
22
- flex-wrap: nowrap;
23
- justify-content: flex-start;
24
- align-items: center;
25
- z-index: 2999;
26
- }
27
-
28
- .preview-image-view--img .img-view {
29
- width: 100%;
30
- }
31
-
32
- .preview-image-mask {
33
- position: fixed;
34
- width: 100vw;
35
- height: 100vh;
36
- background-color: #000;
37
- opacity: 0.7;
38
- top: 0;
39
- left: 0;
40
- z-index: 1999;
41
- transition: all 0.2s ease;
42
- }
43
-
44
- .preview-image-view--page {
45
- position: absolute;
46
- width: 100%;
47
- bottom: 11px;
48
- z-index: 2999;
49
- display: flex;
50
- justify-content: center;
51
- }
52
-
53
- .preview-image-view--page .page-item {
54
- color: #fff;
55
- font-size: 15px;
56
- background-color: rgba(0, 0, 0, 0.5);
57
- padding: 1px 9px;
58
- border-radius: 11px;
59
- }
@@ -1,32 +0,0 @@
1
- <template>
2
- <div class="preview-image" v-if="visible">
3
- <div class="preview-image-mask" @click="handleClose"></div>
4
-
5
- <div
6
- class="preview-image-view--img"
7
- :style="`transform: translate(${move}%,-50%);${duration}${
8
- isOne ? 'justify-content: center;width:auto;' : ''
9
- }`"
10
- @touchstart="touchstartView"
11
- @touchmove="touchmoveView"
12
- @touchend="touchendView"
13
- >
14
- <img
15
- class="img-view"
16
- v-for="(v, i) in imagesList"
17
- :key="i"
18
- :src="v"
19
- :style="isOne ? isStyle : ''"
20
- />
21
- <!-- :style="`transform: translateX(${i * 100}%);`" -->
22
- </div>
23
- <div class="preview-image-view--page" v-if="!isOne">
24
- <span class="page-item">{{ isIndex }}/{{ imagesList.length }}</span>
25
- </div>
26
- <div class="preview-image-view--close"></div>
27
- </div>
28
- </template>
29
- <script src="./index.js"></script>
30
- <style lang="scss" scoped>
31
- @import "./index.scss";
32
- </style>