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.
- package/changelog.md +80 -0
- package/components/u-action-sheet/u-action-sheet.vue +3 -1
- package/components/u-calendar/u-calendar.vue +3 -1
- package/components/u-canvas/u-canvas.vue +67 -8
- package/components/u-cate-tab/u-cate-tab.vue +2 -2
- package/components/u-color-picker/u-color-picker.vue +2 -2
- package/components/u-cropper/u-cropper.vue +78 -70
- package/components/u-datetime-picker/u-datetime-picker.vue +3 -1
- package/components/u-goods-sku/u-goods-sku.vue +2 -1
- package/components/u-keyboard/u-keyboard.vue +2 -1
- package/components/u-lazy-load/u-lazy-load.vue +5 -3
- package/components/u-navbar/navbar.js +3 -1
- package/components/u-navbar/props.js +10 -0
- package/components/u-navbar/theme-vars.scss +5 -0
- package/components/u-navbar/u-navbar.vue +155 -12
- package/components/u-picker/u-picker.vue +3 -1
- package/components/u-picker-data/u-picker-data.vue +3 -2
- package/components/u-popup/u-popup.vue +38 -5
- package/components/u-poster/u-poster.vue +37 -4
- package/components/u-sticky/u-sticky.vue +2 -2
- package/libs/function/index.js +18 -0
- package/libs/theme/runtime.js +4 -0
- package/libs/theme/theme.js +6 -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/actionSheet.d.ts +4 -0
- package/types/comps/calendar.d.ts +4 -0
- package/types/comps/datetimePicker.d.ts +4 -0
- package/types/comps/keyboard.d.ts +4 -0
- package/types/comps/navbar.d.ts +13 -0
- package/types/comps/picker.d.ts +4 -0
- package/types/comps/popup.d.ts +6 -2
- package/types/func.d.ts +11 -0
- package/types/index.d.ts +1 -0
package/types/comps/navbar.d.ts
CHANGED
|
@@ -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
|
*/
|
package/types/comps/picker.d.ts
CHANGED
package/types/comps/popup.d.ts
CHANGED
|
@@ -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']
|