File tree Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Expand file tree Collapse file tree 4 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -220,6 +220,14 @@ declare namespace MiniProgram.Component {
220
220
* @returns undefined | null | 页面 | 自定义组件 | 用户 ref 的 Object
221
221
*/
222
222
selectComposedParentComponent ( ) : BaseInstance ;
223
+ /**
224
+ * 检查组件是否具有 mixin(须是通过Mixin()创建的mixin实例)。
225
+ * @description 若自定义组件注册时传入了ref以指定组件返回值,则可通过hasMixin('ref')检查到
226
+ * @version 2.8.2
227
+ * @return boolean
228
+ * @see https://opendocs.alipay.com/mini/framework/component_object#%E7%BB%84%E4%BB%B6%E5%AE%9E%E4%BE%8B%E6%96%B9%E6%B3%95
229
+ */
230
+ hasMixin ( mixin : Mixin . IMixinIdentifier ) : boolean ;
223
231
/**
224
232
* 获取这个关系所对应的所有关联节点,参见 组件间关系
225
233
* @version 2.8.5
Original file line number Diff line number Diff line change @@ -364,6 +364,7 @@ declare namespace MiniProgram.Page {
364
364
* 检查组件是否具有 mixin(须是通过Mixin()创建的mixin实例)。
365
365
* @version 2.8.5
366
366
* @return boolean
367
+ * @see https://opendocs.alipay.com/mini/framework/page-detail#hasMixin
367
368
*/
368
369
hasMixin ( mixin : Mixin . IMixinIdentifier ) : boolean ;
369
370
}
Original file line number Diff line number Diff line change @@ -296,14 +296,6 @@ declare namespace MiniProgram.Shared {
296
296
* @see https://opendocs.alipay.com/mini/framework/component_object#%24selectComponent%2F%24selectAllComponents
297
297
*/
298
298
$selectAllComponents ( selector : string ) : Component . BaseInstance [ ] ;
299
- /**
300
- * 检查组件是否具有 mixin(须是通过Mixin()创建的mixin实例)。
301
- * @description 若自定义组件注册时传入了ref以指定组件返回值,则可通过hasMixin('ref')检查到
302
- * @version 2.8.2
303
- * @return boolean
304
- * @see https://opendocs.alipay.com/mini/framework/component_object#%E7%BB%84%E4%BB%B6%E5%AE%9E%E4%BE%8B%E6%96%B9%E6%B3%95
305
- */
306
- hasMixin ( mixin : Mixin . IMixinIdentifier ) : boolean ;
307
299
/**
308
300
* 监听 setData 引发界面更新的开销,参见 获取更新性能统计信息
309
301
* @version 2.8.5
Original file line number Diff line number Diff line change @@ -13,6 +13,9 @@ Component({
13
13
} ,
14
14
options : {
15
15
observers : true ,
16
+ externalClasses : true ,
17
+ lifetimes : true ,
18
+ relations : true ,
16
19
} ,
17
20
observers : {
18
21
'field1,field2' : function ( val1 , val2 ) {
You can’t perform that action at this time.
0 commit comments