Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-app
提交
ae0f6ac7
U
uni-app
项目概览
DCloud
/
uni-app
3 个月 前同步成功
通知
720
Star
38705
Fork
3642
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
7
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
7
Issue
7
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
ae0f6ac7
编写于
9月 05, 2019
作者:
W
wangyaqi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
docs: 添加示例链接
上级
8833bac4
变更
25
隐藏空白更改
内联
并排
Showing
25 changed file
with
25 addition
and
25 deletion
+25
-25
docs/component/audio.md
docs/component/audio.md
+1
-1
docs/component/button.md
docs/component/button.md
+1
-1
docs/component/checkbox.md
docs/component/checkbox.md
+1
-1
docs/component/cover-view.md
docs/component/cover-view.md
+1
-1
docs/component/form.md
docs/component/form.md
+1
-1
docs/component/image.md
docs/component/image.md
+1
-1
docs/component/input.md
docs/component/input.md
+1
-1
docs/component/label.md
docs/component/label.md
+1
-1
docs/component/map.md
docs/component/map.md
+1
-1
docs/component/movable-view.md
docs/component/movable-view.md
+1
-1
docs/component/navigator.md
docs/component/navigator.md
+1
-1
docs/component/picker-view.md
docs/component/picker-view.md
+1
-1
docs/component/picker.md
docs/component/picker.md
+1
-1
docs/component/progress.md
docs/component/progress.md
+1
-1
docs/component/radio.md
docs/component/radio.md
+1
-1
docs/component/rich-text.md
docs/component/rich-text.md
+1
-1
docs/component/scroll-view.md
docs/component/scroll-view.md
+1
-1
docs/component/slider.md
docs/component/slider.md
+1
-1
docs/component/swiper.md
docs/component/swiper.md
+1
-1
docs/component/switch.md
docs/component/switch.md
+1
-1
docs/component/text.md
docs/component/text.md
+1
-1
docs/component/textarea.md
docs/component/textarea.md
+1
-1
docs/component/video.md
docs/component/video.md
+1
-1
docs/component/view.md
docs/component/view.md
+1
-1
docs/component/web-view.md
docs/component/web-view.md
+1
-1
未找到文件。
docs/component/audio.md
浏览文件 @
ae0f6ac7
...
...
@@ -37,7 +37,7 @@ app-nvue也不支持此组件。
|3|解码错误|
|4|不合适资源|
**示例:**
**示例:**
[
查看示例
](
https://uniapp.dcloud.io/h5/pages/component/audio/audio
)
```
html
<template>
...
...
docs/component/button.md
浏览文件 @
ae0f6ac7
...
...
@@ -71,7 +71,7 @@
-
支付宝小程序平台,获取用户手机号时,建议先通过条件编译的方式,调用支付宝原生API,
[
参考
](
https://docs.alipay.com/mini/api/getphonenumber
)
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/button/button
)
```
html
<template>
...
...
docs/component/checkbox.md
浏览文件 @
ae0f6ac7
...
...
@@ -19,7 +19,7 @@
|checked|Boolean|false|当前是否选中,可用来设置默认选中|
|color|Color||checkbox的颜色,同css的color|
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/checkbox/checkbox
)
```
html
<template>
...
...
docs/component/cover-view.md
浏览文件 @
ae0f6ac7
...
...
@@ -52,7 +52,7 @@
-
支付宝小程序中
`cover-view`
不支持嵌套。
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/cover-view/cover-view
)
```
html
<template>
...
...
docs/component/form.md
浏览文件 @
ae0f6ac7
...
...
@@ -11,7 +11,7 @@
|@submit|EventHandle|携带 form 中的数据触发 submit 事件,event.detail = {value : {'name': 'value'} , formId: ''},report-submit 为 true 时才会返回 formId||
|@reset|EventHandle|表单重置时会触发 reset 事件|
|
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/form/form
)
```
html
<template>
...
...
docs/component/image.md
浏览文件 @
ae0f6ac7
...
...
@@ -38,7 +38,7 @@ mode 有 13 种模式,其中 4 种是缩放模式,9 种是裁剪模式。
|裁剪|bottom left|不缩放图片,只显示图片的左下边区域|
|裁剪|bottom right|不缩放图片,只显示图片的右下边区域|
**示例:**
**示例:**
[
查看示例
](
https://uniapp.dcloud.io/h5/pages/component/image/image
)
```
html
<template>
...
...
docs/component/input.md
浏览文件 @
ae0f6ac7
...
...
@@ -131,7 +131,7 @@ App端开发聊天类应用时,目前推荐改为adjustResize模式。在hello
-
原生输入框在iOS上不会有软键盘上方的横条
-
原生输入框一样受配置的
`adjustPan|adjustResize`
模式影响
**input示例**
**input示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/input/input
)
```
html
<template>
...
...
docs/component/label.md
浏览文件 @
ae0f6ac7
...
...
@@ -15,7 +15,7 @@ for优先级高于内部控件,内部有多个控件的时候默认触发第
**注:**
-
app-nvue平台 暂不支持for属性
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/label/label
)
```
html
<template>
...
...
docs/component/map.md
浏览文件 @
ae0f6ac7
...
...
@@ -131,7 +131,7 @@
地图组件的经纬度必填,如果不填经纬度则默认值是北京的经纬度。
**示例**
**示例**
[
查看示例
](
https://uniapp.dcloud.io/h5/pages/component/map/map
)
```
html
<template>
...
...
docs/component/movable-view.md
浏览文件 @
ae0f6ac7
...
...
@@ -65,7 +65,7 @@
-
如果遇到x、y、scale属性设置不生效的问题参考:
[
组件属性设置不生效解决办法
](
/use?id=%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98
)
-
swiper在非H5端,不支持内嵌video、map等原生组件。更新:微信基础库2.4.4起支持了原生组件在 scroll-view、swiper、movable-view 中的使用
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/movable-view/movable-view
)
```
html
<template>
<view
class=
"page-body"
>
...
...
docs/component/navigator.md
浏览文件 @
ae0f6ac7
...
...
@@ -30,7 +30,7 @@
-
navigator-hover 默认为 {background-color: rgba(0, 0, 0, 0.1); opacity: 0.7;},
``<navigator>``
的子节点背景色应为透明色。
**
-
app-nvue 平台暂不支持
`<navigator>`
**示例**
**示例**
[
查看示例
](
https://uniapp.dcloud.io/h5/pages/component/navigator/navigator
)
```
html
<template>
...
...
docs/component/picker-view.md
浏览文件 @
ae0f6ac7
...
...
@@ -19,7 +19,7 @@
`<picker-view />`
的子组件,仅可放置于
`<picker-view />`
中,其子节点的高度会自动设置成与 picker-view 的选中框的高度一致
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/picker-view/picker-view
)
```
html
<template>
...
...
docs/component/picker.md
浏览文件 @
ae0f6ac7
...
...
@@ -118,7 +118,7 @@
|@cancel|EventHandle||取消选择时触发|
|disabled|Boolean|false|是否禁用|
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/picker/picker
)
```
html
<template>
...
...
docs/component/progress.md
浏览文件 @
ae0f6ac7
...
...
@@ -14,7 +14,7 @@
|active-mode |String |backwards |backwards: 动画从头播;forwards:动画从上次结束点接着播|微信小程序、5+APP、H5 |
|@activeend |EventHandle| |动画完成事件 |微信小程序 |
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/progress/progress
)
```
html
<template>
<view>
...
...
docs/component/radio.md
浏览文件 @
ae0f6ac7
...
...
@@ -21,7 +21,7 @@
|disabled|Boolean|false|是否禁用|
|color|Color||radio的颜色,同css的color|
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/radio/radio
)
```
html
<template>
...
...
docs/component/rich-text.md
浏览文件 @
ae0f6ac7
...
...
@@ -87,7 +87,7 @@
|tr||
|ul|
|
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/rich-text/rich-text
)
```
html
<template>
<view
class=
"content"
>
...
...
docs/component/scroll-view.md
浏览文件 @
ae0f6ac7
...
...
@@ -22,7 +22,7 @@
使用竖向滚动时,需要给
``<scroll-view>``
一个固定高度,通过 css 设置 height。
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/scroll-view/scroll-view
)
```
html
<template>
<view>
...
...
docs/component/slider.md
浏览文件 @
ae0f6ac7
...
...
@@ -26,7 +26,7 @@
-
activeColor默认值在不同平台不一样,微信是绿色(#1aad19),头条是红色,其他平台是蓝色
-
如需要区间滑块,即一根横条上使用2个滑块选择一段范围,可见
[
插件市场
](
https://ext.dcloud.net.cn/search?q=%E5%8C%BA%E9%97%B4%E6%BB%91%E5%9D%97
)
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/slider/slider
)
```
html
<template>
...
...
docs/component/swiper.md
浏览文件 @
ae0f6ac7
...
...
@@ -57,7 +57,7 @@ change 事件返回 detail 中包含一个 source 字段,表示导致变更的
|:-|:-|:-|:-|:-|
|item-id|String||该 swiper-item 的标识符|
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/swiper/swiper
)
```
html
<template>
<view>
...
...
docs/component/switch.md
浏览文件 @
ae0f6ac7
...
...
@@ -12,7 +12,7 @@
|@change|EventHandle||checked 改变时触发 change 事件,event.detail={ value:checked}||
|color|Color||switch 的颜色,同 css 的 color|
|
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/switch/switch
)
```
html
<template>
...
...
docs/component/text.md
浏览文件 @
ae0f6ac7
...
...
@@ -26,7 +26,7 @@
-
支持
`\n`
方式换行。
-
如果使用
`<span>`
组件编译时会被转换为
`<text>`
。
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/text/text
)
```
html
<template>
<view>
...
...
docs/component/textarea.md
浏览文件 @
ae0f6ac7
...
...
@@ -27,7 +27,7 @@
|@input|EventHandle||当键盘输入时,触发 input 事件,event.detail = {value, cursor}, @input 处理函数的返回值并不会反映到 textarea 上||
|@confirm|EventHandle||点击完成时, 触发 confirm 事件,event.detail = {value: value}|微信小程序、百度小程序、QQ小程序|
**示例**
**示例**
[
查看示例
](
https://uniapp.dcloud.io/h5/pages/component/textarea/textarea
)
```
html
<template>
...
...
docs/component/video.md
浏览文件 @
ae0f6ac7
...
...
@@ -40,7 +40,7 @@
`<video>`
默认宽度 300px、高度 225px,可通过 css 设置宽高。
**示例**
**示例**
[
查看示例
](
https://uniapp.dcloud.io/h5/pages/component/video/video
)
```
html
<template>
...
...
docs/component/view.md
浏览文件 @
ae0f6ac7
...
...
@@ -11,7 +11,7 @@
|hover-start-time|Number|50|按住后多久出现点击态,单位毫秒|
|hover-stay-time|Number|400|手指松开后点击态保留时间,单位毫秒|
**示例**
**示例**
[
查看演示
](
https://uniapp.dcloud.io/h5/pages/component/view/view
)
```
html
<template>
...
...
docs/component/web-view.md
浏览文件 @
ae0f6ac7
...
...
@@ -86,7 +86,7 @@
</code>
</pre>
**示例**
**示例**
[
查看示例
](
https://uniapp.dcloud.io/h5/pages/component/web-view/web-view
)
```
html
<template>
<view>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录