Add Workspace.SearchBox.Toggle command (#1814)

* Add Workspace.SearchBox.Toggle command

* Update locales [skip ci]

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2024-12-05 12:30:02 -08:00
committed by GitHub
parent 55c04b5533
commit e2fa1e65d1
7 changed files with 41 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
import { defineStore } from 'pinia'
import { ref } from 'vue'
export const useSearchBoxStore = defineStore('searchBox', () => {
const visible = ref(false)
function toggleVisible() {
visible.value = !visible.value
}
return {
visible,
toggleVisible
}
})