uview-plus 3.8.86 → 3.8.108
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 +173 -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 +430 -77
- 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 +272 -222
- 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/index.js +3 -3
- package/package.json +2 -2
- 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
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']
|