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