Skip to content

调整组件安装的方式,引入更多配置项 #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tzfun opened this issue Jan 3, 2025 · 0 comments
Closed

调整组件安装的方式,引入更多配置项 #133

tzfun opened this issue Jan 3, 2025 · 0 comments
Assignees
Labels
optimization Optimizing design or code

Comments

@tzfun
Copy link
Owner

tzfun commented Jan 3, 2025

调整后使用以下方式注册:

import { createTerminal } from 'vue-web-terminal'

const terminal = createTerminal()
terminal.configTheme('customDark', "xxxx")
terminal.configTheme('customLight', "xxxx")
terminal.configStoreName("MyTerminalStorage")

const app = createApp(App)

app.use(terminal)

同时此次改动也会引入更多的配置项

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
optimization Optimizing design or code
Projects
None yet
Development

No branches or pull requests

1 participant