This commit is contained in:
Fine
2022-11-03 16:57:51 +08:00
parent 5bfac6fdc9
commit ddf46fe8c1
5 changed files with 26 additions and 5 deletions

View File

@@ -14,3 +14,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { LegendOptions } from "@/types/dashboard";
export default function useLegendProcess() {
function showEchartsLegend(keys: string[], legend?: LegendOptions) {
if (keys.length === 1) {
return false;
}
if (legend && legend.asTable) {
return false;
}
return true;
}
return { showEchartsLegend };
}