@befly-addon/admin 1.0.9 → 1.0.11

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.
Files changed (40) hide show
  1. package/apis/api/all.ts +5 -12
  2. package/apis/menu/all.ts +8 -14
  3. package/package.json +17 -3
  4. package/tables/admin.json +157 -13
  5. package/tables/api.json +79 -7
  6. package/tables/dict.json +79 -7
  7. package/tables/menu.json +79 -7
  8. package/tables/role.json +79 -7
  9. package/util.ts +1 -150
  10. package/views/403/index.vue +68 -0
  11. package/views/admin/components/edit.vue +150 -0
  12. package/views/admin/components/role.vue +138 -0
  13. package/views/admin/index.vue +179 -0
  14. package/views/dict/components/edit.vue +159 -0
  15. package/views/dict/index.vue +162 -0
  16. package/views/index/components/addonList.vue +127 -0
  17. package/views/index/components/environmentInfo.vue +99 -0
  18. package/views/index/components/operationLogs.vue +114 -0
  19. package/views/index/components/performanceMetrics.vue +150 -0
  20. package/views/index/components/quickActions.vue +27 -0
  21. package/views/index/components/serviceStatus.vue +183 -0
  22. package/views/index/components/systemNotifications.vue +132 -0
  23. package/views/index/components/systemOverview.vue +190 -0
  24. package/views/index/components/systemResources.vue +106 -0
  25. package/views/index/components/userInfo.vue +206 -0
  26. package/views/index/index.vue +29 -0
  27. package/views/login/components/emailLoginForm.vue +167 -0
  28. package/views/login/components/registerForm.vue +170 -0
  29. package/views/login/components/welcomePanel.vue +61 -0
  30. package/views/login/index.vue +191 -0
  31. package/views/menu/components/edit.vue +153 -0
  32. package/views/menu/index.vue +177 -0
  33. package/views/news/detail/index.vue +26 -0
  34. package/views/news/index.vue +26 -0
  35. package/views/role/components/api.vue +283 -0
  36. package/views/role/components/edit.vue +132 -0
  37. package/views/role/components/menu.vue +146 -0
  38. package/views/role/index.vue +179 -0
  39. package/views/user/index.vue +322 -0
  40. package/apis/dashboard/addonList.ts +0 -47
@@ -0,0 +1,153 @@
1
+ <template>
2
+ <tiny-dialog-box v-model:visible="$Data.visible" :title="$Prop.actionType === 'add' ? '添加菜单' : '编辑菜单'" width="600px" :append-to-body="true" :show-footer="true" top="10vh">
3
+ <tiny-form :model="$Data.formData" label-width="120px" label-position="left" :rules="$Data2.formRules" :ref="(el) => ($From.form = el)">
4
+ <tiny-form-item label="菜单名称" prop="name">
5
+ <tiny-input v-model="$Data.formData.name" placeholder="请输入菜单名称" />
6
+ </tiny-form-item>
7
+ <tiny-form-item label="菜单路径" prop="path">
8
+ <tiny-input v-model="$Data.formData.path" placeholder="请输入菜单路径,如:/user" />
9
+ </tiny-form-item>
10
+ <tiny-form-item label="图标" prop="icon">
11
+ <tiny-input v-model="$Data.formData.icon" placeholder="请输入图标名称,如:User" />
12
+ </tiny-form-item>
13
+ <tiny-form-item label="菜单类型" prop="type">
14
+ <tiny-radio-group v-model="$Data.formData.type">
15
+ <tiny-radio :label="0">目录</tiny-radio>
16
+ <tiny-radio :label="1">菜单</tiny-radio>
17
+ </tiny-radio-group>
18
+ </tiny-form-item>
19
+ <tiny-form-item label="排序" prop="sort">
20
+ <tiny-numeric v-model="$Data.formData.sort" :min="0" :max="9999" />
21
+ </tiny-form-item>
22
+ <tiny-form-item label="状态" prop="state">
23
+ <tiny-radio-group v-model="$Data.formData.state">
24
+ <tiny-radio :label="1">正常</tiny-radio>
25
+ <tiny-radio :label="2">禁用</tiny-radio>
26
+ </tiny-radio-group>
27
+ </tiny-form-item>
28
+ </tiny-form>
29
+ <template #footer>
30
+ <tiny-button @click="$Method.onClose">取消</tiny-button>
31
+ <tiny-button type="primary" @click="$Method.onSubmit">确定</tiny-button>
32
+ </template>
33
+ </tiny-dialog-box>
34
+ </template>
35
+
36
+ <script setup>
37
+ import { ref, watch, shallowRef } from 'vue';
38
+ import { Modal } from '@opentiny/vue';
39
+
40
+ const $Prop = defineProps({
41
+ modelValue: {
42
+ type: Boolean,
43
+ default: false
44
+ },
45
+ actionType: {
46
+ type: String,
47
+ default: 'add'
48
+ },
49
+ rowData: {
50
+ type: Object,
51
+ default: {}
52
+ }
53
+ });
54
+
55
+ const $Emit = defineEmits(['update:modelValue', 'success']);
56
+
57
+ // 表单引用
58
+ const $From = $shallowRef({
59
+ form: null
60
+ });
61
+
62
+ const $Data = $ref({
63
+ visible: false,
64
+ formData: {
65
+ id: 0,
66
+ name: '',
67
+ path: '',
68
+ icon: '',
69
+ type: 1,
70
+ sort: 0,
71
+ state: 1
72
+ }
73
+ });
74
+
75
+ const $Data2 = $shallowRef({
76
+ formRules: {
77
+ name: [{ required: true, message: '请输入菜单名称', trigger: 'blur' }],
78
+ path: [{ required: true, message: '请输入菜单路径', trigger: 'blur' }],
79
+ type: [{ required: true, message: '请选择菜单类型', trigger: 'change' }]
80
+ }
81
+ });
82
+
83
+ // 方法集合
84
+ const $Method = {
85
+ async initData() {
86
+ $Method.onShow();
87
+ },
88
+
89
+ onShow() {
90
+ $Data.visible = true;
91
+ if ($Prop.actionType === 'upd' && $Prop.rowData) {
92
+ $Data.formData.id = $Prop.rowData.id || 0;
93
+ $Data.formData.name = $Prop.rowData.name || '';
94
+ $Data.formData.path = $Prop.rowData.path || '';
95
+ $Data.formData.icon = $Prop.rowData.icon || '';
96
+ $Data.formData.type = $Prop.rowData.type ?? 1;
97
+ $Data.formData.sort = $Prop.rowData.sort || 0;
98
+ $Data.formData.state = $Prop.rowData.state ?? 1;
99
+ } else {
100
+ // 重置表单
101
+ $Data.formData.id = 0;
102
+ $Data.formData.name = '';
103
+ $Data.formData.path = '';
104
+ $Data.formData.icon = '';
105
+ $Data.formData.type = 1;
106
+ $Data.formData.sort = 0;
107
+ $Data.formData.state = 1;
108
+ }
109
+ },
110
+
111
+ onClose() {
112
+ $Data.visible = false;
113
+ setTimeout(() => {
114
+ $Emit('update:modelValue', false);
115
+ }, 300);
116
+ },
117
+
118
+ async onSubmit() {
119
+ try {
120
+ const valid = await $From.form.validate();
121
+ if (!valid) return;
122
+
123
+ const res = await $Http($Prop.actionType === 'add' ? '/addon/admin/menuIns' : '/addon/admin/menuUpd', $Data.formData);
124
+
125
+ Modal.message({
126
+ message: $Prop.actionType === 'add' ? '添加成功' : '编辑成功',
127
+ status: 'success'
128
+ });
129
+ $Method.onClose();
130
+ $Emit('success');
131
+ } catch (error) {
132
+ console.error('提交失败:', error);
133
+ }
134
+ }
135
+ };
136
+
137
+ // 监听 modelValue 变化
138
+ watch(
139
+ () => $Prop.modelValue,
140
+ (val) => {
141
+ if (val && !$Data.visible) {
142
+ $Method.initData();
143
+ } else if (!val && $Data.visible) {
144
+ $Data.visible = false;
145
+ }
146
+ },
147
+ { immediate: true }
148
+ );
149
+ </script>
150
+
151
+ <style scoped lang="scss">
152
+ // 可根据需要添加样式
153
+ </style>
@@ -0,0 +1,177 @@
1
+ <template>
2
+ <div class="page-menu page-table">
3
+ <div class="main-tool">
4
+ <div class="left">
5
+ <tiny-button type="primary" @click="$Method.onAction('add', {})">
6
+ <template #icon>
7
+ <i-lucide:plus style="width: 16px; height: 16px" />
8
+ </template>
9
+ 添加菜单
10
+ </tiny-button>
11
+ </div>
12
+ <div class="right">
13
+ <tiny-button @click="$Method.handleRefresh">
14
+ <template #icon>
15
+ <i-lucide:rotate-cw style="width: 16px; height: 16px" />
16
+ </template>
17
+ 刷新
18
+ </tiny-button>
19
+ </div>
20
+ </div>
21
+ <div class="main-table">
22
+ <tiny-grid :data="$Data.menuList" header-cell-class-name="custom-table-cell-class" size="small" height="100%" seq-serial>
23
+ <tiny-grid-column type="index" title="序号" :width="60" />
24
+ <tiny-grid-column field="name" title="菜单名称" />
25
+ <tiny-grid-column field="path" title="路径" :width="200" />
26
+ <tiny-grid-column field="icon" title="图标" :width="100">
27
+ <template #default="{ row }">
28
+ <i-lucide:square v-if="row.icon" style="width: 16px; height: 16px" />
29
+ <span v-else>-</span>
30
+ </template>
31
+ </tiny-grid-column>
32
+ <tiny-grid-column field="type" title="类型" :width="100">
33
+ <template #default="{ row }">
34
+ <tiny-tag v-if="row.type === 0" type="info">目录</tiny-tag>
35
+ <tiny-tag v-else type="success">菜单</tiny-tag>
36
+ </template>
37
+ </tiny-grid-column>
38
+ <tiny-grid-column field="sort" title="排序" :width="80" />
39
+ <tiny-grid-column field="state" title="状态" :width="100">
40
+ <template #default="{ row }">
41
+ <tiny-tag v-if="row.state === 1" type="success">正常</tiny-tag>
42
+ <tiny-tag v-else-if="row.state === 2" type="warning">禁用</tiny-tag>
43
+ <tiny-tag v-else type="danger">已删除</tiny-tag>
44
+ </template>
45
+ </tiny-grid-column>
46
+ <tiny-grid-column title="操作" :width="120" align="right">
47
+ <template #default="{ row }">
48
+ <tiny-dropdown title="操作" trigger="click" size="small" border visible-arrow @item-click="(data) => $Method.onAction(data.itemData.command, row)">
49
+ <template #dropdown>
50
+ <tiny-dropdown-menu>
51
+ <tiny-dropdown-item :item-data="{ command: 'upd' }">
52
+ <i-lucide:pencil style="width: 14px; height: 14px; margin-right: 6px" />
53
+ 编辑
54
+ </tiny-dropdown-item>
55
+ <tiny-dropdown-item :item-data="{ command: 'del' }" divided>
56
+ <i-lucide:trash-2 style="width: 14px; height: 14px; margin-right: 6px" />
57
+ 删除
58
+ </tiny-dropdown-item>
59
+ </tiny-dropdown-menu>
60
+ </template>
61
+ </tiny-dropdown>
62
+ </template>
63
+ </tiny-grid-column>
64
+ </tiny-grid>
65
+ </div>
66
+
67
+ <div class="main-page">
68
+ <tiny-pager :current-page="$Data.pagerConfig.currentPage" :page-size="$Data.pagerConfig.pageSize" :total="$Data.pagerConfig.total" @current-change="$Method.onPageChange" @size-change="$Method.handleSizeChange" />
69
+ </div>
70
+
71
+ <!-- 编辑对话框组件 -->
72
+ <EditDialog v-if="$Data.editVisible" v-model="$Data.editVisible" :action-type="$Data.actionType" :row-data="$Data.rowData" @success="$Method.apiMenuList" />
73
+ </div>
74
+ </template>
75
+
76
+ <script setup>
77
+ import { ref } from 'vue';
78
+ import { Modal } from '@opentiny/vue';
79
+
80
+ import EditDialog from './components/edit.vue';
81
+
82
+ // 响应式数据
83
+ const $Data = $ref({
84
+ menuList: [],
85
+ pagerConfig: {
86
+ currentPage: 1,
87
+ pageSize: 30,
88
+ total: 0,
89
+ align: 'right',
90
+ layout: 'total, prev, pager, next, jumper'
91
+ },
92
+ editVisible: false,
93
+ actionType: 'add',
94
+ rowData: {}
95
+ });
96
+
97
+ // 方法
98
+ const $Method = {
99
+ async initData() {
100
+ await $Method.apiMenuList();
101
+ },
102
+
103
+ // 加载菜单列表
104
+ async apiMenuList() {
105
+ try {
106
+ const res = await $Http('/addon/admin/menu/list', {
107
+ page: $Data.pagerConfig.currentPage,
108
+ limit: $Data.pagerConfig.pageSize
109
+ });
110
+ $Data.menuList = res.data.lists || [];
111
+ $Data.pagerConfig.total = res.data.total || 0;
112
+ } catch (error) {
113
+ console.error('加载菜单列表失败:', error);
114
+ Modal.message({
115
+ message: '加载数据失败',
116
+ status: 'error'
117
+ });
118
+ }
119
+ },
120
+
121
+ // 删除菜单
122
+ async apiMenuDel(row) {
123
+ Modal.confirm({
124
+ header: '确认删除',
125
+ body: `确定要删除菜单"${row.name}" 吗?`,
126
+ status: 'warning'
127
+ }).then(async () => {
128
+ try {
129
+ const res = await $Http('/addon/admin/menu/del', { id: row.id });
130
+ if (res.code === 0) {
131
+ Modal.message({ message: '删除成功', status: 'success' });
132
+ $Method.apiMenuList();
133
+ } else {
134
+ Modal.message({ message: res.msg || '删除失败', status: 'error' });
135
+ }
136
+ } catch (error) {
137
+ console.error('删除失败:', error);
138
+ Modal.message({ message: '删除失败', status: 'error' });
139
+ }
140
+ });
141
+ },
142
+
143
+ // 刷新
144
+ handleRefresh() {
145
+ $Method.apiMenuList();
146
+ },
147
+
148
+ // 分页改变
149
+ onPageChange({ currentPage }) {
150
+ $Data.pagerConfig.currentPage = currentPage;
151
+ $Method.apiMenuList();
152
+ },
153
+
154
+ // 操作菜单点击
155
+ onAction(command, rowData) {
156
+ $Data.actionType = command;
157
+ $Data.rowData = rowData;
158
+ if (command === 'add' || command === 'upd') {
159
+ $Data.editVisible = true;
160
+ } else if (command === 'del') {
161
+ $Method.apiMenuDel(rowData);
162
+ }
163
+ }
164
+ };
165
+
166
+ $Method.initData();
167
+ </script>
168
+
169
+ <route lang="yaml">
170
+ meta:
171
+ layout: default
172
+ title: 菜单管理
173
+ </route>
174
+
175
+ <style scoped lang="scss">
176
+ // 样式继承自全局 page-table
177
+ </style>
@@ -0,0 +1,26 @@
1
+ <template>
2
+ <div class="news-page">
3
+ <h1>新闻页面 index</h1>
4
+ <p>这个页面使用布局 1.vue</p>
5
+ <div class="news-content">
6
+ <p>这里是新闻内容...</p>
7
+ </div>
8
+ </div>
9
+ </template>
10
+
11
+ <script setup>
12
+ // 新闻页面逻辑
13
+ </script>
14
+
15
+ <style scoped>
16
+ .news-page {
17
+ padding: 20px;
18
+ }
19
+
20
+ .news-content {
21
+ margin-top: 20px;
22
+ padding: 20px;
23
+ background: #f5f5f5;
24
+ border-radius: 8px;
25
+ }
26
+ </style>
@@ -0,0 +1,26 @@
1
+ <template>
2
+ <div class="news-page">
3
+ <h1>新闻页面</h1>
4
+ <p>这个页面使用布局 1.vue</p>
5
+ <div class="news-content">
6
+ <p>这里是新闻内容...</p>
7
+ </div>
8
+ </div>
9
+ </template>
10
+
11
+ <script setup>
12
+ // 新闻页面逻辑
13
+ </script>
14
+
15
+ <style scoped>
16
+ .news-page {
17
+ padding: 20px;
18
+ }
19
+
20
+ .news-content {
21
+ margin-top: 20px;
22
+ padding: 20px;
23
+ background: #f5f5f5;
24
+ border-radius: 8px;
25
+ }
26
+ </style>
@@ -0,0 +1,283 @@
1
+ <template>
2
+ <tiny-dialog-box v-model:visible="$Data.visible" title="接口权限" width="900px" :append-to-body="true" :show-footer="true" top="5vh" @close="$Method.onClose">
3
+ <div class="comp-role-api">
4
+ <!-- 搜索框 -->
5
+ <div class="search-box">
6
+ <tiny-search v-model="$Data.searchText" placeholder="搜索接口名称或路径" clearable @update:modelValue="$Method.onSearch" />
7
+ </div>
8
+
9
+ <!-- 接口分组列表 -->
10
+ <div class="api-container">
11
+ <div v-for="group in $Data.filteredApiData" :key="group.name" class="api-group">
12
+ <div class="group-header">{{ group.title }}</div>
13
+ <div class="api-checkbox-list">
14
+ <tiny-checkbox-group v-model="$Data.checkedApiIds">
15
+ <tiny-checkbox v-for="api in group.apis" :key="api.id" :label="api.id"> {{ api.label }} </tiny-checkbox>
16
+ </tiny-checkbox-group>
17
+ </div>
18
+ </div>
19
+ </div>
20
+ </div>
21
+
22
+ <template #footer>
23
+ <div class="footer-left">
24
+ <tiny-button size="small" @click="$Method.onCheckAll">全选</tiny-button>
25
+ <tiny-button size="small" @click="$Method.onUncheckAll">取消全选</tiny-button>
26
+ </div>
27
+ <div class="footer-right">
28
+ <tiny-button @click="$Method.onClose">取消</tiny-button>
29
+ <tiny-button type="primary" @click="$Method.onSubmit">保存</tiny-button>
30
+ </div>
31
+ </template>
32
+ </tiny-dialog-box>
33
+ </template>
34
+
35
+ <script setup>
36
+ import { ref } from 'vue';
37
+ import { Modal } from '@opentiny/vue';
38
+
39
+ const $Prop = defineProps({
40
+ modelValue: {
41
+ type: Boolean,
42
+ default: false
43
+ },
44
+ rowData: {
45
+ type: Object,
46
+ default: () => ({})
47
+ }
48
+ });
49
+
50
+ const $Emit = defineEmits(['update:modelValue', 'success']);
51
+
52
+ const $Data = $ref({
53
+ visible: false,
54
+ apiData: [],
55
+ filteredApiData: [],
56
+ searchText: '',
57
+ checkedApiIds: []
58
+ });
59
+
60
+ // 方法集合
61
+ const $Method = {
62
+ async initData() {
63
+ $Method.onShow();
64
+ await Promise.all([$Method.apiApiAll(), $Method.apiRoleApiDetail()]);
65
+ $Data.filteredApiData = $Data.apiData;
66
+ },
67
+
68
+ onShow() {
69
+ setTimeout(() => {
70
+ $Data.visible = $Prop.modelValue;
71
+ }, 100);
72
+ },
73
+
74
+ onClose() {
75
+ $Data.visible = false;
76
+ setTimeout(() => {
77
+ $Emit('update:modelValue', false);
78
+ }, 300);
79
+ },
80
+
81
+ // 加载所有接口
82
+ async apiApiAll() {
83
+ try {
84
+ const res = await $Http('/addon/admin/api/all');
85
+
86
+ // 将接口列表按 addonTitle 分组
87
+ const apiMap = new Map();
88
+
89
+ res.data.lists.forEach((api) => {
90
+ const addonTitle = api.addonTitle || api.addonName || '项目接口';
91
+ const addonName = api.addonName || 'project';
92
+
93
+ if (!apiMap.has(addonName)) {
94
+ apiMap.set(addonName, {
95
+ name: addonName,
96
+ title: addonTitle,
97
+ apis: []
98
+ });
99
+ }
100
+
101
+ apiMap.get(addonName).apis.push({
102
+ id: api.id,
103
+ label: `${api.name}`,
104
+ description: api.description
105
+ });
106
+ });
107
+
108
+ $Data.apiData = Array.from(apiMap.values());
109
+ } catch (error) {
110
+ console.error('加载接口失败:', error);
111
+ Modal.message({ message: '加载接口失败', status: 'error' });
112
+ }
113
+ },
114
+
115
+ // 加载该角色已分配的接口
116
+ async apiRoleApiDetail() {
117
+ if (!$Prop.rowData.id) return;
118
+
119
+ try {
120
+ const res = await $Http('/addon/admin/role/apiDetail', {
121
+ roleId: $Prop.rowData.id
122
+ });
123
+
124
+ $Data.checkedApiIds = res.data.apiIds || [];
125
+ } catch (error) {
126
+ console.error('加载角色接口失败:', error);
127
+ }
128
+ },
129
+
130
+ // 搜索过滤
131
+ onSearch() {
132
+ if (!$Data.searchText) {
133
+ $Data.filteredApiData = $Data.apiData;
134
+ return;
135
+ }
136
+
137
+ const searchLower = $Data.searchText.toLowerCase();
138
+ $Data.filteredApiData = $Data.apiData
139
+ .map((group) => ({
140
+ ...group,
141
+ apis: group.apis.filter((api) => api.label.toLowerCase().includes(searchLower))
142
+ }))
143
+ .filter((group) => group.apis.length > 0);
144
+ },
145
+
146
+ // 全选
147
+ onCheckAll() {
148
+ const allApiIds = [];
149
+ $Data.apiData.forEach((group) => {
150
+ group.apis.forEach((api) => {
151
+ allApiIds.push(api.id);
152
+ });
153
+ });
154
+ $Data.checkedApiIds = allApiIds;
155
+ },
156
+
157
+ // 取消全选
158
+ onUncheckAll() {
159
+ $Data.checkedApiIds = [];
160
+ },
161
+
162
+ // 提交表单
163
+ async onSubmit() {
164
+ try {
165
+ const res = await $Http('/addon/admin/role/apiSave', {
166
+ roleId: $Prop.rowData.id,
167
+ apiIds: $Data.checkedApiIds
168
+ });
169
+
170
+ if (res.code === 0) {
171
+ Modal.message({
172
+ message: '保存成功',
173
+ status: 'success'
174
+ });
175
+ $Data.visible = false;
176
+ $Emit('success');
177
+ } else {
178
+ Modal.message({
179
+ message: res.msg || '保存失败',
180
+ status: 'error'
181
+ });
182
+ }
183
+ } catch (error) {
184
+ console.error('保存失败:', error);
185
+ Modal.message({
186
+ message: '保存失败',
187
+ status: 'error'
188
+ });
189
+ }
190
+ }
191
+ };
192
+
193
+ $Method.initData();
194
+ </script>
195
+
196
+ <style scoped lang="scss">
197
+ .comp-role-api {
198
+ height: 60vh;
199
+ display: flex;
200
+ flex-direction: column;
201
+ gap: 12px;
202
+
203
+ .search-box {
204
+ }
205
+
206
+ .api-container {
207
+ flex: 1;
208
+ overflow-y: auto;
209
+
210
+ .api-group {
211
+ margin-bottom: 16px;
212
+ border: 1px solid $border-color;
213
+ border-radius: $border-radius-small;
214
+ overflow: hidden;
215
+
216
+ &:last-child {
217
+ margin-bottom: 0;
218
+ }
219
+
220
+ .group-header {
221
+ padding: 12px 16px;
222
+ background-color: $bg-color-hover;
223
+ font-weight: 500;
224
+ font-size: $font-size-sm;
225
+ color: $text-primary;
226
+ display: flex;
227
+ align-items: center;
228
+ gap: 8px;
229
+
230
+ &::before {
231
+ content: '';
232
+ width: 8px;
233
+ height: 8px;
234
+ border-radius: 50%;
235
+ background-color: $primary-color;
236
+ opacity: 0.3;
237
+ flex-shrink: 0;
238
+ }
239
+ }
240
+
241
+ .api-checkbox-list {
242
+ padding: 16px;
243
+ background-color: $bg-color-container;
244
+
245
+ :deep(.tiny-checkbox-group) {
246
+ display: flex;
247
+ flex-wrap: wrap;
248
+ gap: 12px;
249
+ width: 100%;
250
+ }
251
+
252
+ :deep(.tiny-checkbox) {
253
+ flex: 0 0 calc(33.333% - 8px);
254
+ margin: 0;
255
+
256
+ .tiny-checkbox__label {
257
+ white-space: nowrap;
258
+ overflow: hidden;
259
+ text-overflow: ellipsis;
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ }
266
+
267
+ // 底部操作栏布局
268
+ :deep(.tiny-dialog-box__footer) {
269
+ display: flex;
270
+ justify-content: space-between;
271
+ align-items: center;
272
+
273
+ .footer-left {
274
+ display: flex;
275
+ gap: 8px;
276
+ }
277
+
278
+ .footer-right {
279
+ display: flex;
280
+ gap: 8px;
281
+ }
282
+ }
283
+ </style>