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

Commit

Permalink
fix(toutiao): 修正没有导出 getMenuButtonBoundingClientRect 的问题
Browse files Browse the repository at this point in the history
* 修正2.0迁移指南 配置 copy 行为的方式&&头条小程序tt.getMenuButtonBoundingClientRect API补全

* 修复lint问题

* Update docs/guide/v2-migration.md

Co-authored-by: Wei Zhu <[email protected]>

Co-authored-by: Cai Huanyu <[email protected]>
Co-authored-by: Wei Zhu <[email protected]>
  • Loading branch information
3 people committed May 13, 2020
1 parent 3582551 commit a10f289
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/v2-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ import './index.css';
const CopyPlugin = require('copy-webpack-plugin');

module.exports = {
configWebpack({ config }) => {
configWebpack({ config }) {
// 详细配置参考 copy-webpack-plugin
config.plugin('copy').use(CopyPlugin, [[{ from: 'src/assets', to: 'assets' }]]);
},
Expand Down
1 change: 1 addition & 0 deletions packages/remax-toutiao/src/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ export const createRewardedVideoAd = tt.createRewardedVideoAd;
export const getConnectedWifi = promisify(tt.getConnectedWifi);
export const setKeepScreenOn = promisify(tt.setKeepScreenOn);
export const getMenuButtonLayout = tt.getMenuButtonLayout;
export const getMenuButtonBoundingClientRect = tt.getMenuButtonBoundingClientRect;

0 comments on commit a10f289

Please sign in to comment.