Files
sk_fems_ui/components/common/button/ActionButtons.vue
Tran Van Dung/(Tran Van Dung)/현장대리인/SK 4a7077336d resolve confict
2025-08-06 09:26:53 +07:00

47 lines
960 B
Vue

<template>
<div class="d-flex justify-center align-center"
:class="directionBtn === 'vertically'?'flex-row':'flex-column'"
style="gap: 12px">
<a-button @click="btnActionsFnc('removeRightToLeft')" type="primary" ghost :icon="icons.remove" >
</a-button>
<a-button @click="btnActionsFnc('addLeftToRight')" type="primary" ghost :icon="icons.add">
</a-button>
</div>
</template>
<script>
export default {
props: {
parentPrgmId: {
type: String,
require: true,
},
leftGridName: {
type: String,
require: true,
},
rightGridName: {
type: String,
required: true,
},
btnActionsFnc: {
type: Function,
required: true,
},
directionBtn: {
type: String,
default: "horizontally" //horizontally, vertically.
}
},
computed: {
icons() {
return this.directionBtn === "vertically"
? { remove: "up", add: "down" }
: { remove: "left", add: "right" };
},
},
data() {
return {};
},
};
</script>