diff --git a/.dumi/theme/builtins/ComponentMeta/index.tsx b/.dumi/theme/builtins/ComponentMeta/index.tsx index 7b891497b0..06e7ec51fc 100644 --- a/.dumi/theme/builtins/ComponentMeta/index.tsx +++ b/.dumi/theme/builtins/ComponentMeta/index.tsx @@ -116,12 +116,21 @@ const ComponentMeta: React.FC = (props) => { return [source, source]; }, [component, source]); + const transformComponentName = (componentName: string) => { + if (componentName === 'Notifiction' || componentName === 'Message') { + return componentName.toLowerCase(); + } + return componentName; + }; + // ======================== Render ======================== const importList = [ import , - {`{ ${component} }`}, + {`{ ${transformComponentName( + component, + )} }`}, from ,