chore: make some improvement (#8255)

* chore: make some improvement

* chore: upd
This commit is contained in:
neverland
2021-03-03 17:13:45 +08:00
committed by GitHub
parent 2d8914c2c8
commit d606b32c64
7 changed files with 21 additions and 16 deletions
+6 -2
View File
@@ -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 && (