@namelivia/vue-components 0.1.4 → 0.1.5
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/package.json +1 -1
- package/src/NumberInput.vue +10 -3
- package/src/index.js +2 -0
package/package.json
CHANGED
package/src/NumberInput.vue
CHANGED
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
:name="id"
|
|
10
10
|
:required="required"
|
|
11
11
|
:placeholder="placeholder"
|
|
12
|
-
:value="
|
|
12
|
+
:value="amount"
|
|
13
|
+
:min="min"
|
|
14
|
+
:step="step"
|
|
13
15
|
@input="onInput"
|
|
14
16
|
type="number"
|
|
15
|
-
min="1"
|
|
16
17
|
/>
|
|
17
18
|
</div>
|
|
18
19
|
</template>
|
|
@@ -31,9 +32,15 @@ export default {
|
|
|
31
32
|
label: {
|
|
32
33
|
type: String,
|
|
33
34
|
},
|
|
34
|
-
|
|
35
|
+
amount:: {
|
|
35
36
|
type: Number,
|
|
36
37
|
},
|
|
38
|
+
min: {
|
|
39
|
+
type: String,
|
|
40
|
+
},
|
|
41
|
+
step: {
|
|
42
|
+
type: String,
|
|
43
|
+
},
|
|
37
44
|
},
|
|
38
45
|
methods: {
|
|
39
46
|
onInput(event) {
|
package/src/index.js
CHANGED
|
@@ -11,6 +11,7 @@ import { default as CardBody } from './CardBody.vue'
|
|
|
11
11
|
import { default as Selector } from './Selector.vue'
|
|
12
12
|
import { default as TextInput } from './TextInput.vue'
|
|
13
13
|
import { default as NumberInput } from './NumberInput.vue'
|
|
14
|
+
import { default as NumberInput } from './NumberInput.vue'
|
|
14
15
|
import { default as ImageInput } from './ImageInput.vue'
|
|
15
16
|
import { default as CardGrid } from './CardGrid.vue'
|
|
16
17
|
import { default as Navbar } from './Navbar.vue'
|
|
@@ -28,6 +29,7 @@ export {
|
|
|
28
29
|
Selector,
|
|
29
30
|
TextInput,
|
|
30
31
|
NumberInput,
|
|
32
|
+
NumberInput,
|
|
31
33
|
ImageInput,
|
|
32
34
|
CardGrid,
|
|
33
35
|
Navbar
|