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

* chore: 📝 Description List => Descriptions

* Update index.en-US.md
This commit is contained in:
偏右 2019-12-18 12:09:05 +08:00 committed by GitHub
parent cc8ab225cc
commit 930ad2eb40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 8 deletions

View File

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

View File

@ -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 => {