uview-plus 3.8.86 → 3.8.106
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 +150 -3
- package/components/u-action-sheet/u-action-sheet.vue +21 -2
- package/components/u-barcode/u-barcode.vue +0 -2
- package/components/u-button/u-button.vue +2 -5
- package/components/u-canvas/u-canvas.vue +368 -74
- package/components/u-cell/u-cell.vue +8 -0
- package/components/u-datetime-picker/u-datetime-picker.vue +53 -4
- package/components/u-dragsort/u-dragsort.vue +55 -31
- package/components/u-icon/u-icon.vue +12 -3
- package/components/u-icon/util.js +81 -10
- package/components/u-index-item/u-index-item.vue +1 -1
- package/components/u-index-list/u-index-list.vue +1 -1
- package/components/u-novel-reader/content-normalizer.js +80 -0
- package/components/u-novel-reader/layout-engine.js +225 -0
- package/components/u-novel-reader/measure-adapter.js +69 -0
- package/components/u-novel-reader/novelReader.js +35 -0
- package/components/u-novel-reader/persistence.js +144 -0
- package/components/u-novel-reader/props.js +100 -0
- package/components/u-novel-reader/reader-catalog.vue +234 -0
- package/components/u-novel-reader/reader-content.vue +226 -0
- package/components/u-novel-reader/reader-core.js +151 -0
- package/components/u-novel-reader/reader-settings.vue +325 -0
- package/components/u-novel-reader/reader-toolbar.vue +313 -0
- package/components/u-novel-reader/theme-vars.scss +49 -0
- package/components/u-novel-reader/u-novel-reader.vue +836 -0
- package/components/u-poster/u-poster.vue +236 -219
- package/components/u-qrcode/qrcode.js +56 -49
- package/components/u-qrcode/u-qrcode.vue +159 -88
- package/components/u-scroll-list/scrollWxs.wxs +1 -1
- package/components/u-slider/u-slider.vue +1 -1
- package/components/u-swipe-action-item/index.wxs +43 -25
- package/components/u-swipe-action-item/nvue.js +9 -0
- package/components/u-swipe-action-item/other.js +32 -21
- package/components/u-swipe-action-item/props.js +5 -0
- package/components/u-swipe-action-item/swipeActionItem.js +1 -0
- package/components/u-swipe-action-item/u-swipe-action-item.vue +28 -4
- package/components/u-switch/u-switch.vue +1 -1
- package/components/u-tabbar/u-tabbar.vue +2 -1
- package/components/u-tabbar-item/u-tabbar-item.vue +64 -21
- package/components/u-tabs/u-tabs.vue +11 -8
- package/components/u-tabs-pro/u-tabs-pro.vue +212 -0
- package/components/u-text/text.js +1 -1
- package/components/u-text/u-text.vue +18 -6
- package/components/u-upload/u-upload.vue +1 -1
- package/components/u-waterfall/u-waterfall.vue +118 -65
- package/libs/config/config.js +1 -1
- package/libs/config/props.js +1 -0
- package/libs/function/index.js +66 -0
- package/libs/mixin/mixin.js +4 -50
- package/libs/root/index.js +78 -5
- package/libs/root/page.js +7 -7
- package/libs/root/root.js +73 -3
- package/libs/util/app-nvue-webview-canvas.js +486 -0
- package/libs/util/gcanvas/bridge/bridge-weex.js +0 -2
- 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 +3 -3
- package/package.json +1 -1
- package/types/comps/swipeActionItem.d.ts +13 -0
- package/types/comps/tabs.d.ts +2 -1
- package/types/comps/text.d.ts +1 -1
- package/types/func.d.ts +23 -0
- package/types/index.d.ts +1 -0
|
@@ -20,6 +20,11 @@ declare interface SwipeActionItemProps {
|
|
|
20
20
|
* @default true
|
|
21
21
|
*/
|
|
22
22
|
autoClose?: boolean
|
|
23
|
+
/**
|
|
24
|
+
* 是否正在横向滑动,可用于 v-model:scrolling 暂停外部滚动
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
27
|
+
scrolling?: boolean
|
|
23
28
|
/**
|
|
24
29
|
* 滑动距离阈值,只有大于此值,才被认为是要打开菜单
|
|
25
30
|
* @default 20
|
|
@@ -44,6 +49,14 @@ declare interface SwipeActionItemProps {
|
|
|
44
49
|
* @param index 第几个按钮被点击
|
|
45
50
|
*/
|
|
46
51
|
onClick?: (name: any, index: number) => any
|
|
52
|
+
/**
|
|
53
|
+
* scrolling 双向绑定更新
|
|
54
|
+
*/
|
|
55
|
+
['onUpdate:scrolling']?: (value: boolean) => any
|
|
56
|
+
/**
|
|
57
|
+
* 横向滑动状态变化时触发
|
|
58
|
+
*/
|
|
59
|
+
onScrolling?: (value: boolean) => any
|
|
47
60
|
}
|
|
48
61
|
|
|
49
62
|
|
package/types/comps/tabs.d.ts
CHANGED
|
@@ -69,8 +69,9 @@ declare interface TabsProps {
|
|
|
69
69
|
* 点击标签时触发
|
|
70
70
|
* @param item 传入的其他值
|
|
71
71
|
* @param index 标签索引值
|
|
72
|
+
* @param event 原始点击事件,H5 下为 DOM Event
|
|
72
73
|
*/
|
|
73
|
-
onClick?: (item: any, index: number) => any
|
|
74
|
+
onClick?: (item: any, index: number, event: any) => any
|
|
74
75
|
/**
|
|
75
76
|
* 标签索引改变时触发(`disalbed`时不会触发)
|
|
76
77
|
* @param item 传入的其他值
|
package/types/comps/text.d.ts
CHANGED
package/types/func.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { ComponentInternalInstance, ComponentPublicInstance } from "vue";
|
|
2
|
+
|
|
1
3
|
export interface RouteParam {
|
|
2
4
|
type: "navigateTo" | "redirect" | "switchTab" | "reLaunch" | "navigateBack";
|
|
3
5
|
/** 路由地址 */
|
|
@@ -101,6 +103,27 @@ export interface Func {
|
|
|
101
103
|
*/
|
|
102
104
|
rpx2px(value: number): number;
|
|
103
105
|
|
|
106
|
+
/** 查询当前组件作用域内的单个节点信息 */
|
|
107
|
+
upGetRect(
|
|
108
|
+
selector: string,
|
|
109
|
+
all?: false,
|
|
110
|
+
comp?: ComponentPublicInstance | ComponentInternalInstance | null
|
|
111
|
+
): Promise<UniNamespace.NodeInfo>;
|
|
112
|
+
|
|
113
|
+
/** 查询当前组件作用域内的全部匹配节点信息 */
|
|
114
|
+
upGetRect(
|
|
115
|
+
selector: string,
|
|
116
|
+
all: true,
|
|
117
|
+
comp?: ComponentPublicInstance | ComponentInternalInstance | null
|
|
118
|
+
): Promise<UniNamespace.NodeInfo[]>;
|
|
119
|
+
|
|
120
|
+
/** 使用动态布尔值查询节点信息 */
|
|
121
|
+
upGetRect(
|
|
122
|
+
selector: string,
|
|
123
|
+
all?: boolean,
|
|
124
|
+
comp?: ComponentPublicInstance | ComponentInternalInstance | null
|
|
125
|
+
): Promise<UniNamespace.NodeInfo | UniNamespace.NodeInfo[]>;
|
|
126
|
+
|
|
104
127
|
/**
|
|
105
128
|
* 进行延时,以达到可以简写代码的目的 比如: await uni.$u.sleep(20)将会阻塞20ms
|
|
106
129
|
* @param value 延时时间(ms),默认 30
|
package/types/index.d.ts
CHANGED
|
@@ -141,6 +141,7 @@ declare module 'uview-plus' {
|
|
|
141
141
|
export const range: $u['range']
|
|
142
142
|
export const getPx: $u['getPx']
|
|
143
143
|
export const rpx2px: $u['rpx2px']
|
|
144
|
+
export const upGetRect: $u['upGetRect']
|
|
144
145
|
export const sleep: $u['sleep']
|
|
145
146
|
export const os: $u['os']
|
|
146
147
|
export const sys: $u['sys']
|