@next-bricks/form 0.21.1 → 0.22.0

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 (104) hide show
  1. package/dist/bricks.json +1 -1
  2. package/dist/chunks/{2108.81691a0f.js → 2108.cb69ad5c.js} +2 -2
  3. package/dist/chunks/{2108.81691a0f.js.map → 2108.cb69ad5c.js.map} +1 -1
  4. package/dist/chunks/5716.810c3a88.js +2 -0
  5. package/dist/chunks/5716.810c3a88.js.map +1 -0
  6. package/dist/chunks/{5789.d59ac23c.js → 5789.aa34d165.js} +3 -3
  7. package/dist/chunks/{5789.d59ac23c.js.map → 5789.aa34d165.js.map} +1 -1
  8. package/dist/chunks/631.147c6fd4.js +2 -0
  9. package/dist/chunks/631.147c6fd4.js.map +1 -0
  10. package/dist/chunks/{9431.95901c72.js → 9431.671db050.js} +2 -2
  11. package/dist/chunks/{9431.95901c72.js.map → 9431.671db050.js.map} +1 -1
  12. package/dist/chunks/{eo-auto-complete.4d86216b.js → eo-auto-complete.97bd590a.js} +3 -3
  13. package/dist/chunks/eo-auto-complete.97bd590a.js.map +1 -0
  14. package/dist/chunks/{eo-checkbox.3c9a4133.js → eo-checkbox.6ec537aa.js} +2 -2
  15. package/dist/chunks/eo-checkbox.6ec537aa.js.map +1 -0
  16. package/dist/chunks/{eo-date-picker.e4d9bbec.js → eo-date-picker.9e102a0f.js} +2 -2
  17. package/dist/chunks/eo-date-picker.9e102a0f.js.map +1 -0
  18. package/dist/chunks/eo-dynamic-form-item.ed5403cf.js +3 -0
  19. package/dist/chunks/eo-dynamic-form-item.ed5403cf.js.map +1 -0
  20. package/dist/chunks/eo-form-item.63eeef93.js +3 -0
  21. package/dist/chunks/eo-form-item.63eeef93.js.map +1 -0
  22. package/dist/chunks/eo-form.ab288dca.js +2 -0
  23. package/dist/chunks/eo-form.ab288dca.js.map +1 -0
  24. package/dist/chunks/{eo-icon-select.7690257c.js → eo-icon-select.8181e65d.js} +3 -3
  25. package/dist/chunks/eo-icon-select.8181e65d.js.map +1 -0
  26. package/dist/chunks/eo-input.dd93b28f.js +3 -0
  27. package/dist/chunks/eo-input.dd93b28f.js.map +1 -0
  28. package/dist/chunks/eo-radio.2facacc2.js +3 -0
  29. package/dist/chunks/eo-radio.2facacc2.js.map +1 -0
  30. package/dist/chunks/eo-search.f6ef814c.js +2 -0
  31. package/dist/chunks/{eo-search.4769ada9.js.map → eo-search.f6ef814c.js.map} +1 -1
  32. package/dist/chunks/{eo-select.4c2aca56.js → eo-select.60b12fd0.js} +3 -3
  33. package/dist/chunks/eo-select.60b12fd0.js.map +1 -0
  34. package/dist/chunks/eo-submit-buttons.33292cc5.js +2 -0
  35. package/dist/chunks/eo-submit-buttons.33292cc5.js.map +1 -0
  36. package/dist/chunks/{eo-switch.aab79828.js → eo-switch.705a763d.js} +3 -3
  37. package/dist/chunks/eo-switch.705a763d.js.map +1 -0
  38. package/dist/chunks/eo-textarea.2effdb28.js +3 -0
  39. package/dist/chunks/eo-textarea.2effdb28.js.map +1 -0
  40. package/dist/chunks/eo-time-picker.55f63a3a.js +2 -0
  41. package/dist/chunks/eo-time-picker.55f63a3a.js.map +1 -0
  42. package/dist/chunks/eo-time-range-picker.b34a26e2.js +2 -0
  43. package/dist/chunks/eo-time-range-picker.b34a26e2.js.map +1 -0
  44. package/dist/chunks/{eo-upload-file.aade1f90.js → eo-upload-file.1ae121c0.js} +3 -3
  45. package/dist/chunks/eo-upload-file.1ae121c0.js.map +1 -0
  46. package/dist/chunks/{eo-upload-image.390c1ab2.js → eo-upload-image.bf1046d8.js} +3 -3
  47. package/dist/chunks/eo-upload-image.bf1046d8.js.map +1 -0
  48. package/dist/chunks/main.75ee5d69.js +2 -0
  49. package/dist/chunks/main.75ee5d69.js.map +1 -0
  50. package/dist/index.1447077d.js +2 -0
  51. package/dist/index.1447077d.js.map +1 -0
  52. package/dist/manifest.json +16 -11
  53. package/dist/types.json +240 -234
  54. package/dist-types/form/index.d.ts +14 -3
  55. package/dist-types/form-item/convertToItemColName.d.ts +5 -0
  56. package/dist-types/form-item/convertToItemColName.spec.d.ts +1 -0
  57. package/dist-types/form-item/index.d.ts +3 -13
  58. package/dist-types/submit-buttons/index.d.ts +2 -1
  59. package/package.json +3 -3
  60. package/dist/chunks/4669.fb8753db.js +0 -2
  61. package/dist/chunks/4669.fb8753db.js.map +0 -1
  62. package/dist/chunks/eo-auto-complete.4d86216b.js.map +0 -1
  63. package/dist/chunks/eo-checkbox.3c9a4133.js.map +0 -1
  64. package/dist/chunks/eo-date-picker.e4d9bbec.js.map +0 -1
  65. package/dist/chunks/eo-dynamic-form-item.e085273a.js +0 -3
  66. package/dist/chunks/eo-dynamic-form-item.e085273a.js.map +0 -1
  67. package/dist/chunks/eo-form-item.5bdc2f6b.js +0 -3
  68. package/dist/chunks/eo-form-item.5bdc2f6b.js.map +0 -1
  69. package/dist/chunks/eo-form.d80c1a20.js +0 -2
  70. package/dist/chunks/eo-form.d80c1a20.js.map +0 -1
  71. package/dist/chunks/eo-icon-select.7690257c.js.map +0 -1
  72. package/dist/chunks/eo-input.2826174e.js +0 -3
  73. package/dist/chunks/eo-input.2826174e.js.map +0 -1
  74. package/dist/chunks/eo-radio.a72fb693.js +0 -3
  75. package/dist/chunks/eo-radio.a72fb693.js.map +0 -1
  76. package/dist/chunks/eo-search.4769ada9.js +0 -2
  77. package/dist/chunks/eo-select.4c2aca56.js.map +0 -1
  78. package/dist/chunks/eo-submit-buttons.b1efaef0.js +0 -2
  79. package/dist/chunks/eo-submit-buttons.b1efaef0.js.map +0 -1
  80. package/dist/chunks/eo-switch.aab79828.js.map +0 -1
  81. package/dist/chunks/eo-textarea.c6ecb40f.js +0 -3
  82. package/dist/chunks/eo-textarea.c6ecb40f.js.map +0 -1
  83. package/dist/chunks/eo-time-picker.47bbf984.js +0 -2
  84. package/dist/chunks/eo-time-picker.47bbf984.js.map +0 -1
  85. package/dist/chunks/eo-time-range-picker.e6957d7b.js +0 -2
  86. package/dist/chunks/eo-time-range-picker.e6957d7b.js.map +0 -1
  87. package/dist/chunks/eo-upload-file.aade1f90.js.map +0 -1
  88. package/dist/chunks/eo-upload-image.390c1ab2.js.map +0 -1
  89. package/dist/chunks/main.5048c92a.js +0 -2
  90. package/dist/chunks/main.5048c92a.js.map +0 -1
  91. package/dist/index.b5d773db.js +0 -2
  92. package/dist/index.b5d773db.js.map +0 -1
  93. /package/dist/chunks/{5789.d59ac23c.js.LICENSE.txt → 5789.aa34d165.js.LICENSE.txt} +0 -0
  94. /package/dist/chunks/{eo-auto-complete.4d86216b.js.LICENSE.txt → eo-auto-complete.97bd590a.js.LICENSE.txt} +0 -0
  95. /package/dist/chunks/{eo-dynamic-form-item.e085273a.js.LICENSE.txt → eo-dynamic-form-item.ed5403cf.js.LICENSE.txt} +0 -0
  96. /package/dist/chunks/{eo-form-item.5bdc2f6b.js.LICENSE.txt → eo-form-item.63eeef93.js.LICENSE.txt} +0 -0
  97. /package/dist/chunks/{eo-icon-select.7690257c.js.LICENSE.txt → eo-icon-select.8181e65d.js.LICENSE.txt} +0 -0
  98. /package/dist/chunks/{eo-input.2826174e.js.LICENSE.txt → eo-input.dd93b28f.js.LICENSE.txt} +0 -0
  99. /package/dist/chunks/{eo-radio.a72fb693.js.LICENSE.txt → eo-radio.2facacc2.js.LICENSE.txt} +0 -0
  100. /package/dist/chunks/{eo-select.4c2aca56.js.LICENSE.txt → eo-select.60b12fd0.js.LICENSE.txt} +0 -0
  101. /package/dist/chunks/{eo-switch.aab79828.js.LICENSE.txt → eo-switch.705a763d.js.LICENSE.txt} +0 -0
  102. /package/dist/chunks/{eo-textarea.c6ecb40f.js.LICENSE.txt → eo-textarea.2effdb28.js.LICENSE.txt} +0 -0
  103. /package/dist/chunks/{eo-upload-file.aade1f90.js.LICENSE.txt → eo-upload-file.1ae121c0.js.LICENSE.txt} +0 -0
  104. /package/dist/chunks/{eo-upload-image.390c1ab2.js.LICENSE.txt → eo-upload-image.bf1046d8.js.LICENSE.txt} +0 -0
package/dist/types.json CHANGED
@@ -1,238 +1,4 @@
1
1
  {
2
- "eo-form-item": {
3
- "properties": [
4
- {
5
- "name": "formElement",
6
- "annotation": {
7
- "type": "reference",
8
- "typeName": {
9
- "type": "identifier",
10
- "name": "Form"
11
- }
12
- }
13
- },
14
- {
15
- "name": "curElement",
16
- "annotation": {
17
- "type": "reference",
18
- "typeName": {
19
- "type": "identifier",
20
- "name": "HTMLElement"
21
- }
22
- }
23
- },
24
- {
25
- "name": "name",
26
- "annotation": {
27
- "type": "keyword",
28
- "value": "string"
29
- }
30
- },
31
- {
32
- "name": "label",
33
- "annotation": {
34
- "type": "keyword",
35
- "value": "string"
36
- }
37
- },
38
- {
39
- "name": "pattern",
40
- "annotation": {
41
- "type": "keyword",
42
- "value": "string"
43
- }
44
- },
45
- {
46
- "name": "message",
47
- "annotation": {
48
- "type": "reference",
49
- "typeName": {
50
- "type": "identifier",
51
- "name": "Record"
52
- },
53
- "typeParameters": {
54
- "type": "typeParameterInstantiation",
55
- "params": [
56
- {
57
- "type": "keyword",
58
- "value": "string"
59
- },
60
- {
61
- "type": "keyword",
62
- "value": "string"
63
- }
64
- ]
65
- }
66
- }
67
- },
68
- {
69
- "name": "max",
70
- "annotation": {
71
- "type": "keyword",
72
- "value": "number"
73
- }
74
- },
75
- {
76
- "name": "min",
77
- "annotation": {
78
- "type": "keyword",
79
- "value": "number"
80
- }
81
- },
82
- {
83
- "name": "required",
84
- "annotation": {
85
- "type": "keyword",
86
- "value": "boolean"
87
- }
88
- },
89
- {
90
- "name": "value",
91
- "annotation": {
92
- "type": "keyword",
93
- "value": "string"
94
- }
95
- },
96
- {
97
- "name": "labelCol",
98
- "annotation": {
99
- "type": "keyword",
100
- "value": "string"
101
- }
102
- },
103
- {
104
- "name": "wrapperCol",
105
- "annotation": {
106
- "type": "keyword",
107
- "value": "string"
108
- }
109
- },
110
- {
111
- "name": "valuePropsName",
112
- "annotation": {
113
- "type": "keyword",
114
- "value": "string"
115
- }
116
- },
117
- {
118
- "name": "layout",
119
- "annotation": {
120
- "type": "reference",
121
- "typeName": {
122
- "type": "identifier",
123
- "name": "Layout"
124
- }
125
- }
126
- },
127
- {
128
- "name": "size",
129
- "annotation": {
130
- "type": "reference",
131
- "typeName": {
132
- "type": "identifier",
133
- "name": "ComponentSize"
134
- }
135
- }
136
- },
137
- {
138
- "name": "trim",
139
- "annotation": {
140
- "type": "keyword",
141
- "value": "boolean"
142
- }
143
- },
144
- {
145
- "name": "trigger",
146
- "annotation": {
147
- "type": "keyword",
148
- "value": "string"
149
- }
150
- },
151
- {
152
- "name": "validator",
153
- "annotation": {
154
- "type": "parenthesizedType",
155
- "annotation": {
156
- "type": "function",
157
- "parameters": [
158
- {
159
- "type": "identifier",
160
- "name": "value",
161
- "annotation": {
162
- "type": "keyword",
163
- "value": "any"
164
- }
165
- }
166
- ],
167
- "annotation": {
168
- "type": "reference",
169
- "typeName": {
170
- "type": "identifier",
171
- "name": "MessageBody"
172
- }
173
- }
174
- }
175
- }
176
- },
177
- {
178
- "name": "needValidate",
179
- "annotation": {
180
- "type": "keyword",
181
- "value": "boolean"
182
- }
183
- }
184
- ],
185
- "events": [],
186
- "methods": [],
187
- "types": [
188
- {
189
- "type": "typeAlias",
190
- "name": "Layout",
191
- "annotation": {
192
- "type": "union",
193
- "types": [
194
- {
195
- "type": "jsLiteral",
196
- "value": "horizontal"
197
- },
198
- {
199
- "type": "jsLiteral",
200
- "value": "vertical"
201
- },
202
- {
203
- "type": "jsLiteral",
204
- "value": "inline"
205
- }
206
- ]
207
- }
208
- },
209
- {
210
- "type": "typeAlias",
211
- "name": "ComponentSize",
212
- "annotation": {
213
- "type": "union",
214
- "types": [
215
- {
216
- "type": "jsLiteral",
217
- "value": "large"
218
- },
219
- {
220
- "type": "jsLiteral",
221
- "value": "medium"
222
- },
223
- {
224
- "type": "jsLiteral",
225
- "value": "small"
226
- },
227
- {
228
- "type": "jsLiteral",
229
- "value": "xs"
230
- }
231
- ]
232
- }
233
- }
234
- ]
235
- },
236
2
  "eo-submit-buttons": {
237
3
  "properties": [
238
4
  {
@@ -599,6 +365,26 @@
599
365
  }
600
366
  }
601
367
  },
368
+ {
369
+ "name": "labelCol",
370
+ "annotation": {
371
+ "type": "reference",
372
+ "typeName": {
373
+ "type": "identifier",
374
+ "name": "ColProps"
375
+ }
376
+ }
377
+ },
378
+ {
379
+ "name": "wrapperCol",
380
+ "annotation": {
381
+ "type": "reference",
382
+ "typeName": {
383
+ "type": "identifier",
384
+ "name": "ColProps"
385
+ }
386
+ }
387
+ },
602
388
  {
603
389
  "name": "formStyle",
604
390
  "annotation": {
@@ -2596,6 +2382,226 @@
2596
2382
  }
2597
2383
  ]
2598
2384
  },
2385
+ "eo-form-item": {
2386
+ "properties": [
2387
+ {
2388
+ "name": "formElement",
2389
+ "annotation": {
2390
+ "type": "reference",
2391
+ "typeName": {
2392
+ "type": "identifier",
2393
+ "name": "Form"
2394
+ }
2395
+ }
2396
+ },
2397
+ {
2398
+ "name": "curElement",
2399
+ "annotation": {
2400
+ "type": "reference",
2401
+ "typeName": {
2402
+ "type": "identifier",
2403
+ "name": "HTMLElement"
2404
+ }
2405
+ }
2406
+ },
2407
+ {
2408
+ "name": "name",
2409
+ "annotation": {
2410
+ "type": "keyword",
2411
+ "value": "string"
2412
+ }
2413
+ },
2414
+ {
2415
+ "name": "label",
2416
+ "annotation": {
2417
+ "type": "keyword",
2418
+ "value": "string"
2419
+ }
2420
+ },
2421
+ {
2422
+ "name": "pattern",
2423
+ "annotation": {
2424
+ "type": "keyword",
2425
+ "value": "string"
2426
+ }
2427
+ },
2428
+ {
2429
+ "name": "message",
2430
+ "annotation": {
2431
+ "type": "reference",
2432
+ "typeName": {
2433
+ "type": "identifier",
2434
+ "name": "Record"
2435
+ },
2436
+ "typeParameters": {
2437
+ "type": "typeParameterInstantiation",
2438
+ "params": [
2439
+ {
2440
+ "type": "keyword",
2441
+ "value": "string"
2442
+ },
2443
+ {
2444
+ "type": "keyword",
2445
+ "value": "string"
2446
+ }
2447
+ ]
2448
+ }
2449
+ }
2450
+ },
2451
+ {
2452
+ "name": "max",
2453
+ "annotation": {
2454
+ "type": "keyword",
2455
+ "value": "number"
2456
+ }
2457
+ },
2458
+ {
2459
+ "name": "min",
2460
+ "annotation": {
2461
+ "type": "keyword",
2462
+ "value": "number"
2463
+ }
2464
+ },
2465
+ {
2466
+ "name": "required",
2467
+ "annotation": {
2468
+ "type": "keyword",
2469
+ "value": "boolean"
2470
+ }
2471
+ },
2472
+ {
2473
+ "name": "value",
2474
+ "annotation": {
2475
+ "type": "keyword",
2476
+ "value": "string"
2477
+ }
2478
+ },
2479
+ {
2480
+ "name": "valuePropsName",
2481
+ "annotation": {
2482
+ "type": "keyword",
2483
+ "value": "string"
2484
+ }
2485
+ },
2486
+ {
2487
+ "name": "layout",
2488
+ "annotation": {
2489
+ "type": "reference",
2490
+ "typeName": {
2491
+ "type": "identifier",
2492
+ "name": "Layout"
2493
+ }
2494
+ }
2495
+ },
2496
+ {
2497
+ "name": "size",
2498
+ "annotation": {
2499
+ "type": "reference",
2500
+ "typeName": {
2501
+ "type": "identifier",
2502
+ "name": "ComponentSize"
2503
+ }
2504
+ }
2505
+ },
2506
+ {
2507
+ "name": "trim",
2508
+ "annotation": {
2509
+ "type": "keyword",
2510
+ "value": "boolean"
2511
+ }
2512
+ },
2513
+ {
2514
+ "name": "trigger",
2515
+ "annotation": {
2516
+ "type": "keyword",
2517
+ "value": "string"
2518
+ }
2519
+ },
2520
+ {
2521
+ "name": "validator",
2522
+ "annotation": {
2523
+ "type": "parenthesizedType",
2524
+ "annotation": {
2525
+ "type": "function",
2526
+ "parameters": [
2527
+ {
2528
+ "type": "identifier",
2529
+ "name": "value",
2530
+ "annotation": {
2531
+ "type": "keyword",
2532
+ "value": "any"
2533
+ }
2534
+ }
2535
+ ],
2536
+ "annotation": {
2537
+ "type": "reference",
2538
+ "typeName": {
2539
+ "type": "identifier",
2540
+ "name": "MessageBody"
2541
+ }
2542
+ }
2543
+ }
2544
+ }
2545
+ },
2546
+ {
2547
+ "name": "needValidate",
2548
+ "annotation": {
2549
+ "type": "keyword",
2550
+ "value": "boolean"
2551
+ }
2552
+ }
2553
+ ],
2554
+ "events": [],
2555
+ "methods": [],
2556
+ "types": [
2557
+ {
2558
+ "type": "typeAlias",
2559
+ "name": "Layout",
2560
+ "annotation": {
2561
+ "type": "union",
2562
+ "types": [
2563
+ {
2564
+ "type": "jsLiteral",
2565
+ "value": "horizontal"
2566
+ },
2567
+ {
2568
+ "type": "jsLiteral",
2569
+ "value": "vertical"
2570
+ },
2571
+ {
2572
+ "type": "jsLiteral",
2573
+ "value": "inline"
2574
+ }
2575
+ ]
2576
+ }
2577
+ },
2578
+ {
2579
+ "type": "typeAlias",
2580
+ "name": "ComponentSize",
2581
+ "annotation": {
2582
+ "type": "union",
2583
+ "types": [
2584
+ {
2585
+ "type": "jsLiteral",
2586
+ "value": "large"
2587
+ },
2588
+ {
2589
+ "type": "jsLiteral",
2590
+ "value": "medium"
2591
+ },
2592
+ {
2593
+ "type": "jsLiteral",
2594
+ "value": "small"
2595
+ },
2596
+ {
2597
+ "type": "jsLiteral",
2598
+ "value": "xs"
2599
+ }
2600
+ ]
2601
+ }
2602
+ }
2603
+ ]
2604
+ },
2599
2605
  "eo-dynamic-form-item": {
2600
2606
  "properties": [
2601
2607
  {
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { ReactNextElement } from "@next-core/react-element";
3
- import { AbstractForm, FormStore } from "@next-shared/form";
3
+ import { AbstractForm, FormStore, ColProps } from "@next-shared/form";
4
4
  import { ComponentSize, Layout } from "../interface.js";
5
5
  interface FormProps {
6
6
  values?: Record<string, any>;
@@ -31,13 +31,22 @@ declare class Form extends ReactNextElement implements FormProps, AbstractForm {
31
31
  set values(value: Record<string, unknown>);
32
32
  get values(): Record<string, unknown>;
33
33
  /**
34
- * 布局方式
34
+ * 布局方式(默认 vertical 布局)
35
+ * @default vertical
35
36
  */
36
- accessor layout: Layout | undefined;
37
+ accessor layout: Layout;
37
38
  /**
38
39
  * 表单组件尺寸
39
40
  */
40
41
  accessor size: ComponentSize | undefined;
42
+ /**
43
+ * 标签列布局样式(仅当 layout="horizontal" 时有效)
44
+ */
45
+ accessor labelCol: ColProps;
46
+ /**
47
+ * 输入控件列布局样式(仅当 layout="horizontal" 时有效)
48
+ */
49
+ accessor wrapperCol: ColProps;
41
50
  handleValuesChange: (values: Record<string, unknown>) => void;
42
51
  /**
43
52
  * 表单校验方法
@@ -68,6 +77,8 @@ declare class Form extends ReactNextElement implements FormProps, AbstractForm {
68
77
  }
69
78
  interface FormComponentProps extends FormProps {
70
79
  formStyle?: React.CSSProperties;
80
+ labelCol?: ColProps;
81
+ wrapperCol?: ColProps;
71
82
  onValuesChange?: (value: Record<string, any>) => void;
72
83
  onValidateSuccess?: () => void;
73
84
  onValidateError?: () => void;
@@ -0,0 +1,5 @@
1
+ import type { ColProps, ColSize } from "@next-shared/form";
2
+ import type { Layout } from "../interface.js";
3
+ export declare function convertToItemColName(colConf: ColProps | undefined, layout: Layout): string;
4
+ export declare function addLabelSizeToWrapperOffset(labelCol: number | string | ColSize, wrapperCol: number | string | ColSize): ColSize;
5
+ export declare function calcWrapperColOffsetWithoutLabel(labelCol: ColProps, wrapperCol: ColProps): ColProps;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AbstractForm, FormItemElementBase, MessageBody } from "@next-shared/form";
2
+ import { AbstractForm, FormItemElementBase, MessageBody, ColProps } from "@next-shared/form";
3
3
  import type { Form } from "../form/index.jsx";
4
4
  import type { ComponentSize, Layout } from "../interface.js";
5
5
  import "@next-core/theme";
@@ -19,8 +19,8 @@ export interface FormItemProps {
19
19
  pattern?: string;
20
20
  min?: number;
21
21
  max?: number;
22
- labelCol?: string;
23
- wrapperCol?: string;
22
+ labelCol?: ColProps;
23
+ wrapperCol?: ColProps;
24
24
  message?: Record<string, string>;
25
25
  layout?: Layout;
26
26
  size?: ComponentSize;
@@ -61,16 +61,6 @@ declare class FormItem extends FormItemElementBase implements FormItemProps {
61
61
  * 初始值
62
62
  */
63
63
  accessor value: string | undefined;
64
- /**
65
- * 表单项 label 标签布局
66
- * @group ui
67
- */
68
- accessor labelCol: string | undefined;
69
- /**
70
- * 表单项控件布局
71
- * @group ui
72
- */
73
- accessor wrapperCol: string | undefined;
74
64
  accessor valuePropsName: string | undefined;
75
65
  accessor layout: Layout | undefined;
76
66
  accessor size: ComponentSize | undefined;
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
2
  import { FormItemElementBase } from "@next-shared/form";
3
+ import type { FormItemProps } from "../form-item/index.js";
3
4
  import type { ButtonType } from "../interface.js";
4
- interface SubmitButtonsProps {
5
+ interface SubmitButtonsProps extends FormItemProps {
5
6
  curElement: HTMLElement;
6
7
  submitText?: string;
7
8
  submitType?: ButtonType;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "0.21.1",
3
+ "version": "0.22.0",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,8 +34,8 @@
34
34
  "postpublish": "mv package.json.bak package.json"
35
35
  },
36
36
  "devDependencies": {
37
- "@next-core/build-next-bricks": "^1.14.3",
37
+ "@next-core/build-next-bricks": "^1.14.4",
38
38
  "@next-core/test-next": "^1.0.11"
39
39
  },
40
- "gitHead": "901d3eb13694e922edfdc889b3e665e045d77ff0"
40
+ "gitHead": "c0bc0dcf078800774f4551a8a715ac4ad7f1e86d"
41
41
  }