Scenario system & point editor rework

This commit is contained in:
ThePetrovich 2025-07-05 23:04:29 +08:00
parent 7d01fce094
commit 19f969c18c
13 changed files with 1010 additions and 694 deletions

View file

@ -11,6 +11,7 @@
searchPlaceholder?: string;
disabled?: boolean;
class?: string;
onChange?: (value: any) => void;
}
let {
@ -74,6 +75,9 @@
isOpen = false;
searchTerm = '';
dispatch('change', selected);
if (restProps.onChange) {
restProps.onChange(selected);
}
}
function handleClickOutside(event: MouseEvent) {
@ -129,7 +133,7 @@
{#each filteredOptions as option}
<button
type="button"
class="dropdown-item "
class="dropdown-item small"
class:active={option.value === selected}
onclick={(e) => {
e.stopPropagation();