1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

add default table in hint options

This commit is contained in:
lana-k
2021-05-02 14:04:46 +02:00
parent 7a39e905b9
commit 5d6280abec
2 changed files with 37 additions and 0 deletions

View File

@@ -25,6 +25,10 @@ const hintOptions = {
}
return tables
},
get defaultTable () {
const schema = store.state.schema
return schema.length === 1 ? schema[0].name : null
},
completeSingle: false,
completeOnSingleClick: true,
alignWithWord: false