Skip to content

Commit

Permalink
feat(core): composables add useNoti
Browse files Browse the repository at this point in the history
  • Loading branch information
Rock070 committed Aug 22, 2023
1 parent 9634caf commit ac8584d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions packages/core/src/composables/useNoti.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export function useNoti() {
// eslint-disable-next-line no-console
console.log('useNoti run')
}
6 changes: 1 addition & 5 deletions packages/core/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
const test = 'hello world'

export default {
test,
}
export * from './composables/useNoti'
4 changes: 4 additions & 0 deletions playground/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<script setup lang="ts">
import { useNoti } from '@vue3-noti/core'
import HelloWorld from './components/HelloWorld.vue'
useNoti()
</script>

<template>
Expand Down

0 comments on commit ac8584d

Please sign in to comment.