Scenario system & point editor rework
This commit is contained in:
parent
7d01fce094
commit
19f969c18c
13 changed files with 1010 additions and 694 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue