@tarojs/components 3.6.0-canary.5 → 3.6.0-canary.6

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 (64) hide show
  1. package/dist/react/component-lib/input.js +2 -2
  2. package/dist/react/component-lib/reactify-wc.js +13 -13
  3. package/dist/react/helper.js +1 -1
  4. package/dist/react/react-component-lib/createComponent.js +10 -10
  5. package/dist/react/react-component-lib/createOverlayComponent.js +18 -16
  6. package/dist/react/react-component-lib/utils/attachProps.js +1 -1
  7. package/dist/react/react-component-lib/utils/index.js +7 -6
  8. package/dist/vue2/component-lib/createComponent.js +1 -1
  9. package/dist/vue2/component-lib/createFormsComponent.js +2 -2
  10. package/dist/vue2/component-lib/index.js +1 -1
  11. package/dist/vue2/component-lib/mixins/listeners.js +1 -1
  12. package/dist/vue2/component-lib/mixins/refs.js +1 -1
  13. package/dist/vue2/component-lib/picker.js +1 -1
  14. package/dist/vue2/component-lib/scroll-view.js +1 -1
  15. package/dist/vue2/components.js +1 -1
  16. package/dist/vue2/index.js +2 -2
  17. package/dist/vue2/vue-component-lib/utils.js +2 -2
  18. package/dist/vue3/component-lib/createComponent.js +1 -1
  19. package/dist/vue3/component-lib/createFormsComponent.js +3 -3
  20. package/dist/vue3/index.js +1 -1
  21. package/dist/vue3/vue-component-lib/utils.js +3 -3
  22. package/package.json +4 -4
  23. package/types/Ad.d.ts +1 -1
  24. package/types/Audio.d.ts +1 -1
  25. package/types/Button.d.ts +1 -1
  26. package/types/Camera.d.ts +1 -1
  27. package/types/Canvas.d.ts +1 -1
  28. package/types/Checkbox.d.ts +1 -1
  29. package/types/CheckboxGroup.d.ts +1 -1
  30. package/types/CoverImage.d.ts +1 -1
  31. package/types/CoverView.d.ts +102 -4
  32. package/types/CustomWrapper.d.ts +1 -1
  33. package/types/Form.d.ts +1 -1
  34. package/types/Icon.d.ts +1 -1
  35. package/types/Image.d.ts +1 -1
  36. package/types/Input.d.ts +71 -8
  37. package/types/LivePlayer.d.ts +1 -1
  38. package/types/LivePusher.d.ts +1 -1
  39. package/types/Map.d.ts +1 -1
  40. package/types/MatchMedia.d.ts +1 -1
  41. package/types/MovableArea.d.ts +2 -2
  42. package/types/MovableView.d.ts +17 -17
  43. package/types/Navigator.d.ts +1 -1
  44. package/types/OpenData.d.ts +1 -1
  45. package/types/PageContainer.d.ts +28 -18
  46. package/types/PageMeta.d.ts +1 -1
  47. package/types/Picker.d.ts +1 -1
  48. package/types/PickerView.d.ts +1 -1
  49. package/types/Progress.d.ts +1 -1
  50. package/types/Radio.d.ts +1 -1
  51. package/types/RadioGroup.d.ts +1 -1
  52. package/types/RootPortal.d.ts +11 -2
  53. package/types/ScrollView.d.ts +1 -1
  54. package/types/ShareElement.d.ts +20 -10
  55. package/types/Slider.d.ts +1 -1
  56. package/types/Swiper.d.ts +1 -1
  57. package/types/SwiperItem.d.ts +3 -2
  58. package/types/Switch.d.ts +1 -1
  59. package/types/Text.d.ts +1 -1
  60. package/types/Textarea.d.ts +7 -1
  61. package/types/Video.d.ts +7 -1
  62. package/types/View.d.ts +1 -1
  63. package/types/WebView.d.ts +1 -1
  64. package/types/index.vue3.d.ts +2 -1
package/types/Text.d.ts CHANGED
@@ -45,7 +45,7 @@ declare namespace TextProps {
45
45
 
46
46
  /** 文本
47
47
  * @classification base
48
- * @supported weapp, swan, alipay, tt, h5, rn
48
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
49
49
  * @example_react
50
50
  * ```tsx
51
51
  * export default class PageView extends Component {
@@ -136,6 +136,12 @@ interface TextareaProps extends StandardProps, FormItemProps {
136
136
  */
137
137
  controlled?: string
138
138
 
139
+ /** 使用原生键盘
140
+ * @default false
141
+ * @supported alipay
142
+ */
143
+ enableNative?: boolean
144
+
139
145
  /** 无障碍访问,(属性)元素的额外描述
140
146
  * @supported qq
141
147
  */
@@ -218,7 +224,7 @@ declare namespace TextareaProps {
218
224
 
219
225
  /** 多行输入框。该组件是原生组件,使用时请注意相关限制
220
226
  * @classification forms
221
- * @supported weapp, h5, rn
227
+ * @supported weapp, alipay, swan, tt, qq, h5, rn
222
228
  * @example_react
223
229
  * ```tsx
224
230
  * export default class PageView extends Component {
package/types/Video.d.ts CHANGED
@@ -282,6 +282,12 @@ interface VideoProps extends StandardProps {
282
282
  */
283
283
  mobilenetHintType?: string
284
284
 
285
+ /** 使用原生
286
+ * @default true
287
+ * @supported alipay
288
+ */
289
+ enableNative?: boolean
290
+
285
291
  /** 浮窗设置。暂时不支持全局浮窗。
286
292
  * 可选值:
287
293
  *
@@ -637,7 +643,7 @@ declare namespace VideoProps {
637
643
 
638
644
  /** 视频。相关api:Taro.createVideoContext
639
645
  * @classification media
640
- * @supported weapp, swan, alipay, tt, h5, rn
646
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
641
647
  * @example_react
642
648
  * ```tsx
643
649
  * export default class PageView extends Component {
package/types/View.d.ts CHANGED
@@ -142,7 +142,7 @@ interface ViewProps extends StandardProps {
142
142
 
143
143
  /** 视图容器
144
144
  * @classification viewContainer
145
- * @supported weapp, swan, alipay, tt, h5, rn
145
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
146
146
  * @example_react
147
147
  * ```tsx
148
148
  * export default class PageView extends Component {
@@ -49,7 +49,7 @@ declare namespace WebViewProps {
49
49
 
50
50
  /** web-view 组件是一个可以用来承载网页的容器,会自动铺满整个小程序页面。个人类型与海外类型的小程序暂不支持使用。
51
51
  * @classification open
52
- * @supported weapp, h5, rn, tt
52
+ * @supported weapp, alipay, swan, tt, qq, jd, h5, rn
53
53
  * @example_react
54
54
  * ```tsx
55
55
  * class App extends Component {
@@ -282,7 +282,8 @@ declare global {
282
282
 
283
283
  'custom-wrapper': ElementAttrs<TransformReact2VueType<CustomWrapperProps>>
284
284
  'taro-custom-wrapper-core': ElementAttrs<TransformReact2VueType<CustomWrapperProps>>
285
- 'slot': ElementAttrs<TransformReact2VueType<SlotProps>>
285
+ /** 为了不与vue3模板默认的slot冲突,增加 Record<string, any> */
286
+ 'slot': ElementAttrs<TransformReact2VueType<SlotProps>> & Record<string, any>
286
287
  'taro-slot-core': ElementAttrs<TransformReact2VueType<SlotProps>>
287
288
  }
288
289
  }