Commit 7fdad3a3cae95658f0f5e0e998a51c9d301d2f59
1 parent
a6bb1d90
update $Spin and release 2.4.0-beta.2
Showing
4 changed files
with
11 additions
and
16 deletions
Show diff stats
examples/routers/spin.vue
| ... | ... | @@ -159,7 +159,7 @@ |
| 159 | 159 | font-style: normal; |
| 160 | 160 | font-size: 14px; |
| 161 | 161 | } |
| 162 | - .demo-spin-article p{ | |
| 162 | + .demo-spin-article p { | |
| 163 | 163 | font-size: 16px; |
| 164 | 164 | } |
| 165 | 165 | </style> |
| ... | ... | @@ -194,19 +194,7 @@ |
| 194 | 194 | }, |
| 195 | 195 | methods: { |
| 196 | 196 | show () { |
| 197 | - this.$Spin.show({ | |
| 198 | - render: (h) => { | |
| 199 | - return h('div', [ | |
| 200 | - h('Icon', { | |
| 201 | - props: { | |
| 202 | - type: 'load-c', | |
| 203 | - size: 24 | |
| 204 | - } | |
| 205 | - }), | |
| 206 | - h('div', 'Loading') | |
| 207 | - ]) | |
| 208 | - } | |
| 209 | - }); | |
| 197 | + this.$Spin.show(); | |
| 210 | 198 | setTimeout(() => { |
| 211 | 199 | this.$Spin.hide(); |
| 212 | 200 | }, 3000) | ... | ... |
package.json
src/components/spin/spin.js
src/styles/components/spin.less