@dcloudio/uni-app-x 0.5.4 → 0.5.6
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/package.json +1 -1
- package/types/app.d.ts +17 -8
- package/types/native/AsyncApiResult.d.ts +1 -1
- package/types/native/CSSStyleDeclaration.d.ts +2 -2
- package/types/native/DrawableContext.d.ts +2 -2
- package/types/native/Element.d.ts +52 -17
- package/types/native/IDocument.d.ts +2 -3
- package/types/native/IPage.d.ts +1 -1
- package/types/native/IUniError.d.ts +1 -1
- package/types/native/NodeData.d.ts +1 -1
- package/types/native/SnapshotOptions.d.ts +63 -0
- package/types/native/UniAppManager.d.ts +1 -1
- package/types/native/UniElement.d.ts +97 -0
- package/types/native/UniTabsElement.d.ts +86 -0
- package/types/native/UniTextElement.d.ts +13 -0
- package/types/native/UniVideoElement.d.ts +70 -0
- package/types/native/{IWebViewNode.d.ts → UniWebViewElement.d.ts} +5 -2
- package/types/native/WebViewDownloadEvent.d.ts +37 -0
- package/types/native/WebViewErrorEvent.d.ts +26 -7
- package/types/native/WebViewLoadedEvent.d.ts +15 -2
- package/types/native/WebViewLoadingEvent.d.ts +15 -2
- package/types/native/WebViewMessageEvent.d.ts +15 -7
- package/types/native/WebViewStyles.d.ts +20 -0
- package/types/native/index.d.ts +8 -4
- package/types/shims-vue.d.ts +4 -2
- package/types/uni/core/lib/base/event/interface.d.ts +3 -6
- package/types/uni/core/lib/ui/get-element-by-id/interface.d.ts +3 -2
- package/types/uni/core/lib/ui/pull-down-refresh/index.d.ts +4 -0
- package/types/uni/core/lib/ui/pull-down-refresh/interface.d.ts +10 -1
- package/types/uni/core/lib/ui/tab-bar/interface.d.ts +4 -8
- package/types/uni/uts-plugin-api/index.d.ts +1 -2
- package/types/uni/uts-plugin-api/lib/uni-getAccessibilityInfo/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-getAppAuthorizeSetting/utssdk/interface.d.ts +86 -86
- package/types/uni/uts-plugin-api/lib/uni-getAppBaseInfo/utssdk/interface.d.ts +103 -103
- package/types/uni/uts-plugin-api/lib/uni-getDeviceInfo/utssdk/interface.d.ts +52 -52
- package/types/uni/uts-plugin-api/lib/uni-getNetworkType/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +82 -82
- package/types/uni/uts-plugin-api/lib/uni-getSystemSetting/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +10 -10
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/app-ios/interface.d.ts +59 -56
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +116 -97
- package/types/uni/uts-plugin-api/lib/uni-openAppAuthorizeSetting/utssdk/interface.d.ts +4 -4
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/index.d.ts +55 -0
- package/types/uni/uts-plugin-api/lib/uni-push/utssdk/interface.d.ts +338 -0
- package/types/uni/uts-plugin-api/lib/uni-websocket/utssdk/interface.d.ts +39 -39
- package/types/uni-cloud/interface.d.ts +10 -10
- package/types/vue/CheckboxGroupChangeEvent.d.ts +13 -0
- package/types/vue/PickerViewChangeEvent.d.ts +13 -0
- package/types/vue/ProgressActiveendEvent.d.ts +7 -0
- package/types/vue/RadioGroupChangeEvent.d.ts +13 -0
- package/types/vue/SliderChangeEvent.d.ts +2 -2
- package/types/vue/SwitchChangeEvent.d.ts +7 -0
- package/types/vue/UniButtonElement.d.ts +7 -0
- package/types/vue/UniCloudDBElement.d.ts +213 -0
- package/types/vue/UniNavigatorElement.d.ts +7 -0
- package/types/vue/index.d.ts +3 -0
- package/types/native/DomNode.d.ts +0 -48
- package/types/native/ITabsNode.d.ts +0 -36
- package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/index.d.ts +0 -17
- package/types/uni/uts-plugin-api/lib/uni-audio/utssdk/interface.d.ts +0 -804
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/index.d.ts +0 -15
- package/types/uni/uts-plugin-api/lib/uni-getRecorderManager/utssdk/interface.d.ts +0 -213
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/// <reference path='./Element.d.ts' />
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* video元素对象
|
|
5
|
+
* @package io.dcloud.uniapp.runtime
|
|
6
|
+
* @autodoc false
|
|
7
|
+
*/
|
|
8
|
+
declare interface UniVideoElement extends Element {
|
|
9
|
+
/**
|
|
10
|
+
* 播放
|
|
11
|
+
*/
|
|
12
|
+
play(): void
|
|
13
|
+
/**
|
|
14
|
+
* 暂停
|
|
15
|
+
*/
|
|
16
|
+
pause(): void
|
|
17
|
+
/**
|
|
18
|
+
* 跳转到指定位置
|
|
19
|
+
* @param {number} position 跳转到指定位置(秒)
|
|
20
|
+
*/
|
|
21
|
+
seek(position: number): void
|
|
22
|
+
/**
|
|
23
|
+
* 停止视频
|
|
24
|
+
*/
|
|
25
|
+
stop(): void
|
|
26
|
+
/**
|
|
27
|
+
* 发送弹幕
|
|
28
|
+
* @param {Danmu} danmu 弹幕数据
|
|
29
|
+
*/
|
|
30
|
+
sendDanmu(danmu: Danmu): void
|
|
31
|
+
/**
|
|
32
|
+
* 设置倍速播放
|
|
33
|
+
* @param {number} rate 支持倍率 0.5/0.8/1.0/1.25/1.5
|
|
34
|
+
*/
|
|
35
|
+
playbackRate(rate: number): void
|
|
36
|
+
/**
|
|
37
|
+
* 进入全屏
|
|
38
|
+
* @param {RequestFullScreenOptions} direction 0|正常竖向, 90|屏幕逆时针90度, -90|屏幕顺时针90度
|
|
39
|
+
*/
|
|
40
|
+
requestFullScreen(direction: RequestFullScreenOptions | null): void
|
|
41
|
+
/**
|
|
42
|
+
* 退出全屏
|
|
43
|
+
*/
|
|
44
|
+
exitFullScreen(): void
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare type Danmu = {
|
|
48
|
+
/**
|
|
49
|
+
* 弹幕文字
|
|
50
|
+
*/
|
|
51
|
+
text: string | null
|
|
52
|
+
/**
|
|
53
|
+
* 弹幕颜色
|
|
54
|
+
*/
|
|
55
|
+
color: string | null
|
|
56
|
+
/**
|
|
57
|
+
* 显示时刻
|
|
58
|
+
*/
|
|
59
|
+
time: number | null
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare type RequestFullScreenOptions = {
|
|
63
|
+
/**
|
|
64
|
+
* direction
|
|
65
|
+
* - 0: 正常竖向
|
|
66
|
+
* - 90: 屏幕逆时针90度
|
|
67
|
+
* - -90: 屏幕顺时针90度
|
|
68
|
+
*/
|
|
69
|
+
direction: number | null
|
|
70
|
+
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
/// <reference path='./
|
|
1
|
+
/// <reference path='./UniElement.d.ts' />
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
+
* web-view元素对象
|
|
4
5
|
* @package io.dcloud.uniapp.runtime
|
|
5
6
|
* @autodoc false
|
|
6
7
|
*/
|
|
7
|
-
interface
|
|
8
|
+
declare interface UniWebViewElement extends UniElement {
|
|
8
9
|
/**
|
|
9
10
|
* 后退
|
|
10
11
|
*/
|
|
@@ -26,3 +27,5 @@ interface IWebViewNode extends Element {
|
|
|
26
27
|
*/
|
|
27
28
|
evalJS(js: string): void
|
|
28
29
|
}
|
|
30
|
+
|
|
31
|
+
type IWebViewNode = UniWebViewElement
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/// <reference path='./Event.d.ts' />
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @package io.dcloud.uniapp.runtime
|
|
5
|
+
*/
|
|
6
|
+
declare class WebViewDownloadEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 下载链接
|
|
9
|
+
*/
|
|
10
|
+
url: string
|
|
11
|
+
/**
|
|
12
|
+
* 用户代理
|
|
13
|
+
*/
|
|
14
|
+
userAgent: string
|
|
15
|
+
/**
|
|
16
|
+
* 指示回复的内容该以何种形式展示,是以内联的形式(即网页或者页面的一部分),还是以附件的形式下载并保存到本地
|
|
17
|
+
*/
|
|
18
|
+
contentDisposition: string
|
|
19
|
+
/**
|
|
20
|
+
* 媒体类型
|
|
21
|
+
*/
|
|
22
|
+
mimetype: string
|
|
23
|
+
/**
|
|
24
|
+
* 文件大小
|
|
25
|
+
*/
|
|
26
|
+
contentLength: number
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* @package io.dcloud.uniapp.runtime
|
|
31
|
+
*/
|
|
32
|
+
declare class WebViewDownloadEvent extends CustomEvent<WebViewDownloadEventDetail> {
|
|
33
|
+
/**
|
|
34
|
+
* 事件类型,固定值download
|
|
35
|
+
*/
|
|
36
|
+
type: string
|
|
37
|
+
}
|
|
@@ -3,11 +3,30 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
declare class
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
declare class WebViewErrorEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 统一错误主题(模块)名称,固定值uni-web-view
|
|
9
|
+
*/
|
|
10
|
+
errSubject: string
|
|
11
|
+
/**
|
|
12
|
+
* 统一错误码
|
|
13
|
+
* 100001 ssl error
|
|
14
|
+
* 100002 page error
|
|
15
|
+
* 100003 http error
|
|
16
|
+
*/
|
|
17
|
+
errCode: number
|
|
18
|
+
/**
|
|
19
|
+
* 统一错误描述信息
|
|
20
|
+
*/
|
|
21
|
+
errMsg: string
|
|
13
22
|
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @package io.dcloud.uniapp.runtime
|
|
26
|
+
*/
|
|
27
|
+
declare class WebViewErrorEvent extends CustomEvent<WebViewErrorEventDetail> {
|
|
28
|
+
/**
|
|
29
|
+
* 事件类型,固定值error
|
|
30
|
+
*/
|
|
31
|
+
type: string
|
|
32
|
+
}
|
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
declare class
|
|
7
|
-
|
|
6
|
+
declare class WebViewLoadedEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 加载完成的网页链接
|
|
9
|
+
*/
|
|
10
|
+
url: string
|
|
8
11
|
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @package io.dcloud.uniapp.runtime
|
|
15
|
+
*/
|
|
16
|
+
declare class WebViewLoadedEvent extends CustomEvent<WebViewLoadedEventDetail> {
|
|
17
|
+
/**
|
|
18
|
+
* 事件类型,固定值loaded
|
|
19
|
+
*/
|
|
20
|
+
type: string
|
|
21
|
+
}
|
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
declare class
|
|
7
|
-
|
|
6
|
+
declare class WebViewLoadingEventDetail extends Event {
|
|
7
|
+
/**
|
|
8
|
+
* 加载中的网页链接
|
|
9
|
+
*/
|
|
10
|
+
url: string
|
|
8
11
|
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @package io.dcloud.uniapp.runtime
|
|
15
|
+
*/
|
|
16
|
+
declare class WebViewLoadingEvent extends CustomEvent<WebViewLoadingEventDetail> {
|
|
17
|
+
/**
|
|
18
|
+
* 事件类型,固定值loading
|
|
19
|
+
*/
|
|
20
|
+
type: string
|
|
21
|
+
}
|
|
@@ -3,11 +3,19 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* @package io.dcloud.uniapp.runtime
|
|
5
5
|
*/
|
|
6
|
-
declare class
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
data: Map<string, any | null> | null
|
|
12
|
-
}
|
|
6
|
+
declare class WebViewMessageEventDetail {
|
|
7
|
+
/**
|
|
8
|
+
* 消息包含的数据
|
|
9
|
+
*/
|
|
10
|
+
data: Map<string, any | null> | null
|
|
13
11
|
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @package io.dcloud.uniapp.runtime
|
|
15
|
+
*/
|
|
16
|
+
declare class WebViewMessageEvent extends CustomEvent<WebViewMessageEventDetail> {
|
|
17
|
+
/**
|
|
18
|
+
* 事件类型,固定值message
|
|
19
|
+
*/
|
|
20
|
+
type: string
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* web-view组件的样式
|
|
3
|
+
*/
|
|
4
|
+
declare class WebViewStyles {
|
|
5
|
+
/**
|
|
6
|
+
* 网络地址页面加载进度条样式,设置为 false 时表示不显示加载进度条。
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
progress: WebViewProgressStyles|boolean
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* web-view组件的进度条样式
|
|
14
|
+
*/
|
|
15
|
+
declare class WebViewProgressStyles {
|
|
16
|
+
/**
|
|
17
|
+
* 网页加载进度条颜色,默认值为 #00FF00 。
|
|
18
|
+
*/
|
|
19
|
+
color: string.ColorString
|
|
20
|
+
}
|
package/types/native/index.d.ts
CHANGED
|
@@ -14,10 +14,13 @@
|
|
|
14
14
|
/// <reference path='./InputFocusEvent.d.ts' />
|
|
15
15
|
/// <reference path='./InputKeyboardHeightChangeEvent.d.ts' />
|
|
16
16
|
/// <reference path='./Element.d.ts' />
|
|
17
|
+
/// <reference path='./UniElement.d.ts' />
|
|
17
18
|
/// <reference path='./IPage.d.ts' />
|
|
18
19
|
/// <reference path='./IPageManager.d.ts' />
|
|
19
|
-
/// <reference path='./
|
|
20
|
-
/// <reference path='./
|
|
20
|
+
/// <reference path='./UniTabsElement.d.ts' />
|
|
21
|
+
/// <reference path='./UniWebViewElement.d.ts' />
|
|
22
|
+
/// <reference path='./UniTextElement.d.ts' />
|
|
23
|
+
/// <reference path='./UniVideoElement.d.ts' />
|
|
21
24
|
/// <reference path='./MouseEvent.d.ts' />
|
|
22
25
|
/// <reference path='./NestedPreScrollEvent.d.ts' />
|
|
23
26
|
/// <reference path='./NodeData.d.ts' />
|
|
@@ -32,6 +35,7 @@
|
|
|
32
35
|
/// <reference path='./SourceError.d.ts' />
|
|
33
36
|
/// <reference path='./StartNestedScrollEvent.d.ts' />
|
|
34
37
|
/// <reference path='./TabTapEvent.d.ts' />
|
|
38
|
+
/// <reference path='./SnapshotOptions.d.ts' />
|
|
35
39
|
/// <reference path='./TextareaBlurEvent.d.ts' />
|
|
36
40
|
/// <reference path='./TextareaFocusEvent.d.ts' />
|
|
37
41
|
/// <reference path='./TextareaLineChangeEvent.d.ts' />
|
|
@@ -40,6 +44,8 @@
|
|
|
40
44
|
/// <reference path='./UniAppManager.d.ts' />
|
|
41
45
|
/// <reference path="./IUniError.d.ts" />
|
|
42
46
|
/// <reference path='./UniError.d.ts' />
|
|
47
|
+
/// <reference path='./WebViewStyles.d.ts' />
|
|
48
|
+
/// <reference path='./WebViewDownloadEvent.d.ts' />
|
|
43
49
|
/// <reference path='./WebViewErrorEvent.d.ts' />
|
|
44
50
|
/// <reference path='./WebViewLoadedEvent.d.ts' />
|
|
45
51
|
/// <reference path='./WebViewLoadingEvent.d.ts' />
|
|
@@ -48,5 +54,3 @@
|
|
|
48
54
|
/// <reference path='./SwiperChangeEvent.d.ts' />
|
|
49
55
|
/// <reference path='./SwiperTransitionEvent.d.ts' />
|
|
50
56
|
/// <reference path='./SwiperAnimationFinishEvent.d.ts' />
|
|
51
|
-
|
|
52
|
-
/// <reference path='./DomNode.d.ts' />
|
package/types/shims-vue.d.ts
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
/// <reference path='./page.d.ts' />
|
|
3
3
|
|
|
4
4
|
declare module '@vue/runtime-core' {
|
|
5
|
-
|
|
5
|
+
interface ComponentCustomOptions extends PageInstance {
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface AppCustomOptions extends AppInstance {
|
|
8
10
|
|
|
9
11
|
}
|
|
10
12
|
}
|
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
type AnyCallback = Function<unknown>
|
|
3
|
-
|
|
4
|
-
type $OnCallback = AnyCallback
|
|
1
|
+
type $OnCallback = Function
|
|
5
2
|
export type $On = (eventName: string, callback: $OnCallback) => void
|
|
6
3
|
|
|
7
|
-
type $OnceCallback =
|
|
4
|
+
type $OnceCallback = Function
|
|
8
5
|
export type $Once = (eventName: string, callback: $OnceCallback) => void
|
|
9
6
|
|
|
10
|
-
type $OffCallback =
|
|
7
|
+
type $OffCallback = Function
|
|
11
8
|
export type $Off = (eventName: string, callback: $OffCallback) => void
|
|
12
9
|
|
|
13
10
|
export type $Emit = (eventName: string, args: any | null) => void
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type GetElementById = (id:
|
|
1
|
+
export type GetElementById = (id: string.IDString | string) => Element | null
|
|
2
2
|
|
|
3
3
|
export interface Uni {
|
|
4
4
|
/**
|
|
@@ -68,5 +68,6 @@ export interface Uni {
|
|
|
68
68
|
* }
|
|
69
69
|
* }
|
|
70
70
|
*/
|
|
71
|
-
getElementById(id:
|
|
71
|
+
getElementById(id: string.IDString | string): Element | null
|
|
72
|
+
getElementById<T>(id: string.IDString | string): T | null
|
|
72
73
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
PullDownRefreshErrorCode as PullDownRefreshErrorCodeOrigin,
|
|
3
|
+
PullDownRefreshError as PullDownRefreshErrorOrigin,
|
|
2
4
|
StartPullDownRefreshOptions as StartPullDownRefreshOptionsOrigin,
|
|
3
5
|
StartPullDownRefreshSuccess as StartPullDownRefreshSuccessOrigin,
|
|
4
6
|
StartPullDownRefreshSuccessCallback as StartPullDownRefreshSuccessCallbackOrigin,
|
|
@@ -11,6 +13,8 @@ import {
|
|
|
11
13
|
} from './interface'
|
|
12
14
|
|
|
13
15
|
declare global {
|
|
16
|
+
type PullDownRefreshErrorCode = PullDownRefreshErrorCodeOrigin
|
|
17
|
+
type PullDownRefreshError = PullDownRefreshErrorOrigin
|
|
14
18
|
type StartPullDownRefreshOptions = StartPullDownRefreshOptionsOrigin
|
|
15
19
|
type StartPullDownRefreshSuccess = StartPullDownRefreshSuccessOrigin
|
|
16
20
|
type StartPullDownRefreshSuccessCallback = StartPullDownRefreshSuccessCallbackOrigin
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { AsyncApiSuccessResult } from '../../interface'
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* 下拉刷新错误码
|
|
5
|
+
* - 4: 框架内部异常
|
|
6
|
+
*/
|
|
7
|
+
export type PullDownRefreshErrorCode = 4
|
|
8
|
+
export interface PullDownRefreshError extends IUniError {
|
|
9
|
+
errCode: PullDownRefreshErrorCode
|
|
10
|
+
}
|
|
11
|
+
|
|
3
12
|
export type StartPullDownRefreshOptions = {
|
|
4
13
|
/**
|
|
5
14
|
* 接口调用成功的回调函数
|
|
@@ -18,7 +27,7 @@ export type StartPullDownRefreshSuccess = AsyncApiSuccessResult
|
|
|
18
27
|
export type StartPullDownRefreshSuccessCallback = (
|
|
19
28
|
result: StartPullDownRefreshSuccess
|
|
20
29
|
) => void
|
|
21
|
-
export type StartPullDownRefreshFail =
|
|
30
|
+
export type StartPullDownRefreshFail = PullDownRefreshError
|
|
22
31
|
export type StartPullDownRefreshFailCallback = (
|
|
23
32
|
result: StartPullDownRefreshFail
|
|
24
33
|
) => void
|
|
@@ -215,32 +215,28 @@ export type SetTabBarStyleCompleteCallback = (
|
|
|
215
215
|
export type SetTabBarStyleOptions = {
|
|
216
216
|
/**
|
|
217
217
|
* tab 上的文字默认颜色
|
|
218
|
-
* @type {HBuilderX.ColorString}
|
|
219
218
|
*/
|
|
220
|
-
color?: string
|
|
219
|
+
color?: string | string.ColorString
|
|
221
220
|
/**
|
|
222
221
|
* tab 上的文字选中时的颜色
|
|
223
|
-
* {HBuilderX.ColorString}
|
|
224
222
|
*/
|
|
225
|
-
selectedColor?: string
|
|
223
|
+
selectedColor?: string | string.ColorString
|
|
226
224
|
/**
|
|
227
225
|
* tab 的背景色
|
|
228
|
-
* @type {HBuilderX.ColorString}
|
|
229
226
|
*/
|
|
230
|
-
backgroundColor?: string
|
|
227
|
+
backgroundColor?: string | string.ColorString
|
|
231
228
|
/**
|
|
232
229
|
* 图片背景
|
|
233
230
|
*/
|
|
234
231
|
backgroundImage?: string
|
|
235
232
|
/**
|
|
236
233
|
* 背景图平铺方式
|
|
237
|
-
* @type {'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'}
|
|
238
234
|
* - repeat: 背景图片在垂直方向和水平方向平铺
|
|
239
235
|
* - repeat-x: 背景图片在水平方向平铺,垂直方向拉伸
|
|
240
236
|
* - repeat-y: 背景图片在垂直方向平铺,水平方向拉伸
|
|
241
237
|
* - no-repeat: 背景图片在垂直方向和水平方向都拉伸
|
|
242
238
|
*/
|
|
243
|
-
backgroundRepeat?:
|
|
239
|
+
backgroundRepeat?: 'repeat' | 'repeat-x' | 'repeat-y' | 'no-repeat'
|
|
244
240
|
/**
|
|
245
241
|
* tabbar上边框的颜色
|
|
246
242
|
*/
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/// <reference path='./lib/uni-websocket/utssdk/index.d.ts' />
|
|
2
2
|
/// <reference path='./lib/uni-storage/utssdk/index.d.ts' />
|
|
3
|
+
/// <reference path='./lib/uni-push/utssdk/index.d.ts' />
|
|
3
4
|
/// <reference path='./lib/uni-prompt/utssdk/index.d.ts' />
|
|
4
5
|
/// <reference path='./lib/uni-openAppAuthorizeSetting/utssdk/index.d.ts' />
|
|
5
6
|
/// <reference path='./lib/uni-network/utssdk/index.d.ts' />
|
|
6
7
|
/// <reference path='./lib/uni-media/utssdk/index.d.ts' />
|
|
7
8
|
/// <reference path='./lib/uni-getSystemSetting/utssdk/index.d.ts' />
|
|
8
9
|
/// <reference path='./lib/uni-getSystemInfo/utssdk/index.d.ts' />
|
|
9
|
-
/// <reference path='./lib/uni-getRecorderManager/utssdk/index.d.ts' />
|
|
10
10
|
/// <reference path='./lib/uni-getNetworkType/utssdk/index.d.ts' />
|
|
11
11
|
/// <reference path='./lib/uni-getLocation-system/utssdk/index.d.ts' />
|
|
12
12
|
/// <reference path='./lib/uni-getDeviceInfo/utssdk/index.d.ts' />
|
|
@@ -15,5 +15,4 @@
|
|
|
15
15
|
/// <reference path='./lib/uni-getAccessibilityInfo/utssdk/index.d.ts' />
|
|
16
16
|
/// <reference path='./lib/uni-exit/utssdk/index.d.ts' />
|
|
17
17
|
/// <reference path='./lib/uni-createWebviewContext/utssdk/index.d.ts' />
|
|
18
|
-
/// <reference path='./lib/uni-audio/utssdk/index.d.ts' />
|
|
19
18
|
/// <reference path='./lib/uni-network/utssdk/app-ios/index.d.ts' />
|
|
@@ -13,12 +13,12 @@ export interface Uni {
|
|
|
13
13
|
* "android": {
|
|
14
14
|
* "osVer": "4.4",
|
|
15
15
|
* "uniVer": "x",
|
|
16
|
-
* "unixVer": "3.9
|
|
16
|
+
* "unixVer": "3.9+"
|
|
17
17
|
* },
|
|
18
18
|
* "ios": {
|
|
19
19
|
* "osVer": "9.0",
|
|
20
20
|
* "uniVer": "x",
|
|
21
|
-
* "unixVer": "3.9
|
|
21
|
+
* "unixVer": "3.9+"
|
|
22
22
|
* }
|
|
23
23
|
* }
|
|
24
24
|
* }
|