Сделал копирование, почистил репо, перешёл на версию 1.0.0
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<template>
|
||||
<div class="generator-actions">
|
||||
<el-button type="primary" native-type="submit" size="large">
|
||||
<el-icon class="btn-icon"><RefreshRight /></el-icon>
|
||||
{{ t('common.generate') }}
|
||||
</el-button>
|
||||
<el-button size="large" :disabled="!hasResult" @click.prevent="$emit('copy')">
|
||||
<el-icon class="btn-icon"><DocumentCopy /></el-icon>
|
||||
{{ t('common.copy') }}
|
||||
</el-button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { RefreshRight, DocumentCopy } from '@element-plus/icons-vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
|
||||
export default {
|
||||
name: 'GeneratorActions',
|
||||
components: {
|
||||
RefreshRight,
|
||||
DocumentCopy
|
||||
},
|
||||
props: {
|
||||
hasResult: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
emits: ['copy'],
|
||||
setup() {
|
||||
const { t } = useI18n()
|
||||
return { t }
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
.generator-actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.btn-icon {
|
||||
margin-right: 0.35rem;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user