@next-bricks/form 1.0.3 → 1.1.1

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 (84) hide show
  1. package/dist/bricks.json +5 -5
  2. package/dist/chunks/1236.105a8242.js +2 -0
  3. package/dist/chunks/1236.105a8242.js.map +1 -0
  4. package/dist/chunks/2108.5dd77e2b.js +2 -0
  5. package/dist/chunks/2108.5dd77e2b.js.map +1 -0
  6. package/dist/chunks/{5789.e946d373.js → 5789.86a92b1d.js} +3 -3
  7. package/dist/chunks/{5789.e946d373.js.map → 5789.86a92b1d.js.map} +1 -1
  8. package/dist/chunks/eo-auto-complete.5e90af9d.js +3 -0
  9. package/dist/chunks/{eo-auto-complete.a9c382a6.js.map → eo-auto-complete.5e90af9d.js.map} +1 -1
  10. package/dist/chunks/eo-checkbox.f3bc89e8.js +2 -0
  11. package/dist/chunks/{eo-checkbox.40d8533e.js.map → eo-checkbox.f3bc89e8.js.map} +1 -1
  12. package/dist/chunks/eo-date-picker.df501430.js +2 -0
  13. package/dist/chunks/{eo-date-picker.4a841527.js.map → eo-date-picker.df501430.js.map} +1 -1
  14. package/dist/chunks/eo-dynamic-form-item.1b820abf.js +3 -0
  15. package/dist/chunks/{eo-dynamic-form-item.f8085fe7.js.map → eo-dynamic-form-item.1b820abf.js.map} +1 -1
  16. package/dist/chunks/eo-form-item.81aa1a8f.js +3 -0
  17. package/dist/chunks/{eo-form-item.9ca32184.js.map → eo-form-item.81aa1a8f.js.map} +1 -1
  18. package/dist/chunks/eo-icon-select.c3f6fa90.js +3 -0
  19. package/dist/chunks/{eo-icon-select.ae9ff74b.js.map → eo-icon-select.c3f6fa90.js.map} +1 -1
  20. package/dist/chunks/eo-input.aba9b0d9.js +3 -0
  21. package/dist/chunks/{eo-input.360d3dd6.js.map → eo-input.aba9b0d9.js.map} +1 -1
  22. package/dist/chunks/eo-radio.a8a35ea5.js +3 -0
  23. package/dist/chunks/eo-radio.a8a35ea5.js.map +1 -0
  24. package/dist/chunks/eo-search.022419b5.js +2 -0
  25. package/dist/chunks/{eo-search.efc41300.js.map → eo-search.022419b5.js.map} +1 -1
  26. package/dist/chunks/eo-select.66ddb92e.js +3 -0
  27. package/dist/chunks/{eo-select.0b0138bb.js.map → eo-select.66ddb92e.js.map} +1 -1
  28. package/dist/chunks/eo-switch.2b683d0d.js +3 -0
  29. package/dist/chunks/{eo-switch.5114bd5e.js.map → eo-switch.2b683d0d.js.map} +1 -1
  30. package/dist/chunks/eo-textarea.9f46ac4a.js +3 -0
  31. package/dist/chunks/{eo-textarea.daa7f5d4.js.map → eo-textarea.9f46ac4a.js.map} +1 -1
  32. package/dist/chunks/eo-time-picker.a3889d6a.js +2 -0
  33. package/dist/chunks/{eo-time-picker.80430d4c.js.map → eo-time-picker.a3889d6a.js.map} +1 -1
  34. package/dist/chunks/eo-time-range-picker.7ed593e4.js +2 -0
  35. package/dist/chunks/{eo-time-range-picker.9a1311ae.js.map → eo-time-range-picker.7ed593e4.js.map} +1 -1
  36. package/dist/chunks/eo-upload-file.0979773b.js +3 -0
  37. package/dist/chunks/{eo-upload-file.e860810e.js.map → eo-upload-file.0979773b.js.map} +1 -1
  38. package/dist/chunks/eo-upload-image.3d7cec71.js +3 -0
  39. package/dist/chunks/{eo-upload-image.7ea1438d.js.map → eo-upload-image.3d7cec71.js.map} +1 -1
  40. package/dist/chunks/main.059f5a3a.js +2 -0
  41. package/dist/chunks/{main.422406b2.js.map → main.059f5a3a.js.map} +1 -1
  42. package/dist/examples.json +4 -4
  43. package/dist/index.47a76ab2.js +2 -0
  44. package/dist/{index.bdd7e86b.js.map → index.47a76ab2.js.map} +1 -1
  45. package/dist/manifest.json +70 -70
  46. package/dist/types.json +957 -957
  47. package/dist-types/radio/index.d.ts +2 -1
  48. package/docs/eo-radio.md +277 -109
  49. package/package.json +2 -2
  50. package/dist/chunks/2108.ed2e0e97.js +0 -2
  51. package/dist/chunks/2108.ed2e0e97.js.map +0 -1
  52. package/dist/chunks/4119.15b34113.js +0 -2
  53. package/dist/chunks/4119.15b34113.js.map +0 -1
  54. package/dist/chunks/eo-auto-complete.a9c382a6.js +0 -3
  55. package/dist/chunks/eo-checkbox.40d8533e.js +0 -2
  56. package/dist/chunks/eo-date-picker.4a841527.js +0 -2
  57. package/dist/chunks/eo-dynamic-form-item.f8085fe7.js +0 -3
  58. package/dist/chunks/eo-form-item.9ca32184.js +0 -3
  59. package/dist/chunks/eo-icon-select.ae9ff74b.js +0 -3
  60. package/dist/chunks/eo-input.360d3dd6.js +0 -3
  61. package/dist/chunks/eo-radio.736bcb76.js +0 -3
  62. package/dist/chunks/eo-radio.736bcb76.js.map +0 -1
  63. package/dist/chunks/eo-search.efc41300.js +0 -2
  64. package/dist/chunks/eo-select.0b0138bb.js +0 -3
  65. package/dist/chunks/eo-switch.5114bd5e.js +0 -3
  66. package/dist/chunks/eo-textarea.daa7f5d4.js +0 -3
  67. package/dist/chunks/eo-time-picker.80430d4c.js +0 -2
  68. package/dist/chunks/eo-time-range-picker.9a1311ae.js +0 -2
  69. package/dist/chunks/eo-upload-file.e860810e.js +0 -3
  70. package/dist/chunks/eo-upload-image.7ea1438d.js +0 -3
  71. package/dist/chunks/main.422406b2.js +0 -2
  72. package/dist/index.bdd7e86b.js +0 -2
  73. /package/dist/chunks/{5789.e946d373.js.LICENSE.txt → 5789.86a92b1d.js.LICENSE.txt} +0 -0
  74. /package/dist/chunks/{eo-auto-complete.a9c382a6.js.LICENSE.txt → eo-auto-complete.5e90af9d.js.LICENSE.txt} +0 -0
  75. /package/dist/chunks/{eo-dynamic-form-item.f8085fe7.js.LICENSE.txt → eo-dynamic-form-item.1b820abf.js.LICENSE.txt} +0 -0
  76. /package/dist/chunks/{eo-form-item.9ca32184.js.LICENSE.txt → eo-form-item.81aa1a8f.js.LICENSE.txt} +0 -0
  77. /package/dist/chunks/{eo-icon-select.ae9ff74b.js.LICENSE.txt → eo-icon-select.c3f6fa90.js.LICENSE.txt} +0 -0
  78. /package/dist/chunks/{eo-input.360d3dd6.js.LICENSE.txt → eo-input.aba9b0d9.js.LICENSE.txt} +0 -0
  79. /package/dist/chunks/{eo-radio.736bcb76.js.LICENSE.txt → eo-radio.a8a35ea5.js.LICENSE.txt} +0 -0
  80. /package/dist/chunks/{eo-select.0b0138bb.js.LICENSE.txt → eo-select.66ddb92e.js.LICENSE.txt} +0 -0
  81. /package/dist/chunks/{eo-switch.5114bd5e.js.LICENSE.txt → eo-switch.2b683d0d.js.LICENSE.txt} +0 -0
  82. /package/dist/chunks/{eo-textarea.daa7f5d4.js.LICENSE.txt → eo-textarea.9f46ac4a.js.LICENSE.txt} +0 -0
  83. /package/dist/chunks/{eo-upload-file.e860810e.js.LICENSE.txt → eo-upload-file.0979773b.js.LICENSE.txt} +0 -0
  84. /package/dist/chunks/{eo-upload-image.7ea1438d.js.LICENSE.txt → eo-upload-image.3d7cec71.js.LICENSE.txt} +0 -0
@@ -4,6 +4,7 @@ import type { RadioType, GeneralOption, GeneralComplexOption, UIType, RadioGroup
4
4
  import "@next-core/theme";
5
5
  import type { FormItemProps } from "../form-item/index.jsx";
6
6
  import { UseSingleBrickConf } from "@next-core/types";
7
+ import "./host-context.css";
7
8
  interface CustomOptions {
8
9
  url: string;
9
10
  description?: string;
@@ -74,7 +75,7 @@ declare class Radio extends FormItemElementBase {
74
75
  * 单选框样式类型
75
76
  * @default "default"
76
77
  */
77
- accessor type: RadioType | undefined;
78
+ accessor type: RadioType;
78
79
  /**
79
80
  * UI样式
80
81
  * @default "default"
package/docs/eo-radio.md CHANGED
@@ -56,9 +56,6 @@
56
56
  value: 0
57
57
  - label: Shanghai
58
58
  value: 1
59
- icon:
60
- icon: "bar-chart"
61
- lib: "antd"
62
59
  - label: Guangzhou
63
60
  value: 2
64
61
  - label: Shenzhen
@@ -74,34 +71,162 @@
74
71
  ### Disabled
75
72
 
76
73
  ```yaml preview
77
- - brick: eo-radio
74
+ - brick: eo-flex-layout
78
75
  properties:
79
- options:
80
- - label: Beijing
76
+ gap: 20px
77
+ flexDirection: column
78
+ children:
79
+ - brick: eo-radio
80
+ properties:
81
81
  value: 0
82
+ options:
83
+ - label: Beijing
84
+ value: 0
85
+ disabled: true
86
+ - label: Shanghai
87
+ value: 1
88
+ - label: Guangzhou
89
+ value: 2
90
+ - label: Shenzhen
91
+ value: 3
92
+ - brick: eo-radio
93
+ properties:
82
94
  disabled: true
83
- - label: Shanghai
84
95
  value: 1
85
- - label: Guangzhou
86
- value: 2
87
- - label: Shenzhen
88
- value: 3
89
- - brick: div
90
- properties:
91
- style:
92
- height: 20px
93
- - brick: eo-radio
94
- properties:
95
- disabled: true
96
- options:
97
- - label: Beijing
96
+ options:
97
+ - label: Beijing
98
+ value: 0
99
+ - label: Shanghai
100
+ value: 1
101
+ - label: Guangzhou
102
+ value: 2
103
+ - label: Shenzhen
104
+ value: 3
105
+ - brick: eo-radio
106
+ properties:
107
+ label: Icon
108
+ type: default
109
+ disabled: true
98
110
  value: 0
99
- - label: Shanghai
111
+ options:
112
+ - label: Python
113
+ value: 0
114
+ icon:
115
+ lib: easyops
116
+ category: colored-common
117
+ icon: python
118
+ - label: Javascript
119
+ value: 1
120
+ icon:
121
+ lib: easyops
122
+ category: program-language
123
+ icon: javascript
124
+ - label: Powershell
125
+ value: 2
126
+ icon:
127
+ lib: easyops
128
+ category: colored-common
129
+ icon: powershell
130
+ - label: Shell
131
+ value: 3
132
+ icon:
133
+ lib: easyops
134
+ category: colored-common
135
+ icon: shell
136
+ - brick: eo-radio
137
+ properties:
138
+ label: Button
139
+ type: button
140
+ value: Shanghai
141
+ disabled: true
142
+ value: Beijing
143
+ options:
144
+ - Beijing
145
+ - Shanghai
146
+ - Guangzhou
147
+ - Shenzhen
148
+ - brick: eo-radio
149
+ properties:
150
+ label: dashboard
151
+ type: button
152
+ ui: dashboard
153
+ value: Shanghai
154
+ options:
155
+ - label: Beijing
156
+ value: Beijing
157
+ - label: Shanghai
158
+ value: Shanghai
159
+ disabled: true
160
+ - label: Guangzhou
161
+ value: Guangzhou
162
+ - label: Shenzhen
163
+ value: Shenzhen
164
+ - brick: eo-radio
165
+ properties:
166
+ label: Icon
167
+ type: icon
100
168
  value: 1
101
- - label: Guangzhou
169
+ disabled: true
170
+ options:
171
+ - label: Beijing
172
+ value: 0
173
+ icon:
174
+ icon: "area-chart"
175
+ lib: "antd"
176
+ - label: Shanghai
177
+ value: 1
178
+ icon:
179
+ icon: "bar-chart"
180
+ lib: "antd"
181
+ - label: Guangzhou
182
+ value: 2
183
+ icon:
184
+ icon: "area-chart"
185
+ lib: "antd"
186
+ - brick: eo-radio
187
+ properties:
188
+ label: Icon Cricle
189
+ type: icon-circle
190
+ value: 0
191
+ disabled: true
192
+ options:
193
+ - label: Beijing
194
+ value: 0
195
+ icon:
196
+ icon: "area-chart"
197
+ lib: "antd"
198
+ - label: Shanghai
199
+ value: 1
200
+ icon:
201
+ icon: "bar-chart"
202
+ lib: "antd"
203
+ - label: Guangzhou
204
+ value: 2
205
+ icon:
206
+ icon: "area-chart"
207
+ lib: "antd"
208
+ - brick: eo-radio
209
+ properties:
210
+ label: Icon Square
211
+ type: icon-square
102
212
  value: 2
103
- - label: Shenzhen
104
- value: 3
213
+ disabled: true
214
+ options:
215
+ - label: Beijing
216
+ value: 0
217
+ icon:
218
+ icon: "area-chart"
219
+ lib: "antd"
220
+ - label: Shanghai
221
+ value: 1
222
+ icon:
223
+ icon: "bar-chart"
224
+ lib: "antd"
225
+ - label: Guangzhou
226
+ value: 2
227
+ icon:
228
+ icon: "area-chart"
229
+ lib: "antd"
105
230
  ```
106
231
 
107
232
  ### Size(Only use when type was button)
@@ -150,89 +275,138 @@
150
275
  ### Type
151
276
 
152
277
  ```yaml preview
153
- - brick: eo-radio
278
+ - brick: eo-flex-layout
154
279
  properties:
155
- label: Default
156
- type: default
157
- value: Beijing
158
- options:
159
- - Beijing
160
- - Shanghai
161
- - Guangzhou
162
- - Shenzhen
163
- - brick: eo-radio
164
- properties:
165
- label: Button
166
- type: button
167
- value: Shanghai
168
- options:
169
- - Beijing
170
- - Shanghai
171
- - Guangzhou
172
- - Shenzhen
173
- - brick: eo-radio
174
- properties:
175
- label: Icon
176
- type: icon
177
- value: 1
178
- options:
179
- - label: Beijing
180
- value: 0
181
- icon:
182
- icon: "area-chart"
183
- lib: "antd"
184
- - label: Shanghai
185
- value: 1
186
- icon:
187
- icon: "bar-chart"
188
- lib: "antd"
189
- - label: Guangzhou
190
- value: 2
191
- icon:
192
- icon: "area-chart"
193
- lib: "antd"
194
- - brick: eo-radio
195
- properties:
196
- label: Icon Cricle
197
- type: icon-circle
198
- value: 0
199
- options:
200
- - label: Beijing
201
- value: 0
202
- icon:
203
- icon: "area-chart"
204
- lib: "antd"
205
- - label: Shanghai
280
+ gap: 20px
281
+ flexDirection: column
282
+ children:
283
+ - brick: eo-radio
284
+ properties:
285
+ label: Default
286
+ type: default
287
+ value: Beijing
288
+ options:
289
+ - Beijing
290
+ - Shanghai
291
+ - Guangzhou
292
+ - Shenzhen
293
+ - brick: eo-radio
294
+ properties:
295
+ label: Icon
296
+ type: default
297
+ options:
298
+ - label: Python
299
+ value: 0
300
+ icon:
301
+ lib: easyops
302
+ category: colored-common
303
+ icon: python
304
+ - label: Javascript
305
+ value: 1
306
+ icon:
307
+ lib: easyops
308
+ category: program-language
309
+ icon: javascript
310
+ - label: Powershell
311
+ value: 2
312
+ icon:
313
+ lib: easyops
314
+ category: colored-common
315
+ icon: powershell
316
+ - label: Shell
317
+ value: 3
318
+ icon:
319
+ lib: easyops
320
+ category: colored-common
321
+ icon: shell
322
+ - brick: eo-radio
323
+ properties:
324
+ label: Button
325
+ type: button
326
+ value: Shanghai
327
+ options:
328
+ - Beijing
329
+ - Shanghai
330
+ - Guangzhou
331
+ - Shenzhen
332
+ - brick: eo-radio
333
+ properties:
334
+ label: dashboard
335
+ type: button
336
+ ui: dashboard
337
+ value: Shanghai
338
+ options:
339
+ - label: Beijing
340
+ value: Beijing
341
+ - label: Shanghai
342
+ value: Shanghai
343
+ - label: Guangzhou
344
+ value: Guangzhou
345
+ - label: Shenzhen
346
+ value: Shenzhen
347
+ - brick: eo-radio
348
+ properties:
349
+ label: Icon
350
+ type: icon
206
351
  value: 1
207
- icon:
208
- icon: "bar-chart"
209
- lib: "antd"
210
- - label: Guangzhou
211
- value: 2
212
- icon:
213
- icon: "area-chart"
214
- lib: "antd"
215
- - brick: eo-radio
216
- properties:
217
- label: Icon Square
218
- type: icon-square
219
- value: 2
220
- options:
221
- - label: Beijing
352
+ options:
353
+ - label: Beijing
354
+ value: 0
355
+ icon:
356
+ icon: "area-chart"
357
+ lib: "antd"
358
+ - label: Shanghai
359
+ value: 1
360
+ icon:
361
+ icon: "bar-chart"
362
+ lib: "antd"
363
+ - label: Guangzhou
364
+ value: 2
365
+ icon:
366
+ icon: "area-chart"
367
+ lib: "antd"
368
+ - brick: eo-radio
369
+ properties:
370
+ label: Icon Cricle
371
+ type: icon-circle
222
372
  value: 0
223
- icon:
224
- icon: "area-chart"
225
- lib: "antd"
226
- - label: Shanghai
227
- value: 1
228
- icon:
229
- icon: "bar-chart"
230
- lib: "antd"
231
- - label: Guangzhou
373
+ options:
374
+ - label: Beijing
375
+ value: 0
376
+ icon:
377
+ icon: "area-chart"
378
+ lib: "antd"
379
+ - label: Shanghai
380
+ value: 1
381
+ icon:
382
+ icon: "bar-chart"
383
+ lib: "antd"
384
+ - label: Guangzhou
385
+ value: 2
386
+ icon:
387
+ icon: "area-chart"
388
+ lib: "antd"
389
+ - brick: eo-radio
390
+ properties:
391
+ label: Icon Square
392
+ type: icon-square
232
393
  value: 2
233
- icon:
234
- icon: "area-chart"
235
- lib: "antd"
394
+ options:
395
+ - label: Beijing
396
+ value: 0
397
+ icon:
398
+ icon: "area-chart"
399
+ lib: "antd"
400
+ - label: Shanghai
401
+ value: 1
402
+ icon:
403
+ icon: "bar-chart"
404
+ lib: "antd"
405
+ - label: Guangzhou
406
+ value: 2
407
+ icon:
408
+ icon: "area-chart"
409
+ lib: "antd"
236
410
  ```
237
411
 
238
412
  ### Event
@@ -246,9 +420,6 @@
246
420
  value: 0
247
421
  - label: Shanghai
248
422
  value: 1
249
- icon:
250
- icon: "bar-chart"
251
- lib: "antd"
252
423
  - label: Guangzhou
253
424
  value: 2
254
425
  - label: Shenzhen
@@ -274,9 +445,6 @@
274
445
  value: 0
275
446
  - label: Shanghai
276
447
  value: 1
277
- icon:
278
- icon: "bar-chart"
279
- lib: "antd"
280
448
  - label: Guangzhou
281
449
  value: 2
282
450
  - label: Shenzhen
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-bricks/form",
3
- "version": "1.0.3",
3
+ "version": "1.1.1",
4
4
  "homepage": "https://github.com/easyops-cn/next-bricks/tree/master/bricks/form",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,5 +43,5 @@
43
43
  "@next-bricks/icons": "*",
44
44
  "@next-bricks/illustrations": "*"
45
45
  },
46
- "gitHead": "d82001e9566d338429ae4fc0b9ab684069f42c2c"
46
+ "gitHead": "0cdc43e91e4e44b84465de1e39086faf891dfaf3"
47
47
  }