parent
773ca392d8
commit
80da77aee0
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue