emacroh5lib 1.0.5 → 1.0.8
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.
@@ -0,0 +1,40 @@
|
|
1
|
+
/*!
|
2
|
+
* Sizzle CSS Selector Engine v2.3.6
|
3
|
+
* https://sizzlejs.com/
|
4
|
+
*
|
5
|
+
* Copyright JS Foundation and other contributors
|
6
|
+
* Released under the MIT license
|
7
|
+
* https://js.foundation/
|
8
|
+
*
|
9
|
+
* Date: 2021-02-16
|
10
|
+
*/
|
11
|
+
|
12
|
+
/*!
|
13
|
+
* Vue.js v2.6.14
|
14
|
+
* (c) 2014-2021 Evan You
|
15
|
+
* Released under the MIT License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
/*!
|
19
|
+
* jQuery JavaScript Library v3.6.0
|
20
|
+
* https://jquery.com/
|
21
|
+
*
|
22
|
+
* Includes Sizzle.js
|
23
|
+
* https://sizzlejs.com/
|
24
|
+
*
|
25
|
+
* Copyright OpenJS Foundation and other contributors
|
26
|
+
* Released under the MIT license
|
27
|
+
* https://jquery.org/license
|
28
|
+
*
|
29
|
+
* Date: 2021-03-02T17:08Z
|
30
|
+
*/
|
31
|
+
|
32
|
+
/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */
|
33
|
+
|
34
|
+
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
35
|
+
|
36
|
+
/**
|
37
|
+
* vue-class-component v7.2.3
|
38
|
+
* (c) 2015-present Evan You
|
39
|
+
* @license MIT
|
40
|
+
*/
|
package/dist/main.css
ADDED
@@ -0,0 +1,247 @@
|
|
1
|
+
.app-container[data-v-7a6f68ae] {
|
2
|
+
height: 100%;
|
3
|
+
width: 100%;
|
4
|
+
margin: 0;
|
5
|
+
padding: 0;
|
6
|
+
background-color: aqua;
|
7
|
+
}
|
8
|
+
.click-button[data-v-7a6f68ae] {
|
9
|
+
padding: 10px;
|
10
|
+
font-size: 16px;
|
11
|
+
color: white;
|
12
|
+
border-radius: 15px;
|
13
|
+
background-color: blue;
|
14
|
+
}
|
15
|
+
|
16
|
+
.duo-viewer {
|
17
|
+
position: fixed;
|
18
|
+
top: 0;
|
19
|
+
left: 0;
|
20
|
+
z-index: 10000;
|
21
|
+
width: 100%;
|
22
|
+
height: 100vh;
|
23
|
+
}
|
24
|
+
.duo-viewer-mask {
|
25
|
+
position: absolute;
|
26
|
+
top: 0;
|
27
|
+
left: 0;
|
28
|
+
width: 100%;
|
29
|
+
height: 100%;
|
30
|
+
background: rgba(0, 0, 0, 0.6);
|
31
|
+
z-index: 9;
|
32
|
+
}
|
33
|
+
.duo-viewer-mask__image {
|
34
|
+
cursor: -webkit-grab;
|
35
|
+
cursor: grab;
|
36
|
+
height: 750px;
|
37
|
+
position: absolute;
|
38
|
+
top: 50%;
|
39
|
+
left: 50%;
|
40
|
+
transform: translate(-50%, -50%);
|
41
|
+
z-index: 8;
|
42
|
+
transition-property: transform, height, width;
|
43
|
+
transition-duration: 0.3s, 0.3s, 0.3s;
|
44
|
+
}
|
45
|
+
.duo-viewer-footer {
|
46
|
+
position: absolute;
|
47
|
+
text-align: center;
|
48
|
+
bottom: 0;
|
49
|
+
left: 0;
|
50
|
+
width: 100%;
|
51
|
+
z-index: 10;
|
52
|
+
}
|
53
|
+
.duo-viewer-footer__title {
|
54
|
+
color: #cfcfcf;
|
55
|
+
position: absolute;
|
56
|
+
bottom: 95px;
|
57
|
+
left: 50%;
|
58
|
+
transform: translate(-50%, 0%);
|
59
|
+
z-index: 10;
|
60
|
+
width: 100%;
|
61
|
+
}
|
62
|
+
.duo-viewer-footer__toolbar {
|
63
|
+
position: absolute;
|
64
|
+
bottom: 60px;
|
65
|
+
left: 50%;
|
66
|
+
transform: translate(-50%, 0%);
|
67
|
+
z-index: 10;
|
68
|
+
}
|
69
|
+
.duo-viewer-footer__toolbar li {
|
70
|
+
margin: 2px;
|
71
|
+
background-color: rgba(0, 0, 0, 0.5);
|
72
|
+
border-radius: 50%;
|
73
|
+
cursor: pointer;
|
74
|
+
float: left;
|
75
|
+
height: 28px;
|
76
|
+
overflow: hidden;
|
77
|
+
transition: background-color 0.15s;
|
78
|
+
width: 28px;
|
79
|
+
position: relative;
|
80
|
+
}
|
81
|
+
.duo-viewer-footer__toolbar li::after {
|
82
|
+
position: absolute;
|
83
|
+
top: 0;
|
84
|
+
left: 0;
|
85
|
+
width: 100%;
|
86
|
+
height: 100%;
|
87
|
+
content: "";
|
88
|
+
display: inline-block;
|
89
|
+
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC) no-repeat;
|
90
|
+
}
|
91
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-in::after {
|
92
|
+
background-position: 4px 3px;
|
93
|
+
}
|
94
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__zoom-out::after {
|
95
|
+
background-position: -16px 3px;
|
96
|
+
}
|
97
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__one-to-one::after {
|
98
|
+
background-position: -35px 3px;
|
99
|
+
}
|
100
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__reset::after {
|
101
|
+
background-position: -56px 3px;
|
102
|
+
}
|
103
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__prev::after {
|
104
|
+
background-position: -77px 3px;
|
105
|
+
}
|
106
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__play {
|
107
|
+
width: 34px;
|
108
|
+
height: 34px;
|
109
|
+
margin-top: -2px;
|
110
|
+
}
|
111
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__play::after {
|
112
|
+
background-position: -93px 6px;
|
113
|
+
}
|
114
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__next::after {
|
115
|
+
background-position: -116px 3px;
|
116
|
+
}
|
117
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-left::after {
|
118
|
+
background-position: -136px 3px;
|
119
|
+
}
|
120
|
+
.duo-viewer-footer__toolbar li.duo-viewer-footer__rotate-right::after {
|
121
|
+
background-position: -156px 3px;
|
122
|
+
}
|
123
|
+
.duo-viewer-footer__navbar {
|
124
|
+
width: 100%;
|
125
|
+
height: 50px;
|
126
|
+
background: rgba(0, 0, 0, 0.9);
|
127
|
+
overflow: hidden;
|
128
|
+
}
|
129
|
+
.duo-viewer-footer__navbar-thumbnail-image {
|
130
|
+
height: 100%;
|
131
|
+
width: 80px;
|
132
|
+
-o-object-fit: fill;
|
133
|
+
object-fit: fill;
|
134
|
+
transform: translateX(-30px);
|
135
|
+
}
|
136
|
+
.duo-viewer-footer__navbar-thumbnail-item {
|
137
|
+
margin: 0 2px;
|
138
|
+
color: transparent;
|
139
|
+
cursor: pointer;
|
140
|
+
float: left;
|
141
|
+
font-size: 0;
|
142
|
+
width: 30px;
|
143
|
+
opacity: 0.2;
|
144
|
+
overflow: hidden;
|
145
|
+
transition: opacity 0.15s;
|
146
|
+
}
|
147
|
+
.duo-viewer-footer__navbar-thumbnail-item.viewer-current {
|
148
|
+
opacity: 0.9;
|
149
|
+
}
|
150
|
+
.duo-viewer-footer__navbar-thumbnail-wrap {
|
151
|
+
position: relative;
|
152
|
+
overflow: hidden;
|
153
|
+
width: 660px;
|
154
|
+
height: inherit;
|
155
|
+
margin: 0 auto;
|
156
|
+
}
|
157
|
+
.duo-viewer-footer__navbar-thumbnail-list {
|
158
|
+
padding: 10px 0;
|
159
|
+
width: auto;
|
160
|
+
box-sizing: border-box;
|
161
|
+
position: absolute;
|
162
|
+
top: 0;
|
163
|
+
left: 50%;
|
164
|
+
transition: all 0.3s;
|
165
|
+
}
|
166
|
+
.duo-viewer-close {
|
167
|
+
background-color: rgba(0, 0, 0, 0.9);
|
168
|
+
border-radius: 0% 0% 0% 100%;
|
169
|
+
cursor: pointer;
|
170
|
+
height: 50px;
|
171
|
+
overflow: hidden;
|
172
|
+
position: absolute;
|
173
|
+
right: 0;
|
174
|
+
top: 0;
|
175
|
+
transition: background-color 0.15s;
|
176
|
+
width: 50px;
|
177
|
+
z-index: 10;
|
178
|
+
line-height: 50px;
|
179
|
+
text-align: center;
|
180
|
+
}
|
181
|
+
.duo-viewer-close__off {
|
182
|
+
margin: 18px 12px;
|
183
|
+
position: relative;
|
184
|
+
width: 2em;
|
185
|
+
height: 0.3em;
|
186
|
+
background-color: #fff;
|
187
|
+
transform: rotate(45deg);
|
188
|
+
border-radius: 0.15em;
|
189
|
+
}
|
190
|
+
.duo-viewer-close__off:after {
|
191
|
+
content: "";
|
192
|
+
position: absolute;
|
193
|
+
width: 2em;
|
194
|
+
height: 0.3em;
|
195
|
+
top: 0;
|
196
|
+
left: 0;
|
197
|
+
background-color: #fff;
|
198
|
+
transform: rotate(90deg);
|
199
|
+
border-radius: 0.15em;
|
200
|
+
}
|
201
|
+
|
202
|
+
.vdr {
|
203
|
+
position: absolute;
|
204
|
+
box-sizing: border-box;
|
205
|
+
}
|
206
|
+
.vdr.active:before{
|
207
|
+
content: '';
|
208
|
+
width: 100%;
|
209
|
+
height: 100%;
|
210
|
+
position: absolute;
|
211
|
+
top: 0;
|
212
|
+
left: 0;
|
213
|
+
box-sizing: border-box;
|
214
|
+
outline: 1px dashed #d6d6d6;
|
215
|
+
}
|
216
|
+
.vdr-stick {
|
217
|
+
box-sizing: border-box;
|
218
|
+
position: absolute;
|
219
|
+
font-size: 1px;
|
220
|
+
background: #ffffff;
|
221
|
+
border: 1px solid #6c6c6c;
|
222
|
+
box-shadow: 0 0 2px #bbb;
|
223
|
+
}
|
224
|
+
.inactive .vdr-stick {
|
225
|
+
display: none;
|
226
|
+
}
|
227
|
+
.vdr-stick-tl, .vdr-stick-br {
|
228
|
+
cursor: nwse-resize;
|
229
|
+
}
|
230
|
+
.vdr-stick-tm, .vdr-stick-bm {
|
231
|
+
left: 50%;
|
232
|
+
cursor: ns-resize;
|
233
|
+
}
|
234
|
+
.vdr-stick-tr, .vdr-stick-bl {
|
235
|
+
cursor: nesw-resize;
|
236
|
+
}
|
237
|
+
.vdr-stick-ml, .vdr-stick-mr {
|
238
|
+
top: 50%;
|
239
|
+
cursor: ew-resize;
|
240
|
+
}
|
241
|
+
.vdr-stick.not-resizable{
|
242
|
+
display: none;
|
243
|
+
}
|
244
|
+
.content-container{
|
245
|
+
display: block;
|
246
|
+
position: relative;
|
247
|
+
}
|
package/package.json
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"name": "emacroh5lib",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.8",
|
4
4
|
"description": "EMacro前端组件库",
|
5
|
-
"main": "
|
6
|
-
"types": "./dist/types/index.d.ts",
|
5
|
+
"main": "dist/emacroh5lib.min.js",
|
7
6
|
"scripts": {
|
8
7
|
"build": "webpack --mode=production --node-env=production",
|
9
8
|
"build:dev": "webpack --mode=development",
|
package/src/index.ts
CHANGED
@@ -22,22 +22,12 @@ if (typeof window !== 'undefined' && (window as any).Vue) {
|
|
22
22
|
install((window as any).Vue);
|
23
23
|
}
|
24
24
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
25
|
+
|
29
26
|
// import HelloWorld from "@/components/HelloWorld.vue";
|
30
27
|
// import HelloWorld from "@/components/index";
|
31
28
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
29
|
+
|
40
30
|
|
41
31
|
|
42
32
|
export default {}
|
43
|
-
export { EMacro,
|
33
|
+
export { EMacro, ImageViewer, DragResizeView }
|
@@ -7,9 +7,7 @@
|
|
7
7
|
</template>
|
8
8
|
|
9
9
|
<script lang="ts">
|
10
|
-
|
11
|
-
|
12
|
-
|
10
|
+
|
13
11
|
import { Component, Prop, Vue } from "vue-property-decorator";
|
14
12
|
|
15
13
|
import $ from "jquery";
|
@@ -39,7 +37,7 @@ export default class ExcelExporter extends Vue {
|
|
39
37
|
{ a: "面料类", b: "26500", c: "12063", d: "45.5%" },
|
40
38
|
{ a: "面料类", b: "36500", c: "12063", d: "45.5%" },
|
41
39
|
{ a: "面料类", b: "46500", c: "12063", d: "45.5%" },
|
42
|
-
{ a: "面料类", b: "56500", c: "12063", d: "45.5%" },
|
40
|
+
{ a: "面料类11", b: "56500", c: "12063", d: "45.5%" },
|
43
41
|
],
|
44
42
|
};
|
45
43
|
|