@tarojs/components 3.5.0-alpha.10 → 3.5.0-alpha.13

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.
@@ -26,7 +26,7 @@ export { FormProps } from './Form';
26
26
  export { InputProps } from './Input';
27
27
  export { KeyboardAccessoryProps } from './KeyboardAccessory';
28
28
  export { LabelProps } from './Label';
29
- export { PickerDateProps, PickerTimeProps, PickerRegionProps, PickerSelectorProps, PickerMultiSelectorProps } from './Picker';
29
+ export { PickerDateProps, PickerMultiSelectorProps, PickerRegionProps, PickerSelectorProps, PickerTimeProps } from './Picker';
30
30
  export { PickerViewProps } from './PickerView';
31
31
  export { PickerViewColumnProps } from './PickerViewColumn';
32
32
  export { RadioProps } from './Radio';
@@ -36,8 +36,8 @@ export { SwitchProps } from './Switch';
36
36
  export { TextareaProps } from './Textarea';
37
37
  /** 导航 */
38
38
  export { FunctionalPageNavigatorProps } from './FunctionalPageNavigator';
39
- export { NavigatorProps } from './Navigator';
40
39
  export { NavigationBarProps } from './NavigationBar';
40
+ export { NavigatorProps } from './Navigator';
41
41
  /** 媒体组件 */
42
42
  export { AudioProps } from './Audio';
43
43
  export { CameraProps } from './Camera';
@@ -57,6 +57,6 @@ export { OfficialAccountProps } from './OfficialAccount';
57
57
  export { OpenDataProps } from './OpenData';
58
58
  export { WebViewProps } from './WebView';
59
59
  /** 配置节点 */
60
- export { PageMetaProps } from './PageMeta';
61
60
  export { CustomWrapperProps } from './CustomWrapper';
61
+ export { PageMetaProps } from './PageMeta';
62
62
  export { SlotProps } from './Slot';
@@ -20,7 +20,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
20
20
  * https://github.com/BBKolton/reactify-wc/
21
21
  * modified event naming
22
22
  **/
23
- import React, { createRef, createElement } from 'react'; // eslint-disable-next-line
23
+ import React, { createElement, createRef } from 'react'; // eslint-disable-next-line
24
24
 
25
25
  var h = React.createElement;
26
26
  var SCROLL_VIEW = 'taro-scroll-view-core'; // 为了不要覆盖 wc 中 host 内置的 class 和 stencil 加入的 class
@@ -1,8 +1,8 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import Vue from 'vue';
3
+ import components from './components';
3
4
  import createComponent from './createComponent';
4
5
  import createFormsComponent from './createFormsComponent';
5
- import components from './components';
6
6
  components.forEach(function (params) {
7
7
  if (typeof params === 'string') {
8
8
  Vue.component(params, createComponent(params));
@@ -5,7 +5,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
5
5
 
6
6
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
7
7
 
8
- import { h, toRefs, computed } from 'vue';
8
+ import { computed, h, toRefs } from 'vue';
9
9
  import { useForwardRef } from './forwardRef';
10
10
  export default function createFormsComponent(name, eventName) {
11
11
  var modelValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'value';
@@ -1,18 +1,19 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
1
2
  import * as components from './components';
2
- export * from './components';
3
3
  export function initVue3Components(app) {
4
4
  app.config.isCustomElement = function (tag) {
5
5
  return /^taro-/.test(tag) || tag === 'root' || tag === 'block';
6
6
  };
7
7
 
8
- Object.keys(components).forEach(function (name) {
9
- if (components.hasOwnProperty(name)) {
10
- var tagName = 'taro-' + name.replace(/(?<=[a-z])([A-Z])/g, '-$1').toLowerCase();
11
- var component = components[name];
8
+ Object.entries(components).forEach(function (_ref) {
9
+ var _ref2 = _slicedToArray(_ref, 2),
10
+ name = _ref2[0],
11
+ component = _ref2[1];
12
12
 
13
- if (component) {
14
- app.component(tagName, component);
15
- }
13
+ if (component) {
14
+ var tagName = 'taro-' + name.replace(/(?<=[a-z])([A-Z])/g, '-$1').toLowerCase();
15
+ app.component(tagName, component);
16
16
  }
17
17
  });
18
- }
18
+ }
19
+ export * from './components';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "3.5.0-alpha.10",
3
+ "version": "3.5.0-alpha.13",
4
4
  "description": "",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@stencil/core": "~2.13.0",
43
43
  "@stencil/sass": "1.5.2",
44
- "@tarojs/taro": "3.5.0-alpha.10",
44
+ "@tarojs/taro": "3.5.0-alpha.13",
45
45
  "better-scroll": "^1.14.1",
46
46
  "classnames": "^2.2.5",
47
47
  "hls.js": "^1.1.5",
@@ -68,5 +68,5 @@
68
68
  "optional": true
69
69
  }
70
70
  },
71
- "gitHead": "8569f73a71cd11c697e66662d584c17175c7343b"
71
+ "gitHead": "1e201315913fbeb3a71f14c93a5e7a2fa490e4c4"
72
72
  }
package/types/props.ts CHANGED
@@ -28,7 +28,7 @@ export { FormProps } from './Form'
28
28
  export { InputProps } from './Input'
29
29
  export { KeyboardAccessoryProps } from './KeyboardAccessory'
30
30
  export { LabelProps } from './Label'
31
- export { PickerDateProps, PickerTimeProps, PickerRegionProps, PickerSelectorProps, PickerMultiSelectorProps } from './Picker'
31
+ export { PickerDateProps, PickerMultiSelectorProps, PickerRegionProps, PickerSelectorProps, PickerTimeProps } from './Picker'
32
32
  export { PickerViewProps } from './PickerView'
33
33
  export { PickerViewColumnProps } from './PickerViewColumn'
34
34
  export { RadioProps } from './Radio'
@@ -39,8 +39,8 @@ export { TextareaProps } from './Textarea'
39
39
 
40
40
  /** 导航 */
41
41
  export { FunctionalPageNavigatorProps } from './FunctionalPageNavigator'
42
- export { NavigatorProps } from './Navigator'
43
42
  export { NavigationBarProps } from './NavigationBar'
43
+ export { NavigatorProps } from './Navigator'
44
44
  // export { TabbarProps } from './Tabbar'
45
45
  // export { TabbarItemProps } from './TabbarItem'
46
46
 
@@ -67,7 +67,6 @@ export { OpenDataProps } from './OpenData'
67
67
  export { WebViewProps } from './WebView'
68
68
 
69
69
  /** 配置节点 */
70
- export { PageMetaProps } from './PageMeta'
71
-
72
70
  export { CustomWrapperProps } from './CustomWrapper'
71
+ export { PageMetaProps } from './PageMeta'
73
72
  export { SlotProps } from './Slot'
@@ -29,6 +29,7 @@ export function memoizeOne (resultFn, isEqual) {
29
29
  }
30
30
  lastResult = resultFn.apply(this, newArgs)
31
31
  calledOnce = true
32
+ // eslint-disable-next-line @typescript-eslint/no-this-alias
32
33
  lastThis = this
33
34
  lastArgs = newArgs
34
35
  return lastResult
@@ -3,9 +3,10 @@
3
3
  /* eslint-disable no-void */
4
4
  /* eslint-disable no-return-assign */
5
5
  import { createSelectorQuery } from '@tarojs/taro'
6
+ import { createElement, PureComponent } from 'react'
7
+
6
8
  import { getRTLOffsetType } from '../domHelpers'
7
9
  import { memoizeOne } from '../memoize'
8
- import { createElement, PureComponent } from 'react'
9
10
  import { cancelTimeout, requestTimeout } from '../timer'
10
11
 
11
12
  const IS_SCROLLING_DEBOUNCE_INTERVAL = 200
@@ -1,6 +1,7 @@
1
+ import { ScrollView, View } from '@tarojs/components'
1
2
  import React from 'react'
3
+
2
4
  import FixedSizeList from './FixedSizeList'
3
- import { ScrollView, View } from '@tarojs/components'
4
5
 
5
6
  function convertPxToInt (style) {
6
7
  if (typeof style === 'string') {
@@ -1,4 +1,4 @@
1
- import { now, requestAnimationFrame, cancelAnimationFrame } from '@tarojs/runtime'
1
+ import { cancelAnimationFrame, now, requestAnimationFrame } from '@tarojs/runtime'
2
2
 
3
3
  export function cancelTimeout (timeoutID) {
4
4
  cancelAnimationFrame(timeoutID.id)
@@ -1,6 +1,6 @@
1
+ import { getRTLOffsetType } from '../domHelpers'
1
2
  import { memoizeOne } from '../memoize'
2
3
  import { cancelTimeout, requestTimeout } from '../timer'
3
- import { getRTLOffsetType } from '../domHelpers'
4
4
 
5
5
  const IS_SCROLLING_DEBOUNCE_INTERVAL = 150
6
6