<template>
<a-button type="primary">Button</a-button>
</template>
<script>
export default {
name: 'App'
}
</script>
<style>
/* Add some custom styles if needed */
</style>
<template>
):这里使用了 a-button
组件,这是 Ant Design Vue 中的一个按钮组件。type="primary"
表示这是一个主按钮。<script>
):定义了一个名为 App
的 Vue 组件。<style>
):可以添加自定义样式,这里没有特别的样式需求,所以留空。这个示例展示了如何在 Vue 2 项目中使用 Ant Design Vue 的按钮组件。你需要确保已经在项目中安装并配置了 Ant Design Vue。
上一篇:vue 获取div高度
下一篇:ueditor vue
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站