fix: 修复之前导入 default 会报错问题 (#2408)

This commit is contained in:
吴多益 2021-08-18 19:27:33 +08:00 committed by GitHub
parent bc6cefae8c
commit 2c8720e704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 6 deletions

View File

@ -61,9 +61,9 @@
);
} else {
document.write(
`<link rel="stylesheet" title="default" ${
theme !== 'default' ? 'disabled' : ''
} href="${__uri('../scss/themes/default-ie11.scss')}" />`
`<link rel="stylesheet" title="ang" ${
theme !== 'ang' ? 'disabled' : ''
} href="${__uri('../scss/themes/ang-ie11.scss')}" />`
);
document.write(
`<link rel="stylesheet" title="cxd" ${

View File

@ -1,6 +1,6 @@
{
"name": "amis",
"version": "1.2.3-beta.7",
"version": "1.2.3-beta.8",
"description": "一种MIS页面生成工具",
"main": "lib/index.js",
"scripts": {

View File

@ -1,4 +1,7 @@
import {theme} from '../theme';
import {theme, ClassNamesFn, makeClassnames} from '../theme';
export const classPrefix: string = 'cxd-';
export const classnames: ClassNamesFn = makeClassnames(classPrefix);
// yunshe.design 百度云舍
theme('cxd', {

View File

@ -2,4 +2,4 @@
* @file default default cxd
*/
import './cxd';
export * from './cxd';