This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch gh-pages
in repository https://gitbox.apache.org/repos/asf/echarts-examples.git
The following commit(s) were added to refs/heads/gh-pages by this push:
new 76493222 fix toast style & build issues
76493222 is described below
commit 76493222500f3f8da8108d9c309dc581427f329d
Author: plainheart <[email protected]>
AuthorDate: Sun May 1 23:12:38 2022 +0800
fix toast style & build issues
---
src/editor/Preview.vue | 5 +++--
src/editor/sandbox/index.js | 6 +++---
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/editor/Preview.vue b/src/editor/Preview.vue
index a78cd6e8..0ea274fa 100644
--- a/src/editor/Preview.vue
+++ b/src/editor/Preview.vue
@@ -420,7 +420,7 @@ export default {
this.$message({
type: 'success',
message: this.$t('editor.share.success'),
- customClass: 'no-min-width'
+ customClass: 'toast-shared-url'
});
})
// PENDING
@@ -656,8 +656,9 @@ export default {
}
.el-message {
- &.no-min-width {
+ &.toast-shared-url {
min-width: auto;
+ z-index: 9999999 !important;
}
}
</style>
diff --git a/src/editor/sandbox/index.js b/src/editor/sandbox/index.js
index 1e06c128..3fb16e51 100644
--- a/src/editor/sandbox/index.js
+++ b/src/editor/sandbox/index.js
@@ -20,12 +20,12 @@ export function createSandbox(
{ content: estraverse },
{ content: loopController },
{
+ // TODO optimize
content: `
(function(){
- ${handleLoop}
+ var handleLoop = ${handleLoop};
${showDebugDirtyRect}
- ${setup}
- setup(${isShared})
+ ;(${setup})(${isShared})
})()
`
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]