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> <!DOCTYPE html>
<html lang="zh"> <html lang="zh">
<head> <head>
<link rel="stylesheet" href="@fortawesome/fontawesome-free/css/all.css" /> <link rel="stylesheet" href="@fortawesome/fontawesome-free/css/all.css" />
<link <link rel="stylesheet" href="@fortawesome/fontawesome-free/css/v4-shims.css" />
rel="stylesheet"
href="@fortawesome/fontawesome-free/css/v4-shims.css"
/>
<link rel="stylesheet" title="ang" href="amis-ui/scss/helper.scss" />
<!--DEPENDENCIES_INJECT_PLACEHOLDER--> <!--DEPENDENCIES_INJECT_PLACEHOLDER-->
<!--STYLE_PLACEHOLDER--> <!--STYLE_PLACEHOLDER-->
<link rel="stylesheet" title="ang" href="amis-ui/scss/themes/ang.scss" /> <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="cxd" href="amis-ui/scss/themes/cxd.scss" />
<link rel="stylesheet" title="dark" href="amis-ui/scss/themes/dark.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="antd" href="amis-ui/scss/themes/antd.scss" />
<link rel="stylesheet" title="helper" href="amis-ui/scss/helper.scss" />
</head> </head>
<body> <body>
@ -31,4 +29,4 @@
})(window); })(window);
</script> </script>
</body> </body>
</html> </html>

View File

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