Сделал копирование, почистил репо, перешёл на версию 1.0.0

This commit is contained in:
Ilia Miheev
2026-08-02 21:19:21 +03:00
parent 54b912c900
commit d475ed775b
15 changed files with 277 additions and 64 deletions
+48
View File
@@ -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>