sula
sula copied to clipboard
Question: queryTable 列表中的操作栏
Question
Description
type = like 的时候 可以不可以传入一个属性让其不冒泡
目前列表要做 antd onRow 行点击事件 type = like 的触发的action 会导致 冒泡到 行点击
麻烦给我一个完整的QueryTable配置,我在本地试试
const config = {
fields: [
{
name: 'qp-propertyGroupName-like',
label: '属性组名称',
field: {
type: 'input',
props: {
placeholder: '输入属性组名称',
},
},
},
],
columns: [
{
key: 'alias',
title: '属性组别称',
},
{
key: 'operaction',
title: '操作',
fixed: 'right',
render: [
{
type: 'link',
props: {
type: 'primary',
children: '编辑',
},
action: [
{
type: 'route',
path: '/commodityManagement/attributeGroup/edit?id=#{record.id}&type=edit',
},
],
},
],
},
],
rowKey: 'id',
tableProps: {
onRow: (record) => {
return {
onClick: () => {
console.log(1,2)
}, // 点击行
};
},
},
};
麻烦给我一个完整的QueryTable配置,我在本地试试
就是 类似我点击了编辑 按钮 但是也触发了 onRow 的 onClick 除非我手写render 但是又想用sula 的 自带的loading
麻烦给我一个完整的QueryTable配置,我在本地试试
自己手动去写的话 可以拿到 事件源去控制 但是 直接使用 action 的ctx 好像没有把事件源 暴露出来
明白你问题,等我看下哈