forked from nayarahilton/vue-pwa-profil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lucasjs
committed
Nov 6, 2017
1 parent
891c776
commit 5028557
Showing
3 changed files
with
78 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<template> | ||
<input :type="type" :name="name" :id="id" class="input" :class="inputDesign" :placeholder="placeholder"> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
type: { | ||
required: true, | ||
type: String, | ||
}, | ||
name: { | ||
type: String, | ||
}, | ||
id: { | ||
type: String, | ||
}, | ||
design: { | ||
type: String, | ||
}, | ||
placeholder: { | ||
required: true, | ||
type: String, | ||
}, | ||
}, | ||
computed: { | ||
inputDesign() { | ||
if (this.design === 'main' || !this.design) return 'input-main'; | ||
if (this.design === 'home') return 'input-home'; | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped lang="stylus"> | ||
* | ||
box-sizing border-box | ||
.input | ||
margin-bottom 10px | ||
padding 10px | ||
width 100% | ||
&-main | ||
border 1px solid #ccc | ||
border-radius 10px | ||
color #ccc | ||
&-home | ||
border-bottom 1px solid #fff | ||
color #fff | ||
</style> |
Empty file.
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