befly-admin 3.4.31 → 3.4.33
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/package.json +3 -3
- package/src/types/components.d.ts +34 -0
- package/src/views/index.vue +0 -9
- package/vite.config.js +3 -1
- package/src/views/internal/login.vue +0 -73
- package/src/views/test.vue +0 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "befly-admin",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.33",
|
|
4
4
|
"description": "Befly Admin - 基于 Vue3 + OpenTiny Vue 的后台管理系统",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"sync:admin": "bunx befly sync:admin"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@befly-addon/admin": "1.0.
|
|
32
|
+
"@befly-addon/admin": "1.0.35",
|
|
33
33
|
"axios": "^1.13.2",
|
|
34
34
|
"pinia": "^3.0.4",
|
|
35
35
|
"tdesign-vue-next": "^1.10.6",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"node": ">=24.0.0",
|
|
58
58
|
"pnpm": ">=10.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "64fb7803b4ff57b2f1e5559cfd4fc428ebeb083e"
|
|
61
61
|
}
|
|
@@ -11,13 +11,46 @@ export {}
|
|
|
11
11
|
/* prettier-ignore */
|
|
12
12
|
declare module 'vue' {
|
|
13
13
|
export interface GlobalComponents {
|
|
14
|
+
'ILucide:activity': typeof import('~icons/lucide/activity')['default']
|
|
15
|
+
'ILucide:alertCircle': typeof import('~icons/lucide/alert-circle')['default']
|
|
16
|
+
'ILucide:alertTriangle': typeof import('~icons/lucide/alert-triangle')['default']
|
|
17
|
+
'ILucide:checkCircle': typeof import('~icons/lucide/check-circle')['default']
|
|
18
|
+
'ILucide:circle': typeof import('~icons/lucide/circle')['default']
|
|
19
|
+
'ILucide:clock': typeof import('~icons/lucide/clock')['default']
|
|
20
|
+
'ILucide:cloud': typeof import('~icons/lucide/cloud')['default']
|
|
21
|
+
'ILucide:code': typeof import('~icons/lucide/code')['default']
|
|
22
|
+
'ILucide:cpu': typeof import('~icons/lucide/cpu')['default']
|
|
23
|
+
'ILucide:database': typeof import('~icons/lucide/database')['default']
|
|
24
|
+
'ILucide:disc': typeof import('~icons/lucide/disc')['default']
|
|
14
25
|
'ILucide:fileText': typeof import('~icons/lucide/file-text')['default']
|
|
15
26
|
'ILucide:folder': typeof import('~icons/lucide/folder')['default']
|
|
27
|
+
'ILucide:hardDrive': typeof import('~icons/lucide/hard-drive')['default']
|
|
16
28
|
'ILucide:home': typeof import('~icons/lucide/home')['default']
|
|
29
|
+
'ILucide:info': typeof import('~icons/lucide/info')['default']
|
|
30
|
+
'ILucide:lock': typeof import('~icons/lucide/lock')['default']
|
|
31
|
+
'ILucide:mail': typeof import('~icons/lucide/mail')['default']
|
|
32
|
+
'ILucide:menu': typeof import('~icons/lucide/menu')['default']
|
|
33
|
+
'ILucide:pencil': typeof import('~icons/lucide/pencil')['default']
|
|
34
|
+
'ILucide:plus': typeof import('~icons/lucide/plus')['default']
|
|
35
|
+
'ILucide:rotateCw': typeof import('~icons/lucide/rotate-cw')['default']
|
|
36
|
+
'ILucide:search': typeof import('~icons/lucide/search')['default']
|
|
37
|
+
'ILucide:server': typeof import('~icons/lucide/server')['default']
|
|
38
|
+
'ILucide:settings': typeof import('~icons/lucide/settings')['default']
|
|
39
|
+
'ILucide:smile': typeof import('~icons/lucide/smile')['default']
|
|
40
|
+
'ILucide:square': typeof import('~icons/lucide/square')['default']
|
|
41
|
+
'ILucide:trash2': typeof import('~icons/lucide/trash2')['default']
|
|
42
|
+
'ILucide:trendingUp': typeof import('~icons/lucide/trending-up')['default']
|
|
43
|
+
'ILucide:user': typeof import('~icons/lucide/user')['default']
|
|
44
|
+
'ILucide:users': typeof import('~icons/lucide/users')['default']
|
|
45
|
+
'ILucide:webhook': typeof import('~icons/lucide/webhook')['default']
|
|
17
46
|
'ILucide:x': typeof import('~icons/lucide/x')['default']
|
|
47
|
+
'ILucide:xCircle': typeof import('~icons/lucide/x-circle')['default']
|
|
48
|
+
'ILucide:zap': typeof import('~icons/lucide/zap')['default']
|
|
18
49
|
RouterLink: typeof import('vue-router')['RouterLink']
|
|
19
50
|
RouterView: typeof import('vue-router')['RouterView']
|
|
20
51
|
TButton: typeof import('tdesign-vue-next')['Button']
|
|
52
|
+
TCheckbox: typeof import('tdesign-vue-next')['Checkbox']
|
|
53
|
+
TCheckboxGroup: typeof import('tdesign-vue-next')['CheckboxGroup']
|
|
21
54
|
TDialog: typeof import('tdesign-vue-next')['Dialog']
|
|
22
55
|
TDivider: typeof import('tdesign-vue-next')['Divider']
|
|
23
56
|
TDropdown: typeof import('tdesign-vue-next')['Dropdown']
|
|
@@ -31,6 +64,7 @@ declare module 'vue' {
|
|
|
31
64
|
TMenu: typeof import('tdesign-vue-next')['Menu']
|
|
32
65
|
TMenuItem: typeof import('tdesign-vue-next')['MenuItem']
|
|
33
66
|
TPagination: typeof import('tdesign-vue-next')['Pagination']
|
|
67
|
+
TProgress: typeof import('tdesign-vue-next')['Progress']
|
|
34
68
|
TRadio: typeof import('tdesign-vue-next')['Radio']
|
|
35
69
|
TRadioGroup: typeof import('tdesign-vue-next')['RadioGroup']
|
|
36
70
|
TSelect: typeof import('tdesign-vue-next')['Select']
|
package/src/views/index.vue
CHANGED
package/vite.config.js
CHANGED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="page-login">
|
|
3
|
-
<div class="login-box">
|
|
4
|
-
<h1>登录</h1>
|
|
5
|
-
<tiny-form ref="formRef" :model="$Data.form" label-position="top">
|
|
6
|
-
<tiny-form-item label="用户名" prop="username">
|
|
7
|
-
<tiny-input v-model="$Data.form.username" placeholder="请输入用户名" />
|
|
8
|
-
</tiny-form-item>
|
|
9
|
-
<tiny-form-item label="密码" prop="password">
|
|
10
|
-
<tiny-input v-model="$Data.form.password" type="password" placeholder="请输入密码" />
|
|
11
|
-
</tiny-form-item>
|
|
12
|
-
<tiny-form-item>
|
|
13
|
-
<tiny-button type="primary" @click="$Method.handleLogin">登录</tiny-button>
|
|
14
|
-
</tiny-form-item>
|
|
15
|
-
</tiny-form>
|
|
16
|
-
</div>
|
|
17
|
-
</div>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script setup>
|
|
21
|
-
const router = useRouter();
|
|
22
|
-
|
|
23
|
-
const $Data = $ref({
|
|
24
|
-
form: {
|
|
25
|
-
username: '',
|
|
26
|
-
password: ''
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
const $Method = {
|
|
31
|
-
async handleLogin() {
|
|
32
|
-
// 模拟登录
|
|
33
|
-
$Storage.local.set('token', 'mock-token-123');
|
|
34
|
-
MessagePlugin.success('登录成功');
|
|
35
|
-
router.push('/');
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
</script>
|
|
39
|
-
|
|
40
|
-
<route lang="yaml">
|
|
41
|
-
meta:
|
|
42
|
-
layout: blank
|
|
43
|
-
public: true
|
|
44
|
-
title: 登录
|
|
45
|
-
</route>
|
|
46
|
-
|
|
47
|
-
<style lang="scss" scoped>
|
|
48
|
-
.page-login {
|
|
49
|
-
width: 100%;
|
|
50
|
-
height: 100%;
|
|
51
|
-
display: flex;
|
|
52
|
-
align-items: center;
|
|
53
|
-
justify-content: center;
|
|
54
|
-
|
|
55
|
-
.login-box {
|
|
56
|
-
width: 400px;
|
|
57
|
-
padding: 40px;
|
|
58
|
-
background: #fff;
|
|
59
|
-
border-radius: 8px;
|
|
60
|
-
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
|
61
|
-
|
|
62
|
-
h1 {
|
|
63
|
-
text-align: center;
|
|
64
|
-
margin-bottom: 30px;
|
|
65
|
-
color: $primary-color;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.tiny-button {
|
|
69
|
-
width: 100%;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
</style>
|
package/src/views/test.vue
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="test-page">
|
|
3
|
-
<h1>TinyVue 自动导入测试</h1>
|
|
4
|
-
|
|
5
|
-
<div class="button-group">
|
|
6
|
-
<tiny-button type="primary" @click="testModal">测试 Modal</tiny-button>
|
|
7
|
-
<tiny-button type="success" @click="testMessage">测试 Message</tiny-button>
|
|
8
|
-
<tiny-button type="warning" @click="testNotify">测试 Notify</tiny-button>
|
|
9
|
-
<tiny-button type="info" @click="testMessageBox">测试 MessageBox</tiny-button>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script setup>
|
|
15
|
-
// 无需导入,已自动导入:MessagePlugin, DialogPlugin, NotificationPlugin, LoadingPlugin
|
|
16
|
-
|
|
17
|
-
const testModal = () => {
|
|
18
|
-
MessagePlugin.success('这是一个成功提示');
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const testMessage = () => {
|
|
22
|
-
Message.success('成功消息');
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const testNotify = () => {
|
|
26
|
-
Notify.success({
|
|
27
|
-
title: '成功通知',
|
|
28
|
-
message: '这是一个成功通知的内容'
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const testMessageBox = () => {
|
|
33
|
-
MessageBox.alert('这是一个提示框', '提示');
|
|
34
|
-
};
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
|
-
<route lang="yaml">
|
|
38
|
-
meta:
|
|
39
|
-
layout: default
|
|
40
|
-
title: 自动导入测试
|
|
41
|
-
</route>
|
|
42
|
-
|
|
43
|
-
<style lang="scss" scoped>
|
|
44
|
-
.test-page {
|
|
45
|
-
padding: 20px;
|
|
46
|
-
|
|
47
|
-
h1 {
|
|
48
|
-
color: $primary-color;
|
|
49
|
-
margin-bottom: 24px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.button-group {
|
|
53
|
-
display: flex;
|
|
54
|
-
gap: 12px;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
</style>
|