fix: issues-6683: jssdk helper样式优先级问题 (#6802)

* fix: issues-6683: jssdk helper样式优先级问题

* fix: typecheck 编译
This commit is contained in:
Allen 2023-05-06 17:39:29 +08:00 committed by GitHub
parent a77b406416
commit ed221e7887
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

@ -1,18 +1,16 @@
<!DOCTYPE html>
<html lang="zh">
<head>
<link rel="stylesheet" href="@fortawesome/fontawesome-free/css/all.css" />
<link
rel="stylesheet"
href="@fortawesome/fontawesome-free/css/v4-shims.css"
/>
<link rel="stylesheet" title="ang" href="amis-ui/scss/helper.scss" />
<link rel="stylesheet" href="@fortawesome/fontawesome-free/css/v4-shims.css" />
<!--DEPENDENCIES_INJECT_PLACEHOLDER-->
<!--STYLE_PLACEHOLDER-->
<link rel="stylesheet" title="ang" href="amis-ui/scss/themes/ang.scss" />
<link rel="stylesheet" title="cxd" href="amis-ui/scss/themes/cxd.scss" />
<link rel="stylesheet" title="dark" href="amis-ui/scss/themes/dark.scss" />
<link rel="stylesheet" title="antd" href="amis-ui/scss/themes/antd.scss" />
<link rel="stylesheet" title="helper" href="amis-ui/scss/helper.scss" />
</head>
<body>

View File

@ -335,10 +335,13 @@ export class EditorManager {
| PluginClass
| [PluginClass, Record<string, any> | (() => Record<string, any>)]
>
) {
): (
| PluginClass
| [PluginClass, Record<string, any> | (() => Record<string, any>)]
)[] {
return (
plugins?.map(klass => {
let options: any;
let options;
if (Array.isArray(klass)) {
options = klass[1];
klass = klass[0];