emacroh5lib 1.0.14 → 1.0.18

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/dist/main.css CHANGED
@@ -1,18 +1,3 @@
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
1
  .duo-viewer {
17
2
  position: fixed;
18
3
  top: 0;
@@ -199,49 +184,3 @@
199
184
  border-radius: 0.15em;
200
185
  }
201
186
 
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,6 +1,6 @@
1
1
  {
2
2
  "name": "emacroh5lib",
3
- "version": "1.0.14",
3
+ "version": "1.0.18",
4
4
  "description": "EMacro前端组件库",
5
5
  "main": "dist/emacroh5lib.min.js",
6
6
  "scripts": {
package/src/index.ts CHANGED
@@ -4,10 +4,11 @@ import { EMacro } from "./utilities/File";
4
4
 
5
5
  import FileViewer from './views/FileViewer/index.vue'
6
6
  import ImageViewer from './views/ImageViewer/index.vue'
7
- import DragResizeView from './views/DragResizeView/index.vue'
7
+ import DragResizeView from './views/DragResizeViewTs/index.vue'
8
+ import DragView from './views/Draw/index.vue'
8
9
  import MessageBoxTest from "@/components/MessageBoxTest";
9
10
 
10
- const components = [FileViewer, ImageViewer];
11
+ const components = [FileViewer, ImageViewer, DragResizeView, DragView];
11
12
 
12
13
  const install = (Vue: any) => {
13
14
  if ((install as any).installed) return;
@@ -30,4 +31,4 @@ if (typeof window !== 'undefined' && (window as any).Vue) {
30
31
 
31
32
 
32
33
  export default {}
33
- export { EMacro,FileViewer, ImageViewer, DragResizeView }
34
+ export { EMacro,FileViewer, ImageViewer, DragResizeView, DragView }
@@ -185,7 +185,7 @@ export default {
185
185
  top: null,
186
186
  right: null,
187
187
  bottom: null,
188
- minHeight: null,
188
+ minHeight: null
189
189
  };
190
190
  },
191
191
 
@@ -240,6 +240,7 @@ export default {
240
240
 
241
241
  if (this.name.trim() !== '' && this.isStorage) {
242
242
  let info = JSON.parse(localStorage.getItem("DragResizeView_Info_" + this.name))
243
+ console.log("拖动", info);
243
244
  if (info !== null) {
244
245
  this.left = info.left
245
246
  this.top = info.top
@@ -0,0 +1,59 @@
1
+ .vdr {
2
+ position: absolute;
3
+ box-sizing: border-box;
4
+ }
5
+
6
+ .vdr.active:before {
7
+ content: '';
8
+ width: 100%;
9
+ height: 100%;
10
+ position: absolute;
11
+ top: 0;
12
+ left: 0;
13
+ box-sizing: border-box;
14
+ outline: 1px dashed #d6d6d6;
15
+ }
16
+
17
+ .vdr-stick {
18
+ box-sizing: border-box;
19
+ position: absolute;
20
+ font-size: 1px;
21
+ background: #ffffff;
22
+ border: 2px solid #6c6c6c;
23
+ box-shadow: 0 0 2px #bbb;
24
+ }
25
+
26
+ .inactive .vdr-stick {
27
+ display: none;
28
+ }
29
+
30
+ .vdr-stick-tl,
31
+ .vdr-stick-br {
32
+ cursor: nwse-resize;
33
+ }
34
+
35
+ .vdr-stick-tm,
36
+ .vdr-stick-bm {
37
+ left: 50%;
38
+ cursor: ns-resize;
39
+ }
40
+
41
+ .vdr-stick-tr,
42
+ .vdr-stick-bl {
43
+ cursor: nesw-resize;
44
+ }
45
+
46
+ .vdr-stick-ml,
47
+ .vdr-stick-mr {
48
+ top: 50%;
49
+ cursor: ew-resize;
50
+ }
51
+
52
+ .vdr-stick.not-resizable {
53
+ display: none;
54
+ }
55
+
56
+ .content-container {
57
+ display: block;
58
+ position: relative;
59
+ }