https://github.com/harhao/vill-loading
https://github.com/harhao/vill-loading
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/harhao/vill-loading
- Owner: Harhao
- Created: 2018-11-01T03:26:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-31T15:03:58.000Z (about 6 years ago)
- Last Synced: 2025-03-04T06:12:13.496Z (3 months ago)
- Language: JavaScript
- Size: 83 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vill-loading
> a vue plugins about notice or toast modal
## Build Setup
### install the plugin on bash and the sass module support
```
npm install vill-loading --save-dev
npm install sass-loader node-sass vue-style-loader --save-dev
```### register the plugins on the vue project in the entry file (main.js)
```
import loading from 'vill-loading'
Vue.use(loading);
```### on the vue template file ,you can use it by the follow example
```
demo
export default {
name: 'app',
data () {
return {
}
}
}#app{
width: 100vw;
height: 100vh;
.bindCls{
width: 500px;
height: 500px;
}
}```
| 字段 | 说明 | 类型 | 默认值 |
| --------- | ----------------- | ------- | ------ |
| fullscreen | 修饰符全屏loading| - | - |
| lock | 修饰符全屏loading不可滚动)| - | - |
| text | loading的提示文字| string | - |
| loading | 控制loading的显隐| boolean | - |### demo
## License
[MIT](http://opensource.org/licenses/MIT)