docs: 📝 Description List => Descriptions (#20316)

* chore: 📝 Description List => Descriptions

* Update index.en-US.md
pull/20332/head
偏右 5 years ago committed by GitHub
parent cc8ab225cc
commit 930ad2eb40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,7 +1,7 @@
--- ---
category: Components category: Components
type: Data Display type: Data Display
title: Description List title: Descriptions
cols: 1 cols: 1
--- ---

@ -34,14 +34,10 @@ describe('site test', () => {
}); });
return resp; return resp;
}; };
const handleComponentName = name => { const handleComponentName = name => {
const componentMap = { const componentName = name.split('/')[1];
descriptions: 'description list', return componentName.toLowerCase().replace('-', '');
};
// eslint-disable-next-line no-unused-vars
const [_, componentName] = name.split('/');
const compName = componentName.toLowerCase().replace('-', '');
return componentMap[compName] || compName;
}; };
const expectComponent = async component => { const expectComponent = async component => {

Loading…
Cancel
Save