uview-plus 3.3.43 → 3.3.46

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 www.uviewui.com
3
+ Copyright (c) 2024 https://uiadmin.net/uview-plus
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img alt="logo" src="https://uviewui.com/common/logo.png" width="120" height="120" style="margin-bottom: 10px;">
2
+ <img alt="logo" src="https://uiadmin.net/uview-plus/common/logo.png" width="120" height="120" style="margin-bottom: 10px;">
3
3
  </p>
4
4
  <h3 align="center" style="margin: 30px 0 30px;font-weight: bold;font-size:40px;">uview-plus 3.0</h3>
5
5
  <h3 align="center">多平台快速开发的UI框架</h3>
@@ -12,9 +12,19 @@
12
12
 
13
13
  ## 说明
14
14
 
15
- uview-plus,是uni-app全面兼容vue3/nvue的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。uview-plus是基于uView2.x移植的支持vue3的版本,感谢uView。
15
+ uview-plus,是uni-app全面兼容vue3/nvue/鸿蒙/uni-app-x的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水。uview-plus是基于uView2.x移植的支持vue3的版本,感谢uView。
16
16
 
17
- ## [官方文档:https://uview-plus.jiangruyi.com](https://uview-plus.jiangruyi.com)
17
+ ## 可视化设计
18
+
19
+ uview-plus现已推出免费可视化设计,可以方便的进行页面可视化设计,导出源码即可使用。极大提高前端页面开发效率;如产品经理设计师直接使用更可作为高保真高可用原型制作工具,让设计稿即代码,无需传统的设计稿开发还原步骤。
20
+
21
+ <img src="https://s3.bmp.ovh/imgs/2024/11/24/fd58d00071e6e5df.png" width="900" height="auto" >
22
+ <img src="https://s3.bmp.ovh/imgs/2024/11/24/8e85a519fe627fb1.png" width="900" height="auto" >
23
+
24
+
25
+ ## 文档
26
+ [官方文档:https://uview-plus.jiangruyi.com](https://uview-plus.jiangruyi.com)
27
+ [备用文档:https://uiadmin.net/uview-plus](https://uiadmin.net/uview-plus)
18
28
 
19
29
 
20
30
  ## 预览
package/changelog.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 3.3.46(2024-11-26)
2
+ fix: 修复text传递事件参数
3
+ ## 3.3.45(2024-11-24)
4
+ add: navbar组件支持配置标题颜色
5
+
6
+ fix: 边框按钮警告类型下颜色变量使用错误
7
+
1
8
  ## 3.3.43(2024-11-18)
2
9
  fix: 支持瀑布流组件v-model置为[]
3
10
 
@@ -276,7 +276,7 @@ export default {
276
276
  if (!this.disabled && !this.loading) {
277
277
  // 进行节流控制,每this.throttle毫秒内,只在开始处执行
278
278
  throttle(() => {
279
- this.$emit("click");
279
+ this.$emit("click", e);
280
280
  }, this.throttleTime);
281
281
  }
282
282
  // 是否阻止事件传播
@@ -12,7 +12,7 @@ $u-button-icon-margin-left:4px !default;
12
12
  $u-button-plain-u-button-info-color:$u-info;
13
13
  $u-button-plain-u-button-success-color:$u-success;
14
14
  $u-button-plain-u-button-error-color:$u-error;
15
- $u-button-plain-u-button-warning-color:$u-error;
15
+ $u-button-plain-u-button-warning-color:$u-warning;
16
16
 
17
17
  .u-button {
18
18
  width: 100%;
@@ -20,9 +20,7 @@
20
20
  :lazy-load="lazyLoad"
21
21
  class="u-image__image"
22
22
  :style="{
23
- borderRadius: shape == 'circle' ? '10000px' : addUnit(radius),
24
- width: addUnit(width),
25
- height: addUnit(height)
23
+ borderRadius: shape == 'circle' ? '10000px' : addUnit(radius)
26
24
  }"
27
25
  ></image>
28
26
  <view
@@ -38,8 +36,6 @@
38
36
  <slot name="loading">
39
37
  <u-icon
40
38
  :name="loadingIcon"
41
- :width="width"
42
- :height="height"
43
39
  ></u-icon>
44
40
  </slot>
45
41
  </view>
@@ -47,16 +43,12 @@
47
43
  v-if="showError && isError && !loading"
48
44
  class="u-image__error"
49
45
  :style="{
50
- borderRadius: shape == 'circle' ? '50%' : addUnit(radius),
51
- width: addUnit(width),
52
- height: addUnit(height)
46
+ borderRadius: shape == 'circle' ? '50%' : addUnit(radius)
53
47
  }"
54
48
  >
55
49
  <slot name="error">
56
50
  <u-icon
57
51
  :name="errorIcon"
58
- :width="width"
59
- :height="height"
60
52
  ></u-icon>
61
53
  </slot>
62
54
  </view>
@@ -140,8 +132,10 @@
140
132
  wrapStyle() {
141
133
  let style = {};
142
134
  // 通过调用addUnit()方法,如果有单位,如百分比,px单位等,直接返回,如果是纯粹的数值,则加上rpx单位
143
- style.width = addUnit(this.width);
144
- style.height = addUnit(this.height);
135
+ // style.width = addUnit(this.width);
136
+ // style.height = addUnit(this.height);
137
+ style.width = '100%';
138
+ style.height = '100%';
145
139
  // 如果是显示圆形,设置一个很多的半径值即可
146
140
  style.borderRadius = this.shape == 'circle' ? '10000px' : addUnit(this.radius)
147
141
  // 如果设置圆角,必须要有hidden,否则可能圆角无效
@@ -20,6 +20,7 @@ export default {
20
20
  rightText: '',
21
21
  rightIcon: '',
22
22
  title: '',
23
+ titleColor: '',
23
24
  bgColor: '#ffffff',
24
25
  titleWidth: '400rpx',
25
26
  height: '44px',
@@ -48,6 +48,11 @@ export const props = defineMixin({
48
48
  type: [String, Number],
49
49
  default: () => defProps.navbar.title
50
50
  },
51
+ // 标题颜色
52
+ titleColor: {
53
+ type: String,
54
+ default: () => defProps.navbar.titleColor
55
+ },
51
56
  // 背景颜色
52
57
  bgColor: {
53
58
  type: String,
@@ -47,6 +47,7 @@
47
47
  class="u-line-1 u-navbar__content__title"
48
48
  :style="[{
49
49
  width: addUnit(titleWidth),
50
+ color: titleColor,
50
51
  }, addStyle(titleStyle)]"
51
52
  >{{ title }}</text>
52
53
  </slot>
@@ -85,11 +86,12 @@
85
86
  * @property {Boolean} placeholder 固定在顶部时,是否生成一个等高元素,以防止塌陷 (默认 false )
86
87
  * @property {Boolean} fixed 导航栏是否固定在顶部 (默认 false )
87
88
  * @property {Boolean} border 导航栏底部是否显示下边框 (默认 false )
88
- * @property {String} leftIcon 左边返回图标的名称,只能为uView自带的图标 (默认 'arrow-left' )
89
+ * @property {String} leftIcon 左边返回图标的名称,只能为uview-pls自带的图标 (默认 'arrow-left' )
89
90
  * @property {String} leftText 左边的提示文字
90
91
  * @property {String} rightText 右边的提示文字
91
- * @property {String} rightIcon 右边返回图标的名称,只能为uView自带的图标
92
+ * @property {String} rightIcon 右边返回图标的名称,只能为uview-plus自带的图标
92
93
  * @property {String} title 导航栏标题,如设置为空字符,将会隐藏标题占位区域
94
+ * @property {String} titleColor 文字颜色 (默认 '' )
93
95
  * @property {String} bgColor 导航栏背景设置 (默认 '#ffffff' )
94
96
  * @property {String | Number} titleWidth 导航栏标题的最大宽度,内容超出会以省略号隐藏 (默认 '400rpx' )
95
97
  * @property {String | Number} height 导航栏高度(不包括状态栏高度在内,内部自动加上)(默认 '44px' )
@@ -150,14 +150,14 @@ export default {
150
150
  },
151
151
  methods: {
152
152
  addStyle,
153
- clickHandler() {
153
+ clickHandler(e) {
154
154
  // 如果为手机号模式,拨打电话
155
155
  if (this.call && this.mode === 'phone') {
156
156
  uni.makePhoneCall({
157
157
  phoneNumber: this.text
158
158
  })
159
159
  }
160
- this.$emit('click')
160
+ this.$emit('click', e)
161
161
  }
162
162
  }
163
163
  }
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.3.43",
5
+ "version": "3.3.46",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",
package/types/comps.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- declare module '@vue/runtime-core' {
1
+ declare module 'vue' {
2
2
  export interface GlobalComponents {
3
3
  // 基础组件
4
4
  ['up-icon']: typeof import('./comps/icon')['Icon']