Skip to content

Commit

Permalink
chore: update min vue version to 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Jan 21, 2025
1 parent 162c9a9 commit 3746888
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"yargs": "^17.5.1"
},
"peerDependencies": {
"vue": "^3.0.4"
"vue": "^3.5.0"
},
"lint-staged": {
"*.{js,ts}": [
Expand Down
12 changes: 3 additions & 9 deletions packages/ui/src/composables/std/internal/useComponentUuid.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import { getCurrentInstance, onBeforeMount } from 'vue'
import { useAppGlobal } from './useAppGlobal'
import { useId } from 'vue'

// TODO: Replace with `useId` from Vue
export const useComponentUuid = () => {
const vm = getCurrentInstance()! as any
const id = useId()

const counter = useAppGlobal('uuidCounter', 0)

vm.$vaUuid = vm.$vaUuid || `va-${counter.value++}`

return `va-${counter.value}`
return `va-${id}`
}

0 comments on commit 3746888

Please sign in to comment.