提交 ae0f6ac7 编写于 作者: W wangyaqi

docs: 添加示例链接

上级 8833bac4
......@@ -37,7 +37,7 @@ app-nvue也不支持此组件。
|3|解码错误|
|4|不合适资源|
**示例:**
**示例:** [查看示例](https://uniapp.dcloud.io/h5/pages/component/audio/audio)
```html
<template>
......
......@@ -71,7 +71,7 @@
- 支付宝小程序平台,获取用户手机号时,建议先通过条件编译的方式,调用支付宝原生API,[参考](https://docs.alipay.com/mini/api/getphonenumber)
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/button/button)
```html
<template>
......
......@@ -19,7 +19,7 @@
|checked|Boolean|false|当前是否选中,可用来设置默认选中|
|color|Color||checkbox的颜色,同css的color|
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/checkbox/checkbox)
```html
<template>
......
......@@ -52,7 +52,7 @@
- 支付宝小程序中 `cover-view` 不支持嵌套。
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/cover-view/cover-view)
```html
<template>
......
......@@ -11,7 +11,7 @@
|@submit|EventHandle|携带 form 中的数据触发 submit 事件,event.detail = {value : {'name': 'value'} , formId: ''},report-submit 为 true 时才会返回 formId||
|@reset|EventHandle|表单重置时会触发 reset 事件|&nbsp;|
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/form/form)
```html
<template>
......
......@@ -38,7 +38,7 @@ mode 有 13 种模式,其中 4 种是缩放模式,9 种是裁剪模式。
|裁剪|bottom left|不缩放图片,只显示图片的左下边区域|
|裁剪|bottom right|不缩放图片,只显示图片的右下边区域|
**示例:**
**示例:** [查看示例](https://uniapp.dcloud.io/h5/pages/component/image/image)
```html
<template>
......
......@@ -131,7 +131,7 @@ App端开发聊天类应用时,目前推荐改为adjustResize模式。在hello
- 原生输入框在iOS上不会有软键盘上方的横条
- 原生输入框一样受配置的`adjustPan|adjustResize`模式影响
**input示例**
**input示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/input/input)
```html
<template>
......
......@@ -15,7 +15,7 @@ for优先级高于内部控件,内部有多个控件的时候默认触发第
**注:**
- app-nvue平台 暂不支持for属性
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/label/label)
```html
<template>
......
......@@ -131,7 +131,7 @@
地图组件的经纬度必填,如果不填经纬度则默认值是北京的经纬度。
**示例**
**示例** [查看示例](https://uniapp.dcloud.io/h5/pages/component/map/map)
```html
<template>
......
......@@ -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">
......
......@@ -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>
......
......@@ -19,7 +19,7 @@
`<picker-view />` 的子组件,仅可放置于 `<picker-view />` 中,其子节点的高度会自动设置成与 picker-view 的选中框的高度一致
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/picker-view/picker-view)
```html
<template>
......
......@@ -118,7 +118,7 @@
|@cancel|EventHandle||取消选择时触发|
|disabled|Boolean|false|是否禁用|
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/picker/picker)
```html
<template>
......
......@@ -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>
......
......@@ -21,7 +21,7 @@
|disabled|Boolean|false|是否禁用|
|color|Color||radio的颜色,同css的color|
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/radio/radio)
```html
<template>
......
......@@ -87,7 +87,7 @@
|tr||
|ul|&nbsp;|
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/rich-text/rich-text)
```html
<template>
<view class="content">
......
......@@ -22,7 +22,7 @@
使用竖向滚动时,需要给 ``<scroll-view>`` 一个固定高度,通过 css 设置 height。
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/scroll-view/scroll-view)
```html
<template>
<view>
......
......@@ -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>
......
......@@ -57,7 +57,7 @@ change 事件返回 detail 中包含一个 source 字段,表示导致变更的
|:-|:-|:-|:-|:-|
|item-id|String||该 swiper-item 的标识符|
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/swiper/swiper)
```html
<template>
<view>
......
......@@ -12,7 +12,7 @@
|@change|EventHandle||checked 改变时触发 change 事件,event.detail={ value:checked}||
|color|Color||switch 的颜色,同 css 的 color|&nbsp;|
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/switch/switch)
```html
<template>
......
......@@ -26,7 +26,7 @@
- 支持 `\n` 方式换行。
- 如果使用 `<span>` 组件编译时会被转换为 `<text>`
**示例**
**示例** [查看演示](https://uniapp.dcloud.io/h5/pages/component/text/text)
```html
<template>
<view>
......
......@@ -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>
......
......@@ -40,7 +40,7 @@
`<video>` 默认宽度 300px、高度 225px,可通过 css 设置宽高。
**示例**
**示例** [查看示例](https://uniapp.dcloud.io/h5/pages/component/video/video)
```html
<template>
......
......@@ -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>
......
......@@ -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.
先完成此消息的编辑!
想要评论请 注册