ai.touchui-vue 1.35.1 → 1.35.2

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/lib/scroll.js CHANGED
@@ -206,7 +206,7 @@ module.exports = require("ai.touchui-vue/lib/mixins/locale");
206
206
  // ESM COMPAT FLAG
207
207
  __webpack_require__.r(__webpack_exports__);
208
208
 
209
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/scroll/src/scroll.vue?vue&type=template&id=483541b4
209
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/scroll/src/scroll.vue?vue&type=template&id=33620dd3
210
210
  var render = function () {
211
211
  var _vm = this
212
212
  var _h = _vm.$createElement
@@ -266,7 +266,7 @@ var staticRenderFns = []
266
266
  render._withStripped = true
267
267
 
268
268
 
269
- // CONCATENATED MODULE: ./packages/scroll/src/scroll.vue?vue&type=template&id=483541b4
269
+ // CONCATENATED MODULE: ./packages/scroll/src/scroll.vue?vue&type=template&id=33620dd3
270
270
 
271
271
  // EXTERNAL MODULE: external "ai.touchui-vue/lib/mixins/locale"
272
272
  var locale_ = __webpack_require__(2);
@@ -531,9 +531,11 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
531
531
  setTimeout(function () {
532
532
 
533
533
  // 计算初始化数据
534
- _this2.offsetHeight = _this2.$refs.content.offsetHeight;
535
- _this2.scrollHeight = _this2.$refs.content.scrollHeight;
536
- _this2.scrollerTop = _this2.$el.getBoundingClientRect().top;
534
+ if (_this2.$el && _this2.$refs.content) {
535
+ _this2.offsetHeight = _this2.$refs.content.offsetHeight;
536
+ _this2.scrollHeight = _this2.$refs.content.scrollHeight;
537
+ _this2.scrollerTop = _this2.$el.getBoundingClientRect().top;
538
+ }
537
539
 
538
540
  // 计算粘连点
539
541
  _this2.setStickies();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai.touchui-vue",
3
- "version": "1.35.1",
3
+ "version": "1.35.2",
4
4
  "description": "TouchUI Component Library for Vue.js.",
5
5
  "main": "lib/ai.touchui-vue.common.js",
6
6
  "files": [
@@ -243,9 +243,11 @@ export default {
243
243
  setTimeout(() => {
244
244
 
245
245
  // 计算初始化数据
246
- this.offsetHeight = this.$refs.content.offsetHeight
247
- this.scrollHeight = this.$refs.content.scrollHeight
248
- this.scrollerTop = this.$el.getBoundingClientRect().top
246
+ if (this.$el && this.$refs.content) {
247
+ this.offsetHeight = this.$refs.content.offsetHeight
248
+ this.scrollHeight = this.$refs.content.scrollHeight
249
+ this.scrollerTop = this.$el.getBoundingClientRect().top
250
+ }
249
251
 
250
252
  // 计算粘连点
251
253
  this.setStickies()