@ray-js/ray-ipc-half-horizontal-drag 0.0.1-beta-1 → 0.0.2-beta-1

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 (2) hide show
  1. package/README.md +13 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -27,6 +27,17 @@ yarn start:tuya
27
27
  ## Usage
28
28
 
29
29
  ```tsx
30
- import Foo from '@ray-js/ray-ipc-half-horizontal-drag';
31
- export default () => <Foo />;
30
+ import HalfHorizontalDrag from '@ray-js/ray-ipc-half-horizontal-drag';
31
+ export default () => (
32
+ <HalfHorizontalDrag
33
+ style={{ height: '110rpx', paddingLeft: '16rpx' }}
34
+ datas={datas}
35
+ onBgClick={data => {
36
+ console.log('res===on 1', data);
37
+ }}
38
+ onRightClick={data => {
39
+ console.log('res===on 2', data);
40
+ }}
41
+ />
42
+ );
32
43
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ray-ipc-half-horizontal-drag",
3
- "version": "0.0.1-beta-1",
3
+ "version": "0.0.2-beta-1",
4
4
  "description": "水平方向可拖动,显示出下一个组件的小部分内容",
5
5
  "main": "lib/index",
6
6
  "files": [