import * as Nerv from 'nervjs' import Component from '@lib/component' interface LoadingbarElemProps { status?: string percent?: number width: number show?: boolean } class LoadingbarElem extends Component { static defaultProps = { show: false, status: 'success', percent: 0, width: 2 } static forceUpdate: any componentDidMount () { LoadingbarElem.forceUpdate = this.forceUpdate.bind(this) } render () { const { status, percent, width } = this.props const barStyle = () => { return { height: `${width | 0 || 2}px` } } return ( //
// ) } } export default LoadingbarElem