@kne/form-creator 0.1.26 → 0.1.28

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/dist/index.css CHANGED
@@ -133,6 +133,12 @@
133
133
  display: inline-flex;
134
134
  align-items: center;
135
135
  gap: 8px;
136
+ /* 与「添加模块」同高、同胶囊圆角 */
137
+ }
138
+ .kne-form-creator_O22ZM .ant-btn-sm {
139
+ height: 30px !important;
140
+ padding-inline: 12px !important;
141
+ border-radius: 999px !important;
136
142
  }
137
143
 
138
144
  .kne-form-creator_9bWOD {
@@ -273,6 +279,16 @@
273
279
  background: #f6f0ff;
274
280
  }
275
281
 
282
+ .kne-form-creator_CFlQv {
283
+ background: #fff2e8;
284
+ }
285
+
286
+ .kne-form-creator_Zo1Rz {
287
+ margin: 12px 0 8px !important;
288
+ font-size: 13px !important;
289
+ font-weight: 600 !important;
290
+ }
291
+
276
292
  .kne-form-creator_QNF9W {
277
293
  background: #fff8e8;
278
294
  }
@@ -280,32 +296,143 @@
280
296
  background: rgba(255, 255, 255, 0.72);
281
297
  }
282
298
 
299
+ /* 头部:元信息行(折叠 / 拖柄 / 类型 / 数量 / 操作)+ 独占整行的标题,长标题最多两行 */
283
300
  .kne-form-creator_wS4rL {
284
301
  display: flex;
285
- align-items: center;
286
- justify-content: space-between;
287
- gap: 8px;
302
+ flex-direction: column;
303
+ gap: 6px;
288
304
  min-width: 0;
289
305
  }
290
306
 
291
- .kne-form-creator_t4awC {
307
+ .kne-form-creator_PQiYV {
292
308
  display: flex;
293
309
  align-items: center;
294
- flex-wrap: wrap;
295
- gap: 6px 8px;
310
+ gap: 6px;
296
311
  min-width: 0;
297
- flex: 1;
312
+ min-height: 28px;
298
313
  }
299
- .kne-form-creator_t4awC .ant-tag {
314
+ .kne-form-creator_PQiYV .ant-tag {
300
315
  flex-shrink: 0;
316
+ margin-inline-end: 0;
301
317
  }
302
318
 
303
319
  .kne-form-creator_wSVJf {
304
- flex: 0 1 auto;
305
320
  min-width: 0;
306
- max-width: 160px;
307
- overflow: hidden;
321
+ padding-left: 26px;
322
+ color: rgba(0, 0, 0, 0.88);
308
323
  font-size: 14px;
324
+ font-weight: 600;
325
+ line-height: 1.5;
326
+ word-break: break-word;
327
+ display: -webkit-box;
328
+ -webkit-line-clamp: 2;
329
+ -webkit-box-orient: vertical;
330
+ overflow: hidden;
331
+ }
332
+
333
+ .kne-form-creator_Ufp-W {
334
+ flex: none;
335
+ width: 20px;
336
+ height: 20px;
337
+ padding: 0;
338
+ border: 0;
339
+ border-radius: 6px;
340
+ background: transparent;
341
+ color: rgba(0, 0, 0, 0.45);
342
+ display: inline-flex;
343
+ align-items: center;
344
+ justify-content: center;
345
+ cursor: pointer;
346
+ transition: background 0.15s ease, color 0.15s ease;
347
+ }
348
+ .kne-form-creator_Ufp-W .anticon {
349
+ font-size: 10px;
350
+ transition: transform 0.2s ease;
351
+ }
352
+ .kne-form-creator_Ufp-W:hover {
353
+ background: rgba(0, 0, 0, 0.06);
354
+ color: rgba(0, 0, 0, 0.88);
355
+ }
356
+ .kne-form-creator_Ufp-W:focus-visible {
357
+ outline: 2px solid var(--ant-color-primary, #4183f0);
358
+ outline-offset: 1px;
359
+ }
360
+ .kne-form-creator_Ufp-W.kne-form-creator_OjfBl .anticon {
361
+ transform: rotate(90deg);
362
+ }
363
+
364
+ .kne-form-creator_7GuXk {
365
+ flex: none;
366
+ touch-action: none;
367
+ width: 18px;
368
+ height: 22px;
369
+ border-radius: 4px;
370
+ color: rgba(0, 0, 0, 0.35);
371
+ display: inline-flex;
372
+ align-items: center;
373
+ justify-content: center;
374
+ cursor: grab;
375
+ }
376
+ .kne-form-creator_7GuXk:hover {
377
+ background: rgba(0, 0, 0, 0.06);
378
+ color: rgba(0, 0, 0, 0.75);
379
+ }
380
+ .kne-form-creator_7GuXk:active {
381
+ cursor: grabbing;
382
+ }
383
+
384
+ /* 移动端「⋯」更多操作 */
385
+ .kne-form-creator_paWIZ {
386
+ flex: none;
387
+ display: inline-flex;
388
+ --button-group-more-height: 28px;
389
+ --button-group-more-min-width: 28px;
390
+ --button-group-more-padding-inline: 0;
391
+ }
392
+ .kne-form-creator_paWIZ .ant-btn {
393
+ border-radius: 999px;
394
+ color: rgba(0, 0, 0, 0.55);
395
+ }
396
+ .kne-form-creator_paWIZ .ant-btn:hover, .kne-form-creator_paWIZ .ant-btn:active {
397
+ background: rgba(0, 0, 0, 0.06);
398
+ color: rgba(0, 0, 0, 0.88);
399
+ }
400
+
401
+ /* 操作组内的拖柄:与 action-btn 同尺寸 */
402
+ .kne-form-creator_lhTrX {
403
+ width: 26px;
404
+ height: 26px;
405
+ border-radius: 999px;
406
+ font-size: 12px;
407
+ color: rgba(0, 0, 0, 0.55);
408
+ }
409
+ .kne-form-creator_lhTrX:hover {
410
+ background: rgba(255, 255, 255, 0.85);
411
+ color: rgba(0, 0, 0, 0.88);
412
+ }
413
+
414
+ /* SortableJS:列表内占位为虚线空槽,跟随鼠标的浮层带投影 */
415
+ .kne-form-creator_7ZIH8 {
416
+ background: rgba(65, 131, 240, 0.06) !important;
417
+ outline: 1.5px dashed rgba(65, 131, 240, 0.55);
418
+ outline-offset: -1.5px;
419
+ box-shadow: none !important;
420
+ }
421
+ .kne-form-creator_7ZIH8 > * {
422
+ opacity: 0;
423
+ }
424
+
425
+ /* 浮层靠 inline transform 跟随指针,继承行上的 transform 过渡会导致不跟手 */
426
+ .kne-form-creator_dxhFH {
427
+ opacity: 1 !important;
428
+ transition: none !important;
429
+ will-change: transform;
430
+ cursor: grabbing;
431
+ box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
432
+ }
433
+ .kne-form-creator_dxhFH .kne-form-creator_773yo,
434
+ .kne-form-creator_dxhFH .kne-form-creator_S234h {
435
+ opacity: 0 !important;
309
436
  }
310
437
 
311
438
  .kne-form-creator_GzeW8 {
@@ -327,6 +454,7 @@
327
454
 
328
455
  .kne-form-creator_Ue-nT {
329
456
  flex-shrink: 0;
457
+ margin-left: auto;
330
458
  }
331
459
 
332
460
  .kne-form-creator_je1H0 {
@@ -451,6 +579,29 @@
451
579
  flex: 1;
452
580
  min-width: 0;
453
581
  max-width: 100%;
582
+ display: flex;
583
+ align-items: flex-start;
584
+ gap: 8px;
585
+ }
586
+ .kne-form-creator_NBinE .kne-form-creator_CCKZZ {
587
+ flex: none;
588
+ margin-top: 1px;
589
+ }
590
+
591
+ .kne-form-creator_hRFew {
592
+ flex: 1;
593
+ min-width: 0;
594
+ display: flex;
595
+ flex-wrap: wrap;
596
+ align-items: baseline;
597
+ gap: 2px 8px;
598
+ line-height: 22px;
599
+ word-break: break-word;
600
+ }
601
+
602
+ .kne-form-creator_G6Quc {
603
+ font-size: 12px;
604
+ white-space: nowrap;
454
605
  }
455
606
 
456
607
  .kne-form-creator_es-FC {
@@ -474,12 +625,13 @@
474
625
  font-weight: 600;
475
626
  }
476
627
 
477
- /* 填写项:白底块 */
628
+ /* 填写项:白底块;操作组浮在右上角,不占标题宽度 */
478
629
  .kne-form-creator_XMkdt {
630
+ position: relative;
479
631
  display: flex;
480
- align-items: center;
632
+ align-items: flex-start;
481
633
  gap: 10px;
482
- padding: 8px 10px;
634
+ padding: 10px 12px;
483
635
  border-radius: 10px;
484
636
  background: #ffffff;
485
637
  transition: background 0.15s ease, transform 0.15s ease;
@@ -488,13 +640,38 @@
488
640
  background: #fcfdff;
489
641
  transform: translateY(-0.5px);
490
642
  }
643
+ .kne-form-creator_XMkdt > .kne-form-creator_773yo {
644
+ position: absolute;
645
+ top: 6px;
646
+ right: 6px;
647
+ z-index: 2;
648
+ background: #ffffff;
649
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
650
+ }
491
651
 
492
652
  .kne-form-creator_a-cDo {
653
+ position: relative;
493
654
  width: 18px;
655
+ height: 22px;
494
656
  flex-shrink: 0;
657
+ display: inline-flex;
658
+ align-items: center;
659
+ justify-content: center;
495
660
  color: #bfbfbf;
496
661
  font-size: 12px;
497
- text-align: center;
662
+ }
663
+ .kne-form-creator_a-cDo .kne-form-creator_7GuXk {
664
+ position: absolute;
665
+ inset: 0;
666
+ width: auto;
667
+ opacity: 0;
668
+ }
669
+
670
+ .kne-form-creator_XMkdt:hover .kne-form-creator_a-cDo.kne-form-creator_vbTgK .kne-form-creator_e4yEp {
671
+ opacity: 0;
672
+ }
673
+ .kne-form-creator_XMkdt:hover .kne-form-creator_a-cDo.kne-form-creator_vbTgK .kne-form-creator_7GuXk {
674
+ opacity: 1;
498
675
  }
499
676
 
500
677
  .kne-form-creator_ftlwp {
@@ -508,6 +685,8 @@
508
685
 
509
686
  .kne-form-creator_XAxbE {
510
687
  max-width: 100%;
688
+ font-weight: 500;
689
+ line-height: 22px;
511
690
  word-break: break-word;
512
691
  }
513
692
 
@@ -825,51 +1004,151 @@
825
1004
  margin-top: 8px;
826
1005
  }
827
1006
 
828
- .kne-form-creator_PGPHL {
1007
+ /* 属性弹窗:头尾固定,中间内容区独立滚动 */
1008
+ .kne-form-creator_wRSZC .ant-modal-body {
1009
+ max-height: calc(100vh - 220px);
1010
+ margin-inline: -24px;
1011
+ padding: 4px 24px 8px;
1012
+ overflow-y: auto;
1013
+ overscroll-behavior: contain;
1014
+ }
1015
+
1016
+ /* 弹窗顶部:当前编辑对象的类型与用途说明 */
1017
+ .kne-form-creator_uOGOq {
829
1018
  display: flex;
830
- flex-direction: column;
831
- gap: 24px;
832
- padding-top: 4px;
1019
+ align-items: flex-start;
1020
+ gap: 10px;
1021
+ margin-bottom: 16px;
1022
+ padding: 10px 12px;
1023
+ border-radius: 10px;
1024
+ background: #f6f8fb;
1025
+ color: rgba(0, 0, 0, 0.55);
1026
+ font-size: 13px;
1027
+ line-height: 22px;
1028
+ }
1029
+ .kne-form-creator_uOGOq .ant-tag {
1030
+ flex: none;
1031
+ margin: 0;
833
1032
  }
834
1033
 
835
- .kne-form-creator_fchMy {
1034
+ /* 属性分区:带序号的卡片,标题下附一句说明,按填写顺序自上而下 */
1035
+ .kne-form-creator_PGPHL {
836
1036
  display: flex;
837
1037
  flex-direction: column;
838
1038
  gap: 16px;
839
- padding-top: 4px;
1039
+ counter-reset: editor-section;
840
1040
  }
841
- .kne-form-creator_fchMy .ant-row {
842
- row-gap: 8px;
1041
+ .kne-form-creator_PGPHL .part.ant-card {
1042
+ border: 1px solid #edf0f5 !important;
1043
+ border-radius: 12px !important;
1044
+ background: #ffffff !important;
1045
+ box-shadow: none !important;
1046
+ overflow: hidden;
843
1047
  }
844
-
845
- .kne-form-creator_6JE9x .react-form__field-main {
846
- min-height: 32px;
1048
+ .kne-form-creator_PGPHL .part.ant-card:not(.no-title) {
1049
+ counter-increment: editor-section;
1050
+ }
1051
+ .kne-form-creator_PGPHL .part.ant-card > .ant-card-head {
1052
+ min-height: 0;
1053
+ margin: 0 !important;
1054
+ padding: 12px 16px !important;
1055
+ border-bottom: 1px solid #f0f2f5 !important;
1056
+ background: #fafbfc !important;
1057
+ }
1058
+ .kne-form-creator_PGPHL .part.ant-card > .ant-card-head .ant-card-head-title {
1059
+ padding: 0;
1060
+ white-space: normal;
1061
+ }
1062
+ .kne-form-creator_PGPHL .part.ant-card > .ant-card-head .part-title {
847
1063
  display: flex;
848
1064
  align-items: center;
1065
+ gap: 8px;
1066
+ padding: 0 !important;
1067
+ color: rgba(0, 0, 0, 0.88);
1068
+ font-size: 14px;
1069
+ font-weight: 600;
1070
+ line-height: 22px;
849
1071
  }
850
-
851
- .kne-form-creator_rtm9D {
852
- padding: 14px 16px 18px;
853
- border-radius: 10px;
854
- background: #f7f8fa;
855
- border: 1px solid rgba(0, 0, 0, 0.04);
1072
+ .kne-form-creator_PGPHL .part.ant-card > .ant-card-head .part-title::before {
1073
+ content: counter(editor-section);
1074
+ position: static !important;
1075
+ display: inline-flex;
1076
+ flex: none;
1077
+ align-items: center;
1078
+ justify-content: center;
1079
+ width: 20px !important;
1080
+ height: 20px !important;
1081
+ margin: 0 !important;
1082
+ border-radius: 6px !important;
1083
+ background: var(--primary-color, #1677ff) !important;
1084
+ color: #ffffff;
1085
+ font-size: 12px;
1086
+ font-weight: 600;
1087
+ transform: none !important;
856
1088
  }
857
- .kne-form-creator_rtm9D .ant-card {
858
- background: transparent !important;
859
- border: none !important;
860
- box-shadow: none !important;
1089
+ .kne-form-creator_PGPHL .part.ant-card > .ant-card-head .part-title-sub {
1090
+ margin: 2px 0 0 28px !important;
1091
+ padding: 0 !important;
1092
+ color: rgba(0, 0, 0, 0.45);
1093
+ font-size: 12px;
1094
+ font-weight: 400;
1095
+ line-height: 20px;
861
1096
  }
862
- .kne-form-creator_rtm9D .ant-card-head {
1097
+ .kne-form-creator_PGPHL {
1098
+ /* 表单项自带 22px 下边距用于放校验信息,底部内边距相应收窄 */
1099
+ }
1100
+ .kne-form-creator_PGPHL .part.ant-card > .ant-card-body {
1101
+ padding: 16px 16px 0 !important;
1102
+ }
1103
+ .kne-form-creator_PGPHL {
1104
+ /* 分区内部再嵌套的 FormInfo(如树形选项、表格行)保持原有轻量样式 */
1105
+ }
1106
+ .kne-form-creator_PGPHL .part.ant-card .part.ant-card {
1107
+ counter-increment: none;
1108
+ border-radius: 8px !important;
1109
+ }
1110
+ .kne-form-creator_PGPHL .part.ant-card .part.ant-card > .ant-card-head .part-title::before {
1111
+ content: none;
863
1112
  display: none;
864
1113
  }
865
- .kne-form-creator_rtm9D .ant-card-body {
1114
+ .kne-form-creator_PGPHL .part.ant-card .part.ant-card > .ant-card-head .part-title-sub {
1115
+ margin-left: 0 !important;
1116
+ }
1117
+
1118
+ /* 分区内的开关组:无外框,与上方输入项隔开一行 */
1119
+ .kne-form-creator_PGPHL .kne-form-creator_Dfyhx.part.ant-card {
1120
+ border: none !important;
1121
+ border-radius: 0 !important;
1122
+ background: transparent !important;
1123
+ overflow: visible;
1124
+ }
1125
+ .kne-form-creator_PGPHL .kne-form-creator_Dfyhx.part.ant-card > .ant-card-body {
866
1126
  padding: 0 !important;
867
1127
  }
868
- .kne-form-creator_rtm9D .ant-form-item {
869
- margin-bottom: 14px;
1128
+
1129
+ /* 非表单项内容(选项列表等)没有 22px 校验预留,补齐分区底部留白 */
1130
+ .kne-form-creator_PGPHL .part.ant-card .kne-form-creator_AK4yO,
1131
+ .kne-form-creator_PGPHL .part.ant-card .kne-form-creator_DQW1N,
1132
+ .kne-form-creator_PGPHL .part.ant-card .kne-form-creator_-meJG {
1133
+ padding-bottom: 16px;
1134
+ }
1135
+
1136
+ /* 只有一个无标题分区的小弹窗(步骤、选项)不需要卡片外框 */
1137
+ .kne-form-creator_PGPHL.kne-form-creator_IiViE .part.ant-card {
1138
+ border: none !important;
870
1139
  }
871
- .kne-form-creator_rtm9D .ant-form-item:last-child {
872
- margin-bottom: 0;
1140
+ .kne-form-creator_PGPHL.kne-form-creator_IiViE .part.ant-card.no-title > .ant-card-body {
1141
+ padding: 0 !important;
1142
+ }
1143
+
1144
+ .kne-form-creator_fchMy .ant-row {
1145
+ row-gap: 8px;
1146
+ }
1147
+
1148
+ .kne-form-creator_6JE9x .react-form__field-main {
1149
+ min-height: 32px;
1150
+ display: flex;
1151
+ align-items: center;
873
1152
  }
874
1153
 
875
1154
  .kne-form-creator_51ZsV {
@@ -916,14 +1195,6 @@
916
1195
  filter: brightness(1.08);
917
1196
  }
918
1197
 
919
- .kne-form-creator_hFeiC {
920
- margin-bottom: 12px;
921
- color: rgba(0, 0, 0, 0.65);
922
- font-size: 13px;
923
- font-weight: 500;
924
- letter-spacing: 0.02em;
925
- }
926
-
927
1198
  .kne-form-creator_Gq0bk {
928
1199
  margin: 0 6px 8px !important;
929
1200
  padding-bottom: 12px;
@@ -1283,25 +1554,34 @@
1283
1554
  opacity: 1;
1284
1555
  pointer-events: auto;
1285
1556
  }
1286
- .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_wS4rL {
1287
- flex-wrap: wrap;
1288
- align-items: flex-start;
1289
- gap: 8px;
1557
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz {
1558
+ /* 头部一行:折叠 / 拖柄 / 类型 / 数量 … 右侧图标添加 +「⋯」菜单 */
1290
1559
  }
1291
- .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_t4awC {
1292
- width: 100%;
1293
- flex-wrap: wrap;
1560
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_PQiYV {
1561
+ gap: 4px;
1294
1562
  }
1295
- .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_wSVJf {
1296
- max-width: 160px;
1297
- flex: 0 1 auto;
1563
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_PQiYV .kne-form-creator_GzeW8 {
1564
+ min-width: 0;
1565
+ overflow: hidden;
1566
+ text-overflow: ellipsis;
1298
1567
  }
1299
1568
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_Ue-nT {
1300
- width: 100%;
1301
- display: flex;
1302
- justify-content: flex-end;
1303
- flex-wrap: wrap;
1304
- gap: 6px;
1569
+ flex-shrink: 0;
1570
+ margin-left: auto;
1571
+ gap: 4px;
1572
+ }
1573
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz {
1574
+ /* 触屏无 hover:可拖的填写项直接显示拖柄 */
1575
+ }
1576
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_a-cDo.kne-form-creator_vbTgK .kne-form-creator_e4yEp {
1577
+ opacity: 0;
1578
+ }
1579
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_a-cDo.kne-form-creator_vbTgK .kne-form-creator_7GuXk {
1580
+ opacity: 1;
1581
+ }
1582
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_7GuXk {
1583
+ width: 22px;
1584
+ height: 28px;
1305
1585
  }
1306
1586
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_GzeW8 {
1307
1587
  margin-left: 0;
@@ -1310,38 +1590,41 @@
1310
1590
  padding: 8px 10px;
1311
1591
  }
1312
1592
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_wkhEX {
1593
+ flex-wrap: nowrap;
1313
1594
  align-items: flex-start;
1314
1595
  gap: 8px;
1315
1596
  }
1316
- .kne-form-creator_Xrjrk.kne-form-creator_LtgJz {
1317
- /* 标题独占一行,避免与常显操作栏挤成竖排字 */
1318
- }
1319
1597
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_NBinE {
1320
- flex: 0 0 100%;
1321
- width: 100%;
1598
+ flex: 1 1 auto;
1322
1599
  min-width: 0;
1323
- max-width: 100%;
1324
1600
  }
1325
1601
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_es-FC {
1326
- width: 100%;
1327
- justify-content: flex-end;
1328
- gap: 6px;
1602
+ flex-shrink: 0;
1603
+ gap: 4px;
1604
+ }
1605
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz {
1606
+ /* 填写项单行:拖柄 | 标题与标签(点按编辑)| ⋯ */
1329
1607
  }
1330
1608
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_XMkdt {
1331
- flex-wrap: wrap;
1332
1609
  gap: 8px;
1333
- padding: 8px;
1610
+ padding: 8px 4px 8px 8px;
1334
1611
  transform: none;
1335
1612
  }
1336
1613
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_XMkdt:hover {
1337
1614
  transform: none;
1338
1615
  }
1616
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_a-cDo {
1617
+ width: 22px;
1618
+ height: 28px;
1619
+ }
1339
1620
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_ftlwp {
1340
- flex: 1 1 calc(100% - 28px);
1621
+ flex: 1 1 auto;
1341
1622
  min-width: 0;
1623
+ padding-top: 3px;
1342
1624
  }
1343
- .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_XMkdt .kne-form-creator_773yo {
1344
- margin-left: auto;
1625
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_ftlwp[role=button] {
1626
+ cursor: pointer;
1627
+ -webkit-tap-highlight-color: transparent;
1345
1628
  }
1346
1629
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_vmS-e {
1347
1630
  width: min(380px, 100vw - 32px);
@@ -1350,6 +1633,16 @@
1350
1633
  height: 28px !important;
1351
1634
  padding: 0 12px !important;
1352
1635
  }
1636
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_iCYdB.kne-form-creator_jbBze {
1637
+ width: 28px !important;
1638
+ min-width: 28px !important;
1639
+ padding: 0 !important;
1640
+ justify-content: center;
1641
+ background: rgba(255, 255, 255, 0.85) !important;
1642
+ }
1643
+ .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_iCYdB.kne-form-creator_jbBze .anticon {
1644
+ font-size: 12px;
1645
+ }
1353
1646
  .kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_mLgqh {
1354
1647
  width: 28px !important;
1355
1648
  height: 28px !important;
@@ -1369,4 +1662,216 @@
1369
1662
  overflow-x: auto;
1370
1663
  }
1371
1664
  }
1665
+ /*
1666
+ * steps 聚焦样式(stepsStyle: 'focus'):隐藏 antd 步骤条,只保留当前步骤 title 位,
1667
+ * 由 FocusSteps 填入自绘头部:「02 / 05 · 下一步」+ 大标题(可换行)+ 分段进度。
1668
+ * antd Steps 自带布局优先级高,结构性属性需 !important。
1669
+ */
1670
+ *:has(> .kne-form-creator_BzrAJ) {
1671
+ width: 100% !important;
1672
+ max-width: 100% !important;
1673
+ }
1674
+
1675
+ .kne-form-creator_BzrAJ.ant-steps {
1676
+ display: block !important;
1677
+ width: 100% !important;
1678
+ overflow: visible !important;
1679
+ }
1680
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item:not(.ant-steps-item-active),
1681
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-icon,
1682
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-rail,
1683
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-subtitle,
1684
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-content {
1685
+ display: none !important;
1686
+ }
1687
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-active,
1688
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-active .ant-steps-item-wrapper,
1689
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-active .ant-steps-item-section,
1690
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-active .ant-steps-item-header {
1691
+ display: block !important;
1692
+ flex: none !important;
1693
+ width: 100% !important;
1694
+ max-width: none !important;
1695
+ min-width: 0;
1696
+ padding: 0 !important;
1697
+ margin: 0 !important;
1698
+ overflow: visible !important;
1699
+ }
1700
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-active .ant-steps-item-title {
1701
+ display: block !important;
1702
+ width: 100%;
1703
+ padding: 0 !important;
1704
+ margin: 0 !important;
1705
+ color: inherit !important;
1706
+ font-size: inherit !important;
1707
+ font-weight: inherit !important;
1708
+ line-height: inherit !important;
1709
+ white-space: normal !important;
1710
+ overflow: visible !important;
1711
+ }
1712
+ .kne-form-creator_BzrAJ.ant-steps .ant-steps-item-active .ant-steps-item-title::after {
1713
+ display: none !important;
1714
+ }
1715
+
1716
+ .kne-form-creator_fF02T {
1717
+ --fc-step-primary: var(--ant-color-primary, #1677ff);
1718
+ --fc-step-text: var(--ant-color-text, rgba(0, 0, 0, 0.88));
1719
+ --fc-step-text-secondary: var(--ant-color-text-secondary, rgba(0, 0, 0, 0.65));
1720
+ --fc-step-text-tertiary: var(--ant-color-text-tertiary, rgba(0, 0, 0, 0.45));
1721
+ --fc-step-track: var(--ant-color-fill-secondary, rgba(0, 0, 0, 0.06));
1722
+ display: flex;
1723
+ flex-direction: column;
1724
+ gap: 10px;
1725
+ padding: 16px 20px 18px;
1726
+ border-radius: 12px;
1727
+ background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--fc-step-primary) 9%, transparent) 0%, transparent 60%), var(--ant-color-fill-quaternary, rgba(0, 0, 0, 0.02));
1728
+ border: 1px solid color-mix(in srgb, var(--fc-step-primary) 12%, transparent);
1729
+ text-align: left;
1730
+ }
1731
+
1732
+ .kne-form-creator_4Q3Nt {
1733
+ display: flex;
1734
+ align-items: baseline;
1735
+ justify-content: space-between;
1736
+ gap: 16px;
1737
+ min-width: 0;
1738
+ }
1739
+
1740
+ .kne-form-creator_-vGec {
1741
+ flex: none;
1742
+ display: inline-flex;
1743
+ align-items: baseline;
1744
+ gap: 4px;
1745
+ font-variant-numeric: tabular-nums;
1746
+ letter-spacing: 0.02em;
1747
+ }
1748
+
1749
+ .kne-form-creator_vXk2o {
1750
+ font-size: 22px;
1751
+ font-weight: 700;
1752
+ line-height: 1;
1753
+ color: var(--fc-step-primary);
1754
+ }
1755
+
1756
+ .kne-form-creator_bpGjx {
1757
+ font-size: 13px;
1758
+ font-weight: 500;
1759
+ color: var(--fc-step-text-tertiary);
1760
+ }
1761
+
1762
+ .kne-form-creator_a2ZfJ {
1763
+ min-width: 0;
1764
+ max-width: 60%;
1765
+ font-size: 12px;
1766
+ line-height: 1.5;
1767
+ color: var(--fc-step-text-tertiary);
1768
+ white-space: nowrap;
1769
+ overflow: hidden;
1770
+ text-overflow: ellipsis;
1771
+ }
1772
+
1773
+ .kne-form-creator_Q5bvO {
1774
+ font-size: 18px;
1775
+ font-weight: 600;
1776
+ line-height: 1.45;
1777
+ color: var(--fc-step-text);
1778
+ word-break: break-word;
1779
+ overflow-wrap: anywhere;
1780
+ }
1781
+
1782
+ .kne-form-creator_Cdvj5 {
1783
+ display: flex;
1784
+ gap: 4px;
1785
+ margin-top: 2px;
1786
+ }
1787
+
1788
+ .kne-form-creator_4z3t0 {
1789
+ flex: 1 1 0;
1790
+ min-width: 6px;
1791
+ height: 4px;
1792
+ padding: 0;
1793
+ border: 0;
1794
+ border-radius: 999px;
1795
+ background: var(--fc-step-track);
1796
+ cursor: default;
1797
+ transition: background-color 0.3s ease, transform 0.2s ease;
1798
+ }
1799
+ .kne-form-creator_4z3t0.kne-form-creator_nBNzi {
1800
+ background: color-mix(in srgb, var(--fc-step-primary) 45%, transparent);
1801
+ cursor: pointer;
1802
+ }
1803
+ .kne-form-creator_4z3t0.kne-form-creator_nBNzi:hover {
1804
+ background: var(--fc-step-primary);
1805
+ transform: scaleY(1.5);
1806
+ }
1807
+ .kne-form-creator_4z3t0.kne-form-creator_a8lqo {
1808
+ background: var(--fc-step-primary);
1809
+ }
1810
+ .kne-form-creator_4z3t0:focus-visible {
1811
+ outline: 2px solid color-mix(in srgb, var(--fc-step-primary) 40%, transparent);
1812
+ outline-offset: 2px;
1813
+ }
1814
+
1815
+ .kne-form-creator_NgZBR {
1816
+ display: flex;
1817
+ align-items: center;
1818
+ justify-content: space-between;
1819
+ gap: 12px;
1820
+ margin-top: 20px;
1821
+ padding-top: 16px;
1822
+ border-top: 1px dashed var(--ant-color-border-secondary, #f0f0f0);
1823
+ }
1824
+
1825
+ .kne-form-creator_ynPls {
1826
+ display: flex;
1827
+ align-items: center;
1828
+ min-width: 0;
1829
+ }
1830
+ .kne-form-creator_ynPls.kne-form-creator_syD91 {
1831
+ justify-content: flex-end;
1832
+ flex: 1 1 auto;
1833
+ }
1834
+
1835
+ .kne-form-creator_5NtBV.ant-btn {
1836
+ height: 36px;
1837
+ padding-inline: 12px 16px;
1838
+ border-radius: 999px;
1839
+ color: var(--ant-color-text-secondary, rgba(0, 0, 0, 0.65));
1840
+ }
1841
+
1842
+ .kne-form-creator_1mMAJ.ant-btn {
1843
+ display: inline-flex;
1844
+ align-items: center;
1845
+ gap: 8px;
1846
+ max-width: 100%;
1847
+ height: 36px;
1848
+ padding-inline: 18px 14px;
1849
+ border-radius: 999px;
1850
+ font-weight: 600;
1851
+ }
1852
+ .kne-form-creator_1mMAJ.ant-btn .kne-form-creator_OQvek {
1853
+ flex: none;
1854
+ font-size: 12px;
1855
+ transition: transform 0.2s ease;
1856
+ }
1857
+ .kne-form-creator_1mMAJ.ant-btn:hover .kne-form-creator_OQvek {
1858
+ transform: translateX(3px);
1859
+ }
1860
+
1861
+ .kne-form-creator_b0T7j {
1862
+ font-size: 12px;
1863
+ color: var(--ant-color-text-tertiary, rgba(0, 0, 0, 0.45));
1864
+ }
1865
+
1866
+ @container kne-responsive (max-width: 768px) {
1867
+ .kne-form-creator_fF02T {
1868
+ padding: 14px 14px 16px;
1869
+ }
1870
+ .kne-form-creator_Q5bvO {
1871
+ font-size: 16px;
1872
+ }
1873
+ .kne-form-creator_a2ZfJ {
1874
+ max-width: 55%;
1875
+ }
1876
+ }
1372
1877
  /*# sourceMappingURL=index.css.map */