Commit 43f07f84 authored by 沈翠玲's avatar 沈翠玲

横屏处理

parent 45f5d5fa
......@@ -216,7 +216,9 @@ export async function getInitialState(): Promise<{
settings: {},
};
}
if (!(typeof window !== 'undefined' && typeof window.document !== 'undefined')) {
plus.screen.lockOrientation("landscape-primary"); // 把屏幕方向改变成横屏正方向
}
// ProLayout 支持的api https://procomponents.ant.design/components/layout
export const layout: RunTimeLayoutConfig = ({ initialState, setInitialState }) => {
return {
......
......@@ -127,7 +127,7 @@ const formatOptions = (data: any) => {
const lastSevenDays = [];
for (let i = 0; i < 7; i++) {
lastSevenDays.push(moment(now).subtract(i, 'days').format('DD/MM'));
lastSevenDays.push(moment(now).subtract(i, 'days').format('MM/DD'));
}
console.log('lastSevenDays', lastSevenDays)
option['xAxis']['data'] = lastSevenDays.reverse()
......
......@@ -16,7 +16,7 @@ declare module '@antv/data-set';
declare module 'mockjs';
declare module 'react-fittext';
declare module 'bizcharts-plugin-slider';
declare var plus: any;
// preview.pro.ant.design only do not use in your production ;
// preview.pro.ant.design Dedicated environment variable, please do not use it in your project.
declare let ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: 'site' | undefined;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment