基于 ant design vue 的 Vue3 组件库,包含一些通用模板和服务。
npm i -S antdvx
<template>
<AntdButton size="small" @click="onClick">button</AntdButton>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import { AntdButton } from 'antdvx/components/button';
export default defineComponent({
components: { AntdButton },
setup(){
const onClick = () => {
console.log('button click.');
};
return {
onClick
};
}
});
</script>