Skip to content

Commit dfa3797

Browse files
committed
Merge branch 'main' into pages
2 parents a845294 + bbdd44a commit dfa3797

File tree

34 files changed

+397
-34
lines changed

34 files changed

+397
-34
lines changed

locales/en.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ menus:
9292
pureDraggable: Draggable
9393
pureSplitPane: Split Pane
9494
pureText: Text Ellipsis
95+
pureSlider: Slider
9596
pureElButton: Button
9697
pureButton: Button Animation
9798
pureCheckButton: Check Button

locales/zh-CN.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ menus:
9292
pureDraggable: 拖拽
9393
pureSplitPane: 切割面板
9494
pureText: 文本省略
95+
pureSlider: 滑块
9596
pureElButton: 按钮
9697
pureCheckButton: 可选按钮
9798
pureButton: 按钮动效

src/components/ReText/src/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="ts" setup>
1+
<script setup lang="ts">
22
import { h, onMounted, ref, useSlots } from "vue";
33
import { type TippyOptions, useTippy } from "vue-tippy";
44

src/components/ReTreeLine/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ export default defineComponent({
9090
];
9191
// 取得每一层的当前节点是不是在当前层级列表的最后一个
9292
const lastnodeArr = [];
93-
let currentNode = this.node;
93+
let currentNode: any = this.node;
9494
while (currentNode) {
95-
let parentNode = currentNode.parent;
95+
let parentNode: any = currentNode.parent;
9696
// 兼容element-plus的 el-tree-v2 (Virtualized Tree 虚拟树)
9797
if (currentNode.level === 1 && !currentNode.parent) {
9898
// el-tree-v2的第一层node是没有parent的,必需 treeData 创建一个parent

src/layout/components/lay-footer/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script lang="ts" setup>
1+
<script setup lang="ts">
22
import { getConfig } from "@/config";
33
44
const TITLE = getConfig("Title");

src/router/modules/components.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ export default {
4747
name: "CheckCard",
4848
component: () => import("@/views/components/check-card.vue"),
4949
meta: {
50-
title: $t("menus.pureCheckCard"),
51-
extraIcon: "IF-pure-iconfont-new svg"
50+
title: $t("menus.pureCheckCard")
5251
}
5352
},
5453
{
@@ -112,7 +111,15 @@ export default {
112111
name: "PureText",
113112
component: () => import("@/views/components/text.vue"),
114113
meta: {
115-
title: $t("menus.pureText"),
114+
title: $t("menus.pureText")
115+
}
116+
},
117+
{
118+
path: "/components/slider",
119+
name: "PureSlider",
120+
component: () => import("@/views/components/slider/index.vue"),
121+
meta: {
122+
title: $t("menus.pureSlider"),
116123
extraIcon: "IF-pure-iconfont-new svg"
117124
}
118125
},
@@ -129,8 +136,7 @@ export default {
129136
name: "CheckButton",
130137
component: () => import("@/views/components/check-button.vue"),
131138
meta: {
132-
title: $t("menus.pureCheckButton"),
133-
extraIcon: "IF-pure-iconfont-new svg"
139+
title: $t("menus.pureCheckButton")
134140
}
135141
},
136142
{

src/store/modules/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ import {
88
responsiveStorageNameSpace
99
} from "../utils";
1010

11-
export const useAppStore = defineStore({
12-
id: "pure-app",
11+
export const useAppStore = defineStore("pure-app", {
1312
state: (): appType => ({
1413
sidebar: {
1514
opened:

src/store/modules/epTheme.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ import {
66
responsiveStorageNameSpace
77
} from "../utils";
88

9-
export const useEpThemeStore = defineStore({
10-
id: "pure-epTheme",
9+
export const useEpThemeStore = defineStore("pure-epTheme", {
1110
state: () => ({
1211
epThemeColor:
1312
storageLocal().getItem<StorageConfigs>(

src/store/modules/multiTags.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ import {
1414
} from "../utils";
1515
import { usePermissionStoreHook } from "./permission";
1616

17-
export const useMultiTagsStore = defineStore({
18-
id: "pure-multiTags",
17+
export const useMultiTagsStore = defineStore("pure-multiTags", {
1918
state: () => ({
2019
// 存储标签页信息(路由信息)
2120
multiTags: storageLocal().getItem<StorageConfigs>(
@@ -24,12 +23,12 @@ export const useMultiTagsStore = defineStore({
2423
? storageLocal().getItem<StorageConfigs>(
2524
`${responsiveStorageNameSpace()}tags`
2625
)
27-
: [
26+
: ([
2827
...routerArrays,
2928
...usePermissionStoreHook().flatteningRoutes.filter(
3029
v => v?.meta?.fixedTag
3130
)
32-
],
31+
] as any),
3332
multiTagsCache: storageLocal().getItem<StorageConfigs>(
3433
`${responsiveStorageNameSpace()}configure`
3534
)?.multiTagsCache

src/store/modules/permission.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ import {
1212
} from "../utils";
1313
import { useMultiTagsStoreHook } from "./multiTags";
1414

15-
export const usePermissionStore = defineStore({
16-
id: "pure-permission",
15+
export const usePermissionStore = defineStore("pure-permission", {
1716
state: () => ({
1817
// 静态路由生成的菜单
1918
constantMenus,
@@ -31,7 +30,7 @@ export const usePermissionStore = defineStore({
3130
filterTree(ascending(this.constantMenus.concat(routes)))
3231
);
3332
this.flatteningRoutes = formatFlatteningRoutes(
34-
this.constantMenus.concat(routes)
33+
this.constantMenus.concat(routes) as any
3534
);
3635
},
3736
cacheOperate({ mode, name }: cacheType) {

0 commit comments

Comments
 (0)