up element 2.3.1

This commit is contained in:
lbw 2023-03-29 20:46:36 +08:00
parent 56559f13c9
commit 81b88795c0
25 changed files with 249 additions and 282 deletions

17
package-lock.json generated
View File

@ -17,7 +17,7 @@
"axios": "^1.3.3", "axios": "^1.3.3",
"crypto-js": "^3.1.9-1", "crypto-js": "^3.1.9-1",
"echarts": "^5.4.1", "echarts": "^5.4.1",
"element-plus": "^2.2.32", "element-plus": "2.3.1",
"form-designer": "^0.0.2", "form-designer": "^0.0.2",
"highlight.js": "^11.7.0", "highlight.js": "^11.7.0",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
@ -1736,9 +1736,9 @@
} }
}, },
"node_modules/element-plus": { "node_modules/element-plus": {
"version": "2.2.33", "version": "2.3.1",
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.2.33.tgz", "resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.3.1.tgz",
"integrity": "sha512-E/PmMnv4+4I9Ue0ZDfx2gGgGj4iBlTCWcES3o4jxfYjayFlcQO3UvElJzhaJZ8vDm9yfNN7t2w/xYOhsSYCNNg==", "integrity": "sha512-IBS7ic1mRyDXpOreRkredV4ByZSuax5HPb0zNOHm4qwKC4wm927yQv+Is0JbzxPzCW5zWaV4PLy9/Gl3E3v59w==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@ctrl/tinycolor": "^3.4.1", "@ctrl/tinycolor": "^3.4.1",
@ -1756,6 +1756,9 @@
"lodash-unified": "^1.0.2", "lodash-unified": "^1.0.2",
"memoize-one": "^6.0.0", "memoize-one": "^6.0.0",
"normalize-wheel-es": "^1.2.0" "normalize-wheel-es": "^1.2.0"
},
"peerDependencies": {
"vue": "^3.2.0"
} }
}, },
"node_modules/emoji-regex": { "node_modules/emoji-regex": {
@ -5720,9 +5723,9 @@
} }
}, },
"element-plus": { "element-plus": {
"version": "2.2.33", "version": "2.3.1",
"resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.2.33.tgz", "resolved": "https://registry.npmmirror.com/element-plus/-/element-plus-2.3.1.tgz",
"integrity": "sha512-E/PmMnv4+4I9Ue0ZDfx2gGgGj4iBlTCWcES3o4jxfYjayFlcQO3UvElJzhaJZ8vDm9yfNN7t2w/xYOhsSYCNNg==", "integrity": "sha512-IBS7ic1mRyDXpOreRkredV4ByZSuax5HPb0zNOHm4qwKC4wm927yQv+Is0JbzxPzCW5zWaV4PLy9/Gl3E3v59w==",
"requires": { "requires": {
"@ctrl/tinycolor": "^3.4.1", "@ctrl/tinycolor": "^3.4.1",
"@element-plus/icons-vue": "^2.0.6", "@element-plus/icons-vue": "^2.0.6",

View File

@ -19,7 +19,7 @@
"axios": "^1.3.3", "axios": "^1.3.3",
"crypto-js": "^3.1.9-1", "crypto-js": "^3.1.9-1",
"echarts": "^5.4.1", "echarts": "^5.4.1",
"element-plus": "^2.2.32", "element-plus": "2.3.1",
"form-designer": "^0.0.2", "form-designer": "^0.0.2",
"highlight.js": "^11.7.0", "highlight.js": "^11.7.0",
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",

View File

@ -8,10 +8,7 @@
</template> </template>
<script setup lang="ts" name="app"> <script setup lang="ts" name="app">
import { defineAsyncComponent, computed, ref, onBeforeMount, onMounted, onUnmounted, nextTick, watch } from 'vue';
import { useRoute } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { storeToRefs } from 'pinia';
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes'; import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
import other from '/@/utils/other'; import other from '/@/utils/other';

View File

@ -15,7 +15,7 @@ export const login = (data: any) => {
method: 'post', method: 'post',
params: data, params: data,
headers: { headers: {
isToken: false, skipToken: true,
'TENANT-ID': '1', 'TENANT-ID': '1',
Authorization: basicAuth, Authorization: basicAuth,
}, },
@ -31,7 +31,7 @@ export const loginByMobile = (mobile: any, code: any) => {
return request({ return request({
url: '/auth/oauth2/token', url: '/auth/oauth2/token',
headers: { headers: {
isToken: false, skipToken: true,
'TENANT-ID': '1', 'TENANT-ID': '1',
Authorization: basicAuth, Authorization: basicAuth,
}, },
@ -49,7 +49,7 @@ export const loginBySocial = (state: string, code: string) => {
return request({ return request({
url: '/auth/oauth2/token', url: '/auth/oauth2/token',
headers: { headers: {
isToken: false, skipToken: true,
'TENANT-ID': '1', 'TENANT-ID': '1',
Authorization: basicAuth, Authorization: basicAuth,
}, },
@ -74,7 +74,7 @@ export const refreshTokenApi = (refresh_token: string) => {
return request({ return request({
url: '/auth/oauth2/token', url: '/auth/oauth2/token',
headers: { headers: {
isToken: false, skipToken: true,
'TENANT-ID': '1', 'TENANT-ID': '1',
Authorization: basicAuth, Authorization: basicAuth,
}, },
@ -92,7 +92,7 @@ export const checkToken = (refreshTime: number, refreshLock: boolean) => {
request({ request({
url: '/auth/token/check_token', url: '/auth/token/check_token',
headers: { headers: {
isToken: false, skipToken: true,
Authorization: basicAuth, Authorization: basicAuth,
}, },
method: 'get', method: 'get',

View File

@ -45,9 +45,7 @@
</template> </template>
<script setup lang="ts" name="layoutColumnsAside"> <script setup lang="ts" name="layoutColumnsAside">
import { reactive, ref, onMounted, nextTick, watch, onUnmounted } from 'vue'; import {RouteRecordRaw} from 'vue-router';
import { useRoute, useRouter, onBeforeRouteUpdate, RouteRecordRaw } from 'vue-router';
import { storeToRefs } from 'pinia';
import pinia from '/@/stores/index'; import pinia from '/@/stores/index';
import {useRoutesList} from '/@/stores/routesList'; import {useRoutesList} from '/@/stores/routesList';
import {useThemeConfig} from '/@/stores/themeConfig'; import {useThemeConfig} from '/@/stores/themeConfig';
@ -179,7 +177,8 @@ onMounted(() => {
}); });
// //
onUnmounted(() => { onUnmounted(() => {
mittBus.off('restoreDefault', () => {}); mittBus.off('restoreDefault', () => {
});
}); });
// //
onBeforeRouteUpdate((to) => { onBeforeRouteUpdate((to) => {
@ -211,18 +210,23 @@ watch(
width: 70px; width: 70px;
height: 100%; height: 100%;
background: var(--next-bg-columnsMenuBar); background: var(--next-bg-columnsMenuBar);
ul { ul {
position: relative; position: relative;
.layout-columns-active { .layout-columns-active {
color: var(--next-bg-columnsMenuBarColor) !important; color: var(--next-bg-columnsMenuBarColor) !important;
transition: 0.3s ease-in-out; transition: 0.3s ease-in-out;
} }
.layout-columns-hover { .layout-columns-hover {
color: var(--el-color-primary); color: var(--el-color-primary);
a { a {
color: var(--el-color-primary); color: var(--el-color-primary);
} }
} }
li { li {
color: var(--next-bg-columnsMenuBarColor); color: var(--next-bg-columnsMenuBarColor);
width: 100%; width: 100%;
@ -232,36 +236,45 @@ watch(
cursor: pointer; cursor: pointer;
position: relative; position: relative;
z-index: 1; z-index: 1;
&:hover { &:hover {
@extend .layout-columns-hover; @extend .layout-columns-hover;
} }
.columns-vertical { .columns-vertical {
margin: auto; margin: auto;
.columns-vertical-title { .columns-vertical-title {
padding-top: 1px; padding-top: 1px;
} }
} }
.columns-horizontal { .columns-horizontal {
display: flex; display: flex;
height: 50px; height: 50px;
width: 100%; width: 100%;
align-items: center; align-items: center;
padding: 0 5px; padding: 0 5px;
i { i {
margin-right: 3px; margin-right: 3px;
} }
a { a {
display: flex; display: flex;
.columns-horizontal-title { .columns-horizontal-title {
padding-top: 1px; padding-top: 1px;
} }
} }
} }
a { a {
text-decoration: none; text-decoration: none;
color: var(--next-bg-columnsMenuBarColor); color: var(--next-bg-columnsMenuBarColor);
} }
} }
.columns-round { .columns-round {
background: var(--el-color-primary); background: var(--el-color-primary);
color: var(--el-color-white); color: var(--el-color-white);
@ -275,6 +288,7 @@ watch(
transition: 0.3s ease-in-out; transition: 0.3s ease-in-out;
border-radius: 5px; border-radius: 5px;
} }
.columns-card { .columns-card {
@extend .columns-round; @extend .columns-round;
top: 0; top: 0;

View File

@ -15,9 +15,6 @@
</template> </template>
<script setup lang="ts" name="layoutMain"> <script setup lang="ts" name="layoutMain">
import { defineAsyncComponent, onMounted, computed, ref } from 'vue';
import { useRoute } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes'; import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
import { NextLoading } from '/@/utils/loading'; import { NextLoading } from '/@/utils/loading';

View File

@ -12,9 +12,6 @@
</template> </template>
<script setup lang="ts" name="layoutClassic"> <script setup lang="ts" name="layoutClassic">
import { defineAsyncComponent, computed, ref, watch, nextTick, onMounted } from 'vue';
import { useRoute } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
// //

View File

@ -12,9 +12,6 @@
</template> </template>
<script setup lang="ts" name="layoutColumns"> <script setup lang="ts" name="layoutColumns">
import { defineAsyncComponent, watch, onMounted, nextTick, ref } from 'vue';
import { useRoute } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
// //

View File

@ -11,9 +11,6 @@
</template> </template>
<script setup lang="ts" name="layoutDefaults"> <script setup lang="ts" name="layoutDefaults">
import { defineAsyncComponent, watch, onMounted, nextTick, ref } from 'vue';
import { useRoute } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
import { NextLoading } from '/@/utils/loading'; import { NextLoading } from '/@/utils/loading';

View File

@ -6,9 +6,6 @@
</template> </template>
<script setup lang="ts" name="layoutTransverse"> <script setup lang="ts" name="layoutTransverse">
import { defineAsyncComponent, ref, watch, nextTick, onMounted } from 'vue';
import { useRoute } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
// //

View File

@ -24,11 +24,8 @@
</template> </template>
<script setup lang="ts" name="layoutBreadcrumb"> <script setup lang="ts" name="layoutBreadcrumb">
import { reactive, computed, onMounted } from 'vue';
import { onBeforeRouteUpdate, useRoute, useRouter } from 'vue-router';
import { Local } from '/@/utils/storage'; import { Local } from '/@/utils/storage';
import other from '/@/utils/other'; import other from '/@/utils/other';
import { storeToRefs } from 'pinia';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
import { useRoutesList } from '/@/stores/routesList'; import { useRoutesList } from '/@/stores/routesList';

View File

@ -8,9 +8,6 @@
</template> </template>
<script setup lang="ts" name="layoutBreadcrumbIndex"> <script setup lang="ts" name="layoutBreadcrumbIndex">
import { defineAsyncComponent, computed, reactive, onMounted, onUnmounted } from 'vue';
import { useRoute } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useRoutesList } from '/@/stores/routesList'; import { useRoutesList } from '/@/stores/routesList';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
import mittBus from '/@/utils/mitt'; import mittBus from '/@/utils/mitt';

View File

@ -28,10 +28,7 @@
</template> </template>
<script setup lang="ts" name="layoutBreadcrumbSearch"> <script setup lang="ts" name="layoutBreadcrumbSearch">
import { reactive, ref, nextTick } from 'vue';
import { useRouter } from 'vue-router';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { storeToRefs } from 'pinia';
import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes'; import { useTagsViewRoutes } from '/@/stores/tagsViewRoutes';
// //

View File

@ -68,8 +68,6 @@
</template> </template>
<script setup lang="ts" name="layoutBreadcrumbUser"> <script setup lang="ts" name="layoutBreadcrumbUser">
import { defineAsyncComponent, ref, computed, reactive, onMounted } from 'vue';
import { useRouter } from 'vue-router';
import { ElMessageBox, ElMessage } from 'element-plus'; import { ElMessageBox, ElMessage } from 'element-plus';
import screenfull from 'screenfull'; import screenfull from 'screenfull';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';

View File

@ -47,8 +47,6 @@
</template> </template>
<script setup lang="ts" name="layoutTagsView"> <script setup lang="ts" name="layoutTagsView">
import { defineAsyncComponent, reactive, onMounted, computed, ref, nextTick, onBeforeUpdate, onBeforeMount, onUnmounted, watch } from 'vue';
import { useRoute, useRouter, onBeforeRouteUpdate } from 'vue-router';
import Sortable from 'sortablejs'; import Sortable from 'sortablejs';
import { ElMessage } from 'element-plus'; import { ElMessage } from 'element-plus';
import { storeToRefs } from 'pinia'; import { storeToRefs } from 'pinia';

View File

@ -31,9 +31,7 @@
</template> </template>
<script setup lang="ts" name="navMenuHorizontal"> <script setup lang="ts" name="navMenuHorizontal">
import { defineAsyncComponent, reactive, computed, onMounted, nextTick, onBeforeMount, ref } from 'vue'; import { RouteRecordRaw } from 'vue-router';
import { useRoute, onBeforeRouteUpdate, RouteRecordRaw } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useRoutesList } from '/@/stores/routesList'; import { useRoutesList } from '/@/stores/routesList';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
import other from '/@/utils/other'; import other from '/@/utils/other';

View File

@ -31,9 +31,7 @@
</template> </template>
<script setup lang="ts" name="navMenuVertical"> <script setup lang="ts" name="navMenuVertical">
import { defineAsyncComponent, reactive, computed, onMounted, watch } from 'vue'; import { RouteRecordRaw } from 'vue-router';
import { useRoute, onBeforeRouteUpdate, RouteRecordRaw } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
import other from '/@/utils/other'; import other from '/@/utils/other';

View File

@ -21,9 +21,6 @@
</template> </template>
<script setup lang="ts" name="layoutIframeView"> <script setup lang="ts" name="layoutIframeView">
import { computed, watch, ref, nextTick } from 'vue';
import { useRoute } from 'vue-router';
// //
const props = defineProps({ const props = defineProps({
// iframe // iframe

View File

@ -14,8 +14,6 @@
</template> </template>
<script setup lang="ts" name="layoutLinkView"> <script setup lang="ts" name="layoutLinkView">
import { reactive, watch } from 'vue';
import { useRoute } from 'vue-router';
import { verifyUrl } from '/@/utils/toolsValidate'; import { verifyUrl } from '/@/utils/toolsValidate';
// //

View File

@ -17,9 +17,6 @@
</template> </template>
<script setup lang="ts" name="layoutParentView"> <script setup lang="ts" name="layoutParentView">
import { defineAsyncComponent, computed, reactive, onBeforeMount, onUnmounted, nextTick, watch, onMounted } from 'vue';
import { useRoute, useRouter } from 'vue-router';
import { storeToRefs } from 'pinia';
import { useKeepALiveNames } from '/@/stores/keepAliveNames'; import { useKeepALiveNames } from '/@/stores/keepAliveNames';
import { useThemeConfig } from '/@/stores/themeConfig'; import { useThemeConfig } from '/@/stores/themeConfig';
import { Session } from '/@/utils/storage'; import { Session } from '/@/utils/storage';

View File

@ -1,5 +1,4 @@
import { RouteRecordRaw } from 'vue-router'; import { RouteRecordRaw } from 'vue-router';
import { storeToRefs } from 'pinia';
import { formatTwoStageRoutes, formatFlatteningRoutes, router } from '/@/router/index'; import { formatTwoStageRoutes, formatFlatteningRoutes, router } from '/@/router/index';
import { baseRoutes, notFoundAndNoPower } from '/@/router/route'; import { baseRoutes, notFoundAndNoPower } from '/@/router/route';
import pinia from '/@/stores/index'; import pinia from '/@/stores/index';

View File

@ -23,8 +23,6 @@
</template> </template>
<script setup lang="ts" name="notFound"> <script setup lang="ts" name="notFound">
import { useRouter } from 'vue-router';
// //
const router = useRouter(); const router = useRouter();

View File

@ -28,10 +28,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { useGeneratorCodeApi } from '/@/api/gen/table'; import { useGeneratorCodeApi } from '/@/api/gen/table';
import { useRoute } from 'vue-router';
import { downBlobFile } from '/@/utils/other'; import { downBlobFile } from '/@/utils/other';
import { useMessage } from '/@/hooks/message';
import { useI18n } from 'vue-i18n';
const Generator = defineAsyncComponent(() => import('../table/generator.vue')); const Generator = defineAsyncComponent(() => import('../table/generator.vue'));
const EditTable = defineAsyncComponent(() => import('../table/edit.vue')); const EditTable = defineAsyncComponent(() => import('../table/edit.vue'));

View File

@ -59,7 +59,6 @@ import { fetchList, useSyncTableApi, useTableApi } from '/@/api/gen/table';
import { list } from '/@/api/gen/datasource'; import { list } from '/@/api/gen/datasource';
import { useMessage } from '/@/hooks/message'; import { useMessage } from '/@/hooks/message';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { useRouter } from 'vue-router';
import { validateNull } from '/@/utils/validate'; import { validateNull } from '/@/utils/validate';
// //

View File

@ -1,7 +1,7 @@
<template> <template>
<el-calendar v-model="calendar"> <el-calendar v-model="calendar">
<template #date-cell="{ data }"> <template #date-cell="{ data }">
<div style="width: 100%; height: 80%" @click="handleSchedule(data)"> <div style="width: 100%" @click="handleSchedule(data)">
{{ data.day.split('-').slice(2).join('-') }} {{ data.day.split('-').slice(2).join('-') }}
<span v-if="filterCellSelected(data)"> <span v-if="filterCellSelected(data)">
<el-icon><BellFilled /></el-icon> <el-icon><BellFilled /></el-icon>