diff --git a/.dumirc.ts b/.dumirc.ts index 3983dd72..f9137735 100644 --- a/.dumirc.ts +++ b/.dumirc.ts @@ -8,7 +8,7 @@ export default defineConfig({ name: 'InputNumber', logo: 'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4' }, - outputPath: '.doc', + outputPath: 'docs-dist', exportStatic: {}, styles: [`body .dumi-default-header-left { width: 230px; } body .dumi-default-hero-title { font-size: 100px; }`], }); diff --git a/.gitignore b/.gitignore index 3a0da955..a057a838 100755 --- a/.gitignore +++ b/.gitignore @@ -28,7 +28,7 @@ coverage yarn.lock pnpm-lock.yaml package-lock.json -.doc/ +docs-dist/ # umi .umi diff --git a/README.md b/README.md index b8085838..d51cdb04 100644 --- a/README.md +++ b/README.md @@ -112,12 +112,6 @@ online example: https://input-number.vercel.app/ false Specifies that an InputNumber should be disabled - - focusOnUpDown - Boolean - true - whether focus input when click up or down button - required Boolean diff --git a/docs/api.md b/docs/api.md index 8762db2c..fb173828 100644 --- a/docs/api.md +++ b/docs/api.md @@ -64,12 +64,6 @@ nav: false Specifies that an InputNumber should be disabled - - focusOnUpDown - Boolean - true - whether focus input when click up or down button - required Boolean diff --git a/docs/demo/simple-use-touch.tsx b/docs/demo/simple-use-touch.tsx deleted file mode 100644 index 9659520f..00000000 --- a/docs/demo/simple-use-touch.tsx +++ /dev/null @@ -1,57 +0,0 @@ -/* eslint no-console:0 */ -import React from 'react'; -import InputNumber from 'rc-input-number'; -import '../../assets/index.less'; - -class Component extends React.Component { - state = { - disabled: false, - readOnly: false, - value: 5, - }; - - onChange = value => { - console.log('onChange:', value); - this.setState({ value }); - }; - - toggleDisabled = () => { - this.setState({ - disabled: !this.state.disabled, - }); - }; - - toggleReadOnly = () => { - this.setState({ - readOnly: !this.state.readOnly, - }); - }; - - render() { - return ( -
- -

- - -

-
- ); - } -} - -export default Component; diff --git a/docs/example.md b/docs/example.md index ee7ac902..77dc42ef 100644 --- a/docs/example.md +++ b/docs/example.md @@ -37,10 +37,6 @@ nav: -## simple-use-touch - - - ## small-step diff --git a/now.json b/now.json index b73988b5..46a63876 100644 --- a/now.json +++ b/now.json @@ -5,10 +5,7 @@ { "src": "package.json", "use": "@now/static-build", - "config": { "distDir": ".doc" } + "config": { "distDir": "docs-dist" } } - ], - "routes": [ - { "src": "/(.*)", "dest": "/dist/$1" } ] } diff --git a/package.json b/package.json index ce7d6363..aad44961 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "rc-tooltip": "^6.0.1", "react": "^18.2.0", "react-dom": "^18.2.0", - "regenerator-runtime": "^0.13.7", + "regenerator-runtime": "^0.14.1", "ts-node": "^10.9.1", "typescript": "^5.1.6" }, diff --git a/src/InputNumber.tsx b/src/InputNumber.tsx index b8c0b2ac..4a94dad7 100644 --- a/src/InputNumber.tsx +++ b/src/InputNumber.tsx @@ -93,9 +93,6 @@ export interface InputNumberProps onStep?: (value: T, info: { offset: ValueType; type: 'up' | 'down' }) => void; - // focusOnUpDown: boolean; - // useTouch: boolean; - /** * Trigger change onBlur event. * If disabled, user must press enter or click handler to confirm the value update