Commit d0970339 authored by gj4210's avatar gj4210 👁
Browse files

ADD: Code option for CopyField

+ FIX single line styling
parent 807a23bd
Pipeline #106670 passed with stages
in 7 minutes and 39 seconds
<template>
<b-input-group class="copy-field">
<b-form-textarea v-if="multiline" rows="10" :id="'text-input' + id" ref="textInput" v-model="text"
readonly :class="`border-${variant} text-${variant} invisible-scrollbar`"/>
<b-form-input v-else :id="'text-input' + id" ref="textInput" v-model="text" readonly/>
readonly :class="`border-${variant} text-${variant} invisible-scrollbar ${code?'text-monospace':''}`"/>
<b-form-input v-else :id="'text-input' + id" ref="textInput" v-model="text"
readonly :class="`border-${variant} text-${variant} invisible-scrollbar ${code?'text-monospace':''}`"/>
<b-tooltip :target="'text-input' + id" :show.sync="text_copied" :disabled="!text_copied" placement="bottom"
:variant="variant" :class="`border-${variant} text-${variant}`">
Kopiert.
......@@ -27,6 +28,10 @@ export default {
'multiline': {
'type': Boolean,
'default': false
},
'code': {
'type': Boolean,
'default': false
}
},
data() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment