ลบ component สมัครที่ไม่ใช้

This commit is contained in:
Kittapath 2023-03-30 22:37:24 +07:00
parent abe8e9186c
commit 98738aa814
14 changed files with 20 additions and 697 deletions

View file

@ -6,7 +6,6 @@
icon="mdi-file-document"
:addData="true"
:editOnly="true"
:cancel="cancelData"
:editData="status == 'register' || status == 'rejectRegister'"
/>
@ -64,26 +63,9 @@ import { onMounted, ref, watch } from 'vue'
import HeaderTop from '@/components/top.vue'
const props = defineProps({
loader: {
// main refresh data
type: Boolean,
required: true
},
statusEdit: {
type: Boolean,
required: true
},
notiNoEdit: {
type: Function,
default: () => console.log('not function')
},
status: {
type: String,
required: true
},
btnSave: {
type: Boolean,
required: true
}
})
@ -103,15 +85,7 @@ const files = ref<any>([
sizeLabel: '89MB'
}
])
const emit = defineEmits(['update:loader', 'update:statusEdit'])
// watch(props, async (count: any, prevCount: any) => {
// if (props.btnSave == true) await saveData()
// })
watch(edit, (count: boolean, prevCount: boolean) => {
emit('update:statusEdit', count)
})
const emit = defineEmits(['update:loader'])
onMounted(async () => {})
@ -122,6 +96,4 @@ const fileUpload = async (file: any) => {
method: 'POST'
}
}
const cancelData = () => {}
</script>