chore: make some improvement (#8255)
* chore: make some improvement * chore: upd
This commit is contained in:
+6
-2
@@ -48,9 +48,13 @@ export default createComponent({
|
||||
const renderTag = () => {
|
||||
const { type, mark, plain, round, size, closeable } = props;
|
||||
|
||||
const classes: Record<string, boolean> = { mark, plain, round };
|
||||
const classes: Record<string, unknown> = {
|
||||
mark,
|
||||
plain,
|
||||
round,
|
||||
};
|
||||
if (size) {
|
||||
classes[size] = !!size;
|
||||
classes[size] = size;
|
||||
}
|
||||
|
||||
const CloseIcon = closeable && (
|
||||
|
||||
Reference in New Issue
Block a user