Browse Source

fix: 修复能流图的显示

yanglzh 5 months ago
parent
commit
2f526d6f6b
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/views/designer/form-create.es.js

+ 8 - 0
src/views/designer/form-create.es.js

@@ -8463,6 +8463,12 @@ const Sl = ve({
         ]
         ]
       };
       };
     },
     },
+    getSankeyOptions() {
+      var t;
+      return {
+        series: ((t = this.config) == null ? void 0 : t.series) || {}
+      };
+    },
     getGaugeOptions() {
     getGaugeOptions() {
       return {
       return {
         title: {
         title: {
@@ -8619,6 +8625,8 @@ const Sl = ve({
             t = this.getRadarOptions();
             t = this.getRadarOptions();
           else if (this.type === "scatter")
           else if (this.type === "scatter")
             t = this.getScatterOptions();
             t = this.getScatterOptions();
+          else if (this.type === "sankey")
+            t = this.getSankeyOptions();
           else if (this.type === "custom") {
           else if (this.type === "custom") {
             if (t = this.loadOptions(this.config, this.chart) || {}, typeof t.then == "function") {
             if (t = this.loadOptions(this.config, this.chart) || {}, typeof t.then == "function") {
               t.then((e) => {
               t.then((e) => {