47 lines
816 B
Vue
47 lines
816 B
Vue
<!--
|
|
* @Author: zhp
|
|
* @Date: 2024-07-12 13:41:41
|
|
* @LastEditTime: 2024-07-12 13:41:41
|
|
* @LastEditors: zhp
|
|
* @Description:
|
|
-->
|
|
<template>
|
|
<div class="tableInner">
|
|
<el-input-number v-model="list[itemProp]" @blur="changeInput" :min="0" :max="100000000" style="width: 100%"
|
|
:controls='false'></el-input-number>
|
|
</div>
|
|
</template>
|
|
<script>
|
|
export default {
|
|
name: 'InputArea',
|
|
props: {
|
|
injectData: {
|
|
type: Object,
|
|
default: () => ({})
|
|
},
|
|
itemProp: {
|
|
type: String
|
|
}
|
|
},
|
|
data() {
|
|
return {
|
|
list: this.injectData
|
|
}
|
|
},
|
|
methods: {
|
|
changeInput() {
|
|
console.log(this.list)
|
|
this.$emit('emitData', this.list)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style lang="scss">
|
|
.tableInner .el-input__inner {
|
|
border: none;
|
|
padding: 0;
|
|
height: 33px;
|
|
}
|
|
|
|
</style>
|