uview-plus 3.4.43 → 3.4.45
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 -0
- package/components/u-index-anchor/u-index-anchor.vue +12 -0
- package/components/u-index-list/u-index-list.vue +1 -0
- package/components/u-picker/u-picker.vue +4 -4
- package/components/u-picker-data/u-picker-data.vue +3 -1
- package/components/u-search/u-search.vue +3 -2
- package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
- package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
- package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
- package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
- package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
- package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
- package/libs/util/gcanvas/context-webgl/Program.js +0 -0
- package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
- package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
- package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
- package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
- package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
- package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
- package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
- package/libs/util/gcanvas/env/canvas.js +0 -0
- package/libs/util/gcanvas/env/image.js +0 -0
- package/libs/util/gcanvas/env/tool.js +0 -0
- package/libs/util/gcanvas/index.js +0 -0
- package/package.json +1 -1
- package/types/comps/search.d.ts +8 -0
package/changelog.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 3.4.45(2025-07-01)
|
|
2
|
+
fix: 修复picker-data组件缺少name
|
|
3
|
+
|
|
4
|
+
fix: 优化picker高度单位
|
|
5
|
+
|
|
6
|
+
## 3.4.44(2025-06-30)
|
|
7
|
+
fix: 修复indexList中stikcy属性写死的问题(always true)
|
|
8
|
+
|
|
9
|
+
feat: 搜索框添加新的右侧插槽
|
|
10
|
+
|
|
11
|
+
fix: 修复indexList中丢失的select event
|
|
12
|
+
|
|
13
|
+
fix: 解决因为层级问题导致点击picker选择器无法正常弹出
|
|
14
|
+
|
|
1
15
|
## 3.4.43(2025-06-16)
|
|
2
16
|
feat: table2支持header插槽
|
|
3
17
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
<!-- #endif -->
|
|
5
5
|
<view
|
|
6
6
|
class="u-index-anchor u-border-bottom"
|
|
7
|
+
:class="{ 'u-index-anchor--sticky': parentSticky }"
|
|
7
8
|
:ref="`u-index-anchor-${text}`"
|
|
8
9
|
:style="{
|
|
9
10
|
height: addUnit(height),
|
|
@@ -73,6 +74,12 @@
|
|
|
73
74
|
// #endif
|
|
74
75
|
}
|
|
75
76
|
},
|
|
77
|
+
computed: {
|
|
78
|
+
parentSticky() {
|
|
79
|
+
const indexList = $parent.call(this, "u-index-list");
|
|
80
|
+
return indexList ? indexList.sticky : true;
|
|
81
|
+
},
|
|
82
|
+
},
|
|
76
83
|
}
|
|
77
84
|
</script>
|
|
78
85
|
|
|
@@ -86,6 +93,11 @@
|
|
|
86
93
|
padding-left: 15px;
|
|
87
94
|
z-index: 1;
|
|
88
95
|
|
|
96
|
+
&--sticky {
|
|
97
|
+
position: sticky;
|
|
98
|
+
top: 0;
|
|
99
|
+
}
|
|
100
|
+
|
|
89
101
|
&__text {
|
|
90
102
|
@include flex;
|
|
91
103
|
align-items: center;
|
|
@@ -389,6 +389,7 @@
|
|
|
389
389
|
// 如果偏移量太小,前后得出的会是同一个索引字母,为了防抖,进行返回
|
|
390
390
|
if (currentIndex === this.activeIndex) return
|
|
391
391
|
this.activeIndex = currentIndex
|
|
392
|
+
this.$emit('select', this.uIndexList[currentIndex])
|
|
392
393
|
// #ifndef APP-NVUE || MP-WEIXIN
|
|
393
394
|
// 在非nvue中,由于anchor和item都在u-index-item中,所以需要对index-item进行偏移
|
|
394
395
|
this.scrollIntoView = `u-index-item-${this.uIndexList[currentIndex].charCodeAt(0)}`
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
<slot name="toolbar-bottom"></slot>
|
|
39
39
|
<picker-view
|
|
40
40
|
class="u-picker__view"
|
|
41
|
-
:indicatorStyle="`height: ${addUnit(itemHeight)}`"
|
|
41
|
+
:indicatorStyle="`height: ${addUnit(itemHeight, 'px')}`"
|
|
42
42
|
:value="innerIndex"
|
|
43
43
|
:immediateChange="immediateChange"
|
|
44
44
|
:style="{
|
|
45
|
-
height: `${addUnit(visibleItemCount * itemHeight)}`
|
|
45
|
+
height: `${addUnit(visibleItemCount * itemHeight, 'px')}`
|
|
46
46
|
}"
|
|
47
47
|
@change="changeHandler"
|
|
48
48
|
>
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
v-for="(item1, index1) in item"
|
|
59
59
|
:key="index1"
|
|
60
60
|
:style="{
|
|
61
|
-
height: addUnit(itemHeight),
|
|
62
|
-
lineHeight: addUnit(itemHeight),
|
|
61
|
+
height: addUnit(itemHeight, 'px'),
|
|
62
|
+
lineHeight: addUnit(itemHeight, 'px'),
|
|
63
63
|
fontWeight: index1 === innerIndex[index] ? 'bold' : 'normal',
|
|
64
64
|
display: 'block'
|
|
65
65
|
}"
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
<script>
|
|
28
28
|
export default {
|
|
29
|
+
name: 'u-picker-data',
|
|
29
30
|
props: {
|
|
30
31
|
modelValue: {
|
|
31
32
|
type: [String, Number],
|
|
@@ -122,7 +123,8 @@ export default {
|
|
|
122
123
|
left: 0;
|
|
123
124
|
right: 0;
|
|
124
125
|
bottom: 0;
|
|
126
|
+
z-index:10;
|
|
125
127
|
}
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
|
-
</style>
|
|
130
|
+
</style>
|
|
@@ -65,6 +65,7 @@
|
|
|
65
65
|
customStyle="line-height: 12px"
|
|
66
66
|
></u-icon>
|
|
67
67
|
</view>
|
|
68
|
+
<slot name="inputRight"></slot>
|
|
68
69
|
</view>
|
|
69
70
|
<text
|
|
70
71
|
:style="[actionStyle]"
|
|
@@ -108,8 +109,8 @@
|
|
|
108
109
|
* @property {String | Number} maxlength 输入框最大能输入的长度,-1为不限制长度 (默认 '-1' )
|
|
109
110
|
* @property {String | Number} height 输入框高度,单位px(默认 64 )
|
|
110
111
|
* @property {String | Number} label 搜索框左边显示内容
|
|
111
|
-
* @property {Boolean} adjustPosition 键盘弹起时,是否自动上推页面
|
|
112
|
-
* @property {Boolean} autoBlur 键盘收起时,是否自动失去焦点
|
|
112
|
+
* @property {Boolean} adjustPosition 键盘弹起时,是否自动上推页面
|
|
113
|
+
* @property {Boolean} autoBlur 键盘收起时,是否自动失去焦点
|
|
113
114
|
* @property {Object} customStyle 定义需要用到的外部样式
|
|
114
115
|
*
|
|
115
116
|
* @event {Function} change 输入框内容发生变化时触发
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
package/types/comps/search.d.ts
CHANGED
|
@@ -161,11 +161,19 @@ declare interface SearchProps {
|
|
|
161
161
|
onClickIcon?: () => any
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
+
declare interface SearchSlots {
|
|
165
|
+
/**
|
|
166
|
+
* 修改输入框区域内部右侧内容 类似于左侧图标区域
|
|
167
|
+
*/
|
|
168
|
+
['inputRight']?: () => any
|
|
169
|
+
}
|
|
170
|
+
|
|
164
171
|
declare interface _Search {
|
|
165
172
|
new (): {
|
|
166
173
|
$props: AllowedComponentProps &
|
|
167
174
|
VNodeProps &
|
|
168
175
|
SearchProps
|
|
176
|
+
$slots: SearchSlots
|
|
169
177
|
}
|
|
170
178
|
}
|
|
171
179
|
|