微信小程序
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

relation.d.ts 576 B

123456789101112131415
  1. /// <reference types="miniprogram-api-typings" />
  2. declare type TrivialInstance = WechatMiniprogram.Component.TrivialInstance;
  3. export declare function useParent(name: string, onEffect?: (this: TrivialInstance) => void): {
  4. relations: {
  5. [x: string]: WechatMiniprogram.Component.RelationOption;
  6. };
  7. mixin: string;
  8. };
  9. export declare function useChildren(name: string, onEffect?: (this: TrivialInstance, target: TrivialInstance) => void): {
  10. relations: {
  11. [x: string]: WechatMiniprogram.Component.RelationOption;
  12. };
  13. mixin: string;
  14. };
  15. export {};