批量编辑优化
了解了story bug 组件的结构
<el-dropdown-item
:title="!bugCopyable(tableBatchSelectedRows[0]) ? $t('You are NOT authorized to copy bugs.') : ''"
@click.native="openBatchCopy(tableBatchSelectedRows)"
:disabled="!bugCopyable(tableBatchSelectedRows[0])"
>
{{ $t('Batch Copy') }}
</el-dropdown-item>
click 要有 native 才能生效
太久没有写事件传递了
@selectRowsObject="onSelectRowsObject"
:field-ype="fieldType"
//传递props
// 或者用eventBus传递
this.$EventBus.$emit('tableEditable', selectedRows[0]);
this.$EventBus.$on('tableEditable', selectedRows[0]);
熟悉jsx
最后更新于
这有帮助吗?