dy-ui-for-element-plus
dy-ui-for-elements-plus
介绍
dy-ui-for-elements-plus 是基于 Element Plus 的 UI 组件库,提供了一系列的组件,方便开发者快速构建页面。
安装
pnpm install dy-ui-for-elements-plus
使用
完整引入
import { createApp } from 'vue'
import App from './App.vue'
import dyUi from 'dy-ui-for-elements-plus'
import 'dy-ui-for-elements-plus/style.css'
const app = createApp(App)
app.use(dyUi,{
/**
* 当项目内存在权限验证函数时,组件支持全局配置权限校验函数
* @description 当组件存在auth传参时,会调用全局配置的权限校验函数
*/
permission: (args:any)=>boolean
})
app.mount('#app')
按需引入
- 入口文件中
import { createApp } from 'vue'
import App from './App.vue'
import 'dy-ui-for-elements-plus/style.css'
- 模版文件中
import { DyInput } from 'dy-ui-for-elements-plus'
tsconfig.json 配置
- 如需获取工具库的类型提示,需要在 tsconfig.json 中更新以下内容
"compilerOptions":{
"module":"NodeNext", // 支持utils目录下的文件
"moduleResolution":"nodenext", // 支持utils目录下的文件
"types":["dy-ui-for-element-plus"]
}
DyForm中如果需要使用富文本编辑器需要安装 wangeditor
pnpm install wangeditor
本地打包测试
npm pack
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 0.1.32 | ^3.4.21 | ||
| 0.1.31 | ^3.4.21 | ||
| 0.1.30 | ^3.4.21 | ||
| 0.1.29 | ^3.4.21 | ||
| 0.1.28 | ^3.4.21 | ||
| 0.1.27 | ^3.4.21 | ||
| 0.1.26 | ^3.4.21 | ||
| 0.1.25 | ^3.4.21 | ||
| 0.1.24 | ^3.4.21 | ||
| 0.1.23 | ^3.4.21 | ||
| 0.1.22 | ^3.4.21 | ||
| 0.1.21 | ^3.4.21 | ||
| 0.1.20 | ^3.4.21 | ||
| 0.1.19 | ^3.4.21 | ||
| 0.1.18 | ^3.4.21 | ||
| 0.1.17 | ^3.4.21 | ||
| 0.1.16 | ^3.4.21 | ||
| 0.1.15 | ^3.4.21 | ||
| 0.1.14 | ^3.4.21 | ||
| 0.1.13 | ^3.4.21 | ||
| 0.1.12 | ^3.4.21 | ||
| 0.1.11 | ^3.4.21 | ||
| 0.1.10 | ^3.4.21 | ||
| 0.1.9 | ^3.4.21 | ||
| 0.1.8 | ^3.4.21 | ||
| 0.1.7 | ^3.4.21 | ||
| 0.1.6 | ^3.4.21 | ||
| 0.1.5 | ^3.4.21 | ||
| 0.1.4 | ^3.4.21 | ||
| 0.1.3 | ^3.4.21 |
Showing the latest 30 of 59. See every release on npm