Commit 5536014e by nanrui

优化c-edit-table

parent 644f7b38
......@@ -32,6 +32,13 @@
:placeholder="`请输入${item.title}`"
:disabled="disabledAll"
></el-input>
<el-checkbox
v-else-if="item.show === 'checkbox'"
v-model="scope.row[item.dataIndex]"
:placeholder="`请输入${item.title}`"
:disabled="disabledAll"
checked
></el-checkbox>
<span v-else>{{ scope.row[item.dataIndex] }}</span>
</template>
</el-table-column>
......@@ -158,7 +165,13 @@ export default {
//this.$refs[this.urls].clearSelection();
},
},
mounted() {
this.$watch(() => {
return _.get(this.model, this.urls, [])
},(newVal, oldVal) => {
this.dataSource = newVal
})
},
created: function () {},
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment