Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/npm_and_yarn/np-9.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
li-jia-nan authored Dec 16, 2023
2 parents 7f12656 + e824eb0 commit 6ce6fd2
Show file tree
Hide file tree
Showing 9 changed files with 4 additions and 83 deletions.
2 changes: 1 addition & 1 deletion .dumirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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; }`],
});
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ coverage
yarn.lock
pnpm-lock.yaml
package-lock.json
.doc/
docs-dist/

# umi
.umi
Expand Down
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,6 @@ online example: https://input-number.vercel.app/
<td>false</td>
<td>Specifies that an InputNumber should be disabled</td>
</tr>
<tr>
<td>focusOnUpDown</td>
<td>Boolean</td>
<td>true</td>
<td>whether focus input when click up or down button</td>
</tr>
<tr>
<td>required</td>
<td>Boolean</td>
Expand Down
6 changes: 0 additions & 6 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,6 @@ nav:
<td>false</td>
<td>Specifies that an InputNumber should be disabled</td>
</tr>
<tr>
<td>focusOnUpDown</td>
<td>Boolean</td>
<td>true</td>
<td>whether focus input when click up or down button</td>
</tr>
<tr>
<td>required</td>
<td>Boolean</td>
Expand Down
57 changes: 0 additions & 57 deletions docs/demo/simple-use-touch.tsx

This file was deleted.

4 changes: 0 additions & 4 deletions docs/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ nav:

<code src="./demo/precision.tsx"></code>

## simple-use-touch

<code src="./demo/simple-use-touch.tsx"></code>

## small-step

<code src="./demo/small-step.tsx"></code>
Expand Down
5 changes: 1 addition & 4 deletions now.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
{
"src": "package.json",
"use": "@now/static-build",
"config": { "distDir": ".doc" }
"config": { "distDir": "docs-dist" }
}
],
"routes": [
{ "src": "/(.*)", "dest": "/dist/$1" }
]
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 0 additions & 3 deletions src/InputNumber.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ export interface InputNumberProps<T extends ValueType = ValueType>

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
Expand Down

0 comments on commit 6ce6fd2

Please sign in to comment.