Files
sk_fems_ui/components/common/input/InputRmrk.vue
2025-07-12 15:13:46 +09:00

83 lines
1.4 KiB
Vue

<template>
<v-row class="search-box" align="center" no-gutters>
<v-col v-if="label" :cols="labelCols">
<label for="" class="search-box-label">
<v-icon x-small color="primary" class="mr-1">mdi-record-circle</v-icon>
{{ label }}
</label>
</v-col>
<v-col :cols="label ? textCols : ''">
<v-textarea
v-model="InputValue"
class="v-input__custom"
:disabled="disabled"
></v-textarea>
</v-col>
</v-row>
</template>
<script>
import { mapState, mapMutations } from 'vuex';
export default {
props: {
parentPrgmId: {
type: String,
require: true,
},
diffModel: {
type: String,
require: false,
},
label: {
type: String,
require: true,
default: '비고',
},
valueNm: {
type: String,
require: true,
},
disabled: {
type: Boolean,
require: false,
default: false,
},
labelCols: {
type: Number,
require: false,
default: 4,
},
textCols: {
type: Number,
require: false,
default: 7,
},
},
data() {
return {};
},
computed: {
...mapState({
searchParam: state => state.pageData,
menuData: 'menuData',
}),
InputValue: {
get() {
return this.searchParam[this.parentPrgmId][this.valueNm];
},
set(value) {
if (!this.diffModel) {
return this.setPageData({ [this.valueNm]: value });
}
},
},
},
created() {},
methods: {
...mapMutations({ setPageData: 'setPageData' }),
},
};
</script>
<style></style>