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,
},
props: ['type', 'isNew', 'theme', 'justCopied'],
data() {
const { type, theme } = this;
return {
text:
theme === 'outlined'
? `<a-icon type="${type}" />`
: `<a-icon type="${type}" theme="${theme}" />`,
};
computed: {
text() {
const { type, theme } = this;
return theme === 'outlined'
? `<a-icon type="${type}" />`
: `<a-icon type="${type}" theme="${theme}" />`;
},
},
methods: {
onCopied() {