Update public API syntax of remote (lazy) widgets (#2477)

Co-authored-by: huchenlei <huchenlei@proton.me>
This commit is contained in:
bymyself
2025-02-09 10:41:14 -07:00
committed by GitHub
parent 83cc49a42b
commit eeb1c34ada
6 changed files with 30 additions and 28 deletions

View File

@@ -53,7 +53,7 @@ export const useWidgetStore = defineStore('widget', () => {
if (props.default) return props.default
if (widgetType === 'COMBO' && props.options?.length) return props.options[0]
if (props.type === 'remote') return 'Loading...'
if (props.remote) return 'Loading...'
return undefined
}