@kne/form-creator 0.1.27 → 0.1.29
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/README.md +249 -16
- package/dist/index.css +574 -79
- package/dist/index.css.map +1 -1
- package/dist/index.js +1119 -493
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1134 -534
- package/dist/index.modern.js.map +1 -1
- package/dist/locale/en-US.js +29 -0
- package/dist/locale/en-US.js.map +1 -1
- package/dist/locale/en-US.modern.js +29 -0
- package/dist/locale/en-US.modern.js.map +1 -1
- package/dist/locale/zh-CN.js +29 -0
- package/dist/locale/zh-CN.js.map +1 -1
- package/dist/locale/zh-CN.modern.js +29 -0
- package/dist/locale/zh-CN.modern.js.map +1 -1
- package/package.json +6 -4
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 {
|
|
@@ -290,32 +296,143 @@
|
|
|
290
296
|
background: rgba(255, 255, 255, 0.72);
|
|
291
297
|
}
|
|
292
298
|
|
|
299
|
+
/* 头部:元信息行(折叠 / 拖柄 / 类型 / 数量 / 操作)+ 独占整行的标题,长标题最多两行 */
|
|
293
300
|
.kne-form-creator_wS4rL {
|
|
294
301
|
display: flex;
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
gap: 8px;
|
|
302
|
+
flex-direction: column;
|
|
303
|
+
gap: 6px;
|
|
298
304
|
min-width: 0;
|
|
299
305
|
}
|
|
300
306
|
|
|
301
|
-
.kne-form-
|
|
307
|
+
.kne-form-creator_PQiYV {
|
|
302
308
|
display: flex;
|
|
303
309
|
align-items: center;
|
|
304
|
-
|
|
305
|
-
gap: 6px 8px;
|
|
310
|
+
gap: 6px;
|
|
306
311
|
min-width: 0;
|
|
307
|
-
|
|
312
|
+
min-height: 28px;
|
|
308
313
|
}
|
|
309
|
-
.kne-form-
|
|
314
|
+
.kne-form-creator_PQiYV .ant-tag {
|
|
310
315
|
flex-shrink: 0;
|
|
316
|
+
margin-inline-end: 0;
|
|
311
317
|
}
|
|
312
318
|
|
|
313
319
|
.kne-form-creator_wSVJf {
|
|
314
|
-
flex: 0 1 auto;
|
|
315
320
|
min-width: 0;
|
|
316
|
-
|
|
317
|
-
|
|
321
|
+
padding-left: 26px;
|
|
322
|
+
color: rgba(0, 0, 0, 0.88);
|
|
318
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;
|
|
319
436
|
}
|
|
320
437
|
|
|
321
438
|
.kne-form-creator_GzeW8 {
|
|
@@ -337,6 +454,7 @@
|
|
|
337
454
|
|
|
338
455
|
.kne-form-creator_Ue-nT {
|
|
339
456
|
flex-shrink: 0;
|
|
457
|
+
margin-left: auto;
|
|
340
458
|
}
|
|
341
459
|
|
|
342
460
|
.kne-form-creator_je1H0 {
|
|
@@ -461,6 +579,29 @@
|
|
|
461
579
|
flex: 1;
|
|
462
580
|
min-width: 0;
|
|
463
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;
|
|
464
605
|
}
|
|
465
606
|
|
|
466
607
|
.kne-form-creator_es-FC {
|
|
@@ -484,12 +625,13 @@
|
|
|
484
625
|
font-weight: 600;
|
|
485
626
|
}
|
|
486
627
|
|
|
487
|
-
/*
|
|
628
|
+
/* 填写项:白底块;操作组浮在右上角,不占标题宽度 */
|
|
488
629
|
.kne-form-creator_XMkdt {
|
|
630
|
+
position: relative;
|
|
489
631
|
display: flex;
|
|
490
|
-
align-items:
|
|
632
|
+
align-items: flex-start;
|
|
491
633
|
gap: 10px;
|
|
492
|
-
padding:
|
|
634
|
+
padding: 10px 12px;
|
|
493
635
|
border-radius: 10px;
|
|
494
636
|
background: #ffffff;
|
|
495
637
|
transition: background 0.15s ease, transform 0.15s ease;
|
|
@@ -498,13 +640,38 @@
|
|
|
498
640
|
background: #fcfdff;
|
|
499
641
|
transform: translateY(-0.5px);
|
|
500
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
|
+
}
|
|
501
651
|
|
|
502
652
|
.kne-form-creator_a-cDo {
|
|
653
|
+
position: relative;
|
|
503
654
|
width: 18px;
|
|
655
|
+
height: 22px;
|
|
504
656
|
flex-shrink: 0;
|
|
657
|
+
display: inline-flex;
|
|
658
|
+
align-items: center;
|
|
659
|
+
justify-content: center;
|
|
505
660
|
color: #bfbfbf;
|
|
506
661
|
font-size: 12px;
|
|
507
|
-
|
|
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;
|
|
508
675
|
}
|
|
509
676
|
|
|
510
677
|
.kne-form-creator_ftlwp {
|
|
@@ -518,6 +685,8 @@
|
|
|
518
685
|
|
|
519
686
|
.kne-form-creator_XAxbE {
|
|
520
687
|
max-width: 100%;
|
|
688
|
+
font-weight: 500;
|
|
689
|
+
line-height: 22px;
|
|
521
690
|
word-break: break-word;
|
|
522
691
|
}
|
|
523
692
|
|
|
@@ -835,51 +1004,151 @@
|
|
|
835
1004
|
margin-top: 8px;
|
|
836
1005
|
}
|
|
837
1006
|
|
|
838
|
-
|
|
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 {
|
|
839
1018
|
display: flex;
|
|
840
|
-
|
|
841
|
-
gap:
|
|
842
|
-
|
|
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;
|
|
843
1032
|
}
|
|
844
1033
|
|
|
845
|
-
|
|
1034
|
+
/* 属性分区:带序号的卡片,标题下附一句说明,按填写顺序自上而下 */
|
|
1035
|
+
.kne-form-creator_PGPHL {
|
|
846
1036
|
display: flex;
|
|
847
1037
|
flex-direction: column;
|
|
848
1038
|
gap: 16px;
|
|
849
|
-
|
|
1039
|
+
counter-reset: editor-section;
|
|
850
1040
|
}
|
|
851
|
-
.kne-form-
|
|
852
|
-
|
|
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;
|
|
853
1047
|
}
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
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 {
|
|
857
1063
|
display: flex;
|
|
858
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;
|
|
859
1071
|
}
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
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;
|
|
866
1088
|
}
|
|
867
|
-
.kne-form-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
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;
|
|
1096
|
+
}
|
|
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;
|
|
871
1102
|
}
|
|
872
|
-
.kne-form-
|
|
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;
|
|
873
1112
|
display: none;
|
|
874
1113
|
}
|
|
875
|
-
.kne-form-
|
|
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 {
|
|
876
1126
|
padding: 0 !important;
|
|
877
1127
|
}
|
|
878
|
-
|
|
879
|
-
|
|
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;
|
|
880
1134
|
}
|
|
881
|
-
|
|
882
|
-
|
|
1135
|
+
|
|
1136
|
+
/* 只有一个无标题分区的小弹窗(步骤、选项)不需要卡片外框 */
|
|
1137
|
+
.kne-form-creator_PGPHL.kne-form-creator_IiViE .part.ant-card {
|
|
1138
|
+
border: none !important;
|
|
1139
|
+
}
|
|
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;
|
|
883
1152
|
}
|
|
884
1153
|
|
|
885
1154
|
.kne-form-creator_51ZsV {
|
|
@@ -926,14 +1195,6 @@
|
|
|
926
1195
|
filter: brightness(1.08);
|
|
927
1196
|
}
|
|
928
1197
|
|
|
929
|
-
.kne-form-creator_hFeiC {
|
|
930
|
-
margin-bottom: 12px;
|
|
931
|
-
color: rgba(0, 0, 0, 0.65);
|
|
932
|
-
font-size: 13px;
|
|
933
|
-
font-weight: 500;
|
|
934
|
-
letter-spacing: 0.02em;
|
|
935
|
-
}
|
|
936
|
-
|
|
937
1198
|
.kne-form-creator_Gq0bk {
|
|
938
1199
|
margin: 0 6px 8px !important;
|
|
939
1200
|
padding-bottom: 12px;
|
|
@@ -1293,25 +1554,34 @@
|
|
|
1293
1554
|
opacity: 1;
|
|
1294
1555
|
pointer-events: auto;
|
|
1295
1556
|
}
|
|
1296
|
-
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz
|
|
1297
|
-
|
|
1298
|
-
align-items: flex-start;
|
|
1299
|
-
gap: 8px;
|
|
1557
|
+
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz {
|
|
1558
|
+
/* 头部一行:折叠 / 拖柄 / 类型 / 数量 … 右侧图标添加 +「⋯」菜单 */
|
|
1300
1559
|
}
|
|
1301
|
-
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-
|
|
1302
|
-
|
|
1303
|
-
flex-wrap: wrap;
|
|
1560
|
+
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_PQiYV {
|
|
1561
|
+
gap: 4px;
|
|
1304
1562
|
}
|
|
1305
|
-
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-
|
|
1306
|
-
|
|
1307
|
-
|
|
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;
|
|
1308
1567
|
}
|
|
1309
1568
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_Ue-nT {
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
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;
|
|
1315
1585
|
}
|
|
1316
1586
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_GzeW8 {
|
|
1317
1587
|
margin-left: 0;
|
|
@@ -1320,38 +1590,41 @@
|
|
|
1320
1590
|
padding: 8px 10px;
|
|
1321
1591
|
}
|
|
1322
1592
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_wkhEX {
|
|
1593
|
+
flex-wrap: nowrap;
|
|
1323
1594
|
align-items: flex-start;
|
|
1324
1595
|
gap: 8px;
|
|
1325
1596
|
}
|
|
1326
|
-
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz {
|
|
1327
|
-
/* 标题独占一行,避免与常显操作栏挤成竖排字 */
|
|
1328
|
-
}
|
|
1329
1597
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_NBinE {
|
|
1330
|
-
flex:
|
|
1331
|
-
width: 100%;
|
|
1598
|
+
flex: 1 1 auto;
|
|
1332
1599
|
min-width: 0;
|
|
1333
|
-
max-width: 100%;
|
|
1334
1600
|
}
|
|
1335
1601
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_es-FC {
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1602
|
+
flex-shrink: 0;
|
|
1603
|
+
gap: 4px;
|
|
1604
|
+
}
|
|
1605
|
+
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz {
|
|
1606
|
+
/* 填写项单行:拖柄 | 标题与标签(点按编辑)| ⋯ */
|
|
1339
1607
|
}
|
|
1340
1608
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_XMkdt {
|
|
1341
|
-
flex-wrap: wrap;
|
|
1342
1609
|
gap: 8px;
|
|
1343
|
-
padding: 8px;
|
|
1610
|
+
padding: 8px 4px 8px 8px;
|
|
1344
1611
|
transform: none;
|
|
1345
1612
|
}
|
|
1346
1613
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_XMkdt:hover {
|
|
1347
1614
|
transform: none;
|
|
1348
1615
|
}
|
|
1616
|
+
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_a-cDo {
|
|
1617
|
+
width: 22px;
|
|
1618
|
+
height: 28px;
|
|
1619
|
+
}
|
|
1349
1620
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_ftlwp {
|
|
1350
|
-
flex: 1 1
|
|
1621
|
+
flex: 1 1 auto;
|
|
1351
1622
|
min-width: 0;
|
|
1623
|
+
padding-top: 3px;
|
|
1352
1624
|
}
|
|
1353
|
-
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-
|
|
1354
|
-
|
|
1625
|
+
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_ftlwp[role=button] {
|
|
1626
|
+
cursor: pointer;
|
|
1627
|
+
-webkit-tap-highlight-color: transparent;
|
|
1355
1628
|
}
|
|
1356
1629
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_vmS-e {
|
|
1357
1630
|
width: min(380px, 100vw - 32px);
|
|
@@ -1360,6 +1633,16 @@
|
|
|
1360
1633
|
height: 28px !important;
|
|
1361
1634
|
padding: 0 12px !important;
|
|
1362
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
|
+
}
|
|
1363
1646
|
.kne-form-creator_Xrjrk.kne-form-creator_LtgJz .kne-form-creator_mLgqh {
|
|
1364
1647
|
width: 28px !important;
|
|
1365
1648
|
height: 28px !important;
|
|
@@ -1379,4 +1662,216 @@
|
|
|
1379
1662
|
overflow-x: auto;
|
|
1380
1663
|
}
|
|
1381
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
|
+
}
|
|
1382
1877
|
/*# sourceMappingURL=index.css.map */
|