naive-ui/demo/documentation/components/code/enUS/basic.md
2019-12-13 23:55:19 +08:00

462 B

Basic

<n-code :code="`
function sleep (ms = 1000) {
  return new Promise(res => setTimeout(res, ms))
}
`" language="javascript" />

<n-code :code="`
def say_hello():
    print('Hello Naive UI')
`" language="python" />

<n-code :code="cppCode" language="cpp" />
export default {
  data () {
    return {
      cppCode: `int main () {
  std::cout << "Hello Naive UI";
  return 0;
}`
    }
  }
}
.n-code {
  margin-bottom: 16px;
}