From e68c9501386a3da81ee1cd300c03d8f95d4d657c Mon Sep 17 00:00:00 2001 From: chenjiajian <798095202@qq.com> Date: Sat, 3 Apr 2021 23:15:35 +0800 Subject: [PATCH] =?UTF-8?q?feat(weapp):=20=E5=A2=9E=E5=8A=A0=20page-contai?= =?UTF-8?q?ner=20=E7=BB=84=E4=BB=B6=EF=BC=8Cfix=20#8966?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-weapp/src/components-react.ts | 1 + packages/taro-weapp/src/components.ts | 18 ++++++++++++++++++ .../taro-weapp/types/components-react.d.ts | 1 + packages/taro-weapp/types/components.d.ts | 18 ++++++++++++++++++ 4 files changed, 38 insertions(+) diff --git a/packages/taro-weapp/src/components-react.ts b/packages/taro-weapp/src/components-react.ts index da178e997de6..6c9c40ab7eb0 100644 --- a/packages/taro-weapp/src/components-react.ts +++ b/packages/taro-weapp/src/components-react.ts @@ -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' diff --git a/packages/taro-weapp/src/components.ts b/packages/taro-weapp/src/components.ts index 8467a5f3fbb0..bcb585be6a32 100644 --- a/packages/taro-weapp/src/components.ts +++ b/packages/taro-weapp/src/components.ts @@ -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: '' } } diff --git a/packages/taro-weapp/types/components-react.d.ts b/packages/taro-weapp/types/components-react.d.ts index fbf2508aea2f..e57399360116 100644 --- a/packages/taro-weapp/types/components-react.d.ts +++ b/packages/taro-weapp/types/components-react.d.ts @@ -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"; diff --git a/packages/taro-weapp/types/components.d.ts b/packages/taro-weapp/types/components.d.ts index fe738833f834..c2bd631082e5 100644 --- a/packages/taro-weapp/types/components.d.ts +++ b/packages/taro-weapp/types/components.d.ts @@ -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; + }; };