| | |
| | | <!-- 启用双击编辑功能,带编辑功能的不会渲染下拉框文本背景颜色 --> |
| | | <!-- @click="rowBeginEdit(scope.$index,cindex)" --> |
| | | <!-- 2021.09.21增加编辑时对readonly属性判断 --> |
| | | <template v-else-if="column.edit && !column.readonly && ['file', 'img', 'excel'].indexOf(column.edit.type) != -1"> |
| | | <template |
| | | v-else-if="column.edit && !column.readonly && ['file', 'img', 'excel'].indexOf(column.edit.type) != -1"> |
| | | <div style="display:flex;align-items: center;" @click.stop> |
| | | <i v-if="!column.showUpload || column.showUpload(scope.row, column)" |
| | | style="padding: 3px;margin-right: 10px;color:#8f9293;cursor: pointer;" |
| | |
| | | v-else-if="column.edit.type == 'treeSelect' || column.edit.type == 'cascader'" |
| | | v-model="scope.row[column.field]" :data="column.bind.data" |
| | | :multiple="column.multiple === undefined ? true : column.multiple" :render-after-expand="false" |
| | | :show-checkbox="true" :check-strictly="column.checkStrictly === undefined ? true : column.checkStrictly" |
| | | check-on-click-node node-key="key" @change="column.onChange && column.onChange(scope.row, column)" |
| | | :show-checkbox="true" |
| | | :check-strictly="column.checkStrictly === undefined ? true : column.checkStrictly" check-on-click-node |
| | | node-key="key" @change="column.onChange && column.onChange(scope.row, column)" |
| | | :props="{ label: 'label' }"> |
| | | <template #default="{ data, node }"> |
| | | {{ data.label }}</template> |