doc: copy icon #4389 (#4911)

1.x
zkwolf 2021-11-26 21:34:24 +08:00 committed by tangjinzhou
parent 773ca392d8
commit 80da77aee0
1 changed files with 7 additions and 8 deletions

View File

@ -20,14 +20,13 @@ export default {
'a-badge': Badge, 'a-badge': Badge,
}, },
props: ['type', 'isNew', 'theme', 'justCopied'], props: ['type', 'isNew', 'theme', 'justCopied'],
data() { computed: {
const { type, theme } = this; text() {
return { const { type, theme } = this;
text: return theme === 'outlined'
theme === 'outlined' ? `<a-icon type="${type}" />`
? `<a-icon type="${type}" />` : `<a-icon type="${type}" theme="${theme}" />`;
: `<a-icon type="${type}" theme="${theme}" />`, },
};
}, },
methods: { methods: {
onCopied() { onCopied() {