mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-10-28 03:25:02 +08:00
docs: fix typo in sample code
This commit is contained in:
@ -4,6 +4,7 @@ import {
|
||||
ref,
|
||||
unref,
|
||||
shallowRef,
|
||||
toRef,
|
||||
toRefs,
|
||||
watch,
|
||||
computed,
|
||||
@ -77,7 +78,9 @@ export default defineComponent({
|
||||
() => props.updateOptions || unref(defaultUpdateOptions) || {}
|
||||
);
|
||||
|
||||
const { autoresize, manualUpdate, loading, loadingOptions } = toRefs(props);
|
||||
const { autoresize, manualUpdate, loading } = toRefs(props);
|
||||
const loadingOptions = toRef(props, "loadingOptions");
|
||||
const a = toRef(props, "autoresize");
|
||||
|
||||
function init(option?: Option) {
|
||||
if (chart.value || !root.value) {
|
||||
|
||||
@ -6,7 +6,7 @@ export const LOADING_OPTIONS_KEY = "ecLoadingOptions";
|
||||
export function useLoading(
|
||||
chart: Ref<EChartsType | undefined>,
|
||||
loading: Ref<boolean>,
|
||||
loadingOptions?: Ref<object | undefined>
|
||||
loadingOptions: Ref<object | undefined>
|
||||
): void {
|
||||
const defaultLoadingOptions = inject(LOADING_OPTIONS_KEY, {}) as
|
||||
| object
|
||||
|
||||
Reference in New Issue
Block a user