Files
sk_fems_ui/components/common/button/ActionButtons.vue
Nguyen Van Luan/(Nguyen Van Luan)/현장대리인/SK 5735777bb1 fixbug
2025-08-04 18:53:30 +09:00

45 lines
899 B
Vue

<template>
<div class="d-flex flex-row justify-center align-center" 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>