FilenameOption.vue 620 B

12345678910111213141516171819202122232425262728
  1. <template>
  2. <div style="display:inline-block;">
  3. <!-- $t is vue-i18n global function to translate lang -->
  4. <label class="radio-label" style="padding-left:0;">Filename: </label>
  5. <el-input v-model="filename" :placeholder="$t('excel.placeholder')" style="width:350px;" prefix-icon="el-icon-document" />
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. props: {
  11. value: {
  12. type: String,
  13. default: ''
  14. }
  15. },
  16. computed: {
  17. filename: {
  18. get() {
  19. return this.value
  20. },
  21. set(val) {
  22. this.$emit('input', val)
  23. }
  24. }
  25. }
  26. }
  27. </script>