|
|
@ -1,5 +1,5 @@ |
|
|
|
<template> |
|
|
|
<el-form-item :style="{ height: height, ...styleObject }" |
|
|
|
<el-form-item :style="{ height: height, ...styleObject }" :required="required" |
|
|
|
:class="[{ 'column': column }, { 'w510': addClass == 'w510' }, { 'w388': addClass == 'w388' }, 'form-item']" :label="label" |
|
|
|
:prop="prop" :rules="rules"> |
|
|
|
<p v-if="desc" class="desc_right">{{ desc }}</p> |
|
|
@ -36,7 +36,7 @@ |
|
|
|
<script> |
|
|
|
export default { |
|
|
|
name: 'GuipInput', |
|
|
|
props: ['value', 'styleObject', 'disabled', 'defaultValue', 'placeholder', |
|
|
|
props: ['value', 'styleObject', 'disabled', 'defaultValue', 'placeholder','required', |
|
|
|
'maxlength', 'minLength', 'clear', 'width', 'height', 'showWordLimit', |
|
|
|
'label', 'type', 'prop', 'rules', 'column', 'addClass', 'desc', 'unit'], |
|
|
|
data() { |
|
|
|