emacroh5lib 1.0.10 → 1.0.13
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/dist/main.css +46 -0
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/views/DragResizeView/vue-drag-resize.js +11 -9
package/dist/main.css
CHANGED
@@ -199,3 +199,49 @@
|
|
199
199
|
border-radius: 0.15em;
|
200
200
|
}
|
201
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
package/src/index.ts
CHANGED
@@ -208,14 +208,6 @@ export default {
|
|
208
208
|
this.parentWidth = this.parentW ? this.parentW : this.parentElement.clientWidth;
|
209
209
|
this.parentHeight = this.parentH ? this.parentH : this.parentElement.clientHeight;
|
210
210
|
|
211
|
-
if (this.name.trim() !== '' && this.isStorage) {
|
212
|
-
let info = JSON.parse(localStorage.getItem("DragResizeView_Info_" + this.name))
|
213
|
-
this.x = info.left
|
214
|
-
this.y = info.top
|
215
|
-
this.w = info.width
|
216
|
-
this.h = info.height
|
217
|
-
}
|
218
|
-
|
219
211
|
this.left = this.x;
|
220
212
|
this.top = this.y;
|
221
213
|
this.right = this.parentWidth - (this.w === 'auto' ? this.$refs.container.scrollWidth : this.w) - this.left;
|
@@ -245,6 +237,16 @@ export default {
|
|
245
237
|
cancelHandle.setAttribute('data-drag-cancel', this._uid);
|
246
238
|
});
|
247
239
|
}
|
240
|
+
|
241
|
+
if (this.name.trim() !== '' && this.isStorage) {
|
242
|
+
let info = JSON.parse(localStorage.getItem("DragResizeView_Info_" + this.name))
|
243
|
+
if (info !== null) {
|
244
|
+
this.left = info.left
|
245
|
+
this.top = info.top
|
246
|
+
this.width = info.width
|
247
|
+
this.height = info.height
|
248
|
+
}
|
249
|
+
}
|
248
250
|
},
|
249
251
|
|
250
252
|
beforeDestroy() {
|
@@ -709,7 +711,7 @@ export default {
|
|
709
711
|
throw "unspecified name"
|
710
712
|
}
|
711
713
|
|
712
|
-
localStorage.setItem("DragResizeView_Info_" + this.name, JSON.stringify(this.rect))
|
714
|
+
localStorage.setItem("DragResizeView_Info_" + this.name, JSON.stringify(this.rect))
|
713
715
|
}
|
714
716
|
|
715
717
|
},
|