Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
unidocs-zh
提交
502197cc
unidocs-zh
项目概览
DCloud
/
unidocs-zh
通知
3172
Star
105
Fork
804
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
93
列表
看板
标记
里程碑
合并请求
67
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
unidocs-zh
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
93
Issue
93
列表
看板
标记
里程碑
合并请求
67
合并请求
67
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
502197cc
编写于
4月 01, 2022
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' of
https://github.com/dcloudio/unidocs-zh
into vuepress
上级
44800ca1
33002f33
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
33 addition
and
23 deletion
+33
-23
docs/component/uniui/uni-card.md
docs/component/uniui/uni-card.md
+15
-14
docs/component/uniui/uni-list.md
docs/component/uniui/uni-list.md
+8
-4
docs/component/uniui/uni-nav-bar.md
docs/component/uniui/uni-nav-bar.md
+3
-3
docs/component/uniui/uni-search-bar.md
docs/component/uniui/uni-search-bar.md
+7
-2
未找到文件。
docs/component/uniui/uni-card.md
浏览文件 @
502197cc
...
...
@@ -61,22 +61,23 @@
```
html
<uni-card
cover=
"https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png"
>
<!-- <image slot='cover' style="width: 100%;" :src="cover"></image> -->
<text>
这是一个带封面和操作栏的卡片示例,此示例展示了封面插槽和操作栏插槽的用法。
</text>
<view
slot=
"actions"
class=
"card-actions"
>
<view
class=
"card-actions-item"
@
click=
"actionsClick('分享')"
>
<uni-icons
type=
"pengyouquan"
size=
"18"
color=
"#999"
></uni-icons>
<text
class=
"card-actions-item-text"
>
分享
</text>
<template
v-slot:actions
>
<view
class=
"card-actions"
>
<view
class=
"card-actions-item"
@
click=
"actionsClick('分享')"
>
<uni-icons
type=
"pengyouquan"
size=
"18"
color=
"#999"
></uni-icons>
<text
class=
"card-actions-item-text"
>
分享
</text>
</view>
<view
class=
"card-actions-item"
@
click=
"actionsClick('点赞')"
>
<uni-icons
type=
"heart"
size=
"18"
color=
"#999"
></uni-icons>
<text
class=
"card-actions-item-text"
>
点赞
</text>
</view>
<view
class=
"card-actions-item"
@
click=
"actionsClick('评论')"
>
<uni-icons
type=
"chatbubble"
size=
"18"
color=
"#999"
></uni-icons>
<text
class=
"card-actions-item-text"
>
评论
</text>
</view>
</view>
<view
class=
"card-actions-item"
@
click=
"actionsClick('点赞')"
>
<uni-icons
type=
"heart"
size=
"18"
color=
"#999"
></uni-icons>
<text
class=
"card-actions-item-text"
>
点赞
</text>
</view>
<view
class=
"card-actions-item"
@
click=
"actionsClick('评论')"
>
<uni-icons
type=
"chatbubble"
size=
"18"
color=
"#999"
></uni-icons>
<text
class=
"card-actions-item-text"
>
评论
</text>
</view>
</view>
</template>
</uni-card>
```
...
...
docs/component/uniui/uni-list.md
浏览文件 @
502197cc
...
...
@@ -256,17 +256,21 @@ switchTab|同 uni.switchTab()
```
html
<uni-list>
<uni-list-item
title=
"自定义右侧插槽"
note=
"列表描述信息"
link
>
<template
slot=
"header"
>
<template
v-slot:header
>
<image
class=
"slot-image"
src=
"/static/logo.png"
mode=
"widthFix"
></image>
</template>
</uni-list-item>
<uni-list-item>
<!-- 自定义 header -->
<view
slot=
"header"
class=
"slot-box"
><image
class=
"slot-image"
src=
"/static/logo.png"
mode=
"widthFix"
></image></view>
<template
v-slot:header
>
<view
class=
"slot-box"
><image
class=
"slot-image"
src=
"/static/logo.png"
mode=
"widthFix"
></image></view>
</template>
<!-- 自定义 body -->
<text
slot=
"body"
class=
"slot-box slot-text"
>
自定义插槽
</text>
<template
v-slot:body
>
<text
class=
"slot-box slot-text"
>
自定义插槽
</text>
</template>
<!-- 自定义 footer-->
<template
slot=
"footer"
>
<template
v-slot:footer
>
<image
class=
"slot-image"
src=
"/static/logo.png"
mode=
"widthFix"
></image>
</template>
</uni-list-item>
...
...
docs/component/uniui/uni-nav-bar.md
浏览文件 @
502197cc
...
...
@@ -123,8 +123,8 @@ Tips:
### NavBar Slots
支持向 NavBar 里插入不同内容,以达到自定义的目的。
|slot名 |说明|
|:-:|:-:|
|default|向导航栏中间插入 |
...
...
@@ -134,8 +134,8 @@ Tips:
```
html
<uni-nav-bar>
<view>
标题栏
</view>
<view
slot=
"left"
>
left
</view>
<view
slot=
"right"
>
right
</view>
<view
v-slot:left
>
left
</view>
<view
v-slot:right
>
right
</view>
</uni-nav-bar>
```
...
...
docs/component/uniui/uni-search-bar.md
浏览文件 @
502197cc
...
...
@@ -60,12 +60,17 @@
```
html
<!-- 替换组件的搜索图标 -->
<uni-search-bar
placeholder=
"自定义searchIcon"
@
confirm=
"search"
@
cancel=
"cancel"
cancel-text=
"cancel"
>
<uni-icons
slot=
"searchIcon"
color=
"#999999"
size=
"18"
type=
"home"
/>
<template
v-slot:searchIcon
>
<uni-icons
color=
"#999999"
size=
"18"
type=
"home"
/>
</template>
</uni-search-bar>
<!-- 替换组件的清除图标 -->
<uni-search-bar
placeholder=
"自定义clearIcon"
@
confirm=
"search"
@
cancel=
"cancel"
cancel-text=
"cancel"
>
<view
slot=
"clearIcon"
style=
"color: #999999"
>
X
</view>
<template
v-slot:clearIcon
>
<view
style=
"color: #999999"
>
X
</view>
</template>
</uni-search-bar>
```
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录