generated from tpl/obsidian-sample-plugin
			Rename Field to Property in PropertySuggest
This commit is contained in:
		
							parent
							
								
									5164298bcc
								
							
						
					
					
						commit
						f8e544d381
					
				| 
						 | 
				
			
			@ -1,5 +1,5 @@
 | 
			
		|||
<script module lang="ts">
 | 
			
		||||
	export type Field = {
 | 
			
		||||
	export type Property = {
 | 
			
		||||
		name: string;
 | 
			
		||||
		type: string;
 | 
			
		||||
	};
 | 
			
		||||
| 
						 | 
				
			
			@ -13,10 +13,10 @@
 | 
			
		|||
		app: App;
 | 
			
		||||
		id: string;
 | 
			
		||||
		asString?: boolean;
 | 
			
		||||
		value?: Field | string;
 | 
			
		||||
		value?: Property | string;
 | 
			
		||||
		accepts?: string[];
 | 
			
		||||
		disabled?: boolean;
 | 
			
		||||
		onSelected?: (fieldOrName: Field | string) => void;
 | 
			
		||||
		onSelected?: (propertyOrName: Property | string) => void;
 | 
			
		||||
	};
 | 
			
		||||
 | 
			
		||||
	let {
 | 
			
		||||
| 
						 | 
				
			
			@ -29,7 +29,7 @@
 | 
			
		|||
		onSelected,
 | 
			
		||||
	}: Props = $props();
 | 
			
		||||
 | 
			
		||||
	let items: Item<Field | string>[] = $state([]);
 | 
			
		||||
	let items: Item<Property | string>[] = $state([]);
 | 
			
		||||
 | 
			
		||||
	async function handleChange(query: string) {
 | 
			
		||||
		const typesContent = await app.vault.adapter.read(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue