Files
moeka-project/apps/component-calling/src/plugins/plugin-component-calling-weather/components/index.ts
T
2025-07-29 02:39:56 +08:00

23 lines
452 B
TypeScript

import { object, string } from 'valibot'
import Weather from './Weather.vue'
import { defineCallingComponent } from '../../plugin-component-calling'
export { default as Weather } from './Weather.vue'
export const weatherComponent = defineCallingComponent(
'weather',
Weather,
object({
city: string(),
temperature: string(),
condition: string(),
}),
{
city: 'Tokyo',
temperature: '25°',
condition: 'Sunny',
},
)