Skip to content

Commit 9507e2b

Browse files
committed
Merge branch 'master' of https://gitee.com/yudaocode/yudao-ui-admin-vue3 into dev
� Conflicts: � src/views/member/user/detail/UserPointList.vue
2 parents 5cd0190 + df69c03 commit 9507e2b

File tree

5 files changed

+57
-44
lines changed

5 files changed

+57
-44
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
| 框架 | 说明 | 版本 |
4040
|----------------------------------------------------------------------|------------------|--------|
4141
| [Vue](https://staging-cn.vuejs.org/) | Vue 框架 | 3.3.4 |
42-
| [Vite](https://cn.vitejs.dev//) | 开发与构建工具 | 4.4.8 |
42+
| [Vite](https://cn.vitejs.dev//) | 开发与构建工具 | 4.4.9 |
4343
| [Element Plus](https://element-plus.org/zh-CN/) | Element Plus | 2.3.9 |
4444
| [TypeScript](https://www.typescriptlang.org/docs/) | JavaScript 的超集 | 5.1.6 |
4545
| [pinia](https://pinia.vuejs.org/) | Vue 存储库 替代 vuex5 | 2.1.6 |
4646
| [vueuse](https://vueuse.org/) | 常用工具集 | 10.3.0 |
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.54.1 |
49+
| [unocss](https://uno.antfu.me/) | 原子 css | 0.55.2 |
5050
| [iconify](https://icon-sets.iconify.design/) | 在线图标库 | 3.1.1 |
5151
| [wangeditor](https://www.wangeditor.com/) | 富文本编辑器 | 5.1.23 |
5252

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"element-plus": "2.3.9",
5050
"fast-xml-parser": "^4.2.7",
5151
"highlight.js": "^11.8.0",
52-
"intro.js": "^7.0.1",
52+
"intro.js": "^7.2.0",
5353
"jsencrypt": "^3.3.2",
5454
"lodash-es": "^4.17.21",
5555
"min-dash": "^4.1.1",
@@ -73,23 +73,23 @@
7373
"devDependencies": {
7474
"@commitlint/cli": "^17.7.1",
7575
"@commitlint/config-conventional": "^17.7.0",
76-
"@iconify/json": "^2.2.100",
77-
"@intlify/unplugin-vue-i18n": "^0.12.2",
76+
"@iconify/json": "^2.2.103",
77+
"@intlify/unplugin-vue-i18n": "^0.12.3",
7878
"@purge-icons/generated": "^0.9.0",
7979
"@types/intro.js": "^5.1.1",
8080
"@types/lodash-es": "^4.17.8",
81-
"@types/node": "^20.4.0",
81+
"@types/node": "^20.5.0",
8282
"@types/nprogress": "^0.2.0",
8383
"@types/qrcode": "^1.5.1",
8484
"@types/qs": "^6.9.7",
85-
"@typescript-eslint/eslint-plugin": "^6.3.0",
86-
"@typescript-eslint/parser": "^6.3.0",
87-
"@unocss/transformer-variant-group": "^0.55.0",
85+
"@typescript-eslint/eslint-plugin": "^6.4.1",
86+
"@typescript-eslint/parser": "^6.4.1",
87+
"@unocss/transformer-variant-group": "^0.55.2",
8888
"@vitejs/plugin-legacy": "^4.1.1",
89-
"@vitejs/plugin-vue": "^4.2.3",
90-
"@vitejs/plugin-vue-jsx": "^3.0.1",
91-
"@vue-macros/volar": "^0.13.3",
92-
"autoprefixer": "^10.4.14",
89+
"@vitejs/plugin-vue": "^4.3.3",
90+
"@vitejs/plugin-vue-jsx": "^3.0.2",
91+
"@vue-macros/volar": "^0.13.7",
92+
"autoprefixer": "^10.4.15",
9393
"bpmn-js": "^8.9.0",
9494
"bpmn-js-properties-panel": "^0.46.0",
9595
"consola": "^3.2.3",
@@ -98,22 +98,22 @@
9898
"eslint-define-config": "^1.23.0",
9999
"eslint-plugin-prettier": "^5.0.0",
100100
"eslint-plugin-vue": "^9.17.0",
101-
"lint-staged": "^13.2.3",
102-
"postcss": "^8.4.27",
101+
"lint-staged": "^14.0.1",
102+
"postcss": "^8.4.28",
103103
"postcss-html": "^1.5.0",
104-
"postcss-scss": "^4.0.6",
105-
"prettier": "^3.0.1",
104+
"postcss-scss": "^4.0.7",
105+
"prettier": "^3.0.2",
106106
"rimraf": "^5.0.1",
107-
"rollup": "^3.28.0",
108-
"sass": "^1.65.1",
109-
"stylelint": "^15.10.2",
107+
"rollup": "^3.28.1",
108+
"sass": "^1.66.1",
109+
"stylelint": "^15.10.3",
110110
"stylelint-config-html": "^1.1.0",
111111
"stylelint-config-recommended": "^13.0.0",
112112
"stylelint-config-standard": "^34.0.0",
113113
"stylelint-order": "^6.0.3",
114114
"terser": "^5.19.2",
115115
"typescript": "5.1.6",
116-
"unocss": "^0.55.0",
116+
"unocss": "^0.55.2",
117117
"unplugin-auto-import": "^0.16.6",
118118
"unplugin-element-plus": "^0.8.0",
119119
"unplugin-vue-components": "^0.25.1",

src/components/Dialog/src/Dialog.vue

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ const dialogStyle = computed(() => {
6767
lock-scroll
6868
draggable
6969
top="0"
70+
class="com-dialog"
7071
:show-close="false"
7172
>
7273
<template #header="{ close }">
@@ -107,32 +108,34 @@ const dialogStyle = computed(() => {
107108
</template>
108109

109110
<style lang="scss">
110-
.#{$elNamespace}-overlay-dialog {
111-
display: flex;
112-
justify-content: center;
113-
align-items: center;
114-
}
111+
.com-dialog {
112+
.#{$elNamespace}-overlay-dialog {
113+
display: flex;
114+
justify-content: center;
115+
align-items: center;
116+
}
115117
116-
.#{$elNamespace}-dialog {
117-
margin: 0 !important;
118+
.#{$elNamespace}-dialog {
119+
margin: 0 !important;
118120
119-
&__header {
120-
height: 54px;
121-
padding: 0;
122-
margin-right: 0 !important;
123-
border-bottom: 1px solid var(--el-border-color);
124-
}
121+
&__header {
122+
height: 54px;
123+
padding: 0;
124+
margin-right: 0 !important;
125+
border-bottom: 1px solid var(--el-border-color);
126+
}
125127
126-
&__body {
127-
padding: 15px !important;
128-
}
128+
&__body {
129+
padding: 15px !important;
130+
}
129131
130-
&__footer {
131-
border-top: 1px solid var(--el-border-color);
132-
}
132+
&__footer {
133+
border-top: 1px solid var(--el-border-color);
134+
}
133135
134-
&__headerbtn {
135-
top: 0;
136+
&__headerbtn {
137+
top: 0;
138+
}
136139
}
137140
}
138141
</style>

src/components/Pagination/index.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,27 @@
88
:page-sizes="[10, 20, 30, 50, 100]"
99
:pager-count="pagerCount"
1010
:total="total"
11+
:small="isSmall"
1112
class="float-right mt-15px mb-15px"
1213
layout="total, sizes, prev, pager, next, jumper"
1314
@size-change="handleSizeChange"
1415
@current-change="handleCurrentChange"
1516
/>
1617
</template>
1718
<script lang="ts" setup>
18-
import { computed } from 'vue'
19+
import { computed, watchEffect } from 'vue'
20+
import { useAppStore } from '@/store/modules/app'
1921
2022
defineOptions({ name: 'Pagination' })
2123
24+
// 此处解决了当全局size为small的时候分页组件样式太大的问题
25+
const appStore = useAppStore()
26+
const layoutCurrentSize = computed(() => appStore.currentSize)
27+
const isSmall = ref<boolean>(layoutCurrentSize.value === 'small')
28+
watchEffect(() => {
29+
isSmall.value = layoutCurrentSize.value === 'small'
30+
})
31+
2232
const props = defineProps({
2333
// 总条目数
2434
total: {

src/views/member/point/record/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
<script lang="ts" setup>
112112
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
113113
import { dateFormatter } from '@/utils/formatTime'
114-
import * as RecordApi from '@/api//member/point/record'
114+
import * as RecordApi from '@/api/member/point/record'
115115
116116
defineOptions({ name: 'PointRecord' })
117117

0 commit comments

Comments
 (0)