@dcloudio/uni-app-x 0.7.85 → 0.7.86
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
CHANGED
|
@@ -98,10 +98,25 @@ declare global {
|
|
|
98
98
|
* 设置callMethod
|
|
99
99
|
* @internal
|
|
100
100
|
*/
|
|
101
|
-
_setCallMethod(fn
|
|
101
|
+
_setCallMethod(fn: (...args: any[]) => void): void
|
|
102
102
|
constructor(scope: UniSharedDataPage)
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
enum UniSharedDataComponentStyleIsolation {
|
|
106
|
+
Isolated,
|
|
107
|
+
AppShared,
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
enum UniSharedDataComponentRenderer {
|
|
111
|
+
Component,
|
|
112
|
+
Page,
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface UniSharedDataComponentOptions {
|
|
116
|
+
styleIsolation: UniSharedDataComponentStyleIsolation
|
|
117
|
+
renderer: UniSharedDataComponentRenderer
|
|
118
|
+
}
|
|
119
|
+
|
|
105
120
|
abstract class UniSharedDataComponent extends UniSharedData {
|
|
106
121
|
/**
|
|
107
122
|
* 组件的类名
|
|
@@ -122,26 +137,38 @@ declare global {
|
|
|
122
137
|
* @internal
|
|
123
138
|
*/
|
|
124
139
|
_ctx: UniSharedDataComponent | null
|
|
140
|
+
/**
|
|
141
|
+
* 当前组件或页面样式隔离策略
|
|
142
|
+
*/
|
|
143
|
+
_styleIsolation: UniSharedDataComponentStyleIsolation
|
|
144
|
+
/**
|
|
145
|
+
* 当前组件或页面渲染类型,页面也有可能作为组件来渲染
|
|
146
|
+
*/
|
|
147
|
+
_renderer: UniSharedDataComponentRenderer
|
|
125
148
|
/**
|
|
126
149
|
* 自定义组件需要透传的属性,需要暴露给js层设置: _set_inheritAttrs()
|
|
127
150
|
* @internal
|
|
128
151
|
*/
|
|
129
152
|
inheritAttrs: UniSharedDataJSONObject
|
|
130
|
-
constructor(scope: UniSharedDataPage)
|
|
131
|
-
/**
|
|
132
|
-
* 设置 vue id (主要用于自动化测试,js层设置)
|
|
133
|
-
* @internal
|
|
134
|
-
*/
|
|
135
|
-
_setVueId(id
|
|
136
|
-
/**
|
|
137
|
-
* 获取 vue id (主要用于自动化测试,c层读取)
|
|
138
|
-
*/
|
|
139
|
-
getVueId()
|
|
153
|
+
constructor(scope: UniSharedDataPage, options: UniSharedDataComponentOptions)
|
|
154
|
+
/**
|
|
155
|
+
* 设置 vue id (主要用于自动化测试,js层设置)
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
_setVueId(id: number): void
|
|
159
|
+
/**
|
|
160
|
+
* 获取 vue id (主要用于自动化测试,c层读取)
|
|
161
|
+
*/
|
|
162
|
+
getVueId(): number
|
|
140
163
|
/**
|
|
141
164
|
* 监听组件根节点样式变更
|
|
142
165
|
* @internal
|
|
143
166
|
*/
|
|
144
|
-
useComputedStyle(options
|
|
167
|
+
useComputedStyle(options: {
|
|
168
|
+
properties: number[]
|
|
169
|
+
filterProperties?: boolean | null
|
|
170
|
+
callback: (result: Array<[number, any | null]>) => void
|
|
171
|
+
}): Map<string, any | null>
|
|
145
172
|
/**
|
|
146
173
|
* 由编译器动态生成的子类中的 Element 渲染器
|
|
147
174
|
* @internal
|
|
@@ -166,6 +193,7 @@ declare global {
|
|
|
166
193
|
* @internal
|
|
167
194
|
*/
|
|
168
195
|
_jobs: Array<Array<UniSharedDataSchedulerJob[]>>
|
|
196
|
+
constructor(pageId: number, options: UniSharedDataComponentOptions)
|
|
169
197
|
/**
|
|
170
198
|
* 批量执行响应式变更
|
|
171
199
|
* @internal
|