uview-plus 3.3.36 → 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 (27) hide show
  1. package/changelog.md +5 -0
  2. package/components/u-datetime-picker/u-datetime-picker.vue +8 -6
  3. package/libs/function/index.js +1 -0
  4. package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
  5. package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
  6. package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
  7. package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
  8. package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
  9. package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
  10. package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
  11. package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
  12. package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
  13. package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
  14. package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
  15. package/libs/util/gcanvas/context-webgl/Program.js +0 -0
  16. package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
  17. package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
  18. package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
  19. package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
  20. package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
  21. package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
  22. package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
  23. package/libs/util/gcanvas/env/canvas.js +0 -0
  24. package/libs/util/gcanvas/env/image.js +0 -0
  25. package/libs/util/gcanvas/env/tool.js +0 -0
  26. package/libs/util/gcanvas/index.js +0 -0
  27. package/package.json +1 -1
package/changelog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.3.37(2024-10-21)
2
+ fix: 修复因为修改组件名称前缀,导致h5打包后$parent方法内找不到父组件的问题
3
+
4
+ fix: 修复datetime-picker选择2000年以前日期出错
5
+
1
6
  ## 3.3.36(2024-10-09)
2
7
  fix: toast 自动关闭
3
8
 
@@ -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) {
@@ -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.36",
5
+ "version": "3.3.37",
6
6
  "description": "零云®uview-plus已兼容vue3,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
7
7
  "keywords": [
8
8
  "uview",