emacroh5lib 1.0.18 → 1.0.21
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/emacroh5lib.min.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +3 -3
- package/src/utilities/File.ts +74 -4
- package/src/views/{DragResizeViewTs → DragResizeView}/index.less +0 -0
- package/src/views/DragResizeView/index.vue +955 -3
- package/src/views/DragResizeViewJs/index.vue +3 -0
- package/src/views/{DragResizeView → DragResizeViewJs}/vue-drag-resize.css +0 -0
- package/src/views/{DragResizeView → DragResizeViewJs}/vue-drag-resize.html +0 -0
- package/src/views/{DragResizeView → DragResizeViewJs}/vue-drag-resize.js +0 -0
- package/src/views/Draw/index.less +2 -2
- package/src/views/Draw/index.vue +354 -348
- package/src/views/TestView/index.less +10 -0
- package/src/views/TestView/index.vue +11 -6
- package/tsconfig.json +1 -1
- package/src/views/DragResizeViewTs/index.vue +0 -904
@@ -10,18 +10,22 @@
|
|
10
10
|
|
11
11
|
<div class="list" id="list">
|
12
12
|
|
13
|
-
<
|
13
|
+
<DragResizeView v-for="(rect, index) in rects" :key="index" :isStorage="true" :name="rect.name" :w="rect.width" :h="rect.height"
|
14
14
|
:x="rect.left" :y="rect.top" :parentW="listWidth" :parentH="listHeight" :axis="rect.axis"
|
15
15
|
:isActive="rect.active" :minw="rect.minw" :minh="rect.minh" :isDraggable="rect.draggable"
|
16
16
|
:isResizable="rect.resizable" :parentLimitation="rect.parentLim" :snapToGrid="rect.snapToGrid"
|
17
17
|
:aspectRatio="rect.aspectRatio" :z="rect.zIndex" :contentClass="rect.class" v-on:activated="activateEv(index)"
|
18
18
|
v-on:deactivated="deactivateEv(index)" v-on:dragging="changePosition($event, index)"
|
19
19
|
v-on:resizing="changeSize($event, index)">
|
20
|
-
<div class="filler" :style="{ backgroundColor: rect.color }"
|
21
|
-
</
|
20
|
+
<div class="filler" :style="{ backgroundColor: rect.color }"></div>
|
21
|
+
</DragResizeView>
|
22
22
|
|
23
23
|
</div>
|
24
24
|
|
25
|
+
<Draw>
|
26
|
+
<div class="filler2">111</div>
|
27
|
+
</Draw>
|
28
|
+
|
25
29
|
|
26
30
|
</div>
|
27
31
|
</template>
|
@@ -29,8 +33,8 @@
|
|
29
33
|
<script lang="ts">
|
30
34
|
import { Component, Vue } from "vue-property-decorator";
|
31
35
|
import ImageViewer from "@/views/ImageViewer/index.vue";
|
32
|
-
import
|
33
|
-
|
36
|
+
import DragResizeView from "@/views/DragResizeView/index.vue";
|
37
|
+
import Draw from "@/views/Draw/index.vue";
|
34
38
|
|
35
39
|
import { formatJson, export_json_to_excel, number_to_excel, testToExcel } from "./Export2Excel"
|
36
40
|
|
@@ -41,7 +45,8 @@ import LAY_EXCEL from 'lay-excel';
|
|
41
45
|
@Component({
|
42
46
|
components: {
|
43
47
|
ImageViewer,
|
44
|
-
|
48
|
+
DragResizeView,
|
49
|
+
Draw
|
45
50
|
},
|
46
51
|
mounted() {
|
47
52
|
|
package/tsconfig.json
CHANGED