Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
京东前端
nutui
提交
508f84c8
N
nutui
项目概览
京东前端
/
nutui
通知
37
Star
4
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nutui
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
508f84c8
编写于
9月 05, 2022
作者:
D
Drjingfubo
提交者:
GitHub
9月 05, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix(menu): menu list cannot be scrolled #1615 (#1633)
上级
45415713
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
33 addition
and
23 deletion
+33
-23
src/packages/__VUE/menuitem/index.scss
src/packages/__VUE/menuitem/index.scss
+3
-1
src/packages/__VUE/menuitem/index.taro.vue
src/packages/__VUE/menuitem/index.taro.vue
+29
-21
src/packages/__VUE/menuitem/index.vue
src/packages/__VUE/menuitem/index.vue
+1
-1
未找到文件。
src/packages/__VUE/menuitem/index.scss
浏览文件 @
508f84c8
...
@@ -16,9 +16,11 @@
...
@@ -16,9 +16,11 @@
.nut-menu-item__content
{
.nut-menu-item__content
{
padding
:
$menu-item-content-padding
;
padding
:
$menu-item-content-padding
;
max-height
:
$menu-item-content-max-height
;
max-height
:
$menu-item-content-max-height
;
overflow-y
:
auto
;
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
&
.nut-menu-item__overflow
{
overflow-y
:
auto
;
}
.nut-menu-item__option
{
.nut-menu-item__option
{
color
:
$title-color
;
color
:
$title-color
;
...
...
src/packages/__VUE/menuitem/index.taro.vue
浏览文件 @
508f84c8
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
@closed="handleClose"
@closed="handleClose"
:close-on-click-overlay="parent.props.closeOnClickOverlay"
:close-on-click-overlay="parent.props.closeOnClickOverlay"
>
>
<scroll-view
:scroll-y=
"true"
style=
"height: 100%"
>
<view
class=
"nut-menu-item__content"
>
<view
class=
"nut-menu-item__content"
>
<view
<view
v-for=
"(option, index) in options"
v-for=
"(option, index) in options"
...
@@ -36,20 +37,27 @@
...
@@ -36,20 +37,27 @@
@click="onClick(option)"
@click="onClick(option)"
>
>
<nut-icon
<nut-icon
:class=
"
{ activeTitleClass: option.value === modelValue, inactiveTitleClass: option.value !== modelValue }"
:class=
"
{
activeTitleClass: option.value === modelValue,
inactiveTitleClass: option.value !== modelValue
}"
v-if="option.value === modelValue"
v-if="option.value === modelValue"
:name="optionIcon"
:name="optionIcon"
v-bind="$attrs"
v-bind="$attrs"
:color="parent.props.activeColor"
:color="parent.props.activeColor"
>
</nut-icon>
>
</nut-icon>
<view
<view
:class=
"
{ activeTitleClass: option.value === modelValue, inactiveTitleClass: option.value !== modelValue }"
:class=
"
{
activeTitleClass: option.value === modelValue,
inactiveTitleClass: option.value !== modelValue
}"
:style="{ color: option.value === modelValue ? parent.props.activeColor : '' }"
:style="{ color: option.value === modelValue ? parent.props.activeColor : '' }"
>
{{
option
.
text
}}
</view
>
{{
option
.
text
}}
</view
>
>
</view>
</view>
<slot></slot>
<slot></slot>
</view>
</view>
</scroll-view>
</nut-popup>
</nut-popup>
</view>
</view>
</
template
>
</
template
>
...
...
src/packages/__VUE/menuitem/index.vue
浏览文件 @
508f84c8
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
:isWrapTeleport="false"
:isWrapTeleport="false"
:close-on-click-overlay="parent.props.closeOnClickOverlay"
:close-on-click-overlay="parent.props.closeOnClickOverlay"
>
>
<view
class=
"nut-menu-item__content"
>
<view
class=
"nut-menu-item__content
nut-menu-item__overflow
"
>
<view
<view
v-for=
"(option, index) in options"
v-for=
"(option, index) in options"
:key=
"index"
:key=
"index"
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录