DevCloudFE / vue-devui

UI components based on Vue3 and DevUI Design
https://vue-devui.github.io
MIT License
1.05k stars 290 forks source link

模块“"devui-theme"”没有导出的成员“infinityTheme, provenceTheme, sweetTheme, deepTheme, galaxyTheme”。 #1599

Open fdf-hash opened 1 year ago

fdf-hash commented 1 year ago

Version

"devui-theme": "^0.0.4",

Vue Version

"vue": "^3.3.4",

Link to minimal reproduction

按照文档,快速开始模块

Step to reproduce

代码如下:

import { createPinia } from 'pinia'
import { createApp,h } from 'vue'
import { RouterView } from 'vue-router'
import router from 'router'
import DevUI from 'vue-devui';
import 'vue-devui/style.css';
import '@devui-design/icons/icomoon/devui-icon.css';
import { ThemeServiceInit, infinityTheme } from 'devui-theme';

ThemeServiceInit({ infinityTheme }, 'infinityTheme');
// 创建app
const app = createApp({
    render: () => h(RouterView),
    inheritAttrs: false
  })

app.use(createPinia())
app.use(router)
app.use(DevUI)
app.mount('#app')

import { ThemeServiceInit, infinityTheme } from 'devui-theme'; infinityTheme 报错,提示模块“"devui-theme"”没有导出的成员“infinityTheme”。

image image 全是这样

What is expected

No response

What is actually happening

No response

Any additional comments (optional)

No response

BitmapLong commented 1 year ago

参考

https://github.com/DevCloudFE/ng-devui/issues/321

zozero commented 1 year ago

我这边是angular的包是这样的。 import { ThemeServiceInit } from 'ng-devui/theme'; import { infinityTheme, sweetTheme, provenceTheme, deepTheme, } from 'ng-devui/theme-collection';