@ray-js/components 1.4.17 → 1.4.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.
@@ -1,4 +1,7 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import { PickerViewProps } from '
|
3
|
-
|
2
|
+
import { PickerViewProps } from '@ray-js/adapter';
|
3
|
+
type PickerViewWebProps = PickerViewProps & {
|
4
|
+
range?: string[] | string[][];
|
5
|
+
};
|
6
|
+
declare const PickerView: React.FC<PickerViewWebProps>;
|
4
7
|
export default PickerView;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ray-js/components",
|
3
|
-
"version": "1.4.
|
3
|
+
"version": "1.4.19",
|
4
4
|
"description": "Ray basic components",
|
5
5
|
"keywords": [
|
6
6
|
"ray"
|
@@ -29,8 +29,8 @@
|
|
29
29
|
"dependencies": {
|
30
30
|
"@ray-core/macro": "^0.3.6",
|
31
31
|
"@ray-core/wechat": "^0.3.6",
|
32
|
-
"@ray-js/adapter": "1.4.
|
33
|
-
"@ray-js/framework-shared": "1.4.
|
32
|
+
"@ray-js/adapter": "1.4.19",
|
33
|
+
"@ray-js/framework-shared": "1.4.19",
|
34
34
|
"ahooks": "^3.7.8",
|
35
35
|
"clsx": "^1.2.1",
|
36
36
|
"core-js": "^3.32.1",
|
@@ -40,11 +40,11 @@
|
|
40
40
|
"style-to-object": "^0.3.0"
|
41
41
|
},
|
42
42
|
"devDependencies": {
|
43
|
-
"@ray-js/cli": "1.4.
|
43
|
+
"@ray-js/cli": "1.4.19"
|
44
44
|
},
|
45
45
|
"publishConfig": {
|
46
46
|
"access": "public",
|
47
47
|
"registry": "https://registry.npmjs.org"
|
48
48
|
},
|
49
|
-
"gitHead": "
|
49
|
+
"gitHead": "a5e91af18a842053abb5d3a6693544578aa9ce96"
|
50
50
|
}
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import { BaseProps } from '../types';
|
2
|
-
export interface PickerViewProps extends BaseProps {
|
3
|
-
/**
|
4
|
-
* @description.en Indicates the number in the range selected (subscripts start at 0)
|
5
|
-
* @description.zh 表示选择了 range 中的第几个(下标从 0 开始)
|
6
|
-
* @default 0
|
7
|
-
*/
|
8
|
-
value?: number | number[];
|
9
|
-
/**
|
10
|
-
* @description.en Selector font size
|
11
|
-
* @description.zh 选择器字体大小
|
12
|
-
* @default undefined
|
13
|
-
*/
|
14
|
-
fontSize?: number;
|
15
|
-
/**
|
16
|
-
* @description.en Option data source
|
17
|
-
* @description.zh 选择项数据源
|
18
|
-
* @default undefined
|
19
|
-
*/
|
20
|
-
range?: string[] | string[][];
|
21
|
-
/**
|
22
|
-
* @description.en onChange
|
23
|
-
* @description.zh 选择时触发
|
24
|
-
* @default undefined
|
25
|
-
*/
|
26
|
-
onChange?: (e: {
|
27
|
-
/**
|
28
|
-
* @description.en type
|
29
|
-
* @description.zh 类型
|
30
|
-
* @default undefined
|
31
|
-
*/
|
32
|
-
type: 'change';
|
33
|
-
/**
|
34
|
-
* @description.en value
|
35
|
-
* @description.zh 价值
|
36
|
-
* @default undefined
|
37
|
-
*/
|
38
|
-
value: number | number[];
|
39
|
-
}) => void;
|
40
|
-
}
|
package/lib/PickerView/props.js
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|