@dcloudio/uni-app-x 0.7.14 → 0.7.16
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/options.d.ts +1 -1
- package/package.json +1 -1
- package/types/native/CSSStyleDeclaration.d.ts +0 -72
- package/types/native/CanvasRenderingContext2D.d.ts +1943 -0
- package/types/native/DOMRect.d.ts +0 -180
- package/types/native/DrawableContext.d.ts +161 -628
- package/types/native/IUniElement.d.ts +513 -1868
- package/types/native/IUniObjectElement.d.ts +124 -0
- package/types/native/Path2D.d.ts +241 -0
- package/types/native/SnapshotOptions.d.ts +1 -0
- package/types/native/UniApp.d.ts +110 -0
- package/types/native/UniCanvasElement.d.ts +9 -0
- package/types/native/UniNativePage.d.ts +48 -1
- package/types/native/UniPageManager.d.ts +4 -1
- package/types/native/UniProvider.d.ts +1 -0
- package/types/native/UniResizeObserver.d.ts +9 -99
- package/types/native/UniScrollEvent.d.ts +1 -1
- package/types/native/UniSwiperAnimationFinishEvent.d.ts +1 -1
- package/types/native/UniSwiperChangeEvent.d.ts +1 -1
- package/types/native/UniVideoElement.d.ts +5 -0
- package/types/native/global.d.ts +73 -15
- package/types/native/index.d.ts +4 -0
- package/types/shim-uts-basic.d.ts +4495 -0
- package/types/uni/env/index.d.ts +39 -0
- package/types/uni/uts-plugin-api/global.d.ts +20 -1
- package/types/uni/uts-plugin-api/index.d.ts +20 -1
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/global.d.ts +26 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-addPhoneContact/utssdk/interface.d.ts +231 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-arrayBufferToBase64/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-base64ToArrayBuffer/utssdk/interface.d.ts +77 -0
- package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/global.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-cancelAnimationFrame/utssdk/interface.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-canvas/utssdk/interface.d.ts +268 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +40 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +19 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +203 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/global.d.ts +20 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/index.d.ts +9 -0
- package/types/uni/uts-plugin-api/lib/uni-createIntersectionObserver/utssdk/interface.d.ts +152 -0
- package/types/uni/uts-plugin-api/lib/uni-createRequestPermissionListener/utssdk/interface.d.ts +20 -3
- package/types/uni/uts-plugin-api/lib/uni-createSelectorQuery/utssdk/interface.d.ts +24 -9
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +13 -6
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/global.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/index.d.ts +13 -0
- package/types/uni/uts-plugin-api/lib/uni-dialogPage/utssdk/interface.d.ts +1335 -0
- package/types/uni/uts-plugin-api/lib/uni-event/utssdk/interface.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-exit/utssdk/interface.d.ts +6 -1
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/global.d.ts +80 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/index.d.ts +39 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +174 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +8 -1
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +20 -17
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +28 -20
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +201 -64
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +180 -59
- package/types/uni/uts-plugin-api/lib/uni-getElementById/utssdk/interface.d.ts +10 -2
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-getEnterOptionsSync/utssdk/interface.d.ts +47 -0
- package/types/uni/uts-plugin-api/lib/uni-getLaunchOptionsSync/utssdk/interface.d.ts +10 -1
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation/utssdk/interface.d.ts +564 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/global.d.ts +2 -14
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/index.d.ts +1 -6
- package/types/uni/uts-plugin-api/lib/uni-getLocation-system/utssdk/interface.d.ts +1 -151
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getLocation-tencent/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +114 -34
- package/types/uni/uts-plugin-api/lib/uni-getPerformance/utssdk/interface.d.ts +7 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +304 -27
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +500 -149
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +123 -112
- package/types/uni/uts-plugin-api/lib/uni-installApk/utssdk/interface.d.ts +9 -6
- package/types/uni/uts-plugin-api/lib/uni-interceptor/utssdk/interface.d.ts +18 -2
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/global.d.ts +22 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/index.d.ts +10 -0
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +60 -0
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +8 -1
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/global.d.ts +9 -6
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/index.d.ts +4 -2
- package/types/uni/{uts-plugin-extend → uts-plugin-api}/lib/uni-makePhoneCall/utssdk/interface.d.ts +40 -61
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +327 -58
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/index.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-navigationBar/utssdk/interface.d.ts +213 -5
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +280 -92
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +20 -15
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +70 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pageScrollTo/utssdk/interface.d.ts +16 -6
- package/types/uni/uts-plugin-api/lib/uni-payment/utssdk/interface.d.ts +161 -11
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-alipay/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-payment-wxpay/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-prompt/utssdk/interface.d.ts +120 -42
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-pullDownRefresh/utssdk/interface.d.ts +16 -1
- package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/global.d.ts +12 -0
- package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-api/lib/uni-requestAnimationFrame/utssdk/interface.d.ts +28 -0
- package/types/uni/uts-plugin-api/lib/uni-route/utssdk/interface.d.ts +177 -32
- package/types/uni/uts-plugin-api/lib/uni-rpx2px/utssdk/interface.d.ts +7 -2
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/global.d.ts +24 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/index.d.ts +11 -0
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +73 -0
- package/types/uni/uts-plugin-api/lib/uni-storage/utssdk/interface.d.ts +112 -43
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-tabBar/utssdk/interface.d.ts +78 -1
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +199 -149
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/global.d.ts +112 -0
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/index.d.ts +55 -0
- package/types/uni/uts-plugin-api/lib/uni-virtualPayment/utssdk/interface.d.ts +1068 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +170 -83
- package/types/uni/uts-plugin-biz/lib/uni-ad/utssdk/interface.d.ts +11 -7
- package/types/uni/uts-plugin-biz/lib/uni-facialRecognitionVerify/utssdk/interface.d.ts +33 -15
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-biz/lib/uni-push/utssdk/interface.d.ts +777 -568
- package/types/uni/uts-plugin-biz/lib/uni-verify/utssdk/interface.d.ts +10 -6
- package/types/uni/uts-plugin-component/lib/uni-video/utssdk/interface.d.ts +132 -15
- package/types/uni/uts-plugin-extend/global.d.ts +1 -1
- package/types/uni/uts-plugin-extend/index.d.ts +1 -3
- package/types/uni/uts-plugin-extend/lib/uni-canvas/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-extend/lib/uni-createMapContext/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/global.d.ts +13 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/index.d.ts +5 -0
- package/types/uni/uts-plugin-extend/lib/uni-createMediaQueryObserver/utssdk/interface.d.ts +126 -0
- package/types/uni/uts-plugin-extend/lib/uni-locale/utssdk/interface.d.ts +3 -3
- package/types/uni-cloud/interface.d.ts +57 -3
- package/types/uni-cloud/unicloud-db/index.ts +3 -3
- package/types/vue/CheckboxGroupChangeEvent.d.ts +9 -1
- package/types/vue/PickerViewChangeEvent.d.ts +8 -0
- package/types/vue/ProgressActiveendEvent.d.ts +4 -0
- package/types/vue/RadioGroupChangeEvent.d.ts +9 -1
- package/types/vue/SliderChangeEvent.d.ts +4 -0
- package/types/vue/SwitchChangeEvent.d.ts +5 -1
- package/types/vue/UniCanvasElement.d.ts +6 -1
- package/types/vue/UniCloudDBElement.d.ts +5 -0
- package/types/vue/UniFormElement.d.ts +6 -1
- package/types/vue/UniNavigatorElement.d.ts +5 -0
- package/types/vue/global.d.ts +10 -9
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/global.d.ts +0 -78
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/index.d.ts +0 -38
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +0 -642
- package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-getClipboardData/utssdk/interface.d.ts +0 -119
- package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/global.d.ts +0 -21
- package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/index.d.ts +0 -9
- package/types/uni/uts-plugin-extend/lib/uni-setClipboardData/utssdk/interface.d.ts +0 -122
- package/types/uni-cloud/unicloud-db/index.d.ts +0 -81
|
@@ -4,606 +4,144 @@ import { UniEvent } from "./UniEvent"
|
|
|
4
4
|
import { CSSStyleDeclaration } from "./CSSStyleDeclaration"
|
|
5
5
|
import { DOMRect } from "./DOMRect"
|
|
6
6
|
import { UniCallbackWrapper } from "./UniCallbackWrapper"
|
|
7
|
+
import { CanvasRenderingContext2D } from "./CanvasRenderingContext2D"
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* UVUE DOM 元素对象,描述了 UVUE DOM 元素所普通具有的属性和方法。
|
|
10
11
|
* @package io.dcloud.uniapp.runtime
|
|
11
|
-
* @uniPlatform {
|
|
12
|
-
* "app": {
|
|
13
|
-
* "android": {
|
|
14
|
-
* "osVer": "5.0",
|
|
15
|
-
* "uniVer": "x",
|
|
16
|
-
* "unixVer": "4.0"
|
|
17
|
-
* },
|
|
18
|
-
* "ios": {
|
|
19
|
-
* "osVer": "12.0",
|
|
20
|
-
* "uniVer": "x",
|
|
21
|
-
* "unixVer": "4.11"
|
|
22
|
-
* }
|
|
23
|
-
* }
|
|
24
|
-
* "web": {
|
|
25
|
-
* "uniVer": "x",
|
|
26
|
-
* "unixVer": "4.0"
|
|
27
|
-
* }
|
|
28
|
-
* }
|
|
29
12
|
*/
|
|
30
13
|
export interface UniElement {
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
readonly __v_skip?: boolean
|
|
18
|
+
|
|
31
19
|
/**
|
|
32
20
|
* 只读属性 获取当前元素的的 class 属性的动态集合。
|
|
33
|
-
* @uniPlatform {
|
|
34
|
-
* "app": {
|
|
35
|
-
* "android": {
|
|
36
|
-
* "osVer": "5.0",
|
|
37
|
-
* "uniVer": "x",
|
|
38
|
-
* "unixVer": "4.0"
|
|
39
|
-
* },
|
|
40
|
-
* "ios": {
|
|
41
|
-
* "osVer": "12.0",
|
|
42
|
-
* "uniVer": "x",
|
|
43
|
-
* "unixVer": "4.11"
|
|
44
|
-
* }
|
|
45
|
-
* }
|
|
46
|
-
* "web": {
|
|
47
|
-
* "uniVer": "x",
|
|
48
|
-
* "unixVer": "4.0"
|
|
49
|
-
* }
|
|
50
|
-
* }
|
|
51
21
|
*/
|
|
52
22
|
classList: string[]
|
|
53
23
|
|
|
54
24
|
/**
|
|
55
25
|
* 只读属性 获取当前元素的的第一个子元素,如果元素是无子元素,则返回 null。
|
|
56
|
-
* @uniPlatform {
|
|
57
|
-
* "app": {
|
|
58
|
-
* "android": {
|
|
59
|
-
* "osVer": "5.0",
|
|
60
|
-
* "uniVer": "x",
|
|
61
|
-
* "unixVer": "4.0"
|
|
62
|
-
* },
|
|
63
|
-
* "ios": {
|
|
64
|
-
* "osVer": "12.0",
|
|
65
|
-
* "uniVer": "x",
|
|
66
|
-
* "unixVer": "4.11"
|
|
67
|
-
* }
|
|
68
|
-
* }
|
|
69
|
-
* "web": {
|
|
70
|
-
* "uniVer": "x",
|
|
71
|
-
* "unixVer": "4.0"
|
|
72
|
-
* }
|
|
73
|
-
* }
|
|
74
26
|
*/
|
|
75
27
|
readonly firstChild: UniElement | null
|
|
76
28
|
|
|
77
29
|
/**
|
|
78
30
|
* 只读属性 获取当前元素的最后一个子元素,如果没有子元素,则返回 null。
|
|
79
|
-
* @uniPlatform {
|
|
80
|
-
* "app": {
|
|
81
|
-
* "android": {
|
|
82
|
-
* "osVer": "5.0",
|
|
83
|
-
* "uniVer": "x",
|
|
84
|
-
* "unixVer": "4.0"
|
|
85
|
-
* },
|
|
86
|
-
* "ios": {
|
|
87
|
-
* "osVer": "12.0",
|
|
88
|
-
* "uniVer": "x",
|
|
89
|
-
* "unixVer": "4.11"
|
|
90
|
-
* }
|
|
91
|
-
* }
|
|
92
|
-
* "web": {
|
|
93
|
-
* "uniVer": "x",
|
|
94
|
-
* "unixVer": "4.0"
|
|
95
|
-
* }
|
|
96
|
-
* }
|
|
97
31
|
*/
|
|
98
32
|
readonly lastChild: UniElement | null
|
|
99
33
|
|
|
100
34
|
/**
|
|
101
35
|
* 只读属性 获取当前元素在 DOM 树中的父元素,如果没有父元素(如未添加到DOM树中),则返回null。
|
|
102
36
|
* @internal
|
|
103
|
-
* @uniPlatform {
|
|
104
|
-
* "app": {
|
|
105
|
-
* "android": {
|
|
106
|
-
* "osVer": "5.0",
|
|
107
|
-
* "uniVer": "x",
|
|
108
|
-
* "unixVer": "4.0"
|
|
109
|
-
* },
|
|
110
|
-
* "ios": {
|
|
111
|
-
* "osVer": "12.0",
|
|
112
|
-
* "uniVer": "x",
|
|
113
|
-
* "unixVer": "4.11"
|
|
114
|
-
* }
|
|
115
|
-
* }
|
|
116
|
-
* "web": {
|
|
117
|
-
* "uniVer": "x",
|
|
118
|
-
* "unixVer": "4.0"
|
|
119
|
-
* }
|
|
120
|
-
* }
|
|
121
37
|
*/
|
|
122
38
|
readonly parentNode: UniElement | null
|
|
123
39
|
|
|
124
40
|
/**
|
|
125
41
|
* 只读属性 获取当前元素在 DOM 树中的父元素,如果没有父元素(如未添加到DOM树中),则返回null。
|
|
126
|
-
* @uniPlatform {
|
|
127
|
-
* "app": {
|
|
128
|
-
* "android": {
|
|
129
|
-
* "osVer": "5.0",
|
|
130
|
-
* "uniVer": "x",
|
|
131
|
-
* "unixVer": "4.0"
|
|
132
|
-
* },
|
|
133
|
-
* "ios": {
|
|
134
|
-
* "osVer": "12.0",
|
|
135
|
-
* "uniVer": "x",
|
|
136
|
-
* "unixVer": "4.11"
|
|
137
|
-
* }
|
|
138
|
-
* }
|
|
139
|
-
* "web": {
|
|
140
|
-
* "uniVer": "x",
|
|
141
|
-
* "unixVer": "4.0"
|
|
142
|
-
* }
|
|
143
|
-
* }
|
|
144
42
|
*/
|
|
145
43
|
readonly parentElement: UniElement | null
|
|
146
44
|
|
|
147
45
|
/**
|
|
148
46
|
* 只读属性 获取当前元素的前一个同级元素,没有则返回null。
|
|
149
|
-
* @uniPlatform {
|
|
150
|
-
* "app": {
|
|
151
|
-
* "android": {
|
|
152
|
-
* "osVer": "5.0",
|
|
153
|
-
* "uniVer": "x",
|
|
154
|
-
* "unixVer": "4.0"
|
|
155
|
-
* },
|
|
156
|
-
* "ios": {
|
|
157
|
-
* "osVer": "12.0",
|
|
158
|
-
* "uniVer": "x",
|
|
159
|
-
* "unixVer": "4.11"
|
|
160
|
-
* }
|
|
161
|
-
* }
|
|
162
|
-
* "web": {
|
|
163
|
-
* "uniVer": "x",
|
|
164
|
-
* "unixVer": "4.0"
|
|
165
|
-
* }
|
|
166
|
-
* }
|
|
167
47
|
*/
|
|
168
48
|
readonly previousSibling: UniElement | null
|
|
169
49
|
|
|
170
50
|
/**
|
|
171
51
|
* 只读属性 获取在 DOM 树中紧跟在其后面的同级元素,如果指定的元素为最后一个元素,则返回 null。
|
|
172
52
|
* @internal
|
|
173
|
-
* @uniPlatform {
|
|
174
|
-
* "app": {
|
|
175
|
-
* "android": {
|
|
176
|
-
* "osVer": "5.0",
|
|
177
|
-
* "uniVer": "x",
|
|
178
|
-
* "unixVer": "4.0"
|
|
179
|
-
* },
|
|
180
|
-
* "ios": {
|
|
181
|
-
* "osVer": "12.0",
|
|
182
|
-
* "uniVer": "x",
|
|
183
|
-
* "unixVer": "4.11"
|
|
184
|
-
* }
|
|
185
|
-
* }
|
|
186
|
-
* "web": {
|
|
187
|
-
* "uniVer": "x",
|
|
188
|
-
* "unixVer": "4.0"
|
|
189
|
-
* }
|
|
190
|
-
* }
|
|
191
53
|
*/
|
|
192
54
|
readonly nextSibling: UniElement | null
|
|
193
55
|
|
|
194
56
|
/**
|
|
195
57
|
* 只读属性 获取在 DOM 树中紧跟在其后面的同级元素,如果指定的元素为最后一个元素,则返回 null。
|
|
196
|
-
* @uniPlatform {
|
|
197
|
-
* "app": {
|
|
198
|
-
* "android": {
|
|
199
|
-
* "osVer": "5.0",
|
|
200
|
-
* "uniVer": "x",
|
|
201
|
-
* "unixVer": "4.0"
|
|
202
|
-
* },
|
|
203
|
-
* "ios": {
|
|
204
|
-
* "osVer": "12.0",
|
|
205
|
-
* "uniVer": "x",
|
|
206
|
-
* "unixVer": "4.11"
|
|
207
|
-
* }
|
|
208
|
-
* }
|
|
209
|
-
* "web": {
|
|
210
|
-
* "uniVer": "x",
|
|
211
|
-
* "unixVer": "4.0"
|
|
212
|
-
* }
|
|
213
|
-
* }
|
|
214
58
|
*/
|
|
215
59
|
readonly nextElementSibling: UniElement | null
|
|
216
60
|
|
|
217
61
|
/**
|
|
218
62
|
* 只读属性 获取当前元素包含的子元素的集合
|
|
219
|
-
* @uniPlatform {
|
|
220
|
-
* "app": {
|
|
221
|
-
* "android": {
|
|
222
|
-
* "osVer": "5.0",
|
|
223
|
-
* "uniVer": "x",
|
|
224
|
-
* "unixVer": "4.0"
|
|
225
|
-
* },
|
|
226
|
-
* "ios": {
|
|
227
|
-
* "osVer": "12.0",
|
|
228
|
-
* "uniVer": "x",
|
|
229
|
-
* "unixVer": "4.11"
|
|
230
|
-
* }
|
|
231
|
-
* }
|
|
232
|
-
* "web": {
|
|
233
|
-
* "uniVer": "x",
|
|
234
|
-
* "unixVer": "4.0"
|
|
235
|
-
* }
|
|
236
|
-
* }
|
|
237
63
|
*/
|
|
238
64
|
readonly children: UniElement[]
|
|
239
65
|
|
|
240
66
|
/**
|
|
241
67
|
* 只读属性 获取当前节点包含的子节点的集合
|
|
242
68
|
* @internal
|
|
243
|
-
* @uniPlatform {
|
|
244
|
-
* "app": {
|
|
245
|
-
* "android": {
|
|
246
|
-
* "osVer": "5.0",
|
|
247
|
-
* "uniVer": "x",
|
|
248
|
-
* "unixVer": "4.0"
|
|
249
|
-
* },
|
|
250
|
-
* "ios": {
|
|
251
|
-
* "osVer": "12.0",
|
|
252
|
-
* "uniVer": "x",
|
|
253
|
-
* "unixVer": "4.11"
|
|
254
|
-
* }
|
|
255
|
-
* }
|
|
256
|
-
* "web": {
|
|
257
|
-
* "uniVer": "x",
|
|
258
|
-
* "unixVer": "4.0"
|
|
259
|
-
* }
|
|
260
|
-
* }
|
|
261
69
|
*/
|
|
262
70
|
readonly childNodes: UniElement[]
|
|
263
71
|
|
|
264
72
|
/**
|
|
265
73
|
* 只读属性 获取当前元素的标签名
|
|
266
|
-
* @uniPlatform {
|
|
267
|
-
* "app": {
|
|
268
|
-
* "android": {
|
|
269
|
-
* "osVer": "5.0",
|
|
270
|
-
* "uniVer": "x",
|
|
271
|
-
* "unixVer": "4.0"
|
|
272
|
-
* },
|
|
273
|
-
* "ios": {
|
|
274
|
-
* "osVer": "12.0",
|
|
275
|
-
* "uniVer": "x",
|
|
276
|
-
* "unixVer": "4.11"
|
|
277
|
-
* }
|
|
278
|
-
* }
|
|
279
|
-
* "web": {
|
|
280
|
-
* "uniVer": "x",
|
|
281
|
-
* "unixVer": "4.0"
|
|
282
|
-
* }
|
|
283
|
-
* }
|
|
284
74
|
*/
|
|
285
75
|
readonly tagName: string
|
|
286
76
|
|
|
287
77
|
/**
|
|
288
78
|
* 只读属性 获取当前元素的元素名称
|
|
289
|
-
* @uniPlatform {
|
|
290
|
-
* "app": {
|
|
291
|
-
* "android": {
|
|
292
|
-
* "osVer": "5.0",
|
|
293
|
-
* "uniVer": "x",
|
|
294
|
-
* "unixVer": "4.0"
|
|
295
|
-
* },
|
|
296
|
-
* "ios": {
|
|
297
|
-
* "osVer": "12.0",
|
|
298
|
-
* "uniVer": "x",
|
|
299
|
-
* "unixVer": "4.11"
|
|
300
|
-
* }
|
|
301
|
-
* }
|
|
302
|
-
* "web": {
|
|
303
|
-
* "uniVer": "x",
|
|
304
|
-
* "unixVer": "4.0"
|
|
305
|
-
* }
|
|
306
|
-
* }
|
|
307
79
|
*/
|
|
308
80
|
readonly nodeName: string
|
|
309
81
|
|
|
310
82
|
/**
|
|
311
83
|
* 只读属性 获取元素上自定义数据属性(data-*)的集合
|
|
312
|
-
* @uniPlatform {
|
|
313
|
-
* "app": {
|
|
314
|
-
* "android": {
|
|
315
|
-
* "osVer": "5.0",
|
|
316
|
-
* "uniVer": "x",
|
|
317
|
-
* "unixVer": "4.0"
|
|
318
|
-
* },
|
|
319
|
-
* "ios": {
|
|
320
|
-
* "osVer": "12.0",
|
|
321
|
-
* "uniVer": "x",
|
|
322
|
-
* "unixVer": "4.11"
|
|
323
|
-
* }
|
|
324
|
-
* }
|
|
325
|
-
* "web": {
|
|
326
|
-
* "uniVer": "x",
|
|
327
|
-
* "unixVer": "4.0"
|
|
328
|
-
* }
|
|
329
|
-
* }
|
|
330
84
|
*/
|
|
331
85
|
readonly dataset: Map<string, any | null>
|
|
332
86
|
|
|
333
87
|
/**
|
|
334
88
|
* 只读属性 获取元素上所有属性元素的集合
|
|
335
|
-
* @uniPlatform {
|
|
336
|
-
* "app": {
|
|
337
|
-
* "android": {
|
|
338
|
-
* "osVer": "5.0",
|
|
339
|
-
* "uniVer": "x",
|
|
340
|
-
* "unixVer": "4.0"
|
|
341
|
-
* },
|
|
342
|
-
* "ios": {
|
|
343
|
-
* "osVer": "12.0",
|
|
344
|
-
* "uniVer": "x",
|
|
345
|
-
* "unixVer": "4.11"
|
|
346
|
-
* }
|
|
347
|
-
* }
|
|
348
|
-
* "web": {
|
|
349
|
-
* "uniVer": "x",
|
|
350
|
-
* "unixVer": "4.0"
|
|
351
|
-
* }
|
|
352
|
-
* }
|
|
353
89
|
*/
|
|
354
90
|
readonly attributes: Map<string, any | null>
|
|
355
91
|
|
|
356
92
|
/**
|
|
357
93
|
* 只读属性 获取元素的CSS样式对象
|
|
358
|
-
* @uniPlatform {
|
|
359
|
-
* "app": {
|
|
360
|
-
* "android": {
|
|
361
|
-
* "osVer": "5.0",
|
|
362
|
-
* "uniVer": "x",
|
|
363
|
-
* "unixVer": "4.0"
|
|
364
|
-
* },
|
|
365
|
-
* "ios": {
|
|
366
|
-
* "osVer": "12.0",
|
|
367
|
-
* "uniVer": "x",
|
|
368
|
-
* "unixVer": "4.11"
|
|
369
|
-
* }
|
|
370
|
-
* }
|
|
371
|
-
* "web": {
|
|
372
|
-
* "uniVer": "x",
|
|
373
|
-
* "unixVer": "4.0"
|
|
374
|
-
* }
|
|
375
|
-
* }
|
|
376
94
|
*/
|
|
377
95
|
readonly style: CSSStyleDeclaration
|
|
378
96
|
|
|
379
97
|
/**
|
|
380
98
|
* 只读属性 获取可滚动元素内容的总宽度,仅scroll-view、list-view组件支持,其他组件返回视图宽度
|
|
381
|
-
* @uniPlatform {
|
|
382
|
-
* "app": {
|
|
383
|
-
* "android": {
|
|
384
|
-
* "osVer": "5.0",
|
|
385
|
-
* "uniVer": "x",
|
|
386
|
-
* "unixVer": "4.0"
|
|
387
|
-
* },
|
|
388
|
-
* "ios": {
|
|
389
|
-
* "osVer": "12.0",
|
|
390
|
-
* "uniVer": "x",
|
|
391
|
-
* "unixVer": "4.11"
|
|
392
|
-
* }
|
|
393
|
-
* }
|
|
394
|
-
* "web": {
|
|
395
|
-
* "uniVer": "x",
|
|
396
|
-
* "unixVer": "4.0"
|
|
397
|
-
* }
|
|
398
|
-
* }
|
|
399
99
|
*/
|
|
400
100
|
readonly scrollWidth: number
|
|
401
101
|
|
|
402
102
|
/**
|
|
403
103
|
* 只读属性 获取可滚动元素内容的总高度,仅scroll-view、list-view组件支持,其他组件返回视图高度
|
|
404
|
-
* @uniPlatform {
|
|
405
|
-
* "app": {
|
|
406
|
-
* "android": {
|
|
407
|
-
* "osVer": "5.0",
|
|
408
|
-
* "uniVer": "x",
|
|
409
|
-
* "unixVer": "4.0"
|
|
410
|
-
* },
|
|
411
|
-
* "ios": {
|
|
412
|
-
* "osVer": "12.0",
|
|
413
|
-
* "uniVer": "x",
|
|
414
|
-
* "unixVer": "4.11"
|
|
415
|
-
* }
|
|
416
|
-
* }
|
|
417
|
-
* "web": {
|
|
418
|
-
* "uniVer": "x",
|
|
419
|
-
* "unixVer": "4.0"
|
|
420
|
-
* }
|
|
421
|
-
* }
|
|
422
104
|
*/
|
|
423
105
|
readonly scrollHeight: number
|
|
424
106
|
|
|
425
107
|
/**
|
|
426
108
|
* 获取或修改元素滚动条到元素左边的距离像素数,仅scroll-view、list-view组件支持。其他组件返回0
|
|
427
|
-
* @uniPlatform {
|
|
428
|
-
* "app": {
|
|
429
|
-
* "android": {
|
|
430
|
-
* "osVer": "5.0",
|
|
431
|
-
* "uniVer": "x",
|
|
432
|
-
* "unixVer": "4.0"
|
|
433
|
-
* },
|
|
434
|
-
* "ios": {
|
|
435
|
-
* "osVer": "12.0",
|
|
436
|
-
* "uniVer": "x",
|
|
437
|
-
* "unixVer": "4.11"
|
|
438
|
-
* }
|
|
439
|
-
* }
|
|
440
|
-
* "web": {
|
|
441
|
-
* "uniVer": "x",
|
|
442
|
-
* "unixVer": "4.0"
|
|
443
|
-
* }
|
|
444
|
-
* }
|
|
445
109
|
*/
|
|
446
110
|
scrollLeft: number
|
|
447
111
|
|
|
448
112
|
/**
|
|
449
113
|
* 获取或修改元素滚动条到元素顶部的距离像素数,仅scroll-view、list-view组件支持。其他组件返回0
|
|
450
|
-
* @uniPlatform {
|
|
451
|
-
* "app": {
|
|
452
|
-
* "android": {
|
|
453
|
-
* "osVer": "5.0",
|
|
454
|
-
* "uniVer": "x",
|
|
455
|
-
* "unixVer": "4.0"
|
|
456
|
-
* },
|
|
457
|
-
* "ios": {
|
|
458
|
-
* "osVer": "12.0",
|
|
459
|
-
* "uniVer": "x",
|
|
460
|
-
* "unixVer": "4.11"
|
|
461
|
-
* }
|
|
462
|
-
* }
|
|
463
|
-
* "web": {
|
|
464
|
-
* "uniVer": "x",
|
|
465
|
-
* "unixVer": "4.0"
|
|
466
|
-
* }
|
|
467
|
-
* }
|
|
468
114
|
*/
|
|
469
115
|
scrollTop: number
|
|
470
116
|
|
|
471
117
|
/**
|
|
472
118
|
* 只读属性 元素的左边界偏移值 单位px
|
|
473
|
-
* @uniPlatform {
|
|
474
|
-
* "app": {
|
|
475
|
-
* "android": {
|
|
476
|
-
* "osVer": "5.0",
|
|
477
|
-
* "uniVer": "x",
|
|
478
|
-
* "unixVer": "4.0"
|
|
479
|
-
* },
|
|
480
|
-
* "ios": {
|
|
481
|
-
* "osVer": "12.0",
|
|
482
|
-
* "uniVer": "x",
|
|
483
|
-
* "unixVer": "4.11"
|
|
484
|
-
* }
|
|
485
|
-
* }
|
|
486
|
-
* "web": {
|
|
487
|
-
* "uniVer": "x",
|
|
488
|
-
* "unixVer": "4.0"
|
|
489
|
-
* }
|
|
490
|
-
* }
|
|
491
119
|
*/
|
|
492
120
|
readonly offsetLeft: number
|
|
493
121
|
|
|
494
122
|
/**
|
|
495
123
|
* 只读属性 元素的顶部边界偏移值 单位px
|
|
496
|
-
* @uniPlatform {
|
|
497
|
-
* "app": {
|
|
498
|
-
* "android": {
|
|
499
|
-
* "osVer": "5.0",
|
|
500
|
-
* "uniVer": "x",
|
|
501
|
-
* "unixVer": "4.0"
|
|
502
|
-
* },
|
|
503
|
-
* "ios": {
|
|
504
|
-
* "osVer": "12.0",
|
|
505
|
-
* "uniVer": "x",
|
|
506
|
-
* "unixVer": "4.11"
|
|
507
|
-
* }
|
|
508
|
-
* }
|
|
509
|
-
* "web": {
|
|
510
|
-
* "uniVer": "x",
|
|
511
|
-
* "unixVer": "4.0"
|
|
512
|
-
* }
|
|
513
|
-
* }
|
|
514
124
|
*/
|
|
515
125
|
readonly offsetTop: number
|
|
516
126
|
|
|
517
127
|
/**
|
|
518
128
|
* 只读属性 元素的布局宽度,宽度包含border、padding的数据值 单位px
|
|
519
|
-
* @uniPlatform {
|
|
520
|
-
* "app": {
|
|
521
|
-
* "android": {
|
|
522
|
-
* "osVer": "5.0",
|
|
523
|
-
* "uniVer": "x",
|
|
524
|
-
* "unixVer": "4.0"
|
|
525
|
-
* },
|
|
526
|
-
* "ios": {
|
|
527
|
-
* "osVer": "12.0",
|
|
528
|
-
* "uniVer": "x",
|
|
529
|
-
* "unixVer": "4.11"
|
|
530
|
-
* }
|
|
531
|
-
* }
|
|
532
|
-
* "web": {
|
|
533
|
-
* "uniVer": "x",
|
|
534
|
-
* "unixVer": "4.0"
|
|
535
|
-
* }
|
|
536
|
-
* }
|
|
537
129
|
*/
|
|
538
130
|
readonly offsetWidth: number
|
|
539
131
|
|
|
540
132
|
/**
|
|
541
133
|
* 只读属性 元素的布局高度,高度包含border、padding的数据值 单位px
|
|
542
|
-
* @uniPlatform {
|
|
543
|
-
* "app": {
|
|
544
|
-
* "android": {
|
|
545
|
-
* "osVer": "5.0",
|
|
546
|
-
* "uniVer": "x",
|
|
547
|
-
* "unixVer": "4.0"
|
|
548
|
-
* },
|
|
549
|
-
* "ios": {
|
|
550
|
-
* "osVer": "12.0",
|
|
551
|
-
* "uniVer": "x",
|
|
552
|
-
* "unixVer": "4.11"
|
|
553
|
-
* }
|
|
554
|
-
* }
|
|
555
|
-
* "web": {
|
|
556
|
-
* "uniVer": "x",
|
|
557
|
-
* "unixVer": "4.0"
|
|
558
|
-
* }
|
|
559
|
-
* }
|
|
560
134
|
*/
|
|
561
135
|
readonly offsetHeight: number
|
|
562
136
|
|
|
563
137
|
/**
|
|
564
138
|
* 只读属性 扩展属性
|
|
565
|
-
* @uniPlatform {
|
|
566
|
-
* "app": {
|
|
567
|
-
* "android": {
|
|
568
|
-
* "osVer": "5.0",
|
|
569
|
-
* "uniVer": "x",
|
|
570
|
-
* "unixVer": "4.0"
|
|
571
|
-
* },
|
|
572
|
-
* "ios": {
|
|
573
|
-
* "osVer": "12.0",
|
|
574
|
-
* "uniVer": "x",
|
|
575
|
-
* "unixVer": "4.11"
|
|
576
|
-
* }
|
|
577
|
-
* }
|
|
578
|
-
* "web": {
|
|
579
|
-
* "uniVer": "x",
|
|
580
|
-
* "unixVer": "4.0"
|
|
581
|
-
* }
|
|
582
|
-
* }
|
|
583
139
|
*/
|
|
584
140
|
readonly ext: Map<string, any | null>
|
|
585
141
|
|
|
586
142
|
/**
|
|
587
143
|
* 获取元素标识。
|
|
588
144
|
* @internal
|
|
589
|
-
* @uniPlatform {
|
|
590
|
-
* "app": {
|
|
591
|
-
* "android": {
|
|
592
|
-
* "osVer": "5.0",
|
|
593
|
-
* "uniVer": "x",
|
|
594
|
-
* "unixVer": "4.0"
|
|
595
|
-
* },
|
|
596
|
-
* "ios": {
|
|
597
|
-
* "osVer": "12.0",
|
|
598
|
-
* "uniVer": "x",
|
|
599
|
-
* "unixVer": "x"
|
|
600
|
-
* }
|
|
601
|
-
* }
|
|
602
|
-
* "web": {
|
|
603
|
-
* "uniVer": "x",
|
|
604
|
-
* "unixVer": "x"
|
|
605
|
-
* }
|
|
606
|
-
* }
|
|
607
145
|
*/
|
|
608
146
|
getNodeId(): string
|
|
609
147
|
|
|
@@ -617,7 +155,7 @@ export interface UniElement {
|
|
|
617
155
|
* "android": {
|
|
618
156
|
* "osVer": "5.0",
|
|
619
157
|
* "uniVer": "x",
|
|
620
|
-
* "unixVer": "
|
|
158
|
+
* "unixVer": "3.93"
|
|
621
159
|
* },
|
|
622
160
|
* "ios": {
|
|
623
161
|
* "osVer": "12.0",
|
|
@@ -636,24 +174,6 @@ export interface UniElement {
|
|
|
636
174
|
/**
|
|
637
175
|
* 将一个元素添加到指定父元素的子元素列表的末尾处。如果将被插入的元素已经存在于当前文档的文档树中,那么将会它从原先的位置移动到新的位置。
|
|
638
176
|
* @param {UniElement} aChild 插入子元素对象
|
|
639
|
-
* @uniPlatform {
|
|
640
|
-
* "app": {
|
|
641
|
-
* "android": {
|
|
642
|
-
* "osVer": "5.0",
|
|
643
|
-
* "uniVer": "x",
|
|
644
|
-
* "unixVer": "4.0"
|
|
645
|
-
* },
|
|
646
|
-
* "ios": {
|
|
647
|
-
* "osVer": "12.0",
|
|
648
|
-
* "uniVer": "x",
|
|
649
|
-
* "unixVer": "4.11"
|
|
650
|
-
* }
|
|
651
|
-
* }
|
|
652
|
-
* "web": {
|
|
653
|
-
* "uniVer": "x",
|
|
654
|
-
* "unixVer": "4.0"
|
|
655
|
-
* }
|
|
656
|
-
* }
|
|
657
177
|
*/
|
|
658
178
|
appendChild(aChild: UniElement): void
|
|
659
179
|
|
|
@@ -661,48 +181,12 @@ export interface UniElement {
|
|
|
661
181
|
* 在参考元素之前插入一个拥有指定父元素的子元素。如果给定的子元素是对文档中现有元素的引用,insertBefore() 会将其从当前位置移动到新位置。
|
|
662
182
|
* @param newChild 插入子元素对象
|
|
663
183
|
* @param refChild 已存在父元素的子元素对象
|
|
664
|
-
* @uniPlatform {
|
|
665
|
-
* "app": {
|
|
666
|
-
* "android": {
|
|
667
|
-
* "osVer": "5.0",
|
|
668
|
-
* "uniVer": "x",
|
|
669
|
-
* "unixVer": "4.0"
|
|
670
|
-
* },
|
|
671
|
-
* "ios": {
|
|
672
|
-
* "osVer": "12.0",
|
|
673
|
-
* "uniVer": "x",
|
|
674
|
-
* "unixVer": "4.11"
|
|
675
|
-
* }
|
|
676
|
-
* }
|
|
677
|
-
* "web": {
|
|
678
|
-
* "uniVer": "x",
|
|
679
|
-
* "unixVer": "4.0"
|
|
680
|
-
* }
|
|
681
|
-
* }
|
|
682
184
|
*/
|
|
683
185
|
insertBefore(newChild: UniElement, refChild?: UniElement | null): UniElement | null
|
|
684
186
|
|
|
685
187
|
/**
|
|
686
188
|
* 将一个元素添加到指定父元素的子元素列表的末尾处 功能等同于appendChild
|
|
687
189
|
* @param newChild 插入子元素对象
|
|
688
|
-
* @uniPlatform {
|
|
689
|
-
* "app": {
|
|
690
|
-
* "android": {
|
|
691
|
-
* "osVer": "5.0",
|
|
692
|
-
* "uniVer": "x",
|
|
693
|
-
* "unixVer": "4.0"
|
|
694
|
-
* },
|
|
695
|
-
* "ios": {
|
|
696
|
-
* "osVer": "12.0",
|
|
697
|
-
* "uniVer": "x",
|
|
698
|
-
* "unixVer": "4.11"
|
|
699
|
-
* }
|
|
700
|
-
* }
|
|
701
|
-
* "web": {
|
|
702
|
-
* "uniVer": "x",
|
|
703
|
-
* "unixVer": "4.0"
|
|
704
|
-
* }
|
|
705
|
-
* }
|
|
706
190
|
*/
|
|
707
191
|
insertBefore(newChild: UniElement): UniElement | null
|
|
708
192
|
|
|
@@ -710,24 +194,6 @@ export interface UniElement {
|
|
|
710
194
|
* 设置指定元素上的某个属性值。如果设置的属性已经存在,则更新该属性值;否则使用指定的名称和值添加一个新的属性。
|
|
711
195
|
* @param {string} key 属性名称
|
|
712
196
|
* @param {string} value 属性值域
|
|
713
|
-
* @uniPlatform {
|
|
714
|
-
* "app": {
|
|
715
|
-
* "android": {
|
|
716
|
-
* "osVer": "5.0",
|
|
717
|
-
* "uniVer": "x",
|
|
718
|
-
* "unixVer": "4.0"
|
|
719
|
-
* },
|
|
720
|
-
* "ios": {
|
|
721
|
-
* "osVer": "12.0",
|
|
722
|
-
* "uniVer": "x",
|
|
723
|
-
* "unixVer": "4.11"
|
|
724
|
-
* }
|
|
725
|
-
* }
|
|
726
|
-
* "web": {
|
|
727
|
-
* "uniVer": "x",
|
|
728
|
-
* "unixVer": "4.0"
|
|
729
|
-
* }
|
|
730
|
-
* }
|
|
731
197
|
*/
|
|
732
198
|
setAttribute(key: string, value: string): void
|
|
733
199
|
|
|
@@ -736,48 +202,12 @@ export interface UniElement {
|
|
|
736
202
|
* @param {string} key 属性名称
|
|
737
203
|
* @param {string} value 属性值域
|
|
738
204
|
* @internal
|
|
739
|
-
* @uniPlatform {
|
|
740
|
-
* "app": {
|
|
741
|
-
* "android": {
|
|
742
|
-
* "osVer": "5.0",
|
|
743
|
-
* "uniVer": "x",
|
|
744
|
-
* "unixVer": "4.0"
|
|
745
|
-
* },
|
|
746
|
-
* "ios": {
|
|
747
|
-
* "osVer": "12.0",
|
|
748
|
-
* "uniVer": "x",
|
|
749
|
-
* "unixVer": "4.11"
|
|
750
|
-
* }
|
|
751
|
-
* }
|
|
752
|
-
* "web": {
|
|
753
|
-
* "uniVer": "x",
|
|
754
|
-
* "unixVer": "x"
|
|
755
|
-
* }
|
|
756
|
-
* }
|
|
757
205
|
*/
|
|
758
206
|
setAnyAttribute(key: string, value: any): void
|
|
759
207
|
|
|
760
208
|
/**
|
|
761
209
|
* 获取元素指定的属性值,如果指定的属性不存在则返回null。
|
|
762
210
|
* @param {string} key 属性名称
|
|
763
|
-
* @uniPlatform {
|
|
764
|
-
* "app": {
|
|
765
|
-
* "android": {
|
|
766
|
-
* "osVer": "5.0",
|
|
767
|
-
* "uniVer": "x",
|
|
768
|
-
* "unixVer": "4.0"
|
|
769
|
-
* },
|
|
770
|
-
* "ios": {
|
|
771
|
-
* "osVer": "12.0",
|
|
772
|
-
* "uniVer": "x",
|
|
773
|
-
* "unixVer": "4.11"
|
|
774
|
-
* }
|
|
775
|
-
* }
|
|
776
|
-
* "web": {
|
|
777
|
-
* "uniVer": "x",
|
|
778
|
-
* "unixVer": "4.0"
|
|
779
|
-
* }
|
|
780
|
-
* }
|
|
781
211
|
*/
|
|
782
212
|
getAttribute(key: string): string | null
|
|
783
213
|
|
|
@@ -785,1107 +215,40 @@ export interface UniElement {
|
|
|
785
215
|
* 返回元素上一个指定的属性值。如果指定的属性不存在,则返回 null
|
|
786
216
|
* @param {string} key 属性名称
|
|
787
217
|
* @internal
|
|
788
|
-
* @uniPlatform {
|
|
789
|
-
* "app": {
|
|
790
|
-
* "android": {
|
|
791
|
-
* "osVer": "5.0",
|
|
792
|
-
* "uniVer": "x",
|
|
793
|
-
* "unixVer": "4.0"
|
|
794
|
-
* },
|
|
795
|
-
* "ios": {
|
|
796
|
-
* "osVer": "12.0",
|
|
797
|
-
* "uniVer": "x",
|
|
798
|
-
* "unixVer": "4.11"
|
|
799
|
-
* }
|
|
800
|
-
* }
|
|
801
|
-
* "web": {
|
|
802
|
-
* "uniVer": "x",
|
|
803
|
-
* "unixVer": "x"
|
|
804
|
-
* }
|
|
805
|
-
* }
|
|
806
218
|
*/
|
|
807
219
|
getAnyAttribute(key: string): any | null
|
|
808
220
|
|
|
809
221
|
/**
|
|
810
222
|
* 返回改元素是否包含有指定的属性,属性存在则返回true,否则返回false。
|
|
811
223
|
* @param {string} key 属性名称
|
|
812
|
-
* @uniPlatform {
|
|
813
|
-
* "app": {
|
|
814
|
-
* "android": {
|
|
815
|
-
* "osVer": "5.0",
|
|
816
|
-
* "uniVer": "x",
|
|
817
|
-
* "unixVer": "4.0"
|
|
818
|
-
* },
|
|
819
|
-
* "ios": {
|
|
820
|
-
* "osVer": "12.0",
|
|
821
|
-
* "uniVer": "x",
|
|
822
|
-
* "unixVer": "4.11"
|
|
823
|
-
* }
|
|
824
|
-
* }
|
|
825
|
-
* "web": {
|
|
826
|
-
* "uniVer": "x",
|
|
827
|
-
* "unixVer": "4.0"
|
|
828
|
-
* }
|
|
829
|
-
* }
|
|
830
224
|
*/
|
|
831
225
|
hasAttribute(key: string): boolean
|
|
832
226
|
|
|
833
227
|
/**
|
|
834
228
|
* 从元素中删除一个属性,如果指定的属性不存在,则不做任何操作,也不会产生错误。
|
|
835
229
|
* @param {string} key 属性名称
|
|
836
|
-
* @uniPlatform {
|
|
837
|
-
* "app": {
|
|
838
|
-
* "android": {
|
|
839
|
-
* "osVer": "5.0",
|
|
840
|
-
* "uniVer": "x",
|
|
841
|
-
* "unixVer": "4.0"
|
|
842
|
-
* },
|
|
843
|
-
* "ios": {
|
|
844
|
-
* "osVer": "12.0",
|
|
845
|
-
* "uniVer": "x",
|
|
846
|
-
* "unixVer": "4.11"
|
|
847
|
-
* }
|
|
848
|
-
* }
|
|
849
|
-
* "web": {
|
|
850
|
-
* "uniVer": "x",
|
|
851
|
-
* "unixVer": "4.0"
|
|
852
|
-
* }
|
|
853
|
-
* }
|
|
854
230
|
*/
|
|
855
231
|
removeAttribute(key: string): void
|
|
856
232
|
|
|
857
233
|
/**
|
|
858
234
|
* 更新元素的样式。
|
|
859
235
|
* @internal
|
|
860
|
-
* @uniPlatform {
|
|
861
|
-
* "app": {
|
|
862
|
-
* "android": {
|
|
863
|
-
* "osVer": "5.0",
|
|
864
|
-
* "uniVer": "x",
|
|
865
|
-
* "unixVer": "4.0"
|
|
866
|
-
* },
|
|
867
|
-
* "ios": {
|
|
868
|
-
* "osVer": "12.0",
|
|
869
|
-
* "uniVer": "x",
|
|
870
|
-
* "unixVer": "4.11"
|
|
871
|
-
* }
|
|
872
|
-
* }
|
|
873
|
-
* "web": {
|
|
874
|
-
* "uniVer": "x",
|
|
875
|
-
* "unixVer": "x"
|
|
876
|
-
* }
|
|
877
|
-
* }
|
|
878
|
-
*/
|
|
879
|
-
updateStyle(map: Map<string, any | null>): void
|
|
880
|
-
|
|
881
|
-
/**
|
|
882
|
-
* 获取元素的大小及其相对于窗口的位置信息。
|
|
883
|
-
* @uniPlatform {
|
|
884
|
-
* "app": {
|
|
885
|
-
* "android": {
|
|
886
|
-
* "osVer": "5.0",
|
|
887
|
-
* "uniVer": "x",
|
|
888
|
-
* "unixVer": "4.0"
|
|
889
|
-
* },
|
|
890
|
-
* "ios": {
|
|
891
|
-
* "osVer": "12.0",
|
|
892
|
-
* "uniVer": "x",
|
|
893
|
-
* "unixVer": "4.11"
|
|
894
|
-
* }
|
|
895
|
-
* }
|
|
896
|
-
* "web": {
|
|
897
|
-
* "uniVer": "x",
|
|
898
|
-
* "unixVer": "4.0"
|
|
899
|
-
* }
|
|
900
|
-
* }
|
|
901
|
-
*/
|
|
902
|
-
getBoundingClientRect(): DOMRect
|
|
903
|
-
|
|
904
|
-
/**
|
|
905
|
-
* 获取组件的绘制对象,仅uvue页面中的 view 组件支持,其它组件不支持则返回null。
|
|
906
|
-
* @uniPlatform {
|
|
907
|
-
* "app": {
|
|
908
|
-
* "android": {
|
|
909
|
-
* "osVer": "5.0",
|
|
910
|
-
* "uniVer": "x",
|
|
911
|
-
* "unixVer": "4.0"
|
|
912
|
-
* },
|
|
913
|
-
* "ios": {
|
|
914
|
-
* "osVer": "12.0",
|
|
915
|
-
* "uniVer": "x",
|
|
916
|
-
* "unixVer": "4.11"
|
|
917
|
-
* }
|
|
918
|
-
* }
|
|
919
|
-
* "web": {
|
|
920
|
-
* "uniVer": "x",
|
|
921
|
-
* "unixVer": "x"
|
|
922
|
-
* }
|
|
923
|
-
* }
|
|
924
|
-
*/
|
|
925
|
-
getDrawableContext(): DrawableContext | null
|
|
926
|
-
|
|
927
|
-
/**
|
|
928
|
-
* 将指定的监听器注册到元素对象上,当该对象触发指定的事件时,指定的回调函数就会被执行。
|
|
929
|
-
* @param {string} type 事件类型
|
|
930
|
-
* @param {(event: T) => R} callback 事件监听器 T表示event类型,R表示返回值类型
|
|
931
|
-
* @uniPlatform {
|
|
932
|
-
* "app": {
|
|
933
|
-
* "android": {
|
|
934
|
-
* "osVer": "5.0",
|
|
935
|
-
* "uniVer": "x",
|
|
936
|
-
* "unixVer": "4.0"
|
|
937
|
-
* },
|
|
938
|
-
* "ios": {
|
|
939
|
-
* "osVer": "12.0",
|
|
940
|
-
* "uniVer": "x",
|
|
941
|
-
* "unixVer": "4.11"
|
|
942
|
-
* }
|
|
943
|
-
* }
|
|
944
|
-
* "web": {
|
|
945
|
-
* "uniVer": "x",
|
|
946
|
-
* "unixVer": "x"
|
|
947
|
-
* }
|
|
948
|
-
* }
|
|
949
|
-
*/
|
|
950
|
-
addEventListener<T extends UniEvent, R>(type: string, callback: (event: T) => R): UniCallbackWrapper
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
* 删除使用 addEventListener 方法添加的事件监听器。
|
|
954
|
-
* @param type 事件类型
|
|
955
|
-
* @param callbackWrapper 事件监听回调封装类
|
|
956
|
-
* @uniPlatform {
|
|
957
|
-
* "app": {
|
|
958
|
-
* "android": {
|
|
959
|
-
* "osVer": "5.0",
|
|
960
|
-
* "uniVer": "x",
|
|
961
|
-
* "unixVer": "4.0"
|
|
962
|
-
* },
|
|
963
|
-
* "ios": {
|
|
964
|
-
* "osVer": "12.0",
|
|
965
|
-
* "uniVer": "x",
|
|
966
|
-
* "unixVer": "4.11"
|
|
967
|
-
* }
|
|
968
|
-
* }
|
|
969
|
-
* "web": {
|
|
970
|
-
* "uniVer": "x",
|
|
971
|
-
* "unixVer": "x"
|
|
972
|
-
* }
|
|
973
|
-
* }
|
|
974
|
-
*/
|
|
975
|
-
removeEventListener(type: string, callbackWrapper: UniCallbackWrapper): void
|
|
976
|
-
|
|
977
|
-
/**
|
|
978
|
-
* 从元素中删除一个子元素,返回删除的元素。
|
|
979
|
-
* @param {UniElement} aChild 被删除子元素对象
|
|
980
|
-
* @uniPlatform {
|
|
981
|
-
* "app": {
|
|
982
|
-
* "android": {
|
|
983
|
-
* "osVer": "5.0",
|
|
984
|
-
* "uniVer": "x",
|
|
985
|
-
* "unixVer": "4.0"
|
|
986
|
-
* },
|
|
987
|
-
* "ios": {
|
|
988
|
-
* "osVer": "12.0",
|
|
989
|
-
* "uniVer": "x",
|
|
990
|
-
* "unixVer": "4.11"
|
|
991
|
-
* }
|
|
992
|
-
* }
|
|
993
|
-
* "web": {
|
|
994
|
-
* "uniVer": "x",
|
|
995
|
-
* "unixVer": "4.0"
|
|
996
|
-
* }
|
|
997
|
-
* }
|
|
998
|
-
*/
|
|
999
|
-
removeChild(aChild: UniElement): UniElement | null
|
|
1000
|
-
|
|
1001
|
-
/**
|
|
1002
|
-
* 把元素对象从它所属的 DOM 树中删除。
|
|
1003
|
-
* @uniPlatform {
|
|
1004
|
-
* "app": {
|
|
1005
|
-
* "android": {
|
|
1006
|
-
* "osVer": "5.0",
|
|
1007
|
-
* "uniVer": "x",
|
|
1008
|
-
* "unixVer": "4.0"
|
|
1009
|
-
* },
|
|
1010
|
-
* "ios": {
|
|
1011
|
-
* "osVer": "12.0",
|
|
1012
|
-
* "uniVer": "x",
|
|
1013
|
-
* "unixVer": "4.11"
|
|
1014
|
-
* }
|
|
1015
|
-
* }
|
|
1016
|
-
* "web": {
|
|
1017
|
-
* "uniVer": "x",
|
|
1018
|
-
* "unixVer": "4.0"
|
|
1019
|
-
* }
|
|
1020
|
-
* }
|
|
1021
236
|
*/
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
/**
|
|
1025
|
-
*
|
|
1026
|
-
* @param {string} type 事件类型
|
|
1027
|
-
* @param {UniEvent} value 事件返回对象
|
|
1028
|
-
* @uniPlatform {
|
|
1029
|
-
* "app": {
|
|
1030
|
-
* "android": {
|
|
1031
|
-
* "osVer": "5.0",
|
|
1032
|
-
* "uniVer": "x",
|
|
1033
|
-
* "unixVer": "4.0"
|
|
1034
|
-
* },
|
|
1035
|
-
* "ios": {
|
|
1036
|
-
* "osVer": "12.0",
|
|
1037
|
-
* "uniVer": "x",
|
|
1038
|
-
* "unixVer": "4.11"
|
|
1039
|
-
* }
|
|
1040
|
-
* }
|
|
1041
|
-
* "web": {
|
|
1042
|
-
* "uniVer": "x",
|
|
1043
|
-
* "unixVer": "4.0"
|
|
1044
|
-
* }
|
|
1045
|
-
* }
|
|
1046
|
-
*/
|
|
1047
|
-
dispatchEvent(type: string, value: UniEvent): void
|
|
1048
|
-
|
|
1049
|
-
/**
|
|
1050
|
-
* 使界面滚动到给定元素的指定坐标位置 仅scroll-view、list-view组件支持
|
|
1051
|
-
* @param {number} x x轴要滚动到坐标位置(单位px)
|
|
1052
|
-
* @param {number} y y轴要滚动到坐标位置(单位px)
|
|
1053
|
-
* @uniPlatform {
|
|
1054
|
-
* "app": {
|
|
1055
|
-
* "android": {
|
|
1056
|
-
* "osVer": "5.0",
|
|
1057
|
-
* "uniVer": "x",
|
|
1058
|
-
* "unixVer": "4.0"
|
|
1059
|
-
* },
|
|
1060
|
-
* "ios": {
|
|
1061
|
-
* "osVer": "12.0",
|
|
1062
|
-
* "uniVer": "x",
|
|
1063
|
-
* "unixVer": "4.11"
|
|
1064
|
-
* }
|
|
1065
|
-
* }
|
|
1066
|
-
* "web": {
|
|
1067
|
-
* "uniVer": "x",
|
|
1068
|
-
* "unixVer": "4.0"
|
|
1069
|
-
* }
|
|
1070
|
-
* }
|
|
1071
|
-
*/
|
|
1072
|
-
scrollTo(x: number, y: number): void
|
|
1073
|
-
|
|
1074
|
-
/**
|
|
1075
|
-
* 使得元素滚动一段特定距离 仅scroll-view、list-view组件支持
|
|
1076
|
-
* @param {number} x x轴要滚动的距离(单位px)
|
|
1077
|
-
* @param {number} y y轴要滚动的距离(单位px)
|
|
1078
|
-
* @uniPlatform {
|
|
1079
|
-
* "app": {
|
|
1080
|
-
* "android": {
|
|
1081
|
-
* "osVer": "5.0",
|
|
1082
|
-
* "uniVer": "x",
|
|
1083
|
-
* "unixVer": "4.0"
|
|
1084
|
-
* },
|
|
1085
|
-
* "ios": {
|
|
1086
|
-
* "osVer": "12.0",
|
|
1087
|
-
* "uniVer": "x",
|
|
1088
|
-
* "unixVer": "4.11"
|
|
1089
|
-
* }
|
|
1090
|
-
* }
|
|
1091
|
-
* "web": {
|
|
1092
|
-
* "uniVer": "x",
|
|
1093
|
-
* "unixVer": "4.0"
|
|
1094
|
-
* }
|
|
1095
|
-
* }
|
|
1096
|
-
*/
|
|
1097
|
-
scrollBy(x: number, y: number): void
|
|
1098
|
-
|
|
1099
|
-
/**
|
|
1100
|
-
* 返回文档中与指定选择器或选择器组匹配的第一个 Element对象。如果找不到匹配项,则返回null
|
|
1101
|
-
* @param {string.cssSelectorString}selector CSS 选择器字符串
|
|
1102
|
-
* @uniPlatform {
|
|
1103
|
-
* "app": {
|
|
1104
|
-
* "android": {
|
|
1105
|
-
* "osVer": "5.0",
|
|
1106
|
-
* "uniVer": "x",
|
|
1107
|
-
* "unixVer": "4.0"
|
|
1108
|
-
* },
|
|
1109
|
-
* "ios": {
|
|
1110
|
-
* "osVer": "12.0",
|
|
1111
|
-
* "uniVer": "x",
|
|
1112
|
-
* "unixVer": "4.11"
|
|
1113
|
-
* }
|
|
1114
|
-
* }
|
|
1115
|
-
* "web": {
|
|
1116
|
-
* "uniVer": "x",
|
|
1117
|
-
* "unixVer": "4.0"
|
|
1118
|
-
* }
|
|
1119
|
-
* }
|
|
1120
|
-
*/
|
|
1121
|
-
querySelector(selector: string.cssSelectorString): UniElement | null
|
|
1122
|
-
|
|
1123
|
-
/**
|
|
1124
|
-
* 返回与指定的选择器组匹配的文档中的元素列表
|
|
1125
|
-
* @param {string.cssSelectorString}selector CSS 选择器字符串
|
|
1126
|
-
* @uniPlatform {
|
|
1127
|
-
* "app": {
|
|
1128
|
-
* "android": {
|
|
1129
|
-
* "osVer": "5.0",
|
|
1130
|
-
* "uniVer": "x",
|
|
1131
|
-
* "unixVer": "4.0"
|
|
1132
|
-
* },
|
|
1133
|
-
* "ios": {
|
|
1134
|
-
* "osVer": "12.0",
|
|
1135
|
-
* "uniVer": "x",
|
|
1136
|
-
* "unixVer": "4.11"
|
|
1137
|
-
* }
|
|
1138
|
-
* }
|
|
1139
|
-
* "web": {
|
|
1140
|
-
* "uniVer": "x",
|
|
1141
|
-
* "unixVer": "4.0"
|
|
1142
|
-
* }
|
|
1143
|
-
* }
|
|
1144
|
-
*/
|
|
1145
|
-
querySelectorAll(selector: string.cssSelectorString): UniElement[] | null
|
|
1146
|
-
|
|
1147
|
-
/**
|
|
1148
|
-
* 使元素获取焦点 仅input、Textarea组件支持
|
|
1149
|
-
* @uniPlatform {
|
|
1150
|
-
* "app": {
|
|
1151
|
-
* "android": {
|
|
1152
|
-
* "osVer": "5.0",
|
|
1153
|
-
* "uniVer": "x",
|
|
1154
|
-
* "unixVer": "4.0"
|
|
1155
|
-
* },
|
|
1156
|
-
* "ios": {
|
|
1157
|
-
* "osVer": "12.0",
|
|
1158
|
-
* "uniVer": "x",
|
|
1159
|
-
* "unixVer": "4.11"
|
|
1160
|
-
* }
|
|
1161
|
-
* }
|
|
1162
|
-
* "web": {
|
|
1163
|
-
* "uniVer": "x",
|
|
1164
|
-
* "unixVer": "4.0"
|
|
1165
|
-
* }
|
|
1166
|
-
* }
|
|
1167
|
-
*/
|
|
1168
|
-
focus(): void
|
|
1169
|
-
|
|
1170
|
-
/**
|
|
1171
|
-
* 使元素丢失焦点 仅input、Textarea组件支持
|
|
1172
|
-
* @uniPlatform {
|
|
1173
|
-
* "app": {
|
|
1174
|
-
* "android": {
|
|
1175
|
-
* "osVer": "5.0",
|
|
1176
|
-
* "uniVer": "x",
|
|
1177
|
-
* "unixVer": "4.0"
|
|
1178
|
-
* },
|
|
1179
|
-
* "ios": {
|
|
1180
|
-
* "osVer": "12.0",
|
|
1181
|
-
* "uniVer": "x",
|
|
1182
|
-
* "unixVer": "4.11"
|
|
1183
|
-
* }
|
|
1184
|
-
* }
|
|
1185
|
-
* "web": {
|
|
1186
|
-
* "uniVer": "x",
|
|
1187
|
-
* "unixVer": "4.0"
|
|
1188
|
-
* }
|
|
1189
|
-
* }
|
|
1190
|
-
*/
|
|
1191
|
-
blur(): void
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
export type INode = UniElement
|
|
1195
|
-
export type Element = UniElement
|
|
1196
|
-
|
|
1197
|
-
/**
|
|
1198
|
-
* view元素对象
|
|
1199
|
-
* @package io.dcloud.uniapp.runtime
|
|
1200
|
-
* @uniPlatform {
|
|
1201
|
-
* "app": {
|
|
1202
|
-
* "android": {
|
|
1203
|
-
* "osVer": "5.0",
|
|
1204
|
-
* "uniVer": "x",
|
|
1205
|
-
* "unixVer": "4.0"
|
|
1206
|
-
* },
|
|
1207
|
-
* "ios": {
|
|
1208
|
-
* "osVer": "12.0",
|
|
1209
|
-
* "uniVer": "x",
|
|
1210
|
-
* "unixVer": "4.11"
|
|
1211
|
-
* }
|
|
1212
|
-
* }
|
|
1213
|
-
* "web": {
|
|
1214
|
-
* "uniVer": "x",
|
|
1215
|
-
* "unixVer": "4.0"
|
|
1216
|
-
* }
|
|
1217
|
-
* }
|
|
1218
|
-
*/
|
|
1219
|
-
export interface UniViewElement extends UniElement {}
|
|
1220
|
-
|
|
1221
|
-
/**
|
|
1222
|
-
* scroll-view元素对象
|
|
1223
|
-
* @package io.dcloud.uniapp.runtime
|
|
1224
|
-
* @uniPlatform {
|
|
1225
|
-
* "app": {
|
|
1226
|
-
* "android": {
|
|
1227
|
-
* "osVer": "5.0",
|
|
1228
|
-
* "uniVer": "x",
|
|
1229
|
-
* "unixVer": "4.0"
|
|
1230
|
-
* },
|
|
1231
|
-
* "ios": {
|
|
1232
|
-
* "osVer": "12.0",
|
|
1233
|
-
* "uniVer": "x",
|
|
1234
|
-
* "unixVer": "4.11"
|
|
1235
|
-
* }
|
|
1236
|
-
* }
|
|
1237
|
-
* "web": {
|
|
1238
|
-
* "uniVer": "x",
|
|
1239
|
-
* "unixVer": "4.0"
|
|
1240
|
-
* }
|
|
1241
|
-
* }
|
|
1242
|
-
*/
|
|
1243
|
-
export interface UniScrollViewElement extends UniElement {}
|
|
1244
|
-
|
|
1245
|
-
/**
|
|
1246
|
-
* list-view元素对象
|
|
1247
|
-
* @package io.dcloud.uniapp.runtime
|
|
1248
|
-
* @uniPlatform {
|
|
1249
|
-
* "app": {
|
|
1250
|
-
* "android": {
|
|
1251
|
-
* "osVer": "5.0",
|
|
1252
|
-
* "uniVer": "x",
|
|
1253
|
-
* "unixVer": "4.0"
|
|
1254
|
-
* },
|
|
1255
|
-
* "ios": {
|
|
1256
|
-
* "osVer": "12.0",
|
|
1257
|
-
* "uniVer": "x",
|
|
1258
|
-
* "unixVer": "4.11"
|
|
1259
|
-
* }
|
|
1260
|
-
* }
|
|
1261
|
-
* "web": {
|
|
1262
|
-
* "uniVer": "x",
|
|
1263
|
-
* "unixVer": "4.0"
|
|
1264
|
-
* }
|
|
1265
|
-
* }
|
|
1266
|
-
*/
|
|
1267
|
-
export interface UniListViewElement extends UniScrollViewElement {}
|
|
1268
|
-
|
|
1269
|
-
/**
|
|
1270
|
-
* list-item元素对象
|
|
1271
|
-
* @package io.dcloud.uniapp.runtime
|
|
1272
|
-
* @uniPlatform {
|
|
1273
|
-
* "app": {
|
|
1274
|
-
* "android": {
|
|
1275
|
-
* "osVer": "5.0",
|
|
1276
|
-
* "uniVer": "x",
|
|
1277
|
-
* "unixVer": "4.0"
|
|
1278
|
-
* },
|
|
1279
|
-
* "ios": {
|
|
1280
|
-
* "osVer": "12.0",
|
|
1281
|
-
* "uniVer": "x",
|
|
1282
|
-
* "unixVer": "4.11"
|
|
1283
|
-
* }
|
|
1284
|
-
* }
|
|
1285
|
-
* "web": {
|
|
1286
|
-
* "uniVer": "x",
|
|
1287
|
-
* "unixVer": "4.0"
|
|
1288
|
-
* }
|
|
1289
|
-
* }
|
|
1290
|
-
*/
|
|
1291
|
-
export interface UniListItemElement extends UniElement {}
|
|
1292
|
-
|
|
1293
|
-
/**
|
|
1294
|
-
* swiper元素对象
|
|
1295
|
-
* @package io.dcloud.uniapp.runtime
|
|
1296
|
-
* @uniPlatform {
|
|
1297
|
-
* "app": {
|
|
1298
|
-
* "android": {
|
|
1299
|
-
* "osVer": "5.0",
|
|
1300
|
-
* "uniVer": "x",
|
|
1301
|
-
* "unixVer": "4.0"
|
|
1302
|
-
* },
|
|
1303
|
-
* "ios": {
|
|
1304
|
-
* "osVer": "12.0",
|
|
1305
|
-
* "uniVer": "x",
|
|
1306
|
-
* "unixVer": "4.11"
|
|
1307
|
-
* }
|
|
1308
|
-
* }
|
|
1309
|
-
* "web": {
|
|
1310
|
-
* "uniVer": "x",
|
|
1311
|
-
* "unixVer": "4.0"
|
|
1312
|
-
* }
|
|
1313
|
-
* }
|
|
1314
|
-
*/
|
|
1315
|
-
export interface UniSwiperElement extends UniElement {}
|
|
1316
|
-
|
|
1317
|
-
/**
|
|
1318
|
-
* swiper-item元素对象
|
|
1319
|
-
* @package io.dcloud.uniapp.runtime
|
|
1320
|
-
* @uniPlatform {
|
|
1321
|
-
* "app": {
|
|
1322
|
-
* "android": {
|
|
1323
|
-
* "osVer": "5.0",
|
|
1324
|
-
* "uniVer": "x",
|
|
1325
|
-
* "unixVer": "4.0"
|
|
1326
|
-
* },
|
|
1327
|
-
* "ios": {
|
|
1328
|
-
* "osVer": "12.0",
|
|
1329
|
-
* "uniVer": "x",
|
|
1330
|
-
* "unixVer": "4.11"
|
|
1331
|
-
* }
|
|
1332
|
-
* }
|
|
1333
|
-
* "web": {
|
|
1334
|
-
* "uniVer": "x",
|
|
1335
|
-
* "unixVer": "4.0"
|
|
1336
|
-
* }
|
|
1337
|
-
* }
|
|
1338
|
-
*/
|
|
1339
|
-
export interface UniSwiperItemElement extends UniElement {}
|
|
1340
|
-
|
|
1341
|
-
/**
|
|
1342
|
-
* image元素对象
|
|
1343
|
-
* @package io.dcloud.uniapp.runtime
|
|
1344
|
-
* @uniPlatform {
|
|
1345
|
-
* "app": {
|
|
1346
|
-
* "android": {
|
|
1347
|
-
* "osVer": "5.0",
|
|
1348
|
-
* "uniVer": "x",
|
|
1349
|
-
* "unixVer": "4.0"
|
|
1350
|
-
* },
|
|
1351
|
-
* "ios": {
|
|
1352
|
-
* "osVer": "12.0",
|
|
1353
|
-
* "uniVer": "x",
|
|
1354
|
-
* "unixVer": "4.11"
|
|
1355
|
-
* }
|
|
1356
|
-
* }
|
|
1357
|
-
* "web": {
|
|
1358
|
-
* "uniVer": "x",
|
|
1359
|
-
* "unixVer": "4.0"
|
|
1360
|
-
* }
|
|
1361
|
-
* }
|
|
1362
|
-
*/
|
|
1363
|
-
export interface UniImageElement extends UniElement {}
|
|
1364
|
-
|
|
1365
|
-
/**
|
|
1366
|
-
* input元素对象
|
|
1367
|
-
* @package io.dcloud.uniapp.runtime
|
|
1368
|
-
* @uniPlatform {
|
|
1369
|
-
* "app": {
|
|
1370
|
-
* "android": {
|
|
1371
|
-
* "osVer": "5.0",
|
|
1372
|
-
* "uniVer": "x",
|
|
1373
|
-
* "unixVer": "4.0"
|
|
1374
|
-
* },
|
|
1375
|
-
* "ios": {
|
|
1376
|
-
* "osVer": "12.0",
|
|
1377
|
-
* "uniVer": "x",
|
|
1378
|
-
* "unixVer": "4.11"
|
|
1379
|
-
* }
|
|
1380
|
-
* }
|
|
1381
|
-
* "web": {
|
|
1382
|
-
* "uniVer": "x",
|
|
1383
|
-
* "unixVer": "4.0"
|
|
1384
|
-
* }
|
|
1385
|
-
* }
|
|
1386
|
-
*/
|
|
1387
|
-
export interface UniInputElement extends UniElement {
|
|
1388
|
-
/**
|
|
1389
|
-
* 表单的控件名称,作为键值对的一部分与表单(form组件)一同提交
|
|
1390
|
-
* @uniPlatform {
|
|
1391
|
-
* "app": {
|
|
1392
|
-
* "android": {
|
|
1393
|
-
* "osVer": "5.0",
|
|
1394
|
-
* "uniVer": "x",
|
|
1395
|
-
* "unixVer": "4.0"
|
|
1396
|
-
* },
|
|
1397
|
-
* "ios": {
|
|
1398
|
-
* "osVer": "12.0",
|
|
1399
|
-
* "uniVer": "x",
|
|
1400
|
-
* "unixVer": "4.11"
|
|
1401
|
-
* }
|
|
1402
|
-
* }
|
|
1403
|
-
* }
|
|
1404
|
-
*/
|
|
1405
|
-
name: string
|
|
1406
|
-
/**
|
|
1407
|
-
* input的类型
|
|
1408
|
-
* @uniPlatform {
|
|
1409
|
-
* "app": {
|
|
1410
|
-
* "android": {
|
|
1411
|
-
* "osVer": "5.0",
|
|
1412
|
-
* "uniVer": "x",
|
|
1413
|
-
* "unixVer": "4.0"
|
|
1414
|
-
* },
|
|
1415
|
-
* "ios": {
|
|
1416
|
-
* "osVer": "12.0",
|
|
1417
|
-
* "uniVer": "x",
|
|
1418
|
-
* "unixVer": "4.11"
|
|
1419
|
-
* }
|
|
1420
|
-
* }
|
|
1421
|
-
* }
|
|
1422
|
-
*/
|
|
1423
|
-
type: string
|
|
1424
|
-
/**
|
|
1425
|
-
* 是否禁用
|
|
1426
|
-
* @uniPlatform {
|
|
1427
|
-
* "app": {
|
|
1428
|
-
* "android": {
|
|
1429
|
-
* "osVer": "5.0",
|
|
1430
|
-
* "uniVer": "x",
|
|
1431
|
-
* "unixVer": "4.0"
|
|
1432
|
-
* },
|
|
1433
|
-
* "ios": {
|
|
1434
|
-
* "osVer": "12.0",
|
|
1435
|
-
* "uniVer": "x",
|
|
1436
|
-
* "unixVer": "4.11"
|
|
1437
|
-
* }
|
|
1438
|
-
* }
|
|
1439
|
-
* }
|
|
1440
|
-
*/
|
|
1441
|
-
disabled: boolean
|
|
1442
|
-
/**
|
|
1443
|
-
* 自动获取焦点
|
|
1444
|
-
* @uniPlatform {
|
|
1445
|
-
* "app": {
|
|
1446
|
-
* "android": {
|
|
1447
|
-
* "osVer": "5.0",
|
|
1448
|
-
* "uniVer": "x",
|
|
1449
|
-
* "unixVer": "4.0"
|
|
1450
|
-
* },
|
|
1451
|
-
* "ios": {
|
|
1452
|
-
* "osVer": "12.0",
|
|
1453
|
-
* "uniVer": "x",
|
|
1454
|
-
* "unixVer": "4.11"
|
|
1455
|
-
* }
|
|
1456
|
-
* }
|
|
1457
|
-
* }
|
|
1458
|
-
*/
|
|
1459
|
-
autofocus: boolean
|
|
1460
|
-
/**
|
|
1461
|
-
* 输入框的初始内容
|
|
1462
|
-
* @uniPlatform {
|
|
1463
|
-
* "app": {
|
|
1464
|
-
* "android": {
|
|
1465
|
-
* "osVer": "5.0",
|
|
1466
|
-
* "uniVer": "x",
|
|
1467
|
-
* "unixVer": "4.0"
|
|
1468
|
-
* },
|
|
1469
|
-
* "ios": {
|
|
1470
|
-
* "osVer": "12.0",
|
|
1471
|
-
* "uniVer": "x",
|
|
1472
|
-
* "unixVer": "4.11"
|
|
1473
|
-
* }
|
|
1474
|
-
* }
|
|
1475
|
-
* }
|
|
1476
|
-
*/
|
|
1477
|
-
value: string
|
|
1478
|
-
}
|
|
1479
|
-
|
|
1480
|
-
/**
|
|
1481
|
-
* textarea元素对象
|
|
1482
|
-
* @package io.dcloud.uniapp.runtime
|
|
1483
|
-
* @uniPlatform {
|
|
1484
|
-
* "app": {
|
|
1485
|
-
* "android": {
|
|
1486
|
-
* "osVer": "5.0",
|
|
1487
|
-
* "uniVer": "x",
|
|
1488
|
-
* "unixVer": "4.0"
|
|
1489
|
-
* },
|
|
1490
|
-
* "ios": {
|
|
1491
|
-
* "osVer": "12.0",
|
|
1492
|
-
* "uniVer": "x",
|
|
1493
|
-
* "unixVer": "4.11"
|
|
1494
|
-
* }
|
|
1495
|
-
* }
|
|
1496
|
-
* "web": {
|
|
1497
|
-
* "uniVer": "x",
|
|
1498
|
-
* "unixVer": "4.0"
|
|
1499
|
-
* }
|
|
1500
|
-
* }
|
|
1501
|
-
*/
|
|
1502
|
-
export interface UniTextareaElement extends UniElement {
|
|
1503
|
-
/**
|
|
1504
|
-
* 表单的控件名称,作为键值对的一部分与表单(form组件)一同提交
|
|
1505
|
-
* @uniPlatform {
|
|
1506
|
-
* "app": {
|
|
1507
|
-
* "android": {
|
|
1508
|
-
* "osVer": "5.0",
|
|
1509
|
-
* "uniVer": "x",
|
|
1510
|
-
* "unixVer": "4.0"
|
|
1511
|
-
* },
|
|
1512
|
-
* "ios": {
|
|
1513
|
-
* "osVer": "12.0",
|
|
1514
|
-
* "uniVer": "x",
|
|
1515
|
-
* "unixVer": "4.11"
|
|
1516
|
-
* }
|
|
1517
|
-
* }
|
|
1518
|
-
* }
|
|
1519
|
-
*/
|
|
1520
|
-
name: string
|
|
1521
|
-
/**
|
|
1522
|
-
* input的类型
|
|
1523
|
-
* @uniPlatform {
|
|
1524
|
-
* "app": {
|
|
1525
|
-
* "android": {
|
|
1526
|
-
* "osVer": "5.0",
|
|
1527
|
-
* "uniVer": "x",
|
|
1528
|
-
* "unixVer": "4.0"
|
|
1529
|
-
* },
|
|
1530
|
-
* "ios": {
|
|
1531
|
-
* "osVer": "12.0",
|
|
1532
|
-
* "uniVer": "x",
|
|
1533
|
-
* "unixVer": "4.11"
|
|
1534
|
-
* }
|
|
1535
|
-
* }
|
|
1536
|
-
* }
|
|
1537
|
-
*/
|
|
1538
|
-
type: string
|
|
1539
|
-
/**
|
|
1540
|
-
* 是否禁用
|
|
1541
|
-
* @uniPlatform {
|
|
1542
|
-
* "app": {
|
|
1543
|
-
* "android": {
|
|
1544
|
-
* "osVer": "5.0",
|
|
1545
|
-
* "uniVer": "x",
|
|
1546
|
-
* "unixVer": "4.0"
|
|
1547
|
-
* },
|
|
1548
|
-
* "ios": {
|
|
1549
|
-
* "osVer": "12.0",
|
|
1550
|
-
* "uniVer": "x",
|
|
1551
|
-
* "unixVer": "4.11"
|
|
1552
|
-
* }
|
|
1553
|
-
* }
|
|
1554
|
-
* }
|
|
1555
|
-
*/
|
|
1556
|
-
disabled: boolean
|
|
1557
|
-
/**
|
|
1558
|
-
* 自动获取焦点
|
|
1559
|
-
* @uniPlatform {
|
|
1560
|
-
* "app": {
|
|
1561
|
-
* "android": {
|
|
1562
|
-
* "osVer": "5.0",
|
|
1563
|
-
* "uniVer": "x",
|
|
1564
|
-
* "unixVer": "4.0"
|
|
1565
|
-
* },
|
|
1566
|
-
* "ios": {
|
|
1567
|
-
* "osVer": "12.0",
|
|
1568
|
-
* "uniVer": "x",
|
|
1569
|
-
* "unixVer": "4.11"
|
|
1570
|
-
* }
|
|
1571
|
-
* }
|
|
1572
|
-
* }
|
|
1573
|
-
*/
|
|
1574
|
-
autofocus: boolean
|
|
1575
|
-
/**
|
|
1576
|
-
* 输入框的初始内容
|
|
1577
|
-
* @uniPlatform {
|
|
1578
|
-
* "app": {
|
|
1579
|
-
* "android": {
|
|
1580
|
-
* "osVer": "5.0",
|
|
1581
|
-
* "uniVer": "x",
|
|
1582
|
-
* "unixVer": "4.0"
|
|
1583
|
-
* },
|
|
1584
|
-
* "ios": {
|
|
1585
|
-
* "osVer": "12.0",
|
|
1586
|
-
* "uniVer": "x",
|
|
1587
|
-
* "unixVer": "4.11"
|
|
1588
|
-
* }
|
|
1589
|
-
* }
|
|
1590
|
-
* }
|
|
1591
|
-
*/
|
|
1592
|
-
value: string
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
/**
|
|
1596
|
-
* rich-text元素对象
|
|
1597
|
-
* @package io.dcloud.uniapp.runtime
|
|
1598
|
-
* @uniPlatform {
|
|
1599
|
-
* "app": {
|
|
1600
|
-
* "android": {
|
|
1601
|
-
* "osVer": "5.0",
|
|
1602
|
-
* "uniVer": "x",
|
|
1603
|
-
* "unixVer": "4.0"
|
|
1604
|
-
* },
|
|
1605
|
-
* "ios": {
|
|
1606
|
-
* "osVer": "12.0",
|
|
1607
|
-
* "uniVer": "x",
|
|
1608
|
-
* "unixVer": "4.11"
|
|
1609
|
-
* }
|
|
1610
|
-
* }
|
|
1611
|
-
* "web": {
|
|
1612
|
-
* "uniVer": "x",
|
|
1613
|
-
* "unixVer": "4.0"
|
|
1614
|
-
* }
|
|
1615
|
-
* }
|
|
1616
|
-
*/
|
|
1617
|
-
export interface UniRichTextElement extends UniElement {}
|
|
1618
|
-
|
|
1619
|
-
/**
|
|
1620
|
-
* sticky-header元素对象
|
|
1621
|
-
* @package io.dcloud.uniapp.runtime
|
|
1622
|
-
* @uniPlatform {
|
|
1623
|
-
* "app": {
|
|
1624
|
-
* "android": {
|
|
1625
|
-
* "osVer": "5.0",
|
|
1626
|
-
* "uniVer": "x",
|
|
1627
|
-
* "unixVer": "4.0"
|
|
1628
|
-
* },
|
|
1629
|
-
* "ios": {
|
|
1630
|
-
* "osVer": "12.0",
|
|
1631
|
-
* "uniVer": "x",
|
|
1632
|
-
* "unixVer": "4.11"
|
|
1633
|
-
* }
|
|
1634
|
-
* }
|
|
1635
|
-
* "web": {
|
|
1636
|
-
* "uniVer": "x",
|
|
1637
|
-
* "unixVer": "4.0"
|
|
1638
|
-
* }
|
|
1639
|
-
* }
|
|
1640
|
-
*/
|
|
1641
|
-
export interface UniStickyHeaderElement extends UniElement {}
|
|
1642
|
-
|
|
1643
|
-
/**
|
|
1644
|
-
* sticky-section元素对象
|
|
1645
|
-
* @package io.dcloud.uniapp.runtime
|
|
1646
|
-
* @uniPlatform {
|
|
1647
|
-
* "app": {
|
|
1648
|
-
* "android": {
|
|
1649
|
-
* "osVer": "5.0",
|
|
1650
|
-
* "uniVer": "x",
|
|
1651
|
-
* "unixVer": "4.0"
|
|
1652
|
-
* },
|
|
1653
|
-
* "ios": {
|
|
1654
|
-
* "osVer": "12.0",
|
|
1655
|
-
* "uniVer": "x",
|
|
1656
|
-
* "unixVer": "4.11"
|
|
1657
|
-
* }
|
|
1658
|
-
* }
|
|
1659
|
-
* "web": {
|
|
1660
|
-
* "uniVer": "x",
|
|
1661
|
-
* "unixVer": "4.0"
|
|
1662
|
-
* }
|
|
1663
|
-
* }
|
|
1664
|
-
*/
|
|
1665
|
-
export interface UniStickySectionElement extends UniElement {}
|
|
1666
|
-
|
|
1667
|
-
/**
|
|
1668
|
-
* tabs元素对象
|
|
1669
|
-
* @package io.dcloud.uniapp.runtime
|
|
1670
|
-
* @internal
|
|
1671
|
-
* @uniPlatform {
|
|
1672
|
-
* "app": {
|
|
1673
|
-
* "android": {
|
|
1674
|
-
* "osVer": "5.0",
|
|
1675
|
-
* "uniVer": "x",
|
|
1676
|
-
* "unixVer": "4.0"
|
|
1677
|
-
* },
|
|
1678
|
-
* "ios": {
|
|
1679
|
-
* "osVer": "12.0",
|
|
1680
|
-
* "uniVer": "x",
|
|
1681
|
-
* "unixVer": "4.11"
|
|
1682
|
-
* }
|
|
1683
|
-
* }
|
|
1684
|
-
* "web": {
|
|
1685
|
-
* "uniVer": "x",
|
|
1686
|
-
* "unixVer": "x"
|
|
1687
|
-
* }
|
|
1688
|
-
* }
|
|
1689
|
-
*/
|
|
1690
|
-
export interface UniTabsElement extends UniElement {
|
|
1691
|
-
/**
|
|
1692
|
-
* 添加item
|
|
1693
|
-
* @param pageId 页面id
|
|
1694
|
-
* @uniPlatform {
|
|
1695
|
-
* "app": {
|
|
1696
|
-
* "android": {
|
|
1697
|
-
* "osVer": "5.0",
|
|
1698
|
-
* "uniVer": "x",
|
|
1699
|
-
* "unixVer": "4.0"
|
|
1700
|
-
* },
|
|
1701
|
-
* "ios": {
|
|
1702
|
-
* "osVer": "12.0",
|
|
1703
|
-
* "uniVer": "x",
|
|
1704
|
-
* "unixVer": "4.11"
|
|
1705
|
-
* }
|
|
1706
|
-
* }
|
|
1707
|
-
* "web": {
|
|
1708
|
-
* "uniVer": "x",
|
|
1709
|
-
* "unixVer": "x"
|
|
1710
|
-
* }
|
|
1711
|
-
* }
|
|
1712
|
-
*/
|
|
1713
|
-
appendItem(pageId: string): void
|
|
1714
|
-
|
|
1715
|
-
/**
|
|
1716
|
-
* 添加item
|
|
1717
|
-
* @param itemElement item的元素对象
|
|
1718
|
-
* @uniPlatform {
|
|
1719
|
-
* "app": {
|
|
1720
|
-
* "android": {
|
|
1721
|
-
* "osVer": "5.0",
|
|
1722
|
-
* "uniVer": "x",
|
|
1723
|
-
* "unixVer": "4.0"
|
|
1724
|
-
* },
|
|
1725
|
-
* "ios": {
|
|
1726
|
-
* "osVer": "12.0",
|
|
1727
|
-
* "uniVer": "x",
|
|
1728
|
-
* "unixVer": "4.11"
|
|
1729
|
-
* }
|
|
1730
|
-
* }
|
|
1731
|
-
* "web": {
|
|
1732
|
-
* "uniVer": "x",
|
|
1733
|
-
* "unixVer": "x"
|
|
1734
|
-
* }
|
|
1735
|
-
* }
|
|
1736
|
-
*/
|
|
1737
|
-
appendItem(itemElement: UniElement): void
|
|
1738
|
-
|
|
1739
|
-
/**
|
|
1740
|
-
* 初始化tabBar
|
|
1741
|
-
* @uniPlatform {
|
|
1742
|
-
* "app": {
|
|
1743
|
-
* "android": {
|
|
1744
|
-
* "osVer": "5.0",
|
|
1745
|
-
* "uniVer": "x",
|
|
1746
|
-
* "unixVer": "4.0"
|
|
1747
|
-
* },
|
|
1748
|
-
* "ios": {
|
|
1749
|
-
* "osVer": "12.0",
|
|
1750
|
-
* "uniVer": "x",
|
|
1751
|
-
* "unixVer": "4.11"
|
|
1752
|
-
* }
|
|
1753
|
-
* }
|
|
1754
|
-
* "web": {
|
|
1755
|
-
* "uniVer": "x",
|
|
1756
|
-
* "unixVer": "x"
|
|
1757
|
-
* }
|
|
1758
|
-
* }
|
|
1759
|
-
*/
|
|
1760
|
-
initTabBar(style: Map<string, any | null>): void
|
|
1761
|
-
|
|
1762
|
-
/**
|
|
1763
|
-
* 添加自定义tabBar
|
|
1764
|
-
* @param tabBar tabBar元素
|
|
1765
|
-
* @param direction 排列方向
|
|
1766
|
-
* @uniPlatform {
|
|
1767
|
-
* "app": {
|
|
1768
|
-
* "android": {
|
|
1769
|
-
* "osVer": "5.0",
|
|
1770
|
-
* "uniVer": "x",
|
|
1771
|
-
* "unixVer": "4.0"
|
|
1772
|
-
* },
|
|
1773
|
-
* "ios": {
|
|
1774
|
-
* "osVer": "12.0",
|
|
1775
|
-
* "uniVer": "x",
|
|
1776
|
-
* "unixVer": "4.11"
|
|
1777
|
-
* }
|
|
1778
|
-
* }
|
|
1779
|
-
* "web": {
|
|
1780
|
-
* "uniVer": "x",
|
|
1781
|
-
* "unixVer": "x"
|
|
1782
|
-
* }
|
|
1783
|
-
* }
|
|
1784
|
-
*/
|
|
1785
|
-
appendCustomTabBar(tabBar: UniElement, direction: string): void
|
|
1786
|
-
|
|
1787
|
-
/**
|
|
1788
|
-
* item选中高亮
|
|
1789
|
-
* @param 被选中页面id
|
|
1790
|
-
* @index item下标
|
|
1791
|
-
* @uniPlatform {
|
|
1792
|
-
* "app": {
|
|
1793
|
-
* "android": {
|
|
1794
|
-
* "osVer": "5.0",
|
|
1795
|
-
* "uniVer": "x",
|
|
1796
|
-
* "unixVer": "4.0"
|
|
1797
|
-
* },
|
|
1798
|
-
* "ios": {
|
|
1799
|
-
* "osVer": "12.0",
|
|
1800
|
-
* "uniVer": "x",
|
|
1801
|
-
* "unixVer": "4.11"
|
|
1802
|
-
* }
|
|
1803
|
-
* }
|
|
1804
|
-
* "web": {
|
|
1805
|
-
* "uniVer": "x",
|
|
1806
|
-
* "unixVer": "x"
|
|
1807
|
-
* }
|
|
1808
|
-
* }
|
|
1809
|
-
*/
|
|
1810
|
-
switchSelect(pageId: string, index: number): void
|
|
1811
|
-
|
|
1812
|
-
/**
|
|
1813
|
-
* 隐藏TabBar
|
|
1814
|
-
* @uniPlatform {
|
|
1815
|
-
* "app": {
|
|
1816
|
-
* "android": {
|
|
1817
|
-
* "osVer": "5.0",
|
|
1818
|
-
* "uniVer": "x",
|
|
1819
|
-
* "unixVer": "4.0"
|
|
1820
|
-
* },
|
|
1821
|
-
* "ios": {
|
|
1822
|
-
* "osVer": "12.0",
|
|
1823
|
-
* "uniVer": "x",
|
|
1824
|
-
* "unixVer": "4.11"
|
|
1825
|
-
* }
|
|
1826
|
-
* }
|
|
1827
|
-
* "web": {
|
|
1828
|
-
* "uniVer": "x",
|
|
1829
|
-
* "unixVer": "x"
|
|
1830
|
-
* }
|
|
1831
|
-
* }
|
|
1832
|
-
*/
|
|
1833
|
-
hideTabBar(op: Map<string, any | null>): void
|
|
1834
|
-
|
|
1835
|
-
/**
|
|
1836
|
-
* 显示tabBar
|
|
1837
|
-
* @uniPlatform {
|
|
1838
|
-
* "app": {
|
|
1839
|
-
* "android": {
|
|
1840
|
-
* "osVer": "5.0",
|
|
1841
|
-
* "uniVer": "x",
|
|
1842
|
-
* "unixVer": "4.0"
|
|
1843
|
-
* },
|
|
1844
|
-
* "ios": {
|
|
1845
|
-
* "osVer": "12.0",
|
|
1846
|
-
* "uniVer": "x",
|
|
1847
|
-
* "unixVer": "4.11"
|
|
1848
|
-
* }
|
|
1849
|
-
* }
|
|
1850
|
-
* "web": {
|
|
1851
|
-
* "uniVer": "x",
|
|
1852
|
-
* "unixVer": "x"
|
|
1853
|
-
* }
|
|
1854
|
-
* }
|
|
1855
|
-
*/
|
|
1856
|
-
showTabBar(op: Map<string, any | null>): void
|
|
1857
|
-
|
|
1858
|
-
/**
|
|
1859
|
-
* 为 tabBar 某一项的右上角添加文本
|
|
1860
|
-
* @uniPlatform {
|
|
1861
|
-
* "app": {
|
|
1862
|
-
* "android": {
|
|
1863
|
-
* "osVer": "5.0",
|
|
1864
|
-
* "uniVer": "x",
|
|
1865
|
-
* "unixVer": "4.0"
|
|
1866
|
-
* },
|
|
1867
|
-
* "ios": {
|
|
1868
|
-
* "osVer": "12.0",
|
|
1869
|
-
* "uniVer": "x",
|
|
1870
|
-
* "unixVer": "4.11"
|
|
1871
|
-
* }
|
|
1872
|
-
* }
|
|
1873
|
-
* "web": {
|
|
1874
|
-
* "uniVer": "x",
|
|
1875
|
-
* "unixVer": "x"
|
|
1876
|
-
* }
|
|
1877
|
-
* }
|
|
237
|
+
updateStyle(map: Map<string, any | null>): void
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* 获取元素的大小及其相对于窗口的位置信息。
|
|
1878
241
|
*/
|
|
1879
|
-
|
|
242
|
+
getBoundingClientRect(): DOMRect
|
|
1880
243
|
|
|
1881
244
|
/**
|
|
1882
|
-
*
|
|
245
|
+
* 获取组件的绘制对象,仅uvue页面中的 view 组件支持,其它组件不支持则返回null。
|
|
1883
246
|
* @uniPlatform {
|
|
1884
247
|
* "app": {
|
|
1885
248
|
* "android": {
|
|
1886
249
|
* "osVer": "5.0",
|
|
1887
250
|
* "uniVer": "x",
|
|
1888
|
-
* "unixVer": "
|
|
251
|
+
* "unixVer": "3.9+"
|
|
1889
252
|
* },
|
|
1890
253
|
* "ios": {
|
|
1891
254
|
* "osVer": "12.0",
|
|
@@ -1899,102 +262,209 @@ export interface UniTabsElement extends UniElement {
|
|
|
1899
262
|
* }
|
|
1900
263
|
* }
|
|
1901
264
|
*/
|
|
1902
|
-
|
|
265
|
+
getDrawableContext(): DrawableContext | null
|
|
1903
266
|
|
|
1904
267
|
/**
|
|
1905
|
-
*
|
|
1906
|
-
* @
|
|
1907
|
-
*
|
|
1908
|
-
*
|
|
1909
|
-
* "osVer": "5.0",
|
|
1910
|
-
* "uniVer": "x",
|
|
1911
|
-
* "unixVer": "4.0"
|
|
1912
|
-
* },
|
|
1913
|
-
* "ios": {
|
|
1914
|
-
* "osVer": "12.0",
|
|
1915
|
-
* "uniVer": "x",
|
|
1916
|
-
* "unixVer": "4.11"
|
|
1917
|
-
* }
|
|
1918
|
-
* }
|
|
1919
|
-
* "web": {
|
|
1920
|
-
* "uniVer": "x",
|
|
1921
|
-
* "unixVer": "x"
|
|
1922
|
-
* }
|
|
1923
|
-
* }
|
|
268
|
+
* 将指定的监听器注册到元素对象上,当该对象触发指定的事件时,指定的回调函数就会被执行。
|
|
269
|
+
* @internal
|
|
270
|
+
* @param {string} type 事件类型
|
|
271
|
+
* @param {(event: T) => R} callback 事件监听器 T表示event类型,R表示返回值类型
|
|
1924
272
|
*/
|
|
1925
|
-
|
|
273
|
+
addEventListener<T extends UniEvent, R>(type: string, callback: (event: T) => R): UniCallbackWrapper
|
|
1926
274
|
|
|
1927
275
|
/**
|
|
1928
|
-
*
|
|
276
|
+
* 删除使用 addEventListener 方法添加的事件监听器。
|
|
277
|
+
* @internal
|
|
278
|
+
* @param type 事件类型
|
|
279
|
+
* @param callbackWrapper 事件监听回调封装类
|
|
280
|
+
*/
|
|
281
|
+
removeEventListener(type: string, callbackWrapper: UniCallbackWrapper): void
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* 从元素中删除一个子元素,返回删除的元素。
|
|
285
|
+
* @param {UniElement} aChild 被删除子元素对象
|
|
286
|
+
*/
|
|
287
|
+
removeChild(aChild: UniElement): UniElement | null
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* 把元素对象从它所属的 DOM 树中删除。
|
|
291
|
+
*/
|
|
292
|
+
remove(): void
|
|
293
|
+
|
|
294
|
+
/**
|
|
295
|
+
* 向一个指定的事件目标派发一个 Event,并以合适的顺序(同步地)调用此事件的监听器回调函数。
|
|
296
|
+
* @internal
|
|
297
|
+
* @param {string} type 事件类型
|
|
298
|
+
* @param {UniEvent} value 事件返回对象
|
|
299
|
+
*/
|
|
300
|
+
dispatchEvent(type: string, value: UniEvent): void
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* 向一个指定的事件目标派发一个 Event,并以合适的顺序(同步地)调用此事件的监听器回调函数。
|
|
304
|
+
* @param {UniEvent} value 事件返回对象
|
|
1929
305
|
* @uniPlatform {
|
|
1930
306
|
* "app": {
|
|
1931
307
|
* "android": {
|
|
1932
308
|
* "osVer": "5.0",
|
|
1933
309
|
* "uniVer": "x",
|
|
1934
|
-
* "unixVer": "4.
|
|
310
|
+
* "unixVer": "4.25"
|
|
1935
311
|
* },
|
|
1936
312
|
* "ios": {
|
|
1937
313
|
* "osVer": "12.0",
|
|
1938
314
|
* "uniVer": "x",
|
|
1939
|
-
* "unixVer": "4.
|
|
315
|
+
* "unixVer": "4.25"
|
|
1940
316
|
* }
|
|
1941
317
|
* }
|
|
1942
|
-
* "web": {
|
|
1943
|
-
* "uniVer": "x",
|
|
1944
|
-
* "unixVer": "x"
|
|
1945
|
-
* }
|
|
1946
318
|
* }
|
|
1947
319
|
*/
|
|
1948
|
-
|
|
320
|
+
dispatchEvent(value: UniEvent): void
|
|
1949
321
|
|
|
1950
322
|
/**
|
|
1951
|
-
*
|
|
323
|
+
* 使界面滚动到给定元素的指定坐标位置 仅scroll-view、list-view组件支持
|
|
324
|
+
* @param {number} x x轴要滚动到坐标位置(单位px)
|
|
325
|
+
* @param {number} y y轴要滚动到坐标位置(单位px)
|
|
326
|
+
*/
|
|
327
|
+
scrollTo(x: number, y: number): void
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* 使得元素滚动一段特定距离 仅scroll-view、list-view组件支持
|
|
331
|
+
* @param {number} x x轴要滚动的距离(单位px)
|
|
332
|
+
* @param {number} y y轴要滚动的距离(单位px)
|
|
333
|
+
*/
|
|
334
|
+
scrollBy(x: number, y: number): void
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* 返回文档中与指定选择器或选择器组匹配的第一个 Element对象。如果找不到匹配项,则返回null
|
|
338
|
+
* @param {string.cssSelectorString}selector CSS 选择器字符串
|
|
339
|
+
*/
|
|
340
|
+
querySelector(selector: string.cssSelectorString): UniElement | null
|
|
341
|
+
|
|
342
|
+
/**
|
|
343
|
+
* 返回与指定的选择器组匹配的文档中的元素列表
|
|
344
|
+
* @param {string.cssSelectorString}selector CSS 选择器字符串
|
|
345
|
+
*/
|
|
346
|
+
querySelectorAll(selector: string.cssSelectorString): UniElement[] | null
|
|
347
|
+
|
|
348
|
+
/**
|
|
349
|
+
* 使元素获取焦点 仅input、Textarea组件支持
|
|
350
|
+
*/
|
|
351
|
+
focus(): void
|
|
352
|
+
|
|
353
|
+
/**
|
|
354
|
+
* 使元素丢失焦点 仅input、Textarea组件支持
|
|
355
|
+
*/
|
|
356
|
+
blur(): void
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* 获取元素android原生view
|
|
1952
360
|
* @uniPlatform {
|
|
1953
361
|
* "app": {
|
|
1954
362
|
* "android": {
|
|
1955
363
|
* "osVer": "5.0",
|
|
1956
364
|
* "uniVer": "x",
|
|
1957
|
-
* "unixVer": "4.
|
|
365
|
+
* "unixVer": "4.25"
|
|
1958
366
|
* },
|
|
1959
367
|
* "ios": {
|
|
1960
368
|
* "osVer": "12.0",
|
|
1961
369
|
* "uniVer": "x",
|
|
1962
|
-
* "unixVer": "
|
|
370
|
+
* "unixVer": "x"
|
|
1963
371
|
* }
|
|
1964
372
|
* }
|
|
1965
|
-
* "web": {
|
|
1966
|
-
* "uniVer": "x",
|
|
1967
|
-
* "unixVer": "x"
|
|
1968
|
-
* }
|
|
1969
373
|
* }
|
|
1970
374
|
*/
|
|
1971
|
-
|
|
375
|
+
getAndroidView(): View | null
|
|
1972
376
|
|
|
1973
|
-
|
|
1974
|
-
*
|
|
377
|
+
/**
|
|
378
|
+
* 获取元素android原生view 通过泛型定义view类型
|
|
1975
379
|
* @uniPlatform {
|
|
1976
380
|
* "app": {
|
|
1977
381
|
* "android": {
|
|
1978
382
|
* "osVer": "5.0",
|
|
1979
383
|
* "uniVer": "x",
|
|
1980
|
-
* "unixVer": "4.
|
|
384
|
+
* "unixVer": "4.25"
|
|
1981
385
|
* },
|
|
1982
386
|
* "ios": {
|
|
1983
387
|
* "osVer": "12.0",
|
|
1984
388
|
* "uniVer": "x",
|
|
1985
|
-
* "unixVer": "
|
|
389
|
+
* "unixVer": "x"
|
|
1986
390
|
* }
|
|
1987
391
|
* }
|
|
1988
|
-
* "web": {
|
|
1989
|
-
* "uniVer": "x",
|
|
1990
|
-
* "unixVer": "x"
|
|
1991
|
-
* }
|
|
1992
392
|
* }
|
|
1993
393
|
*/
|
|
1994
|
-
|
|
394
|
+
getAndroidView<T>(): T | null
|
|
1995
395
|
|
|
1996
396
|
/**
|
|
1997
|
-
|
|
397
|
+
* 获取元素android原生activity
|
|
398
|
+
* @uniPlatform {
|
|
399
|
+
* "app": {
|
|
400
|
+
* "android": {
|
|
401
|
+
* "osVer": "5.0",
|
|
402
|
+
* "uniVer": "x",
|
|
403
|
+
* "unixVer": "4.25"
|
|
404
|
+
* },
|
|
405
|
+
* "ios": {
|
|
406
|
+
* "osVer": "12.0",
|
|
407
|
+
* "uniVer": "x",
|
|
408
|
+
* "unixVer": "x"
|
|
409
|
+
* }
|
|
410
|
+
* }
|
|
411
|
+
* }
|
|
412
|
+
*/
|
|
413
|
+
getAndroidActivity(): Activity | null
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
export type INode = UniElement
|
|
417
|
+
export type Element = UniElement
|
|
418
|
+
|
|
419
|
+
/**
|
|
420
|
+
* view元素对象
|
|
421
|
+
* @package io.dcloud.uniapp.runtime
|
|
422
|
+
*/
|
|
423
|
+
export interface UniViewElement extends UniElement {}
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* scroll-view元素对象
|
|
427
|
+
* @package io.dcloud.uniapp.runtime
|
|
428
|
+
*/
|
|
429
|
+
export interface UniScrollViewElement extends UniElement {}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* list-view元素对象
|
|
433
|
+
* @package io.dcloud.uniapp.runtime
|
|
434
|
+
*/
|
|
435
|
+
export interface UniListViewElement extends UniScrollViewElement {}
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* list-item元素对象
|
|
439
|
+
* @package io.dcloud.uniapp.runtime
|
|
440
|
+
*/
|
|
441
|
+
export interface UniListItemElement extends UniElement {}
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* swiper元素对象
|
|
445
|
+
* @package io.dcloud.uniapp.runtime
|
|
446
|
+
*/
|
|
447
|
+
export interface UniSwiperElement extends UniElement {}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* swiper-item元素对象
|
|
451
|
+
* @package io.dcloud.uniapp.runtime
|
|
452
|
+
*/
|
|
453
|
+
export interface UniSwiperItemElement extends UniElement {}
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* image元素对象
|
|
457
|
+
* @package io.dcloud.uniapp.runtime
|
|
458
|
+
*/
|
|
459
|
+
export interface UniImageElement extends UniElement {}
|
|
460
|
+
export type Image = UniImageElement
|
|
461
|
+
/**
|
|
462
|
+
* input元素对象
|
|
463
|
+
* @package io.dcloud.uniapp.runtime
|
|
464
|
+
*/
|
|
465
|
+
export interface UniInputElement extends UniElement {
|
|
466
|
+
/**
|
|
467
|
+
* 表单的控件名称,作为键值对的一部分与表单(form组件)一同提交
|
|
1998
468
|
* @uniPlatform {
|
|
1999
469
|
* "app": {
|
|
2000
470
|
* "android": {
|
|
@@ -2008,16 +478,11 @@ export interface UniTabsElement extends UniElement {
|
|
|
2008
478
|
* "unixVer": "4.11"
|
|
2009
479
|
* }
|
|
2010
480
|
* }
|
|
2011
|
-
* "web": {
|
|
2012
|
-
* "uniVer": "x",
|
|
2013
|
-
* "unixVer": "x"
|
|
2014
|
-
* }
|
|
2015
481
|
* }
|
|
2016
482
|
*/
|
|
2017
|
-
|
|
2018
|
-
|
|
483
|
+
name: string
|
|
2019
484
|
/**
|
|
2020
|
-
*
|
|
485
|
+
* input的类型
|
|
2021
486
|
* @uniPlatform {
|
|
2022
487
|
* "app": {
|
|
2023
488
|
* "android": {
|
|
@@ -2031,15 +496,11 @@ export interface UniTabsElement extends UniElement {
|
|
|
2031
496
|
* "unixVer": "4.11"
|
|
2032
497
|
* }
|
|
2033
498
|
* }
|
|
2034
|
-
* "web": {
|
|
2035
|
-
* "uniVer": "x",
|
|
2036
|
-
* "unixVer": "x"
|
|
2037
|
-
* }
|
|
2038
499
|
* }
|
|
2039
500
|
*/
|
|
2040
|
-
|
|
501
|
+
type: string
|
|
2041
502
|
/**
|
|
2042
|
-
*
|
|
503
|
+
* 是否禁用
|
|
2043
504
|
* @uniPlatform {
|
|
2044
505
|
* "app": {
|
|
2045
506
|
* "android": {
|
|
@@ -2053,42 +514,11 @@ export interface UniTabsElement extends UniElement {
|
|
|
2053
514
|
* "unixVer": "4.11"
|
|
2054
515
|
* }
|
|
2055
516
|
* }
|
|
2056
|
-
* "web": {
|
|
2057
|
-
* "uniVer": "x",
|
|
2058
|
-
* "unixVer": "x"
|
|
2059
|
-
* }
|
|
2060
517
|
* }
|
|
2061
518
|
*/
|
|
2062
|
-
|
|
2063
|
-
}
|
|
2064
|
-
|
|
2065
|
-
export type ITabsNode = UniTabsElement
|
|
2066
|
-
|
|
2067
|
-
/**
|
|
2068
|
-
* text元素对象
|
|
2069
|
-
* @package io.dcloud.uniapp.runtime
|
|
2070
|
-
* @uniPlatform {
|
|
2071
|
-
* "app": {
|
|
2072
|
-
* "android": {
|
|
2073
|
-
* "osVer": "5.0",
|
|
2074
|
-
* "uniVer": "x",
|
|
2075
|
-
* "unixVer": "4.0"
|
|
2076
|
-
* },
|
|
2077
|
-
* "ios": {
|
|
2078
|
-
* "osVer": "12.0",
|
|
2079
|
-
* "uniVer": "x",
|
|
2080
|
-
* "unixVer": "4.11"
|
|
2081
|
-
* }
|
|
2082
|
-
* }
|
|
2083
|
-
* "web": {
|
|
2084
|
-
* "uniVer": "x",
|
|
2085
|
-
* "unixVer": "4.0"
|
|
2086
|
-
* }
|
|
2087
|
-
* }
|
|
2088
|
-
*/
|
|
2089
|
-
export interface UniTextElement extends UniElement {
|
|
519
|
+
disabled: boolean
|
|
2090
520
|
/**
|
|
2091
|
-
*
|
|
521
|
+
* 自动获取焦点
|
|
2092
522
|
* @uniPlatform {
|
|
2093
523
|
* "app": {
|
|
2094
524
|
* "android": {
|
|
@@ -2102,14 +532,11 @@ export interface UniTextElement extends UniElement {
|
|
|
2102
532
|
* "unixVer": "4.11"
|
|
2103
533
|
* }
|
|
2104
534
|
* }
|
|
2105
|
-
* "web": {
|
|
2106
|
-
* "uniVer": "x",
|
|
2107
|
-
* "unixVer": "4.0"
|
|
2108
|
-
* }
|
|
2109
535
|
* }
|
|
2110
536
|
*/
|
|
2111
|
-
|
|
537
|
+
autofocus: boolean
|
|
2112
538
|
/**
|
|
539
|
+
* 输入框的初始内容
|
|
2113
540
|
* @uniPlatform {
|
|
2114
541
|
* "app": {
|
|
2115
542
|
* "android": {
|
|
@@ -2123,42 +550,18 @@ export interface UniTextElement extends UniElement {
|
|
|
2123
550
|
* "unixVer": "4.11"
|
|
2124
551
|
* }
|
|
2125
552
|
* }
|
|
2126
|
-
* "web": {
|
|
2127
|
-
* "uniVer": "x",
|
|
2128
|
-
* "unixVer": "4.0"
|
|
2129
|
-
* }
|
|
2130
553
|
* }
|
|
2131
554
|
*/
|
|
2132
|
-
|
|
555
|
+
value: string
|
|
2133
556
|
}
|
|
2134
557
|
|
|
2135
|
-
export type TextElement = UniTextElement
|
|
2136
|
-
|
|
2137
558
|
/**
|
|
2138
|
-
*
|
|
2139
|
-
* @package io.dcloud.uniapp.runtime
|
|
2140
|
-
* @uniPlatform {
|
|
2141
|
-
* "app": {
|
|
2142
|
-
* "android": {
|
|
2143
|
-
* "osVer": "5.0",
|
|
2144
|
-
* "uniVer": "x",
|
|
2145
|
-
* "unixVer": "4.0"
|
|
2146
|
-
* },
|
|
2147
|
-
* "ios": {
|
|
2148
|
-
* "osVer": "12.0",
|
|
2149
|
-
* "uniVer": "x",
|
|
2150
|
-
* "unixVer": "4.11"
|
|
2151
|
-
* }
|
|
2152
|
-
* }
|
|
2153
|
-
* "web": {
|
|
2154
|
-
* "uniVer": "x",
|
|
2155
|
-
* "unixVer": "4.0"
|
|
2156
|
-
* }
|
|
2157
|
-
* }
|
|
559
|
+
* textarea元素对象
|
|
560
|
+
* @package io.dcloud.uniapp.runtime
|
|
2158
561
|
*/
|
|
2159
|
-
export interface
|
|
562
|
+
export interface UniTextareaElement extends UniElement {
|
|
2160
563
|
/**
|
|
2161
|
-
*
|
|
564
|
+
* 表单的控件名称,作为键值对的一部分与表单(form组件)一同提交
|
|
2162
565
|
* @uniPlatform {
|
|
2163
566
|
* "app": {
|
|
2164
567
|
* "android": {
|
|
@@ -2172,15 +575,11 @@ export interface UniWebViewElement extends UniElement {
|
|
|
2172
575
|
* "unixVer": "4.11"
|
|
2173
576
|
* }
|
|
2174
577
|
* }
|
|
2175
|
-
* "web": {
|
|
2176
|
-
* "uniVer": "x",
|
|
2177
|
-
* "unixVer": "4.0"
|
|
2178
|
-
* }
|
|
2179
578
|
* }
|
|
2180
579
|
*/
|
|
2181
|
-
|
|
580
|
+
name: string
|
|
2182
581
|
/**
|
|
2183
|
-
*
|
|
582
|
+
* input的类型
|
|
2184
583
|
* @uniPlatform {
|
|
2185
584
|
* "app": {
|
|
2186
585
|
* "android": {
|
|
@@ -2194,15 +593,11 @@ export interface UniWebViewElement extends UniElement {
|
|
|
2194
593
|
* "unixVer": "4.11"
|
|
2195
594
|
* }
|
|
2196
595
|
* }
|
|
2197
|
-
* "web": {
|
|
2198
|
-
* "uniVer": "x",
|
|
2199
|
-
* "unixVer": "4.0"
|
|
2200
|
-
* }
|
|
2201
596
|
* }
|
|
2202
597
|
*/
|
|
2203
|
-
|
|
598
|
+
type: string
|
|
2204
599
|
/**
|
|
2205
|
-
*
|
|
600
|
+
* 是否禁用
|
|
2206
601
|
* @uniPlatform {
|
|
2207
602
|
* "app": {
|
|
2208
603
|
* "android": {
|
|
@@ -2216,15 +611,11 @@ export interface UniWebViewElement extends UniElement {
|
|
|
2216
611
|
* "unixVer": "4.11"
|
|
2217
612
|
* }
|
|
2218
613
|
* }
|
|
2219
|
-
* "web": {
|
|
2220
|
-
* "uniVer": "x",
|
|
2221
|
-
* "unixVer": "4.0"
|
|
2222
|
-
* }
|
|
2223
614
|
* }
|
|
2224
615
|
*/
|
|
2225
|
-
|
|
616
|
+
disabled: boolean
|
|
2226
617
|
/**
|
|
2227
|
-
*
|
|
618
|
+
* 自动获取焦点
|
|
2228
619
|
* @uniPlatform {
|
|
2229
620
|
* "app": {
|
|
2230
621
|
* "android": {
|
|
@@ -2238,15 +629,11 @@ export interface UniWebViewElement extends UniElement {
|
|
|
2238
629
|
* "unixVer": "4.11"
|
|
2239
630
|
* }
|
|
2240
631
|
* }
|
|
2241
|
-
* "web": {
|
|
2242
|
-
* "uniVer": "x",
|
|
2243
|
-
* "unixVer": "4.0"
|
|
2244
|
-
* }
|
|
2245
632
|
* }
|
|
2246
633
|
*/
|
|
2247
|
-
|
|
634
|
+
autofocus: boolean
|
|
2248
635
|
/**
|
|
2249
|
-
*
|
|
636
|
+
* 输入框的初始内容
|
|
2250
637
|
* @uniPlatform {
|
|
2251
638
|
* "app": {
|
|
2252
639
|
* "android": {
|
|
@@ -2260,12 +647,161 @@ export interface UniWebViewElement extends UniElement {
|
|
|
2260
647
|
* "unixVer": "4.11"
|
|
2261
648
|
* }
|
|
2262
649
|
* }
|
|
2263
|
-
* "web": {
|
|
2264
|
-
* "uniVer": "x",
|
|
2265
|
-
* "unixVer": "4.0"
|
|
2266
|
-
* }
|
|
2267
650
|
* }
|
|
2268
651
|
*/
|
|
652
|
+
value: string
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
/**
|
|
656
|
+
* rich-text元素对象
|
|
657
|
+
* @package io.dcloud.uniapp.runtime
|
|
658
|
+
*/
|
|
659
|
+
export interface UniRichTextElement extends UniElement {}
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* sticky-header元素对象
|
|
663
|
+
* @package io.dcloud.uniapp.runtime
|
|
664
|
+
*/
|
|
665
|
+
export interface UniStickyHeaderElement extends UniElement {}
|
|
666
|
+
|
|
667
|
+
/**
|
|
668
|
+
* sticky-section元素对象
|
|
669
|
+
* @package io.dcloud.uniapp.runtime
|
|
670
|
+
*/
|
|
671
|
+
export interface UniStickySectionElement extends UniElement {}
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* tabs元素对象
|
|
675
|
+
* @package io.dcloud.uniapp.runtime
|
|
676
|
+
* @internal
|
|
677
|
+
*/
|
|
678
|
+
export interface UniTabsElement extends UniElement {
|
|
679
|
+
/**
|
|
680
|
+
* 添加item
|
|
681
|
+
* @param pageId 页面id
|
|
682
|
+
*/
|
|
683
|
+
appendItem(pageId: string): void
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* 添加item
|
|
687
|
+
* @param itemElement item的元素对象
|
|
688
|
+
*/
|
|
689
|
+
appendItem(itemElement: UniElement): void
|
|
690
|
+
|
|
691
|
+
/**
|
|
692
|
+
* 初始化tabBar
|
|
693
|
+
*/
|
|
694
|
+
initTabBar(style: Map<string, any | null>): void
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* 添加自定义tabBar
|
|
698
|
+
* @param tabBar tabBar元素
|
|
699
|
+
* @param direction 排列方向
|
|
700
|
+
*/
|
|
701
|
+
appendCustomTabBar(tabBar: UniElement, direction: string): void
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* item选中高亮
|
|
705
|
+
* @param 被选中页面id
|
|
706
|
+
* @index item下标
|
|
707
|
+
*/
|
|
708
|
+
switchSelect(pageId: string, index: number): void
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* 隐藏TabBar
|
|
712
|
+
*/
|
|
713
|
+
hideTabBar(op: Map<string, any | null>): void
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* 显示tabBar
|
|
717
|
+
*/
|
|
718
|
+
showTabBar(op: Map<string, any | null>): void
|
|
719
|
+
|
|
720
|
+
/**
|
|
721
|
+
* 为 tabBar 某一项的右上角添加文本
|
|
722
|
+
*/
|
|
723
|
+
setTabBarBadge(op: Map<string, any | null>): void
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* 移除 tabBar 某一项右上角的文本
|
|
727
|
+
*/
|
|
728
|
+
removeTabBarBadge(op: Map<string, any | null>): void
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* 显示 tabBar 某一项的右上角的红点
|
|
732
|
+
*/
|
|
733
|
+
showTabBarRedDot(op: Map<string, any | null>): void
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* 隐藏 tabBar 某一项的右上角的红点
|
|
737
|
+
*/
|
|
738
|
+
hideTabBarRedDot(op: Map<string, any | null>): void
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* 动态设置 tabBar 的整体样式
|
|
742
|
+
*/
|
|
743
|
+
setTabBarStyle(op: Map<string, any | null>): void
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* 动态设置 tabBar 某一项的内容
|
|
747
|
+
*/
|
|
748
|
+
setTabBarItem(op: Map<string, any | null>): void
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* 获取tabbar高度
|
|
752
|
+
*/
|
|
753
|
+
getTabBarHeight(): number
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* 只读属性 tabBar是否隐藏
|
|
757
|
+
*/
|
|
758
|
+
isTabBarVisible: boolean
|
|
759
|
+
/**
|
|
760
|
+
* 只读属性 当前显示itemId
|
|
761
|
+
*/
|
|
762
|
+
currentItemId: string | null
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export type ITabsNode = UniTabsElement
|
|
766
|
+
|
|
767
|
+
/**
|
|
768
|
+
* text元素对象
|
|
769
|
+
* @package io.dcloud.uniapp.runtime
|
|
770
|
+
*/
|
|
771
|
+
export interface UniTextElement extends UniElement {
|
|
772
|
+
/**
|
|
773
|
+
* 只读属性 text元素的文案内容
|
|
774
|
+
*/
|
|
775
|
+
value: string
|
|
776
|
+
getTextExtra(): any | null
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
export type TextElement = UniTextElement
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* web-view元素对象
|
|
783
|
+
* @package io.dcloud.uniapp.runtime
|
|
784
|
+
*/
|
|
785
|
+
export interface UniWebViewElement extends UniElement {
|
|
786
|
+
/**
|
|
787
|
+
* 后退
|
|
788
|
+
*/
|
|
789
|
+
back(): void
|
|
790
|
+
/**
|
|
791
|
+
* 前进
|
|
792
|
+
*/
|
|
793
|
+
forward(): void
|
|
794
|
+
/**
|
|
795
|
+
* 重新加载
|
|
796
|
+
*/
|
|
797
|
+
reload(): void
|
|
798
|
+
/**
|
|
799
|
+
* 停止加载
|
|
800
|
+
*/
|
|
801
|
+
stop(): void
|
|
802
|
+
/**
|
|
803
|
+
* 原生和WebView通信(执行JS脚本)
|
|
804
|
+
*/
|
|
2269
805
|
evalJS(js: string): void
|
|
2270
806
|
}
|
|
2271
807
|
|
|
@@ -2274,24 +810,6 @@ export type IWebViewNode = UniWebViewElement
|
|
|
2274
810
|
/**
|
|
2275
811
|
* 注释节点
|
|
2276
812
|
* @internal
|
|
2277
|
-
* @uniPlatform {
|
|
2278
|
-
* "app": {
|
|
2279
|
-
* "android": {
|
|
2280
|
-
* "osVer": "5.0",
|
|
2281
|
-
* "uniVer": "x",
|
|
2282
|
-
* "unixVer": "4.0"
|
|
2283
|
-
* },
|
|
2284
|
-
* "ios": {
|
|
2285
|
-
* "osVer": "12.0",
|
|
2286
|
-
* "uniVer": "x",
|
|
2287
|
-
* "unixVer": "x"
|
|
2288
|
-
* }
|
|
2289
|
-
* }
|
|
2290
|
-
* "web": {
|
|
2291
|
-
* "uniVer": "x",
|
|
2292
|
-
* "unixVer": "x"
|
|
2293
|
-
* }
|
|
2294
|
-
* }
|
|
2295
813
|
*/
|
|
2296
814
|
export interface UniCommentElement extends UniElement {
|
|
2297
815
|
text: string
|
|
@@ -2302,71 +820,198 @@ export type IComment = UniCommentElement
|
|
|
2302
820
|
/**
|
|
2303
821
|
* button元素对象
|
|
2304
822
|
* @package io.dcloud.uniapp.runtime
|
|
2305
|
-
* @uniPlatform {
|
|
2306
|
-
* "app": {
|
|
2307
|
-
* "android": {
|
|
2308
|
-
* "osVer": "5.0",
|
|
2309
|
-
* "uniVer": "x",
|
|
2310
|
-
* "unixVer": "4.0"
|
|
2311
|
-
* },
|
|
2312
|
-
* "ios": {
|
|
2313
|
-
* "osVer": "12.0",
|
|
2314
|
-
* "uniVer": "x",
|
|
2315
|
-
* "unixVer": "4.11"
|
|
2316
|
-
* }
|
|
2317
|
-
* }
|
|
2318
|
-
* "web": {
|
|
2319
|
-
* "uniVer": "x",
|
|
2320
|
-
* "unixVer": "4.0"
|
|
2321
|
-
* }
|
|
2322
|
-
* }
|
|
2323
823
|
*/
|
|
2324
824
|
export interface UniButtonElement extends UniElement {}
|
|
2325
825
|
|
|
2326
826
|
/**
|
|
2327
827
|
* 嵌套 scroll-view 场景中属于外层 scroll-view 的节点
|
|
2328
828
|
* @package io.dcloud.uniapp.runtime
|
|
2329
|
-
* @uniPlatform {
|
|
2330
|
-
* "app": {
|
|
2331
|
-
* "android": {
|
|
2332
|
-
* "osVer": "5.0",
|
|
2333
|
-
* "uniVer": "x",
|
|
2334
|
-
* "unixVer": "4.0"
|
|
2335
|
-
* },
|
|
2336
|
-
* "ios": {
|
|
2337
|
-
* "osVer": "12.0",
|
|
2338
|
-
* "uniVer": "x",
|
|
2339
|
-
* "unixVer": "4.11"
|
|
2340
|
-
* }
|
|
2341
|
-
* }
|
|
2342
|
-
* "web": {
|
|
2343
|
-
* "uniVer": "x",
|
|
2344
|
-
* "unixVer": "x"
|
|
2345
|
-
* }
|
|
2346
|
-
* }
|
|
2347
829
|
*/
|
|
2348
830
|
export interface UniNestedScrollHeaderElement extends UniElement {}
|
|
2349
831
|
|
|
2350
832
|
/**
|
|
2351
833
|
* 嵌套 scroll-view 场景中属于里层 scroll-view 的节点
|
|
2352
834
|
* @package io.dcloud.uniapp.runtime
|
|
835
|
+
*/
|
|
836
|
+
export interface UniNestedScrollBodyElement extends UniElement {}
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* canvas元素对象
|
|
840
|
+
* @package io.dcloud.uniapp.runtime
|
|
2353
841
|
* @uniPlatform {
|
|
2354
842
|
* "app": {
|
|
2355
843
|
* "android": {
|
|
2356
844
|
* "osVer": "5.0",
|
|
2357
|
-
* "uniVer": "
|
|
2358
|
-
* "unixVer": "4.
|
|
845
|
+
* "uniVer": "√",
|
|
846
|
+
* "unixVer": "4.25"
|
|
2359
847
|
* },
|
|
2360
848
|
* "ios": {
|
|
2361
849
|
* "osVer": "12.0",
|
|
2362
|
-
* "uniVer": "
|
|
2363
|
-
* "unixVer": "4.
|
|
850
|
+
* "uniVer": "√",
|
|
851
|
+
* "unixVer": "4.25"
|
|
2364
852
|
* }
|
|
2365
|
-
* }
|
|
853
|
+
* },
|
|
2366
854
|
* "web": {
|
|
2367
|
-
* "uniVer": "
|
|
2368
|
-
* "unixVer": "
|
|
855
|
+
* "uniVer": "√",
|
|
856
|
+
* "unixVer": "4.21"
|
|
2369
857
|
* }
|
|
2370
858
|
* }
|
|
2371
859
|
*/
|
|
2372
|
-
export interface
|
|
860
|
+
export interface UniCanvasElement extends UniElement {
|
|
861
|
+
/**
|
|
862
|
+
* Canvas宽度
|
|
863
|
+
* @uniPlatform {
|
|
864
|
+
* "app": {
|
|
865
|
+
* "android": {
|
|
866
|
+
* "osVer": "5.0",
|
|
867
|
+
* "uniVer": "√",
|
|
868
|
+
* "unixVer": "4.25"
|
|
869
|
+
* },
|
|
870
|
+
* "ios": {
|
|
871
|
+
* "osVer": "12.0",
|
|
872
|
+
* "uniVer": "√",
|
|
873
|
+
* "unixVer": "4.25"
|
|
874
|
+
* }
|
|
875
|
+
* },
|
|
876
|
+
* "web": {
|
|
877
|
+
* "uniVer": "√",
|
|
878
|
+
* "unixVer": "4.21"
|
|
879
|
+
* }
|
|
880
|
+
* }
|
|
881
|
+
*/
|
|
882
|
+
width: number
|
|
883
|
+
/**
|
|
884
|
+
* Canvas高度
|
|
885
|
+
* @uniPlatform {
|
|
886
|
+
* "app": {
|
|
887
|
+
* "android": {
|
|
888
|
+
* "osVer": "5.0",
|
|
889
|
+
* "uniVer": "√",
|
|
890
|
+
* "unixVer": "4.25"
|
|
891
|
+
* },
|
|
892
|
+
* "ios": {
|
|
893
|
+
* "osVer": "12.0",
|
|
894
|
+
* "uniVer": "√",
|
|
895
|
+
* "unixVer": "4.25"
|
|
896
|
+
* }
|
|
897
|
+
* },
|
|
898
|
+
* "web": {
|
|
899
|
+
* "uniVer": "√",
|
|
900
|
+
* "unixVer": "4.21"
|
|
901
|
+
* }
|
|
902
|
+
* }
|
|
903
|
+
*/
|
|
904
|
+
height: number
|
|
905
|
+
/**
|
|
906
|
+
* 返回 Canvas 的绘图上下文
|
|
907
|
+
* @uniPlatform {
|
|
908
|
+
* "app": {
|
|
909
|
+
* "android": {
|
|
910
|
+
* "osVer": "5.0",
|
|
911
|
+
* "uniVer": "√",
|
|
912
|
+
* "unixVer": "4.25"
|
|
913
|
+
* },
|
|
914
|
+
* "ios": {
|
|
915
|
+
* "osVer": "12.0",
|
|
916
|
+
* "uniVer": "√",
|
|
917
|
+
* "unixVer": "4.25"
|
|
918
|
+
* }
|
|
919
|
+
* },
|
|
920
|
+
* "web": {
|
|
921
|
+
* "uniVer": "√",
|
|
922
|
+
* "unixVer": "4.21"
|
|
923
|
+
* }
|
|
924
|
+
* }
|
|
925
|
+
*/
|
|
926
|
+
getContext(contentType: string): CanvasRenderingContext2D | null
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
// 允许instanceof检查
|
|
930
|
+
export let UniElement: {
|
|
931
|
+
prototype: UniElement
|
|
932
|
+
new (): UniElement
|
|
933
|
+
}
|
|
934
|
+
export let UniButtonElement: {
|
|
935
|
+
prototype: UniButtonElement
|
|
936
|
+
new (): UniButtonElement
|
|
937
|
+
}
|
|
938
|
+
export let UniCanvasElement: {
|
|
939
|
+
prototype: UniCanvasElement
|
|
940
|
+
new (): UniCanvasElement
|
|
941
|
+
}
|
|
942
|
+
export let UniCommentElement: {
|
|
943
|
+
prototype: UniCommentElement
|
|
944
|
+
new (): UniCommentElement
|
|
945
|
+
}
|
|
946
|
+
export let UniImageElement: {
|
|
947
|
+
prototype: UniImageElement
|
|
948
|
+
new (): UniImageElement
|
|
949
|
+
}
|
|
950
|
+
export let Image: {
|
|
951
|
+
prototype: Image
|
|
952
|
+
new(width?: number, height?: number): Image
|
|
953
|
+
}
|
|
954
|
+
export let UniInputElement: {
|
|
955
|
+
prototype: UniInputElement
|
|
956
|
+
new (): UniInputElement
|
|
957
|
+
}
|
|
958
|
+
export let UniListItemElement: {
|
|
959
|
+
prototype: UniListItemElement
|
|
960
|
+
new (): UniListItemElement
|
|
961
|
+
}
|
|
962
|
+
export let UniListViewElement: {
|
|
963
|
+
prototype: UniListViewElement
|
|
964
|
+
new (): UniListViewElement
|
|
965
|
+
}
|
|
966
|
+
export let UniNestedScrollBodyElement: {
|
|
967
|
+
prototype: UniNestedScrollBodyElement
|
|
968
|
+
new (): UniNestedScrollBodyElement
|
|
969
|
+
}
|
|
970
|
+
export let UniNestedScrollHeaderElement: {
|
|
971
|
+
prototype: UniNestedScrollHeaderElement
|
|
972
|
+
new (): UniNestedScrollHeaderElement
|
|
973
|
+
}
|
|
974
|
+
export let UniRichTextElement: {
|
|
975
|
+
prototype: UniRichTextElement
|
|
976
|
+
new (): UniRichTextElement
|
|
977
|
+
}
|
|
978
|
+
export let UniScrollViewElement: {
|
|
979
|
+
prototype: UniScrollViewElement
|
|
980
|
+
new (): UniScrollViewElement
|
|
981
|
+
}
|
|
982
|
+
export let UniStickyHeaderElement: {
|
|
983
|
+
prototype: UniStickyHeaderElement
|
|
984
|
+
new (): UniStickyHeaderElement
|
|
985
|
+
}
|
|
986
|
+
export let UniStickySectionElement: {
|
|
987
|
+
prototype: UniStickySectionElement
|
|
988
|
+
new (): UniStickySectionElement
|
|
989
|
+
}
|
|
990
|
+
export let UniSwiperElement: {
|
|
991
|
+
prototype: UniSwiperElement
|
|
992
|
+
new (): UniSwiperElement
|
|
993
|
+
}
|
|
994
|
+
export let UniSwiperItemElement: {
|
|
995
|
+
prototype: UniSwiperItemElement
|
|
996
|
+
new (): UniSwiperItemElement
|
|
997
|
+
}
|
|
998
|
+
export let UniTabsElement: {
|
|
999
|
+
prototype: UniTabsElement
|
|
1000
|
+
new (): UniTabsElement
|
|
1001
|
+
}
|
|
1002
|
+
export let UniTextElement: {
|
|
1003
|
+
prototype: UniTextElement
|
|
1004
|
+
new (): UniTextElement
|
|
1005
|
+
}
|
|
1006
|
+
export let UniTextareaElement: {
|
|
1007
|
+
prototype: UniTextareaElement
|
|
1008
|
+
new (): UniTextareaElement
|
|
1009
|
+
}
|
|
1010
|
+
export let UniViewElement: {
|
|
1011
|
+
prototype: UniViewElement
|
|
1012
|
+
new (): UniViewElement
|
|
1013
|
+
}
|
|
1014
|
+
export let UniWebViewElement: {
|
|
1015
|
+
prototype: UniWebViewElement
|
|
1016
|
+
new (): UniWebViewElement
|
|
1017
|
+
}
|