|
@@ -8,14 +8,14 @@
|
|
class="contentVal"
|
|
class="contentVal"
|
|
:type="content.type=='number'?'tel':'text'"
|
|
:type="content.type=='number'?'tel':'text'"
|
|
:style="{'width':1/content.iptLis.length*100-3+'%'}"
|
|
:style="{'width':1/content.iptLis.length*100-3+'%'}"
|
|
- :key="item.placeholder+idx"
|
|
|
|
|
|
+ :key="item.placeholder+idx"
|
|
v-model="item.value"
|
|
v-model="item.value"
|
|
:placeholder="item.placeholder"
|
|
:placeholder="item.placeholder"
|
|
@input="changeVal($event,idx,content.type)"
|
|
@input="changeVal($event,idx,content.type)"
|
|
@blur="blur"
|
|
@blur="blur"
|
|
@click="handleClick">
|
|
@click="handleClick">
|
|
<input v-show="content.iptLis.length==1" class="contentVal"
|
|
<input v-show="content.iptLis.length==1" class="contentVal"
|
|
- :type="content.type=='number'?'tel':'text'"
|
|
|
|
|
|
+ :type="content.type=='number'?'tel':'text'"
|
|
:placeholder="content.placeholder"
|
|
:placeholder="content.placeholder"
|
|
v-model="item.value"
|
|
v-model="item.value"
|
|
@input="changeVal($event,idx,content.type)"
|
|
@input="changeVal($event,idx,content.type)"
|
|
@@ -29,7 +29,7 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
-import { getModelExpStr } from '@utils/tools';
|
|
|
|
|
|
+import {getModelExpStr} from '@utils/tools.js';
|
|
|
|
|
|
export default {
|
|
export default {
|
|
props:{
|
|
props:{
|
|
@@ -120,8 +120,8 @@ export default {
|
|
// background-color: #fff;
|
|
// background-color: #fff;
|
|
background: transparent;
|
|
background: transparent;
|
|
outline-color: invert;
|
|
outline-color: invert;
|
|
- height: .36rem;
|
|
|
|
- line-height: .36rem;
|
|
|
|
|
|
+ height: .38rem;
|
|
|
|
+ line-height: .38rem;
|
|
width: 100%;
|
|
width: 100%;
|
|
padding:0 0.1rem;
|
|
padding:0 0.1rem;
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
@@ -143,6 +143,7 @@ export default {
|
|
.prefix {
|
|
.prefix {
|
|
float: left;
|
|
float: left;
|
|
color: #666;
|
|
color: #666;
|
|
|
|
+ line-height: .72rem;
|
|
}
|
|
}
|
|
.suffix {
|
|
.suffix {
|
|
position: absolute;
|
|
position: absolute;
|