Skip to content

Commit

Permalink
fix(wechat): 修正 AdCustom 组件找不到模板 (remaxjs#1807)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikumi committed Dec 31, 2021
1 parent 909f5cc commit eb581e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`AdCustom render correctly 1`] = `
<AdCustom
<ad-custom
unitId="id"
/>
`;
2 changes: 1 addition & 1 deletion packages/remax-wechat/src/hostComponents/AdCustom/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ export interface AdCustomProps extends BaseProps {
* 原生模版广告
* @see https://developers.weixin.qq.com/miniprogram/dev/component/ad-custom.html
*/
export const AdCustom: React.ComponentType<AdCustomProps> = createHostComponent<AdCustomProps>('AdCustom');
export const AdCustom: React.ComponentType<AdCustomProps> = createHostComponent<AdCustomProps>('ad-custom');

0 comments on commit eb581e3

Please sign in to comment.