This repository has been archived by the owner on Dec 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Show number attribute * Apply fixes from StyleCI (#10)
- Loading branch information
1 parent
b02fb83
commit 8a666a5
Showing
6 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
resources/assets/js/components/elements/forms/inputs/Number.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<template> | ||
<div> | ||
<input type="number" | ||
:value="value" | ||
@input="updateValue($event.target.value)" | ||
class="form-control" | ||
:required="required" | ||
:placeholder="placeholder" | ||
:disabled="disabled"> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
value: { | ||
type: String | ||
}, | ||
translate: { | ||
type: String, | ||
default: null | ||
}, | ||
required: { | ||
type: Boolean | ||
}, | ||
placeholder: { | ||
type: String | ||
}, | ||
disabled: { | ||
type: Boolean, | ||
default: false | ||
} | ||
}, | ||
methods: { | ||
updateValue: function (value) { | ||
this.$emit('input', value); | ||
} | ||
} | ||
} | ||
</script> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters