Add:Podcast create form #225

This commit is contained in:
advplyr 2022-12-08 17:54:56 -06:00
parent 705bbaccc1
commit 379fa21571
8 changed files with 582 additions and 12 deletions

View file

@ -0,0 +1,53 @@
<template>
<textarea ref="input" v-model="inputValue" :rows="rows" :readonly="readonly" :disabled="disabled" :placeholder="placeholder" class="py-2 px-3 rounded bg-primary text-gray-200 focus:border-gray-500 focus:outline-none" :class="transparent ? '' : 'border border-gray-600'" @change="change" />
</template>
<script>
export default {
props: {
value: [String, Number],
placeholder: String,
readonly: Boolean,
rows: {
type: Number,
default: 2
},
transparent: Boolean,
disabled: Boolean
},
data() {
return {}
},
computed: {
inputValue: {
get() {
return this.value
},
set(val) {
this.$emit('input', val)
}
}
},
methods: {
change(e) {
this.$emit('change', e.target.value)
},
blur() {
if (this.$refs.input && this.$refs.input.blur) {
this.$refs.input.blur()
}
}
},
mounted() {}
}
</script>
<style scoped>
textarea {
border-style: inherit !important;
}
textarea:read-only {
color: #aaa;
background-color: #444;
}
</style>