@umijs/plugins 4.0.0-canary.20230217.1 → 4.0.0-canary.20230223.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/layout.js +3 -3
  2. package/package.json +3 -3
package/dist/layout.js CHANGED
@@ -318,7 +318,7 @@ const { formatMessage } = useIntl();
318
318
  unAccessible?: JSX.Element;
319
319
  noFound?: JSX.Element;
320
320
  logout?: (initialState: InitDataType['initialState']) => Promise<void> | void;
321
- rightContentRender?: (
321
+ rightContentRender?: ((
322
322
  headerProps: HeaderProps,
323
323
  dom: JSX.Element,
324
324
  props: {
@@ -328,7 +328,7 @@ const { formatMessage } = useIntl();
328
328
  initialState: InitDataType['initialState'];
329
329
  setInitialState: InitDataType['setInitialState'];
330
330
  },
331
- ) => JSX.Element;
331
+ ) => JSX.Element) | false;
332
332
  rightRender?: (
333
333
  initialState: InitDataType['initialState'],
334
334
  setInitialState: InitDataType['setInitialState'],
@@ -399,7 +399,7 @@ export function patchRoutes({ routes }) {
399
399
  const rightRenderContent = `
400
400
  import React from 'react';
401
401
  import { Avatar, version, Dropdown, Menu, Spin } from 'antd';
402
- import { LogoutOutlined } from '@ant-design/icons';
402
+ import { LogoutOutlined } from '${antIconsPath}';
403
403
  {{#Locale}}
404
404
  import { SelectLang } from '@@/plugin-locale';
405
405
  {{/Locale}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugins",
3
- "version": "4.0.0-canary.20230217.1",
3
+ "version": "4.0.0-canary.20230223.1",
4
4
  "description": "@umijs/plugins",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/plugins#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -29,7 +29,7 @@
29
29
  "@ant-design/pro-components": "^2.0.1",
30
30
  "@tanstack/react-query": "^4.22.0",
31
31
  "@tanstack/react-query-devtools": "^4.22.0",
32
- "@umijs/bundler-utils": "4.0.0-canary.20230217.1",
32
+ "@umijs/bundler-utils": "4.0.0-canary.20230223.1",
33
33
  "@umijs/valtio": "^1.0.3",
34
34
  "antd-dayjs-webpack-plugin": "^1.0.6",
35
35
  "axios": "^0.27.2",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "antd": "^4.24.1",
56
- "umi": "4.0.0-canary.20230217.1"
56
+ "umi": "4.0.0-canary.20230223.1"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"