mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
feat: add chart
This commit is contained in:
@@ -34,14 +34,12 @@
|
||||
import { computed, reactive, ref } from 'vue'
|
||||
import { useI18n } from 'vue-i18n'
|
||||
const dialogShow = ref(false)
|
||||
const curDvType = ref('dashboard')
|
||||
const { t } = useI18n()
|
||||
const selectComponentCount = computed(() => Object.keys(state.curMultiplexingComponents).length)
|
||||
const state = reactive({
|
||||
curMultiplexingComponents: {},
|
||||
})
|
||||
const dialogInit = (dvType = 'dashboard') => {
|
||||
curDvType.value = dvType
|
||||
const dialogInit = () => {
|
||||
dialogShow.value = true
|
||||
state.curMultiplexingComponents = {}
|
||||
}
|
||||
|
||||
@@ -23,8 +23,10 @@ const snapshotStore = snapshotStoreWithOut()
|
||||
const { snapshotIndex } = storeToRefs(snapshotStore)
|
||||
const emits = defineEmits(['addComponent'])
|
||||
const resourceGroupOptRef = ref(null)
|
||||
const chatChartSelectionRef = ref(null)
|
||||
const openViewDialog = () => {
|
||||
// do addComponent
|
||||
// @ts-expect-error @typescript-eslint/ban-ts-comment
|
||||
chatChartSelectionRef.value?.dialogInit()
|
||||
}
|
||||
|
||||
let nameEdit = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user