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

开发遇到的问题 #269

Open
lzb-libra opened this issue Sep 18, 2023 · 5 comments
Open

开发遇到的问题 #269

lzb-libra opened this issue Sep 18, 2023 · 5 comments

Comments

@lzb-libra
Copy link

lzb-libra commented Sep 18, 2023

我想自己开发一个工具,我使用了左右分割的布局,然后再左侧想添加一个ant-design-vue的menu组件,但是左侧的组件并没有显示
QQ截图20230918163919
QQ截图20230918164020

@lzb-libra
Copy link
Author

第二张图中的 a-menu 修改成了下边这样也不行

<a-menu
      v-model:selectedKeys="state.selectedKeys"
      style="width: 256px"
      mode="inline"
      :open-keys="state.openKeys"
      :items="items"
      @openChange="onOpenChange"
    ></a-menu>

@zhenweiwang1990
Copy link

你在左侧打一个 hello world 试一下?

@zhenweiwang1990
Copy link

此外,也可以打开调试器,看一下这个 menu dom 节点是否被正确渲染。

@lzb-libra
Copy link
Author

lzb-libra commented Sep 26, 2023

在左侧我手动写了div ul什么的原生 html 组件没有问题,我查看了调试器,发现并没有被渲染,但是同样的代码我在浏览器上是没有问题的,我的代码其实也是从ant-design-vue官网上直接复制过来的

@zhangze-github
Copy link

zhangze-github commented Sep 26, 2023

你好,这块我们看了下,是我们文档提供的插槽有问题,建议使用

<h-single-layout :width="1280">  </h-single-layout> 

去掉 left 和 right 的插槽, 问题我们会尽快修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants