@tarojs/components 3.6.2 → 3.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/taro-components.cjs.js +1 -1
  4. package/dist/cjs/taro-grid-view-core.cjs.entry.js +21 -0
  5. package/dist/cjs/taro-input-core.cjs.entry.js +1 -1
  6. package/dist/cjs/taro-list-view-core.cjs.entry.js +21 -0
  7. package/dist/cjs/taro-picker-core_2.cjs.entry.js +1 -1
  8. package/dist/cjs/taro-sticky-header-core.cjs.entry.js +21 -0
  9. package/dist/cjs/taro-sticky-section-core.cjs.entry.js +21 -0
  10. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +28 -18
  11. package/dist/cjs/taro-textarea-core.cjs.entry.js +13 -3
  12. package/dist/cjs/taro-video-control_3.cjs.entry.js +3 -1
  13. package/dist/collection/collection-manifest.json +4 -0
  14. package/dist/collection/components/grid-view/grid-view.js +11 -0
  15. package/dist/collection/components/input/input.js +1 -1
  16. package/dist/collection/components/list-view/list-view.js +11 -0
  17. package/dist/collection/components/picker/picker.js +1 -1
  18. package/dist/collection/components/sticky-header/sticky-header.js +11 -0
  19. package/dist/collection/components/sticky-section/sticky-section.js +11 -0
  20. package/dist/collection/components/swiper/swiper-item.js +16 -9
  21. package/dist/collection/components/swiper/swiper.js +12 -9
  22. package/dist/collection/components/textarea/textarea.js +23 -6
  23. package/dist/collection/components/video/video.js +3 -1
  24. package/dist/components/index.d.ts +4 -0
  25. package/dist/components/index.js +4 -0
  26. package/dist/components/taro-grid-view-core.d.ts +11 -0
  27. package/dist/components/taro-grid-view-core.js +33 -0
  28. package/dist/components/taro-input-core.js +1 -1
  29. package/dist/components/taro-list-view-core.d.ts +11 -0
  30. package/dist/components/taro-list-view-core.js +33 -0
  31. package/dist/components/taro-picker-core.js +1 -1
  32. package/dist/components/taro-sticky-header-core.d.ts +11 -0
  33. package/dist/components/taro-sticky-header-core.js +33 -0
  34. package/dist/components/taro-sticky-section-core.d.ts +11 -0
  35. package/dist/components/taro-sticky-section-core.js +33 -0
  36. package/dist/components/taro-swiper-core.js +12 -9
  37. package/dist/components/taro-swiper-item-core.js +16 -9
  38. package/dist/components/taro-textarea-core.js +14 -4
  39. package/dist/components/taro-video-core.js +3 -1
  40. package/dist/esm/loader.js +1 -1
  41. package/dist/esm/taro-components.js +1 -1
  42. package/dist/esm/taro-grid-view-core.entry.js +17 -0
  43. package/dist/esm/taro-input-core.entry.js +1 -1
  44. package/dist/esm/taro-list-view-core.entry.js +17 -0
  45. package/dist/esm/taro-picker-core_2.entry.js +1 -1
  46. package/dist/esm/taro-sticky-header-core.entry.js +17 -0
  47. package/dist/esm/taro-sticky-section-core.entry.js +17 -0
  48. package/dist/esm/taro-swiper-core_2.entry.js +28 -18
  49. package/dist/esm/taro-textarea-core.entry.js +13 -3
  50. package/dist/esm/taro-video-control_3.entry.js +3 -1
  51. package/dist/esm-es5/loader.js +1 -1
  52. package/dist/esm-es5/taro-components.js +1 -1
  53. package/dist/esm-es5/taro-grid-view-core.entry.js +1 -0
  54. package/dist/esm-es5/taro-input-core.entry.js +1 -1
  55. package/dist/esm-es5/taro-list-view-core.entry.js +1 -0
  56. package/dist/esm-es5/taro-picker-core_2.entry.js +1 -1
  57. package/dist/esm-es5/taro-sticky-header-core.entry.js +1 -0
  58. package/dist/esm-es5/taro-sticky-section-core.entry.js +1 -0
  59. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  60. package/dist/esm-es5/taro-textarea-core.entry.js +1 -1
  61. package/dist/taro-components/p-02aa7366.system.entry.js +1 -0
  62. package/dist/taro-components/p-05c757b7.entry.js +1 -0
  63. package/dist/taro-components/{p-4d390d17.entry.js → p-0b8b3af5.entry.js} +1 -1
  64. package/dist/taro-components/p-1c446c65.system.js +1 -1
  65. package/dist/taro-components/p-1eac7c75.system.entry.js +1 -0
  66. package/dist/taro-components/{p-3e23fa46.system.entry.js → p-39685396.system.entry.js} +1 -1
  67. package/dist/taro-components/p-4402972b.system.entry.js +1 -0
  68. package/dist/taro-components/{p-e53feb03.system.entry.js → p-58f9a827.system.entry.js} +1 -1
  69. package/dist/taro-components/p-5931c82e.entry.js +1 -0
  70. package/dist/taro-components/{p-ab84c88e.entry.js → p-7704e165.entry.js} +1 -1
  71. package/dist/taro-components/p-7c1fc8f5.system.entry.js +1 -0
  72. package/dist/taro-components/p-7df9de66.system.entry.js +1 -0
  73. package/dist/taro-components/{p-10046f1a.system.entry.js → p-a5afdc47.system.entry.js} +1 -1
  74. package/dist/taro-components/p-affb28de.entry.js +1 -0
  75. package/dist/taro-components/{p-8267b686.entry.js → p-c30d1b2d.entry.js} +1 -1
  76. package/dist/taro-components/p-dfc405a5.entry.js +1 -0
  77. package/dist/taro-components/p-e753b776.entry.js +1 -0
  78. package/dist/taro-components/taro-components.esm.js +1 -1
  79. package/dist/types/components/grid-view/grid-view.d.ts +5 -0
  80. package/dist/types/components/list-view/list-view.d.ts +5 -0
  81. package/dist/types/components/sticky-header/sticky-header.d.ts +5 -0
  82. package/dist/types/components/sticky-section/sticky-section.d.ts +5 -0
  83. package/dist/types/components/textarea/textarea.d.ts +2 -1
  84. package/dist/types/components.d.ts +52 -0
  85. package/lib/react/_virtual/_commonjsHelpers.js +35 -0
  86. package/lib/react/_virtual/_commonjsHelpers.js.map +1 -0
  87. package/lib/react/_virtual/index.js +4 -0
  88. package/lib/react/_virtual/index.js.map +1 -0
  89. package/lib/react/_virtual/index2.js +4 -0
  90. package/lib/react/_virtual/index2.js.map +1 -0
  91. package/lib/react/_virtual/index3.js +7 -0
  92. package/lib/react/_virtual/index3.js.map +1 -0
  93. package/lib/react/_virtual/index4.js +7 -0
  94. package/lib/react/_virtual/index4.js.map +1 -0
  95. package/lib/react/_virtual/index5.js +4 -0
  96. package/lib/react/_virtual/index5.js.map +1 -0
  97. package/lib/react/_virtual/react-dom.development.js +2 -0
  98. package/lib/react/_virtual/react-dom.development.js.map +1 -0
  99. package/lib/react/_virtual/react-dom.development2.js +4 -0
  100. package/lib/react/_virtual/react-dom.development2.js.map +1 -0
  101. package/lib/react/_virtual/react-dom.production.min.js +2 -0
  102. package/lib/react/_virtual/react-dom.production.min.js.map +1 -0
  103. package/lib/react/_virtual/react-dom.production.min2.js +4 -0
  104. package/lib/react/_virtual/react-dom.production.min2.js.map +1 -0
  105. package/lib/react/_virtual/react.development.js +7 -0
  106. package/lib/react/_virtual/react.development.js.map +1 -0
  107. package/lib/react/_virtual/react.development2.js +4 -0
  108. package/lib/react/_virtual/react.development2.js.map +1 -0
  109. package/lib/react/_virtual/react.production.min.js +2 -0
  110. package/lib/react/_virtual/react.production.min.js.map +1 -0
  111. package/lib/react/_virtual/react.production.min2.js +4 -0
  112. package/lib/react/_virtual/react.production.min2.js.map +1 -0
  113. package/lib/react/_virtual/scheduler.development.js +2 -0
  114. package/lib/react/_virtual/scheduler.development.js.map +1 -0
  115. package/lib/react/_virtual/scheduler.development2.js +4 -0
  116. package/lib/react/_virtual/scheduler.development2.js.map +1 -0
  117. package/lib/react/_virtual/scheduler.production.min.js +2 -0
  118. package/lib/react/_virtual/scheduler.production.min.js.map +1 -0
  119. package/lib/react/_virtual/scheduler.production.min2.js +4 -0
  120. package/lib/react/_virtual/scheduler.production.min2.js.map +1 -0
  121. package/lib/react/component-lib/index.js +3 -2
  122. package/lib/react/component-lib/index.js.map +1 -1
  123. package/lib/react/component-lib/input.js +1 -1
  124. package/lib/react/component-lib/reactify-wc.js +4 -3
  125. package/lib/react/component-lib/reactify-wc.js.map +1 -1
  126. package/lib/react/components.d.ts +81 -77
  127. package/lib/react/components.js +86 -80
  128. package/lib/react/components.js.map +1 -1
  129. package/lib/react/index.js +1 -1
  130. package/lib/react/{interfaces-4f837811.d.ts → interfaces-f526f1a2.d.ts} +4 -0
  131. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.js +29893 -0
  132. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.js.map +1 -0
  133. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.production.min.js +337 -0
  134. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.production.min.js.map +1 -0
  135. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js +52 -0
  136. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react-dom@18.2.0_react@18.2.0/node_modules/react-dom/index.js.map +1 -0
  137. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/cjs/react.development.js +2749 -0
  138. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/cjs/react.development.js.map +1 -0
  139. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/cjs/react.production.min.js +34 -0
  140. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/cjs/react.production.min.js.map +1 -0
  141. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/index.js +21 -0
  142. package/lib/react/node_modules/.pnpm/registry.npmjs.org_react@18.2.0/node_modules/react/index.js.map +1 -0
  143. package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.development.js +641 -0
  144. package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.development.js.map +1 -0
  145. package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.production.min.js +27 -0
  146. package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/cjs/scheduler.production.min.js.map +1 -0
  147. package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/index.js +21 -0
  148. package/lib/react/node_modules/.pnpm/registry.npmjs.org_scheduler@0.23.0/node_modules/scheduler/index.js.map +1 -0
  149. package/lib/react/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js +221 -0
  150. package/lib/react/node_modules/.pnpm/registry.npmjs.org_tslib@1.14.1/node_modules/tslib/tslib.es6.js.map +1 -0
  151. package/lib/react/react-component-lib/createComponent.d.ts +5 -1
  152. package/lib/react/react-component-lib/createComponent.js +9 -6
  153. package/lib/react/react-component-lib/createComponent.js.map +1 -1
  154. package/lib/react/react-component-lib/createOverlayComponent.d.ts +5 -1
  155. package/lib/react/react-component-lib/createOverlayComponent.js +4 -3
  156. package/lib/react/react-component-lib/createOverlayComponent.js.map +1 -1
  157. package/lib/react/react-component-lib/utils/attachProps.d.ts +2 -6
  158. package/lib/react/react-component-lib/utils/attachProps.js +41 -36
  159. package/lib/react/react-component-lib/utils/attachProps.js.map +1 -1
  160. package/lib/react/react-component-lib/utils/case.d.ts +4 -0
  161. package/lib/react/react-component-lib/utils/case.js +4 -0
  162. package/lib/react/react-component-lib/utils/case.js.map +1 -1
  163. package/lib/react/react-component-lib/utils/index.d.ts +5 -1
  164. package/lib/react/react-component-lib/utils/index.js +5 -1
  165. package/lib/react/react-component-lib/utils/index.js.map +1 -1
  166. package/lib/vue2/component-lib/index.js +1 -1
  167. package/lib/vue2/components-loader.d.ts +2 -0
  168. package/lib/vue2/components-loader.js +21 -0
  169. package/lib/vue2/components-loader.js.map +1 -0
  170. package/lib/vue2/components.d.ts +5 -1
  171. package/lib/vue2/components.js +142 -225
  172. package/lib/vue2/components.js.map +1 -1
  173. package/lib/vue2/index.d.ts +0 -2
  174. package/lib/vue2/index.js +1 -22
  175. package/lib/vue2/index.js.map +1 -1
  176. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue@2.6.14/node_modules/vue/dist/vue.runtime.esm.js +8494 -0
  177. package/lib/vue2/node_modules/.pnpm/registry.npmjs.org_vue@2.6.14/node_modules/vue/dist/vue.runtime.esm.js.map +1 -0
  178. package/lib/vue2/vue-component-lib/utils.d.ts +7 -3
  179. package/lib/vue2/vue-component-lib/utils.js +42 -25
  180. package/lib/vue2/vue-component-lib/utils.js.map +1 -1
  181. package/lib/vue3/component-lib/createComponent.js +2 -1
  182. package/lib/vue3/component-lib/createComponent.js.map +1 -1
  183. package/lib/vue3/component-lib/createFormsComponent.js +3 -1
  184. package/lib/vue3/component-lib/createFormsComponent.js.map +1 -1
  185. package/lib/vue3/component-lib/forwardRef.js +2 -1
  186. package/lib/vue3/component-lib/forwardRef.js.map +1 -1
  187. package/lib/vue3/component-lib/icon.js +2 -1
  188. package/lib/vue3/component-lib/icon.js.map +1 -1
  189. package/lib/vue3/component-lib/image.js +2 -1
  190. package/lib/vue3/component-lib/image.js.map +1 -1
  191. package/lib/vue3/component-lib/scroll-view.js +2 -1
  192. package/lib/vue3/component-lib/scroll-view.js.map +1 -1
  193. package/lib/vue3/component-lib/text.js +2 -1
  194. package/lib/vue3/component-lib/text.js.map +1 -1
  195. package/lib/vue3/components-loader.d.ts +2 -0
  196. package/lib/vue3/components-loader.js +13 -0
  197. package/lib/vue3/components-loader.js.map +1 -0
  198. package/lib/vue3/components.d.ts +5 -1
  199. package/lib/vue3/components.js +84 -78
  200. package/lib/vue3/components.js.map +1 -1
  201. package/lib/vue3/index.d.ts +0 -2
  202. package/lib/vue3/index.js +1 -14
  203. package/lib/vue3/index.js.map +1 -1
  204. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_reactivity@3.2.37/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1252 -0
  205. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_reactivity@3.2.37/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js.map +1 -0
  206. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-core@3.2.37/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +7856 -0
  207. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-core@3.2.37/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js.map +1 -0
  208. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-dom@3.2.37/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1702 -0
  209. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_runtime-dom@3.2.37/node_modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js.map +1 -0
  210. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_shared@3.2.37/node_modules/@vue/shared/dist/shared.esm-bundler.js +597 -0
  211. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_@vue_shared@3.2.37/node_modules/@vue/shared/dist/shared.esm-bundler.js.map +1 -0
  212. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_vue@3.2.37/node_modules/vue/dist/vue.runtime.esm-bundler.js +24 -0
  213. package/lib/vue3/node_modules/.pnpm/registry.npmjs.org_vue@3.2.37/node_modules/vue/dist/vue.runtime.esm-bundler.js.map +1 -0
  214. package/lib/vue3/vue-component-lib/utils.js +14 -5
  215. package/lib/vue3/vue-component-lib/utils.js.map +1 -1
  216. package/package.json +11 -8
  217. package/types/Ad.d.ts +2 -31
  218. package/types/AdCustom.d.ts +0 -4
  219. package/types/AnimationVideo.d.ts +0 -9
  220. package/types/AnimationView.d.ts +0 -6
  221. package/types/ArCamera.d.ts +0 -7
  222. package/types/Audio.d.ts +0 -18
  223. package/types/AwemeData.d.ts +0 -6
  224. package/types/Button.d.ts +3 -106
  225. package/types/Camera.d.ts +0 -28
  226. package/types/Canvas.d.ts +2 -17
  227. package/types/ChannelLive.d.ts +0 -2
  228. package/types/ChannelVideo.d.ts +0 -6
  229. package/types/Checkbox.d.ts +1 -8
  230. package/types/CheckboxGroup.d.ts +0 -2
  231. package/types/CommentDetail.d.ts +4 -10
  232. package/types/CommentList.d.ts +4 -20
  233. package/types/ContactButton.d.ts +0 -7
  234. package/types/CoverImage.d.ts +0 -11
  235. package/types/CoverView.d.ts +0 -26
  236. package/types/Editor.d.ts +0 -10
  237. package/types/FollowSwan.d.ts +0 -3
  238. package/types/Form.d.ts +1 -9
  239. package/types/FunctionalPageNavigator.d.ts +0 -11
  240. package/types/GridView.d.ts +37 -0
  241. package/types/Icon.d.ts +0 -14
  242. package/types/Image.d.ts +0 -31
  243. package/types/InlinePaymentPanel.d.ts +0 -9
  244. package/types/Input.d.ts +0 -62
  245. package/types/Label.d.ts +3 -2
  246. package/types/Lifestyle.d.ts +0 -3
  247. package/types/Like.d.ts +0 -17
  248. package/types/ListView.d.ts +12 -0
  249. package/types/LivePlayer.d.ts +1 -58
  250. package/types/LivePusher.d.ts +0 -77
  251. package/types/Login.d.ts +0 -5
  252. package/types/Lottie.d.ts +0 -16
  253. package/types/Map.d.ts +19 -136
  254. package/types/MatchMedia.d.ts +0 -7
  255. package/types/MovableArea.d.ts +0 -1
  256. package/types/MovableView.d.ts +0 -35
  257. package/types/NavigationBar.d.ts +0 -6
  258. package/types/Navigator.d.ts +0 -27
  259. package/types/OfficialAccount.d.ts +0 -12
  260. package/types/OpenData.d.ts +0 -20
  261. package/types/PageContainer.d.ts +0 -21
  262. package/types/PageMeta.d.ts +0 -16
  263. package/types/Picker.d.ts +17 -45
  264. package/types/PickerView.d.ts +1 -12
  265. package/types/Progress.d.ts +0 -13
  266. package/types/Radio.d.ts +1 -8
  267. package/types/RadioGroup.d.ts +0 -2
  268. package/types/RichText.d.ts +1 -22
  269. package/types/RootPortal.d.ts +1 -2
  270. package/types/RtcRoom.d.ts +0 -16
  271. package/types/RtcRoomItem.d.ts +0 -3
  272. package/types/ScrollView.d.ts +43 -46
  273. package/types/ShareElement.d.ts +2 -7
  274. package/types/Slider.d.ts +0 -19
  275. package/types/StickyHeader.d.ts +12 -0
  276. package/types/StickySection.d.ts +18 -0
  277. package/types/Swiper.d.ts +0 -44
  278. package/types/SwiperItem.d.ts +0 -2
  279. package/types/Switch.d.ts +2 -11
  280. package/types/TabItem.d.ts +0 -4
  281. package/types/Tabs.d.ts +0 -8
  282. package/types/Text.d.ts +0 -7
  283. package/types/Textarea.d.ts +2 -38
  284. package/types/Video.d.ts +1 -112
  285. package/types/View.d.ts +0 -25
  286. package/types/VoipRoom.d.ts +0 -6
  287. package/types/WebView.d.ts +0 -6
  288. package/types/index.d.ts +4 -0
  289. package/types/index.vue3.d.ts +8 -0
  290. package/dist/taro-components/p-0895120a.system.entry.js +0 -1
  291. package/dist/taro-components/p-0aaf66d2.entry.js +0 -1
package/types/Canvas.d.ts CHANGED
@@ -5,74 +5,60 @@ interface CanvasProps extends StandardProps<any, CanvasTouchEvent> {
5
5
  * @supported weapp, alipay, tt
6
6
  */
7
7
  type?: string
8
-
9
8
  /** canvas 组件的唯一标识符,若指定了 type 则无需再指定该属性
10
- * @supported weapp, swan, tt, qq, jd
9
+ * @supported weapp, swan, tt, qq, jd, h5
11
10
  */
12
11
  canvasId?: string
13
-
14
12
  /** 当在 canvas 中移动时且有绑定手势事件时,禁止屏幕滚动以及下拉刷新
15
13
  * @default false
16
14
  * @supported weapp, alipay, swan, qq, jd
17
15
  */
18
16
  disableScroll?: boolean
19
-
20
17
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
21
18
  * @supported h5
22
19
  */
23
20
  nativeProps?: Record<string, unknown>
24
-
25
21
  /** 组件唯一标识符。
26
22
  * 注意:同一页面中的 id 不可重复。
27
23
  * @supported alipay
28
24
  */
29
25
  id?: string
30
-
31
26
  /**
32
27
  * @supported alipay
33
28
  */
34
29
  width?: string
35
-
36
30
  /**
37
31
  * @supported alipay
38
32
  */
39
33
  height?: string
40
-
41
34
  /** 手指触摸动作开始
42
35
  * @supported weapp, alipay, swan, tt, qq, jd
43
36
  */
44
37
  onTouchStart?: CanvasTouchEventFunction
45
-
46
38
  /** 手指触摸后移动
47
39
  * @supported weapp, alipay, swan, tt, qq, jd
48
40
  */
49
41
  onTouchMove?: CanvasTouchEventFunction
50
-
51
42
  /** 手指触摸动作结束
52
43
  * @supported weapp, alipay, swan, tt, qq, jd
53
44
  */
54
45
  onTouchEnd?: CanvasTouchEventFunction
55
-
56
46
  /** 手指触摸动作被打断,如来电提醒,弹窗
57
47
  * @supported weapp, alipay, swan, tt, qq, jd
58
48
  */
59
49
  onTouchCancel?: CanvasTouchEventFunction
60
-
61
50
  /** 手指长按 500ms 之后触发,触发了长按事件后进行移动不会触发屏幕的滚动
62
- * @supported weapp, alipay, swan, qq, jd
51
+ * @supported weapp, alipay, swan, qq, jd, h5
63
52
  */
64
53
  onLongTap?: CommonEventFunction
65
-
66
54
  /** 当发生错误时触发 error 事件,detail = {errMsg: 'something wrong'}
67
55
  * @supported weapp, swan, qq, jd
68
56
  */
69
57
  onError?: CommonEventFunction<CanvasProps.onErrorEventDetail>
70
-
71
58
  /** 点击。
72
59
  * @supported alipay
73
60
  */
74
61
  onTap?: CommonEventFunction
75
-
76
62
  /** canvas 组件初始化成功触发。
77
63
  * @supported alipay
78
64
  */
@@ -83,7 +69,6 @@ declare namespace CanvasProps {
83
69
  errMsg: string
84
70
  }
85
71
  }
86
-
87
72
  /** 画布
88
73
  *
89
74
  * `<Canvas />` 组件的 RN 版本尚未实现。
@@ -5,13 +5,11 @@ interface ChannelLiveProps extends StandardProps {
5
5
  * @supported weapp
6
6
  */
7
7
  feedId: string
8
-
9
8
  /** 视频号 id,以“sph”开头的id,可在视频号助手获取。视频号必须与当前小程序相同主体。
10
9
  * @supported weapp
11
10
  */
12
11
  finderUserName: string
13
12
  }
14
-
15
13
  /**
16
14
  * 小程序内嵌视频号直播组件,展示视频号直播状态和封面,并无弹窗跳转至视频号。注意:使用该组件打开的视频号视频需要与小程序的主体一致。
17
15
  * @classification media
@@ -5,7 +5,6 @@ interface ChannelVideoProps extends StandardProps {
5
5
  * @supported weapp
6
6
  */
7
7
  feedId: string
8
-
9
8
  /** 视频号 id,以“sph”开头的id,可在视频号助手获取。视频号必须与当前小程序相同主体。
10
9
  * @supported weapp
11
10
  */
@@ -15,31 +14,26 @@ interface ChannelVideoProps extends StandardProps {
15
14
  * @default false
16
15
  */
17
16
  loop?: boolean
18
-
19
17
  /** 是否静音播放
20
18
  * @supported weapp
21
19
  * @default false
22
20
  */
23
21
  muted?: boolean
24
-
25
22
  /** 当视频大小与 video 容器大小不一致时,视频的表现形式
26
23
  * @supported weapp
27
24
  * @default "contain"
28
25
  */
29
26
  objectFit?: 'fill' | 'contain' | 'cover'
30
-
31
27
  /** 是否自动播放
32
28
  * @supported weapp
33
29
  * @default false
34
30
  */
35
31
  autoplay?: boolean
36
-
37
32
  /** 视频播放出错时触发
38
33
  * @supported weapp
39
34
  */
40
35
  onError?: CommonEventFunction
41
36
  }
42
-
43
37
  /**
44
38
  * 小程序内嵌视频号视频组件,支持在小程序中播放视频号视频,并无弹窗跳转至视频号。注意:使用该组件打开的视频号视频需要与小程序相同主体或关联主体。
45
39
  * @classification media
@@ -2,37 +2,31 @@ import { ComponentType } from 'react'
2
2
  import { StandardProps, CommonEventFunction, FormItemProps } from './common'
3
3
  interface CheckboxProps extends StandardProps {
4
4
  /** `<Checkbox/>`标识,选中时触发`<CheckboxGroup/>`的 change 事件,并携带 `<Checkbox/>` 的 value
5
- * @supported weapp, alipay, swan, tt, qq, jd, rn
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
6
6
  */
7
7
  value: string
8
-
9
8
  /** 是否禁用
10
9
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
11
10
  * @default false
12
11
  */
13
12
  disabled?: boolean
14
-
15
13
  /** 当前是否选中,可用来设置默认选中
16
14
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
17
15
  * @default false
18
16
  */
19
17
  checked?: boolean
20
-
21
18
  /** checkbox的颜色,同 css 的 color
22
19
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
23
20
  */
24
21
  color?: string
25
-
26
22
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
27
23
  * @supported h5
28
24
  */
29
25
  nativeProps?: Record<string, unknown>
30
-
31
26
  /** 无障碍访问,(属性)元素的额外描述
32
27
  * @supported qq
33
28
  */
34
29
  ariaLabel?: string
35
-
36
30
  /** 选中项发生变化时触发 change 事件,小程序无此 API
37
31
  * @supported alipay, h5, rn
38
32
  */
@@ -40,7 +34,6 @@ interface CheckboxProps extends StandardProps {
40
34
  value: string[]
41
35
  }>
42
36
  }
43
-
44
37
  /** 多选项目
45
38
  * @classification forms
46
39
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
@@ -5,7 +5,6 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
5
5
  * @supported alipay, tt, h5
6
6
  */
7
7
  name?: string
8
-
9
8
  /** `<CheckboxGroup/>` 中选中项发生改变是触发 change 事件
10
9
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
11
10
  */
@@ -13,7 +12,6 @@ interface CheckboxGroupProps extends StandardProps, FormItemProps {
13
12
  value: string[]
14
13
  }>
15
14
  }
16
-
17
15
  /** 多项选择器,内部由多个checkbox组成
18
16
  * @classification forms
19
17
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
@@ -5,46 +5,43 @@ interface CommentDetailProps extends StandardProps {
5
5
  * @supported swan
6
6
  */
7
7
  commentParam: CommentDetailProps.ICommentParam
8
-
9
8
  /** 评论 ID
10
9
  * @supported swan
11
10
  */
12
11
  srid: string
13
-
14
12
  /** 滚动方式为页面滚动,若组件作为浮层使用,该参数需设为 false
15
13
  * @supported swan
16
14
  * @default true
17
15
  */
18
16
  isPageScroll?: boolean
19
-
20
17
  /** 是否需要底部 toolbar,若使用开发者自定义的底部 toolbar,该参数需设为 false
21
18
  * @supported swan
22
19
  * @default true
23
20
  */
24
21
  needToolbar?: boolean
25
-
26
22
  /** 是否需要详情顶部父级评论的点赞按钮,默认显示
27
23
  * @supported swan
28
24
  * @default true
29
25
  */
30
26
  needLikeBtn?: boolean
31
-
32
27
  /** 删除详情后是否返回列表项,默认一站式逻辑。若使用浮层,请设置改属性为 false
33
28
  * @supported swan
34
29
  * @default true
35
30
  */
36
31
  backListAfterDelete?: boolean
37
-
38
32
  /** 用于调起评论发布器发布评论
39
33
  * @supported swan
40
34
  * @default false
41
35
  */
42
36
  addComment?: boolean
43
-
44
37
  /** 删除整体详情内容时触发,返回数据为{status, data:{srid}}
45
38
  * @supported swan
46
39
  */
47
40
  onDelete?: CommonEventFunction
41
+ /** 评论发布成功时触发,返回数据为 {status, data:{srid}}
42
+ * @supported swan
43
+ */
44
+ onReply?: CommonEventFunction
48
45
  }
49
46
  namespace CommentDetailProps {
50
47
  interface ICommentParam {
@@ -52,17 +49,14 @@ namespace CommentDetailProps {
52
49
  * @example "20200101"
53
50
  */
54
51
  snid: string
55
-
56
52
  /** 文章标题 */
57
53
  title: string
58
-
59
54
  /** 智能小程序内页链接,最长不能超过 194 字符
60
55
  * @example "/pages/index/index"
61
56
  */
62
57
  path: string
63
58
  }
64
59
  }
65
-
66
60
  /** 评论详情
67
61
  * @classification open
68
62
  * @supported swan
@@ -5,66 +5,59 @@ interface CommentListProps extends StandardProps {
5
5
  * @supported swan
6
6
  */
7
7
  commentParam: CommentListProps.ICommentParam
8
-
9
8
  /** 底部 toolbar 的相关配置
10
9
  * @supported swan
11
10
  */
12
11
  toolbarConfig?: CommentListProps.IToolbarConfig
13
-
14
12
  /** 滚动方式为页面滚动,若组件作为浮层使用,该参数需设为 false
15
13
  * @supported swan
16
14
  * @default true
17
15
  */
18
16
  isPageScroll?: boolean
19
-
20
17
  /** 是否需要底部 toolbar ,若使用开发者自定义的底部 toolbar ,该参数需设为 false
21
18
  * @supported swan
22
19
  * @default true
23
20
  */
24
21
  needToolbar?: boolean
25
-
26
22
  /** 用于调起评论发布器发布评论,发布成功插入列表第一条,且滚动到列表顶部
27
23
  * @supported swan
28
24
  * @default false
29
25
  */
30
26
  addComment?: boolean
31
-
32
27
  /** 点击单条评论跳转的详情页页面 path ,若没有配置则不会发生跳转;配置的前提是列表与详情均是页面级
33
28
  * @supported swan
34
29
  */
35
30
  detailPath?: string
36
-
37
31
  /** 是否折叠列表,默认全展示
38
32
  * @supported swan
39
33
  * @default false
40
34
  */
41
35
  isFolded?: boolean
42
-
43
36
  /** 折叠后列表展示最大条数,默认 3 条,最多 10 条
44
37
  * @supported swan
45
38
  * @default 3
46
39
  */
47
40
  foldNum?: number
48
-
49
41
  /** 传入放置评论组件的页面路径,如'/pages/list/index',组件内部会触发跳转逻辑
50
42
  * @supported swan
51
43
  */
52
44
  viewMorePath?: string
53
-
54
45
  /** 『全部 xx 条』的样式,目前只支持开发者自定义字体颜色
55
46
  * @supported swan
56
47
  */
57
48
  viewMoreStyle?: CommentListProps.IViewMoreStyle
58
-
59
49
  /** 绑定点击单条评论的事件,点击单条评论时触发,返回数据为{status, data:{srid}}
60
50
  * @supported swan
61
51
  */
62
52
  onClickComment?: CommonEventFunction
63
-
64
53
  /** 绑定点击更多事件,若除了页面跳转还需要其他操作,可通过该回调执行;若为浮层,也可使用该回调自定义交互逻辑
65
54
  * @supported swan
66
55
  */
67
56
  onViewMore?: CommonEventFunction
57
+ /** 评论发布成功时触发,返回数据为 {status, data:{srid}}
58
+ * @supported swan
59
+ */
60
+ onReply?: CommonEventFunction
68
61
  }
69
62
  namespace CommentListProps {
70
63
  interface ICommentParam {
@@ -72,15 +65,12 @@ namespace CommentListProps {
72
65
  * @example "20200101"
73
66
  */
74
67
  snid: string
75
-
76
68
  /** 文章标题 */
77
69
  title: string
78
-
79
70
  /** 智能小程序内页链接,最长不能超过 194 字符
80
71
  * @example "/pages/index/index"
81
72
  */
82
73
  path: string
83
-
84
74
  /** 数组第一项用于收藏功能的展示图片
85
75
  * @default ['https://b.bdstatic.com/miniapp/images/demo-dog.png']
86
76
  */
@@ -89,25 +79,20 @@ namespace CommentListProps {
89
79
  interface IToolbarConfig {
90
80
  /** 输入框提示文字 */
91
81
  placeholder?: string
92
-
93
82
  /** 显示的互动模块,对应默认值分别是:评论数、点赞、收藏、分享
94
83
  * @default ['comment', 'like', 'favor', 'share']
95
84
  */
96
85
  moduleList?: string
97
-
98
86
  /** 若 moduleList 里配置了 share 模块,该参数为必填 */
99
87
  share?: IShare
100
88
  }
101
89
  interface IShare {
102
90
  /** 分享标题 */
103
91
  title: string
104
-
105
92
  /** 分享内容 */
106
93
  content?: string
107
-
108
94
  /** 分享图标 */
109
95
  imageUrl?: string
110
-
111
96
  /** 页面 path ,必须是以 / 开头的完整路径,如果 path 中参数包含中文字符,需对中文字符进行编码 */
112
97
  path?: string
113
98
  }
@@ -118,7 +103,6 @@ namespace CommentListProps {
118
103
  color?: string
119
104
  }
120
105
  }
121
-
122
106
  /** 评论列表
123
107
  * @classification open
124
108
  * @supported swan
@@ -5,35 +5,29 @@ interface ContactButtonProps extends StandardProps {
5
5
  * @supported alipay
6
6
  */
7
7
  tntInstId: string
8
-
9
8
  /** 必填。聊天窗编码,每个聊天窗的唯一编码。
10
9
  * @supported alipay
11
10
  */
12
11
  scene: string
13
-
14
12
  /** 选填。咨询按钮大小,正方形设置边长(如25*25 px)。
15
13
  * @supported alipay
16
14
  * @default 25
17
15
  */
18
16
  size?: number | string
19
-
20
17
  /** 选填。咨询按钮颜色,默认白底蓝色。
21
18
  * @supported alipay
22
19
  * @default "#00A3FF"
23
20
  */
24
21
  color?: string
25
-
26
22
  /** 选填。咨询按钮头像。
27
23
  * @supported alipay
28
24
  */
29
25
  icon?: string
30
-
31
26
  /** 选填。支付宝访客用户ID(2088开头)。
32
27
  * 说明: 客服回答问题时,如客户已离开咨询窗口,则通过推送消息到支付宝 card 中提醒客户。
33
28
  * @supported alipay
34
29
  */
35
30
  alipayCardNo?: string
36
-
37
31
  /** 选填。该属性主要用于传递一些扩展信息给组件,以实现一些高级功能。该属性值的生成方式为:encodeURIComponent({"字段名":"字段值"}), 其中,字段名和字段值要根据实际使用的功能进行替换。
38
32
  * 目前通过传入扩展信息可支持的 3 个功能:
39
33
  * 1.访客名片。需传 cinfo 和 key 两个扩展字段,代码形如在云客服中进入 设置 > 服务窗配置 > 聊天窗 URL。点击操作栏中的 聊天窗 URL ,获取 tntInstId(企业编码)和 scene(聊天窗编码)。encodeURIComponent({"cinfo":"生成的 cinfo","key":"生成的key"}),cinfo 和 key 的值说明 支付宝小程序接入访客名片;
@@ -43,7 +37,6 @@ interface ContactButtonProps extends StandardProps {
43
37
  */
44
38
  extInfo?: string
45
39
  }
46
-
47
40
  /** 智能客服
48
41
  * @classification open
49
42
  * @supported alipay
@@ -5,58 +5,47 @@ interface CoverImageProps extends StandardProps {
5
5
  * @supported weapp, alipay, swan, qq, jd, h5
6
6
  */
7
7
  src: string
8
-
9
8
  /** 格式固定为 https://servicewechat.com/{appid}/{version}/page-frame.html,其中 {appid} 为小程序的 appid,{version} 为小程序的版本号,版本号为 0 表示为开发版、体验版以及审核版本,版本号为 devtools 表示为开发者工具,其余为正式版本;
10
9
  * @supported weapp
11
10
  */
12
11
  referrerPolicy?: 'origin' | 'no-referrer'
13
-
14
12
  /** 设置与容器顶部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 top 值,该属性优先级高于 fixed-bottom,CSS 设置的 position、top、bottom 值
15
13
  * @supported swan
16
14
  */
17
15
  fixedTop?: string
18
-
19
16
  /** 设置与容器右侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 right 值,该属性优先级高于 CSS 设置的 position、left、right 值
20
17
  * @supported swan
21
18
  */
22
19
  fixedRight?: string
23
-
24
20
  /** 设置与容器底部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 bottom 值,该属性优先级高于 CSS 设置的 position、top、bottom 值
25
21
  * @supported swan
26
22
  */
27
23
  fixedBottom?: string
28
-
29
24
  /** 设置与容器左侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 left 值,该属性优先级高于 fixed-right,CSS 设置的 position、left、right 值
30
25
  * @supported swan
31
26
  */
32
27
  fixedLeft?: string
33
-
34
28
  /** 无障碍访问,(角色)标识元素的作用
35
29
  * @supported qq
36
30
  */
37
31
  ariaRole?: string
38
-
39
32
  /** 无障碍访问,(属性)元素的额外描述
40
33
  * @supported qq
41
34
  */
42
35
  ariaLabel?: string
43
-
44
36
  /** 图片加载成功时触发
45
37
  * @supported weapp, swan, qq, jd, h5
46
38
  */
47
39
  onLoad?: CommonEventFunction
48
-
49
40
  /** 图片加载失败时触发
50
41
  * @supported weapp, swan, qq, jd, h5
51
42
  */
52
43
  onError?: CommonEventFunction
53
-
54
44
  /** 点击事件回调。
55
45
  * @supported alipay
56
46
  */
57
47
  onTap?: CommonEventFunction
58
48
  }
59
-
60
49
  /** 覆盖在原生组件之上的图片视图。可覆盖的原生组件同cover-view,支持嵌套在cover-view里。
61
50
  * @classification viewContainer
62
51
  * @supported weapp, alipay, swan, qq, jd, h5, harmony
@@ -6,141 +6,115 @@ interface CoverViewProps extends ViewProps {
6
6
  * @supported weapp, alipay, swan, qq, jd
7
7
  */
8
8
  scrollTop?: number
9
-
10
9
  /** 设置与容器顶部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 top 值,该属性优先级高于 fixed-bottom,CSS 设置的 position、top、bottom 值
11
10
  * @supported swan
12
11
  */
13
12
  fixedTop?: string
14
-
15
13
  /** 设置与容器右侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 right 值,该属性优先级高于 CSS 设置的 position、left、right 值
16
14
  * @supported swan
17
15
  */
18
16
  fixedRight?: string
19
-
20
17
  /** 设置与容器底部的固定距离,效果相当于在 CSS 中设置 position: fixed 和 bottom 值,该属性优先级高于 CSS 设置的 position、top、bottom 值
21
18
  * @supported swan
22
19
  */
23
20
  fixedBottom?: string
24
-
25
21
  /** 设置与容器左侧的固定距离,效果相当于在 CSS 中设置 position: fixed 和 left 值,该属性优先级高于 fixed-right,CSS 设置的 position、left、right 值
26
22
  * @supported swan
27
23
  */
28
24
  fixedLeft?: string
29
-
30
25
  /** 无障碍访问,(角色)标识元素的作用
31
26
  * @supported qq
32
27
  */
33
28
  ariaRole?: string
34
-
35
29
  /** 无障碍访问,(属性)元素的额外描述
36
30
  * @supported qq
37
31
  */
38
32
  ariaLabel?: string
39
-
40
33
  /** 允许横向滚动。
41
34
  * @supported alipay
42
35
  * @default false
43
36
  */
44
37
  scrollX?: boolean
45
-
46
38
  /** 允许纵向滚动。
47
39
  * @supported alipay
48
40
  * @default false
49
41
  */
50
42
  scrollY?: boolean
51
-
52
43
  /** 距顶部/左边多远时(单位px),触发 scrolltoupper 事件。
53
44
  * @supported alipay
54
45
  * @default 50
55
46
  */
56
47
  upperThreshold?: number
57
-
58
48
  /** 距底部/右边多远时(单位px),触发 scrolltolower 事件。
59
49
  * @supported alipay
60
50
  * @default 50
61
51
  */
62
52
  lowerThreshold?: number
63
-
64
53
  /** 设置横向滚动条位置。
65
54
  * @supported alipay
66
55
  */
67
56
  scrollLeft?: number
68
-
69
57
  /** 滚动到子元素,值应为某子元素的 id。当滚动到该元素时,元素顶部对齐滚动区域顶部。
70
58
  * 说明:scroll-into-view 的优先级高于 scroll-top。
71
59
  * @supported alipay
72
60
  */
73
61
  scrollIntoView?: string
74
-
75
62
  /** 在设置滚动条位置时使用动画过渡。
76
63
  * @supported alipay
77
64
  * @default false
78
65
  */
79
66
  scrollWithAnimation?: boolean
80
-
81
67
  /** 当 scroll-with-animation设置为 true 时,可以设置 scroll-animation-duration 来控制动画的执行时间,单位 ms。
82
68
  * @supported alipay
83
69
  */
84
70
  scrollAnimationDuration?: number
85
-
86
71
  /** 当点击 iOS 顶部状态栏或者双击 Android 标题栏时,滚动条返回顶部,只支持竖向。
87
72
  * @supported alipay
88
73
  * @default false
89
74
  */
90
75
  enableBackToTop?: boolean
91
-
92
76
  /** 纵向滚动时,当滚动到顶部或底部时,强制禁止触发页面滚动,仍然只触发 scroll-view 自身的滚动。
93
77
  * @supported alipay
94
78
  * @default false
95
79
  */
96
80
  trapScroll?: boolean
97
-
98
81
  /** 发生滚动前,对滚动方向进行判断,当方向是顶部/左边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到顶部/左边,禁止滚动。
99
82
  * @supported alipay
100
83
  */
101
84
  disableLowerScroll?: string
102
-
103
85
  /** 发生滚动前,对滚动方向进行判断,当方向是底部/右边时,如果值为 always 将始终禁止滚动,如果值为 out-of-bounds 且当前已经滚动到底部/右边,禁止滚动。
104
86
  * @supported alipay
105
87
  */
106
88
  disableUpperScroll?: string
107
-
108
89
  /** 滚动到顶部/左边,会触发 scrolltoupper 事件。
109
90
  * @supported alipay
110
91
  */
111
92
  onScrollToUpper?: CommonEventFunction
112
-
113
93
  /** 滚动到底部/右边,会触发 scrolltolower事件。
114
94
  * @supported alipay
115
95
  */
116
96
  onScrollToLower?: CommonEventFunction
117
-
118
97
  /** 滚动时触发,event.detail = {scrollLeft, scrollTop, scrollHeight, scrollWidth}。
119
98
  * @supported alipay
120
99
  */
121
100
  onScroll?: CommonEventFunction
122
-
123
101
  /** 触摸动作开始。
124
102
  * @supported alipay
125
103
  */
126
104
  onTouchStart?: CommonEventFunction
127
-
128
105
  /** 触摸后移动。
129
106
  * @supported alipay
130
107
  */
131
108
  onTouchMove?: CommonEventFunction
132
-
133
109
  /** 触摸动作结束。
134
110
  * @supported alipay
135
111
  */
136
112
  onTouchEnd?: CommonEventFunction
137
-
138
113
  /** 触摸动作被打断,如来电提醒、弹窗。
139
114
  * @supported alipay
140
115
  */
141
116
  onTouchCancel?: CommonEventFunction
142
117
  }
143
-
144
118
  /** 覆盖在原生组件之上的文本视图。可覆盖的原生组件包括 map、video、canvas、camera、live-player、live-pusher 只支持嵌套 cover-view、cover-image,可在 cover-view 中使用 button。
145
119
  * @classification viewContainer
146
120
  * @supported weapp, alipay, swan, qq, jd, h5