迁移
This commit is contained in:
17
project/biaopin/AppWorkOrder/components/TableInputColumn.vue
Normal file
17
project/biaopin/AppWorkOrder/components/TableInputColumn.vue
Normal 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>
|
||||
Reference in New Issue
Block a user