Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
靖轩达人
uni-app
提交
dda449b5
U
uni-app
项目概览
靖轩达人
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
dda449b5
编写于
11月 15, 2018
作者:
蓝色的小猫咪
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整侧滑菜单页面布局
上级
0077ab38
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
42 addition
and
13 deletion
+42
-13
examples/hello-uniapp/pages/template/drawer/drawer.vue
examples/hello-uniapp/pages/template/drawer/drawer.vue
+42
-13
未找到文件。
examples/hello-uniapp/pages/template/drawer/drawer.vue
浏览文件 @
dda449b5
<
template
>
<view>
<view
class=
"uni-padding-wrap"
>
<view
class=
"uni-helllo-text"
style=
"margin-top:80upx;"
>
这是抽屉式导航组件使用示例,可以指定菜单左侧或者右侧弹出(仅初始化生效),组件内部可以放置任何内容。
<view
class=
"header"
>
<view
class=
"input-view"
>
<uni-icon
type=
"search"
size=
"22"
color=
"#666666"
></uni-icon>
<input
confirm-type=
"search"
@
confirm=
"confirm"
class=
"input"
type=
"text"
placeholder=
"输入搜索关键词"
/>
</view>
<!-- #ifdef APP-PLUS -->
<view
class=
"uni-center uni-link uni-common-mt"
@
tap=
"showRightDrawer"
>
点击这里或页面右上角的按钮显示导航菜单。
</view>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<view
class=
"
uni-common-mt uni-btn-v
"
>
<
button
type=
"primary"
@
tap=
"showRightDrawer"
>
弹出导航
</butt
on>
<view
class=
"
icon"
@
tap=
"showRightDrawer
"
>
<
uni-icon
type=
"bars"
color=
"#666666"
size=
"22"
></uni-ic
on>
</view>
<!-- #endif -->
</view>
<view
class=
"uni-padding-wrap"
style=
"margin-top:30upx;"
>
这是抽屉式导航组件使用示例,可以指定菜单左侧或者右侧弹出(仅初始化生效),组件内部可以放置任何内容。点击页面右上角的按钮即可显示导航菜单。
</view>
<uni-drawer
:visible=
"rightDrawerVisible"
mode=
"right"
@
close=
"closeRightDrawer"
>
<view
style=
"padding:30upx;"
>
<view
class=
"uni-title"
>
抽屉式导航
</view>
<view
class=
"uni-helllo-text"
>
这是抽屉式导航组件使用示例,你可以在这里放置任何内容。
<text>
\n关闭抽屉式导航有多种方式:
</text>
这是抽屉式导航组件使用示例,你可以在这里放置任何内容。关闭抽屉式导航有多种方式:
</text>
<text>
\n1.点击本导航之外的任意位置;
</text>
<text>
\n2.点击如下红色按钮;
</text>
<!-- #ifdef APP-PLUS -->
...
...
@@ -28,7 +26,7 @@
<!-- #endif -->
</view>
<view
class=
"uni-common-mt"
>
<button
class=
"button"
type=
"warn"
@
tap=
"closeRightDrawer"
>
关闭抽屉式导航
</button>
<button
class=
"button"
type=
"warn"
size=
"mini"
@
tap=
"closeRightDrawer"
>
关闭抽屉式导航
</button>
</view>
<view
class=
"uni-list uni-common-mt"
>
<view
class=
"uni-list-cell"
hover-class=
"uni-list-cell-hover"
>
...
...
@@ -91,5 +89,36 @@
</
script
>
<
style
>
.header
{
display
:
flex
;
flex-direction
:
row
;
padding
:
10px
15px
;
align-items
:
center
;
}
.input-view
{
display
:
flex
;
align-items
:
center
;
flex-direction
:
row
;
background-color
:
#e7e7e7
;
height
:
30px
;
border-radius
:
15px
;
padding
:
0
10px
;
flex
:
1
;
}
.input
{
flex
:
1
;
padding
:
0
5px
;
height
:
24px
;
line-height
:
24px
;
font-size
:
16px
;
}
.icon
{
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
margin-left
:
10px
;
}
</
style
>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录