@kizmann/nano-ui 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- package/demos/overview.html +13 -7
- package/dist/nano-ui.css +1 -1
- package/dist/nano-ui.js +2 -2
- package/dist/nano-ui.js.map +1 -1
- package/dist/themes/basic.css +2029 -0
- package/dist/themes/flat.css +1806 -0
- package/dist/themes/flat.dark.css +1809 -0
- package/package.json +2 -2
- package/src/input-number/src/input-number/input-number.js +9 -1
- package/src/preview/src/preview/preview.scss +0 -11
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@kizmann/nano-ui",
|
3
|
-
"version": "0.7.
|
3
|
+
"version": "0.7.3",
|
4
4
|
"license": "MIT",
|
5
5
|
"private": false,
|
6
6
|
"author": "Eduard Kizmann <kizmann@protonmail.ch>",
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"@babel/plugin-proposal-export-default-from": "^7.2.0",
|
18
18
|
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
|
19
19
|
"@babel/preset-env": "^7.4.4",
|
20
|
-
"@kizmann/pico-js": "^0.3.
|
20
|
+
"@kizmann/pico-js": "^0.3.17",
|
21
21
|
"@vue/babel-plugin-jsx": "^1.0.0",
|
22
22
|
"@vue/babel-preset-jsx": "^1.2.4",
|
23
23
|
"autoprefixer": "^9.6.1",
|
@@ -252,7 +252,7 @@ export default {
|
|
252
252
|
let value = event.target.value;
|
253
253
|
|
254
254
|
let format = this.format.replace(':count',
|
255
|
-
`([0-9
|
255
|
+
`([0-9\\,\\.\\-\\s]+)`);
|
256
256
|
|
257
257
|
let regex = new RegExp(`^${format}$`);
|
258
258
|
|
@@ -267,6 +267,14 @@ export default {
|
|
267
267
|
|
268
268
|
value = Num.float(value).toFixed(this.precision);
|
269
269
|
|
270
|
+
if ( value < this.min ) {
|
271
|
+
value = this.min;
|
272
|
+
}
|
273
|
+
|
274
|
+
if ( value > this.max ) {
|
275
|
+
value = this.max;
|
276
|
+
}
|
277
|
+
|
270
278
|
this.$emit('update:modelValue',
|
271
279
|
this.tempValue = Num.float(value));
|
272
280
|
|
@@ -5,17 +5,6 @@
|
|
5
5
|
display: inline-flex;
|
6
6
|
}
|
7
7
|
|
8
|
-
.n-preview:before {
|
9
|
-
z-index: 5;
|
10
|
-
content: '\00a0';
|
11
|
-
position: absolute;
|
12
|
-
top: 0;
|
13
|
-
left: 0;
|
14
|
-
display: block;
|
15
|
-
width: 100%;
|
16
|
-
height: 100%;
|
17
|
-
}
|
18
|
-
|
19
8
|
.n-preview--cover img {
|
20
9
|
object-fit: cover !important;
|
21
10
|
}
|