emacroh5lib 1.0.18 → 1.0.19

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.
@@ -23,4 +23,14 @@
23
23
  right: 300px;
24
24
  box-shadow: 0 0 2px #AAA;
25
25
  background-color: white;
26
+ }
27
+
28
+ .filler2 {
29
+ width: 100px;
30
+ height: 100px;
31
+ display: inline-block;
32
+ position: absolute;
33
+ top: 0;
34
+ left: 0;
35
+ background-color: red;
26
36
  }
@@ -10,18 +10,22 @@
10
10
 
11
11
  <div class="list" id="list">
12
12
 
13
- <DragResizeViewTs v-for="(rect, index) in rects" :key="index" :isStorage="true" :name="rect.name" :w="rect.width" :h="rect.height"
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 }">dsdsfd</div>
21
- </DragResizeViewTs>
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 DragResizeViewTs from "@/views/DragResizeViewTs/index.vue";
33
- // import DragResizeViewTs from "@/views/DragResizeView/index.vue";
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
- DragResizeViewTs
48
+ DragResizeView,
49
+ Draw
45
50
  },
46
51
  mounted() {
47
52
 
package/tsconfig.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "declarationDir": "./dist/types/", // 声明文件打包的位置
11
11
  "declarationMap": false, // 是否生成声明文件map文件(便于调试)
12
12
  "moduleResolution": "node",
13
- "module": "es6",
13
+ "module": "esnext",
14
14
  "target": "es6", // 转化成的目标语言
15
15
  "baseUrl": "./",
16
16
  "strict": true,