Commit 76dbe09a authored by 何虹's avatar 何虹 💬

优化表格

parent 8b0e114f
......@@ -246,7 +246,8 @@ export default {
},
computed: {
// 为什么加这个 因为有变态需求是列表上要修改, 原本是列表上一律不允许修改 Editable
isEditable() { // 是否可编辑
isEditable() {
// 是否可编辑
const editable = this.$attrs.editable
if (editable) {
return false
......@@ -278,7 +279,7 @@ export default {
return bool
}
}
return !!(this.disabled || bool)
return !!(this.disabled || bool || this.$attrs.disabled)
}
},
methods: {
......
......@@ -283,6 +283,7 @@
:item='item'
:formParms='scope.row'
:editable='editable'
:prop="item.prop"
v-bind="$attrs"
v-on="$listeners"
>
......
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