@zh-keyboard/react 0.2.2 → 0.3.0
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/README.md +2 -1
- package/dist/components/NumericKeyboard.d.ts +1 -0
- package/dist/components/ZhKeyboard.d.ts +1 -0
- package/dist/zh-keyboard-react.js +1372 -1349
- package/dist/zh-keyboard-react.js.map +1 -1
- package/dist/zh-keyboard-react.umd.cjs +10 -10
- package/dist/zh-keyboard-react.umd.cjs.map +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -32,6 +32,7 @@ pnpm add @zh-keyboard/react
|
|
|
32
32
|
| defaultMode | 'en' \| 'zh' \| 'hand' \| 'num' | 'en' | 默认的键盘模式 |
|
|
33
33
|
| enableHandwriting| boolean | false | 是否启用手写输入 |
|
|
34
34
|
| position | 'static' \| 'float' \| 'bottom' | 'static' | 键盘定位模式 |
|
|
35
|
+
| numKeys | string[][] | - | 数字键盘的行配置 |
|
|
35
36
|
| value | string | '' | 输入框的值 |
|
|
36
37
|
| onChange | function | - | 值变化时的回调函数 |
|
|
37
38
|
|
|
@@ -49,7 +50,7 @@ pnpm add @zh-keyboard/react
|
|
|
49
50
|
```tsx
|
|
50
51
|
import { ZhKeyboard } from '@zh-keyboard/react'
|
|
51
52
|
import { useState } from 'react'
|
|
52
|
-
import '@zh-keyboard/react/
|
|
53
|
+
import '@zh-keyboard/react/style.css'
|
|
53
54
|
|
|
54
55
|
function App() {
|
|
55
56
|
const [inputText, setInputText] = useState('')
|