Skip to content

Commit

Permalink
chore: rename
Browse files Browse the repository at this point in the history
Co-authored-by: MadCcc <[email protected]>
  • Loading branch information
Wxh16144 and MadCcc committed Sep 11, 2023
1 parent eace031 commit dafdeb0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/plugins/src/antd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export default (api: IApi) => {
* @**umi-issue:** https://github.com/umijs/umi/issues/10231
* @**antd-PR:** https://github.com/ant-design/ant-design/pull/29285
*/
hasRefactorStaticConfig: semver.gte(antdVersion, '4.13.0'),
disableInternalStatic: semver.gt(antdVersion, '4.13.0'),
},
tplPath: winPath(join(ANTD_TEMPLATES_DIR, 'runtime.ts.tpl')),
});
Expand Down
12 changes: 6 additions & 6 deletions packages/plugins/templates/antd/runtime.ts.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import {
{{#appConfig}}
App,
{{/appConfig}}
{{^hasRefactorStaticConfig}}
{{^disableInternalStatic}}
Modal,
message,
notification,
{{/hasRefactorStaticConfig}}
{{/disableInternalStatic}}
{{#enableV5ThemeAlgorithm}}
theme,
{{/enableV5ThemeAlgorithm}}
Expand Down Expand Up @@ -52,7 +52,7 @@ export function rootContainer(rawContainer) {
let container = rawContainer;

{{#configProvider}}
{{^hasRefactorStaticConfig}}
{{^disableInternalStatic}}
if (finalConfigProvider.prefixCls) {
Modal.config({
rootPrefixCls: finalConfigProvider.prefixCls
Expand All @@ -64,15 +64,15 @@ export function rootContainer(rawContainer) {
prefixCls: `${finalConfigProvider.prefixCls}-notification`
});
}
{{/hasRefactorStaticConfig}}
{{/disableInternalStatic}}

{{#hasRefactorStaticConfig}}
{{#disableInternalStatic}}
if (finalConfigProvider.prefixCls) {
ConfigProvider.config({
prefixCls: finalConfigProvider.prefixCls,
});
};
{{/hasRefactorStaticConfig}}
{{/disableInternalStatic}}

if (finalConfigProvider.iconPrefixCls) {
// Icons in message need to set iconPrefixCls via ConfigProvider.config()
Expand Down
6 changes: 3 additions & 3 deletions packages/umi/client/client/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
import _createClass from "@babel/runtime/helpers/esm/createClass";
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
import { assert, compose, isPromiseLike } from "./utils";
export var ApplyPluginsType;
(function (ApplyPluginsType) {
export var ApplyPluginsType = /*#__PURE__*/function (ApplyPluginsType) {
ApplyPluginsType["compose"] = "compose";
ApplyPluginsType["modify"] = "modify";
ApplyPluginsType["event"] = "event";
})(ApplyPluginsType || (ApplyPluginsType = {}));
return ApplyPluginsType;
}({});
export var PluginManager = /*#__PURE__*/function () {
function PluginManager(opts) {
_classCallCheck(this, PluginManager);
Expand Down

0 comments on commit dafdeb0

Please sign in to comment.