uview-plus 3.4.1 → 3.4.3

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,4 +1,7 @@
1
- ## 3.4.1(2025-03-08
1
+ ## 3.4.2(2025-03-11
2
+ feat: step组件增加title插槽及增加辅助class便于自定义样式
3
+
4
+ ## 3.4.1(2025-03-11)
2
5
  feat: 新机制确保setConfig与http在nvue等环境下生效
3
6
 
4
7
  ## 3.3.74(2025-03-06)
@@ -30,16 +30,23 @@
30
30
  </view>
31
31
  </slot>
32
32
  </view>
33
- <view class="u-steps-item__content" :class="[`u-steps-item__content--${parentData.direction}`]"
34
- :style="[contentStyle]">
35
- <slot name="content">
36
- </slot>
33
+ <view class="u-steps-item__content" :class="[`u-steps-item__content--${parentData.direction}`,
34
+ parentData.current == index ? 'u-steps-item__content--current' : '']"
35
+ :style="[contentStyle]">
36
+ <slot name="content" :index="index">
37
+ </slot>
37
38
  <template v-if="!$slots['content']">
38
- <up-text :text="title" :type="parentData.current == index ? 'main' : 'content'" lineHeight="20px"
39
- :size="parentData.current == index ? 14 : 13"></up-text>
40
- <slot name="desc">
41
- <up-text :text="desc" type="tips" size="12"></up-text>
42
- </slot>
39
+ <view class="u-steps-item__content__title">
40
+ <slot name="title">
41
+ </slot>
42
+ <up-text v-if="!$slots['title']" :text="title" :type="parentData.current == index ? 'main' : 'content'" lineHeight="20px"
43
+ :size="parentData.current == index ? 14 : 13"></up-text>
44
+ </view>
45
+ <view class="u-steps-item__content__desc">
46
+ <slot name="desc">
47
+ </slot>
48
+ <up-text v-if="!$slots['desc']" :text="desc" type="tips" size="12"></up-text>
49
+ </view>
43
50
  </template>
44
51
  </view>
45
52
  <!-- <view
@@ -3,7 +3,7 @@
3
3
  <textarea
4
4
  class="u-textarea__field"
5
5
  :value="innerValue"
6
- :style="{ height: addUnit(height) }"
6
+ :style="fieldStyle"
7
7
  :placeholder="placeholder"
8
8
  :placeholder-style="addStyle(placeholderStyle, typeof placeholderStyle === 'string' ? 'string' : 'object')"
9
9
  :placeholder-class="placeholderClass"
@@ -145,7 +145,16 @@ export default {
145
145
  }
146
146
  // #endif
147
147
  },
148
- computed: {
148
+ computed: {
149
+ fieldStyle() {
150
+ let style = {};
151
+ style['height'] = addUnit(this.height);
152
+ if (this.autoHeight) {
153
+ style['height'] = 'auto';
154
+ style['minHeight'] = addUnit(this.height);
155
+ }
156
+ return style;
157
+ },
149
158
  // 组件的类名
150
159
  textareaClass() {
151
160
  let classes = [],
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "uview-plus",
3
3
  "name": "uview-plus",
4
4
  "displayName": "零云®uview-plus3.0重磅发布,全面的Vue3鸿蒙移动组件库。",
5
- "version": "3.4.1",
5
+ "version": "3.4.3",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",
@@ -32,7 +32,7 @@
32
32
  "qq": "598821125"
33
33
  },
34
34
  "declaration": {
35
- "ads": "",
35
+ "ads": "请注意本插件开发文档包含弹窗广告每日展示一次,源码纯净无广告。",
36
36
  "data": "无",
37
37
  "permissions": "无"
38
38
  },