2022-12-08 11:42:49 +08:00

578 B

title, sidebar_position, tags
title sidebar_position tags
插件面板如何调整位置 10
FAQ

使用 index 配置来定义位置,内置的默认都是 0

AliLowCodeEngine.skeleton.add({
  area: 'leftArea',
  type: 'PanelDock',
  name: 'xxx',
  content: () => 'xxx',
  index: -1, // 使用 index 来定义位置,内置的默认都是 0
  props: { icon: () => 'x' /* ReactElement 也可以 */ },
});

这里设置 index 为负数,可以将其调整到第一的位置。 image.png