uview-pro 0.6.16 → 0.6.18

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 CHANGED
@@ -1,13 +1,39 @@
1
- ## 0.6.16(2026-08-20)
1
+ ## 0.6.18(2026-09-03)
2
2
 
3
3
  ### 🐛 Bug Fixes | Bug 修复
4
4
 
5
- - **steps:** 修复横向步骤条连线断开和超宽截断问题 ([92fecdc](https://github.com/anyup/uView-Pro/commit/92fecdc75df0b20e4247397f47551e4472d32c0b))
5
+ - **u-modal:** 修复弹窗确认按钮左侧边线不显示的问题 ([6713b60](https://github.com/anyup/uView-Pro/commit/6713b6096cf7e22bacfc8df9c5ef3b22bfee6176))
6
+
7
+ ### ✨ Features | 新功能
8
+
9
+ - **u-input:** u-input组件新增prefix前置插槽,可用于在输入框前渲染图标等内容(#177) ([e679b55](https://github.com/anyup/uView-Pro/commit/e679b554e7e61dec80b71e69ea7e6d9acca21283))
6
10
 
7
11
  ### 👥 Contributors
8
12
 
9
13
  <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
10
14
 
15
+ ## 0.6.17(2026-08-24)
16
+
17
+ ### 🐛 Bug Fixes | Bug 修复
18
+
19
+ - **u-link:** 修复u-link组件兼容多端渲染逻辑,头条小程序直接渲染文本,其他端保留插槽兼容 ([a918f56](https://github.com/anyup/uView-Pro/commit/a918f5608f199f0e61be0a2e98ad43560e7a6393))
20
+ - **u-text:** 修复u-text组件在link模式下,头条小程序不显示 ([c7ea8eb](https://github.com/anyup/uView-Pro/commit/c7ea8eb8cf6dc8257f9c88a070239583b7f82566))
21
+ - **u-text:** 简化link模式下的u-link组件写法 ([292c60e](https://github.com/anyup/uView-Pro/commit/292c60e375fbe3c580f3eae39fe25d395916bf64))
22
+
23
+ ### 👥 Contributors
24
+
25
+ <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
26
+
27
+ ## 0.6.16(2026-08-20)
28
+
29
+ ### 🐛 Bug Fixes | Bug 修复
30
+
31
+ - **steps:** 修复横向步骤条连线断开和超宽截断问题 ([92fecdc](https://github.com/anyup/uView-Pro/commit/92fecdc75df0b20e4247397f47551e4472d32c0b))
32
+
33
+ ### 👥 Contributors
34
+
35
+ <a href="https://github.com/anyup"><img src="https://github.com/anyup.png?size=40" width="40" height="40" alt="anyup" title="anyup"/></a>
36
+
11
37
  ## 0.6.15(2026-08-04)
12
38
 
13
39
  ### ♻️ Code Refactoring | 代码重构
@@ -16,6 +16,10 @@
16
16
  }"
17
17
  @tap.stop="inputClick"
18
18
  >
19
+ <!-- 前置插槽,在录入区之前渲染内容,如金额输入前的货币图标 -->
20
+ <view v-if="$slots.prefix" class="u-input__prefix">
21
+ <slot name="prefix" />
22
+ </view>
19
23
  <textarea
20
24
  v-if="type == 'textarea'"
21
25
  class="u-input__input u-input__textarea"
@@ -367,6 +371,13 @@ defineExpose({
367
371
  z-index: 2;
368
372
  }
369
373
 
374
+ &__prefix {
375
+ flex-shrink: 0;
376
+ margin-right: 10rpx;
377
+ @include vue-flex;
378
+ align-items: center;
379
+ }
380
+
370
381
  &__input {
371
382
  //height: 70rpx;
372
383
  font-size: 28rpx;
@@ -6,6 +6,11 @@ import { getColor } from '../../';
6
6
  * @description 超链接组件,支持多端跳转/复制/提示
7
7
  */
8
8
  export const LinkProps = {
9
+ /** 超链接文字 */
10
+ text: {
11
+ type: [String, Number] as PropType<string | number>,
12
+ default: ''
13
+ },
9
14
  /** 文字颜色 */
10
15
  color: {
11
16
  type: String,
@@ -9,7 +9,12 @@
9
9
  paddingBottom: underLine ? '0rpx' : '0'
10
10
  }"
11
11
  >
12
- <slot></slot>
12
+ <!-- #ifdef MP-TOUTIAO -->
13
+ {{ text }}
14
+ <!-- #endif -->
15
+ <!-- #ifndef MP-TOUTIAO -->
16
+ <slot>{{ text }}</slot>
17
+ <!-- #endif -->
13
18
  </text>
14
19
  </template>
15
20
 
@@ -45,7 +45,7 @@
45
45
  </view>
46
46
  <view
47
47
  v-if="effectiveConfig.showConfirmButton || slots['confirm-button']"
48
- class="u-model__footer__button hairline-left"
48
+ :class="['u-model__footer__button', effectiveConfig.showCancelButton ? 'u-border-left' : '']"
49
49
  :hover-stay-time="100"
50
50
  :hover-class="effectiveConfig.asyncClose ? 'none' : 'u-model__btn--hover'"
51
51
  :style="[confirmBtnStyle]"
@@ -25,9 +25,7 @@
25
25
  <slot>¥{{ displayValue }}</slot>
26
26
  </text>
27
27
  <!-- link 模式 -->
28
- <u-link v-else-if="props.mode === 'link'" :href="props.href" underLine>
29
- <slot>{{ displayValue }}</slot>
30
- </u-link>
28
+ <u-link v-else-if="props.mode === 'link'" :text="displayValue" :href="props.href" underLine />
31
29
  <template v-else-if="props.openType">
32
30
  <!-- prettier-ignore -->
33
31
  <button
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.16",
5
+ "version": "0.6.18",
6
6
  "description": "uView Pro是基于Vue3+TS的多平台UI框架,提供80+高质量组件、便捷工具和常用模板,支持多主题、暗黑模式、多语言,支持H5/APP/鸿蒙/小程序多端开发。已在鸿蒙应用商店上架,欢迎体验!",
7
7
  "main": "index.ts",
8
8
  "module": "index.ts",
package/readme.md CHANGED
@@ -9,6 +9,7 @@
9
9
  [![stars](https://img.shields.io/github/stars/anyup/uView-Pro?style=flat-square&logo=GitHub)](https://github.com/anyup/uView-Pro)
10
10
  [![forks](https://img.shields.io/github/forks/anyup/uView-Pro?style=flat-square&logo=GitHub)](https://github.com/anyup/uView-Pro)
11
11
  [![issues](https://img.shields.io/github/issues/anyup/uView-Pro?style=flat-square&logo=GitHub)](https://github.com/anyup/uView-Pro/issues)
12
+ [![atomgit star](https://atomgit.com/anyup/uView-Pro/star/badge.svg)](https://atomgit.com/anyup/uView-Pro)
12
13
  [![downloads](https://img.shields.io/npm/dm/uview-pro?logo=npm&link=https%3A%2F%2Fwww.npmjs.com%2Fpackage%2Fuview-pro&style=flat-square)](https://www.npmjs.com/package/uview-pro)
13
14
  [![npm version](https://img.shields.io/npm/v/uview-pro)](https://www.npmjs.com/package/uview-pro)
14
15
  [![Website](https://img.shields.io/badge/uView%20Pro-docs-blue?style=flat-square)](https://uviewpro.cn)