0.1.0 • Published 6 years ago

@beisen/tub-tmpl-work-statistical v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

组件接入的方式

import React from 'react';
import TubTmplWorkStatistical from "./index.js";
const config  = {
    list:[
        {
            value:1,
            text:'我的项目'
        },
        {
            value:2,
            text:'他的项目'
        }
    ],
    handleFetchData: (value)=>{
        return new Promise(resolve=>{
            //fetch data here
            resolve(mockData)
        })
    }
}
export default class Demo extends React.Component {
    render() {
        return <TubTmplWorkStatistical {...config}/>;
    }
}