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.
Files changed (61) hide show
  1. package/changelog.md +173 -3
  2. package/components/u-action-sheet/u-action-sheet.vue +21 -2
  3. package/components/u-barcode/u-barcode.vue +0 -2
  4. package/components/u-button/u-button.vue +2 -5
  5. package/components/u-canvas/u-canvas.vue +430 -77
  6. package/components/u-cell/u-cell.vue +8 -0
  7. package/components/u-datetime-picker/u-datetime-picker.vue +53 -4
  8. package/components/u-dragsort/u-dragsort.vue +55 -31
  9. package/components/u-icon/u-icon.vue +12 -3
  10. package/components/u-icon/util.js +81 -10
  11. package/components/u-index-item/u-index-item.vue +1 -1
  12. package/components/u-index-list/u-index-list.vue +1 -1
  13. package/components/u-novel-reader/content-normalizer.js +80 -0
  14. package/components/u-novel-reader/layout-engine.js +225 -0
  15. package/components/u-novel-reader/measure-adapter.js +69 -0
  16. package/components/u-novel-reader/novelReader.js +35 -0
  17. package/components/u-novel-reader/persistence.js +144 -0
  18. package/components/u-novel-reader/props.js +100 -0
  19. package/components/u-novel-reader/reader-catalog.vue +234 -0
  20. package/components/u-novel-reader/reader-content.vue +226 -0
  21. package/components/u-novel-reader/reader-core.js +151 -0
  22. package/components/u-novel-reader/reader-settings.vue +325 -0
  23. package/components/u-novel-reader/reader-toolbar.vue +313 -0
  24. package/components/u-novel-reader/theme-vars.scss +49 -0
  25. package/components/u-novel-reader/u-novel-reader.vue +836 -0
  26. package/components/u-poster/u-poster.vue +272 -222
  27. package/components/u-qrcode/qrcode.js +56 -49
  28. package/components/u-qrcode/u-qrcode.vue +159 -88
  29. package/components/u-scroll-list/scrollWxs.wxs +1 -1
  30. package/components/u-slider/u-slider.vue +1 -1
  31. package/components/u-swipe-action-item/index.wxs +43 -25
  32. package/components/u-swipe-action-item/nvue.js +9 -0
  33. package/components/u-swipe-action-item/other.js +32 -21
  34. package/components/u-swipe-action-item/props.js +5 -0
  35. package/components/u-swipe-action-item/swipeActionItem.js +1 -0
  36. package/components/u-swipe-action-item/u-swipe-action-item.vue +28 -4
  37. package/components/u-switch/u-switch.vue +1 -1
  38. package/components/u-tabbar/u-tabbar.vue +2 -1
  39. package/components/u-tabbar-item/u-tabbar-item.vue +64 -21
  40. package/components/u-tabs/u-tabs.vue +11 -8
  41. package/components/u-tabs-pro/u-tabs-pro.vue +212 -0
  42. package/components/u-text/text.js +1 -1
  43. package/components/u-text/u-text.vue +18 -6
  44. package/components/u-upload/u-upload.vue +1 -1
  45. package/components/u-waterfall/u-waterfall.vue +118 -65
  46. package/libs/config/config.js +1 -1
  47. package/libs/config/props.js +1 -0
  48. package/libs/function/index.js +66 -0
  49. package/libs/mixin/mixin.js +4 -50
  50. package/libs/root/index.js +78 -5
  51. package/libs/root/page.js +7 -7
  52. package/libs/root/root.js +73 -3
  53. package/libs/util/app-nvue-webview-canvas.js +486 -0
  54. package/libs/util/gcanvas/bridge/bridge-weex.js +0 -2
  55. package/libs/util/gcanvas/index.js +3 -3
  56. package/package.json +2 -2
  57. package/types/comps/swipeActionItem.d.ts +13 -0
  58. package/types/comps/tabs.d.ts +2 -1
  59. package/types/comps/text.d.ts +1 -1
  60. package/types/func.d.ts +23 -0
  61. 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']