feat(combobox): add data:string slot
This commit is contained in:
parent
66f94722fb
commit
f0168d1470
1 changed files with 3 additions and 0 deletions
|
@ -296,6 +296,9 @@ export class ComboboxUI implements EventListenerObject {
|
|||
case 'label':
|
||||
input.value = this.#input.value;
|
||||
break;
|
||||
case 'data:string':
|
||||
input.value = data ? String(data) : '';
|
||||
break;
|
||||
case 'data':
|
||||
input.value = data ? JSON.stringify(data) : '';
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue