This commit is contained in:
liuye
2024-08-13 09:07:34 +08:00
parent 9015cd06c0
commit b066edd428
8 changed files with 1 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
<template>
<el-table-column :label="label" v-bind="$attrs">
<template slot-scope="{row}">
<el-input v-model="row[prop]" :placeholder="placeholder" clearable/>
</template>
</el-table-column>
</template>
<script>
export default {
name: 'table-input-column',
props: {
label: {type: String, required: true},
prop: {type: String, required: true},
placeholder: {default: "请输入"}
}
}
</script>