- Added Slider component to the UI library - Added Checkbox component to the UI library - Added Textarea component to the UI library
17 lines
419 B
TypeScript
17 lines
419 B
TypeScript
export const useCommandPaletteStore = defineStore('command-palette', () => {
|
|
const isCommandPaletteOpen = ref(false);
|
|
|
|
return {
|
|
isCommandPaletteOpen,
|
|
toggleCommandPalette() {
|
|
isCommandPaletteOpen.value = !isCommandPaletteOpen.value;
|
|
},
|
|
closeCommandPalette() {
|
|
isCommandPaletteOpen.value = false;
|
|
},
|
|
openCommandPalette() {
|
|
isCommandPaletteOpen.value = true;
|
|
},
|
|
};
|
|
});
|