|
@ -17,16 +17,16 @@ |
|
|
@change="changeValue" |
|
|
@change="changeValue" |
|
|
> |
|
|
> |
|
|
<template #label> <span v-if="requiredIfComputed" style="color: red">*</span> {{ attrs.label }}</template> |
|
|
<template #label> <span v-if="requiredIfComputed" style="color: red">*</span> {{ attrs.label }}</template> |
|
|
<template v-if="attrs.button && attrs.buttonPosition === 'prepend' && props.form && props.form.getStatus() !== 'view'" #prepend> |
|
|
<template v-if="attrs.button && attrs.buttonPosition === 'prepend' && (!props.form || (props.form && props.form.getStatus() !== 'view'))" #prepend> |
|
|
<q-btn round dense flat v-bind="attrs.button" @click="attrs.button.click" /> |
|
|
<q-btn round dense flat v-bind="attrs.button" @click="attrs.button.click" /> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="attrs.button && attrs.buttonPosition === 'before' && props.form && props.form.getStatus() !== 'view'" #before> |
|
|
<template v-else-if="attrs.button && attrs.buttonPosition === 'before' && (!props.form || (props.form && props.form.getStatus() !== 'view'))" #before> |
|
|
<q-btn round dense flat v-bind="attrs.button" @click="attrs.button.click" /> |
|
|
<q-btn round dense flat v-bind="attrs.button" @click="attrs.button.click" /> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="attrs.button && attrs.buttonPosition === 'after' && props.form && props.form.getStatus() !== 'view'" #after> |
|
|
<template v-else-if="attrs.button && attrs.buttonPosition === 'after' && (!props.form || (props.form && props.form.getStatus() !== 'view'))" #after> |
|
|
<q-btn round dense flat v-bind="attrs.button" @click="attrs.button.click" /> |
|
|
<q-btn round dense flat v-bind="attrs.button" @click="attrs.button.click" /> |
|
|
</template> |
|
|
</template> |
|
|
<template v-else-if="attrs.button && props.form && props.form.getStatus() !== 'view'" #append> |
|
|
<template v-else-if="attrs.button && props.form && (!props.form || (props.form && props.form.getStatus() !== 'view'))" #append> |
|
|
<q-btn round dense flat v-bind="attrs.button" @click="attrs.button.click" /> |
|
|
<q-btn round dense flat v-bind="attrs.button" @click="attrs.button.click" /> |
|
|
</template> |
|
|
</template> |
|
|
</q-input> |
|
|
</q-input> |
|
|