-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12867 from OlegZharkov/input-color
Vuefy color input form element
- Loading branch information
Showing
8 changed files
with
51 additions
and
224 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,40 @@ | ||
<template> | ||
<b-row> | ||
<b-col class="form-color-input"> | ||
<b-form-input class="cursor-pointer" :id="id" v-model="currentValue" type="color" size="sm" /> | ||
</b-col> | ||
<b-col class="pl-0"> | ||
<label class="pt-1 cursor-pointer" :for="id">Select a color</label> | ||
</b-col> | ||
</b-row> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
value: { | ||
type: String, | ||
default: "", | ||
}, | ||
id: { | ||
type: String, | ||
required: true, | ||
}, | ||
}, | ||
computed: { | ||
currentValue: { | ||
get() { | ||
return this.value; | ||
}, | ||
set(val) { | ||
this.$emit("input", val); | ||
}, | ||
}, | ||
}, | ||
}; | ||
</script> | ||
<style scoped> | ||
.form-color-input { | ||
max-width: 3.6rem; | ||
} | ||
</style> |
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
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 |
---|---|---|
|
@@ -383,7 +383,3 @@ export default { | |
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
@import "./pointer.css"; | ||
</style> |
7 changes: 0 additions & 7 deletions
7
client/src/components/Libraries/LibraryFolder/TopToolbar/pointer.css
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
client/src/components/Libraries/LibraryFolder/library-folder-table.css
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
@import "./TopToolbar/pointer.css"; | ||
|
||
th:focus { | ||
outline: none !important; | ||
} | ||
|
This file was deleted.
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