fantasia-ui 0.6.4 → 0.6.6

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.
@@ -2971,27 +2971,34 @@
2971
2971
  display: flex;
2972
2972
  align-items: center;
2973
2973
  justify-content: space-between;
2974
+ gap: 12px;
2974
2975
  padding: 12px 16px;
2975
2976
  background: var(--f-collapse-item-header-bg);
2976
2977
  color: var(--f-collapse-item-header-color);
2977
2978
  cursor: pointer;
2978
2979
  user-select: none;
2979
- transition: background var(--f-collapse-item-transition-duration);
2980
+ transition: all var(--f-collapse-item-transition-duration);
2980
2981
  }
2981
2982
  .f-collapse-item__header:hover {
2982
2983
  background: var(--f-collapse-item-header-hover-bg);
2983
2984
  }
2985
+ .f-collapse-item__header:hover .f-collapse-item__icon {
2986
+ color: #ec4899;
2987
+ }
2984
2988
  .f-collapse-item__header-title {
2989
+ flex: 1;
2985
2990
  font-size: 14px;
2986
2991
  font-weight: 500;
2987
2992
  }
2988
2993
  .f-collapse-item__icon {
2989
2994
  flex-shrink: 0;
2990
- color: var(--f-collapse-item-content-color);
2991
- transition: transform var(--f-collapse-item-transition-duration);
2995
+ margin-left: auto;
2996
+ color: #94a3b8;
2997
+ transition: all var(--f-collapse-item-transition-duration);
2992
2998
  }
2993
2999
  .f-collapse-item--active .f-collapse-item__icon {
2994
3000
  transform: rotate(180deg);
3001
+ color: #ec4899;
2995
3002
  }
2996
3003
  .f-collapse-item--disabled .f-collapse-item__header {
2997
3004
  cursor: not-allowed;
@@ -6287,17 +6294,19 @@
6287
6294
  .f-step__content {
6288
6295
  min-width: 0;
6289
6296
  flex: 1;
6290
- padding-top: 4px;
6297
+ padding-top: 2px;
6291
6298
  }
6292
6299
  .f-step__title {
6293
6300
  font-size: 14px;
6294
6301
  font-weight: 600;
6295
6302
  color: #1f2937;
6303
+ line-height: 1.5;
6296
6304
  }
6297
6305
  .f-step__description {
6298
- margin-top: 4px;
6306
+ margin-top: 6px;
6299
6307
  font-size: 12px;
6300
6308
  color: #64748b;
6309
+ line-height: 1.5;
6301
6310
  }
6302
6311
 
6303
6312
  .f-switch {
@@ -7023,15 +7032,15 @@
7023
7032
  }
7024
7033
  .f-timeline-item__tail {
7025
7034
  position: absolute;
7026
- top: 24px;
7035
+ top: 26px;
7027
7036
  left: 11px;
7028
- height: calc(100% - 24px);
7037
+ height: calc(100% - 26px);
7029
7038
  border-left: 2px solid #e2e8f0;
7030
7039
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
7031
7040
  }
7032
7041
  .f-timeline-item__node {
7033
7042
  position: absolute;
7034
- top: 0;
7043
+ top: 2px;
7035
7044
  left: 0;
7036
7045
  display: flex;
7037
7046
  align-items: center;
@@ -7074,6 +7083,7 @@
7074
7083
  align-items: center;
7075
7084
  gap: 12px;
7076
7085
  margin-bottom: 8px;
7086
+ line-height: 24px;
7077
7087
  min-height: 24px;
7078
7088
  }
7079
7089
  .f-timeline-item__header.is-clickable {
@@ -7096,6 +7106,7 @@
7096
7106
  color: #94a3b8;
7097
7107
  transition: color 0.3s;
7098
7108
  white-space: nowrap;
7109
+ line-height: 24px;
7099
7110
  }
7100
7111
  .f-timeline-item__title {
7101
7112
  flex: 1;
@@ -7103,11 +7114,16 @@
7103
7114
  font-weight: 500;
7104
7115
  color: #1e293b;
7105
7116
  transition: color 0.3s;
7117
+ line-height: 24px;
7106
7118
  }
7107
7119
  .f-timeline-item__collapse-icon {
7108
7120
  display: flex;
7109
7121
  align-items: center;
7110
7122
  justify-content: center;
7123
+ flex-shrink: 0;
7124
+ margin-left: auto;
7125
+ width: 24px;
7126
+ height: 24px;
7111
7127
  color: #94a3b8;
7112
7128
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
7113
7129
  }
@@ -7124,6 +7140,9 @@
7124
7140
  line-height: 1.6;
7125
7141
  padding-top: 4px;
7126
7142
  }
7143
+ .f-timeline-item.is-collapsible:not(.is-collapsed) .f-timeline-item__collapse-icon {
7144
+ color: #ec4899;
7145
+ }
7127
7146
  .f-timeline-item.is-collapsible:not(.is-collapsed) .f-timeline-item__collapse-icon :deep(svg) {
7128
7147
  transform: rotate(180deg);
7129
7148
  }
@@ -13069,27 +13088,34 @@ to {
13069
13088
  display: flex;
13070
13089
  align-items: center;
13071
13090
  justify-content: space-between;
13091
+ gap: 12px;
13072
13092
  padding: 12px 16px;
13073
13093
  background: var(--f-collapse-item-header-bg);
13074
13094
  color: var(--f-collapse-item-header-color);
13075
13095
  cursor: pointer;
13076
13096
  user-select: none;
13077
- transition: background var(--f-collapse-item-transition-duration);
13097
+ transition: all var(--f-collapse-item-transition-duration);
13078
13098
  }
13079
13099
  .f-collapse-item__header[data-v-d69a6c2b]:hover {
13080
13100
  background: var(--f-collapse-item-header-hover-bg);
13081
13101
  }
13102
+ .f-collapse-item__header:hover .f-collapse-item__icon[data-v-d69a6c2b] {
13103
+ color: #ec4899;
13104
+ }
13082
13105
  .f-collapse-item__header-title[data-v-d69a6c2b] {
13106
+ flex: 1;
13083
13107
  font-size: 14px;
13084
13108
  font-weight: 500;
13085
13109
  }
13086
13110
  .f-collapse-item__icon[data-v-d69a6c2b] {
13087
13111
  flex-shrink: 0;
13088
- color: var(--f-collapse-item-content-color);
13089
- transition: transform var(--f-collapse-item-transition-duration);
13112
+ margin-left: auto;
13113
+ color: #94a3b8;
13114
+ transition: all var(--f-collapse-item-transition-duration);
13090
13115
  }
13091
13116
  .f-collapse-item--active .f-collapse-item__icon[data-v-d69a6c2b] {
13092
13117
  transform: rotate(180deg);
13118
+ color: #ec4899;
13093
13119
  }
13094
13120
  .f-collapse-item--disabled .f-collapse-item__header[data-v-d69a6c2b] {
13095
13121
  cursor: not-allowed;
@@ -14110,17 +14136,19 @@ to {
14110
14136
  .f-step__content[data-v-39ce5b1c] {
14111
14137
  min-width: 0;
14112
14138
  flex: 1;
14113
- padding-top: 4px;
14139
+ padding-top: 2px;
14114
14140
  }
14115
14141
  .f-step__title[data-v-39ce5b1c] {
14116
14142
  font-size: 14px;
14117
14143
  font-weight: 600;
14118
14144
  color: #1f2937;
14145
+ line-height: 1.5;
14119
14146
  }
14120
14147
  .f-step__description[data-v-39ce5b1c] {
14121
- margin-top: 4px;
14148
+ margin-top: 6px;
14122
14149
  font-size: 12px;
14123
14150
  color: #64748b;
14151
+ line-height: 1.5;
14124
14152
  }.f-timeline[data-v-05989a62] {
14125
14153
  position: relative;
14126
14154
  padding: 0;
@@ -14239,15 +14267,15 @@ to {
14239
14267
  }
14240
14268
  .f-timeline-item__tail[data-v-235d4634] {
14241
14269
  position: absolute;
14242
- top: 24px;
14270
+ top: 26px;
14243
14271
  left: 11px;
14244
- height: calc(100% - 24px);
14272
+ height: calc(100% - 26px);
14245
14273
  border-left: 2px solid #e2e8f0;
14246
14274
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
14247
14275
  }
14248
14276
  .f-timeline-item__node[data-v-235d4634] {
14249
14277
  position: absolute;
14250
- top: 0;
14278
+ top: 2px;
14251
14279
  left: 0;
14252
14280
  display: flex;
14253
14281
  align-items: center;
@@ -14290,6 +14318,7 @@ to {
14290
14318
  align-items: center;
14291
14319
  gap: 12px;
14292
14320
  margin-bottom: 8px;
14321
+ line-height: 24px;
14293
14322
  min-height: 24px;
14294
14323
  }
14295
14324
  .f-timeline-item__header.is-clickable[data-v-235d4634] {
@@ -14312,6 +14341,7 @@ to {
14312
14341
  color: #94a3b8;
14313
14342
  transition: color 0.3s;
14314
14343
  white-space: nowrap;
14344
+ line-height: 24px;
14315
14345
  }
14316
14346
  .f-timeline-item__title[data-v-235d4634] {
14317
14347
  flex: 1;
@@ -14319,11 +14349,16 @@ to {
14319
14349
  font-weight: 500;
14320
14350
  color: #1e293b;
14321
14351
  transition: color 0.3s;
14352
+ line-height: 24px;
14322
14353
  }
14323
14354
  .f-timeline-item__collapse-icon[data-v-235d4634] {
14324
14355
  display: flex;
14325
14356
  align-items: center;
14326
14357
  justify-content: center;
14358
+ flex-shrink: 0;
14359
+ margin-left: auto;
14360
+ width: 24px;
14361
+ height: 24px;
14327
14362
  color: #94a3b8;
14328
14363
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
14329
14364
  }
@@ -14340,6 +14375,9 @@ to {
14340
14375
  line-height: 1.6;
14341
14376
  padding-top: 4px;
14342
14377
  }
14378
+ .f-timeline-item.is-collapsible:not(.is-collapsed) .f-timeline-item__collapse-icon[data-v-235d4634] {
14379
+ color: #ec4899;
14380
+ }
14343
14381
  .f-timeline-item.is-collapsible:not(.is-collapsed) .f-timeline-item__collapse-icon[data-v-235d4634] svg {
14344
14382
  transform: rotate(180deg);
14345
14383
  }
@@ -14445,7 +14483,7 @@ to {
14445
14483
  .f-timeline-item__content[data-v-235d4634] {
14446
14484
  font-size: 13px;
14447
14485
  }
14448
- }.f-dialog-overlay[data-v-7a2da7c7] {
14486
+ }.f-dialog-overlay[data-v-cae03335] {
14449
14487
  position: fixed;
14450
14488
  top: 0;
14451
14489
  left: 0;
@@ -14461,7 +14499,7 @@ to {
14461
14499
  transition: background-color 0.25s ease;
14462
14500
  touch-action: none;
14463
14501
  }
14464
- .f-dialog[data-v-7a2da7c7] {
14502
+ .f-dialog[data-v-cae03335] {
14465
14503
  position: relative;
14466
14504
  background: #fff;
14467
14505
  border-radius: 8px;
@@ -14475,7 +14513,7 @@ to {
14475
14513
  will-change: transform, opacity;
14476
14514
  transform-origin: center;
14477
14515
  }
14478
- .f-dialog__close[data-v-7a2da7c7] {
14516
+ .f-dialog__close[data-v-cae03335] {
14479
14517
  position: absolute;
14480
14518
  top: 16px;
14481
14519
  right: 16px;
@@ -14493,20 +14531,20 @@ to {
14493
14531
  z-index: 1;
14494
14532
  padding: 0;
14495
14533
  }
14496
- .f-dialog__close[data-v-7a2da7c7]:hover {
14534
+ .f-dialog__close[data-v-cae03335]:hover {
14497
14535
  background: #f5f7fa;
14498
14536
  color: #606266;
14499
14537
  }
14500
- .f-dialog__header[data-v-7a2da7c7] {
14538
+ .f-dialog__header[data-v-cae03335] {
14501
14539
  padding: 20px 20px 16px;
14502
14540
  display: flex;
14503
14541
  align-items: center;
14504
14542
  gap: 12px;
14505
14543
  }
14506
- .f-dialog__header.has-divider[data-v-7a2da7c7] {
14544
+ .f-dialog__header.has-divider[data-v-cae03335] {
14507
14545
  border-bottom: 1px solid #e4e7ed;
14508
14546
  }
14509
- .f-dialog__icon[data-v-7a2da7c7] {
14547
+ .f-dialog__icon[data-v-cae03335] {
14510
14548
  flex-shrink: 0;
14511
14549
  width: 28px;
14512
14550
  height: 28px;
@@ -14515,11 +14553,11 @@ to {
14515
14553
  justify-content: center;
14516
14554
  border-radius: 50%;
14517
14555
  }
14518
- .f-dialog__icon[data-v-7a2da7c7] svg {
14556
+ .f-dialog__icon[data-v-cae03335] svg {
14519
14557
  width: 20px;
14520
14558
  height: 20px;
14521
14559
  }
14522
- .f-dialog__title[data-v-7a2da7c7] {
14560
+ .f-dialog__title[data-v-cae03335] {
14523
14561
  flex: 1;
14524
14562
  margin: 0;
14525
14563
  font-size: 18px;
@@ -14527,7 +14565,7 @@ to {
14527
14565
  color: #303133;
14528
14566
  line-height: 1.4;
14529
14567
  }
14530
- .f-dialog__body[data-v-7a2da7c7] {
14568
+ .f-dialog__body[data-v-cae03335] {
14531
14569
  flex: 1;
14532
14570
  min-height: 0;
14533
14571
  color: #606266;
@@ -14537,88 +14575,88 @@ to {
14537
14575
  display: flex;
14538
14576
  flex-direction: column;
14539
14577
  }
14540
- .f-dialog__body[data-v-7a2da7c7] .f-scrollbar {
14578
+ .f-dialog__body[data-v-cae03335] .f-scrollbar {
14541
14579
  flex: 1;
14542
14580
  min-height: 0;
14543
14581
  }
14544
- .f-dialog__body[data-v-7a2da7c7] .f-scrollbar__wrap {
14582
+ .f-dialog__body[data-v-cae03335] .f-scrollbar__wrap {
14545
14583
  overflow-y: auto !important;
14546
14584
  overflow-x: hidden;
14547
14585
  -webkit-overflow-scrolling: touch;
14548
14586
  }
14549
- .f-dialog__body[data-v-7a2da7c7] .f-scrollbar__view {
14587
+ .f-dialog__body[data-v-cae03335] .f-scrollbar__view {
14550
14588
  padding: 20px;
14551
14589
  }
14552
- .f-dialog__body p[data-v-7a2da7c7] {
14590
+ .f-dialog__body p[data-v-cae03335] {
14553
14591
  margin: 0;
14554
14592
  }
14555
- .f-dialog__footer[data-v-7a2da7c7] {
14593
+ .f-dialog__footer[data-v-cae03335] {
14556
14594
  padding: 16px 20px;
14557
14595
  display: flex;
14558
14596
  align-items: center;
14559
14597
  justify-content: flex-end;
14560
14598
  gap: 12px;
14561
14599
  }
14562
- .f-dialog__footer.has-divider[data-v-7a2da7c7] {
14600
+ .f-dialog__footer.has-divider[data-v-cae03335] {
14563
14601
  border-top: 1px solid #e4e7ed;
14564
14602
  }
14565
- .f-dialog--info .f-dialog__icon[data-v-7a2da7c7] {
14603
+ .f-dialog--info .f-dialog__icon[data-v-cae03335] {
14566
14604
  background: #ecf5ff;
14567
14605
  color: #409eff;
14568
14606
  }
14569
- .f-dialog--success .f-dialog__icon[data-v-7a2da7c7] {
14607
+ .f-dialog--success .f-dialog__icon[data-v-cae03335] {
14570
14608
  background: #f0f9ff;
14571
14609
  color: #67c23a;
14572
14610
  }
14573
- .f-dialog--warning .f-dialog__icon[data-v-7a2da7c7] {
14611
+ .f-dialog--warning .f-dialog__icon[data-v-cae03335] {
14574
14612
  background: #fef0e6;
14575
14613
  color: #e6a23c;
14576
14614
  }
14577
- .f-dialog--error .f-dialog__icon[data-v-7a2da7c7] {
14615
+ .f-dialog--error .f-dialog__icon[data-v-cae03335] {
14578
14616
  background: #fef0f0;
14579
14617
  color: #f56c6c;
14580
14618
  }
14581
- .f-dialog--confirm .f-dialog__icon[data-v-7a2da7c7] {
14619
+ .f-dialog--confirm .f-dialog__icon[data-v-cae03335] {
14582
14620
  background: #fef0e6;
14583
14621
  color: #e6a23c;
14584
14622
  }
14585
- .dialog-fade-enter-active[data-v-7a2da7c7],
14586
- .dialog-fade-leave-active[data-v-7a2da7c7] {
14623
+ .dialog-fade-enter-active[data-v-cae03335],
14624
+ .dialog-fade-leave-active[data-v-cae03335] {
14587
14625
  transition: opacity 0.25s ease;
14588
14626
  }
14589
- .dialog-fade-enter-from[data-v-7a2da7c7],
14590
- .dialog-fade-leave-to[data-v-7a2da7c7] {
14627
+ .dialog-fade-enter-from[data-v-cae03335],
14628
+ .dialog-fade-leave-to[data-v-cae03335] {
14591
14629
  opacity: 0;
14592
14630
  }
14593
- .dialog-enter-active[data-v-7a2da7c7],
14594
- .dialog-leave-active[data-v-7a2da7c7] {
14631
+ .dialog-enter-active[data-v-cae03335],
14632
+ .dialog-leave-active[data-v-cae03335] {
14595
14633
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
14596
14634
  }
14597
- .dialog-enter-from[data-v-7a2da7c7],
14598
- .dialog-leave-to[data-v-7a2da7c7] {
14635
+ .dialog-enter-from[data-v-cae03335],
14636
+ .dialog-leave-to[data-v-cae03335] {
14599
14637
  opacity: 0;
14600
14638
  transform: scale(0.88) translateY(6px);
14601
14639
  }
14602
- .dialog-enter-to[data-v-7a2da7c7],
14603
- .dialog-leave-from[data-v-7a2da7c7] {
14640
+ .dialog-enter-to[data-v-cae03335],
14641
+ .dialog-leave-from[data-v-cae03335] {
14604
14642
  opacity: 1;
14605
14643
  transform: scale(1) translateY(0);
14606
14644
  }
14607
14645
  @media (max-width: 768px) {
14608
- .f-dialog-overlay[data-v-7a2da7c7] {
14646
+ .f-dialog-overlay[data-v-cae03335] {
14609
14647
  padding: 10px;
14610
14648
  }
14611
- .f-dialog[data-v-7a2da7c7] {
14649
+ .f-dialog[data-v-cae03335] {
14612
14650
  width: 95vw;
14613
14651
  max-height: 85vh;
14614
14652
  }
14615
- .f-dialog__header[data-v-7a2da7c7] {
14653
+ .f-dialog__header[data-v-cae03335] {
14616
14654
  padding: 16px 16px 12px;
14617
14655
  }
14618
- .f-dialog__body[data-v-7a2da7c7] .f-scrollbar__view {
14656
+ .f-dialog__body[data-v-cae03335] .f-scrollbar__view {
14619
14657
  padding: 16px;
14620
14658
  }
14621
- .f-dialog__footer[data-v-7a2da7c7] {
14659
+ .f-dialog__footer[data-v-cae03335] {
14622
14660
  padding: 12px 16px;
14623
14661
  }
14624
14662
  }.f-drawer-backdrop[data-v-c7209ade] {
@@ -6228,6 +6228,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6228
6228
  title: { default: "提示" },
6229
6229
  content: { default: "" },
6230
6230
  type: { default: "info" },
6231
+ width: { default: "500px" },
6231
6232
  confirmText: { default: "确定" },
6232
6233
  cancelText: { default: "取消" },
6233
6234
  showCancel: { type: Boolean, default: true },
@@ -6244,6 +6245,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6244
6245
  const props = __props;
6245
6246
  const emit = __emit;
6246
6247
  const visible = useModel(__props, "modelValue");
6248
+ const dialogWidth = computed(() => {
6249
+ if (typeof props.width === "number") {
6250
+ return `${props.width}px`;
6251
+ }
6252
+ return props.width;
6253
+ });
6247
6254
  const handleClose = () => {
6248
6255
  visible.value = false;
6249
6256
  emit("cancel");
@@ -6295,7 +6302,8 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6295
6302
  default: withCtx(() => [
6296
6303
  visible.value ? (openBlock(), createElementBlock("div", {
6297
6304
  key: 0,
6298
- class: normalizeClass(["f-dialog", `f-dialog--${_ctx.type}`])
6305
+ class: normalizeClass(["f-dialog", `f-dialog--${_ctx.type}`]),
6306
+ style: normalizeStyle({ width: unref(dialogWidth) })
6299
6307
  }, [
6300
6308
  _ctx.showClose ? (openBlock(), createElementBlock("button", {
6301
6309
  key: 0,
@@ -6358,7 +6366,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6358
6366
  })
6359
6367
  ], true)
6360
6368
  ], 2)
6361
- ], 2)) : createCommentVNode("", true)
6369
+ ], 6)) : createCommentVNode("", true)
6362
6370
  ]),
6363
6371
  _: 3
6364
6372
  })
@@ -6370,7 +6378,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6370
6378
  };
6371
6379
  }
6372
6380
  });
6373
- const FDialogComp = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-7a2da7c7"]]);
6381
+ const FDialogComp = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-cae03335"]]);
6374
6382
  const _hoisted_1$3 = {
6375
6383
  key: 0,
6376
6384
  class: "f-drawer__header"
@@ -6229,6 +6229,7 @@ var __async = (__this, __arguments, generator) => {
6229
6229
  title: { default: "提示" },
6230
6230
  content: { default: "" },
6231
6231
  type: { default: "info" },
6232
+ width: { default: "500px" },
6232
6233
  confirmText: { default: "确定" },
6233
6234
  cancelText: { default: "取消" },
6234
6235
  showCancel: { type: Boolean, default: true },
@@ -6245,6 +6246,12 @@ var __async = (__this, __arguments, generator) => {
6245
6246
  const props = __props;
6246
6247
  const emit = __emit;
6247
6248
  const visible = vue.useModel(__props, "modelValue");
6249
+ const dialogWidth = vue.computed(() => {
6250
+ if (typeof props.width === "number") {
6251
+ return `${props.width}px`;
6252
+ }
6253
+ return props.width;
6254
+ });
6248
6255
  const handleClose = () => {
6249
6256
  visible.value = false;
6250
6257
  emit("cancel");
@@ -6296,7 +6303,8 @@ var __async = (__this, __arguments, generator) => {
6296
6303
  default: vue.withCtx(() => [
6297
6304
  visible.value ? (vue.openBlock(), vue.createElementBlock("div", {
6298
6305
  key: 0,
6299
- class: vue.normalizeClass(["f-dialog", `f-dialog--${_ctx.type}`])
6306
+ class: vue.normalizeClass(["f-dialog", `f-dialog--${_ctx.type}`]),
6307
+ style: vue.normalizeStyle({ width: vue.unref(dialogWidth) })
6300
6308
  }, [
6301
6309
  _ctx.showClose ? (vue.openBlock(), vue.createElementBlock("button", {
6302
6310
  key: 0,
@@ -6359,7 +6367,7 @@ var __async = (__this, __arguments, generator) => {
6359
6367
  })
6360
6368
  ], true)
6361
6369
  ], 2)
6362
- ], 2)) : vue.createCommentVNode("", true)
6370
+ ], 6)) : vue.createCommentVNode("", true)
6363
6371
  ]),
6364
6372
  _: 3
6365
6373
  })
@@ -6371,7 +6379,7 @@ var __async = (__this, __arguments, generator) => {
6371
6379
  };
6372
6380
  }
6373
6381
  });
6374
- const FDialogComp = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-7a2da7c7"]]);
6382
+ const FDialogComp = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-cae03335"]]);
6375
6383
  const _hoisted_1$3 = {
6376
6384
  key: 0,
6377
6385
  class: "f-drawer__header"
@@ -20,6 +20,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
20
20
  "onUpdate:modelValue"?: (value: boolean) => any;
21
21
  onCancel?: () => any;
22
22
  }>, {
23
+ width: string | number;
23
24
  type: import("../../types/components").FDialogType;
24
25
  title: string;
25
26
  content: string;
@@ -12,6 +12,8 @@ interface FDialogProps {
12
12
  content?: string;
13
13
  /** 对话框类型 */
14
14
  type?: FDialogType;
15
+ /** 对话框宽度,支持 CSS 单位字符串或数字(px) @default '500px' */
16
+ width?: string | number;
15
17
  /** 确认按钮文本 */
16
18
  confirmText?: string;
17
19
  /** 取消按钮文本 */
@@ -40,6 +42,7 @@ interface FDialogOptions {
40
42
  title?: string;
41
43
  content?: string;
42
44
  type?: FDialogType;
45
+ width?: string | number;
43
46
  confirmText?: string;
44
47
  cancelText?: string;
45
48
  showCancel?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "fantasia-ui",
3
3
  "private": false,
4
- "version": "0.6.4",
4
+ "version": "0.6.6",
5
5
  "type": "module",
6
6
  "main": "dist/fantasia-ui.umd.js",
7
7
  "module": "dist/fantasia-ui.es.js",