Feat: Add cert exp. settings

This commit is contained in:
Nelson Chan 2022-05-12 18:18:47 +08:00
parent 9fc5a3329f
commit b7ba6330db
5 changed files with 153 additions and 6 deletions

View file

@ -0,0 +1,62 @@
<template>
<div class="input-group mb-3">
<input
ref="input"
v-model="model"
class="form-control"
:type="type"
:placeholder="placeholder"
:disabled="!enabled"
>
<a class="btn btn-outline-primary" @click="action()">
<font-awesome-icon :icon="icon" />
</a>
</div>
</template>
<script>
export default {
props: {
modelValue: {
type: String,
default: ""
},
enabled: {
type: Boolean,
default: true
},
placeholder: {
type: String,
default: ""
},
icon: {
type: String,
required: true,
},
type: {
type: String,
default: "text",
},
action: {
type: Function,
default: () => {},
}
},
emits: [ "update:modelValue" ],
computed: {
model: {
get() {
return this.modelValue;
},
set(value) {
this.$emit("update:modelValue", value);
}
}
},
created() {
},
methods: {
}
};
</script>