49 lines
968 B
Vue
49 lines
968 B
Vue
<template>
|
|
<div class="container-fluid">
|
|
<form @submit.prevent="save">
|
|
<div class="form-group row">
|
|
<div class="col">
|
|
<textarea
|
|
class="form-control"
|
|
id="exampleFormControlTextarea1"
|
|
style="resize: none; padding: 20px"
|
|
rows="8"
|
|
v-model="myText"
|
|
></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col d-flex justify-content-end">
|
|
<button type="submit" class="btn btn-primary">شروع پردازش</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
props: {
|
|
// selectedText: {
|
|
// default: null,
|
|
// },
|
|
},
|
|
emits: ["close", "save"],
|
|
data() {
|
|
return {
|
|
myText: null,
|
|
};
|
|
},
|
|
methods: {
|
|
close() {
|
|
this.$emit("close");
|
|
},
|
|
save() {
|
|
this.$emit("save", this.myText);
|
|
},
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style scoped></style>
|