ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.12k stars 14.64k forks source link

[Feature Request] Inconsistent type naming for Alert and Tag components #18156

Open aiingstan opened 4 years ago

aiingstan commented 4 years ago

Existing Component

Yes

Component Name

Alert, Tag

Description

Hi, Element UI provides multiple type value options for both Tag and Alert components, i.e. success, info, warning. However, the type value for error context is inconsistent. For Tag it's called danger and for Alert it's called error. This causes a little trouble when creating a filter function because the filter function will need to return different values for the same status to represent error context. Could we consider provide a type alias feature so that those two components will be compatible with receiving both error and danger as prop type value?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

aiingstan commented 3 years ago

Looking at the latest doc - 2.14.1, still the same.

lqzhgood commented 2 years ago

agree +1