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
type: Data Display
title: Description List
title: Descriptions
cols: 1
---

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

Loading…
Cancel
Save