fixed: column drag issue.
optimized: documentation.
This commit is contained in:
@ -250,7 +250,7 @@ export class GridCheckboxColumn extends GridColumn {
|
||||
export class GridIconColumn extends GridColumn {
|
||||
static create() { return createElement('span', 'col-icon') }
|
||||
|
||||
static setValue(element, val, item, col, _grid) {
|
||||
static setValue(element, val, item, col) {
|
||||
let className = col.iconClassName;
|
||||
if (typeof className === 'function') {
|
||||
className = className.call(col, item.values);
|
||||
@ -264,7 +264,7 @@ export class GridIconColumn extends GridColumn {
|
||||
if (typeof type === 'function') {
|
||||
type = type.call(col, item.values);
|
||||
}
|
||||
type ??= 'fa-regular';
|
||||
type ??= 'fa-light';
|
||||
if (element.dataset.type !== type || element.dataset.icon !== val) {
|
||||
const icon = createIcon(type, val);
|
||||
// const layer = element.children[0];
|
||||
|
Reference in New Issue
Block a user