feat: set config

This commit is contained in:
Qiuxia Fan
2022-01-06 22:30:22 +08:00
parent f19b69d050
commit e72368b6fc
10 changed files with 134 additions and 38 deletions

View File

@@ -16,7 +16,7 @@ limitations under the License. -->
<Graph :option="option" />
</template>
<script lang="ts" setup>
import { defineProps, ref, computed } from "vue";
import { defineProps, computed } from "vue";
import type { PropType } from "vue";
const props = defineProps({
@@ -26,8 +26,6 @@ const props = defineProps({
},
theme: { type: String, default: "dark" },
});
/*global Nullable */
const chart = ref<Nullable<HTMLElement>>(null);
const option = computed(() => getOption());
function getOption() {
return {