| 123456789101112131415161718192021 |
- /**
- * 标题列显示额外的内容。
- * Display extra content in the title column.
- *
- * @param object result
- * @param object info
- * @access public
- * @return object
- */
- window.onRenderCell = function(result, {row, col})
- {
- if(result && col.name == 'title')
- {
- if(row.data.color) result[0].props.style = 'color: ' + row.data.color;
- const module = this.options.modules[row.data.module];
- if(module) result.unshift({html: '<span class="label gray-pale rounded-full">' + module + '</span>'}); // 添加模块标签
- }
- return result;
- }
|