We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4c98d3 commit a8af37cCopy full SHA for a8af37c
docs/components/content/Alert.vue
@@ -3,10 +3,10 @@
3
import type uiColors from '#ui-colors'
4
5
const props = defineProps({
6
- title: { type: String },
7
- icon: { type: String },
8
- color: { type: String as PropType<(typeof uiColors)[number]> },
9
- to: { type: String },
+ title: { type: String, required: true},
+ icon: { type: String, default: '' },
+ color: { type: String as PropType<(typeof uiColors)[number]>, required: true },
+ to: { type: String, default: '' },
10
})
11
12
const target = computed(() => (props.to?.startsWith('https://') ? '_blank' : ''))
playground/server/api/cached.ts
@@ -1,4 +1,4 @@
1
-export default cachedEventHandler(async (event) => {
+export default cachedEventHandler(async () => {
2
return {
now: Date.now()
}
0 commit comments