@eosway/one
v0.4.0
Published
Aggregate entry for eosway one packages.
Maintainers
Readme
@eosway/one
Aggregate entry for eosway one packages.
@eosway/one 用于统一承载 @eosway/one-* 系列包的聚合入口。
当前命名空间映射:
@eosway/one/chat->@eosway/one-chat@eosway/one/chart->@eosway/one-chart@eosway/one/chart/plugins->@eosway/one-chart/plugins
安装
pnpm add vue echarts @eosway/one如果需要 one-chart 的可选扩展,再单独安装对应依赖:
pnpm add echarts-gl
pnpm add echarts-stat用法
根入口仅导出核心组件与 hook,不导出 plugins:
import { OneChart, useOneChart, useOneChartRuntime, useChatStream } from '@eosway/one'通过命名空间子路径访问具体组件包:
import { createOpenAICompatibleChatStream, useChatStream } from '@eosway/one/chat'import OneChart, { useOneChart, useOneChartRuntime } from '@eosway/one/chart'插件子路径同样使用命名空间:
import { glPlugin, statPlugin } from '@eosway/one/chart/plugins'根入口说明
@eosway/one 仅导出核心组件与 hook:
useChatStreamOneChartuseOneChartuseOneChartRuntime
plugins 及其他非核心能力不从根入口透出,必须使用子路径单独导入。
