- add EventEmmitter for directly binding Events to component

- add NotificationToast for messages
- add leaflet map component and zoom control component
- change focus:ring to focus:ring-2 inside BaseButton
-  `@tailwindcss/line-clamp` plugin is now included by default...remove it from tailwind.config.js
- npm updates
This commit is contained in:
Kaimbacher 2023-03-31 14:54:15 +02:00
parent 080c21126b
commit cd66f318b6
22 changed files with 1063 additions and 292 deletions

View file

@ -28,6 +28,10 @@ const props = defineProps({
type: [String, Number, Boolean],
default: null,
},
deleteId: {
type: Number,
default: null
}
});
const emit = defineEmits(['update:modelValue', 'cancel', 'confirm']);
@ -37,9 +41,15 @@ const value = computed({
set: (value) => emit('update:modelValue', value),
});
// mode = cancel or confirm
const confirmCancel = (mode) => {
value.value = false;
emit(mode);
value.value = false;//close
if (props.deleteId){
emit(mode, props.deleteId);
} else {
emit(mode);
}
};
const confirm = () => confirmCancel('confirm');