@umijs/plugins 4.0.0-beta.14 → 4.0.0-beta.15

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 +6 -2
  2. package/package.json +3 -3
package/dist/layout.js CHANGED
@@ -154,9 +154,13 @@ export default () => {
154
154
  const { icon } = api.appData.routes[id];
155
155
  if (icon) {
156
156
  const upperIcon = plugin_utils_1.lodash.upperFirst(plugin_utils_1.lodash.camelCase(icon));
157
+ (0, assert_1.default)(
157
158
  // @ts-ignore
158
- (0, assert_1.default)(allIcons[upperIcon], `Icon ${upperIcon} is not found`);
159
- memo[upperIcon] = true;
159
+ allIcons[upperIcon] || allIcons[`${upperIcon}Outlined`], `Icon ${upperIcon} is not found`);
160
+ // @ts-ignore
161
+ if (allIcons[upperIcon]) {
162
+ memo[upperIcon] = true;
163
+ }
160
164
  // @ts-ignore
161
165
  if (allIcons[`${upperIcon}Outlined`]) {
162
166
  memo[`${upperIcon}Outlined`] = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/plugins",
3
- "version": "4.0.0-beta.14",
3
+ "version": "4.0.0-beta.15",
4
4
  "description": "@umijs/plugins",
5
5
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/plugins#readme",
6
6
  "bugs": "https://github.com/umijs/umi-next/issues",
@@ -24,7 +24,7 @@
24
24
  "@ahooksjs/use-request": "^2.0.0",
25
25
  "@ant-design/icons": "^4.7.0",
26
26
  "@ant-design/pro-layout": "^6.31.7",
27
- "@umijs/bundler-utils": "4.0.0-beta.14",
27
+ "@umijs/bundler-utils": "4.0.0-beta.15",
28
28
  "antd": "^4.17.3",
29
29
  "antd-dayjs-webpack-plugin": "^1.0.6",
30
30
  "axios": "^0.24.0",
@@ -42,7 +42,7 @@
42
42
  "warning": "^4.0.3"
43
43
  },
44
44
  "devDependencies": {
45
- "umi": "4.0.0-beta.14"
45
+ "umi": "4.0.0-beta.15"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public"