@xilonglab/vue-main 1.6.6 → 1.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xilonglab/vue-main",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "xilong vue main",
5
5
  "main": "packages/index.js",
6
6
  "scripts": {
@@ -1,4 +1,3 @@
1
- <<<<<<< HEAD
2
1
  <script setup>
3
2
  defineOptions({ name: "XlButton" })
4
3
 
@@ -229,235 +228,3 @@ function handleClick(event) {
229
228
  }
230
229
  }
231
230
  </style>
232
- =======
233
- <script setup>
234
- defineOptions({ name: "XlButton" })
235
-
236
- const props = defineProps({
237
- type: {},
238
- l: {
239
- type: String,
240
- default: ''
241
- },
242
- size: {},
243
- disabled: {},
244
- loading: {},
245
- icon: {},
246
- trigger: {
247
- type: Function,
248
- default: null
249
- }
250
- });
251
-
252
- function handleClick(event) {
253
- if (props.trigger) {
254
- props.trigger();
255
- }
256
- }
257
- </script>
258
-
259
-
260
- <template>
261
- <el-button
262
- class="xl-button"
263
- :size="size"
264
- :type="type"
265
- :disabled="disabled"
266
- :loading="loading?.value ?? loading ?? false"
267
- :icon="icon"
268
- @click="handleClick"
269
- >
270
- <span>{{ l }}</span>
271
- <slot />
272
- </el-button>
273
- </template>
274
-
275
-
276
- <style lang="less">
277
- .xl-button {
278
- position: relative;
279
- overflow: hidden;
280
- transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
281
- border-radius: 5px;
282
- font-weight: 500;
283
-
284
- // 默认按钮科技感样式
285
- &.el-button--default {
286
- background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
287
- border: 1px solid #dee2e6;
288
- color: #495057;
289
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
290
-
291
- &:hover {
292
- background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
293
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
294
- transform: translateY(-1px);
295
- }
296
-
297
- &:active {
298
- transform: translateY(0);
299
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
300
- }
301
- }
302
-
303
- // 主要按钮科技感样式
304
- &.el-button--primary {
305
- background: linear-gradient(135deg, #409eff 0%, #337ecc 100%);
306
- border: 1px solid #409eff;
307
- color: #ffffff;
308
- box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
309
-
310
- &:hover {
311
- background: linear-gradient(135deg, #337ecc 0%, #2b6cb0 100%);
312
- box-shadow: 0 4px 16px rgba(64, 158, 255, 0.4);
313
- transform: translateY(-1px);
314
- }
315
-
316
- &:active {
317
- transform: translateY(0);
318
- box-shadow: 0 2px 8px rgba(64, 158, 255, 0.3);
319
- }
320
- }
321
-
322
- // 成功按钮科技感样式
323
- &.el-button--success {
324
- background: linear-gradient(135deg, #67c23a 0%, #529b2e 100%);
325
- border: 1px solid #67c23a;
326
- color: #ffffff;
327
- box-shadow: 0 2px 8px rgba(103, 194, 58, 0.3);
328
-
329
- &:hover {
330
- background: linear-gradient(135deg, #529b2e 0%, #4a7c59 100%);
331
- box-shadow: 0 4px 16px rgba(103, 194, 58, 0.4);
332
- transform: translateY(-1px);
333
- }
334
-
335
- &:active {
336
- transform: translateY(0);
337
- box-shadow: 0 2px 8px rgba(103, 194, 58, 0.3);
338
- }
339
- }
340
-
341
- // 警告按钮科技感样式
342
- &.el-button--warning {
343
- background: linear-gradient(135deg, #e6a23c 0%, #d4941e 100%);
344
- border: 1px solid #e6a23c;
345
- color: #ffffff;
346
- box-shadow: 0 2px 8px rgba(230, 162, 60, 0.3);
347
-
348
- &:hover {
349
- background: linear-gradient(135deg, #d4941e 0%, #b8860b 100%);
350
- box-shadow: 0 4px 16px rgba(230, 162, 60, 0.4);
351
- transform: translateY(-1px);
352
- }
353
-
354
- &:active {
355
- transform: translateY(0);
356
- box-shadow: 0 2px 8px rgba(230, 162, 60, 0.3);
357
- }
358
- }
359
-
360
- // 危险按钮科技感样式
361
- &.el-button--danger {
362
- background: linear-gradient(135deg, #f56c6c 0%, #e53e3e 100%);
363
- border: 1px solid #f56c6c;
364
- color: #ffffff;
365
- box-shadow: 0 2px 8px rgba(245, 108, 108, 0.3);
366
-
367
- &:hover {
368
- background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
369
- box-shadow: 0 4px 16px rgba(245, 108, 108, 0.4);
370
- transform: translateY(-1px);
371
- }
372
-
373
- &:active {
374
- transform: translateY(0);
375
- box-shadow: 0 2px 8px rgba(245, 108, 108, 0.3);
376
- }
377
- }
378
-
379
- // 信息按钮科技感样式
380
- &.el-button--info {
381
- background: linear-gradient(135deg, #909399 0%, #73767a 100%);
382
- border: 1px solid #909399;
383
- color: #ffffff;
384
- box-shadow: 0 2px 8px rgba(144, 147, 153, 0.3);
385
-
386
- &:hover {
387
- background: linear-gradient(135deg, #73767a 0%, #5a5c5e 100%);
388
- box-shadow: 0 4px 16px rgba(144, 147, 153, 0.4);
389
- transform: translateY(-1px);
390
- }
391
-
392
- &:active {
393
- transform: translateY(0);
394
- box-shadow: 0 2px 8px rgba(144, 147, 153, 0.3);
395
- }
396
- }
397
-
398
- // 禁用状态
399
- &.is-disabled {
400
- opacity: 0.6;
401
- cursor: not-allowed;
402
- transform: none !important;
403
- box-shadow: none !important;
404
-
405
- &:hover {
406
- transform: none !important;
407
- box-shadow: none !important;
408
- }
409
- }
410
-
411
- // 加载状态
412
- &.is-loading {
413
- position: relative;
414
-
415
- &::before {
416
- content: '';
417
- position: absolute;
418
- top: 0;
419
- left: 0;
420
- right: 0;
421
- bottom: 0;
422
- background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
423
- animation: shimmer 1.5s infinite;
424
- }
425
- }
426
-
427
- // 发光效果(用于特殊场景)
428
- &.xl-button--glow {
429
- &::after {
430
- content: '';
431
- position: absolute;
432
- top: -2px;
433
- left: -2px;
434
- right: -2px;
435
- bottom: -2px;
436
- background: inherit;
437
- border-radius: inherit;
438
- filter: blur(4px);
439
- opacity: 0.3;
440
- z-index: -1;
441
- }
442
- }
443
- }
444
-
445
- // 闪烁动画
446
- @keyframes shimmer {
447
- 0% {
448
- transform: translateX(-100%);
449
- }
450
- 100% {
451
- transform: translateX(100%);
452
- }
453
- }
454
-
455
- // 响应式设计
456
- @media (max-width: 768px) {
457
- .xl-button {
458
- font-size: 14px;
459
- padding: 8px 16px;
460
- }
461
- }
462
- </style>
463
- >>>>>>> 10f1033bebbe3355872fa734591c08b3ae78df9d
@@ -8,7 +8,7 @@ const route = useRoute();
8
8
  const router = useRouter();
9
9
  const breadcrumbData = ref([]);
10
10
 
11
- // 更新面包屑数�?
11
+ // 更新面包屑数据
12
12
  const updateBreadcrumb = () => {
13
13
  // 过滤有name和title属性的有效路由
14
14
  breadcrumbData.value = route.matched
@@ -20,11 +20,11 @@ const updateBreadcrumb = () => {
20
20
  }));
21
21
  };
22
22
 
23
- // 处理面包屑点�?
23
+ // 处理面包屑点击
24
24
  const handleClick = (path) => {
25
- if (path === route.path) return; // 当前页面不跳�?
25
+ if (path === route.path) return; // 当前页面不跳转
26
26
 
27
- // 查找对应的路由配�?
27
+ // 查找对应的路由配置
28
28
  const findRoute = (routes, targetPath) => {
29
29
  for (const r of routes) {
30
30
  if (r.path === targetPath) return r;