Skip to content

Commit 0fd340b

Browse files
committed
New version 2.0.0 with bug fixes and added features
1 parent e4a0dbf commit 0fd340b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+19162
-1792
lines changed

.babelrc

-18
This file was deleted.

.browserslistrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
> 1%
2+
last 2 versions

.editorconfig

-9
This file was deleted.

.eslintrc.js

+27-22
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
1-
// https://eslint.org/docs/user-guide/configuring
2-
31
module.exports = {
42
root: true,
5-
parserOptions: {
6-
parser: 'babel-eslint'
7-
},
83
env: {
9-
browser: true,
4+
node: true
105
},
11-
extends: [
12-
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
13-
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
6+
'extends': [
147
'plugin:vue/essential',
15-
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
16-
'standard'
17-
],
18-
// required to lint *.vue files
19-
plugins: [
20-
'vue'
8+
'eslint:recommended'
219
],
22-
23-
// add your custom rules here
2410
rules: {
25-
// allow async-await
26-
'generator-star-spacing': 'off',
27-
"vue/no-dupe-keys": "off",
28-
// allow debugger during development
11+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
2912
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
30-
}
13+
},
14+
parserOptions: {
15+
parser: 'babel-eslint'
16+
},
17+
overrides: [
18+
{
19+
files: [
20+
'**/__tests__/*.{j,t}s?(x)'
21+
],
22+
env: {
23+
mocha: true
24+
}
25+
},
26+
{
27+
files: [
28+
'**/__tests__/*.{j,t}s?(x)',
29+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
30+
],
31+
env: {
32+
jest: true
33+
}
34+
}
35+
]
3136
}

.gitignore

+21-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
.DS_Store
2-
node_modules/
3-
*.map
4-
/test/unit/coverage/
5-
package-lock.json
6-
.idea/
7-
*.iml
2+
node_modules
3+
/dist
4+
5+
# local env files
6+
.env.local
7+
.env.*.local
8+
9+
# Log files
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
14+
# Editor directories and files
15+
.idea
16+
.vscode
17+
*.suo
18+
*.ntvs*
19+
*.njsproj
20+
*.sln
21+
*.sw?
22+

.npmignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ docs
44
node_modules
55
static
66
.babelrc
7-
.editorconfig
7+
.browserslistrc
88
.gitignore
9-
.eslingrc.js
10-
.postcssrc.js
9+
.eslintignore
1110
package-lock.json
1211
*.iml
1312
.idea

.postcssrc.js

-10
This file was deleted.

.theia/settings.json

-3
This file was deleted.

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,17 @@ export default {
8282
| max | Maximum allowed value | Number | Infinity | - |
8383
| step | Incremental Step | Number | 1 | - |
8484
| align | Alignment of Numeric Value | String | left | left, center, right |
85-
| size | Component Size | String | Inherit | size in px, em, rem etc e.g. '20px' |
85+
| width | Component Width | String | 150px | width in px, em, rem etc e.g. ‘20px’ |
86+
| size | Component Size | String | normal | size value can be 'small', 'normal', 'large' |
8687
| precision | Number of decimals | Number | 0 | Integer value|
8788
| controls | Enable/Disable Controls | Boolean | true | true/false|
8889
| controlsType | Controls Type | String | plusminus | plusminus/updown|
8990
| autofocus | Autofocus on Page Load | Boolean | false | true/false|
9091
| readonly | Is Readonly | Boolean | false | true/false|
9192
| disabled | Is Disabled | Boolean | false | true/false|
93+
| isinput | enable/disable keyboard input of number | Boolean | false | true/false|
94+
| mousewheel | Enable increment/decrement with mousewheel event | Boolean | false | true/false|
95+
| className | Css Class for Input Component | String | - | css class name |
9296

9397

9498
#### EVENTS:

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
presets: [
3+
'@vue/cli-plugin-babel/preset'
4+
]
5+
}

build/build.js

-41
This file was deleted.

build/check-versions.js

-54
This file was deleted.

build/utils.js

-101
This file was deleted.

build/vue-loader.conf.js

-22
This file was deleted.

0 commit comments

Comments
 (0)