Skip to content

Commit 135c88a

Browse files
committed
Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vue3 into dev
� Conflicts: � src/router/modules/remaining.ts
2 parents 2e945d2 + e6a9dd0 commit 135c88a

File tree

5 files changed

+20
-18
lines changed

5 files changed

+20
-18
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
|----------------------------------------------------------------------|------------------|--------|
4141
| [Vue](https://staging-cn.vuejs.org/) | Vue 框架 | 3.3.4 |
4242
| [Vite](https://cn.vitejs.dev//) | 开发与构建工具 | 4.4.9 |
43-
| [Element Plus](https://element-plus.org/zh-CN/) | Element Plus | 2.3.9 |
43+
| [Element Plus](https://element-plus.org/zh-CN/) | Element Plus | 2.3.12 |
4444
| [TypeScript](https://www.typescriptlang.org/docs/) | JavaScript 的超集 | 5.1.6 |
4545
| [pinia](https://pinia.vuejs.org/) | Vue 存储库 替代 vuex5 | 2.1.6 |
46-
| [vueuse](https://vueuse.org/) | 常用工具集 | 10.3.0 |
46+
| [vueuse](https://vueuse.org/) | 常用工具集 | 10.4.1 |
4747
| [vue-i18n](https://kazupon.github.io/vue-i18n/zh/introduction.html/) | 国际化 | 9.2.2 |
4848
| [vue-router](https://router.vuejs.org/) | Vue 路由 | 4.2.4 |
49-
| [unocss](https://uno.antfu.me/) | 原子 css | 0.55.2 |
49+
| [unocss](https://uno.antfu.me/) | 原子 css | 0.55.3 |
5050
| [iconify](https://icon-sets.iconify.design/) | 在线图标库 | 3.1.1 |
5151
| [wangeditor](https://www.wangeditor.com/) | 富文本编辑器 | 5.1.23 |
5252

build/vite/optimize.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ const include = [
3131
'element-plus/es',
3232
'element-plus/es/locale/lang/zh-cn',
3333
'element-plus/es/locale/lang/en',
34+
'element-plus/es/components/avatar/style/css',
35+
'element-plus/es/components/space/style/css',
3436
'element-plus/es/components/backtop/style/css',
3537
'element-plus/es/components/form/style/css',
3638
'element-plus/es/components/radio-group/style/css',

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@
3131
"@form-create/element-ui": "^3.1.17",
3232
"@iconify/iconify": "^3.1.1",
3333
"@videojs-player/vue": "^1.0.0",
34-
"@vueuse/core": "^10.3.0",
34+
"@vueuse/core": "^10.4.1",
3535
"@wangeditor/editor": "^5.1.23",
3636
"@wangeditor/editor-for-vue": "^5.1.10",
3737
"@zxcvbn-ts/core": "^3.0.3",
3838
"animate.css": "^4.1.1",
39-
"axios": "^1.4.0",
39+
"axios": "^1.5.0",
4040
"benz-amr-recorder": "^1.1.5",
4141
"bpmn-js-token-simulation": "^0.10.0",
4242
"camunda-bpmn-moddle": "^7.0.1",
43-
"cropperjs": "^1.5.13",
43+
"cropperjs": "^1.6.0",
4444
"crypto-js": "^4.1.1",
4545
"dayjs": "^1.11.9",
46-
"diagram-js": "^11.6.0",
46+
"diagram-js": "^12.3.0",
4747
"echarts": "^5.4.3",
4848
"echarts-wordcloud": "^2.1.0",
49-
"element-plus": "2.3.9",
49+
"element-plus": "2.3.12",
5050
"fast-xml-parser": "^4.2.7",
5151
"highlight.js": "^11.8.0",
5252
"intro.js": "^7.2.0",
@@ -73,7 +73,7 @@
7373
"devDependencies": {
7474
"@commitlint/cli": "^17.7.1",
7575
"@commitlint/config-conventional": "^17.7.0",
76-
"@iconify/json": "^2.2.103",
76+
"@iconify/json": "^2.2.107",
7777
"@intlify/unplugin-vue-i18n": "^0.12.3",
7878
"@purge-icons/generated": "^0.9.0",
7979
"@types/intro.js": "^5.1.1",
@@ -84,16 +84,16 @@
8484
"@types/qs": "^6.9.7",
8585
"@typescript-eslint/eslint-plugin": "^6.4.1",
8686
"@typescript-eslint/parser": "^6.4.1",
87-
"@unocss/transformer-variant-group": "^0.55.2",
87+
"@unocss/transformer-variant-group": "^0.55.3",
8888
"@vitejs/plugin-legacy": "^4.1.1",
8989
"@vitejs/plugin-vue": "^4.3.3",
9090
"@vitejs/plugin-vue-jsx": "^3.0.2",
91-
"@vue-macros/volar": "^0.13.7",
91+
"@vue-macros/volar": "^0.14.2",
9292
"autoprefixer": "^10.4.15",
9393
"bpmn-js": "^8.9.0",
9494
"bpmn-js-properties-panel": "^0.46.0",
9595
"consola": "^3.2.3",
96-
"eslint": "^8.47.0",
96+
"eslint": "^8.48.0",
9797
"eslint-config-prettier": "^9.0.0",
9898
"eslint-define-config": "^1.23.0",
9999
"eslint-plugin-prettier": "^5.0.0",
@@ -113,7 +113,7 @@
113113
"stylelint-order": "^6.0.3",
114114
"terser": "^5.19.2",
115115
"typescript": "5.1.6",
116-
"unocss": "^0.55.2",
116+
"unocss": "^0.55.3",
117117
"unplugin-auto-import": "^0.16.6",
118118
"unplugin-element-plus": "^0.8.0",
119119
"unplugin-vue-components": "^0.25.1",

src/components/Cropper/src/CropperAvatar.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<template>
22
<div class="user-info-head" @click="open()">
33
<img v-if="sourceValue" :src="sourceValue" alt="avatar" class="img-circle img-lg" />
4+
<img v-if="!sourceValue" :src="avatar" alt="avatar" class="img-circle img-lg" />
45
<el-button v-if="showBtn" :class="`${prefixCls}-upload-btn`" @click="open()">
56
{{ btnText ? btnText : t('cropper.selectImage') }}
67
</el-button>
@@ -17,6 +18,7 @@ import { useDesign } from '@/hooks/web/useDesign'
1718
import { propTypes } from '@/utils/propTypes'
1819
import { useI18n } from 'vue-i18n'
1920
import CopperModal from './CopperModal.vue'
21+
import avatar from '@/assets/imgs/avatar.jpg'
2022
2123
defineOptions({ name: 'CropperAvatar' })
2224

src/views/Profile/components/UserAvatar.vue

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
ref="cropperRef"
55
:btnProps="{ preIcon: 'ant-design:cloud-upload-outlined' }"
66
:showBtn="false"
7-
:value="avatar"
7+
:value="img"
88
width="120px"
99
@change="handelUpload"
1010
/>
@@ -13,15 +13,13 @@
1313
<script lang="ts" setup>
1414
import { propTypes } from '@/utils/propTypes'
1515
import { uploadAvatar } from '@/api/system/user/profile'
16+
import { CropperAvatar } from '@/components/Cropper'
1617
1718
defineOptions({ name: 'UserAvatar' })
1819
19-
const props = defineProps({
20+
defineProps({
2021
img: propTypes.string.def('')
2122
})
22-
const avatar = computed(() => {
23-
return props.img
24-
})
2523
2624
const cropperRef = ref()
2725
const handelUpload = async ({ data }) => {

0 commit comments

Comments
 (0)