代码内容
var originColor = '#bcd3eb'; // 原始字体色var originBg = 'rgba(0,0,0,0)'; // 原始背景色var highColor = 'red'; // 高亮字体颜色var highBg = 'yellow'; // 高亮背景色$('.clickThemeRowChangeStyle').css({color: originColor ,background: originBg}).removeClass('clickThemeRowChangeStyle');console.log(event.target)if ($(event.target).hasClass('datagrid-cell')) {$(event.target).parent().parent().addClass('clickThemeRowChangeStyle');} else {$(event.target).parent().addClass('clickThemeRowChangeStyle');}$('.clickThemeRowChangeStyle').css({color: highColor ,background: highBg});
使用说明
看板行单击中添加自定义注入
