Skip to content

Commit 57c2620

Browse files
Merge pull request #139 from xiaoluoboding/feat/2_0_7
chore: new version v2.0.7
2 parents e4faada + 5ec4bca commit 57c2620

File tree

13 files changed

+3728
-2246
lines changed

13 files changed

+3728
-2246
lines changed

app/components/HeadlessToastWithProps.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ defineProps<{ message: string }>()
33
</script>
44

55
<template>
6-
<div v-html="message" />
6+
<div v-html="message" />
77
</template>

app/components/Others.vue

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,36 @@ toast.warning(markRaw(HeadlessToastWithProps), {
154154
}
155155
})
156156
}
157-
}
157+
},
158+
{
159+
name: 'Four Positions',
160+
snippet: `// Show toasts in both positions
161+
toast.success('Top Right', { position: 'top-right' })
162+
toast.success('Bottom Right', { position: 'bottom-right' })
163+
`,
164+
action: () => {
165+
toast.success('Top Right', {
166+
closeButton: true,
167+
position: 'top-right',
168+
duration: 30000
169+
})
170+
toast.success('Bottom Right', {
171+
closeButton: true,
172+
position: 'bottom-right',
173+
duration: 30000
174+
})
175+
toast.success('Top Left', {
176+
closeButton: true,
177+
position: 'top-left',
178+
duration: 30000
179+
})
180+
toast.success('Bottom Left', {
181+
closeButton: true,
182+
position: 'bottom-left',
183+
duration: 30000
184+
})
185+
}
186+
},
158187
]
159188
160189
const activeType = ref(allTypes[0])

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,30 +56,30 @@
5656
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0"
5757
},
5858
"devDependencies": {
59-
"@iconify/json": "^2.2.172",
60-
"@nuxt/devtools": "^2.4.1",
61-
"@nuxt/kit": "^3.17.3",
62-
"@nuxt/module-builder": "^1.0.1",
63-
"@nuxt/schema": "^3.17.3",
64-
"@nuxt/test-utils": "^3.19.0",
59+
"@iconify/json": "^2.2.375",
60+
"@nuxt/devtools": "^2.6.2",
61+
"@nuxt/kit": "^3.18.1",
62+
"@nuxt/module-builder": "^1.0.2",
63+
"@nuxt/schema": "^3.18.1",
64+
"@nuxt/test-utils": "^3.19.2",
6565
"@senojs/rollup-plugin-style-inject": "^0.2.3",
66-
"@types/node": "^20.17.47",
67-
"@unocss/reset": "^66.1.2",
66+
"@types/node": "^20.19.11",
67+
"@unocss/reset": "^66.4.2",
6868
"@vitejs/plugin-vue": "^5.2.4",
6969
"@vue/tsconfig": "^0.7.0",
70-
"@vueuse/core": "^13.2.0",
70+
"@vueuse/core": "^13.6.0",
7171
"@vueuse/head": "^2.0.0",
7272
"highlight.js": "^11.11.1",
73-
"nuxt": "^3.17.3",
74-
"tsdown": "^0.11.9",
75-
"typescript": "^5.8.3",
76-
"unocss": "^66.1.2",
77-
"unplugin-icons": "^22.1.0",
73+
"nuxt": "^3.18.1",
74+
"tsdown": "^0.11.13",
75+
"typescript": "^5.9.2",
76+
"unocss": "^66.4.2",
77+
"unplugin-icons": "^22.2.0",
7878
"unplugin-vue": "^6.2.0",
79-
"unplugin-vue-components": "^28.5.0",
79+
"unplugin-vue-components": "^28.8.0",
8080
"vite": "^6.3.5",
81-
"vue": "^3.5.14",
82-
"vue-sonner": "^1.3.2",
83-
"vue-tsc": "^2.2.10"
81+
"vue": "^3.5.18",
82+
"vue-sonner": "^2.0.0",
83+
"vue-tsc": "^2.2.12"
8484
}
8585
}

0 commit comments

Comments
 (0)