버튼 간격 수정 및 비밀번호입력창 추가

This commit is contained in:
nevermoregb 2025-03-06 12:21:50 +09:00
parent 6ac3d587f8
commit d74c0ddacb
2 changed files with 644 additions and 646 deletions

View File

@ -1,30 +1,30 @@
<template>
<button class="btn btn-label-primary btn-icon" @click="toggleText">
<i :class="buttonClass"></i>
<button class="btn btn-label-primary btn-icon me-1" @click="toggleText">
<i :class="buttonClass"></i>
</button>
</template>
<script setup>
import { ref, defineProps } from 'vue';
import { ref, defineProps } from 'vue';
const props = defineProps({
isToggleEnabled: {
type: Boolean,
default: false,
},
});
const props = defineProps({
isToggleEnabled: {
type: Boolean,
default: false,
},
});
const buttonClass = ref("bx bx-edit-alt");
const buttonClass = ref('bx bx-edit-alt');
const toggleText = () => {
if (props.isToggleEnabled) {
buttonClass.value = buttonClass.value === "bx bx-edit-alt" ? "bx bx-x" : "bx bx-edit-alt";
}
};
const toggleText = () => {
if (props.isToggleEnabled) {
buttonClass.value = buttonClass.value === 'bx bx-edit-alt' ? 'bx bx-x' : 'bx bx-edit-alt';
}
};
const resetButton = () => {
buttonClass.value = "bx bx-edit-alt";
};
const resetButton = () => {
buttonClass.value = 'bx bx-edit-alt';
};
defineExpose({ resetButton });
defineExpose({ resetButton });
</script>

File diff suppressed because it is too large Load Diff