|
@@ -7,7 +7,7 @@
|
|
{{placeholder}}
|
|
{{placeholder}}
|
|
</div>
|
|
</div>
|
|
<input
|
|
<input
|
|
- type='text'
|
|
|
|
|
|
+ v-bind:type='type || "text"'
|
|
class='input'
|
|
class='input'
|
|
v-bind:value='value'
|
|
v-bind:value='value'
|
|
v-bind:style='{width: width || "10rem"}'
|
|
v-bind:style='{width: width || "10rem"}'
|
|
@@ -21,7 +21,7 @@
|
|
<script>
|
|
<script>
|
|
export default {
|
|
export default {
|
|
name: 'FancyInput',
|
|
name: 'FancyInput',
|
|
- props: ['value', 'placeholder', 'width'],
|
|
|
|
|
|
+ props: ['value', 'placeholder', 'width', 'type'],
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
active: false
|
|
active: false
|
|
@@ -47,6 +47,7 @@
|
|
.fancy_input {
|
|
.fancy_input {
|
|
position: relative;
|
|
position: relative;
|
|
margin-top: 0.25rem;
|
|
margin-top: 0.25rem;
|
|
|
|
+ margin-bottom: 0.5rem;
|
|
|
|
|
|
@at-root #{&}__placeholder {
|
|
@at-root #{&}__placeholder {
|
|
position: absolute;
|
|
position: absolute;
|