xwb-loading

1.1.7 • Public • Published

xwb-loading

适用于 React Vue

安装

$ npm install xwb-loading -save

React 使用

import Loading from 'xwb-loading';

class Test extends Component {
    render() {
        return (
            <div className={styles.box}>
                <Loading />
            </div>
        );
    }
}

Vue 使用

//mian.js
import Loading from 'xwb-loading/vue';
Vue.use(Loading);

//test.vue
<template>
    <div class="test">
        <Loading />
    </div>
</template>;

属性

属性 类型
size 24 number string
color #2396fa string

示例

<Loading size='32' color='#2396fa'/>
<Loading size={32} color='red'/>

其他 React 编译

$ npm install
$ npm run build

vue git

xeb-loading/vuexeb-loading/vue

Package Sidebar

Install

npm i xwb-loading

Weekly Downloads

5

Version

1.1.7

License

none

Unpacked Size

20.8 kB

Total Files

17

Last publish

Collaborators

  • xwb007