How to use the table/helper.getCalculatedWidth 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('getCalculatedWidths', () => {
    expect(helper.getCalculatedWidth(10)).toEqual('10%');
    expect(helper.getCalculatedWidth('10px')).toEqual('10px');
    expect(helper.getCalculatedWidth('10rem')).toEqual('10rem');
  });
github youzan / zent / packages / zent / __tests__ / table / helper.js View on Github external
it('getCalculatedWidths', () => {
    expect(helper.getCalculatedWidth(10)).toEqual('10%');
    expect(helper.getCalculatedWidth('10px')).toEqual('10px');
    expect(helper.getCalculatedWidth('10rem')).toEqual('10rem');
  });
github youzan / zent / packages / zent / __tests__ / table / helper.js View on Github external
it('getCalculatedWidths', () => {
    expect(helper.getCalculatedWidth(10)).toEqual('10%');
    expect(helper.getCalculatedWidth('10px')).toEqual('10px');
    expect(helper.getCalculatedWidth('10rem')).toEqual('10rem');
  });