You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
731 B
29 lines
731 B
"use strict"; |
|
const common_vendor = require("../../common/vendor.js"); |
|
const _sfc_main = { |
|
name: "myContainer", |
|
data() { |
|
return { |
|
time: "" |
|
}; |
|
}, |
|
mounted() { |
|
}, |
|
methods: { |
|
//处理滚动 |
|
handleScroll() { |
|
const time = Date.now(); |
|
if (time - this.time > 100) { |
|
this.time = time; |
|
common_vendor.index.createSelectorQuery().in(this).select(".inner-container").boundingClientRect((rect) => { |
|
console.log(rect); |
|
}).exec(); |
|
} |
|
} |
|
} |
|
}; |
|
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { |
|
return {}; |
|
} |
|
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]); |
|
wx.createComponent(Component);
|
|
|