@spruce-hub/cui
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>
Related Packages
Version History
Pre-releases (18)
| Version | Released | Vue | License |
|---|---|---|---|
| 1.0.0-alpha.18 | >=3.2.0 | MIT | |
| 1.0.0-alpha.17 | >=3.2.0 | MIT | |
| 1.0.0-alpha.16 | >=3.2.0 | MIT | |
| 1.0.0-alpha.15 | >=3.2.0 | MIT | |
| 1.0.0-alpha.14 | >=3.2.0 | MIT | |
| 1.0.0-alpha.13 | >=3.2.0 | MIT | |
| 1.0.0-alpha.12 | >=3.2.0 | MIT | |
| 1.0.0-alpha.11 | >=3.2.0 | MIT | |
| 1.0.0-alpha.10 | >=3.2.0 | MIT | |
| 1.0.0-alpha.9 | >=3.2.0 | MIT | |
| 1.0.0-alpha.8 | >=3.2.0 | MIT | |
| 1.0.0-alpha.7 | >=3.2.0 | MIT | |
| 1.0.0-alpha.6 | >=3.2.0 | MIT | |
| 1.0.0-alpha.5 | >=3.2.0 | MIT | |
| 1.0.0-alpha.4 | >=3.2.0 | MIT | |
| 1.0.0-alpha.3 | >=3.2.0 | MIT | |
| 1.0.0-alpha.2 | >=3.2.0 | MIT | |
| 1.0.0-alpha.1 | >=3.2.0 | MIT |