naive-ui/demo/documentation/components/log/enUS/loading.md

27 lines
343 B
Markdown
Raw Normal View History

2019-12-17 18:14:02 +08:00
# Loading
```html
<n-switch v-model="loading" />
<n-log
:loading="loading"
:log="log"
/>
2019-12-17 18:14:02 +08:00
```
```js
function log () {
const l = []
for (let i = 0; i < 40; ++i) {
l.push((Math.random()).toString(16))
}
return l.join('\n') + '\n'
}
export default {
data () {
return {
loading: false,
log: log()
}
}
}
```