@acnb/plugins 中文文档教程
plugins
acnb 的插件。
Usage
pnpm i @acnb/plugins
import { createTheme } from '@acnb/core'
import { background } from '@acnb/plugins'
createTheme().use(background)
中配置插件的默认行为
import { createTheme } from '@acnb/core'
import { background } from '@acnb/plugins'
createTheme().use(background, {
// The default configuration of the Theme
enable: true,
})
在您的主题配置后台插件
import { createTheme } from '@acnb/core'
import { background } from '@acnb/plugins'
createTheme().use(
background,
{},
{
// The configuration of the plugin
opacitySelector: '#sideBar,#mainContent,#footer',
}
)
plugins
Plugins for acnb.
Usage
pnpm i @acnb/plugins
import { createTheme } from '@acnb/core'
import { background } from '@acnb/plugins'
createTheme().use(background)
Configure the default behavior of the plugin in your Theme
import { createTheme } from '@acnb/core'
import { background } from '@acnb/plugins'
createTheme().use(background, {
// The default configuration of the Theme
enable: true,
})
Configure background plugin
import { createTheme } from '@acnb/core'
import { background } from '@acnb/plugins'
createTheme().use(
background,
{},
{
// The configuration of the plugin
opacitySelector: '#sideBar,#mainContent,#footer',
}
)
更多