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.
Files changed (31) hide show
  1. package/changelog.md +10 -1
  2. package/components/u-datetime-picker/u-datetime-picker.vue +8 -6
  3. package/components/u-input/u-input.vue +5 -1
  4. package/components/u-toast/u-toast.vue +1 -1
  5. package/libs/function/index.js +1 -0
  6. package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
  7. package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
  8. package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
  9. package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
  10. package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
  11. package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
  12. package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
  13. package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
  14. package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
  15. package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
  16. package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
  17. package/libs/util/gcanvas/context-webgl/Program.js +0 -0
  18. package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
  19. package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
  20. package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
  21. package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
  22. package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
  23. package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
  24. package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
  25. package/libs/util/gcanvas/env/canvas.js +0 -0
  26. package/libs/util/gcanvas/env/image.js +0 -0
  27. package/libs/util/gcanvas/env/tool.js +0 -0
  28. package/libs/util/gcanvas/index.js +0 -0
  29. package/package.json +1 -1
  30. package/types/comps/button.d.ts +1 -1
  31. 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
- title: '日期filter结果不能为空',
340
- icon: 'error',
341
- mask: true
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) {
@@ -166,7 +166,7 @@
166
166
  this.clearTimer()
167
167
  this.isShow = true
168
168
  // -1时不自动关闭
169
- if (this.duration !== -1) {
169
+ if (this.tmpConfig.duration !== -1) {
170
170
  this.timer = setTimeout(() => {
171
171
  // 倒计时结束,清除定时器,隐藏toast组件
172
172
  this.clearTimer()
@@ -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
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.35",
5
+ "version": "3.3.37",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",
@@ -10,7 +10,7 @@ declare interface ButtonProps {
10
10
  * 按钮的样式类型
11
11
  * @default "info"
12
12
  */
13
- type?: 'info' | 'primary' | 'error' | 'warning' | 'success'
13
+ type?: 'info' | 'primary' | 'error' | 'warning' | 'success' | 'text'
14
14
  /**
15
15
  * 按钮的大小
16
16
  * @default "normal"
@@ -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