Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问有没有办法在左侧插件下面增加文字 #2698

Closed
Zenilia opened this issue Nov 27, 2023 · 1 comment
Closed

请问有没有办法在左侧插件下面增加文字 #2698

Zenilia opened this issue Nov 27, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request / 新需求或者其他优化建议

Comments

@Zenilia
Copy link

Zenilia commented Nov 27, 2023

请问有没有办法在左侧插件下面增加文字,类似图中这样
image

@JackLian JackLian added the enhancement New feature or request / 新需求或者其他优化建议 label Nov 27, 2023
@liujuping
Copy link
Collaborator

props.title 就是图标下方展示的文字。

skeleton.add({
  area: "leftArea", // 插件区域
  type: "PanelDock", // 插件类型,弹出面板
  name: "sourceEditor",
  content: SourceEditor, // 插件组件实例
  props: {
    align: "left",
    icon: "wenjian",
    title: '标题',
    description: "JS 面板",
  },
  panelProps: {
    floatable: true, // 是否可浮动
    height: 300,
    hideTitleBar: false,
    maxHeight: 800,
    maxWidth: 1200,
    title: "JS 面板",
    width: 600,
  },
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request / 新需求或者其他优化建议
Projects
None yet
Development

No branches or pull requests

3 participants