How to use the table/helper.getAlignClass function in table

To help you get started, we’ve selected a few table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github youzan / zent / packages / zent / __tests__ / table / helper.js View on Github external
it('getAlignClass', () => {
    expect(helper.getAlignClass('left')).toEqual('start');

    expect(helper.getAlignClass('right')).toEqual('end');

    expect(helper.getAlignClass('center')).toEqual('center');

    expect(helper.getAlignClass('xxx')).toEqual('start');

    expect(helper.getAlignClass('')).toEqual('');
  });
github youzan / zent / packages / zent / __tests__ / table / helper.js View on Github external
it('getAlignClass', () => {
    expect(helper.getAlignClass('left')).toEqual('start');

    expect(helper.getAlignClass('right')).toEqual('end');

    expect(helper.getAlignClass('center')).toEqual('center');

    expect(helper.getAlignClass('xxx')).toEqual('start');

    expect(helper.getAlignClass('')).toEqual('');
  });
github youzan / zent / packages / zent / __tests__ / table / helper.js View on Github external
it('getAlignClass', () => {
    expect(helper.getAlignClass('left')).toEqual('start');

    expect(helper.getAlignClass('right')).toEqual('end');

    expect(helper.getAlignClass('center')).toEqual('center');

    expect(helper.getAlignClass('xxx')).toEqual('start');

    expect(helper.getAlignClass('')).toEqual('');
  });
github youzan / zent / packages / zent / __tests__ / table / helper.js View on Github external
it('getAlignClass', () => {
    expect(helper.getAlignClass('left')).toEqual('start');

    expect(helper.getAlignClass('right')).toEqual('end');

    expect(helper.getAlignClass('center')).toEqual('center');

    expect(helper.getAlignClass('xxx')).toEqual('start');

    expect(helper.getAlignClass('')).toEqual('');
  });
github youzan / zent / packages / zent / __tests__ / table / helper.js View on Github external
it('getAlignClass', () => {
    expect(helper.getAlignClass('left')).toEqual('start');

    expect(helper.getAlignClass('right')).toEqual('end');

    expect(helper.getAlignClass('center')).toEqual('center');

    expect(helper.getAlignClass('xxx')).toEqual('start');

    expect(helper.getAlignClass('')).toEqual('');
  });