component-library-for-react 1.0.0 → 1.0.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.
- package/package.json +1 -1
- package/readme.md +6 -6
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
```tsx
|
|
26
26
|
import React, { FC, useState, useRef, useCallback } from "react";
|
|
27
27
|
import { css } from "@emotion/react";
|
|
28
|
-
import { useClickOutside } from '
|
|
28
|
+
import { useClickOutside } from 'component-library-for-react'
|
|
29
29
|
|
|
30
30
|
const App: FC = () => {
|
|
31
31
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -103,7 +103,7 @@ export default App;
|
|
|
103
103
|
|
|
104
104
|
```tsx
|
|
105
105
|
import { FC, useEffect } from "react";
|
|
106
|
-
import { useDebounce } from "
|
|
106
|
+
import { useDebounce } from "component-library-for-react";
|
|
107
107
|
|
|
108
108
|
const App: FC = () => {
|
|
109
109
|
const logValue = (label:string,value:string)=>{
|
|
@@ -171,7 +171,7 @@ export default App;
|
|
|
171
171
|
|
|
172
172
|
```tsx
|
|
173
173
|
import React ,{ FC, useEffect, useRef } from "react";
|
|
174
|
-
import { useThrottle } from "
|
|
174
|
+
import { useThrottle } from "component-library-for-react";
|
|
175
175
|
|
|
176
176
|
const App: FC = () => {
|
|
177
177
|
const formRef = useRef<HTMLFormElement|null>(null);
|
|
@@ -214,7 +214,7 @@ export default App;
|
|
|
214
214
|
### 导入组件
|
|
215
215
|
|
|
216
216
|
```tsx
|
|
217
|
-
import LazyLoadImage from "
|
|
217
|
+
import LazyLoadImage from "component-library-for-react";
|
|
218
218
|
```
|
|
219
219
|
|
|
220
220
|
### 属性 API (Props)
|
|
@@ -250,7 +250,7 @@ import LazyLoadImage from "./LazyLoadImage";
|
|
|
250
250
|
### 导入组件
|
|
251
251
|
|
|
252
252
|
```tsx
|
|
253
|
-
import Upload from "
|
|
253
|
+
import Upload from "component-library-for-react";
|
|
254
254
|
```
|
|
255
255
|
|
|
256
256
|
### 属性 API (Props)
|
|
@@ -311,7 +311,7 @@ export default APP;
|
|
|
311
311
|
### 导入组件
|
|
312
312
|
|
|
313
313
|
```tsx
|
|
314
|
-
import VirtualList from "
|
|
314
|
+
import VirtualList from "component-library-for-react";
|
|
315
315
|
```
|
|
316
316
|
|
|
317
317
|
### 属性 API (Props)
|