@mixd-id/web-scaffold 0.1.230406136 → 0.1.230406137
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/package.json +1 -1
- package/src/components/Image.vue +2 -0
- package/src/index.js +0 -1
- package/src/utils/helpers.mjs +2 -4
package/package.json
CHANGED
package/src/components/Image.vue
CHANGED
|
@@ -109,6 +109,7 @@ export default{
|
|
|
109
109
|
},
|
|
110
110
|
|
|
111
111
|
unmounted() {
|
|
112
|
+
this.$observe.unregister(this.$el)
|
|
112
113
|
this.$unresize(this.onResize)
|
|
113
114
|
},
|
|
114
115
|
|
|
@@ -259,6 +260,7 @@ export default{
|
|
|
259
260
|
watch:{
|
|
260
261
|
|
|
261
262
|
src(to){
|
|
263
|
+
this.mediaSrc = {}
|
|
262
264
|
this.loadSrc()
|
|
263
265
|
},
|
|
264
266
|
|
package/src/index.js
CHANGED
|
@@ -277,7 +277,6 @@ export default{
|
|
|
277
277
|
const onWindowResize = throttle(() => {
|
|
278
278
|
app.config.globalProperties.$screenPrefix = util.calculateMediaPrefix(window.innerWidth)
|
|
279
279
|
resizeEvents.forEach((fn) => fn())
|
|
280
|
-
console.log('1')
|
|
281
280
|
}, 500, { leading:true })
|
|
282
281
|
|
|
283
282
|
window.addEventListener('resize', onWindowResize)
|
package/src/utils/helpers.mjs
CHANGED
|
@@ -281,8 +281,7 @@ function observeInit(){
|
|
|
281
281
|
|
|
282
282
|
const observeCols = {}
|
|
283
283
|
|
|
284
|
-
const once = function(el, callback)
|
|
285
|
-
{
|
|
284
|
+
const once = function(el, callback){
|
|
286
285
|
if(typeof el.__observeKey !== 'undefined') return
|
|
287
286
|
|
|
288
287
|
intersectionObserver.observe(el)
|
|
@@ -292,8 +291,7 @@ function observeInit(){
|
|
|
292
291
|
el.__observeKey = key
|
|
293
292
|
}
|
|
294
293
|
|
|
295
|
-
const always = function(el, callback)
|
|
296
|
-
{
|
|
294
|
+
const always = function(el, callback){
|
|
297
295
|
if(typeof el.__observeKey !== 'undefined') return
|
|
298
296
|
|
|
299
297
|
intersectionObserver.observe(el)
|