Skip to content
This repository has been archived by the owner on Mar 31, 2021. It is now read-only.

我来提第一个问题,按需加载并没有加载单独的样式文件 #1

Open
a1292999652 opened this issue Oct 22, 2019 · 1 comment

Comments

@a1292999652
Copy link

a1292999652 commented Oct 22, 2019

["import",
{
libraryName: '@apl-common/components',
libraryDirectory: 'lib',
style: (name, file) => {
const libDirIndex = name.lastIndexOf('/');
const libDir = name.substring(0, libDirIndex);
const fileName = name.substr(libDirIndex + 1);
return ${libDir}/theme/${fileName}.css
}
}
]
应该是这样吧,还是哪里不对呢

@anncwb
Copy link
Owner

anncwb commented Nov 6, 2019

image
你有用到多个吗,多个的话后面还需要加一个参数,我这样正常使用没问题

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants