You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
617 B
26 lines
617 B
<template>
|
|
<div @click="openDrawer(true)">
|
|
<Icon icon="ion:settings-outline" />
|
|
<SettingDrawer @register="register" />
|
|
</div>
|
|
</template>
|
|
<script lang="ts">
|
|
import { defineComponent } from 'vue';
|
|
import SettingDrawer from './SettingDrawer';
|
|
import Icon from '@/components/Icon/Icon.vue';
|
|
|
|
import { useDrawer } from '/@/components/Drawer';
|
|
|
|
export default defineComponent({
|
|
name: 'SettingButton',
|
|
components: { SettingDrawer, Icon },
|
|
setup() {
|
|
const [register, { openDrawer }] = useDrawer();
|
|
|
|
return {
|
|
register,
|
|
openDrawer,
|
|
};
|
|
},
|
|
});
|
|
</script>
|
|
|