@spruce-hub/mui
v1.0.0-alpha.16
Published
适用于管理平台的公共组件或模块
Downloads
6
Readme
Spruce MUI
适用于管理平台的公共组件或模块
Usage
pnpm add @spruce-hub/mui -P
Quick start
Full Import
// main.ts
import { createApp } from 'vue'
import App from './App.vue'
import mui from '@spruce-hub/mui'
createApp(App).use(mui).mount('#app')
<template>
<MAlert type="success" description="success alert" closable="center" />
</template>
Volar support
// tsconfig.json
{
"compilerOptions": {
// ...
"types": ["@spruce-hub/mui/global"]
}
}
On-demand Import
<script setup lang="ts">
import { MAlert } from '@spruce-hub/mui'
</script>
<template>
<MAlert type="success" description="success alert" closable="center" />
</template>