Commit 81e463d9 authored by 毛线's avatar 毛线

bug修改

parent e5d82a73
<template>
<cy-table v-loading="loading" :row-key="primaryKey" :list="data" :columns="columns" :height="height" @selectRow="(selection) => handler().selectionChange(selection)">
<cy-table v-loading="loading" :row-key="primaryKey" :list="data" :columns="columns" :height="height" @selection-change="(selection) => handler().selectionChange(selection)">
<template v-for="(column, index) in columns.filter(i => i.type == 'slot')" #[column.slotName]="{ data, $index }">
<slot :name="column.slotName" :data="data" :index="$index"/>
</template>
......@@ -101,7 +101,7 @@ export default {
handler() {
return {
selectionChange: (selection) => {
this.$emit('selectRow', selection)
this.$emit('selection-change', selection)
},
}
},
......
......@@ -40,7 +40,7 @@
<!-- 内容区域 -->
<div class="content">
<!-- 自定义table组件 -->
<LqLayoutTable ref="table" v-if="table.show !== false" :primary-key="primaryKey" :list-api="listApi" :props="table" :params="tableParams" @selectRow="(e) => {$emit('selectRow', e); selection = e}">
<LqLayoutTable ref="table" v-if="table.show !== false" :primary-key="primaryKey" :list-api="listApi" :props="table" :params="tableParams" @selection-change="(e) => {$emit('selection-change', e); selection = e}">
<template v-for="column in table.columns.filter(i => i.type == 'slot')" #[column.slotName]="{ data, $index }">
<slot :name="column.slotName" :data="data" :index="$index"/>
</template>
......
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