refactor: rename

Co-authored-by: Acbox Liu <78635021+sheepbox8646@users.noreply.github.com>
This commit is contained in:
Neko Ayaka
2025-07-29 02:39:56 +08:00
co-authored by Acbox Liu
parent 7f178b130f
commit 030ebc5b11
2 changed files with 3 additions and 3 deletions
@@ -2,11 +2,11 @@ import { object, string } from 'valibot'
import Weather from './Weather.vue'
import { defineCCComponent } from '../../plugin-component-calling'
import { defineCallingComponent } from '../../plugin-component-calling'
export { default as Weather } from './Weather.vue'
export const weatherComponent = defineCCComponent(
export const weatherComponent = defineCallingComponent(
'weather',
Weather,
object({
@@ -4,7 +4,7 @@ import type { Schema } from 'xsschema'
import { markRaw } from 'vue'
import { toJsonSchema } from 'xsschema'
export function defineCCComponent<T extends Schema>(name: string, component: Component, schema: T, exampleProps?: Record<string, any>) {
export function defineCallingComponent<T extends Schema>(name: string, component: Component, schema: T, exampleProps?: Record<string, any>) {
return {
name,
schema: toJsonSchema(schema),