@@ -7,7 +7,7 @@ import App from './App.vue'
|
||||
import '@unocss/reset/tailwind.css'
|
||||
import 'uno.css'
|
||||
|
||||
const router = createRouter({ history: createWebHashHistory(), routes })
|
||||
const router = createRouter({ routes, history: createWebHashHistory() })
|
||||
|
||||
createApp(App)
|
||||
.use(router)
|
||||
|
||||
+2
-2
@@ -11,12 +11,12 @@ export const weatherComponent = defineCallingComponent(
|
||||
Weather,
|
||||
object({
|
||||
city: string(),
|
||||
condition: string(),
|
||||
temperature: string(),
|
||||
condition: string(),
|
||||
}),
|
||||
{
|
||||
city: 'Tokyo',
|
||||
condition: 'Sunny',
|
||||
temperature: '25°',
|
||||
condition: 'Sunny',
|
||||
},
|
||||
)
|
||||
|
||||
@@ -6,9 +6,9 @@ import { toJsonSchema } from 'xsschema'
|
||||
|
||||
export function defineCallingComponent<T extends Schema>(name: string, component: Component, schema: T, exampleProps?: Record<string, any>) {
|
||||
return {
|
||||
component: markRaw(component),
|
||||
exampleProps,
|
||||
name,
|
||||
schema: toJsonSchema(schema),
|
||||
component: markRaw(component),
|
||||
exampleProps,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user