@robot-admin/naive-ui-components 0.17.0 → 0.17.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.
Files changed (179) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +12 -11
  3. package/README_EN.md +1 -0
  4. package/dist/C_AntV.css +105 -105
  5. package/dist/C_AntV2.cjs +3 -3
  6. package/dist/C_AntV2.js +3 -3
  7. package/dist/C_AudioPlayer.css +53 -53
  8. package/dist/C_AudioPlayer2.cjs +1 -1
  9. package/dist/C_AudioPlayer2.js +1 -1
  10. package/dist/C_Barcode.css +6 -6
  11. package/dist/C_Barcode2.cjs +1 -1
  12. package/dist/C_Barcode2.js +1 -1
  13. package/dist/C_Chat.css +269 -185
  14. package/dist/C_Chat2.cjs +1 -1
  15. package/dist/C_Chat2.js +1 -1
  16. package/dist/C_Code.css +26 -26
  17. package/dist/C_Code2.cjs +1 -1
  18. package/dist/C_Code2.js +1 -1
  19. package/dist/C_Draggable2.cjs +1 -1
  20. package/dist/C_Draggable2.js +1 -1
  21. package/dist/C_FilePreview.css +96 -57
  22. package/dist/C_FilePreview2.cjs +1 -1
  23. package/dist/C_FilePreview2.js +1 -1
  24. package/dist/C_FullCalendar.css +10 -11
  25. package/dist/C_FullCalendar2.cjs +1 -1
  26. package/dist/C_FullCalendar2.js +1 -1
  27. package/dist/C_GlobalSearch.css +140 -118
  28. package/dist/C_GlobalSearch2.cjs +1 -1
  29. package/dist/C_GlobalSearch2.js +1 -1
  30. package/dist/C_ImageCropper.css +10 -10
  31. package/dist/C_ImageCropper2.cjs +1 -1
  32. package/dist/C_ImageCropper2.js +1 -1
  33. package/dist/C_Login.css +79 -79
  34. package/dist/C_Login2.cjs +1 -1
  35. package/dist/C_Login2.js +1 -1
  36. package/dist/C_Map.css +10 -10
  37. package/dist/C_Map2.cjs +1 -1
  38. package/dist/C_Map2.js +1 -1
  39. package/dist/C_OrgChart.css +28 -4
  40. package/dist/C_OrgChart2.cjs +1 -1
  41. package/dist/C_OrgChart2.js +1 -1
  42. package/dist/C_QRCode2.cjs +1 -1
  43. package/dist/C_QRCode2.js +1 -1
  44. package/dist/C_Signature.css +15 -15
  45. package/dist/C_Signature2.cjs +1 -1
  46. package/dist/C_Signature2.js +1 -1
  47. package/dist/C_SplitPane.cjs +1 -1
  48. package/dist/C_SplitPane.css +231 -77
  49. package/dist/C_SplitPane.js +1 -1
  50. package/dist/C_SplitPane2.cjs +1 -1
  51. package/dist/C_SplitPane2.js +1 -1
  52. package/dist/C_Table.base.css +110 -117
  53. package/dist/C_Table.css +110 -117
  54. package/dist/C_Table.d.ts +1 -0
  55. package/dist/C_Tabs.css +18 -18
  56. package/dist/C_TagsView.css +51 -51
  57. package/dist/C_TagsView2.cjs +1 -1
  58. package/dist/C_TagsView2.js +1 -1
  59. package/dist/C_Transfer.css +93 -84
  60. package/dist/C_Transfer2.cjs +1 -1
  61. package/dist/C_Transfer2.js +1 -1
  62. package/dist/C_Tree.d.ts +1 -0
  63. package/dist/C_Upload.css +5 -5
  64. package/dist/C_Upload2.cjs +1 -1
  65. package/dist/C_Upload2.js +1 -1
  66. package/dist/C_VideoPlayer.css +20 -20
  67. package/dist/C_VideoPlayer2.cjs +4 -3
  68. package/dist/C_VideoPlayer2.js +4 -3
  69. package/dist/C_VtableGantt.css +44 -28
  70. package/dist/C_VtableGantt2.cjs +1 -1
  71. package/dist/C_VtableGantt2.js +1 -1
  72. package/dist/C_WaterFall.css +29 -29
  73. package/dist/C_WaterFall2.cjs +1 -1
  74. package/dist/C_WaterFall2.js +1 -1
  75. package/dist/C_WorkFlow.css +111 -111
  76. package/dist/C_WorkFlow2.cjs +1 -1
  77. package/dist/C_WorkFlow2.js +1 -1
  78. package/dist/constants3.d.cts +2 -2
  79. package/dist/constants3.d.ts +2 -2
  80. package/dist/constants4.d.cts +5 -5
  81. package/dist/constants4.d.ts +5 -5
  82. package/dist/constants5.d.cts +12 -15
  83. package/dist/constants5.d.ts +12 -15
  84. package/dist/data.d.cts +9 -9
  85. package/dist/data.d.ts +9 -9
  86. package/dist/data2.cjs +1 -1
  87. package/dist/data2.js +1 -1
  88. package/dist/helpers.cjs +1 -1
  89. package/dist/helpers.js +1 -1
  90. package/dist/index.d.ts +1 -0
  91. package/dist/index.vue.d.cts +4 -4
  92. package/dist/index.vue.d.ts +4 -4
  93. package/dist/index10.vue.d.cts +2 -2
  94. package/dist/index10.vue.d.ts +2 -2
  95. package/dist/index11.vue.d.cts +2 -2
  96. package/dist/index11.vue.d.ts +5 -5
  97. package/dist/index12.vue.d.cts +5 -5
  98. package/dist/index13.vue.d.ts +1 -1
  99. package/dist/index14.vue.d.cts +1 -1
  100. package/dist/index14.vue.d.ts +5 -5
  101. package/dist/index15.vue.d.cts +5 -5
  102. package/dist/index15.vue.d.ts +1 -1
  103. package/dist/index16.vue.d.cts +1 -1
  104. package/dist/index16.vue.d.ts +1 -1
  105. package/dist/index17.vue.d.cts +1 -1
  106. package/dist/index17.vue.d.ts +1 -1
  107. package/dist/index18.vue.d.cts +1 -1
  108. package/dist/index18.vue.d.ts +4 -4
  109. package/dist/index19.vue.d.cts +4 -4
  110. package/dist/index19.vue.d.ts +2 -2
  111. package/dist/index2.vue.d.cts +3 -3
  112. package/dist/index2.vue.d.ts +3 -3
  113. package/dist/index20.vue.d.cts +5 -1
  114. package/dist/index20.vue.d.ts +5 -1
  115. package/dist/index21.vue.d.cts +2 -2
  116. package/dist/index21.vue.d.ts +2 -2
  117. package/dist/index22.vue.d.cts +2 -2
  118. package/dist/index22.vue.d.ts +2 -2
  119. package/dist/index23.vue.d.cts +2 -2
  120. package/dist/index23.vue.d.ts +2 -2
  121. package/dist/index25.vue.d.cts +9 -4
  122. package/dist/index25.vue.d.ts +9 -4
  123. package/dist/index27.vue.d.cts +2 -2
  124. package/dist/index27.vue.d.ts +2 -2
  125. package/dist/index28.vue.d.cts +6 -2
  126. package/dist/index28.vue.d.ts +6 -2
  127. package/dist/index3.vue.d.cts +4 -4
  128. package/dist/index3.vue.d.ts +4 -4
  129. package/dist/index4.vue.d.cts +2 -2
  130. package/dist/index6.vue.d.ts +8 -5
  131. package/dist/index7.vue.d.cts +8 -5
  132. package/dist/index8.vue.d.ts +4 -6
  133. package/dist/index9.vue.d.cts +4 -6
  134. package/dist/index9.vue.d.ts +2 -2
  135. package/dist/mapUtils.d.cts +4 -4
  136. package/dist/mapUtils.d.ts +4 -4
  137. package/dist/style.css +1559 -1219
  138. package/dist/useCalendarEvents.d.cts +10 -0
  139. package/dist/useCalendarEvents.d.ts +10 -0
  140. package/dist/useCropperCore.d.cts +10 -10
  141. package/dist/useCropperCore.d.ts +10 -10
  142. package/dist/useDraggableLayout.d.cts +16 -14
  143. package/dist/useDraggableLayout.d.ts +16 -14
  144. package/dist/useEdgeInteraction.d.cts +4 -2
  145. package/dist/useEdgeInteraction.d.ts +4 -2
  146. package/dist/useFullscreen.d.cts +9 -3
  147. package/dist/useFullscreen.d.ts +9 -3
  148. package/dist/useGlobalSearch.d.cts +9 -4
  149. package/dist/useGlobalSearch.d.ts +9 -4
  150. package/dist/useInfiniteScroll.d.cts +6 -3
  151. package/dist/useInfiniteScroll.d.ts +6 -3
  152. package/dist/useQRCode.d.cts +2 -2
  153. package/dist/useQRCode.d.ts +2 -2
  154. package/dist/useSearchState.d.cts +2 -2
  155. package/dist/useSearchState.d.ts +2 -2
  156. package/dist/useSignatureHistory.d.cts +5 -5
  157. package/dist/useSignatureHistory.d.ts +5 -5
  158. package/dist/useSplitResize.d.cts +3 -3
  159. package/dist/useSplitResize.d.ts +3 -3
  160. package/dist/useTableQuery.cjs +3 -3
  161. package/dist/useTableQuery.d.cts +15 -5
  162. package/dist/useTableQuery.d.ts +15 -5
  163. package/dist/useTableQuery.js +3 -3
  164. package/dist/useTimeSelection.d.cts +2 -2
  165. package/dist/useTimeSelection.d.ts +2 -2
  166. package/dist/useWorkflowValidation.d.cts +8 -3
  167. package/dist/useWorkflowValidation.d.ts +8 -3
  168. package/dist/verification.d.cts +2 -2
  169. package/dist/verification.d.ts +2 -2
  170. package/docs/component-review-20261019.md +55 -0
  171. package/docs/components.en.md +4 -0
  172. package/docs/components.md +4 -0
  173. package/docs/guides/runtime-performance.md +38 -0
  174. package/docs/guides/split-pane.en.md +4 -0
  175. package/docs/guides/split-pane.md +4 -0
  176. package/docs/guides/table-density.md +26 -0
  177. package/docs/guides/transfer.md +11 -0
  178. package/docs/runtime-review-20261019.md +41 -0
  179. package/package.json +4 -2
@@ -69,7 +69,7 @@
69
69
  * 标签组件样式 - 精简版
70
70
  * =========================================== */
71
71
  /* --------- 标签视图容器 --------- */
72
- .tags-view-container[data-v-83599594] {
72
+ .tags-view-container[data-v-bd2a9250] {
73
73
  border-bottom: 1px solid var(--color-border);
74
74
  padding: 8px 16px 0;
75
75
  position: relative;
@@ -77,14 +77,14 @@
77
77
  }
78
78
 
79
79
  /* --------- 滚动轨道容器 --------- */
80
- .tags-track[data-v-83599594] {
80
+ .tags-track[data-v-bd2a9250] {
81
81
  width: 100%;
82
82
  overflow: hidden;
83
83
  position: relative;
84
84
  }
85
85
 
86
86
  /* --------- 滚动容器 --------- */
87
- .tags-container[data-v-83599594] {
87
+ .tags-container[data-v-bd2a9250] {
88
88
  display: flex;
89
89
  overflow-x: auto;
90
90
  overflow-y: hidden;
@@ -94,12 +94,12 @@
94
94
  align-items: center;
95
95
  min-height: 40px;
96
96
  }
97
- .tags-container[data-v-83599594]::-webkit-scrollbar {
97
+ .tags-container[data-v-bd2a9250]::-webkit-scrollbar {
98
98
  display: none;
99
99
  }
100
100
 
101
101
  /* --------- 现代化标签样式 --------- */
102
- .n-tag[data-v-83599594] {
102
+ .n-tag[data-v-bd2a9250] {
103
103
  position: relative;
104
104
  display: inline-flex;
105
105
  align-items: center;
@@ -116,7 +116,7 @@
116
116
  white-space: nowrap;
117
117
  /* 内部高光效果 */
118
118
  }
119
- .n-tag[data-v-83599594]::before {
119
+ .n-tag[data-v-bd2a9250]::before {
120
120
  content: "";
121
121
  position: absolute;
122
122
  top: 1px;
@@ -128,67 +128,67 @@
128
128
  opacity: 0.5;
129
129
  transition: opacity 0.22s ease;
130
130
  }
131
- .n-tag[data-v-83599594] {
131
+ .n-tag[data-v-bd2a9250] {
132
132
  /* --------- 悬停效果 --------- */
133
133
  }
134
- .n-tag[data-v-83599594]:hover:not([type=primary]) {
134
+ .n-tag[data-v-bd2a9250]:hover:not([type=primary]) {
135
135
  color: var(--color-primary) !important;
136
136
  border-color: var(--color-primary);
137
137
  transform: scale(1.02);
138
138
  }
139
- .n-tag[data-v-83599594]:hover:not([type=primary])::before {
139
+ .n-tag[data-v-bd2a9250]:hover:not([type=primary])::before {
140
140
  opacity: 0.8;
141
141
  }
142
- .n-tag[data-v-83599594]:hover:not([type=primary]) .c-icon,
143
- .n-tag[data-v-83599594]:hover:not([type=primary]) [class*='c-icon'] {
142
+ .n-tag[data-v-bd2a9250]:hover:not([type=primary]) .c-icon,
143
+ .n-tag[data-v-bd2a9250]:hover:not([type=primary]) [class*='c-icon'] {
144
144
  color: var(--color-primary) !important;
145
145
  }
146
- .n-tag:hover:not([type=primary]) i[data-v-83599594],
147
- .n-tag:hover:not([type=primary]) .icon[data-v-83599594] {
146
+ .n-tag:hover:not([type=primary]) i[data-v-bd2a9250],
147
+ .n-tag:hover:not([type=primary]) .icon[data-v-bd2a9250] {
148
148
  color: var(--color-primary) !important;
149
149
  }
150
- .n-tag[data-v-83599594]:hover:not([type=primary]) .n-tag__close {
150
+ .n-tag[data-v-bd2a9250]:hover:not([type=primary]) .n-tag__close {
151
151
  color: var(--color-primary) !important;
152
152
  opacity: 0.8;
153
153
  transform: scale(1.05);
154
154
  }
155
- .n-tag[data-v-83599594] {
155
+ .n-tag[data-v-bd2a9250] {
156
156
  /* --------- 激活状态 --------- */
157
157
  }
158
- .n-tag[type=primary][data-v-83599594] {
158
+ .n-tag[type=primary][data-v-bd2a9250] {
159
159
  background: var(--tag-active-bg, rgba(32, 128, 240, 0.08)) !important;
160
160
  color: var(--color-primary) !important;
161
161
  border-color: var(--color-primary) !important;
162
162
  font-weight: 600;
163
163
  transform: scale(1.02);
164
164
  }
165
- .n-tag[type=primary][data-v-83599594]::before {
165
+ .n-tag[type=primary][data-v-bd2a9250]::before {
166
166
  opacity: 0.6;
167
167
  }
168
- .n-tag[type=primary][data-v-83599594] .n-tag__content,
169
- .n-tag[type=primary][data-v-83599594] *:not(.n-tag__close) {
168
+ .n-tag[type=primary][data-v-bd2a9250] .n-tag__content,
169
+ .n-tag[type=primary][data-v-bd2a9250] *:not(.n-tag__close) {
170
170
  color: var(--color-primary) !important;
171
171
  }
172
- .n-tag[type=primary][data-v-83599594] .c-icon,
173
- .n-tag[type=primary][data-v-83599594] [class*='c-icon'] {
172
+ .n-tag[type=primary][data-v-bd2a9250] .c-icon,
173
+ .n-tag[type=primary][data-v-bd2a9250] [class*='c-icon'] {
174
174
  color: var(--color-primary) !important;
175
175
  }
176
- .n-tag[type=primary] i[data-v-83599594],
177
- .n-tag[type=primary] .icon[data-v-83599594] {
176
+ .n-tag[type=primary] i[data-v-bd2a9250],
177
+ .n-tag[type=primary] .icon[data-v-bd2a9250] {
178
178
  color: var(--color-primary) !important;
179
179
  }
180
- .n-tag[type=primary][data-v-83599594]:hover {
180
+ .n-tag[type=primary][data-v-bd2a9250]:hover {
181
181
  background: var(--tag-active-hover-bg, rgba(32, 128, 240, 0.12)) !important;
182
182
  transform: scale(1.03);
183
183
  }
184
- .n-tag[type=primary][data-v-83599594] .n-tag__close {
184
+ .n-tag[type=primary][data-v-bd2a9250] .n-tag__close {
185
185
  color: var(--color-primary) !important;
186
186
  opacity: 0.8;
187
187
  }
188
- .n-tag[data-v-83599594] {
188
+ .n-tag[data-v-bd2a9250] {
189
189
  /* --------- 关闭按钮 --------- */
190
190
  }
191
- .n-tag[data-v-83599594] .n-tag__close {
191
+ .n-tag[data-v-bd2a9250] .n-tag__close {
192
192
  width: 16px !important;
193
193
  height: 16px !important;
194
194
  border-radius: 8px !important;
@@ -203,10 +203,10 @@
203
203
  background: rgba(0, 0, 0, 0.02) !important;
204
204
  border: 1px solid transparent;
205
205
  }
206
- .n-tag[data-v-83599594] .n-tag__close:not(:hover) {
206
+ .n-tag[data-v-bd2a9250] .n-tag__close:not(:hover) {
207
207
  transform: scale(0.9);
208
208
  }
209
- .n-tag[data-v-83599594] .n-tag__close:hover {
209
+ .n-tag[data-v-bd2a9250] .n-tag__close:hover {
210
210
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.1), rgba(239, 68, 68, 0.08)) !important;
211
211
  border-color: rgba(239, 68, 68, 0.15) !important;
212
212
  color: #ef4444 !important;
@@ -214,13 +214,13 @@
214
214
  transform: scale(0.6) !important;
215
215
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.2) !important;
216
216
  }
217
- .n-tag[data-v-83599594] .n-tag__close:active {
217
+ .n-tag[data-v-bd2a9250] .n-tag__close:active {
218
218
  transform: scale(0.95) !important;
219
219
  transition-duration: 0.1s !important;
220
220
  }
221
221
 
222
222
  /* --------- C_Icon --------- */
223
- [data-v-83599594] .c-icon {
223
+ [data-v-bd2a9250] .c-icon {
224
224
  margin-right: 4px;
225
225
  font-size: 12px;
226
226
  transition: color 0.22s ease;
@@ -230,63 +230,63 @@
230
230
 
231
231
  /* --------- 响应式 --------- */
232
232
  @media (max-width: 768px) {
233
- .tags-view-container[data-v-83599594] {
233
+ .tags-view-container[data-v-bd2a9250] {
234
234
  padding: 6px 12px 0;
235
235
  }
236
- .n-tag[data-v-83599594] {
236
+ .n-tag[data-v-bd2a9250] {
237
237
  height: 26px;
238
238
  padding: 0 10px;
239
239
  font-size: 11px;
240
240
  margin-right: 3px;
241
241
  border-radius: 13px;
242
242
  }
243
- .n-tag[data-v-83599594] .n-tag__close {
243
+ .n-tag[data-v-bd2a9250] .n-tag__close {
244
244
  width: 14px;
245
245
  height: 14px;
246
246
  font-size: 11px;
247
247
  margin-left: 4px;
248
248
  }
249
- .tags-container[data-v-83599594] {
249
+ .tags-container[data-v-bd2a9250] {
250
250
  padding: 0 12px;
251
251
  min-height: 36px;
252
252
  }
253
- [data-v-83599594] .c-icon {
253
+ [data-v-bd2a9250] .c-icon {
254
254
  font-size: 11px;
255
255
  margin-right: 3px;
256
256
  }
257
257
  }
258
258
  /* --------- 暗色主题 --------- */
259
- [data-theme=dark] .n-tag[data-v-83599594] .n-tag__close {
259
+ [data-theme=dark] .n-tag[data-v-bd2a9250] .n-tag__close {
260
260
  background: rgba(255, 255, 255, 0.03) !important;
261
261
  }
262
- [data-theme=dark] .n-tag[data-v-83599594] .n-tag__close:hover {
262
+ [data-theme=dark] .n-tag[data-v-bd2a9250] .n-tag__close:hover {
263
263
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.12), rgba(239, 68, 68, 0.1)) !important;
264
264
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25) !important;
265
265
  }
266
266
 
267
267
  /* layer: icons */
268
- .i-mdi\:align-horizontal-left[data-v-83599594]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 22H2V2h2zM22 7H6v3h16zm-6 7H6v3h10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
269
- .i-mdi\:align-horizontal-right[data-v-83599594]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 2h2v20h-2zM2 10h16V7H2zm6 7h10v-3H8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
270
- .i-mdi\:arrow-left-right-bold[data-v-83599594]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 14v4l-6-6l6-6v4h8V6l6 6l-6 6v-4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
271
- .i-mdi\:close[data-v-83599594]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
272
- .i-mdi\:tally-mark-5[data-v-83599594]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 10.73V19h-2v-7.64L15 12v7h-2v-6.38l-2 .64V19H9v-5.11l-2 .61V19H5v-3.85l-2.43.77L2 14l3-.95V5h2v7.42l2-.63V5h2v6.16l2-.63V5h2v4.9l2-.64V5h2v3.63L21 8l.57 1.92z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
268
+ .i-mdi\:align-horizontal-left[data-v-bd2a9250]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M4 22H2V2h2zM22 7H6v3h16zm-6 7H6v3h10z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
269
+ .i-mdi\:align-horizontal-right[data-v-bd2a9250]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M20 2h2v20h-2zM2 10h16V7H2zm6 7h10v-3H8z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
270
+ .i-mdi\:arrow-left-right-bold[data-v-bd2a9250]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M8 14v4l-6-6l6-6v4h8V6l6 6l-6 6v-4z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
271
+ .i-mdi\:close[data-v-bd2a9250]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
272
+ .i-mdi\:tally-mark-5[data-v-bd2a9250]{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' d='M19 10.73V19h-2v-7.64L15 12v7h-2v-6.38l-2 .64V19H9v-5.11l-2 .61V19H5v-3.85l-2.43.77L2 14l3-.95V5h2v7.42l2-.63V5h2v6.16l2-.63V5h2v4.9l2-.64V5h2v3.63L21 8l.57 1.92z'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em;}
273
273
  /* layer: shortcuts */
274
- .container[data-v-83599594]{width:100%;}
274
+ .container[data-v-bd2a9250]{width:100%;}
275
275
  @media (min-width: 640px){
276
- .container[data-v-83599594]{max-width:640px;}
276
+ .container[data-v-bd2a9250]{max-width:640px;}
277
277
  }
278
278
  @media (min-width: 768px){
279
- .container[data-v-83599594]{max-width:768px;}
279
+ .container[data-v-bd2a9250]{max-width:768px;}
280
280
  }
281
281
  @media (min-width: 1024px){
282
- .container[data-v-83599594]{max-width:1024px;}
282
+ .container[data-v-bd2a9250]{max-width:1024px;}
283
283
  }
284
284
  @media (min-width: 1280px){
285
- .container[data-v-83599594]{max-width:1280px;}
285
+ .container[data-v-bd2a9250]{max-width:1280px;}
286
286
  }
287
287
  @media (min-width: 1536px){
288
- .container[data-v-83599594]{max-width:1536px;}
288
+ .container[data-v-bd2a9250]{max-width:1536px;}
289
289
  }
290
290
  /* layer: default */
291
- .inline[data-v-83599594]{display:inline;}
292
- .block[data-v-83599594]{display:block;}
291
+ .inline[data-v-bd2a9250]{display:inline;}
292
+ .block[data-v-bd2a9250]{display:block;}
@@ -1 +1 @@
1
- require(`./chunk.cjs`);const e=require(`./C_Icon2.cjs`),t=require(`./export-helper.cjs`);let n=require(`vue`),r=require(`naive-ui`),i=require(`vue-router`);const a=e=>{if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.path==`string`&&t.path.startsWith(`/`)&&!t.path.startsWith(`//`)&&typeof t.title==`string`},o=e=>{if(!(!e||typeof e!=`object`||Array.isArray(e)))return Object.fromEntries(Object.entries(e).filter(([e,t])=>![`__proto__`,`prototype`,`constructor`].includes(e)&&(e!==`affix`||typeof t==`boolean`)))};function s(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.flatMap(e=>a(e)?[{path:e.path,title:e.title,originalTitle:typeof e.originalTitle==`string`?e.originalTitle:void 0,icon:typeof e.icon==`string`?e.icon:void 0,meta:o(e.meta)}]:[]):[]}catch{return[]}}function c(e={}){let{persistKey:t=`__tags_view_list__`,homePath:r=`/home`}=e,i=()=>{if(!t)return[];try{return s(localStorage.getItem(t))}catch{return[]}},a=e=>{if(t)try{localStorage.setItem(t,JSON.stringify(e))}catch{}},o=(0,n.ref)(i()),c=(0,n.ref)(``),l=()=>a(o.value),u=e=>{e?o.value=e:o.value=[...new Map(o.value.map(e=>[e.path,e])).values()],l()},d=e=>{c.value=e};return{tagsViewList:o,activeTag:c,homePath:r,initTags:u,setActiveTag:d,addTag:e=>{let t=o.value.findIndex(t=>t.path===e.path);if(t===-1)o.value.push(e);else{let n=o.value[t];(n.title!==e.title||!n.originalTitle)&&(n.title=e.title,n.originalTitle=e.originalTitle||n.originalTitle)}d(e.path),l()},removeTag:e=>{if(e>=0&&e<o.value.length){let t=o.value.splice(e,1)[0]?.path??null;return l(),t}return null},removeOtherTags:e=>{e===0?o.value=[o.value[0]].filter(Boolean):o.value=[o.value[0],o.value[e]].filter(Boolean),l()},removeLeftTags:e=>{o.value=[o.value[0],...o.value.slice(e)],l()},removeRightTags:e=>{o.value=o.value.slice(0,e+1),l()},removeAllTags:()=>{o.value=o.value.filter(e=>e.meta?.affix),l()}}}const l={class:`tags-view-container`},u=(0,n.defineComponent)({name:`C_TagsView`,__name:`index`,props:{labelFormatter:{},homePath:{default:`/home`},homeTitle:{default:`首页`},homeIcon:{default:`mdi:home`},persistKey:{default:`__tags_view_list__`},contextMenuLabels:{default:()=>({close:`关闭`,closeOthers:`关闭其他`,closeLeft:`关闭左侧`,closeRight:`关闭右侧`,closeAll:`关闭所有`})},tagsViewOptions:{}},emits:[`close`,`closeAll`],setup(t,{expose:a,emit:o}){let s=t,u=o,d=(0,i.useRoute)(),f=(0,i.useRouter)(),p=c(s.tagsViewOptions??{persistKey:s.persistKey,homePath:s.homePath});if(p.tagsViewList.value.length>0&&s.labelFormatter){let e=f.getRoutes(),t=p.tagsViewList.value.map(t=>{let n=e.find(e=>e.path===t.path),r=t.originalTitle||n?.meta?.title||t.title;return{...t,originalTitle:r,title:s.labelFormatter(r)}});p.initTags(t)}let m=e=>s.labelFormatter?s.labelFormatter(e):e,h=(0,n.ref)(!1),g=(0,n.ref)(0),_=(0,n.ref)(0),v=(0,n.ref)(null),y=(0,n.ref)(-1),b=(0,n.ref)(),x=(0,n.ref)(),S=e=>e.path===d.path,C=e=>e.meta?.affix,w=e=>{let t=x.value;t&&(e.preventDefault(),t.scrollTo({left:t.scrollLeft+e.deltaY,behavior:`smooth`}))},T=e=>{(0,n.nextTick)(()=>{let t=[...x.value?.querySelectorAll(`[data-path]`)??[]].find(t=>t.dataset.path===e);t&&t.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`center`})})},E=e=>{e.path!==d.path&&f.push(e.path).catch(()=>void 0),T(e.path)},D=(e,t)=>{if(C(e))return;let n=S(e),r=p.tagsViewList.value.length;if(p.removeTag(t),n){let e=p.tagsViewList.value,n=t===r-1,i;i=n?e[t-1]?.path||s.homePath:e[e.length-1]?.path||s.homePath,f.push(i).catch(()=>void 0),u(`close`,i)}},O=(e,t,n)=>{e.preventDefault(),v.value=t,y.value=n,h.value=!0,g.value=e.clientX,_.value=e.clientY},k=()=>h.value=!1,A=(0,n.computed)(()=>{let e=s.contextMenuLabels;return[{type:`option`,label:e.close??`关闭`,key:`close`,disabled:C(v.value),icon:()=>(0,n.h)(`span`,{class:`i-mdi:close`})},{type:`option`,label:e.closeOthers??`关闭其他`,key:`closeOthers`,icon:()=>(0,n.h)(`span`,{class:`i-mdi:arrow-left-right-bold`})},{type:`option`,label:e.closeLeft??`关闭左侧`,key:`closeLeft`,icon:()=>(0,n.h)(`span`,{class:`i-mdi:align-horizontal-left`})},{type:`option`,label:e.closeRight??`关闭右侧`,key:`closeRight`,icon:()=>(0,n.h)(`span`,{class:`i-mdi:align-horizontal-right`})},{type:`option`,label:e.closeAll??`关闭所有`,key:`closeAll`,icon:()=>(0,n.h)(`span`,{class:`i-mdi:tally-mark-5`})}]}),j=e=>{if(!(!v.value||y.value===-1)){switch(e){case`close`:D(v.value,y.value);break;case`closeOthers`:p.removeOtherTags(y.value);break;case`closeLeft`:p.removeLeftTags(y.value);break;case`closeRight`:p.removeRightTags(y.value);break;case`closeAll`:p.removeAllTags(),f.push(s.homePath).catch(()=>void 0),u(`closeAll`);break}k()}};return(0,n.watch)(()=>d.path,e=>{let t=e===s.homePath?s.homeTitle:d.meta.title||`Unnamed Page`;p.addTag({path:e,originalTitle:t,title:m(t),icon:e===s.homePath?s.homeIcon:d.meta.icon,meta:{affix:d.meta.affix}}),p.setActiveTag(e),T(e)},{immediate:!0}),a({tags:p,scrollToTag:T}),(t,i)=>{let a=r.NTag,o=r.NDropdown;return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,l,[(0,n.createElementVNode)(`div`,{class:`tags-track`,ref_key:`tagsTrack`,ref:b,onWheel:w},[(0,n.createElementVNode)(`div`,{class:`tags-container`,ref_key:`tagsContainer`,ref:x},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(p).tagsViewList.value,(t,r)=>((0,n.openBlock)(),(0,n.createBlock)(a,{key:t.path,type:S(t)?`primary`:`default`,closable:!C(t),"data-path":t.path,onClose:(0,n.withModifiers)(e=>D(t,r),[`stop`]),onClick:e=>E(t),onContextmenu:(0,n.withModifiers)(e=>O(e,t,r),[`prevent`])},{icon:(0,n.withCtx)(()=>[t.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(e.t),{key:0,name:t.icon,size:12},null,8,[`name`])):(0,n.createCommentVNode)(`v-if`,!0)]),default:(0,n.withCtx)(()=>[(0,n.createTextVNode)(` `+(0,n.toDisplayString)(t.title),1)]),_:2},1032,[`type`,`closable`,`data-path`,`onClose`,`onClick`,`onContextmenu`]))),128))],512)],544),h.value?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,show:h.value,options:A.value,x:g.value,y:_.value,onClickoutside:k,onSelect:j},null,8,[`show`,`options`,`x`,`y`])):(0,n.createCommentVNode)(`v-if`,!0)])}}});var d=t.t(u,[[`__scopeId`,`data-v-83599594`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
1
+ require(`./chunk.cjs`);const e=require(`./C_Icon2.cjs`),t=require(`./export-helper.cjs`);let n=require(`vue`),r=require(`naive-ui`),i=require(`vue-router`);const a=e=>{if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.path==`string`&&t.path.startsWith(`/`)&&!t.path.startsWith(`//`)&&typeof t.title==`string`},o=e=>{if(!(!e||typeof e!=`object`||Array.isArray(e)))return Object.fromEntries(Object.entries(e).filter(([e,t])=>![`__proto__`,`prototype`,`constructor`].includes(e)&&(e!==`affix`||typeof t==`boolean`)))};function s(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.flatMap(e=>a(e)?[{path:e.path,title:e.title,originalTitle:typeof e.originalTitle==`string`?e.originalTitle:void 0,icon:typeof e.icon==`string`?e.icon:void 0,meta:o(e.meta)}]:[]):[]}catch{return[]}}function c(e={}){let{persistKey:t=`__tags_view_list__`,homePath:r=`/home`}=e,i=()=>{if(!t)return[];try{return s(localStorage.getItem(t))}catch{return[]}},a=e=>{if(t)try{localStorage.setItem(t,JSON.stringify(e))}catch{}},o=(0,n.ref)(i()),c=(0,n.ref)(``),l=()=>a(o.value),u=e=>{e?o.value=e:o.value=[...new Map(o.value.map(e=>[e.path,e])).values()],l()},d=e=>{c.value=e};return{tagsViewList:o,activeTag:c,homePath:r,initTags:u,setActiveTag:d,addTag:e=>{let t=o.value.findIndex(t=>t.path===e.path);if(t===-1)o.value.push(e);else{let n=o.value[t];(n.title!==e.title||!n.originalTitle)&&(n.title=e.title,n.originalTitle=e.originalTitle||n.originalTitle)}d(e.path),l()},removeTag:e=>{if(e>=0&&e<o.value.length){let t=o.value.splice(e,1)[0]?.path??null;return l(),t}return null},removeOtherTags:e=>{o.value=o.value.filter((t,n)=>n===0||t.meta?.affix||n===e),l()},removeLeftTags:e=>{o.value=o.value.filter((t,n)=>n===0||t.meta?.affix||n>=e),l()},removeRightTags:e=>{o.value=o.value.filter((t,n)=>t.meta?.affix||n<=e),l()},removeAllTags:()=>{o.value=o.value.filter(e=>e.meta?.affix),l()}}}const l={class:`tags-view-container`},u=(0,n.defineComponent)({name:`C_TagsView`,__name:`index`,props:{labelFormatter:{},homePath:{default:`/home`},homeTitle:{default:`首页`},homeIcon:{default:`mdi:home`},persistKey:{default:`__tags_view_list__`},contextMenuLabels:{default:()=>({close:`关闭`,closeOthers:`关闭其他`,closeLeft:`关闭左侧`,closeRight:`关闭右侧`,closeAll:`关闭所有`})},tagsViewOptions:{}},emits:[`close`,`closeAll`],setup(t,{expose:a,emit:o}){let s=t,u=o,d=(0,i.useRoute)(),f=(0,i.useRouter)(),p=c(s.tagsViewOptions??{persistKey:s.persistKey,homePath:s.homePath});if(p.tagsViewList.value.length>0&&s.labelFormatter){let e=f.getRoutes(),t=p.tagsViewList.value.map(t=>{let n=e.find(e=>e.path===t.path),r=t.originalTitle||n?.meta?.title||t.title;return{...t,originalTitle:r,title:s.labelFormatter(r)}});p.initTags(t)}let m=e=>s.labelFormatter?s.labelFormatter(e):e,h=()=>{let e=d.path===s.homePath,t=e?s.homeTitle:d.meta.title||`Unnamed Page`;return{path:d.path,originalTitle:t,title:m(t),icon:e?s.homeIcon:d.meta.icon,meta:{affix:d.meta.affix}}},g=(0,n.ref)(!1),_=(0,n.ref)(0),v=(0,n.ref)(0),y=(0,n.ref)(null),b=(0,n.ref)(),x=(0,n.ref)(),S=e=>e.path===d.path,C=e=>e.meta?.affix,w=e=>{let t=x.value;t&&(e.preventDefault(),t.scrollTo({left:t.scrollLeft+e.deltaY,behavior:`smooth`}))},T=e=>{(0,n.nextTick)(()=>{let t=[...x.value?.querySelectorAll(`[data-path]`)??[]].find(t=>t.dataset.path===e);t&&t.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`center`})})},E=e=>{e.path!==d.path&&f.push(e.path).catch(()=>void 0),T(e.path)},D=0,O=!1,k=async e=>{try{let t=await f.push(e);return!(0,i.isNavigationFailure)(t)||(0,i.isNavigationFailure)(t,i.NavigationFailureType.duplicated)}catch{return!1}},A=async(e,t,n=!1)=>{let r=++D;if((n||!e.some(e=>e.path===d.path))&&!await k(t)||O||r!==D)return!1;let i=p.tagsViewList.value.find(e=>e.path===d.path)??h();return p.initTags(e.some(e=>e.path===i.path)?e:[...e,i]),p.setActiveTag(d.path),T(d.path),!0},j=async e=>{if(C(e))return;let t=p.tagsViewList.value,n=t.findIndex(t=>t.path===e.path);if(n===-1)return;let r=S(e),i=t.filter(t=>t.path!==e.path),a=n===t.length-1?i[n-1]?.path||s.homePath:i[i.length-1]?.path||s.homePath;await A(i,a)&&r&&u(`close`,a)};(0,n.onBeforeUnmount)(()=>{O=!0,D+=1});let M=(e,t)=>{e.preventDefault(),y.value=t,g.value=!0,_.value=e.clientX,v.value=e.clientY},N=()=>g.value=!1,P=(0,n.computed)(()=>{let e=s.contextMenuLabels;return[{type:`option`,label:e.close??`关闭`,key:`close`,disabled:C(y.value),icon:()=>(0,n.h)(`span`,{class:`i-mdi:close`})},{type:`option`,label:e.closeOthers??`关闭其他`,key:`closeOthers`,icon:()=>(0,n.h)(`span`,{class:`i-mdi:arrow-left-right-bold`})},{type:`option`,label:e.closeLeft??`关闭左侧`,key:`closeLeft`,icon:()=>(0,n.h)(`span`,{class:`i-mdi:align-horizontal-left`})},{type:`option`,label:e.closeRight??`关闭右侧`,key:`closeRight`,icon:()=>(0,n.h)(`span`,{class:`i-mdi:align-horizontal-right`})},{type:`option`,label:e.closeAll??`关闭所有`,key:`closeAll`,icon:()=>(0,n.h)(`span`,{class:`i-mdi:tally-mark-5`})}]}),F=async e=>{let t=y.value,n=p.tagsViewList.value,r=n.findIndex(e=>e.path===t?.path);if(N(),!t||r===-1)return;if(e===`close`){await j(t);return}let i=n.filter((t,n)=>t.meta?.affix?!0:e===`closeOthers`?n===0||n===r:e===`closeLeft`?n===0||n>=r:e===`closeRight`?n<=r:e!==`closeAll`);[`closeOthers`,`closeLeft`,`closeRight`,`closeAll`].includes(e)&&await A(i,e===`closeAll`?s.homePath:t.path,e===`closeAll`)&&e===`closeAll`&&u(`closeAll`)};return(0,n.watch)(()=>d.path,e=>{p.addTag(h()),p.setActiveTag(e),T(e)},{immediate:!0}),a({tags:p,scrollToTag:T}),(t,i)=>{let a=r.NTag,o=r.NDropdown;return(0,n.openBlock)(),(0,n.createElementBlock)(`div`,l,[(0,n.createElementVNode)(`div`,{class:`tags-track`,ref_key:`tagsTrack`,ref:b,onWheel:w},[(0,n.createElementVNode)(`div`,{class:`tags-container`,ref_key:`tagsContainer`,ref:x},[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)((0,n.unref)(p).tagsViewList.value,t=>((0,n.openBlock)(),(0,n.createBlock)(a,{key:t.path,type:S(t)?`primary`:`default`,closable:!C(t),"data-path":t.path,onClose:(0,n.withModifiers)(e=>j(t),[`stop`]),onClick:e=>E(t),onContextmenu:(0,n.withModifiers)(e=>M(e,t),[`prevent`])},{icon:(0,n.withCtx)(()=>[t.icon?((0,n.openBlock)(),(0,n.createBlock)((0,n.unref)(e.t),{key:0,name:t.icon,size:12},null,8,[`name`])):(0,n.createCommentVNode)(`v-if`,!0)]),default:(0,n.withCtx)(()=>[(0,n.createTextVNode)(` `+(0,n.toDisplayString)(t.title),1)]),_:2},1032,[`type`,`closable`,`data-path`,`onClose`,`onClick`,`onContextmenu`]))),128))],512)],544),g.value?((0,n.openBlock)(),(0,n.createBlock)(o,{key:0,show:g.value,options:P.value,x:_.value,y:v.value,onClickoutside:N,onSelect:F},null,8,[`show`,`options`,`x`,`y`])):(0,n.createCommentVNode)(`v-if`,!0)])}}});var d=t.t(u,[[`__scopeId`,`data-v-bd2a9250`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
@@ -1 +1 @@
1
- import{t as e}from"./C_Icon2.js";import{t}from"./export-helper.js";import{Fragment as n,computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,defineComponent as l,h as u,nextTick as d,openBlock as f,ref as p,renderList as m,resolveComponent as h,toDisplayString as g,unref as _,watch as v,withCtx as y,withModifiers as b}from"vue";import{NDropdown as x,NTag as S}from"naive-ui";import{useRoute as C,useRouter as w}from"vue-router";const T=e=>{if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.path==`string`&&t.path.startsWith(`/`)&&!t.path.startsWith(`//`)&&typeof t.title==`string`},E=e=>{if(!(!e||typeof e!=`object`||Array.isArray(e)))return Object.fromEntries(Object.entries(e).filter(([e,t])=>![`__proto__`,`prototype`,`constructor`].includes(e)&&(e!==`affix`||typeof t==`boolean`)))};function D(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.flatMap(e=>T(e)?[{path:e.path,title:e.title,originalTitle:typeof e.originalTitle==`string`?e.originalTitle:void 0,icon:typeof e.icon==`string`?e.icon:void 0,meta:E(e.meta)}]:[]):[]}catch{return[]}}function O(e={}){let{persistKey:t=`__tags_view_list__`,homePath:n=`/home`}=e,r=()=>{if(!t)return[];try{return D(localStorage.getItem(t))}catch{return[]}},i=e=>{if(t)try{localStorage.setItem(t,JSON.stringify(e))}catch{}},a=p(r()),o=p(``),s=()=>i(a.value),c=e=>{e?a.value=e:a.value=[...new Map(a.value.map(e=>[e.path,e])).values()],s()},l=e=>{o.value=e};return{tagsViewList:a,activeTag:o,homePath:n,initTags:c,setActiveTag:l,addTag:e=>{let t=a.value.findIndex(t=>t.path===e.path);if(t===-1)a.value.push(e);else{let n=a.value[t];(n.title!==e.title||!n.originalTitle)&&(n.title=e.title,n.originalTitle=e.originalTitle||n.originalTitle)}l(e.path),s()},removeTag:e=>{if(e>=0&&e<a.value.length){let t=a.value.splice(e,1)[0]?.path??null;return s(),t}return null},removeOtherTags:e=>{e===0?a.value=[a.value[0]].filter(Boolean):a.value=[a.value[0],a.value[e]].filter(Boolean),s()},removeLeftTags:e=>{a.value=[a.value[0],...a.value.slice(e)],s()},removeRightTags:e=>{a.value=a.value.slice(0,e+1),s()},removeAllTags:()=>{a.value=a.value.filter(e=>e.meta?.affix),s()}}}const k={class:`tags-view-container`};var A=t(l({name:`C_TagsView`,__name:`index`,props:{labelFormatter:{},homePath:{default:`/home`},homeTitle:{default:`首页`},homeIcon:{default:`mdi:home`},persistKey:{default:`__tags_view_list__`},contextMenuLabels:{default:()=>({close:`关闭`,closeOthers:`关闭其他`,closeLeft:`关闭左侧`,closeRight:`关闭右侧`,closeAll:`关闭所有`})},tagsViewOptions:{}},emits:[`close`,`closeAll`],setup(t,{expose:l,emit:h}){let T=t,E=h,D=C(),A=w(),j=O(T.tagsViewOptions??{persistKey:T.persistKey,homePath:T.homePath});if(j.tagsViewList.value.length>0&&T.labelFormatter){let e=A.getRoutes(),t=j.tagsViewList.value.map(t=>{let n=e.find(e=>e.path===t.path),r=t.originalTitle||n?.meta?.title||t.title;return{...t,originalTitle:r,title:T.labelFormatter(r)}});j.initTags(t)}let M=e=>T.labelFormatter?T.labelFormatter(e):e,N=p(!1),P=p(0),F=p(0),I=p(null),L=p(-1),R=p(),z=p(),B=e=>e.path===D.path,V=e=>e.meta?.affix,H=e=>{let t=z.value;t&&(e.preventDefault(),t.scrollTo({left:t.scrollLeft+e.deltaY,behavior:`smooth`}))},U=e=>{d(()=>{let t=[...z.value?.querySelectorAll(`[data-path]`)??[]].find(t=>t.dataset.path===e);t&&t.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`center`})})},W=e=>{e.path!==D.path&&A.push(e.path).catch(()=>void 0),U(e.path)},G=(e,t)=>{if(V(e))return;let n=B(e),r=j.tagsViewList.value.length;if(j.removeTag(t),n){let e=j.tagsViewList.value,n=t===r-1,i;i=n?e[t-1]?.path||T.homePath:e[e.length-1]?.path||T.homePath,A.push(i).catch(()=>void 0),E(`close`,i)}},K=(e,t,n)=>{e.preventDefault(),I.value=t,L.value=n,N.value=!0,P.value=e.clientX,F.value=e.clientY},q=()=>N.value=!1,J=r(()=>{let e=T.contextMenuLabels;return[{type:`option`,label:e.close??`关闭`,key:`close`,disabled:V(I.value),icon:()=>u(`span`,{class:`i-mdi:close`})},{type:`option`,label:e.closeOthers??`关闭其他`,key:`closeOthers`,icon:()=>u(`span`,{class:`i-mdi:arrow-left-right-bold`})},{type:`option`,label:e.closeLeft??`关闭左侧`,key:`closeLeft`,icon:()=>u(`span`,{class:`i-mdi:align-horizontal-left`})},{type:`option`,label:e.closeRight??`关闭右侧`,key:`closeRight`,icon:()=>u(`span`,{class:`i-mdi:align-horizontal-right`})},{type:`option`,label:e.closeAll??`关闭所有`,key:`closeAll`,icon:()=>u(`span`,{class:`i-mdi:tally-mark-5`})}]}),Y=e=>{if(!(!I.value||L.value===-1)){switch(e){case`close`:G(I.value,L.value);break;case`closeOthers`:j.removeOtherTags(L.value);break;case`closeLeft`:j.removeLeftTags(L.value);break;case`closeRight`:j.removeRightTags(L.value);break;case`closeAll`:j.removeAllTags(),A.push(T.homePath).catch(()=>void 0),E(`closeAll`);break}q()}};return v(()=>D.path,e=>{let t=e===T.homePath?T.homeTitle:D.meta.title||`Unnamed Page`;j.addTag({path:e,originalTitle:t,title:M(t),icon:e===T.homePath?T.homeIcon:D.meta.icon,meta:{affix:D.meta.affix}}),j.setActiveTag(e),U(e)},{immediate:!0}),l({tags:j,scrollToTag:U}),(t,r)=>{let l=S,u=x;return f(),o(`div`,k,[s(`div`,{class:`tags-track`,ref_key:`tagsTrack`,ref:R,onWheel:H},[s(`div`,{class:`tags-container`,ref_key:`tagsContainer`,ref:z},[(f(!0),o(n,null,m(_(j).tagsViewList.value,(t,n)=>(f(),i(l,{key:t.path,type:B(t)?`primary`:`default`,closable:!V(t),"data-path":t.path,onClose:b(e=>G(t,n),[`stop`]),onClick:e=>W(t),onContextmenu:b(e=>K(e,t,n),[`prevent`])},{icon:y(()=>[t.icon?(f(),i(_(e),{key:0,name:t.icon,size:12},null,8,[`name`])):a(`v-if`,!0)]),default:y(()=>[c(` `+g(t.title),1)]),_:2},1032,[`type`,`closable`,`data-path`,`onClose`,`onClick`,`onContextmenu`]))),128))],512)],544),N.value?(f(),i(u,{key:0,show:N.value,options:J.value,x:P.value,y:F.value,onClickoutside:q,onSelect:Y},null,8,[`show`,`options`,`x`,`y`])):a(`v-if`,!0)])}}}),[[`__scopeId`,`data-v-83599594`]]);export{O as n,A as t};
1
+ import{t as e}from"./C_Icon2.js";import{t}from"./export-helper.js";import{Fragment as n,computed as r,createBlock as i,createCommentVNode as a,createElementBlock as o,createElementVNode as s,createTextVNode as c,defineComponent as l,h as u,nextTick as d,onBeforeUnmount as f,openBlock as p,ref as m,renderList as h,resolveComponent as g,toDisplayString as ee,unref as _,watch as v,withCtx as y,withModifiers as b}from"vue";import{NDropdown as x,NTag as S}from"naive-ui";import{NavigationFailureType as C,isNavigationFailure as w,useRoute as T,useRouter as E}from"vue-router";const D=e=>{if(!e||typeof e!=`object`)return!1;let t=e;return typeof t.path==`string`&&t.path.startsWith(`/`)&&!t.path.startsWith(`//`)&&typeof t.title==`string`},O=e=>{if(!(!e||typeof e!=`object`||Array.isArray(e)))return Object.fromEntries(Object.entries(e).filter(([e,t])=>![`__proto__`,`prototype`,`constructor`].includes(e)&&(e!==`affix`||typeof t==`boolean`)))};function k(e){if(!e)return[];try{let t=JSON.parse(e);return Array.isArray(t)?t.flatMap(e=>D(e)?[{path:e.path,title:e.title,originalTitle:typeof e.originalTitle==`string`?e.originalTitle:void 0,icon:typeof e.icon==`string`?e.icon:void 0,meta:O(e.meta)}]:[]):[]}catch{return[]}}function A(e={}){let{persistKey:t=`__tags_view_list__`,homePath:n=`/home`}=e,r=()=>{if(!t)return[];try{return k(localStorage.getItem(t))}catch{return[]}},i=e=>{if(t)try{localStorage.setItem(t,JSON.stringify(e))}catch{}},a=m(r()),o=m(``),s=()=>i(a.value),c=e=>{e?a.value=e:a.value=[...new Map(a.value.map(e=>[e.path,e])).values()],s()},l=e=>{o.value=e};return{tagsViewList:a,activeTag:o,homePath:n,initTags:c,setActiveTag:l,addTag:e=>{let t=a.value.findIndex(t=>t.path===e.path);if(t===-1)a.value.push(e);else{let n=a.value[t];(n.title!==e.title||!n.originalTitle)&&(n.title=e.title,n.originalTitle=e.originalTitle||n.originalTitle)}l(e.path),s()},removeTag:e=>{if(e>=0&&e<a.value.length){let t=a.value.splice(e,1)[0]?.path??null;return s(),t}return null},removeOtherTags:e=>{a.value=a.value.filter((t,n)=>n===0||t.meta?.affix||n===e),s()},removeLeftTags:e=>{a.value=a.value.filter((t,n)=>n===0||t.meta?.affix||n>=e),s()},removeRightTags:e=>{a.value=a.value.filter((t,n)=>t.meta?.affix||n<=e),s()},removeAllTags:()=>{a.value=a.value.filter(e=>e.meta?.affix),s()}}}const j={class:`tags-view-container`};var M=t(l({name:`C_TagsView`,__name:`index`,props:{labelFormatter:{},homePath:{default:`/home`},homeTitle:{default:`首页`},homeIcon:{default:`mdi:home`},persistKey:{default:`__tags_view_list__`},contextMenuLabels:{default:()=>({close:`关闭`,closeOthers:`关闭其他`,closeLeft:`关闭左侧`,closeRight:`关闭右侧`,closeAll:`关闭所有`})},tagsViewOptions:{}},emits:[`close`,`closeAll`],setup(t,{expose:l,emit:g}){let D=t,O=g,k=T(),M=E(),N=A(D.tagsViewOptions??{persistKey:D.persistKey,homePath:D.homePath});if(N.tagsViewList.value.length>0&&D.labelFormatter){let e=M.getRoutes(),t=N.tagsViewList.value.map(t=>{let n=e.find(e=>e.path===t.path),r=t.originalTitle||n?.meta?.title||t.title;return{...t,originalTitle:r,title:D.labelFormatter(r)}});N.initTags(t)}let P=e=>D.labelFormatter?D.labelFormatter(e):e,F=()=>{let e=k.path===D.homePath,t=e?D.homeTitle:k.meta.title||`Unnamed Page`;return{path:k.path,originalTitle:t,title:P(t),icon:e?D.homeIcon:k.meta.icon,meta:{affix:k.meta.affix}}},I=m(!1),L=m(0),R=m(0),z=m(null),B=m(),V=m(),H=e=>e.path===k.path,U=e=>e.meta?.affix,W=e=>{let t=V.value;t&&(e.preventDefault(),t.scrollTo({left:t.scrollLeft+e.deltaY,behavior:`smooth`}))},G=e=>{d(()=>{let t=[...V.value?.querySelectorAll(`[data-path]`)??[]].find(t=>t.dataset.path===e);t&&t.scrollIntoView({behavior:`smooth`,block:`nearest`,inline:`center`})})},K=e=>{e.path!==k.path&&M.push(e.path).catch(()=>void 0),G(e.path)},q=0,J=!1,Y=async e=>{try{let t=await M.push(e);return!w(t)||w(t,C.duplicated)}catch{return!1}},X=async(e,t,n=!1)=>{let r=++q;if((n||!e.some(e=>e.path===k.path))&&!await Y(t)||J||r!==q)return!1;let i=N.tagsViewList.value.find(e=>e.path===k.path)??F();return N.initTags(e.some(e=>e.path===i.path)?e:[...e,i]),N.setActiveTag(k.path),G(k.path),!0},Z=async e=>{if(U(e))return;let t=N.tagsViewList.value,n=t.findIndex(t=>t.path===e.path);if(n===-1)return;let r=H(e),i=t.filter(t=>t.path!==e.path),a=n===t.length-1?i[n-1]?.path||D.homePath:i[i.length-1]?.path||D.homePath;await X(i,a)&&r&&O(`close`,a)};f(()=>{J=!0,q+=1});let Q=(e,t)=>{e.preventDefault(),z.value=t,I.value=!0,L.value=e.clientX,R.value=e.clientY},$=()=>I.value=!1,te=r(()=>{let e=D.contextMenuLabels;return[{type:`option`,label:e.close??`关闭`,key:`close`,disabled:U(z.value),icon:()=>u(`span`,{class:`i-mdi:close`})},{type:`option`,label:e.closeOthers??`关闭其他`,key:`closeOthers`,icon:()=>u(`span`,{class:`i-mdi:arrow-left-right-bold`})},{type:`option`,label:e.closeLeft??`关闭左侧`,key:`closeLeft`,icon:()=>u(`span`,{class:`i-mdi:align-horizontal-left`})},{type:`option`,label:e.closeRight??`关闭右侧`,key:`closeRight`,icon:()=>u(`span`,{class:`i-mdi:align-horizontal-right`})},{type:`option`,label:e.closeAll??`关闭所有`,key:`closeAll`,icon:()=>u(`span`,{class:`i-mdi:tally-mark-5`})}]}),ne=async e=>{let t=z.value,n=N.tagsViewList.value,r=n.findIndex(e=>e.path===t?.path);if($(),!t||r===-1)return;if(e===`close`){await Z(t);return}let i=n.filter((t,n)=>t.meta?.affix?!0:e===`closeOthers`?n===0||n===r:e===`closeLeft`?n===0||n>=r:e===`closeRight`?n<=r:e!==`closeAll`);[`closeOthers`,`closeLeft`,`closeRight`,`closeAll`].includes(e)&&await X(i,e===`closeAll`?D.homePath:t.path,e===`closeAll`)&&e===`closeAll`&&O(`closeAll`)};return v(()=>k.path,e=>{N.addTag(F()),N.setActiveTag(e),G(e)},{immediate:!0}),l({tags:N,scrollToTag:G}),(t,r)=>{let l=S,u=x;return p(),o(`div`,j,[s(`div`,{class:`tags-track`,ref_key:`tagsTrack`,ref:B,onWheel:W},[s(`div`,{class:`tags-container`,ref_key:`tagsContainer`,ref:V},[(p(!0),o(n,null,h(_(N).tagsViewList.value,t=>(p(),i(l,{key:t.path,type:H(t)?`primary`:`default`,closable:!U(t),"data-path":t.path,onClose:b(e=>Z(t),[`stop`]),onClick:e=>K(t),onContextmenu:b(e=>Q(e,t),[`prevent`])},{icon:y(()=>[t.icon?(p(),i(_(e),{key:0,name:t.icon,size:12},null,8,[`name`])):a(`v-if`,!0)]),default:y(()=>[c(` `+ee(t.title),1)]),_:2},1032,[`type`,`closable`,`data-path`,`onClose`,`onClick`,`onContextmenu`]))),128))],512)],544),I.value?(p(),i(u,{key:0,show:I.value,options:te.value,x:L.value,y:R.value,onClickoutside:$,onSelect:ne},null,8,[`show`,`options`,`x`,`y`])):a(`v-if`,!0)])}}}),[[`__scopeId`,`data-v-bd2a9250`]]);export{A as n,M as t};
@@ -65,6 +65,64 @@
65
65
  .transform[data-v-075758a0]{transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));}
66
66
  .px[data-v-075758a0]{padding-left:1rem;padding-right:1rem;}
67
67
 
68
+ .c-transfer__list[data-v-2d5e8cab] {
69
+ flex: 1;
70
+ overflow-y: auto;
71
+ padding: 4px 0;
72
+ min-height: 0;
73
+ max-height: var(--tf-height);
74
+ }
75
+ .c-transfer__list--virtual[data-v-2d5e8cab] {
76
+ padding: 0;
77
+ }
78
+
79
+ /* layer: default */
80
+ .flex[data-v-2d5e8cab]{display:flex;}
81
+
82
+ .c-transfer__item[data-v-af0b7c2e] {
83
+ display: flex;
84
+ align-items: center;
85
+ box-sizing: border-box;
86
+ height: var(--tf-item-height);
87
+ gap: 8px;
88
+ padding: 0 var(--tf-item-padding);
89
+ cursor: pointer;
90
+ transition: background 0.15s;
91
+ font-size: var(--tf-item-font-size);
92
+ color: var(--c-text-1, var(--text-color-1, #262626));
93
+ }
94
+ .c-transfer__item[data-v-af0b7c2e]:hover {
95
+ background: var(--tf-item-hover);
96
+ }
97
+ .c-transfer__item.is-disabled[data-v-af0b7c2e] {
98
+ opacity: 0.45;
99
+ cursor: not-allowed;
100
+ }
101
+ .c-transfer__item.is-disabled[data-v-af0b7c2e]:hover {
102
+ background: transparent;
103
+ }
104
+ .c-transfer__item.is-checked[data-v-af0b7c2e] {
105
+ color: var(--tf-accent);
106
+ font-weight: 500;
107
+ }
108
+ .c-transfer__item-icon[data-v-af0b7c2e] {
109
+ font-size: 16px;
110
+ flex-shrink: 0;
111
+ color: var(--c-text-3, var(--text-color-3, #a3a3a3));
112
+ }
113
+ .c-transfer__item-label[data-v-af0b7c2e] {
114
+ flex: 1;
115
+ overflow: hidden;
116
+ text-overflow: ellipsis;
117
+ white-space: nowrap;
118
+ }
119
+
120
+ /* layer: default */
121
+ .hidden[data-v-af0b7c2e]{display:none;}
122
+ .flex[data-v-af0b7c2e]{display:flex;}
123
+ .flex-shrink[data-v-af0b7c2e]{flex-shrink:1;}
124
+ .transition[data-v-af0b7c2e]{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-duration:150ms;}
125
+
68
126
  /**
69
127
  * C_Transfer — 穿梭框组件样式
70
128
  * 变量说明:
@@ -74,7 +132,7 @@
74
132
  * --tf-accent : 操作按钮主色
75
133
  * --tf-height : 面板高度
76
134
  */
77
- .c-transfer[data-v-faa66718] {
135
+ .c-transfer[data-v-65658ed2] {
78
136
  --tf-border: var(--c-border, var(--border-color, #e5e7eb));
79
137
  --tf-header-bg: color-mix(
80
138
  in srgb,
@@ -88,13 +146,16 @@
88
146
  );
89
147
  --tf-accent: var(--c-primary, var(--primary-color, #2080f0));
90
148
  --tf-height: 380px;
149
+ --tf-item-height: 34px;
150
+ --tf-item-padding: 14px;
151
+ --tf-item-font-size: 13px;
91
152
  display: flex;
92
153
  align-items: stretch;
93
154
  gap: 16px;
94
155
  user-select: none;
95
156
  /* ======================== Panel ======================== */
96
157
  }
97
- .c-transfer__panel[data-v-faa66718] {
158
+ .c-transfer__panel[data-v-65658ed2] {
98
159
  flex: 1;
99
160
  display: flex;
100
161
  flex-direction: column;
@@ -105,13 +166,13 @@
105
166
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
106
167
  transition: box-shadow 0.2s;
107
168
  }
108
- .c-transfer__panel[data-v-faa66718]:hover {
169
+ .c-transfer__panel[data-v-65658ed2]:hover {
109
170
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
110
171
  }
111
- .c-transfer[data-v-faa66718] {
172
+ .c-transfer[data-v-65658ed2] {
112
173
  /* ---- Header ---- */
113
174
  }
114
- .c-transfer__header[data-v-faa66718] {
175
+ .c-transfer__header[data-v-65658ed2] {
115
176
  display: flex;
116
177
  align-items: center;
117
178
  justify-content: space-between;
@@ -122,76 +183,26 @@
122
183
  font-size: 13px;
123
184
  color: var(--c-text-1, var(--text-color-1, #262626));
124
185
  }
125
- .c-transfer__count[data-v-faa66718] {
186
+ .c-transfer__count[data-v-65658ed2] {
126
187
  font-weight: 400;
127
188
  font-size: 12px;
128
189
  color: var(--c-text-3, var(--text-color-3, #a3a3a3));
129
190
  }
130
- .c-transfer[data-v-faa66718] {
191
+ .c-transfer[data-v-65658ed2] {
131
192
  /* ---- Filter ---- */
132
193
  }
133
- .c-transfer__filter[data-v-faa66718] {
194
+ .c-transfer__filter[data-v-65658ed2] {
134
195
  padding: 8px 10px;
135
196
  border-bottom: 1px solid var(--tf-border);
136
197
  }
137
- .c-transfer__filter .n-input[data-v-faa66718] {
198
+ .c-transfer__filter .n-input[data-v-65658ed2] {
138
199
  --n-border: 1px solid var(--tf-border);
139
200
  --n-border-focus: 1px solid var(--tf-accent);
140
201
  }
141
- .c-transfer[data-v-faa66718] {
142
- /* ---- List ---- */
143
- }
144
- .c-transfer__list[data-v-faa66718] {
145
- flex: 1;
146
- overflow-y: auto;
147
- padding: 4px 0;
148
- min-height: 0;
149
- max-height: var(--tf-height);
150
- }
151
- .c-transfer__item[data-v-faa66718] {
152
- display: flex;
153
- align-items: center;
154
- gap: 8px;
155
- padding: 7px 14px;
156
- cursor: pointer;
157
- transition: background 0.15s;
158
- font-size: 13px;
159
- color: var(--c-text-1, var(--text-color-1, #262626));
160
- }
161
- .c-transfer__item[data-v-faa66718]:hover {
162
- background: var(--tf-item-hover);
163
- }
164
- .c-transfer__item.is-disabled[data-v-faa66718] {
165
- opacity: 0.45;
166
- cursor: not-allowed;
167
- }
168
- .c-transfer__item.is-disabled[data-v-faa66718]:hover {
169
- background: transparent;
170
- }
171
- .c-transfer__item.is-checked[data-v-faa66718] {
172
- color: var(--tf-accent);
173
- font-weight: 500;
174
- }
175
- .c-transfer__item-icon[data-v-faa66718] {
176
- font-size: 16px;
177
- flex-shrink: 0;
178
- color: var(--c-text-3, var(--text-color-3, #a3a3a3));
179
- }
180
- .c-transfer__item-label[data-v-faa66718] {
181
- flex: 1;
182
- overflow: hidden;
183
- text-overflow: ellipsis;
184
- white-space: nowrap;
185
- }
186
- .c-transfer__item-desc[data-v-faa66718] {
187
- font-size: 11px;
188
- color: var(--c-text-3, var(--text-color-3, #a3a3a3));
189
- margin-top: 2px;
190
- }
191
- .c-transfer[data-v-faa66718] {
202
+ .c-transfer[data-v-65658ed2] {
192
203
  /* ---- Empty ---- */
193
204
  }
194
- .c-transfer__empty[data-v-faa66718] {
205
+ .c-transfer__empty[data-v-65658ed2] {
195
206
  display: flex;
196
207
  align-items: center;
197
208
  justify-content: center;
@@ -200,16 +211,16 @@
200
211
  font-size: 13px;
201
212
  padding: 32px 0;
202
213
  }
203
- .c-transfer[data-v-faa66718] {
214
+ .c-transfer[data-v-65658ed2] {
204
215
  /* ======================== Actions ======================== */
205
216
  }
206
- .c-transfer__actions[data-v-faa66718] {
217
+ .c-transfer__actions[data-v-65658ed2] {
207
218
  display: flex;
208
219
  flex-direction: column;
209
220
  justify-content: center;
210
221
  gap: 10px;
211
222
  }
212
- .c-transfer__btn[data-v-faa66718] {
223
+ .c-transfer__btn[data-v-65658ed2] {
213
224
  display: inline-flex;
214
225
  align-items: center;
215
226
  justify-content: center;
@@ -223,54 +234,52 @@
223
234
  cursor: pointer;
224
235
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
225
236
  }
226
- .c-transfer__btn[data-v-faa66718]:hover:not(.is-disabled) {
237
+ .c-transfer__btn[data-v-65658ed2]:hover:not(.is-disabled) {
227
238
  background: var(--tf-accent);
228
239
  color: #fff;
229
240
  box-shadow: 0 2px 8px color-mix(in srgb, var(--tf-accent) 30%, transparent);
230
241
  }
231
- .c-transfer__btn.is-disabled[data-v-faa66718] {
242
+ .c-transfer__btn.is-disabled[data-v-65658ed2] {
232
243
  opacity: 0.35;
233
244
  cursor: not-allowed;
234
245
  }
235
- .c-transfer[data-v-faa66718] {
246
+ .c-transfer[data-v-65658ed2] {
236
247
  /* ======================== Sizes ======================== */
237
248
  }
238
- .c-transfer.is-small[data-v-faa66718] {
249
+ .c-transfer.is-small[data-v-65658ed2] {
239
250
  --tf-height: 280px;
251
+ --tf-item-height: 28px;
252
+ --tf-item-padding: 12px;
253
+ --tf-item-font-size: 12px;
240
254
  }
241
- .c-transfer.is-small .c-transfer__header[data-v-faa66718] {
255
+ .c-transfer.is-small .c-transfer__header[data-v-65658ed2] {
242
256
  padding: 8px 12px;
243
257
  font-size: 12px;
244
258
  }
245
- .c-transfer.is-small .c-transfer__item[data-v-faa66718] {
246
- padding: 5px 12px;
247
- font-size: 12px;
248
- }
249
- .c-transfer.is-small .c-transfer__btn[data-v-faa66718] {
259
+ .c-transfer.is-small .c-transfer__btn[data-v-65658ed2] {
250
260
  width: 30px;
251
261
  height: 30px;
252
262
  font-size: 15px;
253
263
  }
254
- .c-transfer.is-large[data-v-faa66718] {
264
+ .c-transfer.is-large[data-v-65658ed2] {
255
265
  --tf-height: 480px;
266
+ --tf-item-height: 40px;
267
+ --tf-item-padding: 16px;
268
+ --tf-item-font-size: 14px;
256
269
  }
257
- .c-transfer.is-large .c-transfer__header[data-v-faa66718] {
270
+ .c-transfer.is-large .c-transfer__header[data-v-65658ed2] {
258
271
  padding: 12px 16px;
259
272
  font-size: 14px;
260
273
  }
261
- .c-transfer.is-large .c-transfer__item[data-v-faa66718] {
262
- padding: 9px 16px;
263
- font-size: 14px;
264
- }
265
- .c-transfer.is-large .c-transfer__btn[data-v-faa66718] {
274
+ .c-transfer.is-large .c-transfer__btn[data-v-65658ed2] {
266
275
  width: 42px;
267
276
  height: 42px;
268
277
  font-size: 20px;
269
278
  }
270
- .c-transfer[data-v-faa66718] {
279
+ .c-transfer[data-v-65658ed2] {
271
280
  /* ======================== Group divider ======================== */
272
281
  }
273
- .c-transfer__group[data-v-faa66718] {
282
+ .c-transfer__group[data-v-65658ed2] {
274
283
  padding: 6px 14px 4px;
275
284
  font-size: 11px;
276
285
  font-weight: 600;
@@ -280,4 +289,4 @@
280
289
  }
281
290
 
282
291
  /* layer: default */
283
- .visible[data-v-faa66718]{visibility:visible;}
292
+ .visible[data-v-65658ed2]{visibility:visible;}