-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: queryTable 列表中的操作栏 #109
Comments
麻烦给我一个完整的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)
}, // 点击行
};
},
},
}; |
就是 类似我点击了编辑 按钮 但是也触发了 onRow 的 onClick 除非我手写render 但是又想用sula 的 自带的loading |
明白你问题,等我看下哈 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Question
Description
type = like 的时候 可以不可以传入一个属性让其不冒泡
目前列表要做 antd onRow 行点击事件 type = like 的触发的action 会导致 冒泡到 行点击
The text was updated successfully, but these errors were encountered: