update $Spin and release 2.4.0-beta.2

This commit is contained in:
梁灏 2017-09-24 15:36:14 +08:00
parent a6bb1d9023
commit 7fdad3a3ca
4 changed files with 11 additions and 16 deletions

View file

@ -159,7 +159,7 @@
font-style: normal; font-style: normal;
font-size: 14px; font-size: 14px;
} }
.demo-spin-article p{ .demo-spin-article p {
font-size: 16px; font-size: 16px;
} }
</style> </style>
@ -194,19 +194,7 @@
}, },
methods: { methods: {
show () { show () {
this.$Spin.show({ this.$Spin.show();
render: (h) => {
return h('div', [
h('Icon', {
props: {
type: 'load-c',
size: 24
}
}),
h('div', 'Loading')
])
}
});
setTimeout(() => { setTimeout(() => {
this.$Spin.hide(); this.$Spin.hide();
}, 3000) }, 3000)

View file

@ -1,6 +1,6 @@
{ {
"name": "iview", "name": "iview",
"version": "2.4.0-beta.1", "version": "2.4.0-beta.2",
"title": "iView", "title": "iView",
"description": "A high quality UI components Library with Vue.js", "description": "A high quality UI components Library with Vue.js",
"homepage": "http://www.iviewui.com", "homepage": "http://www.iviewui.com",

View file

@ -27,7 +27,7 @@ Spin.newInstance = properties => {
}); });
} }
return h('div', { return h('div', {
'class': 'ivu-spin-fullscreen' 'class': 'ivu-spin-fullscreen ivu-spin-fullscreen-wrapper'
}, [vnode]); }, [vnode]);
} }
}); });

View file

@ -35,6 +35,13 @@
} }
&-fullscreen{ &-fullscreen{
z-index: @zindex-spin-fullscreen; z-index: @zindex-spin-fullscreen;
&-wrapper{
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
} }
&-fix &-main { &-fix &-main {