Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

修复wechat page-meta、navigation-bar 组件渲染错误 #1583

Merged
merged 28 commits into from
May 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
d93b888
sync wechat picker props
douxc May 14, 2021
bc397bd
sync wechat picker props
douxc May 14, 2021
232089d
sync wechat picker props
douxc May 14, 2021
f93fa61
feat: add wechat match-media component
douxc May 16, 2021
ec1b714
fix: remove unused props alias
douxc May 16, 2021
d490012
feat: add wechat page-container component
douxc May 16, 2021
8199599
feat: add wechat share-element component
douxc May 16, 2021
49c391d
feat: wechat swiper component add snap-to-edge prop
douxc May 16, 2021
bad0d9b
feat: wechat text component add user-select prop
douxc May 16, 2021
3bffdfb
feat: wechat input component add always-embed prop
douxc May 16, 2021
0c3cde2
docs: add share-element doc
douxc May 16, 2021
8a1a144
feat: add wechat keyboard-accessory component
douxc May 16, 2021
c63ecce
feat: remove wechat keyboard-accesssory unused alias
douxc May 16, 2021
afd29b0
feat: add wechat live-pusher prop
douxc May 16, 2021
ec5560c
feat: sync wechat video prop
douxc May 16, 2021
0288bb9
feat: add wechat voip-room component
douxc May 16, 2021
42ba6d2
feat(wechat): 添加ad-custom 组件
douxc May 16, 2021
2884029
feat(wechat): 添加page-meta组件
douxc May 16, 2021
e039e99
feat(wechat): 添加navigation-bar组件
douxc May 16, 2021
a2cdf09
fix(wechat): 修复video组件backgroundPoster属性定义错误
douxc May 16, 2021
8430411
feat(wechat): 添加测试代码
douxc May 16, 2021
2606cf8
Merge branch 'master' of github.com:douxc/remax
douxc May 16, 2021
2a57522
fix(wechat): 添加AppConfig缺少的声明
douxc May 16, 2021
ab0f188
Merge branch 'remaxjs:master' into master
douxc May 16, 2021
f01c6a4
test: update snapshot
yesmeck May 19, 2021
996d9ce
chore: lint fix
yesmeck May 19, 2021
f28aa52
Merge branch 'remaxjs:master' into master
douxc May 24, 2021
a5d13c1
fix(wechat): 修复page-meta、navigation-bar组件渲染错误
douxc May 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`NavigationBar render correctly 1`] = `
<NavigationBar
<navigation-bar
colorAnimationDuration={0}
colorAnimationTimingFunc="linear"
loading={false}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`PageMeta render correctly 1`] = `
<page-container
<page-meta
scrollDuration={300}
/>
`;
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface NavigationBarProps extends BaseProps {
* @see https://developers.weixin.qq.com/miniprogram/dev/component/navigation-bar.html
*/
export const NavigationBar: React.ComponentType<NavigationBarProps> = createHostComponent<NavigationBarProps>(
'NavigationBar'
'navigation-bar'
);

NavigationBar.defaultProps = {
Expand Down
4 changes: 2 additions & 2 deletions packages/remax-wechat/src/hostComponents/PageMeta/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ export interface PageMetaProps extends BaseProps {
}
/**
* 页面属性配置节点,用于指定页面的一些属性、监听页面事件。只能是页面内的第一个节点。可以配合 navigation-bar 组件一同使用。
* @see https://developers.weixin.qq.com/miniprogram/dev/component/page-container.html
* @see https://developers.weixin.qq.com/miniprogram/dev/component/page-meta.html
*/
export const PageMeta: React.ComponentType<PageMetaProps> = createHostComponent<PageMetaProps>('page-container');
export const PageMeta: React.ComponentType<PageMetaProps> = createHostComponent<PageMetaProps>('page-meta');

PageMeta.defaultProps = {
scrollDuration: 300,
Expand Down
4 changes: 4 additions & 0 deletions packages/remax-wechat/src/hostComponents/VoipRoom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export interface VoipRoomProps extends BaseProps {
onError?: (event: GenericEvent) => any;
}

/**
* 多人音视频对话。需用户授权 scope.camera、scope.record。
* @see https://developers.weixin.qq.com/miniprogram/dev/component/voip-room.html
*/
export const VoipRoom: React.ComponentType<VoipRoomProps> = createHostComponent<VoipRoomProps>('voip-room');
VoipRoom.defaultProps = {
mode: 'camera',
Expand Down