uview-pro 0.6.15 → 0.6.16
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/changelog.md +14 -4
- package/components/u-step/u-step.vue +28 -2
- package/components/u-steps/u-steps.vue +13 -1
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -1,14 +1,24 @@
|
|
|
1
|
-
## 0.6.
|
|
1
|
+
## 0.6.16(2026-08-20)
|
|
2
2
|
|
|
3
|
-
###
|
|
3
|
+
### 🐛 Bug Fixes | Bug 修复
|
|
4
4
|
|
|
5
|
-
- **
|
|
6
|
-
- **types:** 完善类型定义与包导出配置 ([d86d5cd](https://github.com/anyup/uView-Pro/commit/d86d5cd39d4e68adfa3000103fe90504727d978b))
|
|
5
|
+
- **steps:** 修复横向步骤条连线断开和超宽截断问题 ([92fecdc](https://github.com/anyup/uView-Pro/commit/92fecdc75df0b20e4247397f47551e4472d32c0b))
|
|
7
6
|
|
|
8
7
|
### 👥 Contributors
|
|
9
8
|
|
|
10
9
|
<a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
|
|
11
10
|
|
|
11
|
+
## 0.6.15(2026-08-04)
|
|
12
|
+
|
|
13
|
+
### ♻️ Code Refactoring | 代码重构
|
|
14
|
+
|
|
15
|
+
- **components:** 统一补全各组件内部依赖的子组件导入,支持单独组件引用 ([091b5bb](https://github.com/anyup/uView-Pro/commit/091b5bb70312f43026c9847cca0709cafccaaaaa))
|
|
16
|
+
- **types:** 完善类型定义与包导出配置 ([d86d5cd](https://github.com/anyup/uView-Pro/commit/d86d5cd39d4e68adfa3000103fe90504727d978b))
|
|
17
|
+
|
|
18
|
+
### 👥 Contributors
|
|
19
|
+
|
|
20
|
+
<a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
|
|
21
|
+
|
|
12
22
|
## 0.6.14(2026-07-30)
|
|
13
23
|
|
|
14
24
|
### 🐛 Bug Fixes | Bug 修复
|
|
@@ -42,6 +42,14 @@
|
|
|
42
42
|
<view class="u-steps__item__line" :class="['u-steps__item__line--' + mode]" v-if="showLine">
|
|
43
43
|
<u-line :direction="direction" length="100%" :hair-line="false" :color="unActiveColor"></u-line>
|
|
44
44
|
</view>
|
|
45
|
+
<!-- 横排模式下补左半连接线:节点宽度不一致时避免与上一个节点之间连线断开 -->
|
|
46
|
+
<view
|
|
47
|
+
class="u-steps__item__line"
|
|
48
|
+
:class="['u-steps__item__line--left--' + mode]"
|
|
49
|
+
v-if="direction === 'row' && childIndex > 0"
|
|
50
|
+
>
|
|
51
|
+
<u-line :direction="direction" length="100%" :hair-line="false" :color="unActiveColor"></u-line>
|
|
52
|
+
</view>
|
|
45
53
|
</view>
|
|
46
54
|
</template>
|
|
47
55
|
<script lang="ts">
|
|
@@ -156,6 +164,8 @@ $u-steps-item-dot-width: 20rpx;
|
|
|
156
164
|
flex-direction: column;
|
|
157
165
|
|
|
158
166
|
&--row {
|
|
167
|
+
// 步骤多时禁止收缩到内容宽度以下,超宽交给容器横向滚动,避免文字遮挡
|
|
168
|
+
flex: 1 0 auto;
|
|
159
169
|
align-items: center;
|
|
160
170
|
@include vue-flex;
|
|
161
171
|
flex-direction: column;
|
|
@@ -164,17 +174,31 @@ $u-steps-item-dot-width: 20rpx;
|
|
|
164
174
|
position: absolute;
|
|
165
175
|
z-index: 0;
|
|
166
176
|
|
|
177
|
+
// 右半线:自本节点圆心向右伸至自身右边缘,与下一节点的左半线无缝衔接
|
|
167
178
|
&--dot {
|
|
168
|
-
width: calc(
|
|
179
|
+
width: calc(50% - #{$u-steps-item-dot-width} / 2);
|
|
169
180
|
top: calc(#{$u-steps-item-dot-width} / 2);
|
|
170
181
|
left: calc(#{$u-steps-item-dot-width} / 2 + 50%);
|
|
171
182
|
}
|
|
172
183
|
|
|
184
|
+
// 左半线:自自身左边缘向左半圆心(不含圆心),补偿右半线在宽度不同时够不到下一节点圆心
|
|
185
|
+
&--left--dot {
|
|
186
|
+
width: calc(50% - #{$u-steps-item-dot-width} / 2);
|
|
187
|
+
top: calc(#{$u-steps-item-dot-width} / 2);
|
|
188
|
+
right: calc(#{$u-steps-item-dot-width} / 2 + 50%);
|
|
189
|
+
}
|
|
190
|
+
|
|
173
191
|
&--number {
|
|
174
|
-
width: calc(
|
|
192
|
+
width: calc(50% - #{$u-steps-item-number-width} / 2);
|
|
175
193
|
top: calc(#{$u-steps-item-number-width} / 2);
|
|
176
194
|
left: calc(#{$u-steps-item-number-width} / 2 + 50%);
|
|
177
195
|
}
|
|
196
|
+
|
|
197
|
+
&--left--number {
|
|
198
|
+
width: calc(50% - #{$u-steps-item-number-width} / 2);
|
|
199
|
+
top: calc(#{$u-steps-item-number-width} / 2);
|
|
200
|
+
right: calc(#{$u-steps-item-number-width} / 2 + 50%);
|
|
201
|
+
}
|
|
178
202
|
}
|
|
179
203
|
}
|
|
180
204
|
|
|
@@ -252,6 +276,8 @@ $u-steps-item-dot-width: 20rpx;
|
|
|
252
276
|
}
|
|
253
277
|
|
|
254
278
|
&__desc--row {
|
|
279
|
+
// 保持单行,超宽由容器横向滚动承载
|
|
280
|
+
white-space: nowrap;
|
|
255
281
|
color: $u-type-info;
|
|
256
282
|
font-size: 24rpx;
|
|
257
283
|
}
|
|
@@ -76,7 +76,19 @@ const props = defineProps(StepsProps);
|
|
|
76
76
|
|
|
77
77
|
const { children } = useParent('u-steps');
|
|
78
78
|
// 计算方向样式
|
|
79
|
-
const directionStyle = computed(() =>
|
|
79
|
+
const directionStyle = computed(() => {
|
|
80
|
+
const isRow = props.direction === 'row';
|
|
81
|
+
return {
|
|
82
|
+
flexDirection: props.direction as 'row' | 'column',
|
|
83
|
+
...(isRow
|
|
84
|
+
? {
|
|
85
|
+
// 内容总宽超出一行时横向滚动,避免右侧节点被截断
|
|
86
|
+
overflowX: 'auto',
|
|
87
|
+
flexWrap: 'nowrap'
|
|
88
|
+
}
|
|
89
|
+
: {})
|
|
90
|
+
};
|
|
91
|
+
});
|
|
80
92
|
|
|
81
93
|
defineExpose({
|
|
82
94
|
props,
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "uview-pro",
|
|
3
3
|
"name": "uview-pro",
|
|
4
4
|
"displayName": "【支持鸿蒙】uView Pro|基于Vue3+TS的高质量UI组件库,支持多主题、暗黑模式、多语言",
|
|
5
|
-
"version": "0.6.
|
|
5
|
+
"version": "0.6.16",
|
|
6
6
|
"description": "uView Pro是基于Vue3+TS的多平台UI框架,提供80+高质量组件、便捷工具和常用模板,支持多主题、暗黑模式、多语言,支持H5/APP/鸿蒙/小程序多端开发。已在鸿蒙应用商店上架,欢迎体验!",
|
|
7
7
|
"main": "index.ts",
|
|
8
8
|
"module": "index.ts",
|