@tarojs/components 3.3.15 → 3.3.19

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 (192) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/taro-ad-core.cjs.entry.js +19 -0
  3. package/dist/cjs/taro-ad-custom-core.cjs.entry.js +19 -0
  4. package/dist/cjs/taro-components.cjs.js +1 -1
  5. package/dist/cjs/taro-editor-core.cjs.entry.js +19 -0
  6. package/dist/cjs/taro-functional-page-navigator-core.cjs.entry.js +19 -0
  7. package/dist/cjs/taro-image-core.cjs.entry.js +2 -2
  8. package/dist/cjs/taro-keyboard-accessory-core.cjs.entry.js +19 -0
  9. package/dist/cjs/taro-live-player-core.cjs.entry.js +19 -0
  10. package/dist/cjs/taro-live-pusher-core.cjs.entry.js +19 -0
  11. package/dist/cjs/taro-map-core.cjs.entry.js +19 -0
  12. package/dist/cjs/taro-match-media-core.cjs.entry.js +19 -0
  13. package/dist/cjs/taro-navigation-bar-core.cjs.entry.js +19 -0
  14. package/dist/cjs/taro-navigator-core.cjs.entry.js +10 -6
  15. package/dist/cjs/taro-official-account-core.cjs.entry.js +19 -0
  16. package/dist/cjs/taro-page-container-core.cjs.entry.js +19 -0
  17. package/dist/cjs/taro-page-meta-core.cjs.entry.js +19 -0
  18. package/dist/cjs/taro-pull-to-refresh.cjs.entry.js +7 -3
  19. package/dist/cjs/taro-share-element-core.cjs.entry.js +19 -0
  20. package/dist/cjs/taro-slot-core.cjs.entry.js +19 -0
  21. package/dist/cjs/taro-swiper-core_2.cjs.entry.js +10 -1
  22. package/dist/cjs/taro-tabbar.cjs.entry.js +40 -32
  23. package/dist/cjs/taro-voip-room-core.cjs.entry.js +19 -0
  24. package/dist/collection/collection-manifest.json +20 -4
  25. package/dist/collection/components/ad/ad.js +11 -0
  26. package/dist/collection/components/ad-custom/ad-custom.js +11 -0
  27. package/dist/collection/components/editor/editor.js +11 -0
  28. package/dist/collection/components/functional-page-navigator/functional-page-navigator.js +11 -0
  29. package/dist/collection/components/image/image.js +1 -1
  30. package/dist/collection/components/image/style/index.css +2 -2
  31. package/dist/collection/components/keyboard-accessory/keyboard-accessory.js +11 -0
  32. package/dist/collection/components/live-player/live-player.js +11 -0
  33. package/dist/collection/components/live-pusher/live-pusher.js +11 -0
  34. package/dist/collection/components/map/map.js +11 -0
  35. package/dist/collection/components/match-media/match-media.js +11 -0
  36. package/dist/collection/components/{movable-view → movable-area}/movable-area.js +0 -0
  37. package/dist/collection/components/{movable-view → movable-area}/movable-view.js +0 -0
  38. package/dist/collection/components/navigation-bar/navigation-bar.js +11 -0
  39. package/dist/collection/components/navigator/navigator.js +1 -1
  40. package/dist/collection/components/official-account/official-account.js +11 -0
  41. package/dist/collection/components/page-container/page-container.js +11 -0
  42. package/dist/collection/components/page-meta/page-meta.js +11 -0
  43. package/dist/collection/components/{picker-view-column → picker-view}/picker-view-column.js +0 -0
  44. package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.js +1 -1
  45. package/dist/collection/components/{pull-down-refresh → pull-to-refresh}/style/index.css +0 -0
  46. package/dist/collection/components/share-element/share-element.js +11 -0
  47. package/dist/collection/components/slot/slot.js +11 -0
  48. package/dist/collection/components/swiper/swiper.js +10 -1
  49. package/dist/collection/components/tabbar/tabbar.js +14 -6
  50. package/dist/collection/components/voip-room/voip-room.js +11 -0
  51. package/dist/collection/utils/index.js +50 -64
  52. package/dist/esm/loader.js +1 -1
  53. package/dist/esm/taro-ad-core.entry.js +15 -0
  54. package/dist/esm/taro-ad-custom-core.entry.js +15 -0
  55. package/dist/esm/taro-components.js +1 -1
  56. package/dist/esm/taro-editor-core.entry.js +15 -0
  57. package/dist/esm/taro-functional-page-navigator-core.entry.js +15 -0
  58. package/dist/esm/taro-image-core.entry.js +2 -2
  59. package/dist/esm/taro-keyboard-accessory-core.entry.js +15 -0
  60. package/dist/esm/taro-live-player-core.entry.js +15 -0
  61. package/dist/esm/taro-live-pusher-core.entry.js +15 -0
  62. package/dist/esm/taro-map-core.entry.js +15 -0
  63. package/dist/esm/taro-match-media-core.entry.js +15 -0
  64. package/dist/esm/taro-navigation-bar-core.entry.js +15 -0
  65. package/dist/esm/taro-navigator-core.entry.js +1 -1
  66. package/dist/esm/taro-official-account-core.entry.js +15 -0
  67. package/dist/esm/taro-page-container-core.entry.js +15 -0
  68. package/dist/esm/taro-page-meta-core.entry.js +15 -0
  69. package/dist/esm/taro-pull-to-refresh.entry.js +1 -1
  70. package/dist/esm/taro-share-element-core.entry.js +15 -0
  71. package/dist/esm/taro-slot-core.entry.js +15 -0
  72. package/dist/esm/taro-swiper-core_2.entry.js +10 -1
  73. package/dist/esm/taro-tabbar.entry.js +15 -11
  74. package/dist/esm/taro-voip-room-core.entry.js +15 -0
  75. package/dist/esm-es5/loader.js +1 -1
  76. package/dist/esm-es5/taro-ad-core.entry.js +1 -0
  77. package/dist/esm-es5/taro-ad-custom-core.entry.js +1 -0
  78. package/dist/esm-es5/taro-components.js +1 -1
  79. package/dist/esm-es5/taro-editor-core.entry.js +1 -0
  80. package/dist/esm-es5/taro-functional-page-navigator-core.entry.js +1 -0
  81. package/dist/esm-es5/taro-image-core.entry.js +1 -1
  82. package/dist/esm-es5/taro-keyboard-accessory-core.entry.js +1 -0
  83. package/dist/esm-es5/taro-live-player-core.entry.js +1 -0
  84. package/dist/esm-es5/taro-live-pusher-core.entry.js +1 -0
  85. package/dist/esm-es5/taro-map-core.entry.js +1 -0
  86. package/dist/esm-es5/taro-match-media-core.entry.js +1 -0
  87. package/dist/esm-es5/taro-navigation-bar-core.entry.js +1 -0
  88. package/dist/esm-es5/taro-navigator-core.entry.js +1 -1
  89. package/dist/esm-es5/taro-official-account-core.entry.js +1 -0
  90. package/dist/esm-es5/taro-page-container-core.entry.js +1 -0
  91. package/dist/esm-es5/taro-page-meta-core.entry.js +1 -0
  92. package/dist/esm-es5/taro-pull-to-refresh.entry.js +1 -1
  93. package/dist/esm-es5/taro-share-element-core.entry.js +1 -0
  94. package/dist/esm-es5/taro-slot-core.entry.js +1 -0
  95. package/dist/esm-es5/taro-swiper-core_2.entry.js +1 -1
  96. package/dist/esm-es5/taro-tabbar.entry.js +1 -1
  97. package/dist/esm-es5/taro-voip-room-core.entry.js +1 -0
  98. package/dist/taro-components/p-02b84386.entry.js +1 -0
  99. package/dist/taro-components/p-0a0377f6.system.entry.js +1 -0
  100. package/dist/taro-components/p-14095f6b.system.entry.js +1 -0
  101. package/dist/taro-components/p-14fd68ec.entry.js +1 -0
  102. package/dist/taro-components/p-16d9e6b9.system.entry.js +1 -0
  103. package/dist/taro-components/p-1cc97957.entry.js +1 -0
  104. package/dist/taro-components/p-30bfacb9.system.js +1 -1
  105. package/dist/taro-components/p-37594e84.entry.js +1 -0
  106. package/dist/taro-components/p-38d8fa46.system.entry.js +1 -0
  107. package/dist/taro-components/{p-098f4931.system.entry.js → p-3984f596.system.entry.js} +1 -1
  108. package/dist/taro-components/p-3ed0783c.system.entry.js +1 -0
  109. package/dist/taro-components/p-4288566a.system.entry.js +1 -0
  110. package/dist/taro-components/p-432f803f.entry.js +1 -0
  111. package/dist/taro-components/p-4d643967.entry.js +1 -0
  112. package/dist/taro-components/p-52ef77b2.entry.js +1 -0
  113. package/dist/taro-components/p-53297f27.entry.js +1 -0
  114. package/dist/taro-components/p-5e20dff4.system.entry.js +1 -0
  115. package/dist/taro-components/p-60a15326.system.entry.js +1 -0
  116. package/dist/taro-components/p-6422a968.system.entry.js +1 -0
  117. package/dist/taro-components/p-81e1d9a3.system.entry.js +1 -0
  118. package/dist/taro-components/p-82741605.entry.js +1 -0
  119. package/dist/taro-components/p-8415cd92.entry.js +1 -0
  120. package/dist/taro-components/p-8f0e3f13.entry.js +1 -0
  121. package/dist/taro-components/p-9b9727c7.entry.js +1 -0
  122. package/dist/taro-components/p-9e7a85ae.entry.js +1 -0
  123. package/dist/taro-components/p-a4fdb95b.system.entry.js +1 -0
  124. package/dist/taro-components/p-a5c0a7e3.entry.js +1 -0
  125. package/dist/taro-components/p-ab55aacd.system.entry.js +1 -0
  126. package/dist/taro-components/{p-8cf16235.entry.js → p-b2ec0cf1.entry.js} +1 -1
  127. package/dist/taro-components/p-b3abedf8.entry.js +1 -0
  128. package/dist/taro-components/p-bc08a702.system.entry.js +1 -0
  129. package/dist/taro-components/p-becfab60.system.entry.js +1 -0
  130. package/dist/taro-components/p-c7cfcb8e.entry.js +1 -0
  131. package/dist/taro-components/p-cdf144cb.system.entry.js +1 -0
  132. package/dist/taro-components/p-dfe76645.entry.js +1 -0
  133. package/dist/taro-components/p-e1e289bb.entry.js +1 -0
  134. package/dist/taro-components/p-e42b782e.system.entry.js +1 -0
  135. package/dist/taro-components/p-ed3ff1e4.entry.js +1 -0
  136. package/dist/taro-components/p-effd64d5.system.entry.js +1 -0
  137. package/dist/taro-components/p-f05422a6.entry.js +1 -0
  138. package/dist/taro-components/p-f70b6a12.system.entry.js +1 -0
  139. package/dist/taro-components/p-f928a72e.system.entry.js +1 -0
  140. package/dist/taro-components/p-fac09a5c.system.entry.js +1 -0
  141. package/dist/taro-components/taro-components.css +1 -1
  142. package/dist/taro-components/taro-components.esm.js +1 -1
  143. package/dist/types/components/ad/ad.d.ts +4 -0
  144. package/dist/types/components/ad-custom/ad-custom.d.ts +4 -0
  145. package/dist/types/components/editor/editor.d.ts +4 -0
  146. package/dist/types/components/functional-page-navigator/functional-page-navigator.d.ts +4 -0
  147. package/dist/types/components/keyboard-accessory/keyboard-accessory.d.ts +4 -0
  148. package/dist/types/components/live-player/live-player.d.ts +4 -0
  149. package/dist/types/components/live-pusher/live-pusher.d.ts +4 -0
  150. package/dist/types/components/map/map.d.ts +4 -0
  151. package/dist/types/components/match-media/match-media.d.ts +4 -0
  152. package/dist/types/components/{movable-view → movable-area}/movable-area.d.ts +0 -0
  153. package/dist/types/components/{movable-view → movable-area}/movable-view.d.ts +0 -0
  154. package/dist/types/components/navigation-bar/navigation-bar.d.ts +4 -0
  155. package/dist/types/components/official-account/official-account.d.ts +4 -0
  156. package/dist/types/components/page-container/page-container.d.ts +4 -0
  157. package/dist/types/components/page-meta/page-meta.d.ts +4 -0
  158. package/dist/types/components/{picker-view-column → picker-view}/picker-view-column.d.ts +0 -0
  159. package/dist/types/components/{pull-down-refresh → pull-to-refresh}/pull-to-refresh.d.ts +0 -0
  160. package/dist/types/components/share-element/share-element.d.ts +4 -0
  161. package/dist/types/components/slot/slot.d.ts +4 -0
  162. package/dist/types/components/swiper/swiper.d.ts +1 -0
  163. package/dist/types/components/tabbar/tabbar.d.ts +1 -1
  164. package/dist/types/components/voip-room/voip-room.d.ts +4 -0
  165. package/dist/types/components.d.ts +208 -0
  166. package/dist/types/utils/index.d.ts +8 -0
  167. package/dist-h5/react/index.js +2 -1
  168. package/dist-h5/vue/simpleComponents.js +1 -1
  169. package/package.json +3 -3
  170. package/types/Ad.d.ts +6 -6
  171. package/types/AdCustom.d.ts +50 -0
  172. package/types/Button.d.ts +2 -2
  173. package/types/CoverImage.d.ts +3 -3
  174. package/types/CoverView.d.ts +3 -3
  175. package/types/Image.d.ts +8 -2
  176. package/types/KeyboardAccessory.d.ts +29 -0
  177. package/types/MovableView.d.ts +1 -1
  178. package/types/PageContainer.d.ts +115 -0
  179. package/types/ShareElement.d.ts +39 -0
  180. package/types/View.d.ts +1 -1
  181. package/types/VoipRoom.d.ts +71 -0
  182. package/types/common.d.ts +3 -8
  183. package/types/index.d.ts +72 -46
  184. package/virtual-list/react/createListComponent.js +4 -3
  185. package/dist/taro-components/p-0fb7f599.entry.js +0 -1
  186. package/dist/taro-components/p-139d4d14.entry.js +0 -1
  187. package/dist/taro-components/p-4ff67760.entry.js +0 -1
  188. package/dist/taro-components/p-5d84eaf0.entry.js +0 -1
  189. package/dist/taro-components/p-69be8189.system.entry.js +0 -1
  190. package/dist/taro-components/p-b685a487.system.entry.js +0 -1
  191. package/dist/taro-components/p-be2d1c4a.system.entry.js +0 -1
  192. package/dist/taro-components/p-d52009d1.system.entry.js +0 -1
@@ -12,6 +12,10 @@ import { Nodes } from "./components/rich-text/rich-text";
12
12
  import { Conf } from "./components/tabbar/tabbar";
13
13
  import { Danmu } from "./components/video/video-danmu";
14
14
  export namespace Components {
15
+ interface TaroAdCore {
16
+ }
17
+ interface TaroAdCustomCore {
18
+ }
15
19
  interface TaroAudioCore {
16
20
  "autoplay": boolean;
17
21
  "controls": boolean;
@@ -63,8 +67,12 @@ export namespace Components {
63
67
  }
64
68
  interface TaroCustomWrapperCore {
65
69
  }
70
+ interface TaroEditorCore {
71
+ }
66
72
  interface TaroFormCore {
67
73
  }
74
+ interface TaroFunctionalPageNavigatorCore {
75
+ }
68
76
  interface TaroIconCore {
69
77
  "color": string;
70
78
  "size": string | number;
@@ -88,13 +96,25 @@ export namespace Components {
88
96
  "type": string;
89
97
  "value": string;
90
98
  }
99
+ interface TaroKeyboardAccessoryCore {
100
+ }
91
101
  interface TaroLabelCore {
92
102
  "for": string;
93
103
  }
104
+ interface TaroLivePlayerCore {
105
+ }
106
+ interface TaroLivePusherCore {
107
+ }
108
+ interface TaroMapCore {
109
+ }
110
+ interface TaroMatchMediaCore {
111
+ }
94
112
  interface TaroMovableAreaCore {
95
113
  }
96
114
  interface TaroMovableViewCore {
97
115
  }
116
+ interface TaroNavigationBarCore {
117
+ }
98
118
  interface TaroNavigatorCore {
99
119
  "delta": number;
100
120
  "hoverClass": string;
@@ -102,8 +122,14 @@ export namespace Components {
102
122
  "openType": string;
103
123
  "url": string;
104
124
  }
125
+ interface TaroOfficialAccountCore {
126
+ }
105
127
  interface TaroOpenDataCore {
106
128
  }
129
+ interface TaroPageContainerCore {
130
+ }
131
+ interface TaroPageMetaCore {
132
+ }
107
133
  interface TaroPickerCore {
108
134
  "disabled": boolean;
109
135
  "end": string;
@@ -169,6 +195,8 @@ export namespace Components {
169
195
  "scrollY": boolean;
170
196
  "upperThreshold": number | string;
171
197
  }
198
+ interface TaroShareElementCore {
199
+ }
172
200
  interface TaroSliderCore {
173
201
  "activeColor": string;
174
202
  "backgroundColor": string;
@@ -182,6 +210,8 @@ export namespace Components {
182
210
  "step": number;
183
211
  "value": number | null;
184
212
  }
213
+ interface TaroSlotCore {
214
+ }
185
215
  interface TaroSwiperCore {
186
216
  /**
187
217
  * 是否自动切换
@@ -400,11 +430,25 @@ export namespace Components {
400
430
  "hoverStartTime": number;
401
431
  "hoverStayTime": number;
402
432
  }
433
+ interface TaroVoipRoomCore {
434
+ }
403
435
  interface TaroWebViewCore {
404
436
  "src": string;
405
437
  }
406
438
  }
407
439
  declare global {
440
+ interface HTMLTaroAdCoreElement extends Components.TaroAdCore, HTMLStencilElement {
441
+ }
442
+ var HTMLTaroAdCoreElement: {
443
+ prototype: HTMLTaroAdCoreElement;
444
+ new (): HTMLTaroAdCoreElement;
445
+ };
446
+ interface HTMLTaroAdCustomCoreElement extends Components.TaroAdCustomCore, HTMLStencilElement {
447
+ }
448
+ var HTMLTaroAdCustomCoreElement: {
449
+ prototype: HTMLTaroAdCustomCoreElement;
450
+ new (): HTMLTaroAdCustomCoreElement;
451
+ };
408
452
  interface HTMLTaroAudioCoreElement extends Components.TaroAudioCore, HTMLStencilElement {
409
453
  }
410
454
  var HTMLTaroAudioCoreElement: {
@@ -465,12 +509,24 @@ declare global {
465
509
  prototype: HTMLTaroCustomWrapperCoreElement;
466
510
  new (): HTMLTaroCustomWrapperCoreElement;
467
511
  };
512
+ interface HTMLTaroEditorCoreElement extends Components.TaroEditorCore, HTMLStencilElement {
513
+ }
514
+ var HTMLTaroEditorCoreElement: {
515
+ prototype: HTMLTaroEditorCoreElement;
516
+ new (): HTMLTaroEditorCoreElement;
517
+ };
468
518
  interface HTMLTaroFormCoreElement extends Components.TaroFormCore, HTMLStencilElement {
469
519
  }
470
520
  var HTMLTaroFormCoreElement: {
471
521
  prototype: HTMLTaroFormCoreElement;
472
522
  new (): HTMLTaroFormCoreElement;
473
523
  };
524
+ interface HTMLTaroFunctionalPageNavigatorCoreElement extends Components.TaroFunctionalPageNavigatorCore, HTMLStencilElement {
525
+ }
526
+ var HTMLTaroFunctionalPageNavigatorCoreElement: {
527
+ prototype: HTMLTaroFunctionalPageNavigatorCoreElement;
528
+ new (): HTMLTaroFunctionalPageNavigatorCoreElement;
529
+ };
474
530
  interface HTMLTaroIconCoreElement extends Components.TaroIconCore, HTMLStencilElement {
475
531
  }
476
532
  var HTMLTaroIconCoreElement: {
@@ -489,12 +545,42 @@ declare global {
489
545
  prototype: HTMLTaroInputCoreElement;
490
546
  new (): HTMLTaroInputCoreElement;
491
547
  };
548
+ interface HTMLTaroKeyboardAccessoryCoreElement extends Components.TaroKeyboardAccessoryCore, HTMLStencilElement {
549
+ }
550
+ var HTMLTaroKeyboardAccessoryCoreElement: {
551
+ prototype: HTMLTaroKeyboardAccessoryCoreElement;
552
+ new (): HTMLTaroKeyboardAccessoryCoreElement;
553
+ };
492
554
  interface HTMLTaroLabelCoreElement extends Components.TaroLabelCore, HTMLStencilElement {
493
555
  }
494
556
  var HTMLTaroLabelCoreElement: {
495
557
  prototype: HTMLTaroLabelCoreElement;
496
558
  new (): HTMLTaroLabelCoreElement;
497
559
  };
560
+ interface HTMLTaroLivePlayerCoreElement extends Components.TaroLivePlayerCore, HTMLStencilElement {
561
+ }
562
+ var HTMLTaroLivePlayerCoreElement: {
563
+ prototype: HTMLTaroLivePlayerCoreElement;
564
+ new (): HTMLTaroLivePlayerCoreElement;
565
+ };
566
+ interface HTMLTaroLivePusherCoreElement extends Components.TaroLivePusherCore, HTMLStencilElement {
567
+ }
568
+ var HTMLTaroLivePusherCoreElement: {
569
+ prototype: HTMLTaroLivePusherCoreElement;
570
+ new (): HTMLTaroLivePusherCoreElement;
571
+ };
572
+ interface HTMLTaroMapCoreElement extends Components.TaroMapCore, HTMLStencilElement {
573
+ }
574
+ var HTMLTaroMapCoreElement: {
575
+ prototype: HTMLTaroMapCoreElement;
576
+ new (): HTMLTaroMapCoreElement;
577
+ };
578
+ interface HTMLTaroMatchMediaCoreElement extends Components.TaroMatchMediaCore, HTMLStencilElement {
579
+ }
580
+ var HTMLTaroMatchMediaCoreElement: {
581
+ prototype: HTMLTaroMatchMediaCoreElement;
582
+ new (): HTMLTaroMatchMediaCoreElement;
583
+ };
498
584
  interface HTMLTaroMovableAreaCoreElement extends Components.TaroMovableAreaCore, HTMLStencilElement {
499
585
  }
500
586
  var HTMLTaroMovableAreaCoreElement: {
@@ -507,18 +593,42 @@ declare global {
507
593
  prototype: HTMLTaroMovableViewCoreElement;
508
594
  new (): HTMLTaroMovableViewCoreElement;
509
595
  };
596
+ interface HTMLTaroNavigationBarCoreElement extends Components.TaroNavigationBarCore, HTMLStencilElement {
597
+ }
598
+ var HTMLTaroNavigationBarCoreElement: {
599
+ prototype: HTMLTaroNavigationBarCoreElement;
600
+ new (): HTMLTaroNavigationBarCoreElement;
601
+ };
510
602
  interface HTMLTaroNavigatorCoreElement extends Components.TaroNavigatorCore, HTMLStencilElement {
511
603
  }
512
604
  var HTMLTaroNavigatorCoreElement: {
513
605
  prototype: HTMLTaroNavigatorCoreElement;
514
606
  new (): HTMLTaroNavigatorCoreElement;
515
607
  };
608
+ interface HTMLTaroOfficialAccountCoreElement extends Components.TaroOfficialAccountCore, HTMLStencilElement {
609
+ }
610
+ var HTMLTaroOfficialAccountCoreElement: {
611
+ prototype: HTMLTaroOfficialAccountCoreElement;
612
+ new (): HTMLTaroOfficialAccountCoreElement;
613
+ };
516
614
  interface HTMLTaroOpenDataCoreElement extends Components.TaroOpenDataCore, HTMLStencilElement {
517
615
  }
518
616
  var HTMLTaroOpenDataCoreElement: {
519
617
  prototype: HTMLTaroOpenDataCoreElement;
520
618
  new (): HTMLTaroOpenDataCoreElement;
521
619
  };
620
+ interface HTMLTaroPageContainerCoreElement extends Components.TaroPageContainerCore, HTMLStencilElement {
621
+ }
622
+ var HTMLTaroPageContainerCoreElement: {
623
+ prototype: HTMLTaroPageContainerCoreElement;
624
+ new (): HTMLTaroPageContainerCoreElement;
625
+ };
626
+ interface HTMLTaroPageMetaCoreElement extends Components.TaroPageMetaCore, HTMLStencilElement {
627
+ }
628
+ var HTMLTaroPageMetaCoreElement: {
629
+ prototype: HTMLTaroPageMetaCoreElement;
630
+ new (): HTMLTaroPageMetaCoreElement;
631
+ };
522
632
  interface HTMLTaroPickerCoreElement extends Components.TaroPickerCore, HTMLStencilElement {
523
633
  }
524
634
  var HTMLTaroPickerCoreElement: {
@@ -579,12 +689,24 @@ declare global {
579
689
  prototype: HTMLTaroScrollViewCoreElement;
580
690
  new (): HTMLTaroScrollViewCoreElement;
581
691
  };
692
+ interface HTMLTaroShareElementCoreElement extends Components.TaroShareElementCore, HTMLStencilElement {
693
+ }
694
+ var HTMLTaroShareElementCoreElement: {
695
+ prototype: HTMLTaroShareElementCoreElement;
696
+ new (): HTMLTaroShareElementCoreElement;
697
+ };
582
698
  interface HTMLTaroSliderCoreElement extends Components.TaroSliderCore, HTMLStencilElement {
583
699
  }
584
700
  var HTMLTaroSliderCoreElement: {
585
701
  prototype: HTMLTaroSliderCoreElement;
586
702
  new (): HTMLTaroSliderCoreElement;
587
703
  };
704
+ interface HTMLTaroSlotCoreElement extends Components.TaroSlotCore, HTMLStencilElement {
705
+ }
706
+ var HTMLTaroSlotCoreElement: {
707
+ prototype: HTMLTaroSlotCoreElement;
708
+ new (): HTMLTaroSlotCoreElement;
709
+ };
588
710
  interface HTMLTaroSwiperCoreElement extends Components.TaroSwiperCore, HTMLStencilElement {
589
711
  }
590
712
  var HTMLTaroSwiperCoreElement: {
@@ -645,6 +767,12 @@ declare global {
645
767
  prototype: HTMLTaroViewCoreElement;
646
768
  new (): HTMLTaroViewCoreElement;
647
769
  };
770
+ interface HTMLTaroVoipRoomCoreElement extends Components.TaroVoipRoomCore, HTMLStencilElement {
771
+ }
772
+ var HTMLTaroVoipRoomCoreElement: {
773
+ prototype: HTMLTaroVoipRoomCoreElement;
774
+ new (): HTMLTaroVoipRoomCoreElement;
775
+ };
648
776
  interface HTMLTaroWebViewCoreElement extends Components.TaroWebViewCore, HTMLStencilElement {
649
777
  }
650
778
  var HTMLTaroWebViewCoreElement: {
@@ -652,6 +780,8 @@ declare global {
652
780
  new (): HTMLTaroWebViewCoreElement;
653
781
  };
654
782
  interface HTMLElementTagNameMap {
783
+ "taro-ad-core": HTMLTaroAdCoreElement;
784
+ "taro-ad-custom-core": HTMLTaroAdCustomCoreElement;
655
785
  "taro-audio-core": HTMLTaroAudioCoreElement;
656
786
  "taro-block-core": HTMLTaroBlockCoreElement;
657
787
  "taro-button-core": HTMLTaroButtonCoreElement;
@@ -662,15 +792,26 @@ declare global {
662
792
  "taro-cover-image-core": HTMLTaroCoverImageCoreElement;
663
793
  "taro-cover-view-core": HTMLTaroCoverViewCoreElement;
664
794
  "taro-custom-wrapper-core": HTMLTaroCustomWrapperCoreElement;
795
+ "taro-editor-core": HTMLTaroEditorCoreElement;
665
796
  "taro-form-core": HTMLTaroFormCoreElement;
797
+ "taro-functional-page-navigator-core": HTMLTaroFunctionalPageNavigatorCoreElement;
666
798
  "taro-icon-core": HTMLTaroIconCoreElement;
667
799
  "taro-image-core": HTMLTaroImageCoreElement;
668
800
  "taro-input-core": HTMLTaroInputCoreElement;
801
+ "taro-keyboard-accessory-core": HTMLTaroKeyboardAccessoryCoreElement;
669
802
  "taro-label-core": HTMLTaroLabelCoreElement;
803
+ "taro-live-player-core": HTMLTaroLivePlayerCoreElement;
804
+ "taro-live-pusher-core": HTMLTaroLivePusherCoreElement;
805
+ "taro-map-core": HTMLTaroMapCoreElement;
806
+ "taro-match-media-core": HTMLTaroMatchMediaCoreElement;
670
807
  "taro-movable-area-core": HTMLTaroMovableAreaCoreElement;
671
808
  "taro-movable-view-core": HTMLTaroMovableViewCoreElement;
809
+ "taro-navigation-bar-core": HTMLTaroNavigationBarCoreElement;
672
810
  "taro-navigator-core": HTMLTaroNavigatorCoreElement;
811
+ "taro-official-account-core": HTMLTaroOfficialAccountCoreElement;
673
812
  "taro-open-data-core": HTMLTaroOpenDataCoreElement;
813
+ "taro-page-container-core": HTMLTaroPageContainerCoreElement;
814
+ "taro-page-meta-core": HTMLTaroPageMetaCoreElement;
674
815
  "taro-picker-core": HTMLTaroPickerCoreElement;
675
816
  "taro-picker-group": HTMLTaroPickerGroupElement;
676
817
  "taro-picker-view-column-core": HTMLTaroPickerViewColumnCoreElement;
@@ -681,7 +822,9 @@ declare global {
681
822
  "taro-radio-group-core": HTMLTaroRadioGroupCoreElement;
682
823
  "taro-rich-text-core": HTMLTaroRichTextCoreElement;
683
824
  "taro-scroll-view-core": HTMLTaroScrollViewCoreElement;
825
+ "taro-share-element-core": HTMLTaroShareElementCoreElement;
684
826
  "taro-slider-core": HTMLTaroSliderCoreElement;
827
+ "taro-slot-core": HTMLTaroSlotCoreElement;
685
828
  "taro-swiper-core": HTMLTaroSwiperCoreElement;
686
829
  "taro-swiper-item-core": HTMLTaroSwiperItemCoreElement;
687
830
  "taro-switch-core": HTMLTaroSwitchCoreElement;
@@ -692,10 +835,15 @@ declare global {
692
835
  "taro-video-core": HTMLTaroVideoCoreElement;
693
836
  "taro-video-danmu": HTMLTaroVideoDanmuElement;
694
837
  "taro-view-core": HTMLTaroViewCoreElement;
838
+ "taro-voip-room-core": HTMLTaroVoipRoomCoreElement;
695
839
  "taro-web-view-core": HTMLTaroWebViewCoreElement;
696
840
  }
697
841
  }
698
842
  declare namespace LocalJSX {
843
+ interface TaroAdCore {
844
+ }
845
+ interface TaroAdCustomCore {
846
+ }
699
847
  interface TaroAudioCore {
700
848
  "autoplay"?: boolean;
701
849
  "controls"?: boolean;
@@ -760,9 +908,13 @@ declare namespace LocalJSX {
760
908
  }
761
909
  interface TaroCustomWrapperCore {
762
910
  }
911
+ interface TaroEditorCore {
912
+ }
763
913
  interface TaroFormCore {
764
914
  "onSubmit"?: (event: CustomEvent<any>) => void;
765
915
  }
916
+ interface TaroFunctionalPageNavigatorCore {
917
+ }
766
918
  interface TaroIconCore {
767
919
  "color"?: string;
768
920
  "size"?: string | number;
@@ -794,13 +946,25 @@ declare namespace LocalJSX {
794
946
  "type"?: string;
795
947
  "value"?: string;
796
948
  }
949
+ interface TaroKeyboardAccessoryCore {
950
+ }
797
951
  interface TaroLabelCore {
798
952
  "for"?: string;
799
953
  }
954
+ interface TaroLivePlayerCore {
955
+ }
956
+ interface TaroLivePusherCore {
957
+ }
958
+ interface TaroMapCore {
959
+ }
960
+ interface TaroMatchMediaCore {
961
+ }
800
962
  interface TaroMovableAreaCore {
801
963
  }
802
964
  interface TaroMovableViewCore {
803
965
  }
966
+ interface TaroNavigationBarCore {
967
+ }
804
968
  interface TaroNavigatorCore {
805
969
  "delta"?: number;
806
970
  "hoverClass"?: string;
@@ -811,8 +975,14 @@ declare namespace LocalJSX {
811
975
  "openType"?: string;
812
976
  "url"?: string;
813
977
  }
978
+ interface TaroOfficialAccountCore {
979
+ }
814
980
  interface TaroOpenDataCore {
815
981
  }
982
+ interface TaroPageContainerCore {
983
+ }
984
+ interface TaroPageMetaCore {
985
+ }
816
986
  interface TaroPickerCore {
817
987
  "disabled"?: boolean;
818
988
  "end"?: string;
@@ -887,6 +1057,8 @@ declare namespace LocalJSX {
887
1057
  "scrollY"?: boolean;
888
1058
  "upperThreshold"?: number | string;
889
1059
  }
1060
+ interface TaroShareElementCore {
1061
+ }
890
1062
  interface TaroSliderCore {
891
1063
  "activeColor"?: string;
892
1064
  "backgroundColor"?: string;
@@ -902,6 +1074,8 @@ declare namespace LocalJSX {
902
1074
  "step"?: number;
903
1075
  "value"?: number | null;
904
1076
  }
1077
+ interface TaroSlotCore {
1078
+ }
905
1079
  interface TaroSwiperCore {
906
1080
  /**
907
1081
  * 是否自动切换
@@ -1108,12 +1282,16 @@ declare namespace LocalJSX {
1108
1282
  "hoverStayTime"?: number;
1109
1283
  "onLongpress"?: (event: CustomEvent<any>) => void;
1110
1284
  }
1285
+ interface TaroVoipRoomCore {
1286
+ }
1111
1287
  interface TaroWebViewCore {
1112
1288
  "onError"?: (event: CustomEvent<any>) => void;
1113
1289
  "onLoad"?: (event: CustomEvent<any>) => void;
1114
1290
  "src"?: string;
1115
1291
  }
1116
1292
  interface IntrinsicElements {
1293
+ "taro-ad-core": TaroAdCore;
1294
+ "taro-ad-custom-core": TaroAdCustomCore;
1117
1295
  "taro-audio-core": TaroAudioCore;
1118
1296
  "taro-block-core": TaroBlockCore;
1119
1297
  "taro-button-core": TaroButtonCore;
@@ -1124,15 +1302,26 @@ declare namespace LocalJSX {
1124
1302
  "taro-cover-image-core": TaroCoverImageCore;
1125
1303
  "taro-cover-view-core": TaroCoverViewCore;
1126
1304
  "taro-custom-wrapper-core": TaroCustomWrapperCore;
1305
+ "taro-editor-core": TaroEditorCore;
1127
1306
  "taro-form-core": TaroFormCore;
1307
+ "taro-functional-page-navigator-core": TaroFunctionalPageNavigatorCore;
1128
1308
  "taro-icon-core": TaroIconCore;
1129
1309
  "taro-image-core": TaroImageCore;
1130
1310
  "taro-input-core": TaroInputCore;
1311
+ "taro-keyboard-accessory-core": TaroKeyboardAccessoryCore;
1131
1312
  "taro-label-core": TaroLabelCore;
1313
+ "taro-live-player-core": TaroLivePlayerCore;
1314
+ "taro-live-pusher-core": TaroLivePusherCore;
1315
+ "taro-map-core": TaroMapCore;
1316
+ "taro-match-media-core": TaroMatchMediaCore;
1132
1317
  "taro-movable-area-core": TaroMovableAreaCore;
1133
1318
  "taro-movable-view-core": TaroMovableViewCore;
1319
+ "taro-navigation-bar-core": TaroNavigationBarCore;
1134
1320
  "taro-navigator-core": TaroNavigatorCore;
1321
+ "taro-official-account-core": TaroOfficialAccountCore;
1135
1322
  "taro-open-data-core": TaroOpenDataCore;
1323
+ "taro-page-container-core": TaroPageContainerCore;
1324
+ "taro-page-meta-core": TaroPageMetaCore;
1136
1325
  "taro-picker-core": TaroPickerCore;
1137
1326
  "taro-picker-group": TaroPickerGroup;
1138
1327
  "taro-picker-view-column-core": TaroPickerViewColumnCore;
@@ -1143,7 +1332,9 @@ declare namespace LocalJSX {
1143
1332
  "taro-radio-group-core": TaroRadioGroupCore;
1144
1333
  "taro-rich-text-core": TaroRichTextCore;
1145
1334
  "taro-scroll-view-core": TaroScrollViewCore;
1335
+ "taro-share-element-core": TaroShareElementCore;
1146
1336
  "taro-slider-core": TaroSliderCore;
1337
+ "taro-slot-core": TaroSlotCore;
1147
1338
  "taro-swiper-core": TaroSwiperCore;
1148
1339
  "taro-swiper-item-core": TaroSwiperItemCore;
1149
1340
  "taro-switch-core": TaroSwitchCore;
@@ -1154,6 +1345,7 @@ declare namespace LocalJSX {
1154
1345
  "taro-video-core": TaroVideoCore;
1155
1346
  "taro-video-danmu": TaroVideoDanmu;
1156
1347
  "taro-view-core": TaroViewCore;
1348
+ "taro-voip-room-core": TaroVoipRoomCore;
1157
1349
  "taro-web-view-core": TaroWebViewCore;
1158
1350
  }
1159
1351
  }
@@ -1161,6 +1353,8 @@ export { LocalJSX as JSX };
1161
1353
  declare module "@stencil/core" {
1162
1354
  export namespace JSX {
1163
1355
  interface IntrinsicElements {
1356
+ "taro-ad-core": LocalJSX.TaroAdCore & JSXBase.HTMLAttributes<HTMLTaroAdCoreElement>;
1357
+ "taro-ad-custom-core": LocalJSX.TaroAdCustomCore & JSXBase.HTMLAttributes<HTMLTaroAdCustomCoreElement>;
1164
1358
  "taro-audio-core": LocalJSX.TaroAudioCore & JSXBase.HTMLAttributes<HTMLTaroAudioCoreElement>;
1165
1359
  "taro-block-core": LocalJSX.TaroBlockCore & JSXBase.HTMLAttributes<HTMLTaroBlockCoreElement>;
1166
1360
  "taro-button-core": LocalJSX.TaroButtonCore & JSXBase.HTMLAttributes<HTMLTaroButtonCoreElement>;
@@ -1171,15 +1365,26 @@ declare module "@stencil/core" {
1171
1365
  "taro-cover-image-core": LocalJSX.TaroCoverImageCore & JSXBase.HTMLAttributes<HTMLTaroCoverImageCoreElement>;
1172
1366
  "taro-cover-view-core": LocalJSX.TaroCoverViewCore & JSXBase.HTMLAttributes<HTMLTaroCoverViewCoreElement>;
1173
1367
  "taro-custom-wrapper-core": LocalJSX.TaroCustomWrapperCore & JSXBase.HTMLAttributes<HTMLTaroCustomWrapperCoreElement>;
1368
+ "taro-editor-core": LocalJSX.TaroEditorCore & JSXBase.HTMLAttributes<HTMLTaroEditorCoreElement>;
1174
1369
  "taro-form-core": LocalJSX.TaroFormCore & JSXBase.HTMLAttributes<HTMLTaroFormCoreElement>;
1370
+ "taro-functional-page-navigator-core": LocalJSX.TaroFunctionalPageNavigatorCore & JSXBase.HTMLAttributes<HTMLTaroFunctionalPageNavigatorCoreElement>;
1175
1371
  "taro-icon-core": LocalJSX.TaroIconCore & JSXBase.HTMLAttributes<HTMLTaroIconCoreElement>;
1176
1372
  "taro-image-core": LocalJSX.TaroImageCore & JSXBase.HTMLAttributes<HTMLTaroImageCoreElement>;
1177
1373
  "taro-input-core": LocalJSX.TaroInputCore & JSXBase.HTMLAttributes<HTMLTaroInputCoreElement>;
1374
+ "taro-keyboard-accessory-core": LocalJSX.TaroKeyboardAccessoryCore & JSXBase.HTMLAttributes<HTMLTaroKeyboardAccessoryCoreElement>;
1178
1375
  "taro-label-core": LocalJSX.TaroLabelCore & JSXBase.HTMLAttributes<HTMLTaroLabelCoreElement>;
1376
+ "taro-live-player-core": LocalJSX.TaroLivePlayerCore & JSXBase.HTMLAttributes<HTMLTaroLivePlayerCoreElement>;
1377
+ "taro-live-pusher-core": LocalJSX.TaroLivePusherCore & JSXBase.HTMLAttributes<HTMLTaroLivePusherCoreElement>;
1378
+ "taro-map-core": LocalJSX.TaroMapCore & JSXBase.HTMLAttributes<HTMLTaroMapCoreElement>;
1379
+ "taro-match-media-core": LocalJSX.TaroMatchMediaCore & JSXBase.HTMLAttributes<HTMLTaroMatchMediaCoreElement>;
1179
1380
  "taro-movable-area-core": LocalJSX.TaroMovableAreaCore & JSXBase.HTMLAttributes<HTMLTaroMovableAreaCoreElement>;
1180
1381
  "taro-movable-view-core": LocalJSX.TaroMovableViewCore & JSXBase.HTMLAttributes<HTMLTaroMovableViewCoreElement>;
1382
+ "taro-navigation-bar-core": LocalJSX.TaroNavigationBarCore & JSXBase.HTMLAttributes<HTMLTaroNavigationBarCoreElement>;
1181
1383
  "taro-navigator-core": LocalJSX.TaroNavigatorCore & JSXBase.HTMLAttributes<HTMLTaroNavigatorCoreElement>;
1384
+ "taro-official-account-core": LocalJSX.TaroOfficialAccountCore & JSXBase.HTMLAttributes<HTMLTaroOfficialAccountCoreElement>;
1182
1385
  "taro-open-data-core": LocalJSX.TaroOpenDataCore & JSXBase.HTMLAttributes<HTMLTaroOpenDataCoreElement>;
1386
+ "taro-page-container-core": LocalJSX.TaroPageContainerCore & JSXBase.HTMLAttributes<HTMLTaroPageContainerCoreElement>;
1387
+ "taro-page-meta-core": LocalJSX.TaroPageMetaCore & JSXBase.HTMLAttributes<HTMLTaroPageMetaCoreElement>;
1183
1388
  "taro-picker-core": LocalJSX.TaroPickerCore & JSXBase.HTMLAttributes<HTMLTaroPickerCoreElement>;
1184
1389
  "taro-picker-group": LocalJSX.TaroPickerGroup & JSXBase.HTMLAttributes<HTMLTaroPickerGroupElement>;
1185
1390
  "taro-picker-view-column-core": LocalJSX.TaroPickerViewColumnCore & JSXBase.HTMLAttributes<HTMLTaroPickerViewColumnCoreElement>;
@@ -1190,7 +1395,9 @@ declare module "@stencil/core" {
1190
1395
  "taro-radio-group-core": LocalJSX.TaroRadioGroupCore & JSXBase.HTMLAttributes<HTMLTaroRadioGroupCoreElement>;
1191
1396
  "taro-rich-text-core": LocalJSX.TaroRichTextCore & JSXBase.HTMLAttributes<HTMLTaroRichTextCoreElement>;
1192
1397
  "taro-scroll-view-core": LocalJSX.TaroScrollViewCore & JSXBase.HTMLAttributes<HTMLTaroScrollViewCoreElement>;
1398
+ "taro-share-element-core": LocalJSX.TaroShareElementCore & JSXBase.HTMLAttributes<HTMLTaroShareElementCoreElement>;
1193
1399
  "taro-slider-core": LocalJSX.TaroSliderCore & JSXBase.HTMLAttributes<HTMLTaroSliderCoreElement>;
1400
+ "taro-slot-core": LocalJSX.TaroSlotCore & JSXBase.HTMLAttributes<HTMLTaroSlotCoreElement>;
1194
1401
  "taro-swiper-core": LocalJSX.TaroSwiperCore & JSXBase.HTMLAttributes<HTMLTaroSwiperCoreElement>;
1195
1402
  "taro-swiper-item-core": LocalJSX.TaroSwiperItemCore & JSXBase.HTMLAttributes<HTMLTaroSwiperItemCoreElement>;
1196
1403
  "taro-switch-core": LocalJSX.TaroSwitchCore & JSXBase.HTMLAttributes<HTMLTaroSwitchCoreElement>;
@@ -1201,6 +1408,7 @@ declare module "@stencil/core" {
1201
1408
  "taro-video-core": LocalJSX.TaroVideoCore & JSXBase.HTMLAttributes<HTMLTaroVideoCoreElement>;
1202
1409
  "taro-video-danmu": LocalJSX.TaroVideoDanmu & JSXBase.HTMLAttributes<HTMLTaroVideoDanmuElement>;
1203
1410
  "taro-view-core": LocalJSX.TaroViewCore & JSXBase.HTMLAttributes<HTMLTaroViewCoreElement>;
1411
+ "taro-voip-room-core": LocalJSX.TaroVoipRoomCore & JSXBase.HTMLAttributes<HTMLTaroVoipRoomCoreElement>;
1204
1412
  "taro-web-view-core": LocalJSX.TaroWebViewCore & JSXBase.HTMLAttributes<HTMLTaroWebViewCoreElement>;
1205
1413
  }
1206
1414
  }
@@ -0,0 +1,8 @@
1
+ export declare function throttle(fn: any, threshhold: any, scope: any): () => void;
2
+ export declare const normalizePath: (url: any) => any;
3
+ export declare const splitUrl: (_url: any) => {
4
+ path: null;
5
+ query: null;
6
+ fragment: null;
7
+ };
8
+ export declare const isNumber: (obj: any) => boolean;
@@ -1,3 +1,4 @@
1
+ import { Fragment } from 'react';
1
2
  import reactifyWc from './utils/reactify-wc';
2
3
  import ReactInput from './components/input';
3
4
  export var View = reactifyWc('taro-view-core');
@@ -41,5 +42,5 @@ export var OfficialAccount = reactifyWc('taro-official-account-core');
41
42
  export var OpenData = reactifyWc('taro-open-data-core');
42
43
  export var WebView = reactifyWc('taro-web-view-core');
43
44
  export var NavigationBar = reactifyWc('taro-navigation-bar-core');
44
- export var Block = reactifyWc('taro-block-core');
45
+ export var Block = Fragment;
45
46
  export var CustomWrapper = reactifyWc('taro-custom-wrapper-core');
@@ -1,4 +1,4 @@
1
- export var simpleComponents = ['taro-view', 'taro-rich-text', 'taro-button', 'taro-checkbox-group', 'taro-editor', 'taro-form', 'taro-label', 'taro-picker-view', 'taro-picker-view-column', 'taro-cover-image', 'taro-cover-view', 'taro-moveable-area', 'taro-moveable-view', 'taro-swiper', 'taro-functional-page-navigator', 'taro-navigator', 'taro-audio', 'taro-camera', 'taro-live-player', 'taro-map', 'taro-ad', 'taro-official-account', 'taro-open-data', 'taro-web-view', 'taro-navigation-bar', 'taro-block', 'taro-canvas', 'taro-custom-wrapper', {
1
+ export var simpleComponents = ['taro-view', 'taro-rich-text', 'taro-button', 'taro-checkbox-group', 'taro-editor', 'taro-form', 'taro-label', 'taro-picker-view', 'taro-picker-view-column', 'taro-cover-image', 'taro-cover-view', 'taro-movable-area', 'taro-movable-view', 'taro-swiper', 'taro-functional-page-navigator', 'taro-navigator', 'taro-audio', 'taro-camera', 'taro-live-player', 'taro-map', 'taro-ad', 'taro-official-account', 'taro-open-data', 'taro-web-view', 'taro-navigation-bar', 'taro-block', 'taro-canvas', 'taro-custom-wrapper', {
2
2
  name: 'taro-checkbox',
3
3
  classNames: ['weui-cells_checkbox']
4
4
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.3.15",
3
+ "version": "3.3.19",
4
4
  "description": "",
5
5
  "main:h5": "src/index.js",
6
6
  "main": "dist/index.js",
@@ -38,7 +38,7 @@
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
40
  "@stencil/core": "2.9.0",
41
- "@tarojs/taro": "3.3.15",
41
+ "@tarojs/taro": "3.3.19",
42
42
  "better-scroll": "^1.14.1",
43
43
  "classnames": "^2.2.5",
44
44
  "intersection-observer": "^0.7.0",
@@ -55,5 +55,5 @@
55
55
  "simulant": "^0.2.2",
56
56
  "workbox-build": "4.3.1"
57
57
  },
58
- "gitHead": "4a11ab9a8950f6a580e1278c160f6b4aaa8ac4f2"
58
+ "gitHead": "e5152ac3ba4c46d5cc7af3c27a1e98ce73c2af17"
59
59
  }
package/types/Ad.d.ts CHANGED
@@ -11,12 +11,12 @@ interface AdProps extends StandardProps {
11
11
  * @supported weapp
12
12
  */
13
13
  adIntervals?: number
14
-
14
+
15
15
  /** 广告类型,默认为展示`banner`,可通过设置该属性为`video`展示视频广告, `grid`为格子广告
16
16
  * @supported weapp
17
17
  */
18
18
  adType?: 'banner' | 'video' | 'grid'
19
-
19
+
20
20
  /** 广告主题样式设置
21
21
  * @supported weapp
22
22
  */
@@ -42,9 +42,9 @@ declare namespace AdProps {
42
42
  interface onErrorEventDetail {
43
43
  errCode: keyof AdErrCode
44
44
  }
45
- /**
45
+ /**
46
46
  * 广告错误码
47
- *
47
+ *
48
48
  * 错误码是通过onError获取到的错误信息。调试期间,可以通过异常返回来捕获信息。
49
49
  * 在小程序发布上线之后,如果遇到异常问题,可以在[“运维中心“](https://mp.weixin.qq.com/)里面搜寻错误日志,还可以针对异常返回加上适当的监控信息。
50
50
  */
@@ -116,8 +116,8 @@ declare namespace AdProps {
116
116
  * render () {
117
117
  * return (
118
118
  * <Ad
119
- * unit-id=''
120
- * ad-intervals={60}
119
+ * unitId=''
120
+ * adIntervals={60}
121
121
  * onLoad={() => console.log('ad onLoad')}
122
122
  * onError={() => console.log('ad onError')}
123
123
  * onClose={() => console.log('ad onClose')}
@@ -0,0 +1,50 @@
1
+ import { ComponentType } from 'react'
2
+ import { StandardProps, CommonEventFunction } from './common'
3
+ import { AdProps } from './Ad'
4
+
5
+ interface AdCustomProps extends StandardProps {
6
+ /** 广告单元id,可在[小程序管理后台](https://mp.weixin.qq.com/)的流量主模块新建
7
+ * @supported weapp
8
+ */
9
+ unitId: string
10
+
11
+ /** 广告自动刷新的间隔时间,单位为秒,参数值必须大于等于30(该参数不传入时 Banner 广告不会自动刷新)
12
+ * @supported weapp
13
+ */
14
+ adIntervals?: number
15
+
16
+ /** 广告加载成功的回调
17
+ * @supported weapp
18
+ */
19
+ onLoad?: CommonEventFunction
20
+
21
+ /** 当广告发生错误时,触发的事件,可以通过该事件获取错误码及原因,事件对象event.detail = {errCode: 1002}
22
+ * @supported weapp
23
+ */
24
+ onError?: CommonEventFunction<AdProps.onErrorEventDetail>
25
+ }
26
+
27
+ /** Banner 广告
28
+ * @classification open
29
+ * @supported weapp
30
+ * @example
31
+ * ```tsx
32
+ * class App extends Component {
33
+ * render () {
34
+ * return (
35
+ * <AdCustom
36
+ * unitId=''
37
+ * adIntervals={60}
38
+ * onLoad={() => console.log('ad onLoad')}
39
+ * onError={() => console.log('ad onError')}
40
+ * onClose={() => console.log('ad onClose')}
41
+ * />
42
+ * )
43
+ * }
44
+ * }
45
+ * ```
46
+ * @see https://developers.weixin.qq.com/miniprogram/dev/component/ad.html
47
+ */
48
+ declare const AdCustom: ComponentType<AdCustomProps>
49
+
50
+ export { AdCustom, AdCustomProps }
package/types/Button.d.ts CHANGED
@@ -39,9 +39,9 @@ interface ButtonProps extends StandardProps {
39
39
  formType?: keyof ButtonProps.formType
40
40
 
41
41
  /** 微信开放能力
42
- * @supported weapp
42
+ * @supported weapp, alipay, qq
43
43
  */
44
- openType?: ButtonProps.openType | string
44
+ openType?: ButtonProps.openType
45
45
 
46
46
  /** 指定按下去的样式类。当 `hover-class="none"` 时,没有点击态效果
47
47
  * @default button-hover
@@ -27,9 +27,9 @@ interface CoverImageProps extends StandardProps {
27
27
  * render () {
28
28
  * return (
29
29
  * <Video id='myVideo' src='src'>
30
- * <CoverView class='controls'>
31
- * <CoverView class='play' onClick='play'>
32
- * <CoverImage class='img' src='src' />
30
+ * <CoverView className='controls'>
31
+ * <CoverView className='play' onClick={() => { TODO }}>
32
+ * <CoverImage className='img' src='src' />
33
33
  * </CoverView>
34
34
  * </CoverView>
35
35
  * </Video>