uview-plus 3.8.106 → 3.8.112

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 (56) hide show
  1. package/changelog.md +80 -0
  2. package/components/u-action-sheet/u-action-sheet.vue +3 -1
  3. package/components/u-calendar/u-calendar.vue +3 -1
  4. package/components/u-canvas/u-canvas.vue +67 -8
  5. package/components/u-cate-tab/u-cate-tab.vue +2 -2
  6. package/components/u-color-picker/u-color-picker.vue +2 -2
  7. package/components/u-cropper/u-cropper.vue +78 -70
  8. package/components/u-datetime-picker/u-datetime-picker.vue +3 -1
  9. package/components/u-goods-sku/u-goods-sku.vue +2 -1
  10. package/components/u-keyboard/u-keyboard.vue +2 -1
  11. package/components/u-lazy-load/u-lazy-load.vue +5 -3
  12. package/components/u-navbar/navbar.js +3 -1
  13. package/components/u-navbar/props.js +10 -0
  14. package/components/u-navbar/theme-vars.scss +5 -0
  15. package/components/u-navbar/u-navbar.vue +155 -12
  16. package/components/u-picker/u-picker.vue +3 -1
  17. package/components/u-picker-data/u-picker-data.vue +3 -2
  18. package/components/u-popup/u-popup.vue +38 -5
  19. package/components/u-poster/u-poster.vue +37 -4
  20. package/components/u-sticky/u-sticky.vue +2 -2
  21. package/libs/function/index.js +18 -0
  22. package/libs/theme/runtime.js +4 -0
  23. package/libs/theme/theme.js +6 -2
  24. package/libs/util/gcanvas/bridge/bridge-weex.js +0 -0
  25. package/libs/util/gcanvas/context-2d/FillStyleLinearGradient.js +0 -0
  26. package/libs/util/gcanvas/context-2d/FillStylePattern.js +0 -0
  27. package/libs/util/gcanvas/context-2d/FillStyleRadialGradient.js +0 -0
  28. package/libs/util/gcanvas/context-2d/RenderingContext.js +0 -0
  29. package/libs/util/gcanvas/context-webgl/ActiveInfo.js +0 -0
  30. package/libs/util/gcanvas/context-webgl/Buffer.js +0 -0
  31. package/libs/util/gcanvas/context-webgl/Framebuffer.js +0 -0
  32. package/libs/util/gcanvas/context-webgl/GLenum.js +0 -0
  33. package/libs/util/gcanvas/context-webgl/GLmethod.js +0 -0
  34. package/libs/util/gcanvas/context-webgl/GLtype.js +0 -0
  35. package/libs/util/gcanvas/context-webgl/Program.js +0 -0
  36. package/libs/util/gcanvas/context-webgl/Renderbuffer.js +0 -0
  37. package/libs/util/gcanvas/context-webgl/RenderingContext.js +0 -0
  38. package/libs/util/gcanvas/context-webgl/Shader.js +0 -0
  39. package/libs/util/gcanvas/context-webgl/ShaderPrecisionFormat.js +0 -0
  40. package/libs/util/gcanvas/context-webgl/Texture.js +0 -0
  41. package/libs/util/gcanvas/context-webgl/UniformLocation.js +0 -0
  42. package/libs/util/gcanvas/context-webgl/classUtils.js +0 -0
  43. package/libs/util/gcanvas/env/canvas.js +0 -0
  44. package/libs/util/gcanvas/env/image.js +0 -0
  45. package/libs/util/gcanvas/env/tool.js +0 -0
  46. package/libs/util/gcanvas/index.js +0 -0
  47. package/package.json +1 -1
  48. package/types/comps/actionSheet.d.ts +4 -0
  49. package/types/comps/calendar.d.ts +4 -0
  50. package/types/comps/datetimePicker.d.ts +4 -0
  51. package/types/comps/keyboard.d.ts +4 -0
  52. package/types/comps/navbar.d.ts +13 -0
  53. package/types/comps/picker.d.ts +4 -0
  54. package/types/comps/popup.d.ts +6 -2
  55. package/types/func.d.ts +11 -0
  56. package/types/index.d.ts +1 -0
@@ -81,6 +81,19 @@ declare interface NavbarProps {
81
81
  * 标题的样式
82
82
  */
83
83
  titleStyle?: unknown
84
+ /**
85
+ * 导航栏模式。ios 模式下初始背景透明、标题左对齐大字号显示,
86
+ * 下滑压缩后过渡为居中标题并呈现磨砂背景。
87
+ * ios 模式下 fixed 与 placeholder 被忽略。nvue 端降级为 default。
88
+ * @default "default"
89
+ */
90
+ mode?: 'default' | 'ios'
91
+ /**
92
+ * 页面滚动距离,仅 ios 模式使用,需由页面 onPageScroll 传入。
93
+ * 不传时导航栏停留在大标题展开态。
94
+ * @default 0
95
+ */
96
+ scrollTop?: string | number
84
97
  /**
85
98
  * 点击左侧区域
86
99
  */
@@ -77,6 +77,10 @@ declare interface PickerProps {
77
77
  * 关闭选择器时触发
78
78
  */
79
79
  onClose?: () => any
80
+ /**
81
+ * 选择器已关闭(离场动画结束、弹窗真正消失后)触发
82
+ */
83
+ onClosed?: () => any
80
84
  /**
81
85
  * 点击确定按钮,返回当前选择的值
82
86
  */
@@ -78,13 +78,17 @@ declare interface PopupProps {
78
78
  */
79
79
  customStyle?: unknown
80
80
  /**
81
- * 弹出层打开
81
+ * 弹出层打开(进场动画结束后)
82
82
  */
83
83
  onOpen?: () => any
84
84
  /**
85
- * 弹出层收起
85
+ * 弹出层收起(关闭动作发生时,离场动画开始前;外部直接将show置为false时也会触发)
86
86
  */
87
87
  onClose?: () => any
88
+ /**
89
+ * 弹出层已关闭(离场动画结束、弹窗真正消失后)
90
+ */
91
+ onClosed?: () => any
88
92
  }
89
93
 
90
94
  declare interface PopupSlots {
package/types/func.d.ts CHANGED
@@ -124,6 +124,17 @@ export interface Func {
124
124
  comp?: ComponentPublicInstance | ComponentInternalInstance | null
125
125
  ): Promise<UniNamespace.NodeInfo | UniNamespace.NodeInfo[]>;
126
126
 
127
+ /**
128
+ * 创建交叉观察器,优先使用组件实例上的同名方法,
129
+ * 避免小程序端因枚举 Vue 实例代理的键而产生告警
130
+ * @param comp 组件实例
131
+ * @param options 交叉观察器配置
132
+ */
133
+ upCreateIntersectionObserver(
134
+ comp?: ComponentPublicInstance | ComponentInternalInstance | null,
135
+ options?: UniNamespace.CreateIntersectionObserverOptions
136
+ ): UniNamespace.IntersectionObserver;
137
+
127
138
  /**
128
139
  * 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
129
140
  * @param value 延时时间(ms),默认 30
package/types/index.d.ts CHANGED
@@ -142,6 +142,7 @@ declare module 'uview-plus' {
142
142
  export const getPx: $u['getPx']
143
143
  export const rpx2px: $u['rpx2px']
144
144
  export const upGetRect: $u['upGetRect']
145
+ export const upCreateIntersectionObserver: $u['upCreateIntersectionObserver']
145
146
  export const sleep: $u['sleep']
146
147
  export const os: $u['os']
147
148
  export const sys: $u['sys']