uview-plus 3.3.47 → 3.3.49

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.
Files changed (35) hide show
  1. package/changelog.md +4 -0
  2. package/components/u-album/u-album.vue +0 -1
  3. package/components/u-image/u-image.vue +32 -4
  4. package/components/u-input/u-input.vue +0 -1
  5. package/components/u-picker/picker.js +2 -1
  6. package/components/u-picker/props.js +5 -0
  7. package/components/u-picker/u-picker.vue +1 -0
  8. package/components/u-text/props.js +6 -1
  9. package/components/u-text/text.js +2 -1
  10. package/components/u-text/u-text.vue +15 -8
  11. package/libs/css/common.scss +1 -1
  12. package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
  13. package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
  14. package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
  15. package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
  16. package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
  17. package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
  18. package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
  19. package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
  20. package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
  21. package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
  22. package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
  23. package/libs/util/gcanvas/context-webgl/Program.js +0 -0
  24. package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
  25. package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
  26. package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
  27. package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
  28. package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
  29. package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
  30. package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
  31. package/libs/util/gcanvas/env/canvas.js +0 -0
  32. package/libs/util/gcanvas/env/image.js +0 -0
  33. package/libs/util/gcanvas/env/tool.js +0 -0
  34. package/libs/util/gcanvas/index.js +0 -0
  35. package/package.json +1 -1
package/changelog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 3.3.48(2024-11-29)
2
+ add: 文本行数限制样式提高到10行
3
+
4
+ del: 去除不跨端的inputmode
1
5
  ## 3.3.47(2024-11-28)
2
6
  fix: 时间选择器在hasInput模式下部分机型键盘弹出
3
7
 
@@ -119,7 +119,6 @@ export default {
119
119
  imageStyle() {
120
120
  return (index1, index2) => {
121
121
  const { space, rowCount, multipleSize, urls } = this,
122
- { addUnit, addStyle } = uni.$u,
123
122
  rowLen = this.showUrls.length,
124
123
  allLen = this.urls.length
125
124
  const style = {
@@ -20,6 +20,8 @@
20
20
  :lazy-load="lazyLoad"
21
21
  class="u-image__image"
22
22
  :style="{
23
+ width: addUnit(width),
24
+ height: addUnit(height),
23
25
  borderRadius: shape == 'circle' ? '10000px' : addUnit(radius)
24
26
  }"
25
27
  ></image>
@@ -125,17 +127,43 @@
125
127
  transStyle() {
126
128
  let style = {};
127
129
  // 通过调用addUnit()方法,如果有单位,如百分比,px单位等,直接返回,如果是纯粹的数值,则加上rpx单位
130
+ // #ifdef APP-NVUE
128
131
  style.width = addUnit(this.width);
129
132
  style.height = addUnit(this.height);
133
+ // #endif
134
+ // #ifndef APP-NVUE
135
+ if (this.width == '100%') {
136
+ style.width = this.width;
137
+ } else {
138
+ style.width = 'fit-content';
139
+ }
140
+ if (this.height == '100%') {
141
+ style.height = this.height;
142
+ } else {
143
+ style.height = 'fit-content';
144
+ }
145
+ // #endif
130
146
  return style;
131
147
  },
132
148
  wrapStyle() {
133
149
  let style = {};
134
150
  // 通过调用addUnit()方法,如果有单位,如百分比,px单位等,直接返回,如果是纯粹的数值,则加上rpx单位
135
- // style.width = addUnit(this.width);
136
- // style.height = addUnit(this.height);
137
- style.width = '100%';
138
- style.height = '100%';
151
+ // #ifdef APP-NVUE
152
+ style.width = addUnit(this.width);
153
+ style.height = addUnit(this.height);
154
+ // #endif
155
+ // #ifndef APP-NVUE
156
+ if (this.width == '100%') {
157
+ style.width = this.width;
158
+ } else {
159
+ style.width = 'fit-content';
160
+ }
161
+ if (this.height == '100%') {
162
+ style.height = this.height;
163
+ } else {
164
+ style.height = 'fit-content';
165
+ }
166
+ // #endif
139
167
  // 如果是显示圆形,设置一个很多的半径值即可
140
168
  style.borderRadius = this.shape == 'circle' ? '10000px' : addUnit(this.radius)
141
169
  // 如果设置圆角,必须要有hidden,否则可能圆角无效
@@ -20,7 +20,6 @@
20
20
  <input
21
21
  ref="input-native"
22
22
  class="u-input__content__field-wrapper__field"
23
- :inputmode="disabled || readonly ? 'none': ''"
24
23
  :style="[inputStyle]"
25
24
  :type="type"
26
25
  :focus="focus"
@@ -25,6 +25,7 @@ export default {
25
25
  keyName: 'text',
26
26
  closeOnClickOverlay: false,
27
27
  defaultIndex: [],
28
- immediateChange: true
28
+ immediateChange: true,
29
+ zIndex: 10076,
29
30
  }
30
31
  }
@@ -99,5 +99,10 @@ export const props = defineMixin({
99
99
  type: Boolean,
100
100
  default: false
101
101
  },
102
+ // 层级
103
+ zIndex: {
104
+ type: [String, Number],
105
+ default: () => defProps.picker.zIndex
106
+ },
102
107
  }
103
108
  })
@@ -10,6 +10,7 @@
10
10
  <u-popup
11
11
  :show="show || (hasInput && showByClickInput)"
12
12
  :mode="popupMode"
13
+ :zIndex="zIndex"
13
14
  @close="closeHandler"
14
15
  >
15
16
  <view class="u-picker">
@@ -107,6 +107,11 @@ export const props = defineMixin({
107
107
  wordWrap: {
108
108
  type: String,
109
109
  default: () => defProps.text.wordWrap
110
- }
110
+ },
111
+ // 占满剩余空间
112
+ flex1: {
113
+ type: Boolean,
114
+ default: () => defProps.text.flex1
115
+ }
111
116
  }
112
117
  })
@@ -32,7 +32,8 @@ export default {
32
32
  margin: 0,
33
33
  lineHeight: '',
34
34
  align: 'left',
35
- wordWrap: 'normal'
35
+ wordWrap: 'normal',
36
+ flex1: true
36
37
  }
37
38
 
38
39
  }
@@ -3,10 +3,7 @@
3
3
  class="u-text"
4
4
  :class="[customClass]"
5
5
  v-if="show"
6
- :style="{
7
- margin: margin,
8
- justifyContent: align === 'left' ? 'flex-start' : align === 'center' ? 'center' : 'flex-end'
9
- }"
6
+ :style="wrapStyle"
10
7
  @tap="clickHandler"
11
8
  >
12
9
  <text
@@ -116,6 +113,20 @@ export default {
116
113
  // #endif
117
114
  emits: ['click'],
118
115
  computed: {
116
+ wrapStyle() {
117
+ let style = {
118
+ margin: this.margin,
119
+ justifyContent: this.align === 'left' ? 'flex-start' : this.align === 'center' ? 'center' : 'flex-end'
120
+ }
121
+ // 占满剩余空间
122
+ if (this.flex1) {
123
+ style.flex = 1;
124
+ // #ifndef APP-NVUE
125
+ style.width = '100%';
126
+ // #endif
127
+ }
128
+ return style;
129
+ },
119
130
  valueStyle() {
120
131
  const style = {
121
132
  textDecoration: this.decoration,
@@ -170,10 +181,6 @@ export default {
170
181
  @include flex(row);
171
182
  align-items: center;
172
183
  flex-wrap: nowrap;
173
- flex: 1;
174
- /* #ifndef APP-NVUE */
175
- width: 100%;
176
- /* #endif */
177
184
 
178
185
  &__price {
179
186
  font-size: 14px;
@@ -1,6 +1,6 @@
1
1
  // 超出行数,自动显示行尾省略号,最多5行
2
2
  // 来自uview-plus的温馨提示:当您在控制台看到此报错,说明需要在App.vue的style标签加上【lang="scss"】
3
- @for $i from 1 through 5 {
3
+ @for $i from 1 through 10 {
4
4
  .u-line-#{$i},
5
5
  .up-line-#{$i} {
6
6
  /* #ifdef APP-NVUE */
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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.47",
5
+ "version": "3.3.49",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",