Skip to content

Commit 1305743

Browse files
YunaiVgitee-org
authored andcommitted
!127 【众测版】合并最新的 Vue3 重构
Merge pull request !127 from 芋道源码/dev
2 parents 60cc435 + 06974ca commit 1305743

File tree

158 files changed

+2233
-1852
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

158 files changed

+2233
-1852
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ dist-ssr
66
/dist*
77
*-lock.*
88
pnpm-debug
9-
9+
auto-*.d.ts
1010
.idea
1111
.history

build/vite/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
1919

2020
export function createVitePlugins() {
2121
const root = process.cwd()
22+
2223
// 路径查找
2324
function pathResolve(dir: string) {
2425
return resolve(root, '.', dir)
2526
}
27+
2628
return [
2729
Vue(),
2830
VueJsx(),
@@ -45,8 +47,6 @@ export function createVitePlugins() {
4547
{
4648
'@/hooks/web/useI18n': ['useI18n'],
4749
'@/hooks/web/useMessage': ['useMessage'],
48-
'@/hooks/web/useXTable': ['useXTable'],
49-
'@/hooks/web/useVxeCrudSchemas': ['useVxeCrudSchemas'],
5050
'@/hooks/web/useTable': ['useTable'],
5151
'@/hooks/web/useCrudSchemas': ['useCrudSchemas'],
5252
'@/utils/formRules': ['required'],

src/App.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script lang="ts" name="APP" setup>
22
import { isDark } from '@/utils/is'
33
import { useAppStore } from '@/store/modules/app'
44
import { useDesign } from '@/hooks/web/useDesign'
@@ -32,6 +32,7 @@ $prefix-cls: #{$namespace}-app;
3232
width: 100%;
3333
height: 100%;
3434
}
35+
3536
html,
3637
body {
3738
padding: 0 !important;
@@ -43,6 +44,7 @@ body {
4344
@extend .size;
4445
}
4546
}
47+
4648
.#{$prefix-cls}-grey-mode {
4749
filter: grayscale(100%);
4850
}
Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import request from '@/config/axios'
22

33
export interface NotifyTemplateVO {
4-
id: number
4+
id?: number
55
name: string
6+
nickname: string
67
code: string
78
content: string
89
type: number
@@ -11,36 +12,29 @@ export interface NotifyTemplateVO {
1112
remark: string
1213
}
1314

14-
export interface NotifyTemplatePageReqVO extends PageParam {
15-
name?: string
16-
code?: string
17-
status?: number
18-
createTime?: Date[]
19-
}
20-
2115
export interface NotifySendReqVO {
22-
userId: number
16+
userId: number | null
2317
templateCode: string
2418
templateParams: Map<String, Object>
2519
}
2620

2721
// 查询站内信模板列表
28-
export const getNotifyTemplatePageApi = async (params: NotifyTemplatePageReqVO) => {
22+
export const getNotifyTemplatePage = async (params: PageParam) => {
2923
return await request.get({ url: '/system/notify-template/page', params })
3024
}
3125

3226
// 查询站内信模板详情
33-
export const getNotifyTemplateApi = async (id: number) => {
27+
export const getNotifyTemplate = async (id: number) => {
3428
return await request.get({ url: '/system/notify-template/get?id=' + id })
3529
}
3630

3731
// 新增站内信模板
38-
export const createNotifyTemplateApi = async (data: NotifyTemplateVO) => {
32+
export const createNotifyTemplate = async (data: NotifyTemplateVO) => {
3933
return await request.post({ url: '/system/notify-template/create', data })
4034
}
4135

4236
// 修改站内信模板
43-
export const updateNotifyTemplateApi = async (data: NotifyTemplateVO) => {
37+
export const updateNotifyTemplate = async (data: NotifyTemplateVO) => {
4438
return await request.put({ url: '/system/notify-template/update', data })
4539
}
4640

@@ -50,6 +44,6 @@ export const deleteNotifyTemplateApi = async (id: number) => {
5044
}
5145

5246
// 发送站内信
53-
export const sendNotifyApi = (data: NotifySendReqVO) => {
47+
export const sendNotify = (data: NotifySendReqVO) => {
5448
return request.post({ url: '/system/notify-template/send-notify', data })
5549
}

src/components/Backtop/src/Backtop.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script lang="ts" name="BackTop" setup>
22
import { ElBacktop } from 'element-plus'
33
import { useDesign } from '@/hooks/web/useDesign'
44

src/components/ConfigGlobal/src/ConfigGlobal.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script lang="ts" name="ConfigGlobal" setup>
22
import { propTypes } from '@/utils/propTypes'
33
import { useLocaleStore } from '@/store/modules/locale'
44
import { useAppStore } from '@/store/modules/app'
@@ -51,9 +51,9 @@ const currentLocale = computed(() => localeStore.currentLocale)
5151

5252
<template>
5353
<ElConfigProvider
54-
:namespace="variables.elNamespace"
5554
:locale="currentLocale.elLocale"
5655
:message="{ max: 1 }"
56+
:namespace="variables.elNamespace"
5757
:size="size"
5858
>
5959
<slot></slot>

src/components/ContentDetailWrap/src/ContentDetailWrap.vue

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script lang="ts" name="ContentDetailWrap" setup>
22
import { propTypes } from '@/utils/propTypes'
33
import { useDesign } from '@/hooks/web/useDesign'
44
@@ -21,7 +21,7 @@ onMounted(() => {
2121
</script>
2222

2323
<template>
24-
<div :class="[`${prefixCls}-container`]" ref="contentDetailWrap">
24+
<div ref="contentDetailWrap" :class="[`${prefixCls}-container`]">
2525
<Sticky :offset="offset">
2626
<div
2727
:class="[
@@ -31,7 +31,7 @@ onMounted(() => {
3131
>
3232
<div :class="[`${prefixCls}-header__back`, 'flex pl-10px pr-10px ']">
3333
<ElButton @click="emit('back')">
34-
<Icon icon="ep:arrow-left" class="mr-5px" />
34+
<Icon class="mr-5px" icon="ep:arrow-left" />
3535
{{ t('common.back') }}
3636
</ElButton>
3737
</div>
@@ -47,7 +47,9 @@ onMounted(() => {
4747
</Sticky>
4848
<div style="padding: var(--app-content-padding)">
4949
<ElCard :class="[`${prefixCls}-body`, 'mb-20px']" shadow="never">
50-
<div> <slot></slot> </div>
50+
<div>
51+
<slot></slot>
52+
</div>
5153
</ElCard>
5254
</div>
5355
</div>

src/components/ContentWrap/src/ContentWrap.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script lang="ts" name="ContentWrap" setup>
22
import { propTypes } from '@/utils/propTypes'
33
import { useDesign } from '@/hooks/web/useDesign'
44
@@ -21,7 +21,7 @@ defineProps({
2121
<template #content>
2222
<div class="max-w-200px">{{ message }}</div>
2323
</template>
24-
<Icon class="ml-5px" icon="ep:question-filled" :size="14" />
24+
<Icon :size="14" class="ml-5px" icon="ep:question-filled" />
2525
</ElTooltip>
2626
</div>
2727
</template>

src/components/CountTo/src/CountTo.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup lang="ts">
1+
<script lang="ts" name="CountTo" setup>
22
import { PropType } from 'vue'
33
import { isNumber } from '@/utils/is'
44
import { propTypes } from '@/utils/propTypes'

0 commit comments

Comments
 (0)