stellar-ui-plus 1.25.0 → 1.25.1

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.
@@ -1,6 +1,7 @@
1
1
  # Slider 滑块
2
2
 
3
3
  该组件一般用于表单中,手动选择一个区间范围的场景
4
+ 注意:在弹窗等初始隐藏的场景中使用时,组件显示后需通过 v-if 重新加载以计算宽度。
4
5
 
5
6
  ---$
6
7
 
@@ -97,9 +97,11 @@ const cmpActiveStyle = computed(() => {
97
97
  });
98
98
 
99
99
  onMounted(() => {
100
- handleWindowResize();
101
- uni.onWindowResize(handleWindowResize);
102
- calculateStepMarks();
100
+ setTimeout(() => {
101
+ handleWindowResize();
102
+ uni.onWindowResize(handleWindowResize);
103
+ calculateStepMarks();
104
+ }, 50);
103
105
  });
104
106
 
105
107
  onBeforeUnmount(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stellar-ui-plus",
3
- "version": "1.25.0",
3
+ "version": "1.25.1",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "MIT",