@cloudbase/weda-ui 0.2.10 → 0.2.14

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 (111) hide show
  1. package/CHANGELOG.md +240 -0
  2. package/package.json +61 -40
  3. package/src/.DS_Store +0 -0
  4. package/src/configs/.DS_Store +0 -0
  5. package/src/configs/components/button.json +7 -3
  6. package/src/configs/components/form/richText.json +1 -1
  7. package/src/configs/components/form/uploader.json +29 -1
  8. package/src/configs/components/form/uploaderFile.json +158 -0
  9. package/src/configs/components/image.json +12 -3
  10. package/src/configs/components/link.json +3 -3
  11. package/src/configs/components/richtextview.json +2 -2
  12. package/src/configs/components/scrollVeiw.json +5 -5
  13. package/src/configs/components/swiper.json +6 -6
  14. package/src/configs/components/tabs.json +3 -3
  15. package/src/configs/components/text.json +39 -4
  16. package/src/configs/index.js +5 -3
  17. package/src/mp/.gitignore +10 -0
  18. package/src/mp/components/button/index.js +1 -0
  19. package/src/mp/components/button/index.wxss +8 -0
  20. package/src/mp/components/form/select/index.js +18 -0
  21. package/src/mp/components/form/uploader/index.js +26 -29
  22. package/src/mp/components/form/uploaderFile/index.js +233 -0
  23. package/src/mp/components/form/uploaderFile/index.json +9 -0
  24. package/src/mp/components/form/uploaderFile/index.wxml +46 -0
  25. package/src/mp/components/form/uploaderFile/index.wxss +105 -0
  26. package/src/mp/components/text/index.js +33 -0
  27. package/src/mp/components/text/index.wxml +1 -1
  28. package/src/mp/components/text/index.wxss +18 -0
  29. package/src/mp/index.json +1 -0
  30. package/src/mp/utils/platform.js +20 -0
  31. package/src/mp/utils/tcb.js +11 -0
  32. package/src/web/.DS_Store +0 -0
  33. package/src/web/actions/showModal/{index.jsx → index.tsx} +53 -3
  34. package/src/web/components/auth/index.js +2 -2
  35. package/src/web/components/button/index.css +9 -0
  36. package/src/web/components/button/{index.jsx → index.tsx} +27 -41
  37. package/src/web/components/container/{index.jsx → index.tsx} +6 -10
  38. package/src/web/components/drawer/index.tsx +57 -0
  39. package/src/web/components/form/checkbox/{index.jsx → index.tsx} +24 -48
  40. package/src/web/components/form/enumSelect/MultipleSelect.jsx +1 -6
  41. package/src/web/components/form/enumSelect/{NormalSelect.jsx → NormalSelect.tsx} +3 -14
  42. package/src/web/components/form/form/index.tsx +48 -0
  43. package/src/web/components/form/formcell/{index.jsx → index.tsx} +6 -13
  44. package/src/web/components/form/input/index.css +39 -0
  45. package/src/web/components/form/input/{index.jsx → index.tsx} +33 -67
  46. package/src/web/components/form/radio/{index.jsx → index.tsx} +19 -42
  47. package/src/web/components/form/{renderDecorator.jsx → renderDecorator.tsx} +1 -3
  48. package/src/web/components/form/select/{h5.jsx → h5.tsx} +18 -62
  49. package/src/web/components/form/select/{index.jsx → index.tsx} +51 -94
  50. package/src/web/components/form/select/region/{cities.js → cities.ts} +1 -1
  51. package/src/web/components/form/select/region/{index.js → index.ts} +3 -3
  52. package/src/web/components/form/select/region/{provinces.js → provinces.ts} +1 -1
  53. package/src/web/components/form/select/region/{regions.js → regions.ts} +1 -1
  54. package/src/web/components/form/select/time.jsx +2 -2
  55. package/src/web/components/form/switch/{index.jsx → index.tsx} +30 -47
  56. package/src/web/components/form/textarea/{index.jsx → index.tsx} +22 -55
  57. package/src/web/components/form/tips/{index.jsx → index.tsx} +8 -22
  58. package/src/web/components/form/types.d.ts +12 -0
  59. package/src/web/components/form/uploader/{index.jsx → index.tsx} +16 -14
  60. package/src/web/components/form/uploader/{uploader.h5.jsx → uploader.h5.tsx} +67 -57
  61. package/src/web/components/form/uploader/{uploader.pc.jsx → uploader.pc.tsx} +26 -43
  62. package/src/web/components/form/uploaderFile/fail.svg +12 -0
  63. package/src/web/components/form/uploaderFile/index.css +423 -0
  64. package/src/web/components/form/uploaderFile/index.jsx +30 -0
  65. package/src/web/components/form/uploaderFile/pending.svg +18 -0
  66. package/src/web/components/form/uploaderFile/success.svg +12 -0
  67. package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +578 -0
  68. package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +507 -0
  69. package/src/web/components/image/{image.jsx → image.tsx} +8 -21
  70. package/src/web/components/image/{index.jsx → index.tsx} +22 -37
  71. package/src/web/components/index.js +36 -1
  72. package/src/web/components/link/{index.jsx → index.tsx} +19 -36
  73. package/src/web/components/modal/{index.jsx → index.tsx} +22 -9
  74. package/src/web/components/picker/{datePicker.jsx → datePicker.tsx} +11 -12
  75. package/src/web/components/picker/{picker.jsx → picker.tsx} +7 -10
  76. package/src/web/components/picker/{timePicker.jsx → timePicker.tsx} +8 -16
  77. package/src/web/components/richText/{const.js → const.ts} +0 -0
  78. package/src/web/components/richText/index.jsx +5 -2
  79. package/src/web/components/richTextView/index.tsx +67 -0
  80. package/src/web/components/scrollView/{index.jsx → index.tsx} +18 -33
  81. package/src/web/components/slot/{index.jsx → index.tsx} +8 -9
  82. package/src/web/components/swiper/index.css +1 -1
  83. package/src/web/components/swiper/{index.jsx → index.tsx} +73 -78
  84. package/src/web/components/tabs/index.tsx +33 -0
  85. package/src/web/components/tabs/{tabs.h5.jsx → tabs.h5.tsx} +4 -33
  86. package/src/web/components/tabs/{tabs.pc.jsx → tabs.pc.tsx} +5 -39
  87. package/src/web/components/text/index.css +18 -0
  88. package/src/web/components/text/index.tsx +69 -0
  89. package/src/web/components/uploaderFileView/index.css +11 -0
  90. package/src/web/components/uploaderFileView/index.jsx +75 -0
  91. package/src/web/components/uploaderView/{index.jsx → index.tsx} +12 -15
  92. package/src/web/types.d.ts +20 -0
  93. package/src/web/utils/constant.js +2 -0
  94. package/src/web/utils/loading-fallback.tsx +2 -0
  95. package/src/web/utils/platform.js +77 -6
  96. package/src/web/utils/tcb.js +0 -8
  97. package/src/web/utils/useSetState.ts +14 -0
  98. package/src/web/utils/useSyncValue.ts +17 -0
  99. package/src/web/wedatheme/.git +1 -0
  100. package/src/web/wedatheme/.gitignore +5 -0
  101. package/src/web/wedatheme/.npmrc +1 -0
  102. package/src/web/wedatheme/package-lock.json +14335 -0
  103. package/src/configs/components/button.svg +0 -18
  104. package/src/web/components/drawer/index.jsx +0 -64
  105. package/src/web/components/form/enumSelect/hooks/index.js +0 -49
  106. package/src/web/components/form/form/index.jsx +0 -76
  107. package/src/web/components/link/test/__snapshots__/storybook.test.js.snap +0 -754
  108. package/src/web/components/richTextView/index.jsx +0 -89
  109. package/src/web/components/tabs/index.jsx +0 -10
  110. package/src/web/components/text/index.jsx +0 -71
  111. package/src/web/utils/useSyncValue.js +0 -14
@@ -1,754 +0,0 @@
1
- // Jest Snapshot v1, https://goo.gl/fbAQLP
2
-
3
- exports[`Storyshots actions/showToast Default 1`] = `
4
- <div>
5
- <button
6
- className="weda-ui weda-button weui-btn weui-btn_primary"
7
- disabled={false}
8
- onClick={[Function]}
9
- >
10
- 按钮
11
- </button>
12
- </div>
13
- `;
14
-
15
- exports[`Storyshots 多媒体/图片 Default 1`] = `
16
- <img
17
- alt="[图片]"
18
- className="weda-ui weda-image"
19
- onClick={[Function]}
20
- onError={[Function]}
21
- onLoad={[Function]}
22
- src="https://main.qcloudimg.com/raw/c85c9a875e9754545ee19f20438b2caa.svg"
23
- style={
24
- Object {
25
- "objectFit": "cover",
26
- }
27
- }
28
- />
29
- `;
30
-
31
- exports[`Storyshots 展示/Markdown Default 1`] = `
32
- <div
33
- className="weda-ui"
34
- >
35
- <blockquote>
36
- <p>
37
- 这是
38
- <code>
39
- markdown
40
- </code>
41
- 文本
42
- </p>
43
- </blockquote>
44
- </div>
45
- `;
46
-
47
- exports[`Storyshots 展示/按钮 Default 1`] = `
48
- <button
49
- className="weda-ui weda-button weui-btn weui-btn_primary"
50
- disabled={false}
51
- onClick={[Function]}
52
- >
53
- 按钮
54
- </button>
55
- `;
56
-
57
- exports[`Storyshots 展示/按钮 Default Type 1`] = `
58
- <button
59
- className="weda-ui weda-button weui-btn weui-btn_default"
60
- disabled={false}
61
- onClick={[Function]}
62
- >
63
- 按钮
64
- </button>
65
- `;
66
-
67
- exports[`Storyshots 展示/按钮 Mini 1`] = `
68
- <button
69
- className="weda-ui weda-button weui-btn weui-btn_mini weui-btn_primary"
70
- disabled={false}
71
- onClick={[Function]}
72
- >
73
- 按钮
74
- </button>
75
- `;
76
-
77
- exports[`Storyshots 展示/按钮 Primry 1`] = `
78
- <button
79
- className="weda-ui weda-button weui-btn weui-btn_primary"
80
- disabled={false}
81
- onClick={[Function]}
82
- >
83
- 按钮
84
- </button>
85
- `;
86
-
87
- exports[`Storyshots 展示/轮播 Default 1`] = `
88
- <div
89
- className="g-swiper weda-ui"
90
- onLoad={[Function]}
91
- style={
92
- Object {
93
- "height": "auto",
94
- }
95
- }
96
- >
97
- <div
98
- className="g-swiper-list"
99
- onMouseDown={[Function]}
100
- onTouchEnd={[Function]}
101
- onTouchStart={[Function]}
102
- style={null}
103
- >
104
- <div
105
- className="g-swiper-item"
106
- data-index={2}
107
- >
108
- <img
109
- className="weda-ui weda-image"
110
- onClick={[Function]}
111
- onError={[Function]}
112
- onLoad={[Function]}
113
- src="//lowcode-0gv7r6dye9f16540-1251326432.tcloudbaseapp.com/resources/2021-05/lowcode-582"
114
- style={
115
- Object {
116
- "objectFit": undefined,
117
- }
118
- }
119
- />
120
- </div>
121
- <div
122
- className="g-swiper-item current"
123
- data-index={0}
124
- >
125
- <img
126
- className="weda-ui weda-image"
127
- onClick={[Function]}
128
- onError={[Function]}
129
- onLoad={[Function]}
130
- src="//lowcode-0gv7r6dye9f16540-1251326432.tcloudbaseapp.com/resources/2021-04/lowcode-20"
131
- style={
132
- Object {
133
- "objectFit": undefined,
134
- }
135
- }
136
- />
137
- </div>
138
- <div
139
- className="g-swiper-item"
140
- data-index={1}
141
- >
142
- <img
143
- className="weda-ui weda-image"
144
- onClick={[Function]}
145
- onError={[Function]}
146
- onLoad={[Function]}
147
- src="//lowcode-0gv7r6dye9f16540-1251326432.tcloudbaseapp.com/resources/2021-05/lowcode-648"
148
- style={
149
- Object {
150
- "objectFit": undefined,
151
- }
152
- }
153
- />
154
- </div>
155
- <div
156
- className="g-swiper-item"
157
- data-index={2}
158
- >
159
- <img
160
- className="weda-ui weda-image"
161
- onClick={[Function]}
162
- onError={[Function]}
163
- onLoad={[Function]}
164
- src="//lowcode-0gv7r6dye9f16540-1251326432.tcloudbaseapp.com/resources/2021-05/lowcode-582"
165
- style={
166
- Object {
167
- "objectFit": undefined,
168
- }
169
- }
170
- />
171
- </div>
172
- <div
173
- className="g-swiper-item"
174
- data-index={0}
175
- >
176
- <img
177
- className="weda-ui weda-image"
178
- onClick={[Function]}
179
- onError={[Function]}
180
- onLoad={[Function]}
181
- src="//lowcode-0gv7r6dye9f16540-1251326432.tcloudbaseapp.com/resources/2021-04/lowcode-20"
182
- style={
183
- Object {
184
- "objectFit": undefined,
185
- }
186
- }
187
- />
188
- </div>
189
- </div>
190
- <div
191
- className="g-swiper__pagination"
192
- >
193
- <a
194
- className="g-swiper__pagination-bulletm"
195
- data-index={0}
196
- href="#"
197
- onClick={[Function]}
198
- style={
199
- Object {
200
- "backgroundColor": "rgba(0, 0, 0, 0.9)",
201
- }
202
- }
203
- />
204
- <a
205
- className="g-swiper__pagination-bulletm"
206
- data-index={1}
207
- href="#"
208
- onClick={[Function]}
209
- style={
210
- Object {
211
- "backgroundColor": "rgba(200, 200, 200, 0.9)",
212
- }
213
- }
214
- />
215
- <a
216
- className="g-swiper__pagination-bulletm"
217
- data-index={2}
218
- href="#"
219
- onClick={[Function]}
220
- style={
221
- Object {
222
- "backgroundColor": "rgba(200, 200, 200, 0.9)",
223
- }
224
- }
225
- />
226
- </div>
227
- <a
228
- className="g-swiper__turn-pre"
229
- href="javascript:;"
230
- onClick={[Function]}
231
- >
232
- 上一页
233
- </a>
234
- <a
235
- className="g-swiper__turn-next"
236
- href="javascript:;"
237
- onClick={[Function]}
238
- >
239
- 下一页
240
- </a>
241
- </div>
242
- `;
243
-
244
- exports[`Storyshots 布局容器/普通容器 Default 1`] = `
245
- <div
246
- className="weda-ui"
247
- onClick={[Function]}
248
- onContextMenu={[Function]}
249
- onTouchCancel={[Function]}
250
- onTouchEnd={[Function]}
251
- onTouchMove={[Function]}
252
- onTouchStart={[Function]}
253
- role="container"
254
- style={
255
- Object {
256
- "border": "2px solid gray",
257
- "padding": 20,
258
- }
259
- }
260
- >
261
- Container 容器
262
- </div>
263
- `;
264
-
265
- exports[`Storyshots 文本/富文本展示 Default 1`] = `""`;
266
-
267
- exports[`Storyshots 文本/文本 Default 1`] = `
268
- <p
269
- className="weda-text weda-ui"
270
- onClick={[Function]}
271
- style={
272
- Object {
273
- "WebkitLineClamp": 2,
274
- "whiteSpace": "pre-line",
275
- }
276
- }
277
- >
278
- 文本内容
279
- </p>
280
- `;
281
-
282
- exports[`Storyshots 文本/链接 Default 1`] = `
283
- <a
284
- className="weda-link weda-ui"
285
- href="https://cloud.tencent.com/"
286
- onClick={[Function]}
287
- rel="noreferrer"
288
- style={Object {}}
289
- >
290
- 这是一个链接
291
- </a>
292
- `;
293
-
294
- exports[`Storyshots 表单/上传图片 Default 1`] = `
295
- <div
296
- className="weda-ui horizontal weda-uploader-pc cloudbase_standard"
297
- >
298
- <div
299
- className="weda-formcells weui-cells weui-cells_forms weui-flex"
300
- >
301
- <div
302
- className="weda-formcells__label weui-cell"
303
- >
304
- <label>
305
- 上传图片
306
- </label>
307
- </div>
308
- <div
309
- className="weda-formcells__content weui-flex__item"
310
- >
311
- <div
312
- className="weui-cell weui-cell_active weui-cell_form"
313
- >
314
- <div
315
- className="weda-uploader-pc__body"
316
- style={
317
- Object {
318
- "alignItems": "center",
319
- "display": "flex",
320
- "height": "100%",
321
- }
322
- }
323
- >
324
- <div
325
- className="_weda-fn-upload-result"
326
- />
327
- <div
328
- className="weda-uploader-pc__input-box"
329
- >
330
- <span
331
- title="上传图片提示"
332
- >
333
- <input
334
- accept={
335
- Array [
336
- "image/jpg",
337
- "image/png",
338
- "image/tif",
339
- "image/bmp",
340
- "image/jpeg",
341
- "image/tiff",
342
- ]
343
- }
344
- autoComplete="off"
345
- multiple={false}
346
- onChange={[Function]}
347
- onClick={[Function]}
348
- style={
349
- Object {
350
- "display": "none",
351
- }
352
- }
353
- tabIndex={-1}
354
- type="file"
355
- />
356
- <span
357
- onClick={[Function]}
358
- >
359
- <li
360
- className="_weda-fn-upload-result__item _weda-fn-upload-result__item--upload"
361
- >
362
- <div
363
- className="_weda-fn-upload-result__status"
364
- >
365
- <i
366
- aria-label="plus"
367
- className="wedatea2td-icon wedatea2td-icon-plus"
368
- role="img"
369
- />
370
- <span
371
- className="wedatea2td-mt-1n wedatea2td-text-label wedatea2td-fz-reset"
372
- >
373
- 上传图片
374
- </span>
375
- </div>
376
- </li>
377
- </span>
378
- </span>
379
- </div>
380
- </div>
381
- </div>
382
- </div>
383
- </div>
384
- </div>
385
- `;
386
-
387
- exports[`Storyshots 表单/单选框 Default 1`] = `
388
- <div
389
- className="weda-ui weda-radio"
390
- >
391
- <div
392
- className="weda-formcells weui-cells weui-cells_checkbox weui-flex"
393
- >
394
- <div
395
- className="weda-formcells__label weui-cell"
396
- >
397
- <label>
398
- 标题
399
- </label>
400
- </div>
401
- <div
402
- className="weda-formcells__content weui-flex__item"
403
- >
404
- <label
405
- className="weui-cell weui-cell_active weui-check__label"
406
- htmlFor="radio-3-0"
407
- onClick={[Function]}
408
- >
409
- <div
410
- className="weui-cell__hd"
411
- >
412
- <input
413
- checked={true}
414
- className="weui-check"
415
- disabled={false}
416
- id="radio-3-0"
417
- name="radio-3-formRadio"
418
- onClick={[Function]}
419
- type="radio"
420
- value="first"
421
- />
422
- <i
423
- className="weui-icon-checked"
424
- />
425
- </div>
426
- <div
427
- className="weui-cell__bd"
428
- >
429
- <p>
430
- 单选-选项一
431
- </p>
432
- </div>
433
- </label>
434
- <label
435
- className="weui-cell weui-cell_active weui-check__label"
436
- htmlFor="radio-3-1"
437
- onClick={[Function]}
438
- >
439
- <div
440
- className="weui-cell__hd"
441
- >
442
- <input
443
- checked={false}
444
- className="weui-check"
445
- disabled={false}
446
- id="radio-3-1"
447
- name="radio-3-formRadio"
448
- onClick={[Function]}
449
- type="radio"
450
- value="second"
451
- />
452
- <i
453
- className="weui-icon-checked"
454
- />
455
- </div>
456
- <div
457
- className="weui-cell__bd"
458
- >
459
- <p>
460
- 单选-选项二
461
- </p>
462
- </div>
463
- </label>
464
- </div>
465
- </div>
466
- </div>
467
- `;
468
-
469
- exports[`Storyshots 表单/多选框 Default 1`] = `
470
- <div
471
- className="weda-ui weda-checkbox"
472
- >
473
- <div
474
- className="weda-formcells weui-cells weui-cells_checkbox weui-flex"
475
- >
476
- <div
477
- className="weda-formcells__label weui-cell"
478
- >
479
- <label>
480
- 标题
481
- </label>
482
- </div>
483
- <div
484
- className="weda-formcells__content weui-flex__item"
485
- >
486
- <label
487
- className="weui-cell weui-cell_active weui-check__label"
488
- htmlFor="checkbox-1-0"
489
- onClick={[Function]}
490
- >
491
- <div
492
- className="weui-cell__hd"
493
- >
494
- <input
495
- className="weui-check"
496
- defaultChecked={true}
497
- disabled={false}
498
- id="checkbox-1-0"
499
- name="checkbox-1-formCheckbox"
500
- onClick={[Function]}
501
- type="checkbox"
502
- value="first"
503
- />
504
- <i
505
- className="weui-icon-checked"
506
- />
507
- </div>
508
- <div
509
- className="weui-cell__bd"
510
- >
511
- <p>
512
- 多选-选项一
513
- </p>
514
- </div>
515
- </label>
516
- <label
517
- className="weui-cell weui-cell_active weui-check__label"
518
- htmlFor="checkbox-1-1"
519
- onClick={[Function]}
520
- >
521
- <div
522
- className="weui-cell__hd"
523
- >
524
- <input
525
- className="weui-check"
526
- defaultChecked={false}
527
- disabled={false}
528
- id="checkbox-1-1"
529
- name="checkbox-1-formCheckbox"
530
- onClick={[Function]}
531
- type="checkbox"
532
- value="second"
533
- />
534
- <i
535
- className="weui-icon-checked"
536
- />
537
- </div>
538
- <div
539
- className="weui-cell__bd"
540
- >
541
- <p>
542
- 多选-选项二
543
- </p>
544
- </div>
545
- </label>
546
- </div>
547
- </div>
548
- </div>
549
- `;
550
-
551
- exports[`Storyshots 表单/表单容器 Default 1`] = `
552
- <div
553
- className="weda-ui weda-form weui-form"
554
- >
555
- <div
556
- className="weui-cells__group weui-cells__group_form"
557
- >
558
- <div
559
- className="weda-ui weda-input"
560
- >
561
- <div
562
- className="weda-formcells weui-cells weui-cells_forms weui-flex"
563
- >
564
- <div
565
- className="weda-formcells__label weui-cell"
566
- >
567
- <label>
568
- 标题
569
- </label>
570
- </div>
571
- <div
572
- className="weda-formcells__content weui-flex__item"
573
- >
574
- <div
575
- className="weui-cell weui-cell_active weui-cell_form"
576
- >
577
- <div
578
- className="weui-cell__bd weui-flex"
579
- >
580
- <input
581
- autoFocus={false}
582
- className="weui-input"
583
- disabled={false}
584
- name="formInput"
585
- onBlur={[Function]}
586
- onChange={[Function]}
587
- onFocus={[Function]}
588
- onKeyDown={[Function]}
589
- placeholder="请输入"
590
- type="text"
591
- value=""
592
- />
593
- <button
594
- className="weui-btn_reset weui-btn_icon weui-btn_input-clear"
595
- onMouseDown={[Function]}
596
- >
597
- <i
598
- className="weui-icon-clear"
599
- />
600
- </button>
601
- </div>
602
- </div>
603
- </div>
604
- </div>
605
- </div>
606
- <div
607
- className="weda-ui weda-checkbox"
608
- >
609
- <div
610
- className="weda-formcells weui-cells weui-cells_checkbox weui-flex"
611
- >
612
- <div
613
- className="weda-formcells__label weui-cell"
614
- >
615
- <label>
616
- 标题
617
- </label>
618
- </div>
619
- <div
620
- className="weda-formcells__content weui-flex__item"
621
- />
622
- </div>
623
- </div>
624
- <button
625
- className="weda-ui weda-button weui-btn weui-btn_primary"
626
- disabled={false}
627
- onClick={[Function]}
628
- type="submit"
629
- >
630
- 确定
631
- </button>
632
- </div>
633
- </div>
634
- `;
635
-
636
- exports[`Storyshots 表单/输入框 Default 1`] = `
637
- <div
638
- className="weda-ui weda-input"
639
- >
640
- <div
641
- className="weda-formcells weui-cells weui-cells_forms weui-flex"
642
- >
643
- <div
644
- className="weda-formcells__label weui-cell"
645
- >
646
- <label>
647
- 标题
648
- </label>
649
- </div>
650
- <div
651
- className="weda-formcells__content weui-flex__item"
652
- >
653
- <div
654
- className="weui-cell weui-cell_active weui-cell_form"
655
- >
656
- <div
657
- className="weui-cell__bd weui-flex"
658
- >
659
- <input
660
- autoFocus={false}
661
- className="weui-input"
662
- disabled={false}
663
- name="formInput"
664
- onBlur={[Function]}
665
- onChange={[Function]}
666
- onFocus={[Function]}
667
- onKeyDown={[Function]}
668
- placeholder="请输入"
669
- type="text"
670
- value=""
671
- />
672
- <button
673
- className="weui-btn_reset weui-btn_icon weui-btn_input-clear"
674
- onMouseDown={[Function]}
675
- >
676
- <i
677
- className="weui-icon-clear"
678
- />
679
- </button>
680
- </div>
681
- </div>
682
- </div>
683
- </div>
684
- </div>
685
- `;
686
-
687
- exports[`Storyshots 表单/选择框 Default 1`] = `
688
- <div
689
- className="weda-ui weda-select"
690
- >
691
- <div
692
- className="weda-formcells weui-cells weui-cells_forms weui-flex"
693
- >
694
- <div
695
- className="weda-formcells__label weui-cell"
696
- >
697
- <label>
698
- 标题
699
- </label>
700
- </div>
701
- <div
702
- className="weda-formcells__content weui-flex__item"
703
- >
704
- <div
705
- className="weui-cell weui-cell_active weui-cell_form"
706
- >
707
- <div
708
- className="weui-cell__bd weui-flex"
709
- >
710
- <div
711
- className="wedatea2td-dropdown"
712
- onBlur={[Function]}
713
- onClick={[Function]}
714
- onFocus={[Function]}
715
- onKeyDown={[Function]}
716
- onMouseEnter={[Function]}
717
- onMouseLeave={[Function]}
718
- tabIndex={0}
719
- >
720
- <div
721
- className="wedatea2td-dropdown__header wedatea2td-dropdown-default"
722
- >
723
- <div
724
- className="wedatea2td-dropdown__value"
725
- >
726
- <span
727
- className="wedatea2td-text-weak"
728
- >
729
- 请选择
730
- </span>
731
- </div>
732
- <i
733
- aria-label="arrowdown"
734
- className="wedatea2td-icon wedatea2td-icon-arrowdown"
735
- role="img"
736
- />
737
- </div>
738
- </div>
739
- </div>
740
- </div>
741
- </div>
742
- </div>
743
- </div>
744
- `;
745
-
746
- exports[`Storyshots 高级/抽屉弹窗 Customize 1`] = `
747
- <button
748
- className="tea-btn tea-btn--weak"
749
- onClick={[Function]}
750
- style={Object {}}
751
- >
752
- 点击展开
753
- </button>
754
- `;