Skip to content

[bug]Menu组件必须引入遮罩,文档中未说明 #1485

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

Closed
ztrve opened this issue Jul 21, 2022 · 1 comment
Closed

[bug]Menu组件必须引入遮罩,文档中未说明 #1485

ztrve opened this issue Jul 21, 2022 · 1 comment
Assignees

Comments

@ztrve
Copy link

ztrve commented Jul 21, 2022

问题描述

使用 Taro+NutUI+vue3 练手微信小程序,由于项目是刚创建的
使用Menu组件的过程中,遮罩一直出不来,后来试着将 OverLay, Popup 组件也引入后,才正常

最小可复现仓库

请创建最小可复现代码,并上传到你的 GitHub 仓库

预期的行为和实际行为

预期的行为

点击Menu组件中账单1后出现遮罩
image

实际行为

点击后没有遮罩出现
image
而文档中说只需要引入Menu和MenuItem即可使用
image

文档地址:https://nutui.jd.com/jdt/#/zh-CN/component/menu

复现步骤,具体代码

import { createApp } from 'vue'
import {
  Button, Toast, Tabbar, TabbarItem, Icon,
  Avatar, Empty, Cell, CellGroup,
  Menu, MenuItem, 
  // 打开注释
  // OverLay, Popup
} from '@nutui/nutui-taro';
import './app.styl'

const App = createApp({})

App
  .use(Button).use(Toast).use(Tabbar).use(TabbarItem).use(Icon).use(Avatar).use(Empty).use(Cell).use(CellGroup)
  .use(Menu).use(MenuItem)
  // 打开注释
  // .use(OverLay).use(Popup)

export default App

相关环境信息

  • 操作系统:mac os
  • Node 版本:v16.13.2
  • NutUI 版本: 3.1.8
  • Vue 版本:3.0.0
  • 引用方式: yarn
@richard1015
Copy link
Contributor

v3.2.1 已发布

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