Commit c64642b2 by zhaochengxiang

右键cursor

parent 0ba92ffc
...@@ -391,6 +391,10 @@ a.yy-typography-disabled { ...@@ -391,6 +391,10 @@ a.yy-typography-disabled {
.yy-pagination-item-active { .yy-pagination-item-active {
a { a {
color: #c7000b !important; color: #f1b1b4 !important;
} }
} }
.allow-right-click {
cursor: context-menu !important;
}
\ No newline at end of file
...@@ -978,11 +978,16 @@ const AssetTable = (props) => { ...@@ -978,11 +978,16 @@ const AssetTable = (props) => {
} }
}} }}
rowClassName={(record, index) => { rowClassName={(record, index) => {
let classNames = [];
if (reference===AssetManageReference && (record.resourceState==='uncombed'||record.resourceState==='notRelatedAsset')) {
classNames.push('allow-right-click');
}
if (record?.id===anchorId || record?.id===selectItem?.id) { if (record?.id===anchorId || record?.id===selectItem?.id) {
return 'yy-table-select-row'; classNames.push('yy-table-select-row');
} }
return ''; return classNames.join(' ');
}} }}
loading={loading} loading={loading}
columns={ columns={
......
...@@ -797,6 +797,7 @@ const ModelTable = (props) => { ...@@ -797,6 +797,7 @@ const ModelTable = (props) => {
dataSource={modelId?(subData||[]):(filterData||[])} dataSource={modelId?(subData||[]):(filterData||[])}
pagination={false} pagination={false}
size={modelId?'small':'default'} size={modelId?'small':'default'}
rowClassName={(record, index) => 'allow-right-click'}
onRow={(record, index) => { onRow={(record, index) => {
return { return {
id: `data-model-${record?.id}`, id: `data-model-${record?.id}`,
......
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