@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/Input.d.ts CHANGED
@@ -5,163 +5,136 @@ interface InputProps extends StandardProps, FormItemProps {
5
5
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
6
6
  */
7
7
  value?: string
8
-
9
8
  /** input 的类型
10
9
  * @default "text"
11
10
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
12
11
  */
13
12
  type?: keyof InputProps.Type
14
-
15
13
  /** 是否是密码类型
16
14
  * @default false
17
15
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
18
16
  */
19
17
  password?: boolean
20
-
21
18
  /** 输入框为空时占位符
22
19
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
23
20
  */
24
21
  placeholder?: string
25
-
26
22
  /** 指定 placeholder 的样式
27
23
  * @supported weapp, alipay, swan, tt, qq, jd, rn
28
24
  */
29
25
  placeholderStyle?: string
30
-
31
26
  /** 指定 placeholder 的样式类
32
27
  * @default "input-placeholder"
33
28
  * @supported weapp, alipay, swan, tt, qq, jd
34
29
  */
35
30
  placeholderClass?: string
36
-
37
31
  /** 指定 placeholder 的文本颜色
38
32
  * @supported rn
39
33
  */
40
34
  placeholderTextColor?: string
41
-
42
35
  /** 是否禁用
43
36
  * @default false
44
37
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
45
38
  */
46
39
  disabled?: boolean
47
-
48
40
  /** 最大输入长度,设置为 -1 的时候不限制最大长度
49
41
  * @default 140
50
42
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
51
43
  */
52
44
  maxlength?: number
53
-
54
45
  /** 指定光标与键盘的距离,单位 px 。取 input 距离底部的距离和 cursor-spacing 指定的距离的最小值作为光标与键盘的距离
55
46
  * @default 0
56
47
  * @supported weapp, swan, tt, qq, jd
57
48
  */
58
49
  cursorSpacing?: number
59
-
60
50
  /** (即将废弃,请直接使用 focus )自动聚焦,拉起键盘
61
51
  * @default false
62
52
  * @deprecated
63
53
  * @supported weapp, qq, jd, h5
64
54
  */
65
55
  autoFocus?: boolean
66
-
67
56
  /** 获取焦点
68
57
  * @default false
69
58
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
70
59
  */
71
60
  focus?: boolean
72
-
73
61
  /** 设置键盘右下角按钮的文字,仅在type='text'时生效
74
62
  * @alipay confirm-type 与 enableNative 属性冲突,若希望 confirm-type 生效,enableNative 不能设定为 false,而且不能设定 always-system
75
63
  * @default done
76
64
  * @supported weapp, alipay, swan, tt, qq, jd, rn
77
65
  */
78
66
  confirmType?: keyof InputProps.ConfirmType
79
-
80
67
  /** 点击键盘右下角按钮时是否保持键盘不收起
81
68
  * @default false
82
69
  * @supported weapp, alipay, swan, tt, qq, jd
83
70
  */
84
71
  confirmHold?: boolean
85
-
86
72
  /** 指定focus时的光标位置
87
73
  * @supported weapp, alipay, swan, tt, qq, jd, rn
88
74
  */
89
75
  cursor?: number
90
-
91
76
  /** 光标起始位置,自动聚集时有效,需与selection-end搭配使用
92
77
  * @default -1
93
78
  * @supported weapp, alipay, swan, tt, qq, jd, rn
94
79
  */
95
80
  selectionStart?: number
96
-
97
81
  /** 光标结束位置,自动聚集时有效,需与selection-start搭配使用
98
82
  * @default -1
99
83
  * @supported weapp, alipay, swan, tt, qq, jd, rn
100
84
  */
101
85
  selectionEnd?: number
102
-
103
86
  /** 键盘弹起时,是否自动上推页面
104
87
  * @default true
105
88
  * @supported weapp, swan, tt, qq, jd
106
89
  */
107
90
  adjustPosition?: boolean
108
-
109
91
  /** focus 时,点击页面的时候不收起键盘
110
92
  * @default false
111
93
  * @supported weapp, tt
112
94
  */
113
95
  holdKeyboard?: boolean
114
-
115
96
  /**
116
97
  * 强制 input 处于同层状态,默认 focus 时 input 会切到非同层状态 (仅在 iOS 下生效)
117
98
  * @default false
118
99
  * @supported weapp
119
100
  */
120
101
  alwaysEmbed?: boolean
121
-
122
102
  /**
123
103
  * 安全键盘加密公钥的路径,只支持包内路径
124
104
  * @supported weapp
125
105
  */
126
106
  safePasswordCertPath?: string
127
-
128
107
  /**
129
108
  * 安全键盘输入密码长度
130
109
  * @supported weapp
131
110
  */
132
111
  safePasswordLength?: number
133
-
134
112
  /**
135
113
  * 安全键盘加密时间戳
136
114
  * @supported weapp
137
115
  */
138
116
  safePasswordTimeStamp?: number
139
-
140
117
  /**
141
118
  * 安全键盘加密盐值
142
119
  * @supported weapp
143
120
  */
144
121
  safePasswordNonce?: string
145
-
146
122
  /**
147
123
  * 安全键盘计算hash盐值,若指定custom-hash 则无效
148
124
  * @supported weapp
149
125
  */
150
126
  safePasswordSalt?: string
151
-
152
127
  /**
153
128
  * 安全键盘计算hash的算法表达式,如 `md5(sha1('foo' + sha256(sm3(password + 'bar'))))`
154
129
  * @supported weapp
155
130
  */
156
131
  safePasswordCustomHash?: string
157
-
158
132
  /**
159
133
  * 当 type 为 number, digit, idcard 数字键盘是否随机排列
160
134
  * @default false
161
135
  * @supported alipay
162
136
  */
163
137
  randomNumber?: boolean
164
-
165
138
  /**
166
139
  * 是否为受控组件。为 true 时,value 内容会完全受 setData 控制。
167
140
  *
@@ -170,60 +143,44 @@ interface InputProps extends StandardProps, FormItemProps {
170
143
  * @supported alipay
171
144
  */
172
145
  controlled?: boolean
173
-
174
146
  /** 用于透传 `WebComponents` 上的属性到内部 H5 标签上
175
147
  * @supported h5
176
148
  */
177
149
  nativeProps?: Record<string, unknown>
178
-
179
150
  /** 组件名字,用于表单提交获取数据。
180
151
  * @supported alipay
181
152
  */
182
153
  name?: string
183
-
184
154
  /** 是否强制使用系统键盘和 Web-view 创建的 input 元素。为 true 时,confirm-type、confirm-hold 可能失效。
185
155
  * @default false
186
156
  * @supported alipay
187
157
  */
188
158
  alwaysSystem?: boolean
189
-
190
159
  /** 无障碍访问,(属性)元素的额外描述
191
160
  * @supported qq
192
161
  */
193
162
  ariaLabel?: string
194
-
195
- /** 是否启用原生键盘。
196
- * @supported alipay
197
- * @default true
198
- */
199
- enableNative?: boolean
200
-
201
163
  /** 当键盘输入时,触发input事件,event.detail = {value, cursor, keyCode},处理函数可以直接 return 一个字符串,将替换输入框的内容。
202
164
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
203
165
  */
204
166
  onInput?: CommonEventFunction<InputProps.inputEventDetail>
205
-
206
167
  /** 输入框聚焦时触发,event.detail = { value, height },height 为键盘高度
207
168
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
208
169
  */
209
170
  onFocus?: CommonEventFunction<InputProps.inputForceEventDetail>
210
-
211
171
  /** 输入框失去焦点时触发
212
172
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
213
173
  */
214
174
  onBlur?: CommonEventFunction<InputProps.inputValueEventDetail>
215
-
216
175
  /** 点击完成按钮时触发
217
176
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
218
177
  * @h5 借用[Form 组件](./form)的`onSubmit`事件来替代
219
178
  */
220
179
  onConfirm?: CommonEventFunction<InputProps.inputValueEventDetail>
221
-
222
180
  /** 键盘高度发生变化的时候触发此事件
223
181
  * @supported weapp, qq
224
182
  */
225
183
  onKeyboardHeightChange?: CommonEventFunction<InputProps.onKeyboardHeightChangeEventDetail>
226
-
227
184
  /** 用户昵称审核完毕后触发,仅在 type 为 "nickname" 时有效,event.detail = { pass, timeout }
228
185
  * @supported weapp
229
186
  */
@@ -236,81 +193,64 @@ declare namespace InputProps {
236
193
  * @supported weapp, alipay, h5, rn
237
194
  */
238
195
  text
239
-
240
196
  /** 数字输入键盘
241
197
  * @supported weapp, alipay, h5, rn
242
198
  */
243
199
  number
244
-
245
200
  /** 身份证输入键盘
246
201
  *@supported weapp, alipay, rn
247
202
  */
248
203
  idcard
249
-
250
204
  /** 带小数点的数字键盘
251
205
  * @supported weapp, alipay, h5, rn
252
206
  */
253
207
  digit
254
-
255
208
  /** 密码安全输入键盘[指引](https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/safe-password.html)
256
209
  * @supported weapp, alipay
257
210
  */
258
211
  'safe-password'
259
-
260
212
  /** 昵称输入键盘
261
213
  * @supported weapp, alipay
262
214
  */
263
215
  nickname
264
-
265
216
  /** 数字输入键盘
266
217
  * @supported alipay
267
218
  */
268
219
  numberpad
269
-
270
220
  /** 带小数点的数字键盘
271
221
  * @supported alipay
272
222
  */
273
223
  digitpad
274
-
275
224
  /** 身份证输入键盘
276
225
  * @supported alipay
277
226
  */
278
227
  idcardpad
279
228
  }
280
-
281
229
  /** Confirm 类型 */
282
230
  interface ConfirmType {
283
231
  /** 右下角按钮为“发送” */
284
232
  send
285
-
286
233
  /** 右下角按钮为“搜索” */
287
234
  search
288
-
289
235
  /** 右下角按钮为“下一个” */
290
236
  next
291
-
292
237
  /** 右下角按钮为“前往” */
293
238
  go
294
-
295
239
  /** 右下角按钮为“完成” */
296
240
  done
297
241
  }
298
-
299
242
  /** > 注意:React-Native 端 `inputEventDetail` 仅实现参数 `value`,若需实时获取光标位置则可通过 [`onSelectionChange`](https://reactnative.dev/docs/textinput#onselectionchange) 实现。 */
300
243
  interface inputEventDetail {
301
244
  /** 输入值 */
302
245
  value: string
303
-
304
246
  /** 光标位置 */
305
247
  cursor: number
306
-
307
248
  /** 键值 */
308
249
  keyCode: number
309
250
  }
310
251
  interface inputForceEventDetail {
311
252
  /** 输入值 */
312
253
  value: string
313
-
314
254
  /** 键盘高度 */
315
255
  height: number
316
256
  }
@@ -321,12 +261,10 @@ declare namespace InputProps {
321
261
  interface onKeyboardHeightChangeEventDetail {
322
262
  /** 键盘高度 */
323
263
  height: number
324
-
325
264
  /** 持续时间 */
326
265
  duration: number
327
266
  }
328
267
  }
329
-
330
268
  /** 输入框。该组件是原生组件,使用时请注意相关限制
331
269
  * @classification forms
332
270
  * @supported weapp, alipay, swan, tt, qq, jd, h5, rn, harmony
package/types/Label.d.ts CHANGED
@@ -1,10 +1,11 @@
1
1
  import { ComponentType } from 'react'
2
2
  import { StandardProps } from './common'
3
3
  interface LabelProps extends StandardProps {
4
- /** 绑定控件的 id */
4
+ /** 绑定控件的 id
5
+ * @supported weapp, alipay, swan, tt, qq, jd, h5
6
+ */
5
7
  for?: string
6
8
  }
7
-
8
9
  /** 用来改进表单组件的可用性。
9
10
  *
10
11
  * 使用for属性找到对应的id,或者将控件放在该标签下,当点击时,就会触发对应的控件。 for优先级高于内部控件,内部有多个控件的时候默认触发第一个控件。 目前可以绑定的控件有:button, checkbox, radio, switch。
@@ -5,18 +5,15 @@ interface LifestyleProps extends StandardProps {
5
5
  * @supported alipay
6
6
  */
7
7
  publicId?: string
8
-
9
8
  /** 文案。支持商家自定义,最多展示一行。
10
9
  * @supported alipay
11
10
  */
12
11
  memo?: string
13
-
14
12
  /** 当用户关注生活号成功后执行。
15
13
  * @supported alipay
16
14
  */
17
15
  onFollow?: CommonEventFunction
18
16
  }
19
-
20
17
  /** 关注生活号
21
18
  * @classification open
22
19
  * @supported alipay
package/types/Like.d.ts CHANGED
@@ -6,70 +6,58 @@ interface LikeProps extends StandardProps {
6
6
  * @default false
7
7
  */
8
8
  isLiked?: boolean
9
-
10
9
  /** 按钮模式。icon:表示仅有图标;mixture:表示图标文字结合
11
10
  * @supported swan
12
11
  * @default "icon"
13
12
  */
14
13
  mode?: string
15
-
16
14
  /** 图标类型。hand:表示手形;heart:表示心形
17
15
  * @supported swan
18
16
  * @default "hand"
19
17
  */
20
18
  iconType?: string
21
-
22
19
  /** 点赞按钮上的文案。默认为赞,仅在 mode 属性值为'mixture'时有效
23
20
  * @supported swan
24
21
  * @default "赞"
25
22
  */
26
23
  likeText?: string
27
-
28
24
  /** 点赞数量
29
25
  * @supported swan
30
26
  * @default 0
31
27
  */
32
28
  likeNum?: number
33
-
34
29
  /** 被点赞的对象类型。0:表示对文章内容进行点赞;1:表示对评论内容进行点赞
35
30
  * @supported swan
36
31
  * @default 0
37
32
  */
38
33
  likeType?: number
39
-
40
34
  /** 点赞动效形式。0:无动效;1:轻动效;2:强动效
41
35
  * @supported swan
42
36
  * @default 1
43
37
  */
44
38
  animationType?: number
45
-
46
39
  /** 点赞后是否弹出 toast 提示
47
40
  * @supported swan
48
41
  * @default false
49
42
  */
50
43
  isShowToast?: boolean
51
-
52
44
  /** toast 文案,默认为已点赞、已取消
53
45
  * @supported swan
54
46
  * @default ['已点赞', '已取消']
55
47
  */
56
48
  toastText?: string[]
57
-
58
49
  /** 点赞服务需要的必要参数
59
50
  * @supported swan
60
51
  */
61
52
  likeParam: LikeProps.ILikeParam
62
-
63
53
  /** 使用 npm 方式引入点赞组件时,点击按钮时在用户未登录状态下会触发此事件;使用动态库方式引入点赞组件时,点击按钮时在用户未登录状态下不会触发此事件
64
54
  * @supported swan
65
55
  */
66
56
  onError?: CommonEventFunction
67
-
68
57
  /** 点击点赞按钮,在点赞服务成功后将状态返回给使用组件者
69
58
  * @supported swan
70
59
  */
71
60
  onSuccess?: CommonEventFunction
72
-
73
61
  /** 点击点赞按钮,在点赞服务失败后将状态返回给使用组件者
74
62
  * @supported swan
75
63
  */
@@ -79,25 +67,20 @@ declare namespace LikeProps {
79
67
  interface ILikeParam {
80
68
  /** 用户身份唯一标识 */
81
69
  openid: string
82
-
83
70
  /** 被点赞的文章的 id,与 path 参数一一对应
84
71
  * @example "20200101"
85
72
  */
86
73
  snid: string
87
-
88
74
  /** 被点赞的评论 id */
89
75
  spid?: string
90
-
91
76
  /** 文章标题 */
92
77
  title: string
93
-
94
78
  /** 智能小程序内页链接,最长不能超过 194 字符
95
79
  * @example "/pages/index/index"
96
80
  */
97
81
  path: string
98
82
  }
99
83
  }
100
-
101
84
  /** 点赞
102
85
  * @classification open
103
86
  * @supported swan
@@ -0,0 +1,12 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps } from './common'
3
+ interface ListViewProps extends StandardProps {}
4
+
5
+ /**
6
+ * 列表布局容器,仅支持作为 scroll-view 自定义模式下的直接子节点或 sticky-section 组件直接子节点。仅 Skyline 支持。
7
+ * @classification viewContainer
8
+ * @supported weapp
9
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/list-view.html
10
+ */
11
+ declare const ListView: ComponentType<ListViewProps>
12
+ export { ListView, ListViewProps }