2.1.10 • Published 5 months ago
yj-plus v2.1.10
YjPlus
DOCS
文档请查看YjPlus
使用
支持ESM和UMD(不介绍umd方式了,目前没有项目使用该方式)
安装
pnpm i yj-plus
# or
cnpm i yj-plus
# or
npm i yj-plus
支持按需导入和全部导入
全量导入
方式一
在
main.ts
中import yjPlus from 'yj-plus' // 注意⚠️:需要在引入ElementPlus的样式后再引入ui库样式 import 'yj-plus/theme-chalk/index.css' app.use(yjPlus)
【推荐】
样式导入也可在vite.config.[jt]s
中加入:
export default {
css:{
preprocessorOptions:{
sass:{
additionalData: `
@use "./style/element.scss" as *;
@use "yj-plus/theme-chalk/index.css" as *;
`
}
}
}
}
按需导入
⚠️ 因未实现类似unplugin-element-plus
的插件,按需导入需手动导入
<!-- xxx.vue -->
<template>
<y-card title="测试卡片" :show-folder="true">卡片内容</y-card>
</template>
<script setup lang="ts">
import {YCard} from 'yj-plus/es'
import 'yj-plus/theme-chalk/card.css'
</script>
发布⚠️废弃
采用原始方法发布,打包后在dist目录执行npm run publish
开发
开发文档见开发文档
待办事项
开发相关
- 加入单元测试(vitest)
使用相关
- 自动按需导入插件开发
2.1.10
5 months ago
2.1.9
6 months ago
0.0.0-dev.1
11 months ago
1.0.9
11 months ago
1.0.8
11 months ago
1.0.7
11 months ago
1.0.6
11 months ago
2.1.2
8 months ago
2.0.15
8 months ago
2.0.3
9 months ago
2.1.1
8 months ago
2.0.16
8 months ago
2.0.2
9 months ago
2.1.4
8 months ago
2.0.13
8 months ago
2.0.5
9 months ago
2.1.3
8 months ago
2.0.14
8 months ago
2.0.4
9 months ago
2.1.6
8 months ago
2.0.11
8 months ago
2.0.7
9 months ago
2.1.5
8 months ago
2.0.12
8 months ago
2.0.6
9 months ago
2.1.8
7 months ago
2.0.9
8 months ago
2.1.7
8 months ago
2.0.10
8 months ago
2.0.8
9 months ago
2.1.0
8 months ago
2.0.1
9 months ago
2.0.0
11 months ago
1.0.5
1 year ago
1.0.5-alpha
1 year ago
1.0.4
1 year ago
1.0.3
1 year ago
1.0.2
1 year ago
1.0.1
1 year ago
1.0.0
1 year ago