UNPKG

zent

Version:

一套前端设计语言和基于React的实现

20 lines (17 loc) 397 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var helper = { getCalculatedWidth: function getCalculatedWidth(width) { var res = void 0; if (typeof width === 'number') { res = width + '%'; } else if (typeof width === 'string') { res = width; } return res; } }; exports['default'] = helper; module.exports = exports['default'];