2
0
mirror of https://github.com/tusen-ai/naive-ui.git synced 2025-01-24 12:45:18 +08:00
naive-ui/demo/documentation/components/log/enUS/loading.demo.md
2020-12-12 15:33:41 +08:00

345 B

Loading

<n-switch v-model:value="loading" /> <n-log :loading="loading" :log="log" />
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()
    }
  }
}