naive-ui/demo/documentation/components/log/zhCN/loading.md
2020-02-04 16:29:09 +08:00

345 B

加载中

<n-switch v-model="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()
    }
  }
}