uview-plus 3.3.35 → 3.3.37
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 +10 -1
- package/components/u-datetime-picker/u-datetime-picker.vue +8 -6
- package/components/u-input/u-input.vue +5 -1
- package/components/u-toast/u-toast.vue +1 -1
- package/libs/function/index.js +1 -0
- 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/button.d.ts +1 -1
- package/types/comps/input.d.ts +1 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## 3.3.37(2024-10-21)
|
|
2
|
+
fix: 修复因为修改组件名称前缀,导致h5打包后$parent方法内找不到父组件的问题
|
|
3
|
+
|
|
4
|
+
fix: 修复datetime-picker选择2000年以前日期出错
|
|
5
|
+
|
|
6
|
+
## 3.3.36(2024-10-09)
|
|
7
|
+
fix: toast 自动关闭
|
|
8
|
+
|
|
9
|
+
feat: 增加微信小程序用户昵称审核完毕回调及修改 ts 定义文件
|
|
10
|
+
|
|
1
11
|
## 3.3.35(2024-10-08)
|
|
2
12
|
feat: modal和picker支持v-model:show双向绑定
|
|
3
13
|
|
|
@@ -5,7 +15,6 @@ feat: 支持checkbox使用slot自定义label后自带点击事件 #522
|
|
|
5
15
|
|
|
6
16
|
feat: swipe-action支持自动关闭特性及初始化打开状态
|
|
7
17
|
|
|
8
|
-
|
|
9
18
|
## 3.3.34(2024-09-23)
|
|
10
19
|
feat: 支持toast设置duration值为-1时不自动关闭
|
|
11
20
|
|
|
@@ -335,11 +335,12 @@
|
|
|
335
335
|
if (this.filter) {
|
|
336
336
|
values = this.filter(type, values)
|
|
337
337
|
if (!values || (values && values.length == 0)) {
|
|
338
|
-
uni.showToast({
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
})
|
|
338
|
+
// uni.showToast({
|
|
339
|
+
// title: '日期filter结果不能为空',
|
|
340
|
+
// icon: 'error',
|
|
341
|
+
// mask: true
|
|
342
|
+
// })
|
|
343
|
+
console.log('日期filter结果不能为空')
|
|
343
344
|
}
|
|
344
345
|
}
|
|
345
346
|
return { type, values }
|
|
@@ -353,7 +354,8 @@
|
|
|
353
354
|
// 得出合法的时间
|
|
354
355
|
correctValue(value) {
|
|
355
356
|
const isDateMode = this.mode !== 'time'
|
|
356
|
-
if (isDateMode && !test.date(value)) {
|
|
357
|
+
// if (isDateMode && !test.date(value)) {
|
|
358
|
+
if (isDateMode && !dayjs.unix(value).isValid()) {
|
|
357
359
|
// 如果是日期类型,但是又没有设置合法的当前时间的话,使用最小时间为当前时间
|
|
358
360
|
value = this.minDate
|
|
359
361
|
} else if (!isDateMode && !value) {
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
@focus="onFocus"
|
|
46
46
|
@confirm="onConfirm"
|
|
47
47
|
@keyboardheightchange="onkeyboardheightchange"
|
|
48
|
+
@nicknamereview="onnicknamereview"
|
|
48
49
|
/>
|
|
49
50
|
</view>
|
|
50
51
|
<view
|
|
@@ -224,7 +225,7 @@ export default {
|
|
|
224
225
|
},
|
|
225
226
|
},
|
|
226
227
|
// #ifdef VUE3
|
|
227
|
-
emits: ['update:modelValue', 'focus', 'blur', 'change', 'confirm', 'clear', 'keyboardheightchange'],
|
|
228
|
+
emits: ['update:modelValue', 'focus', 'blur', 'change', 'confirm', 'clear', 'keyboardheightchange', 'nicknamereview'],
|
|
228
229
|
// #endif
|
|
229
230
|
methods: {
|
|
230
231
|
// 在微信小程序中,不支持将函数当做props参数,故只能通过ref形式调用
|
|
@@ -274,6 +275,9 @@ export default {
|
|
|
274
275
|
onkeyboardheightchange(event) {
|
|
275
276
|
this.$emit("keyboardheightchange", event);
|
|
276
277
|
},
|
|
278
|
+
onnicknamereview(event) {
|
|
279
|
+
this.$emit("nicknamereview", event);
|
|
280
|
+
},
|
|
277
281
|
// 内容发生变化,进行处理
|
|
278
282
|
valueChange(value, isOut = false) {
|
|
279
283
|
if(this.clearInput) {
|
package/libs/function/index.js
CHANGED
|
@@ -119,6 +119,7 @@ export function $parent(name = undefined) {
|
|
|
119
119
|
// 通过while历遍,这里主要是为了H5需要多层解析的问题
|
|
120
120
|
while (parent) {
|
|
121
121
|
// 父组件
|
|
122
|
+
name = name.replace(/up-([a-zA-Z0-9-_]+)/g, 'u-$1')
|
|
122
123
|
if (parent.$options && parent.$options.name !== name) {
|
|
123
124
|
// 如果组件的name不相等,继续上一级寻找
|
|
124
125
|
parent = parent.$parent
|
|
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/button.d.ts
CHANGED
package/types/comps/input.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare interface InputProps {
|
|
|
9
9
|
* 输入框类型,详见[文档](https://www.uviewui.com/components/input.html#%E8%BE%93%E5%85%A5%E6%A1%86%E7%9A%84%E7%B1%BB%E5%9E%8B)
|
|
10
10
|
* @default "text"
|
|
11
11
|
*/
|
|
12
|
-
type?: 'text' | 'number' | 'idcard' | 'digit' | 'password'
|
|
12
|
+
type?: 'text' | 'number' | 'idcard' | 'digit' | 'password' | 'nickname'
|
|
13
13
|
/**
|
|
14
14
|
* 是否禁用输入框
|
|
15
15
|
* @default false
|