@eosway/one
@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 及其他非核心能力不从根入口透出,必须使用子路径单独导入。
Related Packages
@alis-build/vue-ideate
Vue 3 composables and components to help integrate Alis Ideate into your product...
2,053
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.4.0 | >=3.3.0 | Apache-2.0 | |
| 0.3.0 | >=3.3.0 | Apache-2.0 | |
| 0.2.0 | >=3.3.0 | Apache-2.0 | |
| 0.1.0 | >=3.3.0 | Apache-2.0 |