@ray-js/components 1.2.1 → 1.2.2

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 (54) hide show
  1. package/lib/DatePicker/DatePicker.d.ts +4 -0
  2. package/lib/DatePicker/DatePicker.js +61 -0
  3. package/lib/DatePicker/DatePicker.thing.d.ts +4 -0
  4. package/lib/DatePicker/DatePicker.thing.js +56 -0
  5. package/lib/DatePicker/DatePicker.wechat.d.ts +4 -0
  6. package/lib/DatePicker/DatePicker.wechat.js +56 -0
  7. package/lib/DatePicker/index.d.ts +3 -0
  8. package/lib/DatePicker/index.js +3 -0
  9. package/lib/DatePicker/index.module.less +0 -0
  10. package/lib/DatePicker/props.d.ts +100 -0
  11. package/lib/DatePicker/props.js +7 -0
  12. package/lib/Picker/Picker.d.ts +1 -1
  13. package/lib/Picker/Picker.js +3 -1
  14. package/lib/Picker/Picker.thing.d.ts +1 -1
  15. package/lib/Picker/Picker.thing.js +18 -9
  16. package/lib/Picker/Picker.wechat.d.ts +1 -1
  17. package/lib/Picker/Picker.wechat.js +20 -10
  18. package/lib/Picker/index.d.ts +1 -1
  19. package/lib/Picker/index.js +1 -0
  20. package/lib/Picker/props.d.ts +96 -0
  21. package/lib/Picker/props.js +4 -0
  22. package/lib/PickerView/PickerView.thing.d.ts +1 -1
  23. package/lib/PickerView/PickerView.thing.js +43 -18
  24. package/lib/PickerView/PickerView.wechat.d.ts +1 -1
  25. package/lib/PickerView/PickerView.wechat.js +43 -18
  26. package/lib/PickerView/index.d.ts +1 -1
  27. package/lib/PickerView/index.js +1 -0
  28. package/lib/PickerViewColumn/PickerViewColumn.d.ts +1 -1
  29. package/lib/PickerViewColumn/PickerViewColumn.thing.d.ts +1 -1
  30. package/lib/PickerViewColumn/PickerViewColumn.thing.js +10 -5
  31. package/lib/PickerViewColumn/PickerViewColumn.wechat.d.ts +1 -1
  32. package/lib/PickerViewColumn/PickerViewColumn.wechat.js +10 -5
  33. package/lib/PickerViewColumn/index.d.ts +1 -1
  34. package/lib/PickerViewColumn/index.js +1 -0
  35. package/lib/PickerViewColumn/props.d.ts +5 -0
  36. package/lib/PickerViewColumn/props.js +1 -0
  37. package/lib/TimePicker/TimePicker.d.ts +4 -0
  38. package/lib/TimePicker/TimePicker.js +41 -0
  39. package/lib/TimePicker/TimePicker.thing.d.ts +4 -0
  40. package/lib/TimePicker/TimePicker.thing.js +26 -0
  41. package/lib/TimePicker/TimePicker.wechat.d.ts +4 -0
  42. package/lib/TimePicker/TimePicker.wechat.js +56 -0
  43. package/lib/TimePicker/index.d.ts +3 -0
  44. package/lib/TimePicker/index.js +3 -0
  45. package/lib/TimePicker/index.module.less +0 -0
  46. package/lib/TimePicker/props.d.ts +82 -0
  47. package/lib/TimePicker/props.js +6 -0
  48. package/lib/index.d.ts +2 -1
  49. package/lib/index.js +3 -2
  50. package/package.json +7 -7
  51. package/lib/Iframe/Iframe.d.ts +0 -2
  52. package/lib/Iframe/Iframe.thing.d.ts +0 -4
  53. package/lib/Iframe/Iframe.wechat.d.ts +0 -2
  54. package/lib/Iframe/index.d.ts +0 -3
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { DatePickerProps } from './props';
3
+ declare const DatePicker: React.FC<DatePickerProps>;
4
+ export default DatePicker;
@@ -0,0 +1,61 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import * as React from 'react';
4
+ import { useTouch } from '@ray-js/framework-shared';
5
+ import { useEventListener } from 'ahooks';
6
+ import handleProps from '../utils/handleProps';
7
+
8
+ var DatePicker = function (props) {
9
+ var children = props.children,
10
+ onLongClick = props.onLongClick,
11
+ onTouchStart = props.onTouchStart,
12
+ onTouchMove = props.onTouchMove,
13
+ onTouchEnd = props.onTouchEnd,
14
+ onTouchCancel = props.onTouchCancel,
15
+ onClick = props.onClick;
16
+ var currentNode = React.useRef(null);
17
+ useEventListener('change', function (e) {
18
+ var _props$onChange;
19
+
20
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, {
21
+ type: e.type,
22
+ value: e.detail.value,
23
+ origin: e
24
+ });
25
+ }, {
26
+ target: currentNode
27
+ });
28
+ useEventListener('cancel', function (e) {
29
+ var _props$onCancel;
30
+
31
+ (_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 ? void 0 : _props$onCancel.call(props, {
32
+ type: e.type,
33
+ origin: e
34
+ });
35
+ }, {
36
+ target: currentNode
37
+ });
38
+
39
+ var _useTouch = useTouch({
40
+ onLongClick: onLongClick,
41
+ onTouchStart: onTouchStart,
42
+ onTouchMove: onTouchMove,
43
+ onTouchEnd: onTouchEnd,
44
+ onTouchCancel: onTouchCancel,
45
+ onClick: onClick
46
+ }),
47
+ _useTouch2 = _slicedToArray(_useTouch, 2),
48
+ handlers = _useTouch2[1];
49
+
50
+ return (
51
+ /*#__PURE__*/
52
+ // @ts-ignore
53
+ React.createElement("v-picker", _extends({}, handleProps(props), handlers, {
54
+ ref: currentNode,
55
+ mode: "date"
56
+ }), children)
57
+ );
58
+ };
59
+
60
+ DatePicker.displayName = 'DatePicker';
61
+ export default DatePicker;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { DatePickerProps } from './props';
3
+ declare const DatePicker: React.FC<DatePickerProps>;
4
+ export default DatePicker;
@@ -0,0 +1,56 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
+ var _excluded = ["className", "style", "id", "onLongClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onChange", "onCancel"];
5
+ import clsx from 'clsx';
6
+ import * as React from 'react';
7
+ import { inlineStyle, useTouch } from '@ray-js/framework-shared';
8
+ import { Picker as RemaxPicker } from '@ray-js/adapter';
9
+
10
+ var DatePicker = function (props) {
11
+ var className = props.className,
12
+ style = props.style,
13
+ id = props.id,
14
+ onLongClick = props.onLongClick,
15
+ onTouchStart = props.onTouchStart,
16
+ onTouchMove = props.onTouchMove,
17
+ onTouchEnd = props.onTouchEnd,
18
+ onTouchCancel = props.onTouchCancel,
19
+ onClick = props.onClick,
20
+ onChange = props.onChange,
21
+ onCancel = props.onCancel,
22
+ restProps = _objectWithoutProperties(props, _excluded);
23
+
24
+ var _useTouch = useTouch({
25
+ onLongClick: onLongClick,
26
+ onTouchStart: onTouchStart,
27
+ onTouchMove: onTouchMove,
28
+ onTouchEnd: onTouchEnd,
29
+ onTouchCancel: onTouchCancel,
30
+ onClick: onClick
31
+ }),
32
+ _useTouch2 = _slicedToArray(_useTouch, 2),
33
+ touching = _useTouch2[0],
34
+ handlers = _useTouch2[1];
35
+
36
+ return /*#__PURE__*/React.createElement(RemaxPicker, _extends({
37
+ mode: "date",
38
+ onChange: function handleChange(e) {
39
+ onChange === null || onChange === void 0 ? void 0 : onChange({
40
+ type: e.type,
41
+ value: e.detail.value,
42
+ origin: e
43
+ });
44
+ },
45
+ onCancel: function handleCancel(e) {
46
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel({
47
+ type: e.type,
48
+ origin: e
49
+ });
50
+ },
51
+ style: inlineStyle(style),
52
+ className: clsx(className)
53
+ }, restProps, handlers), props.children);
54
+ };
55
+
56
+ export default DatePicker;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { DatePickerProps } from './props';
3
+ declare const DatePicker: React.FC<DatePickerProps>;
4
+ export default DatePicker;
@@ -0,0 +1,56 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
+ var _excluded = ["className", "style", "id", "onLongClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onChange", "onCancel"];
5
+ import clsx from 'clsx';
6
+ import * as React from 'react';
7
+ import { inlineStyle, useTouch } from '@ray-js/framework-shared';
8
+ import { Picker as RemaxPicker } from '@ray-core/wechat';
9
+
10
+ var DatePicker = function (props) {
11
+ var className = props.className,
12
+ style = props.style,
13
+ id = props.id,
14
+ onLongClick = props.onLongClick,
15
+ onTouchStart = props.onTouchStart,
16
+ onTouchMove = props.onTouchMove,
17
+ onTouchEnd = props.onTouchEnd,
18
+ onTouchCancel = props.onTouchCancel,
19
+ onClick = props.onClick,
20
+ onChange = props.onChange,
21
+ onCancel = props.onCancel,
22
+ restProps = _objectWithoutProperties(props, _excluded);
23
+
24
+ var _useTouch = useTouch({
25
+ onLongClick: onLongClick,
26
+ onTouchStart: onTouchStart,
27
+ onTouchMove: onTouchMove,
28
+ onTouchEnd: onTouchEnd,
29
+ onTouchCancel: onTouchCancel,
30
+ onClick: onClick
31
+ }),
32
+ _useTouch2 = _slicedToArray(_useTouch, 2),
33
+ touching = _useTouch2[0],
34
+ handlers = _useTouch2[1];
35
+
36
+ return /*#__PURE__*/React.createElement(RemaxPicker, _extends({
37
+ mode: "date",
38
+ onChange: function handleChange(e) {
39
+ onChange === null || onChange === void 0 ? void 0 : onChange({
40
+ type: e.type,
41
+ value: e.detail.value,
42
+ origin: e
43
+ });
44
+ },
45
+ onCancel: function handleCancel(e) {
46
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel({
47
+ type: e.type,
48
+ origin: e
49
+ });
50
+ },
51
+ style: inlineStyle(style),
52
+ className: clsx(className)
53
+ }, restProps, handlers), props.children);
54
+ };
55
+
56
+ export default DatePicker;
@@ -0,0 +1,3 @@
1
+ import DatePicker from './DatePicker';
2
+ export * from './props';
3
+ export default DatePicker;
@@ -0,0 +1,3 @@
1
+ import DatePicker from './DatePicker';
2
+ export * from './props';
3
+ export default DatePicker;
File without changes
@@ -0,0 +1,100 @@
1
+ import { BaseProps } from '../types';
2
+ declare type changeValue = (e: {
3
+ /**
4
+ * @description.en type
5
+ * @description.zh 类型
6
+ * @default undefined
7
+ */
8
+ type: string;
9
+ /**
10
+ * @description.en value
11
+ * @description.zh value
12
+ * @default undefined
13
+ */
14
+ value: string;
15
+ origin?: any;
16
+ }) => void;
17
+ declare type CancelEvent = (e: {
18
+ /**
19
+ * @description.en type
20
+ * @description.zh 类型
21
+ * @default undefined
22
+ */
23
+ type: string;
24
+ origin: any;
25
+ }) => void;
26
+ export interface DatePickerProps extends BaseProps {
27
+ /**
28
+ * @description.en disabled
29
+ * @description.zh 是否禁用
30
+ * @default false
31
+ */
32
+ disabled?: boolean;
33
+ /**
34
+ * @description.en The currently selected date
35
+ * @description.zh 当前选择的日期
36
+ * @default undefined
37
+ */
38
+ value?: string;
39
+ /**
40
+ * @description.en Indicates the beginning of the valid date range in the format of "YYYY-MM-DD"
41
+ * @description.zh 表示有效日期范围的开始,字符串格式为"YYYY-MM-DD"
42
+ * @default undefined
43
+ */
44
+ start?: string;
45
+ /**
46
+ * @description.en Indicates the end of the valid date range in the format of "YYYY-MM-DD"
47
+ * @description.zh 表示有效日期范围的结束,字符串格式为"YYYY-MM-DD"
48
+ * @default undefined
49
+ */
50
+ end?: string;
51
+ /**
52
+ * @description.en Valid values year,month,day indicate the granularity of the selector
53
+ * @description.zh 有效值 year,month,day,表示选择器的粒度
54
+ * @default undefined
55
+ */
56
+ fields?: 'year' | 'month' | 'day';
57
+ /**
58
+ * @description.en onChange
59
+ * @description.zh 选择时触发
60
+ * @default undefined
61
+ */
62
+ onChange?: changeValue;
63
+ /**
64
+ * @description.en onCancel
65
+ * @description.zh 取消选择时触发
66
+ * @default undefined
67
+ */
68
+ onCancel?: CancelEvent;
69
+ /**
70
+ * @description.en confirmText
71
+ * @description.zh 确认文本
72
+ * @default undefined
73
+ */
74
+ confirmText?: string;
75
+ /**
76
+ * @description.en cancelText
77
+ * @description.zh 取消文本
78
+ * @default undefined
79
+ */
80
+ cancelText?: string;
81
+ }
82
+ export declare const defaultProps: DatePickerProps;
83
+ export interface IState {
84
+ visible: boolean;
85
+ /**
86
+ * @description.en value
87
+ * @description.zh value
88
+ * @default undefined
89
+ */
90
+ value: number | number[];
91
+ changeValue: number | number[];
92
+ /**
93
+ * @description.en range
94
+ * @description.zh 范围
95
+ * @default undefined
96
+ */
97
+ range: any[];
98
+ dateListArr: any[];
99
+ }
100
+ export {};
@@ -0,0 +1,7 @@
1
+ export var defaultProps = {
2
+ confirmText: '确定',
3
+ cancelText: '取消',
4
+ fields: 'day',
5
+ start: '2000-01-01',
6
+ end: '2000-12-31'
7
+ };
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { PickerProps } from '@ray-js/adapter';
2
+ import { PickerProps } from './props';
3
3
  declare const Picker: React.FC<PickerProps>;
4
4
  export default Picker;
@@ -7,7 +7,8 @@ import handleProps from '../utils/handleProps';
7
7
  var countArr = 1;
8
8
 
9
9
  var Picker = function (props) {
10
- var onTouchStart = props.onTouchStart,
10
+ var onLongClick = props.onLongClick,
11
+ onTouchStart = props.onTouchStart,
11
12
  onTouchMove = props.onTouchMove,
12
13
  onTouchEnd = props.onTouchEnd,
13
14
  onTouchCancel = props.onTouchCancel,
@@ -37,6 +38,7 @@ var Picker = function (props) {
37
38
  });
38
39
 
39
40
  var _useTouch = useTouch({
41
+ onLongClick: onLongClick,
40
42
  onTouchStart: onTouchStart,
41
43
  onTouchMove: onTouchMove,
42
44
  onTouchEnd: onTouchEnd,
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { PickerProps } from '@ray-js/adapter';
2
+ import { PickerProps } from './props';
3
3
  declare const Picker: React.FC<PickerProps>;
4
4
  export default Picker;
@@ -1,17 +1,19 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
- var _excluded = ["className", "style", "id", "onChange", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
4
+ var _excluded = ["className", "style", "id", "onChange", "onLongClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
5
5
  import clsx from 'clsx';
6
6
  import * as React from 'react';
7
7
  import { inlineStyle, useTouch } from '@ray-js/framework-shared';
8
8
  import { Picker as RemaxPicker } from '@ray-js/adapter';
9
+ var countArr = 1;
9
10
 
10
11
  var Picker = function (props) {
11
12
  var className = props.className,
12
13
  style = props.style,
13
14
  id = props.id,
14
15
  onChange = props.onChange,
16
+ onLongClick = props.onLongClick,
15
17
  onTouchStart = props.onTouchStart,
16
18
  onTouchMove = props.onTouchMove,
17
19
  onTouchEnd = props.onTouchEnd,
@@ -21,6 +23,7 @@ var Picker = function (props) {
21
23
  restProps = _objectWithoutProperties(props, _excluded);
22
24
 
23
25
  var _useTouch = useTouch({
26
+ onLongClick: onLongClick,
24
27
  onTouchStart: onTouchStart,
25
28
  onTouchMove: onTouchMove,
26
29
  onTouchEnd: onTouchEnd,
@@ -31,6 +34,18 @@ var Picker = function (props) {
31
34
  touching = _useTouch2[0],
32
35
  handlers = _useTouch2[1];
33
36
 
37
+ var multiarr = function (arr) {
38
+ for (var i = 0; i < arr.length; i++) {
39
+ if (arr[i] instanceof Array) {
40
+ countArr++;
41
+ arr = arr[i];
42
+ multiarr(arr);
43
+ }
44
+ }
45
+
46
+ return countArr;
47
+ };
48
+
34
49
  return /*#__PURE__*/React.createElement(RemaxPicker, _extends({
35
50
  onChange: function handleChange(e) {
36
51
  onChange === null || onChange === void 0 ? void 0 : onChange({
@@ -45,15 +60,9 @@ var Picker = function (props) {
45
60
  origin: e
46
61
  });
47
62
  },
48
- onColumnChange: function handleColumnChange(e) {
49
- onCancel === null || onCancel === void 0 ? void 0 : onCancel({
50
- type: e.type,
51
- value: e.detail.value,
52
- origin: e
53
- });
54
- },
55
63
  style: inlineStyle(style),
56
- className: clsx(className)
64
+ className: clsx(className),
65
+ mode: multiarr(props.range) > 1 ? 'multiSelector' : 'selector'
57
66
  }, restProps, handlers), props.children);
58
67
  };
59
68
 
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { PickerProps } from '@ray-js/adapter';
2
+ import { PickerProps } from './props';
3
3
  declare const Picker: React.FC<PickerProps>;
4
4
  export default Picker;
@@ -1,17 +1,19 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
3
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
- var _excluded = ["className", "style", "id", "onChange", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
4
+ var _excluded = ["className", "style", "id", "onChange", "onLongClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onCancel"];
5
5
  import clsx from 'clsx';
6
6
  import * as React from 'react';
7
7
  import { inlineStyle, useTouch } from '@ray-js/framework-shared';
8
- import { Picker as RemaxPicker } from '@ray-js/adapter';
8
+ import { Picker as RemaxPicker } from '@ray-core/wechat';
9
+ var countArr = 1;
9
10
 
10
11
  var Picker = function (props) {
11
12
  var className = props.className,
12
13
  style = props.style,
13
14
  id = props.id,
14
15
  onChange = props.onChange,
16
+ onLongClick = props.onLongClick,
15
17
  onTouchStart = props.onTouchStart,
16
18
  onTouchMove = props.onTouchMove,
17
19
  onTouchEnd = props.onTouchEnd,
@@ -21,6 +23,7 @@ var Picker = function (props) {
21
23
  restProps = _objectWithoutProperties(props, _excluded);
22
24
 
23
25
  var _useTouch = useTouch({
26
+ onLongClick: onLongClick,
24
27
  onTouchStart: onTouchStart,
25
28
  onTouchMove: onTouchMove,
26
29
  onTouchEnd: onTouchEnd,
@@ -31,6 +34,18 @@ var Picker = function (props) {
31
34
  touching = _useTouch2[0],
32
35
  handlers = _useTouch2[1];
33
36
 
37
+ var multiarr = function (arr) {
38
+ for (var i = 0; i < arr.length; i++) {
39
+ if (arr[i] instanceof Array) {
40
+ countArr++;
41
+ arr = arr[i];
42
+ multiarr(arr);
43
+ }
44
+ }
45
+
46
+ return countArr;
47
+ };
48
+
34
49
  return /*#__PURE__*/React.createElement(RemaxPicker, _extends({
35
50
  onChange: function handleChange(e) {
36
51
  onChange === null || onChange === void 0 ? void 0 : onChange({
@@ -45,16 +60,11 @@ var Picker = function (props) {
45
60
  origin: e
46
61
  });
47
62
  },
48
- onColumnChange: function handleColumnChange(e) {
49
- onCancel === null || onCancel === void 0 ? void 0 : onCancel({
50
- type: e.type,
51
- value: e.detail.value,
52
- origin: e
53
- });
54
- },
55
63
  style: inlineStyle(style),
56
64
  className: clsx(className)
57
- }, restProps, handlers), props.children);
65
+ }, restProps, handlers, {
66
+ mode: multiarr(props.range) > 1 ? 'multiSelector' : 'selector'
67
+ }), props.children);
58
68
  };
59
69
 
60
70
  export default Picker;
@@ -1,3 +1,3 @@
1
1
  import Picker from './Picker';
2
- export type { PickerProps } from '@ray-js/adapter';
2
+ export * from './props';
3
3
  export default Picker;
@@ -1,2 +1,3 @@
1
1
  import Picker from './Picker';
2
+ export * from './props';
2
3
  export default Picker;
@@ -0,0 +1,96 @@
1
+ import { BaseProps } from '../types';
2
+ declare type ChangeEvent = (e: {
3
+ /**
4
+ * @description.en type
5
+ * @description.zh 类型
6
+ * @default undefined
7
+ */
8
+ type: 'change';
9
+ /**
10
+ * @description.en value
11
+ * @description.zh value
12
+ * @default undefined
13
+ */
14
+ value: number | number[];
15
+ origin?: any;
16
+ }) => void;
17
+ declare type CancelEvent = (e: {
18
+ /**
19
+ * @description.en type
20
+ * @description.zh 类型
21
+ * @default undefined
22
+ */
23
+ type: 'cancel';
24
+ origin: any;
25
+ }) => void;
26
+ declare type ColumnChangeEvent = (e: {
27
+ /**
28
+ * @description.en type
29
+ * @description.zh 类型
30
+ * @default undefined
31
+ */
32
+ type: 'columnchange';
33
+ /**
34
+ * @description.en value
35
+ * @description.zh value
36
+ * @default undefined
37
+ */
38
+ value: number;
39
+ column: number;
40
+ origin: any;
41
+ }) => void;
42
+ export interface PickerProps extends BaseProps {
43
+ /**
44
+ * @description.en disabled
45
+ * @description.zh 是否禁用
46
+ * @default false
47
+ */
48
+ disabled?: boolean;
49
+ /**
50
+ * @description.en Option data source
51
+ * @description.zh 选择项数据源
52
+ * @default undefined
53
+ */
54
+ range: string[] | string[][];
55
+ /**
56
+ * @description.en Indicates the number in the range selected (subscripts start at 0)
57
+ * @description.zh 表示选择了 range 中的第几个(下标从 0 开始)
58
+ * @default 0
59
+ */
60
+ value?: number[] | number;
61
+ /**
62
+ * @description.en onChange
63
+ * @description.zh 点击触发
64
+ * @default undefined
65
+ */
66
+ onChange?: ChangeEvent;
67
+ /**
68
+ * @description.en onCancel
69
+ * @description.zh 取消选择时触发
70
+ * @default undefined
71
+ */
72
+ onCancel?: CancelEvent;
73
+ /**
74
+ * @description.en onColumnChange
75
+ * @description.zh 列改变时触发
76
+ * @default undefined
77
+ */
78
+ onColumnChange?: ColumnChangeEvent;
79
+ /**
80
+ * @description.en confirmText
81
+ * @description.zh 确认文本
82
+ * @default 确认
83
+ */
84
+ confirmText?: string;
85
+ /**
86
+ * @description.en cancelText
87
+ * @description.zh 取消文本
88
+ * @default 取消
89
+ */
90
+ cancelText?: string;
91
+ }
92
+ export declare const IDefaultPickerProps: {
93
+ cancelText: string;
94
+ confirmText: string;
95
+ };
96
+ export {};
@@ -0,0 +1,4 @@
1
+ export var IDefaultPickerProps = {
2
+ cancelText: '取消',
3
+ confirmText: '确定'
4
+ };
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { PickerViewProps } from '@ray-js/adapter';
2
+ import { PickerViewProps } from './props';
3
3
  declare const Picker: React.FC<PickerViewProps>;
4
4
  export default Picker;
@@ -1,10 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["className", "style", "id", "onChange", "onPickstart", "onPickend", "children"];
3
+ var _excluded = ["className", "style", "id", "onChange", "range", "children"];
4
+ import "core-js/modules/es.array.map.js";
4
5
  import clsx from 'clsx';
5
6
  import * as React from 'react';
6
7
  import { inlineStyle } from '@ray-js/framework-shared';
7
- import { PickerView as RemaxPickerView } from '@ray-js/adapter';
8
+ import { PickerView as RemaxPickerView, PickerViewColumn as RemaxPickerViewColumn } from '@ray-js/adapter';
9
+ import { View } from '@ray-js/components';
8
10
  import styles from './index.module.less';
9
11
 
10
12
  var Picker = function (props) {
@@ -12,11 +14,28 @@ var Picker = function (props) {
12
14
  style = props.style,
13
15
  id = props.id,
14
16
  onChange = props.onChange,
15
- onPickstart = props.onPickstart,
16
- onPickend = props.onPickend,
17
+ range = props.range,
17
18
  children = props.children,
18
19
  restProps = _objectWithoutProperties(props, _excluded);
19
20
 
21
+ var countArray = function (array) {
22
+ var countArr = 1;
23
+
24
+ var multiarr = function (arr) {
25
+ for (var i = 0; i < arr.length; i++) {
26
+ if (arr[i] instanceof Array) {
27
+ countArr++;
28
+ arr = arr[i];
29
+ multiarr(arr);
30
+ }
31
+ }
32
+
33
+ return countArr;
34
+ };
35
+
36
+ return multiarr(array);
37
+ };
38
+
20
39
  return /*#__PURE__*/React.createElement(RemaxPickerView, _extends({
21
40
  onChange: function handleChange(e) {
22
41
  onChange === null || onChange === void 0 ? void 0 : onChange({
@@ -25,24 +44,30 @@ var Picker = function (props) {
25
44
  origin: e
26
45
  });
27
46
  },
28
- onPickstart: function handlePickstart(e) {
29
- onPickstart === null || onPickstart === void 0 ? void 0 : onPickstart({
30
- type: 'pickstart',
31
- value: e.detail.value,
32
- origin: e
33
- });
34
- },
35
- onPickend: function handlePickend(e) {
36
- onPickend === null || onPickend === void 0 ? void 0 : onPickend({
37
- type: 'pickend',
38
- value: e.detail.value,
39
- origin: e
40
- });
41
- },
42
47
  style: inlineStyle(style),
43
48
  className: clsx(styles.pickerViewWrp, className)
44
49
  }, restProps), function renderChildren() {
45
50
  return children;
51
+ }() || function renderPickerColumn() {
52
+ if (countArray(props.range) > 1) {
53
+ return props.range.map(function (item, index) {
54
+ return /*#__PURE__*/React.createElement(RemaxPickerViewColumn, {
55
+ key: index
56
+ }, item.map(function (i, id) {
57
+ return /*#__PURE__*/React.createElement(View, {
58
+ key: id,
59
+ className: styles.pcWrp
60
+ }, i);
61
+ }));
62
+ });
63
+ } else {
64
+ return /*#__PURE__*/React.createElement(RemaxPickerViewColumn, null, range.map(function (item, index) {
65
+ return /*#__PURE__*/React.createElement(View, {
66
+ key: index,
67
+ className: styles.pcWrp
68
+ }, item);
69
+ }));
70
+ }
46
71
  }());
47
72
  };
48
73
 
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { PickerViewProps } from '@ray-js/adapter';
2
+ import { PickerViewProps } from './props';
3
3
  declare const Picker: React.FC<PickerViewProps>;
4
4
  export default Picker;
@@ -1,10 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["className", "style", "id", "onChange", "onPickstart", "onPickend", "children"];
3
+ var _excluded = ["className", "style", "id", "onChange", "range", "children"];
4
+ import "core-js/modules/es.array.map.js";
4
5
  import clsx from 'clsx';
5
6
  import * as React from 'react';
6
7
  import { inlineStyle } from '@ray-js/framework-shared';
7
- import { PickerView as RemaxPickerView } from '@ray-js/adapter';
8
+ import { View } from '@ray-js/components';
9
+ import { PickerView as RemaxPickerView, PickerViewColumn as RemaxPickerViewColumn } from '@ray-core/wechat';
8
10
  import styles from './index.module.less';
9
11
 
10
12
  var Picker = function (props) {
@@ -12,11 +14,28 @@ var Picker = function (props) {
12
14
  style = props.style,
13
15
  id = props.id,
14
16
  onChange = props.onChange,
15
- onPickstart = props.onPickstart,
16
- onPickend = props.onPickend,
17
+ range = props.range,
17
18
  children = props.children,
18
19
  restProps = _objectWithoutProperties(props, _excluded);
19
20
 
21
+ var countArray = function (array) {
22
+ var countArr = 1;
23
+
24
+ var multiarr = function (arr) {
25
+ for (var i = 0; i < arr.length; i++) {
26
+ if (arr[i] instanceof Array) {
27
+ countArr++;
28
+ arr = arr[i];
29
+ multiarr(arr);
30
+ }
31
+ }
32
+
33
+ return countArr;
34
+ };
35
+
36
+ return multiarr(array);
37
+ };
38
+
20
39
  return /*#__PURE__*/React.createElement(RemaxPickerView, _extends({
21
40
  onChange: function handleChange(e) {
22
41
  onChange === null || onChange === void 0 ? void 0 : onChange({
@@ -25,24 +44,30 @@ var Picker = function (props) {
25
44
  origin: e
26
45
  });
27
46
  },
28
- onPickstart: function handlePickstart(e) {
29
- onPickstart === null || onPickstart === void 0 ? void 0 : onPickstart({
30
- type: 'pickstart',
31
- value: e.detail.value,
32
- origin: e
33
- });
34
- },
35
- onPickend: function handlePickend(e) {
36
- onPickend === null || onPickend === void 0 ? void 0 : onPickend({
37
- type: 'pickend',
38
- value: e.detail.value,
39
- origin: e
40
- });
41
- },
42
47
  style: inlineStyle(style),
43
48
  className: clsx(styles.pickerViewWrp, className)
44
49
  }, restProps), function renderChildren() {
45
50
  return children;
51
+ }() || function renderPickerColumn() {
52
+ if (countArray(props.range) > 1) {
53
+ return props.range.map(function (item, index) {
54
+ return /*#__PURE__*/React.createElement(RemaxPickerViewColumn, {
55
+ key: index
56
+ }, item.map(function (i, id) {
57
+ return /*#__PURE__*/React.createElement(View, {
58
+ key: id,
59
+ className: styles.pcWrp
60
+ }, i);
61
+ }));
62
+ });
63
+ } else {
64
+ return /*#__PURE__*/React.createElement(RemaxPickerViewColumn, null, range.map(function (item, index) {
65
+ return /*#__PURE__*/React.createElement(View, {
66
+ key: index,
67
+ className: styles.pcWrp
68
+ }, item);
69
+ }));
70
+ }
46
71
  }());
47
72
  };
48
73
 
@@ -1,3 +1,3 @@
1
1
  import PickerView from './PickerView';
2
- export type { PickerViewProps } from '@ray-js/adapter';
2
+ export * from './props';
3
3
  export default PickerView;
@@ -1,2 +1,3 @@
1
1
  import PickerView from './PickerView';
2
+ export * from './props';
2
3
  export default PickerView;
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import { PickerViewColumnProps } from '@ray-js/adapter';
2
+ import { PickerViewColumnProps } from './props';
3
3
  declare const PickerViewColumn: React.FC<PickerViewColumnProps>;
4
4
  export default PickerViewColumn;
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import type { PickerViewColumnProps } from '@ray-js/adapter';
2
+ import { PickerViewColumnProps } from './props';
3
3
  declare const PickerViewColumn: React.FC<PickerViewColumnProps>;
4
4
  export default PickerViewColumn;
@@ -1,16 +1,21 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["style"];
3
+ var _excluded = ["className", "style", "id"];
4
+ import clsx from 'clsx';
4
5
  import * as React from 'react';
5
6
  import { inlineStyle } from '@ray-js/framework-shared';
6
- import { PickerViewColumn as RemaxViewColumnPicker } from '@ray-js/adapter';
7
+ import { PickerViewColumn as RemaxPickerViewColumn } from '@ray-js/adapter';
7
8
 
8
9
  var PickerViewColumn = function (props) {
9
- var style = props.style,
10
+ var className = props.className,
11
+ style = props.style,
12
+ id = props.id,
10
13
  restProps = _objectWithoutProperties(props, _excluded);
11
14
 
12
- return /*#__PURE__*/React.createElement(RemaxViewColumnPicker, _extends({
13
- style: inlineStyle(style)
15
+ return /*#__PURE__*/React.createElement(RemaxPickerViewColumn, _extends({
16
+ id: id,
17
+ style: inlineStyle(style),
18
+ className: clsx('ray-picker-view-column', className)
14
19
  }, restProps));
15
20
  };
16
21
 
@@ -1,4 +1,4 @@
1
1
  import * as React from 'react';
2
- import type { PickerViewColumnProps } from '@ray-js/adapter';
2
+ import { PickerViewColumnProps } from './props';
3
3
  declare const PickerViewColumn: React.FC<PickerViewColumnProps>;
4
4
  export default PickerViewColumn;
@@ -1,16 +1,21 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["style"];
3
+ var _excluded = ["className", "style", "id"];
4
+ import clsx from 'clsx';
4
5
  import * as React from 'react';
5
6
  import { inlineStyle } from '@ray-js/framework-shared';
6
- import { PickerViewColumn as RemaxViewColumnPicker } from '@ray-js/adapter';
7
+ import { PickerViewColumn as RemaxPickerViewColumn } from '@ray-js/adapter';
7
8
 
8
9
  var PickerViewColumn = function (props) {
9
- var style = props.style,
10
+ var className = props.className,
11
+ style = props.style,
12
+ id = props.id,
10
13
  restProps = _objectWithoutProperties(props, _excluded);
11
14
 
12
- return /*#__PURE__*/React.createElement(RemaxViewColumnPicker, _extends({
13
- style: inlineStyle(style)
15
+ return /*#__PURE__*/React.createElement(RemaxPickerViewColumn, _extends({
16
+ id: id,
17
+ style: inlineStyle(style),
18
+ className: clsx('ray-picker-view-column', className)
14
19
  }, restProps));
15
20
  };
16
21
 
@@ -1,3 +1,3 @@
1
1
  import PickerViewColumn from './PickerViewColumn';
2
- export type { PickerViewColumnProps } from '@ray-js/adapter';
2
+ export * from './props';
3
3
  export default PickerViewColumn;
@@ -1,2 +1,3 @@
1
1
  import PickerViewColumn from './PickerViewColumn';
2
+ export * from './props';
2
3
  export default PickerViewColumn;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { BaseProps } from '../types';
3
+ export interface PickerViewColumnProps extends BaseProps {
4
+ children?: React.ReactNode | string;
5
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { TimePickerProps } from './props';
3
+ declare const TimePicker: React.FC<TimePickerProps>;
4
+ export default TimePicker;
@@ -0,0 +1,41 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import * as React from 'react';
3
+ import { useEventListener } from 'ahooks';
4
+ import handleProps from '../utils/handleProps';
5
+
6
+ var TimePicker = function (props) {
7
+ var children = props.children;
8
+ var currentNode = React.useRef(null);
9
+ useEventListener('change', function (e) {
10
+ var _props$onChange;
11
+
12
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 ? void 0 : _props$onChange.call(props, {
13
+ type: e.type,
14
+ value: e.detail.value,
15
+ origin: e
16
+ });
17
+ }, {
18
+ target: currentNode
19
+ });
20
+ useEventListener('cancel', function (e) {
21
+ var _props$onCancel;
22
+
23
+ (_props$onCancel = props.onCancel) === null || _props$onCancel === void 0 ? void 0 : _props$onCancel.call(props, {
24
+ type: e.type,
25
+ origin: e
26
+ });
27
+ }, {
28
+ target: currentNode
29
+ });
30
+ return (
31
+ /*#__PURE__*/
32
+ // @ts-ignore
33
+ React.createElement("v-picker", _extends({}, handleProps(props), {
34
+ ref: currentNode,
35
+ mode: "time"
36
+ }), children)
37
+ );
38
+ };
39
+
40
+ TimePicker.displayName = 'TimePicker';
41
+ export default TimePicker;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { TimePickerProps } from './props';
3
+ declare const TimePicker: React.FC<TimePickerProps>;
4
+ export default TimePicker;
@@ -0,0 +1,26 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
+ var _excluded = ["className", "style", "id", "onChange"];
4
+ import clsx from 'clsx';
5
+ import * as React from 'react';
6
+ import { inlineStyle } from '@ray-js/framework-shared';
7
+ import { Picker as RemaxPicker } from '@ray-js/adapter';
8
+
9
+ var TimePicker = function (props) {
10
+ var className = props.className,
11
+ style = props.style,
12
+ id = props.id,
13
+ onChange = props.onChange,
14
+ restProps = _objectWithoutProperties(props, _excluded);
15
+
16
+ return /*#__PURE__*/React.createElement(RemaxPicker, _extends({
17
+ mode: "time",
18
+ onChange: function handleChange(e) {
19
+ onChange === null || onChange === void 0 ? void 0 : onChange(e);
20
+ },
21
+ style: inlineStyle(style),
22
+ className: clsx(className)
23
+ }, restProps), props.children);
24
+ };
25
+
26
+ export default TimePicker;
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { TimePickerProps } from './props';
3
+ declare const TimePicker: React.FC<TimePickerProps>;
4
+ export default TimePicker;
@@ -0,0 +1,56 @@
1
+ import _extends from "@babel/runtime/helpers/esm/extends";
2
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
3
+ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
4
+ var _excluded = ["className", "style", "id", "onLongClick", "onTouchStart", "onTouchMove", "onTouchEnd", "onTouchCancel", "onClick", "onChange", "onCancel"];
5
+ import clsx from 'clsx';
6
+ import * as React from 'react';
7
+ import { inlineStyle, useTouch } from '@ray-js/framework-shared';
8
+ import { Picker as RemaxPicker } from '@ray-core/wechat';
9
+
10
+ var TimePicker = function (props) {
11
+ var className = props.className,
12
+ style = props.style,
13
+ id = props.id,
14
+ onLongClick = props.onLongClick,
15
+ onTouchStart = props.onTouchStart,
16
+ onTouchMove = props.onTouchMove,
17
+ onTouchEnd = props.onTouchEnd,
18
+ onTouchCancel = props.onTouchCancel,
19
+ onClick = props.onClick,
20
+ onChange = props.onChange,
21
+ onCancel = props.onCancel,
22
+ restProps = _objectWithoutProperties(props, _excluded);
23
+
24
+ var _useTouch = useTouch({
25
+ onLongClick: onLongClick,
26
+ onTouchStart: onTouchStart,
27
+ onTouchMove: onTouchMove,
28
+ onTouchEnd: onTouchEnd,
29
+ onTouchCancel: onTouchCancel,
30
+ onClick: onClick
31
+ }),
32
+ _useTouch2 = _slicedToArray(_useTouch, 2),
33
+ touching = _useTouch2[0],
34
+ handlers = _useTouch2[1];
35
+
36
+ return /*#__PURE__*/React.createElement(RemaxPicker, _extends({
37
+ mode: "time",
38
+ onChange: function handleChange(e) {
39
+ onChange === null || onChange === void 0 ? void 0 : onChange({
40
+ type: e.type,
41
+ value: e.detail.value,
42
+ origin: e
43
+ });
44
+ },
45
+ onCancel: function handleCancel(e) {
46
+ onCancel === null || onCancel === void 0 ? void 0 : onCancel({
47
+ type: e.type,
48
+ origin: e
49
+ });
50
+ },
51
+ style: inlineStyle(style),
52
+ className: clsx(className)
53
+ }, restProps, handlers), props.children);
54
+ };
55
+
56
+ export default TimePicker;
@@ -0,0 +1,3 @@
1
+ import TimePicker from './TimePicker';
2
+ export * from './props';
3
+ export default TimePicker;
@@ -0,0 +1,3 @@
1
+ import TimePicker from './TimePicker';
2
+ export * from './props';
3
+ export default TimePicker;
File without changes
@@ -0,0 +1,82 @@
1
+ import { BaseProps } from '../types';
2
+ declare type ChangeEvent = (e: {
3
+ /**
4
+ * @description.en type
5
+ * @description.zh 类型
6
+ * @default undefined
7
+ */
8
+ type: string;
9
+ /**
10
+ * @description.en value
11
+ * @description.zh 价值
12
+ * @default undefined
13
+ */
14
+ value: string;
15
+ origin?: any;
16
+ }) => void;
17
+ declare type CancelEvent = (e: {
18
+ /**
19
+ * @description.en type
20
+ * @description.zh 类型
21
+ * @default undefined
22
+ */
23
+ type: string;
24
+ origin: any;
25
+ }) => void;
26
+ export interface TimePickerProps extends BaseProps {
27
+ /**
28
+ * @description.en disabled
29
+ * @description.zh 是否禁用
30
+ * @default false
31
+ */
32
+ disabled?: boolean;
33
+ /**
34
+ * @description.en value
35
+ * @description.zh 当前选择的时间
36
+ * @default undefined
37
+ */
38
+ value?: string;
39
+ /**
40
+ * @description.en start
41
+ * @description.zh 表示有效时间范围的开始,字符串格式为"hh:mm"
42
+ * @default undefined
43
+ */
44
+ start?: string;
45
+ /**
46
+ * @description.en end
47
+ * @description.zh 表示有效时间范围的结束,字符串格式为"hh:mm"
48
+ * @default undefined
49
+ */
50
+ end?: string;
51
+ /**
52
+ * @description.en onCancel
53
+ * @description.zh 取消选择时触发
54
+ * @default undefined
55
+ */
56
+ onCancel?: CancelEvent;
57
+ /**
58
+ * @description.en onChange
59
+ * @description.zh 选择时触发
60
+ * @default undefined
61
+ */
62
+ onChange?: ChangeEvent;
63
+ /**
64
+ * @description.en confirmText
65
+ * @description.zh 确认文本
66
+ * @default 确认
67
+ */
68
+ confirmText?: string;
69
+ /**
70
+ * @description.en cancelText
71
+ * @description.zh 取消文本
72
+ * @default 取消
73
+ */
74
+ cancelText?: string;
75
+ }
76
+ export declare const IDefaultTimePickerProps: {
77
+ cancelText: string;
78
+ confirmText: string;
79
+ start: string;
80
+ end: string;
81
+ };
82
+ export {};
@@ -0,0 +1,6 @@
1
+ export var IDefaultTimePickerProps = {
2
+ cancelText: '取消',
3
+ confirmText: '确定',
4
+ start: '00:00',
5
+ end: '23:59'
6
+ };
package/lib/index.d.ts CHANGED
@@ -19,6 +19,8 @@ export { default as SwiperItem } from './SwiperItem';
19
19
  export { default as Switch } from './Switch';
20
20
  export { default as Slider } from './Slider';
21
21
  export { default as Picker } from './Picker';
22
+ export { default as DatePicker } from './DatePicker';
23
+ export { default as TimePicker } from './TimePicker';
22
24
  export { default as Icon } from './Icon';
23
25
  export { default as PickerView } from './PickerView';
24
26
  export { default as PickerViewColumn } from './PickerViewColumn';
@@ -30,4 +32,3 @@ export { default as WebView } from './WebView';
30
32
  export { default as Map } from './Map';
31
33
  export { default as Camera } from './Camera';
32
34
  export { default as Progress } from './Progress';
33
- export { default as Iframe } from './Iframe';
package/lib/index.js CHANGED
@@ -19,6 +19,8 @@ export { default as SwiperItem } from './SwiperItem';
19
19
  export { default as Switch } from './Switch';
20
20
  export { default as Slider } from './Slider';
21
21
  export { default as Picker } from './Picker';
22
+ export { default as DatePicker } from './DatePicker';
23
+ export { default as TimePicker } from './TimePicker';
22
24
  export { default as Icon } from './Icon';
23
25
  export { default as PickerView } from './PickerView';
24
26
  export { default as PickerViewColumn } from './PickerViewColumn';
@@ -29,5 +31,4 @@ export { default as NativeVideo } from './NativeVideo';
29
31
  export { default as WebView } from './WebView';
30
32
  export { default as Map } from './Map';
31
33
  export { default as Camera } from './Camera';
32
- export { default as Progress } from './Progress';
33
- export { default as Iframe } from './Iframe';
34
+ export { default as Progress } from './Progress';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/components",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Ray basic components",
5
5
  "keywords": [
6
6
  "ray"
@@ -24,10 +24,10 @@
24
24
  "watch": "ray start --type=component"
25
25
  },
26
26
  "dependencies": {
27
- "@ray-core/macro": "^0.2.1",
28
- "@ray-core/wechat": "^0.2.1",
29
- "@ray-js/adapter": "^1.2.1",
30
- "@ray-js/framework-shared": "^1.2.1",
27
+ "@ray-core/macro": "^0.2.3",
28
+ "@ray-core/wechat": "^0.2.3",
29
+ "@ray-js/adapter": "^1.2.2",
30
+ "@ray-js/framework-shared": "^1.2.2",
31
31
  "ahooks": "^3.7.1",
32
32
  "clsx": "^1.1.1",
33
33
  "core-js": "^3.19.1",
@@ -37,7 +37,7 @@
37
37
  "style-to-object": "^0.3.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@ray-js/cli": "^1.2.1"
40
+ "@ray-js/cli": "^1.2.2"
41
41
  },
42
42
  "maintainers": [
43
43
  {
@@ -45,6 +45,6 @@
45
45
  "email": "tuyafe@tuya.com"
46
46
  }
47
47
  ],
48
- "gitHead": "2bfdb0b62fdd4fa36e82f661712fc57eccb51f4c",
48
+ "gitHead": "e517fe5da418e0caa4c69c9331499d510472dc5e",
49
49
  "repository": {}
50
50
  }
@@ -1,2 +0,0 @@
1
- declare const Iframe: () => JSX.Element;
2
- export default Iframe;
@@ -1,4 +0,0 @@
1
- import * as React from 'react';
2
- import { IframeProps } from '@ray-js/adapter';
3
- declare const Iframe: React.FC<IframeProps>;
4
- export default Iframe;
@@ -1,2 +0,0 @@
1
- declare const Iframe: () => JSX.Element;
2
- export default Iframe;
@@ -1,3 +0,0 @@
1
- import Iframe from './Iframe';
2
- export type { IframeProps } from '@ray-js/adapter';
3
- export default Iframe;