mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-08 06:22:34 -04:00
Added JSDoc for src/components/*
Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
parent
d939d03690
commit
2b42c3c828
20 changed files with 152 additions and 3 deletions
|
@ -25,33 +25,41 @@ let timeout;
|
|||
|
||||
export default {
|
||||
props: {
|
||||
/** ID of this input */
|
||||
id: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
/** Type of input */
|
||||
type: {
|
||||
type: String,
|
||||
default: "text"
|
||||
},
|
||||
/** The value of the input */
|
||||
modelValue: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
/** A placeholder to use */
|
||||
placeholder: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
/** Should the field auto complete */
|
||||
autocomplete: {
|
||||
type: String,
|
||||
default: undefined,
|
||||
},
|
||||
/** Is the input required? */
|
||||
required: {
|
||||
type: Boolean
|
||||
},
|
||||
/** Should the input be read only? */
|
||||
readonly: {
|
||||
type: String,
|
||||
default: undefined,
|
||||
},
|
||||
/** Is the input disabled? */
|
||||
disabled: {
|
||||
type: String,
|
||||
default: undefined,
|
||||
|
@ -79,14 +87,21 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
|
||||
/** Show the input */
|
||||
showInput() {
|
||||
this.visibility = "text";
|
||||
},
|
||||
|
||||
/** Hide the input */
|
||||
hideInput() {
|
||||
this.visibility = "password";
|
||||
},
|
||||
|
||||
/**
|
||||
* Copy the provided text to the users clipboard
|
||||
* @param {string} textToCopy
|
||||
* @returns {Promise<void>}
|
||||
*/
|
||||
copyToClipboard(textToCopy) {
|
||||
this.icon = "check";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue