das-component-vue
A business component library that supports Vue 3
3,034
| Install | |
|---|---|
npm install das-component-vue |
|
| Latest Version: | 1.2.18 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Sep 24, 2025 |
| Links: | Repository · npm |
Maintainer: zhiqi_team
快速上手
引入 das-component-vue
1. 安装
使用 npm 或 yarn 安装
$ npm install das-component-vue --save
$ yarn add das-component-vue
2. 注册
如果使用 Vue 默认的模板语法,需要注册组件后方可使用
全局完整注册
import { createApp } from 'vue';
import DasComponent from 'das-component-vue';
import App from './App.vue';
createApp(App).use(DasComponent).mount('#app');
注意:引入
das-component-vue前你需要自行引入Ant Design Vue及其相关插件。
按需加载
使用 unplugin-vue-components 实现自动导入:
npm install -D unplugin-vue-components
// vite.config.js
import Components from 'unplugin-vue-components/vite'
import { dasComponentResolver } from 'das-component-vue';
import { defineConfig } from 'vite'
export default defineConfig({
plugins: [
Components({
resolvers: [
AntDesignVueResolver({
importStyle: false
}),
dasComponentResolver()
]
})
]
})
然后你可以在代码中直接引入 das-component-vue 的组件,插件会自动将代码转化为 import { xxx } from 'das-component-vue' 的形式。
Related Packages
@wil-works/evoke-business-ui
Evoke Business UI — 纯 JS Vue3 中后台组件库,内置 Remix Icon 图标体系(图表能力...
2,822
0
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.2.18 | ^3.0.0 | MIT | |
| 1.2.17 | ^3.0.0 | MIT | |
| 1.2.15 | ^3.0.0 | MIT | |
| 1.2.13 | ^3.0.0 | MIT | |
| 1.2.12 | ^3.0.0 | MIT | |
| 1.2.11 | ^3.0.0 | MIT | |
| 1.2.10 | ^3.0.0 | MIT | |
| 1.2.9 | ^3.0.0 | MIT | |
| 1.2.2 | ^3.0.0 | MIT | |
| 1.2.1 | ^3.0.0 | MIT | |
| 1.2.0 | MIT | ||
| 1.1.6 | MIT | ||
| 1.1.5 | MIT | ||
| 1.1.4 | MIT | ||
| 1.1.3 | MIT | ||
| 1.1.2 | MIT | ||
| 1.1.1 | MIT | ||
| 1.1.0 | MIT | ||
| 1.0.3 | MIT | ||
| 1.0.2 | MIT |
Pre-releases (4)
| Version | Released | Vue | License |
|---|---|---|---|
| 1.2.13-beta.3 | ^3.0.0 | MIT | |
| 1.2.13-beta.2 | ^3.0.0 | MIT | |
| 1.2.13-beta.1 | ^3.0.0 | MIT | |
| 1.1.7-rc.1 | MIT |