tangmen-element
v0.0.2
Published
Vue3 components library
Downloads
4
Readme
安装
npm i tangmen-element --save开始使用
全局使用
// 引入所有组件
import TElement from 'tangmen-element'
// 引入样式
import 'tangmen-element/dist/style.css'
import App from './App.vue'
// 全局使用
createApp(App).use(TElement).mount('#app')<template>
<tm-button>hello world</tm-button>
</template>单个导入
T Element 提供了基于 ES Module 的开箱即用的 Tree Shaking 功能。
<template>
<Button>我是 VkButton</Button>
</template>
<script>
import { Button } from 'tangmen-element'
export default {
components: { Button },
}
</script>