im-ui-mobile 0.1.11 → 0.1.12

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.
@@ -56,7 +56,7 @@
56
56
  </template>
57
57
 
58
58
  <script lang="ts" setup>
59
- import { ref, computed, watch, nextTick, useSlots } from 'vue'
59
+ import { ref, computed, watch, nextTick, onMounted } from 'vue'
60
60
  import type { StepperProps, StepperEmits } from '../../types/components/stepper'
61
61
  import ImIcon from '../im-icon/im-icon.vue'
62
62
 
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <!-- 虚拟列表容器 -->
3
- <scroll-view class="virtual-list" :scroll-y="true" :scroll-with-animation="true" :show-scrollbar="false"
3
+ <scroll-view class="im-virtual-list" :scroll-y="true" :scroll-with-animation="true" :show-scrollbar="false"
4
4
  :enhanced="true" :bounces="false" :lower-threshold="lowerThreshold" :upper-threshold="upperThreshold"
5
5
  :scroll-top="scrollTop" :scroll-into-view="scrollIntoViewId" @scroll="handleScroll"
6
6
  @scrolltolower="handleScrollToLower" @scrolltoupper="handleScrollToUpper">
@@ -313,7 +313,7 @@ const clearScrollTimer = () => {
313
313
  const measureContainer = () => {
314
314
  nextTick(() => {
315
315
  const query = uni.createSelectorQuery().in(getCurrentInstance())
316
- query.select('.virtual-list').boundingClientRect((rect: any) => {
316
+ query.select('.im-virtual-list').boundingClientRect((rect: any) => {
317
317
  if (rect && rect.height) {
318
318
  containerHeight.value = rect.height
319
319
  }
@@ -379,7 +379,7 @@ defineExpose({
379
379
  </script>
380
380
 
381
381
  <style lang="scss" scoped>
382
- .virtual-list {
382
+ .im-virtual-list {
383
383
  // min-height: 200rpx;
384
384
  // height: 100vh;
385
385
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "im-ui-mobile",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "A Vue3.0 + Typescript instant messaging component library for Uniapp",
5
5
  "type": "module",
6
6
  "main": "index.js",