mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-09-22 11:36:37 +08:00
Merge branch 'main' into example
This commit is contained in:
commit
a9b3a961af
@ -146,6 +146,10 @@ export function useEcharts<T extends ECOption>(optionsFactory: () => T, hooks: C
|
|||||||
await onUpdated?.(chart!);
|
await onUpdated?.(chart!);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setOptions(options: T) {
|
||||||
|
chart?.setOption(options);
|
||||||
|
}
|
||||||
|
|
||||||
/** render chart */
|
/** render chart */
|
||||||
async function render() {
|
async function render() {
|
||||||
if (!isRendered()) {
|
if (!isRendered()) {
|
||||||
@ -225,6 +229,7 @@ export function useEcharts<T extends ECOption>(optionsFactory: () => T, hooks: C
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
domRef,
|
domRef,
|
||||||
updateOptions
|
updateOptions,
|
||||||
|
setOptions
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user