2022-11-11 11:02:51 +08:00
|
|
|
# @ice/plugin-fusion
|
2022-08-10 19:12:18 +08:00
|
|
|
|
2022-11-11 11:02:51 +08:00
|
|
|
ice.js plugin for using fusion components.
|
2022-08-10 19:12:18 +08:00
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
```js
|
|
|
|
import { defineConfig } from '@ice/app';
|
|
|
|
import fusion from '@ice/plugin-fusion';
|
|
|
|
|
2022-11-11 11:02:51 +08:00
|
|
|
export default defineConfig(() => ({
|
2022-08-10 19:12:18 +08:00
|
|
|
plugins: [fusion({
|
|
|
|
importStyle: true,
|
|
|
|
themePackage: '@alifd/theme-design-pro',
|
|
|
|
theme: {
|
|
|
|
'primary-color': '#fff',
|
|
|
|
},
|
|
|
|
})],
|
2022-11-11 11:02:51 +08:00
|
|
|
}));
|
2022-08-10 19:12:18 +08:00
|
|
|
```
|
|
|
|
|
|
|
|
## Options
|
|
|
|
|
2022-11-11 11:02:51 +08:00
|
|
|
- importStyle: Fusion component styles will be automatically imported after enabling.
|
|
|
|
- themePackage: Fusion component theme package configuration, if set to an array, multi-theme capability is enabled.
|
|
|
|
- theme: theme configuration, overwrite existing themes by setting sass variables.
|