@pubinfo-pr/module-rbac 0.222.4 → 0.223.1

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 (129) hide show
  1. package/dist/{ResourceRelation-BwagNxld.js → ResourceRelation-CU-QpUhP.js} +1 -1
  2. package/dist/{ResourceRelation-CKZrGW9A.js → ResourceRelation-roz0a8Td.js} +1 -1
  3. package/dist/ResourceRelation.css +1 -1
  4. package/dist/ResourceRelation2.css +1 -1
  5. package/dist/{UserAuthorization-sU8yGviz.js → UserAuthorization-2Fl4IGw7.js} +1 -1
  6. package/dist/UserAuthorization.css +1 -1
  7. package/dist/{blackWhiteList-CaEw1uGl.js → blackWhiteList-DbG7JH8n.js} +1 -1
  8. package/dist/blackWhiteList.css +1 -1
  9. package/dist/breadcrumb_setting-Dx2Li6xt.js +108 -0
  10. package/dist/{createAndEditDataPermission-BfIc8HNt.js → createAndEditDataPermission-8_KNLzJT.js} +1 -1
  11. package/dist/createAndEditDataPermission.css +1 -1
  12. package/dist/{data-permission-CeSzz7-6.js → data-permission-LpuDLDm0.js} +2 -2
  13. package/dist/data-permission.css +1 -1
  14. package/dist/{group-DmvSRTkz.js → group-CaOhkh72.js} +1 -1
  15. package/dist/group.css +1 -1
  16. package/dist/index.css +1 -1
  17. package/dist/index.js +43 -43
  18. package/dist/{layout_setting-DcFrUQtI.js → layout_setting-79srmFgJ.js} +1 -1
  19. package/dist/layout_setting.css +1 -1
  20. package/dist/{login_history-uB4F5Ddd.js → login_history-BiwaLpxA.js} +1 -1
  21. package/dist/login_history.css +1 -1
  22. package/dist/menu_setting-ChueWHs4.js +155 -0
  23. package/dist/{operate_history-eTC0gtt3.js → operate_history-sPd9IHMV.js} +28 -30
  24. package/dist/operate_history.css +1 -0
  25. package/dist/{organization-CEDkYrjK.js → organization-Dv3FbKke.js} +6 -2
  26. package/dist/organization.css +1 -1
  27. package/dist/other_setting-BEV_UK0g.js +213 -0
  28. package/dist/page_animation_setting-Cp5OnFpd.js +108 -0
  29. package/dist/page_animation_setting.css +1 -0
  30. package/dist/{page_w_setting-Bp9cayqE.js → page_w_setting-Q--ct16C.js} +6 -2
  31. package/dist/page_w_setting.css +1 -1
  32. package/dist/{role-WO4NM7Er.js → role-4UgEw3nH.js} +1 -1
  33. package/dist/{setItem-Bjl8zTpQ.js → setItem-Vkcwkj-O.js} +1 -1
  34. package/dist/setItem.css +1 -1
  35. package/dist/tabbar_setting-kbuTvrLB.js +139 -0
  36. package/dist/{theme_setting-Duv0kBY3.js → theme_setting-CEb7UYQO.js} +1 -1
  37. package/dist/theme_setting.css +1 -1
  38. package/dist/toolbar_setting-BG-k2UFc.js +140 -0
  39. package/dist/{user-DeVw-Ynu.js → user-BkUpcQC8.js} +2 -2
  40. package/dist/user.css +1 -1
  41. package/dist/watermark_setting-Cl2EtPAa.js +191 -0
  42. package/dist/watermark_setting.css +1 -1
  43. package/package.json +3 -3
  44. package/src/components/GroupSelector/index.vue +24 -67
  45. package/src/components/OrgTree/index.vue +1 -1
  46. package/src/components/ResourceSelector/index.vue +15 -45
  47. package/src/views/blackWhiteList/index.vue +3 -9
  48. package/src/views/components/setItem.vue +2 -10
  49. package/src/views/data-permission/index.vue +1 -2
  50. package/src/views/group/index.vue +4 -7
  51. package/src/views/layout_setting/index.vue +20 -99
  52. package/src/views/log_center/login_history.vue +2 -7
  53. package/src/views/log_center/operate_history.vue +11 -4
  54. package/src/views/organization/index.vue +21 -23
  55. package/src/views/page_animation_setting/index.vue +23 -14
  56. package/src/views/page_w_setting/index.vue +6 -19
  57. package/src/views/role/components/ResourceRelation.vue +1 -2
  58. package/src/views/role_group/components/ResourceRelation.vue +1 -2
  59. package/src/views/safe_setting/index.vue +1 -1
  60. package/src/views/theme_setting/index.vue +17 -70
  61. package/src/views/user/components/UserAuthorization.vue +2 -2
  62. package/src/views/watermark_setting/index.vue +1 -4
  63. package/dist/breadcrumb_setting-CW3eWnlU.js +0 -108
  64. package/dist/lottie-03f0a035.json +0 -1
  65. package/dist/lottie-0ee63e7f.json +0 -1
  66. package/dist/lottie-10eef4fe.json +0 -1
  67. package/dist/lottie-13f452f1.json +0 -1
  68. package/dist/lottie-14b7b290.json +0 -1
  69. package/dist/lottie-15b8cef1.json +0 -1
  70. package/dist/lottie-15f77960.json +0 -1
  71. package/dist/lottie-1ae9b726.json +0 -1
  72. package/dist/lottie-1b02359f.json +0 -1
  73. package/dist/lottie-1ef286cd.json +0 -1
  74. package/dist/lottie-23cfd18c.json +0 -1
  75. package/dist/lottie-265a0a5d.json +0 -1
  76. package/dist/lottie-28d57c49.json +0 -1
  77. package/dist/lottie-2b54ed10.json +0 -1
  78. package/dist/lottie-2bb6f642.json +0 -1
  79. package/dist/lottie-2cdc07bd.json +0 -1
  80. package/dist/lottie-31c58607.json +0 -1
  81. package/dist/lottie-32884f23.json +0 -1
  82. package/dist/lottie-32fca43a.json +0 -1
  83. package/dist/lottie-3a75445b.json +0 -1
  84. package/dist/lottie-3f27d67c.json +0 -1
  85. package/dist/lottie-4189453f.json +0 -1
  86. package/dist/lottie-4702b37c.json +0 -1
  87. package/dist/lottie-520a5c68.json +0 -1
  88. package/dist/lottie-56bea508.json +0 -1
  89. package/dist/lottie-57c732a3.json +0 -1
  90. package/dist/lottie-5be4a28f.json +0 -1
  91. package/dist/lottie-5e6d7cfa.json +0 -1
  92. package/dist/lottie-64e176c9.json +0 -1
  93. package/dist/lottie-6583dca6.json +0 -1
  94. package/dist/lottie-66c640c6.json +0 -1
  95. package/dist/lottie-68393156.json +0 -1
  96. package/dist/lottie-688465aa.json +0 -1
  97. package/dist/lottie-6bf334f4.json +0 -1
  98. package/dist/lottie-7b4f72ce.json +0 -1
  99. package/dist/lottie-837ec087.json +0 -1
  100. package/dist/lottie-838ac1ba.json +0 -1
  101. package/dist/lottie-8465c2cf.json +0 -1
  102. package/dist/lottie-9e9f04a4.json +0 -1
  103. package/dist/lottie-a13964cb.json +0 -1
  104. package/dist/lottie-ab93a057.json +0 -1
  105. package/dist/lottie-abe308fc.json +0 -1
  106. package/dist/lottie-b24f2cd3.json +0 -1
  107. package/dist/lottie-bf00eaed.json +0 -1
  108. package/dist/lottie-cb22efd7.json +0 -1
  109. package/dist/lottie-cb953f20.json +0 -1
  110. package/dist/lottie-cc209e34.json +0 -1
  111. package/dist/lottie-cfdffceb.json +0 -1
  112. package/dist/lottie-d33c0299.json +0 -1
  113. package/dist/lottie-d430c8ca.json +0 -1
  114. package/dist/lottie-d8cfa560.json +0 -1
  115. package/dist/lottie-da91beb6.json +0 -1
  116. package/dist/lottie-e2bdf85c.json +0 -1
  117. package/dist/lottie-e34ad826.json +0 -1
  118. package/dist/lottie-e80720aa.json +0 -1
  119. package/dist/lottie-e894bc92.json +0 -1
  120. package/dist/lottie-f28020f2.json +0 -1
  121. package/dist/lottie-f71ebbf4.json +0 -1
  122. package/dist/lottie-fb1f4917.json +0 -1
  123. package/dist/lottie-ff2e97c4.json +0 -1
  124. package/dist/menu_setting-C5Pr_E9s.js +0 -155
  125. package/dist/other_setting-DaDLf9QC.js +0 -213
  126. package/dist/page_animation_setting-BzlBS0Sa.js +0 -109
  127. package/dist/tabbar_setting-C_B1WZn1.js +0 -139
  128. package/dist/toolbar_setting-BPROx6V9.js +0 -140
  129. package/dist/watermark_setting-r0rMSViF.js +0 -191
@@ -1 +1 @@
1
- .item_ani[data-v-40510ce7]{background-color:var(--g-bg);border:1px solid var(--g-tabbar-tab-hover-bg);border-radius:.5rem;flex-direction:column;place-items:center;padding-top:26px;display:flex}.item_ani .jb[data-v-40510ce7]{background:linear-gradient(180deg, var(--g-container-bg) 0%, #fff0 100%)}.bar-header[data-v-40510ce7]{background:var(--g-bg)}
1
+ .item_ani[data-v-0ecfa3a5]{background-color:var(--g-bg);border:1px solid var(--g-tabbar-tab-hover-bg);border-radius:.5rem;flex-direction:column;place-items:center;padding-top:26px;display:flex}.item_ani .jb[data-v-0ecfa3a5]{background:linear-gradient(180deg, var(--g-container-bg) 0%, #fff0 100%)}.bar-header[data-v-0ecfa3a5]{background:var(--g-bg)}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pubinfo-pr/module-rbac",
3
3
  "type": "module",
4
- "version": "0.222.4",
4
+ "version": "0.223.1",
5
5
  "exports": {
6
6
  ".": {
7
7
  "types": "./dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "alova": "^3.5.0",
26
26
  "ant-design-vue": "^4.2.6",
27
27
  "pinia": "^3.0.4",
28
- "pubinfo-pr": "0.222.4"
28
+ "pubinfo-pr": "0.223.1"
29
29
  },
30
30
  "dependencies": {
31
31
  "@destyler/color-picker": "^0.2.6",
@@ -50,7 +50,7 @@
50
50
  "alova": "^3.5.0",
51
51
  "ant-design-vue": "^4.2.6",
52
52
  "pinia": "^3.0.4",
53
- "pubinfo-pr": "0.222.4",
53
+ "pubinfo-pr": "0.223.1",
54
54
  "type-fest": "^5.4.4"
55
55
  },
56
56
  "scripts": {
@@ -172,28 +172,19 @@ defineExpose({
172
172
 
173
173
  <style>
174
174
  .group-modal .ant-tabs-content-holder {
175
- overflow: auto;
176
- padding-top: 0;
177
- padding-bottom: 0.5rem; /* 8px */
178
- padding-left: 1rem; /* 16px */
179
- padding-right: 1rem; /* 16px */
175
+ --at-apply: overflow-auto pt-0 pb-2 px-4;
180
176
  }
181
177
 
182
178
  .group-modal .ant-tabs-nav::before {
183
- display: none;
179
+ --at-apply: hidden;
184
180
  }
185
181
 
186
182
  .group-modal .ant-tabs-nav-wrap {
187
- height: 38px;
188
- background: #f5f5f5;
183
+ --at-apply: h-38px [background:#f5f5f5];
189
184
  }
190
185
 
191
186
  .group-modal .ant-tabs-tab {
192
- margin: 0;
193
- padding-left: 0.75rem; /* 12px */
194
- padding-right: 0.75rem; /* 12px */
195
- padding-top: 0;
196
- padding-bottom: 0;
187
+ --at-apply: m-0 px-3 py-0;
197
188
  }
198
189
 
199
190
  .group-modal .ant-tabs-tab + .ant-tabs-tab {
@@ -201,70 +192,53 @@ defineExpose({
201
192
  }
202
193
 
203
194
  .group-modal .ant-tabs-tab-active {
204
- background: white;
195
+ --at-apply: [background:white];
205
196
  }
206
197
 
207
198
  .group-modal .ant-checkbox-group {
208
- display: block;
199
+ --at-apply: block;
209
200
  }
210
201
 
211
202
  .group-modal .ant-checkbox-wrapper {
212
- display: flex;
213
- margin-bottom: 0.5rem; /* 8px */
203
+ --at-apply: flex mb-2;
214
204
  }
215
205
 
216
206
  .group-modal .ant-tabs-ink-bar {
217
- display: none;
207
+ --at-apply: hidden;
218
208
  }
219
209
 
220
210
  .dark .group-modal .ant-tabs-nav-wrap {
221
- color: #f2f3f5;
222
- background: #000;
211
+ --at-apply: text-[#f2f3f5] [background:#000];
223
212
  }
224
213
 
225
214
  .dark .group-modal .ant-tabs-tab-active {
226
- background: #141414;
215
+ --at-apply: [background:#141414];
227
216
  }
228
217
  </style>
229
218
 
230
219
  <style scoped>
231
220
  .group-modal :deep(.ant-modal-content) {
232
- padding: 0;
233
- border-radius: 0;
221
+ --at-apply: p-0 rounded-none;
234
222
  }
235
223
 
236
224
  .group-modal :deep(.ant-modal-header) {
237
- margin-bottom: 0;
238
- padding-left: 1rem; /* 16px */
239
- padding-right: 1rem; /* 16px */
240
- padding-top: 0.75rem; /* 12px */
241
- padding-bottom: 0.75rem; /* 12px */
242
- border-bottom-color: #e5e6eb;
243
- border-bottom-width: 1px;
244
- border-style: solid;
225
+ --at-apply: mb-0 px-4 py-3 border-b-[#e5e6eb] border-b border-solid;
245
226
  }
246
227
 
247
228
  .group-modal :deep(.ant-modal-title) {
248
- font-size: 1rem; /* 16px */
249
- line-height: 1.5rem; /* 24px */
250
- line-height: 1;
251
- font-weight: 500;
252
- color: #1d2129;
229
+ --at-apply: text-base leading-none font-medium text-[#1d2129];
253
230
  }
254
231
 
255
232
  .group-modal :deep(.ant-modal-body) {
256
- padding: 1rem;
233
+ --at-apply: p-4;
257
234
  }
258
235
 
259
236
  .group-modal :deep(.ant-modal-footer) {
260
- padding: 1rem; /* 16px */
261
- border-top-color: #e5e6eb;
262
- border-top-width: 1px;
263
- border-style: solid;
237
+ --at-apply: p-4 border-t-[#e5e6eb] border-t border-solid;
264
238
  }
265
239
 
266
240
  .group-modal :deep(.ant-modal-footer) .ant-btn {
267
- border-radius: 0.125rem;
241
+ --at-apply: rounded-sm;
268
242
  }
269
243
 
270
244
  :deep(.ant-tree-checkbox) {
@@ -273,51 +247,34 @@ defineExpose({
273
247
  }
274
248
 
275
249
  :deep(.ant-tree-checkbox + span .ant-tree-iconEle) {
276
- margin-right: 0.25rem;
250
+ --at-apply: mr-1;
277
251
  }
278
252
 
279
253
  .custom_tag {
280
- padding-left: 0.5rem; /* 8px */
281
- padding-right: 0.5rem; /* 8px */
282
- padding-top: 3px;
283
- padding-bottom: 3px;
284
- border-radius: 0.125rem; /* 2px */
285
- border-width: 0px;
254
+ --at-apply: px-2 py-[3px] rounded-sm border-0;
286
255
  }
287
256
 
288
257
  .custom_tag :deep(.ant-tag-close-icon) {
289
- color: rgb(22 93 255 / 0.6) /* #165dff */;
258
+ --at-apply: text-[#165dff] text-op-60;
290
259
  }
291
260
 
292
261
  .custom_tag :deep(.ant-tag-close-icon):hover {
293
- color: #165dff;
262
+ --at-apply: text-[#165dff];
294
263
  }
295
264
 
296
265
  .border_color {
297
- border-color: #e5e6eb;
266
+ --at-apply: border-[#e5e6eb];
298
267
  }
299
268
 
300
269
  [data-theme="dark"] .border_color {
301
- border-color: rgb(253 253 253 / 0.12);
270
+ --at-apply: border-[#FDFDFD] border-op-12;
302
271
  }
303
272
 
304
273
  .border_c {
305
- border-width: 1px;
306
- border-radius: 10px;
307
- border-style: dashed;
308
- border-color: #ccc;
274
+ --at-apply: border rounded-[10px] border-dashed border-[#ccc];
309
275
  }
310
276
 
311
277
  :deep(.ant-dropdown-link) {
312
- font-size: 0.75rem; /* 12px */
313
- line-height: 1rem; /* 16px */
314
- padding-left: 0.375rem; /* 6px */
315
- padding-right: 0.375rem; /* 6px */
316
- padding-top: 0.25rem; /* 4px */
317
- padding-bottom: 0.25rem; /* 4px */
318
- border-radius: 0.125rem; /* 2px */
319
- --un-scale-x: 0.7;
320
- --un-scale-y: 0.7;
321
- transform: scaleX(0.7) scaleY(0.7);
278
+ --at-apply: text-xs px-1.5 py-1 rounded-sm scale-[0.7];
322
279
  }
323
280
  </style>
@@ -86,6 +86,6 @@ onMounted(() => {
86
86
 
87
87
  <style scoped>
88
88
  :deep(.ant-tree .ant-tree-node-content-wrapper) {
89
- overflow: hidden;
89
+ --at-apply: overflow-hidden;
90
90
  }
91
91
  </style>
@@ -351,94 +351,64 @@ defineExpose({
351
351
 
352
352
  <style scoped>
353
353
  .border_color {
354
- border-color: #e5e6eb;
354
+ --at-apply: border-[#e5e6eb];
355
355
  }
356
356
 
357
357
  [data-theme="dark"] .border_color {
358
- border-color: rgb(253 253 253 / 0.12);
358
+ --at-apply: border-[#fdfdfd1f];
359
359
  }
360
360
 
361
361
  .border_c {
362
- border-width: 1px;
363
- border-radius: 10px;
364
- border-style: dashed;
365
- border-color: #ccc;
362
+ --at-apply: border rounded-[10px] border-dashed border-[#ccc];
366
363
  }
367
364
 
368
365
  :deep(.ant-dropdown-link) {
369
- font-size: 0.75rem; /* 12px */
370
- line-height: 1rem; /* 16px */
371
- padding-left: 0.375rem; /* 6px */
372
- padding-right: 0.375rem; /* 6px */
373
- padding-top: 0.25rem; /* 4px */
374
- padding-bottom: 0.25rem; /* 4px */
375
- border-radius: 0.125rem; /* 2px */
376
- transform: scaleX(0.7) scaleY(0.7);
366
+ --at-apply: text-xs px-1.5 py-1 rounded-sm scale-[0.7];
377
367
  }
378
368
  </style>
379
369
 
380
370
  <style lang='css' scoped>
381
371
  .custom_modal :deep(.ant-modal-content) {
382
- padding: 0;
383
- border-radius: 0;
372
+ --at-apply: p-0 rounded-none;
384
373
  }
385
374
 
386
375
  .custom_modal :deep(.ant-modal-header) {
387
- margin-bottom: 0;
388
- padding-left: 1rem; /* 16px */
389
- padding-right: 1rem; /* 16px */
390
- padding-top: 0.75rem; /* 12px */
391
- padding-bottom: 0.75rem; /* 12px */
392
- border-bottom-color: #e5e6eb;
393
- border-bottom-width: 1px;
394
- border-style: solid;
376
+ --at-apply: mb-0 px-4 py-3 border-b-[#e5e6eb] border-b border-solid;
395
377
  }
396
378
 
397
379
  .custom_modal :deep(.ant-modal-title) {
398
- font-size: 1rem; /* 16px */
399
- line-height: 1.5rem; /* 24px */
400
- font-weight: 500;
401
- color: #1d2129;
380
+ --at-apply: text-base font-medium text-[#1d2129];
402
381
  }
403
382
 
404
383
  .custom_modal :deep(.ant-modal-body) {
405
- padding: 1rem;
384
+ --at-apply: p-4;
406
385
  }
407
386
 
408
387
  .custom_modal :deep(.ant-modal-footer) {
409
- padding: 1rem; /* 16px */
410
- border-top-color: #e5e6eb;
411
- border-top-width: 1px;
412
- border-style: solid;
388
+ --at-apply: p-4 border-t-[#e5e6eb] border-t border-solid;
413
389
  }
414
390
 
415
391
  .custom_modal :deep(.ant-modal-footer) .ant-btn {
416
- border-radius: 0.125rem;
392
+ --at-apply: rounded-sm;
417
393
  }
418
394
 
419
395
  :deep(.ant-tree-checkbox) {
420
- margin-top: 0;
421
- margin-right: 2px;
396
+ --at-apply: mt-0 mr-2px;
422
397
  }
423
398
 
424
399
  :deep(.ant-tree-checkbox + span .ant-tree-iconEle) {
425
- margin-right: 0.25rem;
400
+ --at-apply: mr-1;
426
401
  }
427
402
 
428
403
  .custom_tag {
429
- padding-left: 0.5rem; /* 8px */
430
- padding-right: 0.5rem; /* 8px */
431
- padding-top: 3px;
432
- padding-bottom: 3px;
433
- border-radius: 0.125rem; /* 2px */
434
- border-width: 0px;
404
+ --at-apply: px-2 py-[3px] rounded-sm border-0;
435
405
  }
436
406
 
437
407
  .custom_tag :deep(.ant-tag-close-icon) {
438
- color: rgb(22 93 255 / 0.6) /* #165dff */;
408
+ --at-apply: text-[#165dff] text-op-60;
439
409
  }
440
410
 
441
411
  .custom_tag :deep(.ant-tag-close-icon):hover {
442
- color: #165dff;
412
+ --at-apply: text-[#165dff] text-op-100;
443
413
  }
444
414
  </style>
@@ -285,20 +285,14 @@ function onAction(key: string, record?: API.PubBlackWhiteList): void {
285
285
 
286
286
  <style scoped>
287
287
  .page-black-white-list :deep(.ant-card.pro-table) {
288
- border-top-left-radius: 0;
289
- border-top-right-radius: 0;
288
+ --at-apply: rounded-t-none;
290
289
  }
291
290
 
292
291
  .page-black-white-list .status-mark {
293
- display: inline-block;
294
- width: 0.5rem; /* 8px */
295
- height: 0.5rem; /* 8px */
296
- background-color: #aeaeae;
297
- margin-right: 0.25rem; /* 4px */
298
- border-radius: 50%;
292
+ --at-apply: inline-block w-2 h-2 bg-[#aeaeae] mr-1 rounded-[50%];
299
293
  }
300
294
 
301
295
  .page-black-white-list .status-mark.active {
302
- background: #01d689;
296
+ --at-apply: [background:#01d689];
303
297
  }
304
298
  </style>
@@ -105,14 +105,7 @@ watch(() => setActiveStyle.value, () => {
105
105
 
106
106
  <style scoped>
107
107
  .item_ani {
108
- display: flex;
109
- flex-direction: column;
110
- background-color: var(--g-bg);
111
- border-width: 1px;
112
- border-color: var(--g-tabbar-tab-hover-bg);
113
- padding-top: 26px;
114
- border-radius: 0.5rem; /* 8px */
115
- border-style: solid;
108
+ --at-apply: flex flex-col bg-[color:var(--g-bg)] border border-[color:var(--g-tabbar-tab-hover-bg)] pt-[26px] rounded-lg border-solid;
116
109
  place-items: center center;
117
110
  }
118
111
 
@@ -121,7 +114,6 @@ watch(() => setActiveStyle.value, () => {
121
114
  }
122
115
 
123
116
  .custom_style :deep(.text-sm) {
124
- font-size: 0.75rem; /* 12px */
125
- line-height: 1rem; /* 16px */
117
+ --at-apply: text-xs;
126
118
  }
127
119
  </style>
@@ -178,8 +178,7 @@ function onAction(key: string, record?: API.shujuquanxianshituduixiang): void {
178
178
 
179
179
  <style scoped>
180
180
  .page-data-permission :deep(.ant-card.pro-table) {
181
- border-top-left-radius: 0;
182
- border-top-right-radius: 0;
181
+ --at-apply: rounded-t-none;
183
182
  }
184
183
 
185
184
  .page-data-permission :deep(.ant-form-item-label) {
@@ -188,18 +188,15 @@ function onAction(key: string, type: string, record?: API.PubGroup): void {
188
188
 
189
189
  <style scoped>
190
190
  .box_sh {
191
- --un-shadow: 0 1px 2px 0 rgb(0 0 0 / 3%), 0 1px 6px -1px rgb(0 0 0 / 2%),
192
- 0 2px 4px 0 rgb(0 0 0 / 2%);
193
- box-shadow: var(--un-ring-offset-shadow), var(--un-ring-shadow),
194
- var(--un-shadow);
191
+ --at-apply: shadow-[0_1px_2px_0_rgb(0_0_0_/_3%),0_1px_6px_-1px_rgb(0_0_0_/_2%),0_2px_4px_0_rgb(0_0_0_/_2%)];
195
192
  }
196
193
  .tabs_custom {
197
- height: 46px;
194
+ --at-apply: h-[46px];
198
195
  }
199
196
  .tabs_custom :deep(.ant-tabs-nav) {
200
- margin: 0;
197
+ --at-apply: m-0;
201
198
  }
202
199
  .tabs_custom :deep(.ant-tabs-nav .ant-tabs-nav-list) {
203
- padding-left: 1rem; /* 16px */
200
+ --at-apply: pl-4;
204
201
  }
205
202
  </style>
@@ -104,162 +104,83 @@ function clickHandle(item: Settings.menu['menuMode']) {
104
104
 
105
105
  <style scoped>
106
106
  .item {
107
- display: flex;
108
- flex-direction: column;
109
- cursor: pointer;
110
- border-width: 1px;
111
- border-color: var(--g-tabbar-tab-hover-bg);
112
- padding-top: 26px;
113
- border-radius: 0.5rem; /* 8px */
114
- border-style: solid;
107
+ --at-apply: flex flex-col cursor-pointer border border-[color:var(--g-tabbar-tab-hover-bg)] pt-[26px] rounded-lg border-solid;
115
108
  place-items: center center;
116
109
  background: linear-gradient(180deg, var(--g-bg) 0%, var(--g-bg) 100%);
117
110
  }
118
111
 
119
112
  .item .mode {
120
- position: relative;
121
- width: 4rem; /* 64px */
122
- height: 3rem; /* 48px */
123
- transition-property: color, background-color, border-color,
124
- text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter,
125
- backdrop-filter;
126
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
127
- transition-duration: 150ms;
113
+ --at-apply: relative w-16 h-12 transition;
128
114
  }
129
115
 
130
116
  .item .mode::before,
131
117
  .item .mode::after,
132
118
  .item .mode .mode-container {
133
- position: absolute;
134
- pointer-events: none;
135
- border-width: 0.15rem; /* 2.4px */
119
+ --at-apply: absolute pointer-events-none border-[0.15rem];
136
120
  }
137
121
 
138
122
  .item .mode::before {
139
- content: "";
140
- background-color: rgb(var(--ui-primary)) /* rgb(var(--ui-primary)) */;
123
+ --at-apply: content-empty bg-ui-primary;
141
124
  }
142
125
 
143
126
  .item .mode::after {
144
- content: "";
145
- background-color: rgb(var(--ui-primary) / 0.6) /* rgb(var(--ui-primary)) */;
127
+ --at-apply: content-empty bg-ui-primary/60;
146
128
  }
147
129
 
148
130
  .item .mode .mode-container {
149
- background-color: rgb(var(--ui-primary) / 0.2) /* rgb(var(--ui-primary)) */;
150
- border-style: dashed;
151
- border-color: rgb(var(--ui-primary));
131
+ --at-apply: bg-ui-primary/20 border-dashed border-ui-primary;
152
132
  }
153
133
 
154
134
  .item .mode .mode-container::before {
155
- content: "";
156
- position: absolute;
157
- width: 100%;
158
- height: 100%;
135
+ --at-apply: content-empty absolute w-full h-full;
159
136
  }
160
137
 
161
138
  .item .mode-side::before {
162
- top: 0.5rem; /* 8px */
163
- bottom: 0.5rem; /* 8px */
164
- left: 0.5rem; /* 8px */
165
- width: 0.5rem; /* 8px */
166
- border-top-left-radius: 0.25rem; /* 4px */
167
- border-bottom-left-radius: 0.25rem; /* 4px */
139
+ --at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
168
140
  }
169
141
 
170
142
  .item .mode-side::after {
171
- top: 0.5rem; /* 8px */
172
- bottom: 0.5rem; /* 8px */
173
- left: 1.125rem; /* 18px */
174
- width: 0.75rem; /* 12px */
143
+ --at-apply: top-2 bottom-2 left-4.5 w-3;
175
144
  }
176
145
 
177
146
  .item .mode-side .mode-container {
178
- top: 0.5rem; /* 8px */
179
- right: 0.5rem; /* 8px */
180
- bottom: 0.5rem; /* 8px */
181
- left: 2rem; /* 32px */
182
- border-top-right-radius: 0.25rem; /* 4px */
183
- border-bottom-right-radius: 0.25rem; /* 4px */
147
+ --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-8 rounded-tr-1 rounded-br-1;
184
148
  }
185
149
 
186
150
  .item .mode-head::before {
187
- top: 0.5rem; /* 8px */
188
- left: 0.5rem; /* 8px */
189
- right: 0.5rem; /* 8px */
190
- height: 0.5rem; /* 8px */
191
- border-top-left-radius: 0.25rem; /* 4px */
192
- border-top-right-radius: 0.25rem; /* 4px */
151
+ --at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
193
152
  }
194
153
 
195
154
  .item .mode-head::after {
196
- top: 1.125rem; /* 18px */
197
- left: 0.5rem; /* 8px */
198
- bottom: 0.5rem; /* 8px */
199
- width: 0.75rem; /* 12px */
200
- border-bottom-left-radius: 0.25rem; /* 4px */
155
+ --at-apply: top-4.5 left-2 bottom-2 w-3 rounded-bl-1;
201
156
  }
202
157
 
203
158
  .item .mode-head .mode-container {
204
- top: 1.125rem; /* 18px */
205
- right: 0.5rem; /* 8px */
206
- bottom: 0.5rem; /* 8px */
207
- left: 1.375rem; /* 22px */
208
- border-bottom-right-radius: 0.25rem; /* 4px */
159
+ --at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-5.5 rounded-br-1;
209
160
  }
210
161
 
211
162
  .item .mode-single::after {
212
- top: 0.5rem; /* 8px */
213
- left: 0.5rem; /* 8px */
214
- bottom: 0.5rem; /* 8px */
215
- width: 0.75rem; /* 12px */
216
- border-top-left-radius: 0.25rem; /* 4px */
217
- border-bottom-left-radius: 0.25rem; /* 4px */
163
+ --at-apply: top-2 left-2 bottom-2 w-3 rounded-tl-1 rounded-bl-1;
218
164
  }
219
165
 
220
166
  .item .mode-single .mode-container {
221
- top: 0.5rem; /* 8px */
222
- right: 0.5rem; /* 8px */
223
- bottom: 0.5rem; /* 8px */
224
- left: 1.375rem; /* 22px */
225
- border-top-right-radius: 0.25rem; /* 4px */
226
- border-bottom-right-radius: 0.25rem; /* 4px */
167
+ --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-5.5 rounded-tr-1 rounded-br-1;
227
168
  }
228
169
 
229
170
  .item .mode-only-side::before {
230
- top: 0.5rem; /* 8px */
231
- bottom: 0.5rem; /* 8px */
232
- left: 0.5rem; /* 8px */
233
- width: 0.5rem; /* 8px */
234
- border-top-left-radius: 0.25rem; /* 4px */
235
- border-bottom-left-radius: 0.25rem; /* 4px */
171
+ --at-apply: top-2 bottom-2 left-2 w-2 rounded-tl-1 rounded-bl-1;
236
172
  }
237
173
 
238
174
  .item .mode-only-side .mode-container {
239
- top: 0.5rem; /* 8px */
240
- right: 0.5rem; /* 8px */
241
- bottom: 0.5rem; /* 8px */
242
- left: 1.125rem; /* 18px */
243
- border-top-right-radius: 0.25rem; /* 4px */
244
- border-bottom-right-radius: 0.25rem; /* 4px */
175
+ --at-apply: inset-t-2 inset-r-2 inset-b-2 inset-l-4.5 rounded-tr-1 rounded-br-1;
245
176
  }
246
177
 
247
178
  .item .mode-only-head::before {
248
- top: 0.5rem; /* 8px */
249
- left: 0.5rem; /* 8px */
250
- right: 0.5rem; /* 8px */
251
- height: 0.5rem; /* 8px */
252
- border-top-left-radius: 0.25rem; /* 4px */
253
- border-top-right-radius: 0.25rem; /* 4px */
179
+ --at-apply: top-2 left-2 right-2 h-2 rounded-tl-1 rounded-tr-1;
254
180
  }
255
181
 
256
182
  .item .mode-only-head .mode-container {
257
- top: 1.125rem; /* 18px */
258
- right: 0.5rem; /* 8px */
259
- bottom: 0.5rem; /* 8px */
260
- left: 0.5rem; /* 8px */
261
- border-bottom-left-radius: 0.25rem; /* 4px */
262
- border-bottom-right-radius: 0.25rem; /* 4px */
183
+ --at-apply: inset-t-4.5 inset-r-2 inset-b-2 inset-l-2 rounded-bl-1 rounded-br-1;
263
184
  }
264
185
 
265
186
  .item .jb {
@@ -267,7 +188,7 @@ function clickHandle(item: Settings.menu['menuMode']) {
267
188
  }
268
189
 
269
190
  .item .jb .layout-demo {
270
- width: 70%;
191
+ --at-apply: w-70%;
271
192
  }
272
193
 
273
194
  .item-side .layout-demo {
@@ -225,15 +225,10 @@ function showDetailDrawer(record: API.PubLoginLogDto) {
225
225
 
226
226
  <style scoped>
227
227
  .status-mark {
228
- display: inline-block;
229
- width: 0.5rem; /* 8px */
230
- height: 0.5rem; /* 8px */
231
- background-color: #aeaeae;
232
- margin-right: 0.25rem; /* 4px */
233
- border-radius: 50%;
228
+ --at-apply: inline-block w-2 h-2 bg-[#aeaeae] mr-1 rounded-[50%];
234
229
  }
235
230
 
236
231
  .status-mark.active {
237
- background: #01d689;
232
+ --at-apply: [background:#01d689];
238
233
  }
239
234
  </style>
@@ -192,10 +192,7 @@ function showDetailDrawer(record: API.PubOperateLogDto) {
192
192
  <template #bodyCell="{ column, record }">
193
193
  <template v-if="column.dataIndex === 'success'">
194
194
  <div class="flex items-center">
195
- <i
196
- :data-active="record.success"
197
- class="inline-block w-2 h-2 bg-[#aeaeae] mr-1 rounded-[50%] data-[active]:[background:#01d689]"
198
- />
195
+ <i class="status-mark" :class="[{ active: record.success }]" />
199
196
  <span class="ml-4px">{{ record.success ? '正常' : '异常' }}</span>
200
197
  </div>
201
198
  </template>
@@ -219,3 +216,13 @@ function showDetailDrawer(record: API.PubOperateLogDto) {
219
216
  />
220
217
  </div>
221
218
  </template>
219
+
220
+ <style scoped>
221
+ .status-mark {
222
+ --at-apply: inline-block w-2 h-2 bg-[#aeaeae] mr-1 rounded-[50%];
223
+ }
224
+
225
+ .status-mark.active {
226
+ background: #01d689;
227
+ }
228
+ </style>