attributes.json 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050
  1. {
  2. "disabled": {
  3. "description": "是否禁用。",
  4. "type": "Boolean"
  5. },
  6. "loop": {
  7. "description": "是否循环播放",
  8. "type": "Boolean"
  9. },
  10. "adpid": {
  11. "description": "App广告位id,在uni-AD官网申请广告位",
  12. "type": "String"
  13. },
  14. "hover-class": {
  15. "description": "指定按下去的样式类。当 hover-class=\"none\" 时,没有点击态效果",
  16. "type": "String"
  17. },
  18. "hover-stop-propagation": {
  19. "description": "指定是否阻止本节点的祖先节点出现点击态",
  20. "type": "Boolean"
  21. },
  22. "hover-start-time": {
  23. "description": "按住后多久出现点击态,单位毫秒",
  24. "type": "Number"
  25. },
  26. "hover-stay-time": {
  27. "description": "手指松开后点击态保留时间,单位毫秒",
  28. "type": "Number"
  29. },
  30. "scroll-x": {
  31. "description": "允许横向滚动",
  32. "type": "Boolean"
  33. },
  34. "scroll-y": {
  35. "description": "允许纵向滚动",
  36. "type": "Boolean"
  37. },
  38. "upper-threshold": {
  39. "description": "距顶部/左边多远时(单位px),触发 scrolltoupper 事件",
  40. "type": "Number"
  41. },
  42. "lower-threshold": {
  43. "description": "距底部/右边多远时(单位px),触发 scrolltolower 事件",
  44. "type": "Number"
  45. },
  46. "scroll-top": {
  47. "description": "滚动位置,可以使用 px 或者 rpx 为单位,在被设置时,页面会滚动到对应位置",
  48. "type": "String"
  49. },
  50. "scroll-left": {
  51. "description": "设置横向滚动条位置",
  52. "type": "Number"
  53. },
  54. "scroll-into-view": {
  55. "description": " 值应为某子元素id(id不能以数字开头)。设置哪个方向可滚动,则在哪个方向滚动到该元素",
  56. "type": "String"
  57. },
  58. "scroll-with-animation": {
  59. "description": "在设置滚动条位置时使用动画过渡",
  60. "type": "Boolean"
  61. },
  62. "enable-back-to-top": {
  63. "description": "iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只支持竖向",
  64. "type": "Boolean"
  65. },
  66. "width": {
  67. "description": "页面宽度(px 为单位)",
  68. "type": "Number"
  69. },
  70. "min-width": {
  71. "description": "页面最小宽度(px 为单位)",
  72. "type": "Number"
  73. },
  74. "max-width": {
  75. "description": "页面最大宽度(px 为单位)",
  76. "type": "Number"
  77. },
  78. "height": {
  79. "description": "页面高度(px 为单位)",
  80. "type": "Number"
  81. },
  82. "min-height": {
  83. "description": "页面最小高度(px 为单位)",
  84. "type": "Number"
  85. },
  86. "max-height": {
  87. "description": "页面最大高度(px 为单位)",
  88. "type": "Number"
  89. },
  90. "orientation": {
  91. "description": "画面方向,可选值有 vertical,horizontal",
  92. "type": "String",
  93. "options": [
  94. "vertical",
  95. "horizontal"
  96. ]
  97. },
  98. "indicator-dots": {
  99. "description": "是否显示面板指示点",
  100. "type": "Boolean"
  101. },
  102. "indicator-color": {
  103. "description": "指示点颜色",
  104. "type": "HexColor"
  105. },
  106. "indicator-active-color": {
  107. "description": "当前选中的指示点颜色",
  108. "type": "HexColor"
  109. },
  110. "active-class": {
  111. "description": "swiper-item 可见时的 class",
  112. "type": "String"
  113. },
  114. "changing-class": {
  115. "description": "acceleration 设置为 {{true}} 时且处于滑动过程中,中间若干屏处于可见时的class",
  116. "type": "Boolean"
  117. },
  118. "acceleration": {
  119. "description": "当开启时,会根据滑动速度,连续滑动多屏",
  120. "type": "Boolean"
  121. },
  122. "disable-programmatic-animation": {
  123. "description": "是否禁用代码变动触发 swiper 切换时使用动画。",
  124. "type": "Boolean"
  125. },
  126. "disable-touch": {
  127. "description": "是否禁止用户 touch 操作",
  128. "type": "Boolean"
  129. },
  130. "touchable": {
  131. "description": "是否监听用户的触摸事件",
  132. "type": "Boolean"
  133. },
  134. "easing-function": {
  135. "description": "指定 swiper 切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic",
  136. "type": "String"
  137. },
  138. "autoplay": {
  139. "description": "自动播放",
  140. "type": "Boolean"
  141. },
  142. "current": {
  143. "description": "当前所在滑块的 index",
  144. "type": "Number"
  145. },
  146. "current-item-id": {
  147. "description": "当前所在滑块的 item-id ,不能与 current 被同时指定",
  148. "type": "String"
  149. },
  150. "interval": {
  151. "description": "自动切换时间间隔",
  152. "type": "Number"
  153. },
  154. "duration": {
  155. "description": "指定视频长度",
  156. "type": "Number"
  157. },
  158. "circular": {
  159. "description": "是否采用衔接滑动",
  160. "type": "Boolean"
  161. },
  162. "vertical": {
  163. "description": "滑动方向是否为纵向",
  164. "type": "Boolean"
  165. },
  166. "previous-margin": {
  167. "description": "前边距,可用于露出前一项的一小部分,接受 px 和 rpx 值",
  168. "type": "String"
  169. },
  170. "next-margin": {
  171. "description": "后边距,可用于露出后一项的一小部分,接受 px 和 rpx 值",
  172. "type": "String"
  173. },
  174. "display-multiple-items": {
  175. "description": "同时显示的滑块数量",
  176. "type": "Number"
  177. },
  178. "skip-hidden-item-layout": {
  179. "description": "是否跳过未显示的滑块布局,设为 true 可优化复杂情况下的滑动性能,但会丢失隐藏状态滑块的布局信息",
  180. "type": "Boolean"
  181. },
  182. "item-id": {
  183. "description": "该 swiper-item 的标识符",
  184. "type": "String"
  185. },
  186. "scale-area": {
  187. "description": "当里面的movable-view设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个movable-area",
  188. "type": "Boolean"
  189. },
  190. "direction": {
  191. "description": "movable-view 的移动方向。",
  192. "type": "String",
  193. "options": [
  194. "all",
  195. "vertical",
  196. "horizontal",
  197. "none"
  198. ]
  199. },
  200. "inertia": {
  201. "description": "movable-view 是否带有惯性。",
  202. "type": "Boolean"
  203. },
  204. "out-of-bounds": {
  205. "description": "超过可移动区域后,movable-view 是否还可以移动。",
  206. "type": "Boolean"
  207. },
  208. "damping": {
  209. "description": "阻尼系数,用于控制 x 或 y 改变时的动画和过界回弹的动画,值越大移动越快。",
  210. "type": "Number"
  211. },
  212. "x": {
  213. "description": "定义 x 轴方向的偏移,如果 x 的值不在可移动范围内,会自动移动到可移动范围;改变 x 的值会触发动画。",
  214. "type": "String|Number"
  215. },
  216. "y": {
  217. "description": "定义 y 轴方向的偏移,如果 y 的值不在可移动范围内,会自动移动到可移动范围;改变 y 的值会触发动画。",
  218. "type": "String|Number"
  219. },
  220. "friction": {
  221. "description": "摩擦系数,用于控制惯性滑动的动画,值越大摩擦力越大,滑动越快停止;必须大于0,否则会被设置成默认值 2。",
  222. "type": "Number"
  223. },
  224. "scale": {
  225. "description": "是否支持双指缩放,默认缩放手势生效区域是在 movable-view 内。",
  226. "type": "Boolean"
  227. },
  228. "scale-min": {
  229. "description": "定义缩放倍数最小值,默认为 0.5。",
  230. "type": "Number"
  231. },
  232. "scale-max": {
  233. "description": "定义缩放倍数最大值,默认为 10。",
  234. "type": "Number"
  235. },
  236. "scale-value": {
  237. "description": "定义缩放倍数,取值范围为 0.5 - 10",
  238. "type": "Number"
  239. },
  240. "src": {
  241. "description": "webview 指向网页的链接",
  242. "type": "String|URIString"
  243. },
  244. "type": {
  245. "description": "开放数据类型",
  246. "type": "String"
  247. },
  248. "size": {
  249. "description": "按钮的大小",
  250. "type": "String",
  251. "options": [
  252. "default",
  253. "mini"
  254. ]
  255. },
  256. "selectable": {
  257. "description": "文本是否可选",
  258. "type": "Boolean"
  259. },
  260. "space": {
  261. "description": "显示连续空格",
  262. "type": "String",
  263. "options": [
  264. "ensp",
  265. "emsp",
  266. "nbsp"
  267. ]
  268. },
  269. "decode": {
  270. "description": "是否解码",
  271. "type": "Boolean"
  272. },
  273. "nodes": {
  274. "description": "节点列表",
  275. "type": "Array"
  276. },
  277. "percent": {
  278. "description": "百分比0~100",
  279. "type": "Number"
  280. },
  281. "show-info": {
  282. "description": "在进度条右侧显示百分比",
  283. "type": "Boolean"
  284. },
  285. "stroke-width": {
  286. "description": "进度条线的宽度,单位px",
  287. "type": "Number"
  288. },
  289. "color": {
  290. "description": "switch 的颜色,同 css 的 color",
  291. "type": "ColorString"
  292. },
  293. "activeColor": {
  294. "description": "radio已选择的颜色",
  295. "type": "ColorString"
  296. },
  297. "backgroundColor": {
  298. "description": "radio背景条的颜色",
  299. "type": "ColorString"
  300. },
  301. "active": {
  302. "description": "进度条从左往右的动画",
  303. "type": "Boolean"
  304. },
  305. "active-mode": {
  306. "description": "backwards: 动画从头播;forwards:动画从上次结束点接着播",
  307. "type": "String"
  308. },
  309. "plain": {
  310. "description": "按钮是否镂空,背景色透明",
  311. "type": "Boolean"
  312. },
  313. "loading": {
  314. "description": "是否在导航条显示 loading 加载提示",
  315. "type": "Boolean"
  316. },
  317. "form-type": {
  318. "description": "用于 form 组件,点击分别会触发 form 组件的 submit/reset 事件",
  319. "type": "String",
  320. "options": [
  321. "submit",
  322. "reset"
  323. ]
  324. },
  325. "open-type": {
  326. "description": "跳转方式",
  327. "type": "String",
  328. "options": [
  329. "navigate",
  330. "redirect",
  331. "switchTab",
  332. "reLaunch",
  333. "navigateBack"
  334. ]
  335. },
  336. "lang": {
  337. "description": "",
  338. "type": "String",
  339. "options": [
  340. "ts"
  341. ]
  342. },
  343. "session-from": {
  344. "description": "会话来源",
  345. "type": "String"
  346. },
  347. "send-message-title": {
  348. "description": "会话内消息卡片标题",
  349. "type": "String"
  350. },
  351. "send-message-path": {
  352. "description": "会话内消息卡片点击跳转应用路径",
  353. "type": "String"
  354. },
  355. "send-message-img": {
  356. "description": "会话内消息卡片图片",
  357. "type": "String"
  358. },
  359. "show-message-card": {
  360. "description": "显示会话内消息卡片",
  361. "type": "Boolean"
  362. },
  363. "app-parameter": {
  364. "description": "打开 APP 时,向 APP 传递的参数",
  365. "type": "String"
  366. },
  367. "value": {
  368. "description": "radio当前取值",
  369. "type": "Number"
  370. },
  371. "checked": {
  372. "description": "是否选中",
  373. "type": "Boolean"
  374. },
  375. "report-submit": {
  376. "description": "是否返回 formId 用于发送模板消息",
  377. "type": "Boolean"
  378. },
  379. "password": {
  380. "description": "是否是密码类型",
  381. "type": "Boolean"
  382. },
  383. "placeholder": {
  384. "description": "提示信息。",
  385. "type": "String"
  386. },
  387. "placeholder-style": {
  388. "description": "指定 placeholder 的样式",
  389. "type": "String"
  390. },
  391. "placeholder-class": {
  392. "description": "指定 placeholder 的样式类",
  393. "type": "String"
  394. },
  395. "maxlength": {
  396. "description": "最大输入长度,设置为 -1 的时候不限制最大长度",
  397. "type": "Number"
  398. },
  399. "cursor-spacing": {
  400. "description": "指定光标与键盘的距离,单位 px 。取 textarea 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离",
  401. "type": "Number"
  402. },
  403. "auto-focus": {
  404. "description": "获取焦点",
  405. "type": "Boolean"
  406. },
  407. "focus": {
  408. "description": "获取焦点",
  409. "type": "Boolean"
  410. },
  411. "confirm-type": {
  412. "description": "设置键盘右下角按钮的文字",
  413. "type": "String",
  414. "options": [
  415. "send",
  416. "search",
  417. "next",
  418. "go",
  419. "done"
  420. ]
  421. },
  422. "confirm-hold": {
  423. "description": "点击键盘右下角按钮时是否保持键盘不收起",
  424. "type": "Boolean"
  425. },
  426. "cursor": {
  427. "description": "指定focus时的光标位置",
  428. "type": "Number"
  429. },
  430. "selection-start": {
  431. "description": " 光标起始位置,自动聚集时有效,需与selection-end搭配使用",
  432. "type": "Number"
  433. },
  434. "selection-end": {
  435. "description": " 光标结束位置,自动聚集时有效,需与selection-satrt搭配使用",
  436. "type": "Number"
  437. },
  438. "adjust-position": {
  439. "description": "键盘弹起时,是否自动上推页面",
  440. "type": "Boolean"
  441. },
  442. "for": {
  443. "description": "绑定控件的 id",
  444. "type": "String"
  445. },
  446. "mode": {
  447. "description": "SD(标清), HD(高清), FHD(超清), RTC(实时通话) ",
  448. "type": "String",
  449. "options": [
  450. "RTC",
  451. "SD",
  452. "HD",
  453. "FHD"
  454. ]
  455. },
  456. "indicator-style": {
  457. "description": "设置选择器中间选中框的样式",
  458. "type": "String"
  459. },
  460. "indicator-class": {
  461. "description": "设置选择器中间选中框的类名",
  462. "type": "String"
  463. },
  464. "mask-style": {
  465. "description": "设置蒙层的样式",
  466. "type": "String"
  467. },
  468. "mask-class": {
  469. "description": "设置蒙层的类名",
  470. "type": "String"
  471. },
  472. "range": {
  473. "description": "mode为 selector 或 multiSelector 时,range 有效",
  474. "type": "Array"
  475. },
  476. "range-key": {
  477. "description": "当 range 是一个 Object Array 时,通过 range-key 来指定 Object 中 key 的值作为选择器显示内容",
  478. "type": "String"
  479. },
  480. "start": {
  481. "description": "mode为time:表示有效时间范围的开始,字符串格式为\"hh:mm\";mode为date:表示有效日期范围的开始,字符串格式为\"YYYY-MM-DD\"",
  482. "type": "String"
  483. },
  484. "end": {
  485. "description": "mode为time:表示有效时间范围的结束,字符串格式为\"hh:mm\";mode为date:表示有效日期范围的结束,字符串格式为\"YYYY-MM-DD\"",
  486. "type": "String"
  487. },
  488. "fields": {
  489. "description": "有效值 year,month,day,表示选择器的粒度",
  490. "type": "String",
  491. "options": [
  492. "year",
  493. "month",
  494. "day"
  495. ]
  496. },
  497. "custom-item": {
  498. "description": "可为每一列的顶部添加一个自定义的项",
  499. "type": "String"
  500. },
  501. "min": {
  502. "description": " radio 最小值",
  503. "type": "Number"
  504. },
  505. "max": {
  506. "description": "radio最大值",
  507. "type": "Number"
  508. },
  509. "step": {
  510. "description": "radio步长,取值必须大于 0,并且可被(max - min)整除",
  511. "type": "Number"
  512. },
  513. "select-color": {
  514. "description": "radio已选择的颜色",
  515. "type": "ColorString"
  516. },
  517. "block-size": {
  518. "description": "radio滑块的大小,取值范围为 12 - 28",
  519. "type": "Number"
  520. },
  521. "block-color": {
  522. "description": "滑块颜色",
  523. "type": "ColorString"
  524. },
  525. "show-value": {
  526. "description": "是否显示当前 value",
  527. "type": "Boolean"
  528. },
  529. "auto-height": {
  530. "description": "是否自动增高,设置auto-height时,style.height不生效",
  531. "type": "Boolean"
  532. },
  533. "fixed": {
  534. "description": "如果 textarea 是在一个 position:fixed 的区域,需要显示指定属性 fixed 为 true",
  535. "type": "Boolean"
  536. },
  537. "show-confirm-bar": {
  538. "description": "是否显示键盘上方带有”完成“按钮那一栏",
  539. "type": "Boolean"
  540. },
  541. "target": {
  542. "description": "在哪个目标上发生跳转,默认当前应用",
  543. "type": "String"
  544. },
  545. "url": {
  546. "description": "推流地址。目前仅支持 flv, rtmp 格式",
  547. "type": "String"
  548. },
  549. "delta": {
  550. "description": "当 open-type 为 navigateBack 时有效,表示回退的层数",
  551. "type": "Number"
  552. },
  553. "app-id": {
  554. "description": "当target=\"miniProgram\"时有效,要打开的小程序 appId",
  555. "type": "String"
  556. },
  557. "path": {
  558. "description": "当target=\"miniProgram\"时有效,打开的页面路径,如果为空则打开首页",
  559. "type": "String"
  560. },
  561. "extra-data": {
  562. "description": "当target=\"miniProgram\"时有效,需要传递给目标应用的数据,目标应用可在 App.onLaunch(),App.onShow() 中获取到这份数据",
  563. "type": "Object"
  564. },
  565. "version": {
  566. "description": "当target=\"miniProgram\"时有效,要打开的小程序版本,有效值 develop(开发版),trial(体验版),release(正式版),仅在当前小程序为开发版或体验版时此参数有效;如果当前小程序是体验版或正式版,则打开的小程序必定是正式版",
  567. "type": "String"
  568. },
  569. "animation-type": {
  570. "description": "当 open-type=\"navigateTo\" 或 open-type=\"navigateBack\" 时有效,窗口的显示/关闭的动画类型。",
  571. "type": "String",
  572. "options": [
  573. "auto",
  574. "none",
  575. "slide-in-right",
  576. "slide-in-left",
  577. "slide-in-top",
  578. "slide-in-bottom",
  579. "fade-in",
  580. "zoom-out",
  581. "zoom-fade-out",
  582. "pop-in",
  583. "slide-out-right",
  584. "slide-out-left",
  585. "slide-out-top",
  586. "slide-out-bottom",
  587. "fade-out",
  588. "zoom-in",
  589. "zoom-fade-in",
  590. "pop-out"
  591. ]
  592. },
  593. "animation-duration": {
  594. "description": "当 open-type=\"navigateTo\" 或 open-type=\"navigateBack\" 时有效,窗口的显示/关闭动画的持续时间。",
  595. "type": "Number"
  596. },
  597. "title": {
  598. "description": "视频的标题,全屏时在顶部展示",
  599. "type": "String"
  600. },
  601. "title-icon": {
  602. "description": "标题icon",
  603. "type": "Boolean"
  604. },
  605. "titleIcon-radius": {
  606. "description": "标题icon圆角",
  607. "type": "Boolean"
  608. },
  609. "subtitle-text": {
  610. "description": "",
  611. "type": "Boolean"
  612. },
  613. "subtitle-size": {
  614. "description": "",
  615. "type": "Boolean"
  616. },
  617. "subtitle-color": {
  618. "description": "",
  619. "type": "Boolean"
  620. },
  621. "subtitle-overflow": {
  622. "description": "",
  623. "type": "Boolean"
  624. },
  625. "title-align": {
  626. "description": "",
  627. "type": "Boolean"
  628. },
  629. "background-image": {
  630. "description": "",
  631. "type": "Boolean"
  632. },
  633. "background-repeat": {
  634. "description": "",
  635. "type": "Boolean"
  636. },
  637. "blur-effect": {
  638. "description": "",
  639. "type": "Boolean"
  640. },
  641. "front-color": {
  642. "description": "导航条前景颜色值,包括按钮、标题、状态栏的颜色,仅支持 #ffffff 和 #000000",
  643. "type": "Boolean"
  644. },
  645. "background-color": {
  646. "description": "窗口的背景色,必须为十六进制颜色值",
  647. "type": "String"
  648. },
  649. "color-animation-duration": {
  650. "description": "改变导航栏颜色时的动画时长,默认为 0 (即没有动画效果)",
  651. "type": "Boolean"
  652. },
  653. "color-animation-timing-func": {
  654. "description": "改变导航栏颜色时的动画方式,支持 linear 、 easeIn 、 easeOut 和 easeInOut",
  655. "type": "Boolean"
  656. },
  657. "show-icon": {
  658. "description": "是否显示icon",
  659. "type": "Boolean"
  660. },
  661. "selected": {
  662. "description": "选中的tabBar选项索引值",
  663. "type": "Number"
  664. },
  665. "poster": {
  666. "description": "视频封面的图片网络资源地址,如果 controls 属性值为 false 则设置 poster 无效",
  667. "type": "String"
  668. },
  669. "controls": {
  670. "description": "控件",
  671. "type": "Array"
  672. },
  673. "name": {
  674. "description": "默认控件上的音频名字,如果 controls 属性值为 false 则设置 name 无效",
  675. "type": "String"
  676. },
  677. "author": {
  678. "description": "默认控件上的作者名字,如果 controls 属性值为 false 则设置 author 无效",
  679. "type": "String"
  680. },
  681. "lazy-load": {
  682. "description": "图片懒加载。只针对page与scroll-view下的image有效",
  683. "type": "Boolean"
  684. },
  685. "fade-show": {
  686. "description": "图片显示动画效果",
  687. "type": "Boolean"
  688. },
  689. "webp": {
  690. "description": "默认不解析 webP 格式,只支持网络资源",
  691. "type": "Boolean"
  692. },
  693. "show-menu-by-longpress": {
  694. "description": "开启长按图片显示识别小程序码菜单",
  695. "type": "Boolean"
  696. },
  697. "initial-time": {
  698. "description": "指定视频初始播放位置",
  699. "type": "Number"
  700. },
  701. "danmu-list": {
  702. "description": "弹幕列表",
  703. "type": "Array"
  704. },
  705. "danmu-btn": {
  706. "description": "是否显示弹幕按钮,只在初始化时有效,不能动态变更",
  707. "type": "Boolean"
  708. },
  709. "enable-danmu": {
  710. "description": " 是否展示弹幕,只在初始化时有效,不能动态变更",
  711. "type": "Boolean"
  712. },
  713. "muted": {
  714. "description": "是否静音",
  715. "type": "Boolean"
  716. },
  717. "page-gesture": {
  718. "description": "在非全屏模式下,是否开启亮度与音量调节手势",
  719. "type": "Boolean"
  720. },
  721. "show-progress": {
  722. "description": " 若不设置,宽度大于240时才会显示",
  723. "type": "Boolean"
  724. },
  725. "show-fullscreen-btn": {
  726. "description": "是否显示全屏按钮",
  727. "type": "Boolean"
  728. },
  729. "show-play-btn": {
  730. "description": "是否显示视频底部控制栏的播放按钮",
  731. "type": "Boolean"
  732. },
  733. "show-center-play-btn": {
  734. "description": "是否显示视频中间的播放按钮",
  735. "type": "Boolean"
  736. },
  737. "enable-progress-gesture": {
  738. "description": "是否开启控制进度的手势",
  739. "type": "Boolean"
  740. },
  741. "objectFit": {
  742. "description": "当视频大小与 video 容器大小不一致时,视频的表现形式。",
  743. "type": "String",
  744. "options": [
  745. "contain",
  746. "fill",
  747. "cover"
  748. ]
  749. },
  750. "show-mute-btn": {
  751. "description": "是否显示静音按钮",
  752. "type": "Boolean"
  753. },
  754. "play-btn-position": {
  755. "description": "播放按钮的位置",
  756. "type": "String"
  757. },
  758. "enable-play-gesture": {
  759. "description": "是否开启播放手势,即双击切换播放、暂停",
  760. "type": "Boolean"
  761. },
  762. "auto-pause-if-navigate": {
  763. "description": "当跳转到其它小程序页面时,是否自动暂停本页面的视频",
  764. "type": "Boolean"
  765. },
  766. "auto-pause-if-open-native": {
  767. "description": "当跳转到其它微信原生页面时,是否自动暂停本页面的视频",
  768. "type": "Boolean"
  769. },
  770. "vslide-gesture": {
  771. "description": "在非全屏模式下,是否开启亮度与音量调节手势(同 page-gesture)",
  772. "type": "Boolean"
  773. },
  774. "vslide-gesture-in-fullscreen": {
  775. "description": "在全屏模式下,是否开启亮度与音量调节手势",
  776. "type": "Boolean"
  777. },
  778. "ad-unit-id": {
  779. "description": "视频前贴广告单元ID",
  780. "type": "String"
  781. },
  782. "poster-for-crawler": {
  783. "description": "用于给搜索等场景作为视频封面展示,建议使用无播放 icon 的视频封面图,只支持网络地址",
  784. "type": "String"
  785. },
  786. "codec": {
  787. "description": "解码器选择",
  788. "type": "String"
  789. },
  790. "http-cache": {
  791. "description": "是否对 http、https 视频源开启本地缓存",
  792. "type": "Boolean"
  793. },
  794. "play-strategy": {
  795. "description": "播放策略",
  796. "type": "Number"
  797. },
  798. "flash": {
  799. "description": "前置或后置,值为front, back",
  800. "type": "String",
  801. "options": [
  802. "back",
  803. "front"
  804. ]
  805. },
  806. "device-position": {
  807. "description": "闪光灯,值为auto, on, off",
  808. "type": "String"
  809. },
  810. "object-fit": {
  811. "description": "填充模式,可选值有 contain,fillCrop",
  812. "type": "String",
  813. "options": [
  814. "contain",
  815. "fillCrop"
  816. ]
  817. },
  818. "background-mute": {
  819. "description": "进入后台时是否静音",
  820. "type": "Boolean"
  821. },
  822. "min-cache": {
  823. "description": "最小缓冲区,单位s",
  824. "type": "String"
  825. },
  826. "max-cache": {
  827. "description": "最大缓冲区,单位s",
  828. "type": "String"
  829. },
  830. "autopush": {
  831. "description": "自动推流",
  832. "type": "Boolean"
  833. },
  834. "enable-camera": {
  835. "description": "开启摄像头",
  836. "type": "Boolean"
  837. },
  838. "min-bitrate": {
  839. "description": "最小码率",
  840. "type": "String"
  841. },
  842. "max-bitrate": {
  843. "description": "最大码率",
  844. "type": "String"
  845. },
  846. "beauty": {
  847. "description": "美颜",
  848. "type": "Number"
  849. },
  850. "aspect": {
  851. "description": "美白",
  852. "type": "Number"
  853. },
  854. "waiting-image": {
  855. "description": "进入后台时推流的等待画面",
  856. "type": "String"
  857. },
  858. "waiting-image-md5": {
  859. "description": "等待画面资源的MD5值",
  860. "type": "String"
  861. },
  862. "longitude": {
  863. "description": "中心经度",
  864. "type": "Number"
  865. },
  866. "latitude": {
  867. "description": "中心纬度",
  868. "type": "Number"
  869. },
  870. "markers": {
  871. "description": "标记点",
  872. "type": "Array"
  873. },
  874. "covers": {
  875. "description": "即将移除,请使用 markers",
  876. "type": "Array"
  877. },
  878. "polyline": {
  879. "description": "路线",
  880. "type": "Array"
  881. },
  882. "circles": {
  883. "description": "圆",
  884. "type": "Array"
  885. },
  886. "include-points": {
  887. "description": "缩放视野以包含所有给定的坐标点",
  888. "type": "Array"
  889. },
  890. "show-location": {
  891. "description": "显示带有方向的当前定位点",
  892. "type": "Boolean"
  893. },
  894. "canvas-id": {
  895. "description": "canvas 组件的唯一标识符",
  896. "type": "String"
  897. },
  898. "disable-scroll": {
  899. "description": "当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新",
  900. "type": "Boolean"
  901. },
  902. "open-gid": {
  903. "description": "当 type=\"groupName\" 时生效, 群id",
  904. "type": "String"
  905. },
  906. "webview-styles": {
  907. "description": "webview 的样式",
  908. "type": "Object|Boolean"
  909. },
  910. "unit-id": {
  911. "description": "广告单元id,可在小程序管理后台的流量主模块新建",
  912. "type": "String"
  913. },
  914. "scoped": {
  915. "description": "",
  916. "type": "String"
  917. },
  918. "background-text-style": {
  919. "description": "下拉背景字体、loading 图的样式,仅支持 dark 和 light",
  920. "type": "String"
  921. },
  922. "background-color-top": {
  923. "description": "顶部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持",
  924. "type": "String"
  925. },
  926. "background-color-bottom": {
  927. "description": "底部窗口的背景色,必须为十六进制颜色值,仅 iOS 支持",
  928. "type": "String"
  929. },
  930. "scroll-duration": {
  931. "description": "滚动动画时长",
  932. "type": "Number"
  933. },
  934. "page-style": {
  935. "description": "页面根节点样式,页面根节点是所有页面节点的祖先节点,相当于 HTML 中的 body 节点",
  936. "type": "String"
  937. },
  938. "root-font-size": {
  939. "description": "页面的根字体大小,页面中的所有 rem 单位,将使用这个字体大小作为参考值,即 1rem 等于这个字体大小",
  940. "type": "String"
  941. },
  942. "enable-pull-down-refresh": {
  943. "description": "",
  944. "type": "Boolean"
  945. },
  946. "是否开启下拉刷新": {
  947. "description": "",
  948. "type": "String"
  949. },
  950. "": {
  951. "description": "",
  952. "type": "String"
  953. },
  954. "animation": {
  955. "description": "是否使用动画,默认为 true。",
  956. "type": "Boolean"
  957. },
  958. "read-only": {
  959. "description": "设置编辑器为只读。",
  960. "type": "Boolean"
  961. },
  962. "show-img-size": {
  963. "description": "点击图片时显示图片大小控件。",
  964. "type": "Boolean"
  965. },
  966. "show-img-toolbar": {
  967. "description": "点击图片时显示工具栏控件。",
  968. "type": "Boolean"
  969. },
  970. "show-img-resize": {
  971. "description": "点击图片时显示修改尺寸控件。",
  972. "type": "String"
  973. },
  974. "collection": {
  975. "description": "表名",
  976. "type": "String|URIDBCollectionStringString"
  977. },
  978. "field": {
  979. "description": "查询字段,多个字段用 `,` 分割",
  980. "type": "String|DBFieldString"
  981. },
  982. "where": {
  983. "description": "查询条件",
  984. "type": "String|JQLString"
  985. },
  986. "action": {
  987. "description": "云端执行数据库查询的前或后,触发某个action函数操作,进行预处理或后处理",
  988. "type": "String|ClientDBActionString"
  989. },
  990. "orderby": {
  991. "description": "排序字段及正序倒叙设置",
  992. "type": "String"
  993. },
  994. "groupby": {
  995. "description": "对数据进行分组",
  996. "type": "String"
  997. },
  998. "group-field": {
  999. "description": "对数据进行分组统计",
  1000. "type": "String"
  1001. },
  1002. "distinct": {
  1003. "description": "是否对数据查询结果中重复的记录进行去重",
  1004. "type": "Boolean",
  1005. "options": [
  1006. "true",
  1007. "false"
  1008. ]
  1009. },
  1010. "page-data": {
  1011. "description": "add 多次查询的集合, replace 当前查询的集合",
  1012. "type": "String",
  1013. "options": [
  1014. "add",
  1015. "replace"
  1016. ]
  1017. },
  1018. "page-current": {
  1019. "description": "当前页",
  1020. "type": "Number"
  1021. },
  1022. "page-size": {
  1023. "description": "每页数据数量",
  1024. "type": "Number"
  1025. },
  1026. "getone": {
  1027. "description": "指定查询结果是否返回数组第一条数据,默认 false。在false情况下返回的是数组,即便只有一条结果,也需要[0]的方式获取。在true下,直接返回结果数据,少一层数组",
  1028. "type": "Boolean"
  1029. },
  1030. "getcount": {
  1031. "description": "是否查询总数量",
  1032. "type": "Boolean"
  1033. },
  1034. "gettree": {
  1035. "description": "是否查询树状结构数据",
  1036. "type": "Boolean"
  1037. },
  1038. "startwith": {
  1039. "description": "gettree的第一层级条件,此初始条件可以省略,不传startWith时默认从最顶级开始查询",
  1040. "type": "String"
  1041. },
  1042. "limitlevel": {
  1043. "description": "gettree查询返回的树的最大层级。超过设定层级的节点不会返回。默认10级,最大15,最小1",
  1044. "type": "Number"
  1045. },
  1046. "manual": {
  1047. "description": "是否手动加载数据,默认为 false,页面onready时自动联网加载数据",
  1048. "type": "Boolean"
  1049. }
  1050. }