<template>
  <n-button>default</n-button>
  <n-button type="primary">Primary</n-button>
  <n-button type="info">Info</n-button>
  <n-button type="success">Success</n-button>
  <n-button type="warning">Warning</n-button>
  <n-button type="error">Error</n-button>
</template>

<script lang="ts">
import { Options, Vue } from "vue-class-component";
import { NButton } from 'naive-ui'

@Options({
  components: {
    NButton,
  }
})

export default class App extends Vue {}

//<img alt="Vue logo" src="./assets/logo.png" />
//  <HelloWorld msg="News Headlines" />
</script>

<style lang="less">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>

代码来源:柳伟卫

Logo

一站式 AI 云服务平台

更多推荐