Skip to content

Commit

Permalink
feat(weapp): 增加 page-container 组件,fix #8966
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen-jj committed Apr 3, 2021
1 parent ba87f2d commit e68c950
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/taro-weapp/src/components-react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ export const NavigationBar = 'navigation-bar'
export const PageMeta = 'page-meta'
export const VoipRoom = 'voip-room'
export const AdCustom = 'ad-custom'
export const PageContainer = 'page-container'
18 changes: 18 additions & 0 deletions packages/taro-weapp/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,5 +288,23 @@ export const components = {
'ad-intervals': '',
bindLoad: '',
bindError: ''
},
PageContainer: {
show: 'false',
duration: '300',
'z-index': '100',
overlay: 'true',
position: singleQuote('bottom'),
round: 'false',
'close-on-slideDown': 'false',
'overlay-style': '',
'custom-style': '',
bindBeforeEnter: '',
bindEnter: '',
bindAfterEnter: '',
bindBeforeLeave: '',
bindLeave: '',
bindAfterLeave: '',
bindClickOverlay: ''
}
}
1 change: 1 addition & 0 deletions packages/taro-weapp/types/components-react.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export declare const NavigationBar = "navigation-bar";
export declare const PageMeta = "page-meta";
export declare const VoipRoom = "voip-room";
export declare const AdCustom = "ad-custom";
export declare const PageContainer = "page-container";
18 changes: 18 additions & 0 deletions packages/taro-weapp/types/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,4 +280,22 @@ export declare const components: {
bindLoad: string;
bindError: string;
};
PageContainer: {
show: string;
duration: string;
'z-index': string;
overlay: string;
position: string;
round: string;
'close-on-slideDown': string;
'overlay-style': string;
'custom-style': string;
bindBeforeEnter: string;
bindEnter: string;
bindAfterEnter: string;
bindBeforeLeave: string;
bindLeave: string;
bindAfterLeave: string;
bindClickOverlay: string;
};
};

0 comments on commit e68c950

Please sign in to comment.