@skyfox2000/webui 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursorignore +8 -0
- package/lib/assets/modules/{menuTabs-JxjPoyCD.js → menuTabs-BXdbFZor.js} +143 -138
- package/lib/components/content/search/index.vue.d.ts +1 -0
- package/lib/components/content/search/index.vue.d.ts.map +1 -1
- package/lib/components/layout/header/headerExits.vue.d.ts.map +1 -1
- package/lib/components/layout/header/index.vue.d.ts.map +1 -1
- package/lib/components/layout/header/user.vue.d.ts +4 -0
- package/lib/components/layout/header/user.vue.d.ts.map +1 -0
- package/lib/components/layout/menu/menuTabs.vue.d.ts.map +1 -1
- package/lib/es/BasicLayout/index.js +1 -1
- package/lib/webui.css +1 -1
- package/lib/webui.es.js +244 -240
- package/package.json +3 -2
- package/src/components/content/search/index.vue +12 -0
- package/src/components/layout/header/headerExits.vue +1 -1
- package/src/components/layout/header/index.vue +3 -2
- package/src/components/layout/header/user.vue +10 -0
- package/src/components/layout/menu/menuTabs.vue +14 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyfox2000/webui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "后台前端通用组件定义",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [],
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"scripts": {
|
|
28
28
|
"build": "pnpm i && vue-tsc -b && vite build",
|
|
29
|
+
"build:dev": "pnpm link ../502428_WebBase/ && vue-tsc -b && vite build",
|
|
29
30
|
"build:dts": "vue-tsc -b && vite-dts-declaration",
|
|
30
31
|
"build:types": "vue-tsc --declaration --emitDeclarationOnly"
|
|
31
32
|
},
|
|
@@ -33,7 +34,7 @@
|
|
|
33
34
|
"peerDependencies": {
|
|
34
35
|
"@skyfox2000/fapi": "^1.1.17",
|
|
35
36
|
"@skyfox2000/microbase": "^1.0.15",
|
|
36
|
-
"@skyfox2000/webbase": "^1.1.
|
|
37
|
+
"@skyfox2000/webbase": "^1.1.2",
|
|
37
38
|
"ant-design-vue": "^4.2.6",
|
|
38
39
|
"dayjs": "^1.11.13",
|
|
39
40
|
"pinia": "^2.3.0",
|
|
@@ -29,6 +29,10 @@ const props = defineProps<{
|
|
|
29
29
|
* 表格控制对象
|
|
30
30
|
*/
|
|
31
31
|
gridCtrl: GridControl<AnyData>;
|
|
32
|
+
/**
|
|
33
|
+
* 模糊查询字段
|
|
34
|
+
*/
|
|
35
|
+
likeFields?: string[];
|
|
32
36
|
}>();
|
|
33
37
|
|
|
34
38
|
// const pageData = props.gridData.page;
|
|
@@ -83,6 +87,14 @@ onMounted(() => {
|
|
|
83
87
|
|
|
84
88
|
const onSearch = () => {
|
|
85
89
|
let search = { ...props.search };
|
|
90
|
+
if (props.likeFields) {
|
|
91
|
+
for (const field of props.likeFields) {
|
|
92
|
+
if (search[field]) {
|
|
93
|
+
search[field] = { $like: '%' + search[field] + '%' };
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
86
98
|
props.gridCtrl.gridQuery = {
|
|
87
99
|
...props.gridCtrl.gridQuery,
|
|
88
100
|
Query: {
|
|
@@ -18,7 +18,7 @@ const confirmExit = () => {
|
|
|
18
18
|
};
|
|
19
19
|
</script>
|
|
20
20
|
<template>
|
|
21
|
-
<ToolIcon icon="icon-logout" @click="open = true" clickable class="w-5 h-5" />
|
|
21
|
+
<ToolIcon icon="icon-logout" @click="open = true" clickable class="w-5 h-5" title="退出系统" />
|
|
22
22
|
<Modal v-model:open="open" title="确定退出?" ok-text="确定" cancel-text="取消" :width="380" @ok="confirmExit">
|
|
23
23
|
<Flex align="center" justify="flex-start" :style="{ padding: '0 32px', margin: '20px 0' }">
|
|
24
24
|
<ToolIcon icon="icon-question-circle" color="orange" class="w-[60px] h-[60px]" />
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { LayoutHeader,
|
|
2
|
+
import { LayoutHeader, theme, Space } from 'ant-design-vue';
|
|
3
3
|
import { useSettingInfo } from '@skyfox2000/webbase';
|
|
4
4
|
import { ToolIcon } from '../../common';
|
|
5
5
|
import Breadcrumb from '../breadcrumb/index.vue';
|
|
6
6
|
import HeaderExits from './headerExits.vue';
|
|
7
|
+
import User from './user.vue';
|
|
7
8
|
|
|
8
9
|
const { useToken } = theme;
|
|
9
10
|
const { token } = useToken();
|
|
@@ -36,7 +37,7 @@ const onCollapseClick = () => {
|
|
|
36
37
|
</div>
|
|
37
38
|
<div>
|
|
38
39
|
<Space size="middle" class="flex items-center">
|
|
39
|
-
<
|
|
40
|
+
<User class="w-7 h-7" />
|
|
40
41
|
<HeaderExits />
|
|
41
42
|
</Space>
|
|
42
43
|
</div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { Tooltip, AppIcon } from '../../common';
|
|
3
|
+
import { useUserInfo } from '@skyfox2000/webbase';
|
|
4
|
+
const userInfo = useUserInfo().userInfo;
|
|
5
|
+
</script>
|
|
6
|
+
<template>
|
|
7
|
+
<Tooltip :title="userInfo.Name">
|
|
8
|
+
<AppIcon icon="icon-account" />
|
|
9
|
+
</Tooltip>
|
|
10
|
+
</template>
|
|
@@ -1,13 +1,26 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { Tabs, TabPane, theme } from 'ant-design-vue';
|
|
3
3
|
import { useAppInfo, usePageInfo } from '@skyfox2000/webbase';
|
|
4
|
-
|
|
4
|
+
// import { useRouter } from 'vue-router';
|
|
5
5
|
import { ToolIcon, Tooltip } from '../../common';
|
|
6
|
+
// import { watch } from 'vue';
|
|
6
7
|
|
|
7
8
|
const { useToken } = theme;
|
|
8
9
|
const { token } = useToken();
|
|
9
10
|
|
|
10
11
|
const pageInfoStore = usePageInfo();
|
|
12
|
+
// const router = useRouter();
|
|
13
|
+
|
|
14
|
+
// 通过路由设置当前激活页签
|
|
15
|
+
// 避免通过浏览器后退按钮,导致页签不更新
|
|
16
|
+
// watch(
|
|
17
|
+
// () => router.currentRoute.value.path,
|
|
18
|
+
// (newVal) => {
|
|
19
|
+
// if (newVal !== pageInfoStore.TabActive) {
|
|
20
|
+
// pageInfoStore.setTabActive(newVal);
|
|
21
|
+
// }
|
|
22
|
+
// },
|
|
23
|
+
// );
|
|
11
24
|
|
|
12
25
|
const onTabClicked = (tabKey: any) => {
|
|
13
26
|
useAppInfo().push(tabKey as string);
|