@uiw/doc 5.0.0-bate-1 → 5.0.0-bate-2

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 (337) hide show
  1. package/package.json +1 -1
  2. package/web/asset-manifest.json +264 -264
  3. package/web/index.html +1 -1
  4. package/web/static/js/1048.0d040676.chunk.js +2 -0
  5. package/web/static/js/{1048.e1f07ee4.chunk.js.map → 1048.0d040676.chunk.js.map} +1 -1
  6. package/web/static/js/{1548.8c412fe6.chunk.js → 1067.41839b42.chunk.js} +2 -2
  7. package/web/static/js/{1067.c19e8202.chunk.js.map → 1067.41839b42.chunk.js.map} +1 -1
  8. package/web/static/js/{1079.9eb656fd.chunk.js → 1079.cbe3c337.chunk.js} +2 -2
  9. package/web/static/js/{1079.9eb656fd.chunk.js.map → 1079.cbe3c337.chunk.js.map} +1 -1
  10. package/web/static/js/{1175.f47ae2f8.chunk.js → 1175.75718ca2.chunk.js} +2 -2
  11. package/web/static/js/{1175.f47ae2f8.chunk.js.map → 1175.75718ca2.chunk.js.map} +1 -1
  12. package/web/static/js/{1451.04b08f8d.chunk.js → 1451.67001d37.chunk.js} +2 -2
  13. package/web/static/js/{1451.04b08f8d.chunk.js.map → 1451.67001d37.chunk.js.map} +1 -1
  14. package/web/static/js/{1515.f35892bb.chunk.js → 1515.72604c10.chunk.js} +2 -2
  15. package/web/static/js/{1515.f35892bb.chunk.js.map → 1515.72604c10.chunk.js.map} +1 -1
  16. package/web/static/js/1548.018a20c4.chunk.js +2 -0
  17. package/web/static/js/{1548.8c412fe6.chunk.js.map → 1548.018a20c4.chunk.js.map} +1 -1
  18. package/web/static/js/{2810.5d785d11.chunk.js → 1574.d3a9d662.chunk.js} +2 -2
  19. package/web/static/js/{1574.2b98b114.chunk.js.map → 1574.d3a9d662.chunk.js.map} +1 -1
  20. package/web/static/js/{1643.ccbaaea6.chunk.js → 1643.cc6714c1.chunk.js} +2 -2
  21. package/web/static/js/{1643.ccbaaea6.chunk.js.map → 1643.cc6714c1.chunk.js.map} +1 -1
  22. package/web/static/js/1661.cd44eece.chunk.js +2 -0
  23. package/web/static/js/{1661.f881ca84.chunk.js.map → 1661.cd44eece.chunk.js.map} +1 -1
  24. package/web/static/js/{1750.9969beaa.chunk.js → 1750.0eee1f45.chunk.js} +2 -2
  25. package/web/static/js/{1750.9969beaa.chunk.js.map → 1750.0eee1f45.chunk.js.map} +1 -1
  26. package/web/static/js/1876.410e32df.chunk.js +2 -0
  27. package/web/static/js/{1876.6cad539d.chunk.js.map → 1876.410e32df.chunk.js.map} +1 -1
  28. package/web/static/js/1892.01e73135.chunk.js +2 -0
  29. package/web/static/js/{1892.dce494f3.chunk.js.map → 1892.01e73135.chunk.js.map} +1 -1
  30. package/web/static/js/190.1c9e3d39.chunk.js +2 -0
  31. package/web/static/js/{190.c864d902.chunk.js.map → 190.1c9e3d39.chunk.js.map} +1 -1
  32. package/web/static/js/1949.9086db0d.chunk.js +2 -0
  33. package/web/static/js/{1949.6ebed61b.chunk.js.map → 1949.9086db0d.chunk.js.map} +1 -1
  34. package/web/static/js/{2076.0ffaa5d4.chunk.js → 2076.6af39328.chunk.js} +2 -2
  35. package/web/static/js/{2076.0ffaa5d4.chunk.js.map → 2076.6af39328.chunk.js.map} +1 -1
  36. package/web/static/js/{2081.8362d59b.chunk.js → 2081.b3dc6876.chunk.js} +2 -2
  37. package/web/static/js/{2081.8362d59b.chunk.js.map → 2081.b3dc6876.chunk.js.map} +1 -1
  38. package/web/static/js/2134.b69f2059.chunk.js +2 -0
  39. package/web/static/js/{2134.e0ba4996.chunk.js.map → 2134.b69f2059.chunk.js.map} +1 -1
  40. package/web/static/js/2144.9a68ca25.chunk.js +2 -0
  41. package/web/static/js/{2144.42edbee6.chunk.js.map → 2144.9a68ca25.chunk.js.map} +1 -1
  42. package/web/static/js/{2191.c95ae2cd.chunk.js → 2191.331e9601.chunk.js} +2 -2
  43. package/web/static/js/{2191.c95ae2cd.chunk.js.map → 2191.331e9601.chunk.js.map} +1 -1
  44. package/web/static/js/2204.abb6769f.chunk.js +2 -0
  45. package/web/static/js/{2204.ff7bfaf1.chunk.js.map → 2204.abb6769f.chunk.js.map} +1 -1
  46. package/web/static/js/2206.d8dc74ee.chunk.js +2 -0
  47. package/web/static/js/{2206.c3122497.chunk.js.map → 2206.d8dc74ee.chunk.js.map} +1 -1
  48. package/web/static/js/2287.476f733f.chunk.js +2 -0
  49. package/web/static/js/{2287.d38944f1.chunk.js.map → 2287.476f733f.chunk.js.map} +1 -1
  50. package/web/static/js/{2302.507bc5f4.chunk.js → 2302.2c2b1710.chunk.js} +2 -2
  51. package/web/static/js/{2302.507bc5f4.chunk.js.map → 2302.2c2b1710.chunk.js.map} +1 -1
  52. package/web/static/js/{2326.05a269ae.chunk.js → 2326.2933f881.chunk.js} +2 -2
  53. package/web/static/js/{2326.05a269ae.chunk.js.map → 2326.2933f881.chunk.js.map} +1 -1
  54. package/web/static/js/{2633.54fe1930.chunk.js → 2633.353a08b1.chunk.js} +2 -2
  55. package/web/static/js/{2633.54fe1930.chunk.js.map → 2633.353a08b1.chunk.js.map} +1 -1
  56. package/web/static/js/2637.f7b026ce.chunk.js +2 -0
  57. package/web/static/js/{2637.d996c040.chunk.js.map → 2637.f7b026ce.chunk.js.map} +1 -1
  58. package/web/static/js/2730.16c5b784.chunk.js +2 -0
  59. package/web/static/js/{2730.64fb1f45.chunk.js.map → 2730.16c5b784.chunk.js.map} +1 -1
  60. package/web/static/js/2810.b88f0470.chunk.js +2 -0
  61. package/web/static/js/{2810.5d785d11.chunk.js.map → 2810.b88f0470.chunk.js.map} +1 -1
  62. package/web/static/js/{2860.283e99a3.chunk.js → 2860.1c24371b.chunk.js} +2 -2
  63. package/web/static/js/{2860.283e99a3.chunk.js.map → 2860.1c24371b.chunk.js.map} +1 -1
  64. package/web/static/js/{2869.71b339c3.chunk.js → 2869.fff04f77.chunk.js} +2 -2
  65. package/web/static/js/{2869.71b339c3.chunk.js.map → 2869.fff04f77.chunk.js.map} +1 -1
  66. package/web/static/js/3055.d866e965.chunk.js +2 -0
  67. package/web/static/js/{3055.cf175e33.chunk.js.map → 3055.d866e965.chunk.js.map} +1 -1
  68. package/web/static/js/{3177.ab91b49c.chunk.js → 3061.aca28e38.chunk.js} +2 -2
  69. package/web/static/js/{3061.6d1dbcc7.chunk.js.map → 3061.aca28e38.chunk.js.map} +1 -1
  70. package/web/static/js/{3109.be1ae97a.chunk.js → 3109.bf6ccfd9.chunk.js} +2 -2
  71. package/web/static/js/{3109.be1ae97a.chunk.js.map → 3109.bf6ccfd9.chunk.js.map} +1 -1
  72. package/web/static/js/{3161.88906b29.chunk.js → 3161.5712b0fc.chunk.js} +2 -2
  73. package/web/static/js/{3161.88906b29.chunk.js.map → 3161.5712b0fc.chunk.js.map} +1 -1
  74. package/web/static/js/{3061.6d1dbcc7.chunk.js → 3177.ee3049dc.chunk.js} +2 -2
  75. package/web/static/js/{3177.ab91b49c.chunk.js.map → 3177.ee3049dc.chunk.js.map} +1 -1
  76. package/web/static/js/3231.67e3bfa0.chunk.js +2 -0
  77. package/web/static/js/{3231.86e5a9af.chunk.js.map → 3231.67e3bfa0.chunk.js.map} +1 -1
  78. package/web/static/js/333.15a56f5e.chunk.js +2 -0
  79. package/web/static/js/{333.99eda08a.chunk.js.map → 333.15a56f5e.chunk.js.map} +1 -1
  80. package/web/static/js/335.90a3533c.chunk.js +2 -0
  81. package/web/static/js/{335.5fa7b0f6.chunk.js.map → 335.90a3533c.chunk.js.map} +1 -1
  82. package/web/static/js/3479.3e7bc277.chunk.js +2 -0
  83. package/web/static/js/{3479.07885d28.chunk.js.map → 3479.3e7bc277.chunk.js.map} +1 -1
  84. package/web/static/js/{3508.69e01ca9.chunk.js → 3508.33638225.chunk.js} +2 -2
  85. package/web/static/js/{3508.69e01ca9.chunk.js.map → 3508.33638225.chunk.js.map} +1 -1
  86. package/web/static/js/3535.6de0f923.chunk.js +2 -0
  87. package/web/static/js/{3535.99969a8e.chunk.js.map → 3535.6de0f923.chunk.js.map} +1 -1
  88. package/web/static/js/3552.9725e114.chunk.js +2 -0
  89. package/web/static/js/{3552.37e9b391.chunk.js.map → 3552.9725e114.chunk.js.map} +1 -1
  90. package/web/static/js/{3612.90208928.chunk.js → 3612.15b206eb.chunk.js} +2 -2
  91. package/web/static/js/{3612.90208928.chunk.js.map → 3612.15b206eb.chunk.js.map} +1 -1
  92. package/web/static/js/3717.3f1268b5.chunk.js +2 -0
  93. package/web/static/js/{3717.e32ec8d1.chunk.js.map → 3717.3f1268b5.chunk.js.map} +1 -1
  94. package/web/static/js/{3720.4257d6dc.chunk.js → 3720.3a2d5659.chunk.js} +2 -2
  95. package/web/static/js/{3720.4257d6dc.chunk.js.map → 3720.3a2d5659.chunk.js.map} +1 -1
  96. package/web/static/js/{9375.70bc0340.chunk.js → 3896.292878fe.chunk.js} +2 -2
  97. package/web/static/js/{3896.833cd43a.chunk.js.map → 3896.292878fe.chunk.js.map} +1 -1
  98. package/web/static/js/{3906.0b01eed3.chunk.js → 3906.fb61888e.chunk.js} +2 -2
  99. package/web/static/js/{3906.0b01eed3.chunk.js.map → 3906.fb61888e.chunk.js.map} +1 -1
  100. package/web/static/js/3914.64850d3a.chunk.js +2 -0
  101. package/web/static/js/{3914.e9637bc5.chunk.js.map → 3914.64850d3a.chunk.js.map} +1 -1
  102. package/web/static/js/{3984.50c9938a.chunk.js → 3984.a9819d09.chunk.js} +2 -2
  103. package/web/static/js/{3984.50c9938a.chunk.js.map → 3984.a9819d09.chunk.js.map} +1 -1
  104. package/web/static/js/4061.d1ed6129.chunk.js +2 -0
  105. package/web/static/js/{4061.d5d721a1.chunk.js.map → 4061.d1ed6129.chunk.js.map} +1 -1
  106. package/web/static/js/4070.d29dda6e.chunk.js +2 -0
  107. package/web/static/js/{4070.0ace6541.chunk.js.map → 4070.d29dda6e.chunk.js.map} +1 -1
  108. package/web/static/js/{4093.5b1ede70.chunk.js → 4093.4b67d1c7.chunk.js} +2 -2
  109. package/web/static/js/{4093.5b1ede70.chunk.js.map → 4093.4b67d1c7.chunk.js.map} +1 -1
  110. package/web/static/js/4107.eca5443b.chunk.js +2 -0
  111. package/web/static/js/{4107.d91e770f.chunk.js.map → 4107.eca5443b.chunk.js.map} +1 -1
  112. package/web/static/js/4137.b85e2de5.chunk.js +2 -0
  113. package/web/static/js/{4137.afdec2d8.chunk.js.map → 4137.b85e2de5.chunk.js.map} +1 -1
  114. package/web/static/js/4156.08e61372.chunk.js +2 -0
  115. package/web/static/js/{4156.65292e46.chunk.js.map → 4156.08e61372.chunk.js.map} +1 -1
  116. package/web/static/js/4307.c5789ff5.chunk.js +2 -0
  117. package/web/static/js/{4307.194c608d.chunk.js.map → 4307.c5789ff5.chunk.js.map} +1 -1
  118. package/web/static/js/{432.443115b8.chunk.js → 432.ad2801e4.chunk.js} +2 -2
  119. package/web/static/js/{432.443115b8.chunk.js.map → 432.ad2801e4.chunk.js.map} +1 -1
  120. package/web/static/js/4364.ef059cd5.chunk.js +2 -0
  121. package/web/static/js/{4364.5ede0267.chunk.js.map → 4364.ef059cd5.chunk.js.map} +1 -1
  122. package/web/static/js/4455.64c3d8df.chunk.js +2 -0
  123. package/web/static/js/{4455.c387fff7.chunk.js.map → 4455.64c3d8df.chunk.js.map} +1 -1
  124. package/web/static/js/{4477.e49d1233.chunk.js → 4477.58f937ba.chunk.js} +2 -2
  125. package/web/static/js/{4477.e49d1233.chunk.js.map → 4477.58f937ba.chunk.js.map} +1 -1
  126. package/web/static/js/{4529.f765f5f9.chunk.js → 4529.6f6a7980.chunk.js} +2 -2
  127. package/web/static/js/{4529.f765f5f9.chunk.js.map → 4529.6f6a7980.chunk.js.map} +1 -1
  128. package/web/static/js/{4575.e00c7e35.chunk.js → 4575.b84b63cd.chunk.js} +2 -2
  129. package/web/static/js/{4575.e00c7e35.chunk.js.map → 4575.b84b63cd.chunk.js.map} +1 -1
  130. package/web/static/js/{462.6aa933ce.chunk.js → 462.f248f6ea.chunk.js} +2 -2
  131. package/web/static/js/{462.6aa933ce.chunk.js.map → 462.f248f6ea.chunk.js.map} +1 -1
  132. package/web/static/js/{4725.cc165786.chunk.js → 4725.131542ea.chunk.js} +2 -2
  133. package/web/static/js/{4725.cc165786.chunk.js.map → 4725.131542ea.chunk.js.map} +1 -1
  134. package/web/static/js/{4861.760a5728.chunk.js → 4861.69669734.chunk.js} +2 -2
  135. package/web/static/js/{4861.760a5728.chunk.js.map → 4861.69669734.chunk.js.map} +1 -1
  136. package/web/static/js/498.536d1042.chunk.js +2 -0
  137. package/web/static/js/{498.e098e309.chunk.js.map → 498.536d1042.chunk.js.map} +1 -1
  138. package/web/static/js/530.ad2f61a1.chunk.js +2 -0
  139. package/web/static/js/{530.aed153af.chunk.js.map → 530.ad2f61a1.chunk.js.map} +1 -1
  140. package/web/static/js/{5388.265b6c41.chunk.js → 5388.f38bef53.chunk.js} +2 -2
  141. package/web/static/js/{5388.265b6c41.chunk.js.map → 5388.f38bef53.chunk.js.map} +1 -1
  142. package/web/static/js/5775.0c84a32f.chunk.js +2 -0
  143. package/web/static/js/{5775.ba04cebb.chunk.js.map → 5775.0c84a32f.chunk.js.map} +1 -1
  144. package/web/static/js/{5804.09a6221a.chunk.js → 5804.fd0480b2.chunk.js} +2 -2
  145. package/web/static/js/{5804.09a6221a.chunk.js.map → 5804.fd0480b2.chunk.js.map} +1 -1
  146. package/web/static/js/5852.a0dc3edb.chunk.js +2 -0
  147. package/web/static/js/{5852.81680c1d.chunk.js.map → 5852.a0dc3edb.chunk.js.map} +1 -1
  148. package/web/static/js/{5860.f20a549b.chunk.js → 5860.86c5cbe3.chunk.js} +2 -2
  149. package/web/static/js/{5860.f20a549b.chunk.js.map → 5860.86c5cbe3.chunk.js.map} +1 -1
  150. package/web/static/js/5900.7149b283.chunk.js +2 -0
  151. package/web/static/js/{5900.7e8b1c1c.chunk.js.map → 5900.7149b283.chunk.js.map} +1 -1
  152. package/web/static/js/597.d44c92d1.chunk.js +2 -0
  153. package/web/static/js/{597.33a99fc0.chunk.js.map → 597.d44c92d1.chunk.js.map} +1 -1
  154. package/web/static/js/6146.c78166ee.chunk.js +2 -0
  155. package/web/static/js/{6146.02595d77.chunk.js.map → 6146.c78166ee.chunk.js.map} +1 -1
  156. package/web/static/js/6255.77feee3a.chunk.js +2 -0
  157. package/web/static/js/{6255.ec81e9f0.chunk.js.map → 6255.77feee3a.chunk.js.map} +1 -1
  158. package/web/static/js/{6307.8621ad1f.chunk.js → 6307.ac2d0513.chunk.js} +2 -2
  159. package/web/static/js/{6307.8621ad1f.chunk.js.map → 6307.ac2d0513.chunk.js.map} +1 -1
  160. package/web/static/js/{636.2b02d702.chunk.js → 636.70fb3b12.chunk.js} +2 -2
  161. package/web/static/js/{636.2b02d702.chunk.js.map → 636.70fb3b12.chunk.js.map} +1 -1
  162. package/web/static/js/{649.8499b3f7.chunk.js → 649.7c92ca6c.chunk.js} +2 -2
  163. package/web/static/js/{649.8499b3f7.chunk.js.map → 649.7c92ca6c.chunk.js.map} +1 -1
  164. package/web/static/js/6503.9ec80e31.chunk.js +2 -0
  165. package/web/static/js/{6503.5f2349b1.chunk.js.map → 6503.9ec80e31.chunk.js.map} +1 -1
  166. package/web/static/js/{6512.40eb765d.chunk.js → 6512.700dbbe7.chunk.js} +2 -2
  167. package/web/static/js/{6512.40eb765d.chunk.js.map → 6512.700dbbe7.chunk.js.map} +1 -1
  168. package/web/static/js/6716.d9c56744.chunk.js +2 -0
  169. package/web/static/js/{6716.02298cc2.chunk.js.map → 6716.d9c56744.chunk.js.map} +1 -1
  170. package/web/static/js/6795.b4c430d9.chunk.js +2 -0
  171. package/web/static/js/{6795.bebf54d1.chunk.js.map → 6795.b4c430d9.chunk.js.map} +1 -1
  172. package/web/static/js/{6835.48c52b5a.chunk.js → 6835.85e5a6fe.chunk.js} +2 -2
  173. package/web/static/js/{6835.48c52b5a.chunk.js.map → 6835.85e5a6fe.chunk.js.map} +1 -1
  174. package/web/static/js/6889.0a68a9b1.chunk.js +2 -0
  175. package/web/static/js/{6889.9760ee32.chunk.js.map → 6889.0a68a9b1.chunk.js.map} +1 -1
  176. package/web/static/js/7019.9a6eaf3c.chunk.js +2 -0
  177. package/web/static/js/{7019.d2a9e0a0.chunk.js.map → 7019.9a6eaf3c.chunk.js.map} +1 -1
  178. package/web/static/js/7064.7cedd669.chunk.js +2 -0
  179. package/web/static/js/{7064.1feda4f5.chunk.js.map → 7064.7cedd669.chunk.js.map} +1 -1
  180. package/web/static/js/7096.276fd20d.chunk.js +2 -0
  181. package/web/static/js/{7096.7233b97b.chunk.js.map → 7096.276fd20d.chunk.js.map} +1 -1
  182. package/web/static/js/{7103.858f5648.chunk.js → 7103.daa1335b.chunk.js} +2 -2
  183. package/web/static/js/{7103.858f5648.chunk.js.map → 7103.daa1335b.chunk.js.map} +1 -1
  184. package/web/static/js/{713.bf164481.chunk.js → 713.b0c38175.chunk.js} +2 -2
  185. package/web/static/js/{713.bf164481.chunk.js.map → 713.b0c38175.chunk.js.map} +1 -1
  186. package/web/static/js/{7191.c0765c12.chunk.js → 7191.6bddc692.chunk.js} +2 -2
  187. package/web/static/js/{7191.c0765c12.chunk.js.map → 7191.6bddc692.chunk.js.map} +1 -1
  188. package/web/static/js/{7237.9107001a.chunk.js → 7237.a04bfb50.chunk.js} +2 -2
  189. package/web/static/js/{7237.9107001a.chunk.js.map → 7237.a04bfb50.chunk.js.map} +1 -1
  190. package/web/static/js/7342.24b0215c.chunk.js +2 -0
  191. package/web/static/js/{7342.f678a040.chunk.js.map → 7342.24b0215c.chunk.js.map} +1 -1
  192. package/web/static/js/{7499.917d3c0e.chunk.js → 7499.4eea90c9.chunk.js} +2 -2
  193. package/web/static/js/{7499.917d3c0e.chunk.js.map → 7499.4eea90c9.chunk.js.map} +1 -1
  194. package/web/static/js/7655.3bdc5151.chunk.js +2 -0
  195. package/web/static/js/{7655.67268587.chunk.js.map → 7655.3bdc5151.chunk.js.map} +1 -1
  196. package/web/static/js/7702.73da6d5e.chunk.js +2 -0
  197. package/web/static/js/{7702.d5a207ac.chunk.js.map → 7702.73da6d5e.chunk.js.map} +1 -1
  198. package/web/static/js/{7741.49dfa742.chunk.js → 7741.8e6a3a1d.chunk.js} +2 -2
  199. package/web/static/js/{7741.49dfa742.chunk.js.map → 7741.8e6a3a1d.chunk.js.map} +1 -1
  200. package/web/static/js/8047.afb8bd70.chunk.js +2 -0
  201. package/web/static/js/{8047.ec73e9a8.chunk.js.map → 8047.afb8bd70.chunk.js.map} +1 -1
  202. package/web/static/js/8110.c108ec6f.chunk.js +2 -0
  203. package/web/static/js/{8110.c0ad97fe.chunk.js.map → 8110.c108ec6f.chunk.js.map} +1 -1
  204. package/web/static/js/{8133.84406c17.chunk.js → 8133.63b5922a.chunk.js} +2 -2
  205. package/web/static/js/{8133.84406c17.chunk.js.map → 8133.63b5922a.chunk.js.map} +1 -1
  206. package/web/static/js/{8240.fdd46dad.chunk.js → 8240.e064ea8d.chunk.js} +2 -2
  207. package/web/static/js/{8240.fdd46dad.chunk.js.map → 8240.e064ea8d.chunk.js.map} +1 -1
  208. package/web/static/js/{8310.f3a2179c.chunk.js → 8310.c63a3fd1.chunk.js} +2 -2
  209. package/web/static/js/{8310.f3a2179c.chunk.js.map → 8310.c63a3fd1.chunk.js.map} +1 -1
  210. package/web/static/js/{8322.a529c34f.chunk.js → 8322.42dd0467.chunk.js} +2 -2
  211. package/web/static/js/{8322.a529c34f.chunk.js.map → 8322.42dd0467.chunk.js.map} +1 -1
  212. package/web/static/js/{8400.9f7d8e28.chunk.js → 8400.28c8c761.chunk.js} +2 -2
  213. package/web/static/js/{8400.9f7d8e28.chunk.js.map → 8400.28c8c761.chunk.js.map} +1 -1
  214. package/web/static/js/8415.19d6a621.chunk.js +2 -0
  215. package/web/static/js/{8415.1da9a8c6.chunk.js.map → 8415.19d6a621.chunk.js.map} +1 -1
  216. package/web/static/js/{4061.d5d721a1.chunk.js → 8467.b2ee1169.chunk.js} +2 -2
  217. package/web/static/js/{8467.6980e0c4.chunk.js.map → 8467.b2ee1169.chunk.js.map} +1 -1
  218. package/web/static/js/{8543.2648a0f6.chunk.js → 8543.58f35298.chunk.js} +2 -2
  219. package/web/static/js/{8543.2648a0f6.chunk.js.map → 8543.58f35298.chunk.js.map} +1 -1
  220. package/web/static/js/8630.c51b80ca.chunk.js +2 -0
  221. package/web/static/js/{8630.c63c3957.chunk.js.map → 8630.c51b80ca.chunk.js.map} +1 -1
  222. package/web/static/js/8660.9bad582e.chunk.js +2 -0
  223. package/web/static/js/{8660.2ba0842f.chunk.js.map → 8660.9bad582e.chunk.js.map} +1 -1
  224. package/web/static/js/8763.4f414d87.chunk.js +2 -0
  225. package/web/static/js/{8763.a8c2f646.chunk.js.map → 8763.4f414d87.chunk.js.map} +1 -1
  226. package/web/static/js/8822.fe5dc0e1.chunk.js +2 -0
  227. package/web/static/js/8822.fe5dc0e1.chunk.js.map +1 -0
  228. package/web/static/js/9036.bc65ca88.chunk.js +2 -0
  229. package/web/static/js/{9036.3a2a53e8.chunk.js.map → 9036.bc65ca88.chunk.js.map} +1 -1
  230. package/web/static/js/{9041.5ab09c0e.chunk.js → 9041.29725e33.chunk.js} +2 -2
  231. package/web/static/js/{9041.5ab09c0e.chunk.js.map → 9041.29725e33.chunk.js.map} +1 -1
  232. package/web/static/js/9351.f0f13e4c.chunk.js +2 -0
  233. package/web/static/js/{9351.27b41270.chunk.js.map → 9351.f0f13e4c.chunk.js.map} +1 -1
  234. package/web/static/js/9375.a35e41ad.chunk.js +2 -0
  235. package/web/static/js/{9375.70bc0340.chunk.js.map → 9375.a35e41ad.chunk.js.map} +1 -1
  236. package/web/static/js/9609.1f692a2e.chunk.js +2 -0
  237. package/web/static/js/{9609.e574c787.chunk.js.map → 9609.1f692a2e.chunk.js.map} +1 -1
  238. package/web/static/js/9624.cc68281c.chunk.js +2 -0
  239. package/web/static/js/{9624.556c2a56.chunk.js.map → 9624.cc68281c.chunk.js.map} +1 -1
  240. package/web/static/js/9650.c068e1d5.chunk.js +2 -0
  241. package/web/static/js/{9650.7ec42e29.chunk.js.map → 9650.c068e1d5.chunk.js.map} +1 -1
  242. package/web/static/js/{9666.bad06541.chunk.js → 9666.da3228f7.chunk.js} +2 -2
  243. package/web/static/js/{9666.bad06541.chunk.js.map → 9666.da3228f7.chunk.js.map} +1 -1
  244. package/web/static/js/9699.5cf9381a.chunk.js +2 -0
  245. package/web/static/js/{9699.da72e58b.chunk.js.map → 9699.5cf9381a.chunk.js.map} +1 -1
  246. package/web/static/js/{9773.8446f515.chunk.js → 9773.6de37226.chunk.js} +2 -2
  247. package/web/static/js/{9773.8446f515.chunk.js.map → 9773.6de37226.chunk.js.map} +1 -1
  248. package/web/static/js/{9808.269aa10a.chunk.js → 9808.c4333db4.chunk.js} +2 -2
  249. package/web/static/js/{9808.269aa10a.chunk.js.map → 9808.c4333db4.chunk.js.map} +1 -1
  250. package/web/static/js/981.ac2be71f.chunk.js +2 -0
  251. package/web/static/js/{981.03f01463.chunk.js.map → 981.ac2be71f.chunk.js.map} +1 -1
  252. package/web/static/js/9875.72dfb142.chunk.js +2 -0
  253. package/web/static/js/{9875.f42566b4.chunk.js.map → 9875.72dfb142.chunk.js.map} +1 -1
  254. package/web/static/js/{9915.6ef9e74a.chunk.js → 9915.8e596a28.chunk.js} +2 -2
  255. package/web/static/js/{9915.6ef9e74a.chunk.js.map → 9915.8e596a28.chunk.js.map} +1 -1
  256. package/web/static/js/9947.52bdb436.chunk.js +2 -0
  257. package/web/static/js/{9947.8aff2fc4.chunk.js.map → 9947.52bdb436.chunk.js.map} +1 -1
  258. package/web/static/js/{9985.2e4b2c4c.chunk.js → 9985.863e7b6b.chunk.js} +2 -2
  259. package/web/static/js/{9985.2e4b2c4c.chunk.js.map → 9985.863e7b6b.chunk.js.map} +1 -1
  260. package/web/static/js/{9986.be88d01d.chunk.js → 9986.62f00e08.chunk.js} +2 -2
  261. package/web/static/js/{9986.be88d01d.chunk.js.map → 9986.62f00e08.chunk.js.map} +1 -1
  262. package/web/static/js/main.892d700d.js +2 -0
  263. package/web/static/js/main.892d700d.js.map +1 -0
  264. package/web/static/js/vendors-uiwjs.36a34bfd.js +3 -0
  265. package/web/static/js/{vendors-uiwjs.3091e433.js.LICENSE.txt → vendors-uiwjs.36a34bfd.js.LICENSE.txt} +0 -0
  266. package/web/static/js/{vendors-uiwjs.3091e433.js.map → vendors-uiwjs.36a34bfd.js.map} +1 -1
  267. package/web/static/js/1048.e1f07ee4.chunk.js +0 -2
  268. package/web/static/js/1067.c19e8202.chunk.js +0 -2
  269. package/web/static/js/1574.2b98b114.chunk.js +0 -2
  270. package/web/static/js/1661.f881ca84.chunk.js +0 -2
  271. package/web/static/js/1876.6cad539d.chunk.js +0 -2
  272. package/web/static/js/1892.dce494f3.chunk.js +0 -2
  273. package/web/static/js/190.c864d902.chunk.js +0 -2
  274. package/web/static/js/1949.6ebed61b.chunk.js +0 -2
  275. package/web/static/js/2134.e0ba4996.chunk.js +0 -2
  276. package/web/static/js/2144.42edbee6.chunk.js +0 -2
  277. package/web/static/js/2204.ff7bfaf1.chunk.js +0 -2
  278. package/web/static/js/2206.c3122497.chunk.js +0 -2
  279. package/web/static/js/2287.d38944f1.chunk.js +0 -2
  280. package/web/static/js/2637.d996c040.chunk.js +0 -2
  281. package/web/static/js/2730.64fb1f45.chunk.js +0 -2
  282. package/web/static/js/3055.cf175e33.chunk.js +0 -2
  283. package/web/static/js/3231.86e5a9af.chunk.js +0 -2
  284. package/web/static/js/333.99eda08a.chunk.js +0 -2
  285. package/web/static/js/335.5fa7b0f6.chunk.js +0 -2
  286. package/web/static/js/3479.07885d28.chunk.js +0 -2
  287. package/web/static/js/3535.99969a8e.chunk.js +0 -2
  288. package/web/static/js/3552.37e9b391.chunk.js +0 -2
  289. package/web/static/js/3717.e32ec8d1.chunk.js +0 -2
  290. package/web/static/js/3896.833cd43a.chunk.js +0 -2
  291. package/web/static/js/3914.e9637bc5.chunk.js +0 -2
  292. package/web/static/js/4070.0ace6541.chunk.js +0 -2
  293. package/web/static/js/4107.d91e770f.chunk.js +0 -2
  294. package/web/static/js/4137.afdec2d8.chunk.js +0 -2
  295. package/web/static/js/4156.65292e46.chunk.js +0 -2
  296. package/web/static/js/4307.194c608d.chunk.js +0 -2
  297. package/web/static/js/4364.5ede0267.chunk.js +0 -2
  298. package/web/static/js/4455.c387fff7.chunk.js +0 -2
  299. package/web/static/js/498.e098e309.chunk.js +0 -2
  300. package/web/static/js/530.aed153af.chunk.js +0 -2
  301. package/web/static/js/5775.ba04cebb.chunk.js +0 -2
  302. package/web/static/js/5852.81680c1d.chunk.js +0 -2
  303. package/web/static/js/5900.7e8b1c1c.chunk.js +0 -2
  304. package/web/static/js/597.33a99fc0.chunk.js +0 -2
  305. package/web/static/js/6146.02595d77.chunk.js +0 -2
  306. package/web/static/js/6255.ec81e9f0.chunk.js +0 -2
  307. package/web/static/js/6503.5f2349b1.chunk.js +0 -2
  308. package/web/static/js/6716.02298cc2.chunk.js +0 -2
  309. package/web/static/js/6795.bebf54d1.chunk.js +0 -2
  310. package/web/static/js/6889.9760ee32.chunk.js +0 -2
  311. package/web/static/js/7019.d2a9e0a0.chunk.js +0 -2
  312. package/web/static/js/7064.1feda4f5.chunk.js +0 -2
  313. package/web/static/js/7096.7233b97b.chunk.js +0 -2
  314. package/web/static/js/7342.f678a040.chunk.js +0 -2
  315. package/web/static/js/7655.67268587.chunk.js +0 -2
  316. package/web/static/js/7702.d5a207ac.chunk.js +0 -2
  317. package/web/static/js/8047.ec73e9a8.chunk.js +0 -2
  318. package/web/static/js/8110.c0ad97fe.chunk.js +0 -2
  319. package/web/static/js/8415.1da9a8c6.chunk.js +0 -2
  320. package/web/static/js/8467.6980e0c4.chunk.js +0 -2
  321. package/web/static/js/8630.c63c3957.chunk.js +0 -2
  322. package/web/static/js/8660.2ba0842f.chunk.js +0 -2
  323. package/web/static/js/8763.a8c2f646.chunk.js +0 -2
  324. package/web/static/js/8822.ae88e086.chunk.js +0 -2
  325. package/web/static/js/8822.ae88e086.chunk.js.map +0 -1
  326. package/web/static/js/9036.3a2a53e8.chunk.js +0 -2
  327. package/web/static/js/9351.27b41270.chunk.js +0 -2
  328. package/web/static/js/9609.e574c787.chunk.js +0 -2
  329. package/web/static/js/9624.556c2a56.chunk.js +0 -2
  330. package/web/static/js/9650.7ec42e29.chunk.js +0 -2
  331. package/web/static/js/9699.da72e58b.chunk.js +0 -2
  332. package/web/static/js/981.03f01463.chunk.js +0 -2
  333. package/web/static/js/9875.f42566b4.chunk.js +0 -2
  334. package/web/static/js/9947.8aff2fc4.chunk.js +0 -2
  335. package/web/static/js/main.34cd18a1.js +0 -2
  336. package/web/static/js/main.34cd18a1.js.map +0 -1
  337. package/web/static/js/vendors-uiwjs.3091e433.js +0 -3
@@ -0,0 +1,2 @@
1
+ "use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9650],{9650:function(e,t,n){n.r(t),t.default={components:{18:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,o=(t=n(8133))&&t.__esModule?t:{default:t},r=n(968);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(n=e,!(null!=(o=t)&&"undefined"!==typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](n):n instanceof o))throw new TypeError("Cannot call a class as a function");var n,o}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return a(this,n)}}function a(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}return function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,n,a,f=c(p);function p(){var e;return i(this,p),(e=f.call(this)).state={visible1:!1,visible2:!1},e}return t=p,(n=[{key:"onClick",value:function(e){this.setState(u({},e,!this.state[e]))}},{key:"onClosed",value:function(e){this.setState(u({},e,!1))}},{key:"render",value:function(){return o.default.createElement("div",null,o.default.createElement(r.Alert,{isOpen:this.state.visible1,confirmText:"\u786e\u5b9a\u6309\u94ae",onClosed:this.onClosed.bind(this,"visible1"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{isOpen:this.state.visible2,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",type:"danger",onConfirm:function(){return console.log("\u60a8\u70b9\u51fb\u4e86\u786e\u5b9a\u6309\u94ae\uff01")},onCancel:function(){return console.log("\u60a8\u70b9\u51fb\u4e86\u53d6\u6d88\u6309\u94ae\uff01")},onClosed:this.onClosed.bind(this,"visible2")},"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c",o.default.createElement("b",null,"\u786e\u5b9a\u6309\u94ae"),"\u201d \u6216 \u201c",o.default.createElement("b",null,"\u53d6\u6d88\u6309\u94ae"),"\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u89e6\u53d1 \u201c",o.default.createElement("b",null,"onConfirm"),"\u201d \u6216 \u201c",o.default.createElement("b",null,"onCancel"),"\u201d \u4e8b\u4ef6\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"),o.default.createElement(r.ButtonGroup,null,o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible1")},"\u5355\u4e2a\u6309\u94ae\u786e\u8ba4\u5bf9\u8bdd\u6846"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible2")},"\u786e\u8ba4\u5bf9\u8bdd\u6846")))}}])&&s(t.prototype,n),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default.Component)}(),71:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,o=(t=n(8133))&&t.__esModule?t:{default:t},r=n(968);function u(e,t){if(n=e,!(null!=(o=t)&&"undefined"!==typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](n):n instanceof o))throw new TypeError("Cannot call a class as a function");var n,o}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=a(e);if(t){var r=a(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return c(this,n)}}function c(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}return function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,c,a=l(f);function f(){var e;return u(this,f),(e=a.call(this)).state={visible:!1},e}return t=f,(n=[{key:"onClick",value:function(){this.setState({visible:!this.statevisible})}},{key:"onClosed",value:function(){this.setState({visible:!1})}},{key:"render",value:function(){return o.default.createElement("div",null,o.default.createElement(r.Alert,{icon:"delete",isOpen:this.state.visible,confirmText:"\u786e\u5b9a\u6309\u94ae",type:"danger",onConfirm:function(){return console.log("\u786e\u5b9a\u56de\u8c03\uff01, \u8fd9\u91cc\u662f\u5229\u7528Promise\u7b49\u6267\u884c\u5b8c\u6210\u518d\u53bb\u5173\u95ed\u7a97\u53e3"),new Promise((function(e,t){var n=Math.random();console.log("\u6d4b\u8bd5\uff0c\u968f\u673a\u503c\u5927\u4e8e 0.5 \u6267\u884c resolve \u4e8b\u4ef6\uff0c\u5426\u5219 \u6267\u884c reject \u89e6\u53d1 catch \u9519\u8bef",n,n>.5),setTimeout(n>.5?e:t,3e3)})).catch((function(){}))},onClosed:this.onClosed.bind(this,"visible")},"\u8fd9\u91cc\u662f\u5229\u7528 ",o.default.createElement("b",null,"Promise")," \u7684\u7279\u6027\uff0c\u7b49\u5b83\u6267\u884c\u5b8c\u6210\u540e\uff0c\u518d\u53bb\u5173\u95ed\u7a97\u53e3\uff0c\u8fbe\u5230\u5ef6\u8fdf\u5173\u95ed\u7684\u6548\u679c\u3002",o.default.createElement("br",null),o.default.createElement("br",null),"\u8fd9\u4e2a\u6d4b\u8bd5\u4f8b\u5b50\uff0c\u751f\u6210\u968f\u673a\u503c\u5224\u65ad\u662f\u5426\u5927\u4e8e ",o.default.createElement("b",null,"0.5")," \u6267\u884c ",o.default.createElement("b",null,"resolve")," \u4e8b\u4ef6\uff0c\u5426\u5219 \u6267\u884c ",o.default.createElement("b",null,"reject")," \u89e6\u53d1 ",o.default.createElement("b",null,"catch")," \u9519\u8bef\u3002"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible")},"\u5ef6\u8fdf\u5173\u95ed\u5bf9\u8bdd\u6846"))}}])&&i(t.prototype,n),c&&i(t,c),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.default.Component)}(),124:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,o=(t=n(8133))&&t.__esModule?t:{default:t},r=n(968);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(n=e,!(null!=(o=t)&&"undefined"!==typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](n):n instanceof o))throw new TypeError("Cannot call a class as a function");var n,o}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return a(this,n)}}function a(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}return function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,n,a,f=c(p);function p(){var e;return i(this,p),(e=f.call(this)).state={visible1:!1,visible2:!1},e}return t=p,(n=[{key:"onClick",value:function(e){this.setState(u({},e,!this.state[e]))}},{key:"onClosed",value:function(e){this.setState(u({},e,!1))}},{key:"render",value:function(){return o.default.createElement("div",null,o.default.createElement(r.Alert,{isOpen:this.state.visible1,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",icon:"information",type:"primary",onClosed:this.onClosed.bind(this,"visible1"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{isOpen:this.state.visible2,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",icon:"circle-check",type:"success",onClosed:this.onClosed.bind(this,"visible2"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{isOpen:this.state.visible3,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",icon:"warning",type:"warning",onClosed:this.onClosed.bind(this,"visible3"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{isOpen:this.state.visible4,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",icon:"circle-close",type:"danger",onClosed:this.onClosed.bind(this,"visible4"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{isOpen:this.state.visible5,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",type:"light",onClosed:this.onClosed.bind(this,"visible5"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{isOpen:this.state.visible6,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",type:"dark",onClosed:this.onClosed.bind(this,"visible6")},"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c",o.default.createElement("b",null,"\u786e\u5b9a\u6309\u94ae"),"\u201d \u6216 \u201c",o.default.createElement("b",null,"\u53d6\u6d88\u6309\u94ae"),"\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u89e6\u53d1 \u201c",o.default.createElement("b",null,"onConfirm"),"\u201d \u6216 \u201c",o.default.createElement("b",null,"onCancel"),"\u201d \u4e8b\u4ef6\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"),o.default.createElement(r.ButtonGroup,null,o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible1"),type:"primary"},"\u4e3b\u8981"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible2"),type:"success"},"\u6210\u529f"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible3"),type:"warning"},"\u8b66\u544a"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible4"),type:"danger"},"\u9519\u8bef"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible5"),type:"light"},"\u4eae\u6309\u94ae"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible6"),type:"dark"},"\u6697\u6309\u94ae")))}}])&&s(t.prototype,n),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default.Component)}(),216:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,o=(t=n(8133))&&t.__esModule?t:{default:t},r=n(968);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){if(n=e,!(null!=(o=t)&&"undefined"!==typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](n):n instanceof o))throw new TypeError("Cannot call a class as a function");var n,o}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return a(this,n)}}function a(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}return function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,n,a,f=c(p);function p(){var e;return i(this,p),(e=f.call(this)).state={visible1:!1,visible2:!1},e}return t=p,(n=[{key:"onClick",value:function(e){this.setState(u({},e,!this.state[e]))}},{key:"onClosed",value:function(e){this.setState(u({},e,!1))}},{key:"render",value:function(){return o.default.createElement("div",null,o.default.createElement(r.Alert,{title:"\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846",isOpen:this.state.visible1,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",icon:"information",type:"primary",onClosed:this.onClosed.bind(this,"visible1"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{title:"\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846",isOpen:this.state.visible2,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",icon:"circle-check",type:"success",onClosed:this.onClosed.bind(this,"visible2"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{title:"\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846",isOpen:this.state.visible3,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",icon:"warning",type:"warning",onClosed:this.onClosed.bind(this,"visible3"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{title:"\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846",isOpen:this.state.visible4,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",icon:"circle-close",type:"danger",onClosed:this.onClosed.bind(this,"visible4"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{title:"\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846",isOpen:this.state.visible5,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",type:"light",onClosed:this.onClosed.bind(this,"visible5"),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"}),o.default.createElement(r.Alert,{title:"\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846",isOpen:this.state.visible6,confirmText:"\u786e\u5b9a\u6309\u94ae",cancelText:"\u53d6\u6d88\u6309\u94ae",type:"dark",onClosed:this.onClosed.bind(this,"visible6")},"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c",o.default.createElement("b",null,"\u786e\u5b9a\u6309\u94ae"),"\u201d \u6216 \u201c",o.default.createElement("b",null,"\u53d6\u6d88\u6309\u94ae"),"\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u89e6\u53d1 \u201c",o.default.createElement("b",null,"onConfirm"),"\u201d \u6216 \u201c",o.default.createElement("b",null,"onCancel"),"\u201d \u4e8b\u4ef6\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"),o.default.createElement(r.ButtonGroup,null,o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible1"),type:"primary"},"\u4e3b\u8981"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible2"),type:"success"},"\u6210\u529f"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible3"),type:"warning"},"\u8b66\u544a"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible4"),type:"danger"},"\u9519\u8bef"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible5"),type:"light"},"\u4eae\u6309\u94ae"),o.default.createElement(r.Button,{onClick:this.onClick.bind(this,"visible6"),type:"dark"},"\u6697\u6309\u94ae")))}}])&&s(t.prototype,n),a&&s(t,a),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.default.Component)}(),315:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,o=(t=n(8133))&&t.__esModule?t:{default:t},r=n(968);function u(e,t){if(n=e,!(null!=(o=t)&&"undefined"!==typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](n):n instanceof o))throw new TypeError("Cannot call a class as a function");var n,o}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=a(e);if(t){var r=a(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return c(this,n)}}function c(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}return function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,c,a=l(f);function f(){var e;return u(this,f),(e=a.call(this)).state={visible:!1},e}return t=f,(n=[{key:"onClick",value:function(e){this.setState({visible:!this.state.visible})}},{key:"onClosed",value:function(e){this.setState({visible:!1})}},{key:"render",value:function(){return o.default.createElement("div",null,o.default.createElement(r.Alert,{isOpen:this.state.visible,type:"danger",useButton:!1,maskClosable:!0,onClose:this.onClosed.bind(this),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"},"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c",o.default.createElement("b",null,"\u786e\u5b9a\u6309\u94ae"),"\u201d \u6216 \u201c",o.default.createElement("b",null,"\u53d6\u6d88\u6309\u94ae"),"\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u5c06\u4e0d\u89e6\u53d1 \u201c",o.default.createElement("del",null,"onConfirm"),"\u201d \u6216 \u201c",o.default.createElement("del",null,"onCancel"),"\u201d \u4e8b\u4ef6\u3002\u56e0\u4e3a\u8fd9\u4fe9\u6309\u94ae\u662f\u81ea\u5b9a\u4e49\u6309\u94ae\u3002",o.default.createElement("br",null),o.default.createElement("br",null),o.default.createElement("div",{className:"w-alert-footer"},o.default.createElement(r.Button,{type:"danger",onClick:this.onClosed.bind(this)},"\u786e\u5b9a\u6309\u94ae"),o.default.createElement(r.Button,{onClick:this.onClosed.bind(this)},"\u53d6\u6d88\u6309\u94ae"))),o.default.createElement(r.ButtonGroup,null,o.default.createElement(r.Button,{onClick:this.onClick.bind(this)},"\u5355\u4e2a\u6309\u94ae\u786e\u8ba4\u5bf9\u8bdd\u6846")))}}])&&i(t.prototype,n),c&&i(t,c),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.default.Component)}(),363:function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}var t,o=(t=n(8133))&&t.__esModule?t:{default:t},r=n(968);function u(e,t){if(n=e,!(null!=(o=t)&&"undefined"!==typeof Symbol&&o[Symbol.hasInstance]?o[Symbol.hasInstance](n):n instanceof o))throw new TypeError("Cannot call a class as a function");var n,o}function i(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=a(e);if(t){var r=a(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return c(this,n)}}function c(t,n){if(n&&("object"===e(n)||"function"===typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t)}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}return function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,c,a=l(f);function f(){var e;return u(this,f),(e=a.call(this)).state={visible:!1},e}return t=f,(n=[{key:"onClick",value:function(e){this.setState({visible:!this.state.visible})}},{key:"onClosed",value:function(e){this.setState({visible:!1})}},{key:"render",value:function(){return o.default.createElement("div",null,o.default.createElement(r.Alert,{isOpen:this.state.visible,type:"danger",maskClosable:!0,hasBackdrop:!1,onClose:this.onClosed.bind(this),onClosed:this.onClosed.bind(this),content:"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"},"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c",o.default.createElement("b",null,"\u786e\u5b9a\u6309\u94ae"),"\u201d \u6216 \u201c",o.default.createElement("b",null,"\u53d6\u6d88\u6309\u94ae"),"\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u5c06\u4e0d\u89e6\u53d1 \u201c",o.default.createElement("del",null,"onConfirm"),"\u201d \u6216 \u201c",o.default.createElement("del",null,"onCancel"),"\u201d \u4e8b\u4ef6\u3002\u56e0\u4e3a\u8fd9\u4fe9\u6309\u94ae\u662f\u81ea\u5b9a\u4e49\u6309\u94ae\u3002"),o.default.createElement(r.ButtonGroup,null,o.default.createElement(r.Button,{onClick:this.onClick.bind(this)},"\u5355\u4e2a\u6309\u94ae\u786e\u8ba4\u5bf9\u8bdd\u6846")))}}])&&i(t.prototype,n),c&&i(t,c),Object.defineProperty(t,"prototype",{writable:!1}),f}(o.default.Component)}()},data:{18:{name:18,meta:{background:"#fff",codeSandbox:"true",codePen:"true"},code:'"use strict";\n\nfunction _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } }\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\n\nvar _react = _interopRequireDefault(require("react"));\n\nvar _uiw = require("uiw");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar Demo = /*#__PURE__*/function (_React$Component) {\n _inherits(Demo, _React$Component);\n\n var _super = _createSuper(Demo);\n\n function Demo() {\n var _this;\n\n _classCallCheck(this, Demo);\n\n _this = _super.call(this);\n _this.state = {\n visible1: false,\n visible2: false\n };\n return _this;\n }\n\n _createClass(Demo, [{\n key: "onClick",\n value: function onClick(type) {\n this.setState(_defineProperty({}, type, !this.state[type]));\n }\n }, {\n key: "onClosed",\n value: function onClosed(type) {\n this.setState(_defineProperty({}, type, false));\n }\n }, {\n key: "render",\n value: function render() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible1,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n onClosed: this.onClosed.bind(this, \'visible1\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible2,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n type: "danger",\n onConfirm: function onConfirm() {\n return console.log(\'\u60a8\u70b9\u51fb\u4e86\u786e\u5b9a\u6309\u94ae\uff01\');\n },\n onCancel: function onCancel() {\n return console.log(\'\u60a8\u70b9\u51fb\u4e86\u53d6\u6d88\u6309\u94ae\uff01\');\n },\n onClosed: this.onClosed.bind(this, \'visible2\')\n }, "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u6709\\u4E24\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u786E\\u5B9A\\u6309\\u94AE"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u53D6\\u6D88\\u6309\\u94AE"), "\\u201D \\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\uFF0C\\u89E6\\u53D1 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "onConfirm"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "onCancel"), "\\u201D \\u4E8B\\u4EF6\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"), /*#__PURE__*/_react["default"].createElement(_uiw.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible1\')\n }, "\\u5355\\u4E2A\\u6309\\u94AE\\u786E\\u8BA4\\u5BF9\\u8BDD\\u6846"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible2\')\n }, "\\u786E\\u8BA4\\u5BF9\\u8BDD\\u6846")));\n }\n }]);\n\n return Demo;\n}(_react["default"].Component);\n\nreturn Demo;',language:"jsx",value:"import React from 'react';\nimport { Alert, ButtonGroup, Button } from 'uiw';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible1: false,\n visible2: false,\n }\n }\n onClick(type) {\n this.setState({ [type]: !this.state[type] });\n }\n onClosed(type) {\n this.setState({ [type]: false });\n }\n render() {\n return (\n <div>\n <Alert\n isOpen={this.state.visible1}\n confirmText=\"\u786e\u5b9a\u6309\u94ae\"\n onClosed={this.onClosed.bind(this, 'visible1')}\n content=\"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002\"\n />\n <Alert\n isOpen={this.state.visible2}\n confirmText=\"\u786e\u5b9a\u6309\u94ae\"\n cancelText=\"\u53d6\u6d88\u6309\u94ae\"\n type=\"danger\"\n onConfirm={() => console.log('\u60a8\u70b9\u51fb\u4e86\u786e\u5b9a\u6309\u94ae\uff01')}\n onCancel={() => console.log('\u60a8\u70b9\u51fb\u4e86\u53d6\u6d88\u6309\u94ae\uff01')}\n onClosed={this.onClosed.bind(this, 'visible2')}\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u89e6\u53d1 \u201c<b>onConfirm</b>\u201d \u6216 \u201c<b>onCancel</b>\u201d \u4e8b\u4ef6\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this, 'visible1')}>\u5355\u4e2a\u6309\u94ae\u786e\u8ba4\u5bf9\u8bdd\u6846</Button>\n <Button onClick={this.onClick.bind(this, 'visible2')}>\u786e\u8ba4\u5bf9\u8bdd\u6846</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo"},71:{name:71,meta:{background:"#fff",codeSandbox:"true",codePen:"true"},code:'"use strict";\n\nfunction _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } }\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\n\nvar _react = _interopRequireDefault(require("react"));\n\nvar _uiw = require("uiw");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar Demo = /*#__PURE__*/function (_React$Component) {\n _inherits(Demo, _React$Component);\n\n var _super = _createSuper(Demo);\n\n function Demo() {\n var _this;\n\n _classCallCheck(this, Demo);\n\n _this = _super.call(this);\n _this.state = {\n visible: false\n };\n return _this;\n }\n\n _createClass(Demo, [{\n key: "onClick",\n value: function onClick() {\n this.setState({\n visible: !this.statevisible\n });\n }\n }, {\n key: "onClosed",\n value: function onClosed() {\n this.setState({\n visible: false\n });\n }\n }, {\n key: "render",\n value: function render() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n icon: "delete",\n isOpen: this.state.visible,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n type: "danger",\n onConfirm: function onConfirm() {\n console.log(\'\u786e\u5b9a\u56de\u8c03\uff01, \u8fd9\u91cc\u662f\u5229\u7528Promise\u7b49\u6267\u884c\u5b8c\u6210\u518d\u53bb\u5173\u95ed\u7a97\u53e3\');\n return new Promise(function (resolve, reject) {\n var random = Math.random();\n console.log(\'\u6d4b\u8bd5\uff0c\u968f\u673a\u503c\u5927\u4e8e 0.5 \u6267\u884c resolve \u4e8b\u4ef6\uff0c\u5426\u5219 \u6267\u884c reject \u89e6\u53d1 catch \u9519\u8bef\', random, random > 0.5);\n setTimeout(random > 0.5 ? resolve : reject, 3000);\n })["catch"](function () {// \u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u65b9\u5f0f\uff0c\u963b\u6b62\u5f39\u6846\u6d88\u5931\n // throw new Error();\n });\n },\n onClosed: this.onClosed.bind(this, \'visible\')\n }, "\\u8FD9\\u91CC\\u662F\\u5229\\u7528 ", /*#__PURE__*/_react["default"].createElement("b", null, "Promise"), " \\u7684\\u7279\\u6027\\uFF0C\\u7B49\\u5B83\\u6267\\u884C\\u5B8C\\u6210\\u540E\\uFF0C\\u518D\\u53BB\\u5173\\u95ED\\u7A97\\u53E3\\uFF0C\\u8FBE\\u5230\\u5EF6\\u8FDF\\u5173\\u95ED\\u7684\\u6548\\u679C\\u3002", /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), "\\u8FD9\\u4E2A\\u6D4B\\u8BD5\\u4F8B\\u5B50\\uFF0C\\u751F\\u6210\\u968F\\u673A\\u503C\\u5224\\u65AD\\u662F\\u5426\\u5927\\u4E8E ", /*#__PURE__*/_react["default"].createElement("b", null, "0.5"), " \\u6267\\u884C ", /*#__PURE__*/_react["default"].createElement("b", null, "resolve"), " \\u4E8B\\u4EF6\\uFF0C\\u5426\\u5219 \\u6267\\u884C ", /*#__PURE__*/_react["default"].createElement("b", null, "reject"), " \\u89E6\\u53D1 ", /*#__PURE__*/_react["default"].createElement("b", null, "catch"), " \\u9519\\u8BEF\\u3002"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible\')\n }, "\\u5EF6\\u8FDF\\u5173\\u95ED\\u5BF9\\u8BDD\\u6846"));\n }\n }]);\n\n return Demo;\n}(_react["default"].Component);\n\nreturn Demo;',language:"jsx",value:"import React from 'react';\nimport { Alert, Button } from 'uiw';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible: false,\n }\n }\n onClick() {\n this.setState({ visible: !this.statevisible });\n }\n onClosed() {\n this.setState({ visible: false });\n }\n render() {\n return (\n <div>\n <Alert\n icon=\"delete\"\n isOpen={this.state.visible}\n confirmText=\"\u786e\u5b9a\u6309\u94ae\"\n type=\"danger\"\n onConfirm={() => {\n console.log('\u786e\u5b9a\u56de\u8c03\uff01, \u8fd9\u91cc\u662f\u5229\u7528Promise\u7b49\u6267\u884c\u5b8c\u6210\u518d\u53bb\u5173\u95ed\u7a97\u53e3');\n return new Promise((resolve, reject) => {\n const random = Math.random();\n console.log('\u6d4b\u8bd5\uff0c\u968f\u673a\u503c\u5927\u4e8e 0.5 \u6267\u884c resolve \u4e8b\u4ef6\uff0c\u5426\u5219 \u6267\u884c reject \u89e6\u53d1 catch \u9519\u8bef', random, random > 0.5)\n setTimeout(random > 0.5 ? resolve : reject, 3000);\n }).catch(() => {\n // \u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u65b9\u5f0f\uff0c\u963b\u6b62\u5f39\u6846\u6d88\u5931\n // throw new Error();\n });\n }}\n onClosed={this.onClosed.bind(this, 'visible')}\n >\n \u8fd9\u91cc\u662f\u5229\u7528 <b>Promise</b> \u7684\u7279\u6027\uff0c\u7b49\u5b83\u6267\u884c\u5b8c\u6210\u540e\uff0c\u518d\u53bb\u5173\u95ed\u7a97\u53e3\uff0c\u8fbe\u5230\u5ef6\u8fdf\u5173\u95ed\u7684\u6548\u679c\u3002<br /><br />\n \u8fd9\u4e2a\u6d4b\u8bd5\u4f8b\u5b50\uff0c\u751f\u6210\u968f\u673a\u503c\u5224\u65ad\u662f\u5426\u5927\u4e8e <b>0.5</b> \u6267\u884c <b>resolve</b> \u4e8b\u4ef6\uff0c\u5426\u5219 \u6267\u884c <b>reject</b> \u89e6\u53d1 <b>catch</b> \u9519\u8bef\u3002\n </Alert>\n <Button onClick={this.onClick.bind(this, 'visible')}>\u5ef6\u8fdf\u5173\u95ed\u5bf9\u8bdd\u6846</Button>\n </div>\n )\n }\n}\nexport default Demo"},124:{name:124,meta:{background:"#fff",codeSandbox:"true",codePen:"true"},code:'"use strict";\n\nfunction _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } }\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\n\nvar _react = _interopRequireDefault(require("react"));\n\nvar _uiw = require("uiw");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar Demo = /*#__PURE__*/function (_React$Component) {\n _inherits(Demo, _React$Component);\n\n var _super = _createSuper(Demo);\n\n function Demo() {\n var _this;\n\n _classCallCheck(this, Demo);\n\n _this = _super.call(this);\n _this.state = {\n visible1: false,\n visible2: false\n };\n return _this;\n }\n\n _createClass(Demo, [{\n key: "onClick",\n value: function onClick(type) {\n this.setState(_defineProperty({}, type, !this.state[type]));\n }\n }, {\n key: "onClosed",\n value: function onClosed(type) {\n this.setState(_defineProperty({}, type, false));\n }\n }, {\n key: "render",\n value: function render() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible1,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n icon: "information",\n type: "primary",\n onClosed: this.onClosed.bind(this, \'visible1\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible2,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n icon: "circle-check",\n type: "success",\n onClosed: this.onClosed.bind(this, \'visible2\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible3,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n icon: "warning",\n type: "warning",\n onClosed: this.onClosed.bind(this, \'visible3\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible4,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n icon: "circle-close",\n type: "danger",\n onClosed: this.onClosed.bind(this, \'visible4\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible5,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n type: "light",\n onClosed: this.onClosed.bind(this, \'visible5\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible6,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n type: "dark",\n onClosed: this.onClosed.bind(this, \'visible6\')\n }, "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u6709\\u4E24\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u786E\\u5B9A\\u6309\\u94AE"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u53D6\\u6D88\\u6309\\u94AE"), "\\u201D \\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\uFF0C\\u89E6\\u53D1 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "onConfirm"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "onCancel"), "\\u201D \\u4E8B\\u4EF6\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"), /*#__PURE__*/_react["default"].createElement(_uiw.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible1\'),\n type: "primary"\n }, "\\u4E3B\\u8981"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible2\'),\n type: "success"\n }, "\\u6210\\u529F"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible3\'),\n type: "warning"\n }, "\\u8B66\\u544A"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible4\'),\n type: "danger"\n }, "\\u9519\\u8BEF"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible5\'),\n type: "light"\n }, "\\u4EAE\\u6309\\u94AE"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible6\'),\n type: "dark"\n }, "\\u6697\\u6309\\u94AE")));\n }\n }]);\n\n return Demo;\n}(_react["default"].Component);\n\nreturn Demo;',language:"jsx",value:'import React from \'react\';\nimport { Alert, ButtonGroup, Button } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible1: false,\n visible2: false,\n }\n }\n onClick(type) {\n this.setState({ [type]: !this.state[type] });\n }\n onClosed(type) {\n this.setState({ [type]: false });\n }\n render() {\n return (\n <div>\n <Alert\n isOpen={this.state.visible1}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="information"\n type="primary"\n onClosed={this.onClosed.bind(this, \'visible1\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible2}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="circle-check"\n type="success"\n onClosed={this.onClosed.bind(this, \'visible2\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible3}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="warning"\n type="warning"\n onClosed={this.onClosed.bind(this, \'visible3\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible4}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="circle-close"\n type="danger"\n onClosed={this.onClosed.bind(this, \'visible4\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible5}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n type="light"\n onClosed={this.onClosed.bind(this, \'visible5\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible6}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n type="dark"\n onClosed={this.onClosed.bind(this, \'visible6\')}\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u89e6\u53d1 \u201c<b>onConfirm</b>\u201d \u6216 \u201c<b>onCancel</b>\u201d \u4e8b\u4ef6\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this, \'visible1\')} type="primary">\u4e3b\u8981</Button>\n <Button onClick={this.onClick.bind(this, \'visible2\')} type="success">\u6210\u529f</Button>\n <Button onClick={this.onClick.bind(this, \'visible3\')} type="warning">\u8b66\u544a</Button>\n <Button onClick={this.onClick.bind(this, \'visible4\')} type="danger">\u9519\u8bef</Button>\n <Button onClick={this.onClick.bind(this, \'visible5\')} type="light">\u4eae\u6309\u94ae</Button>\n <Button onClick={this.onClick.bind(this, \'visible6\')} type="dark">\u6697\u6309\u94ae</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo'},216:{name:216,meta:{background:"#fff",codeSandbox:"true",codePen:"true"},code:'"use strict";\n\nfunction _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } }\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\n\nvar _react = _interopRequireDefault(require("react"));\n\nvar _uiw = require("uiw");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar Demo = /*#__PURE__*/function (_React$Component) {\n _inherits(Demo, _React$Component);\n\n var _super = _createSuper(Demo);\n\n function Demo() {\n var _this;\n\n _classCallCheck(this, Demo);\n\n _this = _super.call(this);\n _this.state = {\n visible1: false,\n visible2: false\n };\n return _this;\n }\n\n _createClass(Demo, [{\n key: "onClick",\n value: function onClick(type) {\n this.setState(_defineProperty({}, type, !this.state[type]));\n }\n }, {\n key: "onClosed",\n value: function onClosed(type) {\n this.setState(_defineProperty({}, type, false));\n }\n }, {\n key: "render",\n value: function render() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n title: "\\u5E26\\u6807\\u9898\\u7684\\u5F39\\u51FA\\u6846",\n isOpen: this.state.visible1,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n icon: "information",\n type: "primary",\n onClosed: this.onClosed.bind(this, \'visible1\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n title: "\\u5E26\\u6807\\u9898\\u7684\\u5F39\\u51FA\\u6846",\n isOpen: this.state.visible2,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n icon: "circle-check",\n type: "success",\n onClosed: this.onClosed.bind(this, \'visible2\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n title: "\\u5E26\\u6807\\u9898\\u7684\\u5F39\\u51FA\\u6846",\n isOpen: this.state.visible3,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n icon: "warning",\n type: "warning",\n onClosed: this.onClosed.bind(this, \'visible3\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n title: "\\u5E26\\u6807\\u9898\\u7684\\u5F39\\u51FA\\u6846",\n isOpen: this.state.visible4,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n icon: "circle-close",\n type: "danger",\n onClosed: this.onClosed.bind(this, \'visible4\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n title: "\\u5E26\\u6807\\u9898\\u7684\\u5F39\\u51FA\\u6846",\n isOpen: this.state.visible5,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n type: "light",\n onClosed: this.onClosed.bind(this, \'visible5\'),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }), /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n title: "\\u5E26\\u6807\\u9898\\u7684\\u5F39\\u51FA\\u6846",\n isOpen: this.state.visible6,\n confirmText: "\\u786E\\u5B9A\\u6309\\u94AE",\n cancelText: "\\u53D6\\u6D88\\u6309\\u94AE",\n type: "dark",\n onClosed: this.onClosed.bind(this, \'visible6\')\n }, "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u6709\\u4E24\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u786E\\u5B9A\\u6309\\u94AE"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u53D6\\u6D88\\u6309\\u94AE"), "\\u201D \\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\uFF0C\\u89E6\\u53D1 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "onConfirm"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "onCancel"), "\\u201D \\u4E8B\\u4EF6\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"), /*#__PURE__*/_react["default"].createElement(_uiw.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible1\'),\n type: "primary"\n }, "\\u4E3B\\u8981"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible2\'),\n type: "success"\n }, "\\u6210\\u529F"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible3\'),\n type: "warning"\n }, "\\u8B66\\u544A"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible4\'),\n type: "danger"\n }, "\\u9519\\u8BEF"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible5\'),\n type: "light"\n }, "\\u4EAE\\u6309\\u94AE"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this, \'visible6\'),\n type: "dark"\n }, "\\u6697\\u6309\\u94AE")));\n }\n }]);\n\n return Demo;\n}(_react["default"].Component);\n\nreturn Demo;',language:"jsx",value:'import React from \'react\';\nimport { Alert, ButtonGroup, Button } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible1: false,\n visible2: false,\n }\n }\n onClick(type) {\n this.setState({ [type]: !this.state[type] });\n }\n onClosed(type) {\n this.setState({ [type]: false });\n }\n render() {\n return (\n <div>\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible1}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="information"\n type="primary"\n onClosed={this.onClosed.bind(this, \'visible1\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible2}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="circle-check"\n type="success"\n onClosed={this.onClosed.bind(this, \'visible2\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible3}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="warning"\n type="warning"\n onClosed={this.onClosed.bind(this, \'visible3\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible4}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="circle-close"\n type="danger"\n onClosed={this.onClosed.bind(this, \'visible4\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible5}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n type="light"\n onClosed={this.onClosed.bind(this, \'visible5\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible6}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n type="dark"\n onClosed={this.onClosed.bind(this, \'visible6\')}\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u89e6\u53d1 \u201c<b>onConfirm</b>\u201d \u6216 \u201c<b>onCancel</b>\u201d \u4e8b\u4ef6\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this, \'visible1\')} type="primary">\u4e3b\u8981</Button>\n <Button onClick={this.onClick.bind(this, \'visible2\')} type="success">\u6210\u529f</Button>\n <Button onClick={this.onClick.bind(this, \'visible3\')} type="warning">\u8b66\u544a</Button>\n <Button onClick={this.onClick.bind(this, \'visible4\')} type="danger">\u9519\u8bef</Button>\n <Button onClick={this.onClick.bind(this, \'visible5\')} type="light">\u4eae\u6309\u94ae</Button>\n <Button onClick={this.onClick.bind(this, \'visible6\')} type="dark">\u6697\u6309\u94ae</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo'},315:{name:315,meta:{background:"#fff",codeSandbox:"true",codePen:"true"},code:'"use strict";\n\nfunction _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } }\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\n\nvar _react = _interopRequireDefault(require("react"));\n\nvar _uiw = require("uiw");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar Demo = /*#__PURE__*/function (_React$Component) {\n _inherits(Demo, _React$Component);\n\n var _super = _createSuper(Demo);\n\n function Demo() {\n var _this;\n\n _classCallCheck(this, Demo);\n\n _this = _super.call(this);\n _this.state = {\n visible: false\n };\n return _this;\n }\n\n _createClass(Demo, [{\n key: "onClick",\n value: function onClick(type) {\n this.setState({\n visible: !this.state.visible\n });\n }\n }, {\n key: "onClosed",\n value: function onClosed(type) {\n this.setState({\n visible: false\n });\n }\n }, {\n key: "render",\n value: function render() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible,\n type: "danger",\n useButton: false,\n maskClosable: true,\n onClose: this.onClosed.bind(this) // onClosed={this.onClosed.bind(this)}\n ,\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }, "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u6709\\u4E24\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u786E\\u5B9A\\u6309\\u94AE"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u53D6\\u6D88\\u6309\\u94AE"), "\\u201D \\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\uFF0C\\u5C06\\u4E0D\\u89E6\\u53D1 \\u201C", /*#__PURE__*/_react["default"].createElement("del", null, "onConfirm"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("del", null, "onCancel"), "\\u201D \\u4E8B\\u4EF6\\u3002\\u56E0\\u4E3A\\u8FD9\\u4FE9\\u6309\\u94AE\\u662F\\u81EA\\u5B9A\\u4E49\\u6309\\u94AE\\u3002", /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement("div", {\n className: "w-alert-footer"\n }, /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n type: "danger",\n onClick: this.onClosed.bind(this)\n }, "\\u786E\\u5B9A\\u6309\\u94AE"), /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClosed.bind(this)\n }, "\\u53D6\\u6D88\\u6309\\u94AE"))), /*#__PURE__*/_react["default"].createElement(_uiw.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this)\n }, "\\u5355\\u4E2A\\u6309\\u94AE\\u786E\\u8BA4\\u5BF9\\u8BDD\\u6846")));\n }\n }]);\n\n return Demo;\n}(_react["default"].Component);\n\nreturn Demo;',language:"jsx",value:'import React from \'react\';\nimport { Alert, ButtonGroup, Button } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible: false,\n }\n }\n onClick(type) {\n this.setState({ visible: !this.state.visible });\n }\n onClosed(type) {\n this.setState({ visible: false });\n }\n render() {\n return (\n <div>\n <Alert\n isOpen={this.state.visible}\n type="danger"\n useButton={false}\n maskClosable={true}\n onClose={this.onClosed.bind(this)}\n // onClosed={this.onClosed.bind(this)}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u5c06\u4e0d\u89e6\u53d1 \u201c<del>onConfirm</del>\u201d \u6216 \u201c<del>onCancel</del>\u201d \u4e8b\u4ef6\u3002\u56e0\u4e3a\u8fd9\u4fe9\u6309\u94ae\u662f\u81ea\u5b9a\u4e49\u6309\u94ae\u3002\n <br /><br />\n <div className="w-alert-footer">\n <Button type="danger" onClick={this.onClosed.bind(this)} >\u786e\u5b9a\u6309\u94ae</Button>\n <Button onClick={this.onClosed.bind(this)} >\u53d6\u6d88\u6309\u94ae</Button>\n </div>\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this)}>\u5355\u4e2a\u6309\u94ae\u786e\u8ba4\u5bf9\u8bdd\u6846</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo'},363:{name:363,meta:{background:"#fff",codeSandbox:"true",codePen:"true"},code:'"use strict";\n\nfunction _instanceof(left, right) { if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { return !!right[Symbol.hasInstance](left); } else { return left instanceof right; } }\n\nfunction _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }\n\nvar _react = _interopRequireDefault(require("react"));\n\nvar _uiw = require("uiw");\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!_instanceof(instance, Constructor)) { throw new TypeError("Cannot call a class as a function"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn\'t been initialised - super() hasn\'t been called"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nvar Demo = /*#__PURE__*/function (_React$Component) {\n _inherits(Demo, _React$Component);\n\n var _super = _createSuper(Demo);\n\n function Demo() {\n var _this;\n\n _classCallCheck(this, Demo);\n\n _this = _super.call(this);\n _this.state = {\n visible: false\n };\n return _this;\n }\n\n _createClass(Demo, [{\n key: "onClick",\n value: function onClick(type) {\n this.setState({\n visible: !this.state.visible\n });\n }\n }, {\n key: "onClosed",\n value: function onClosed(type) {\n this.setState({\n visible: false\n });\n }\n }, {\n key: "render",\n value: function render() {\n return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_uiw.Alert, {\n isOpen: this.state.visible,\n type: "danger",\n maskClosable: true,\n hasBackdrop: false,\n onClose: this.onClosed.bind(this),\n onClosed: this.onClosed.bind(this),\n content: "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u53EA\\u6709\\u4E24\\u4E2A\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB\\u201C\\u786E\\u5B9A\\u6309\\u94AE\\u201D\\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\u3002\\u7528\\u4F5C\\u901A\\u77E5\\u7528\\u6237\\u91CD\\u8981\\u4FE1\\u606F\\u3002"\n }, "\\u8FD9\\u4E2A\\u5BF9\\u8BDD\\u6846\\u6709\\u4E24\\u4E2A\\u6309\\u94AE\\uFF0C\\u5355\\u51FB \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u786E\\u5B9A\\u6309\\u94AE"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("b", null, "\\u53D6\\u6D88\\u6309\\u94AE"), "\\u201D \\u540E\\uFF0C\\u6B64\\u5BF9\\u8BDD\\u6846\\u5C06\\u5173\\u95ED\\uFF0C\\u5C06\\u4E0D\\u89E6\\u53D1 \\u201C", /*#__PURE__*/_react["default"].createElement("del", null, "onConfirm"), "\\u201D \\u6216 \\u201C", /*#__PURE__*/_react["default"].createElement("del", null, "onCancel"), "\\u201D \\u4E8B\\u4EF6\\u3002\\u56E0\\u4E3A\\u8FD9\\u4FE9\\u6309\\u94AE\\u662F\\u81EA\\u5B9A\\u4E49\\u6309\\u94AE\\u3002"), /*#__PURE__*/_react["default"].createElement(_uiw.ButtonGroup, null, /*#__PURE__*/_react["default"].createElement(_uiw.Button, {\n onClick: this.onClick.bind(this)\n }, "\\u5355\\u4E2A\\u6309\\u94AE\\u786E\\u8BA4\\u5BF9\\u8BDD\\u6846")));\n }\n }]);\n\n return Demo;\n}(_react["default"].Component);\n\nreturn Demo;',language:"jsx",value:"import React from 'react';\nimport { Alert, ButtonGroup, Button } from 'uiw';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible: false,\n }\n }\n onClick(type) {\n this.setState({ visible: !this.state.visible });\n }\n onClosed(type) {\n this.setState({ visible: false });\n }\n render() {\n return (\n <div>\n <Alert\n isOpen={this.state.visible}\n type=\"danger\"\n maskClosable={true}\n hasBackdrop={false}\n onClose={this.onClosed.bind(this)}\n onClosed={this.onClosed.bind(this)}\n content=\"\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002\"\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u5c06\u4e0d\u89e6\u53d1 \u201c<del>onConfirm</del>\u201d \u6216 \u201c<del>onCancel</del>\u201d \u4e8b\u4ef6\u3002\u56e0\u4e3a\u8fd9\u4fe9\u6309\u94ae\u662f\u81ea\u5b9a\u4e49\u6309\u94ae\u3002\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this)}>\u5355\u4e2a\u6309\u94ae\u786e\u8ba4\u5bf9\u8bdd\u6846</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo"}},source:'Alert \u786e\u8ba4\u5bf9\u8bdd\u6846\n===\n\n[![Open in unpkg](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-alert/file/README.md)\n[![NPM Downloads](https://img.shields.io/npm/dm/@uiw/react-alert.svg?style=flat)](https://www.npmjs.com/package/@uiw/react-alert)\n[![npm version](https://img.shields.io/npm/v/@uiw/react-alert.svg?label=@uiw/react-alert)](https://npmjs.com/@uiw/react-alert)\n\n\u5f39\u51fa\u5bf9\u8bdd\u6846\u4f1a\u5728\u7ee7\u7eed\u4e4b\u524d\uff0c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\uff0c\u70b9\u51fb\u786e\u5b9a\u540e\u5f02\u6b65\u5173\u95ed\u5bf9\u8bdd\u6846\u3002\n\n```jsx\nimport { Alert } from \'uiw\';\n// or\nimport Alert from \'@uiw/react-alert\';\n```\n\n## \u57fa\u672c\u7528\u6cd5\n\n```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true\nimport React from \'react\';\nimport { Alert, ButtonGroup, Button } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible1: false,\n visible2: false,\n }\n }\n onClick(type) {\n this.setState({ [type]: !this.state[type] });\n }\n onClosed(type) {\n this.setState({ [type]: false });\n }\n render() {\n return (\n <div>\n <Alert\n isOpen={this.state.visible1}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n onClosed={this.onClosed.bind(this, \'visible1\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible2}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n type="danger"\n onConfirm={() => console.log(\'\u60a8\u70b9\u51fb\u4e86\u786e\u5b9a\u6309\u94ae\uff01\')}\n onCancel={() => console.log(\'\u60a8\u70b9\u51fb\u4e86\u53d6\u6d88\u6309\u94ae\uff01\')}\n onClosed={this.onClosed.bind(this, \'visible2\')}\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u89e6\u53d1 \u201c<b>onConfirm</b>\u201d \u6216 \u201c<b>onCancel</b>\u201d \u4e8b\u4ef6\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this, \'visible1\')}>\u5355\u4e2a\u6309\u94ae\u786e\u8ba4\u5bf9\u8bdd\u6846</Button>\n <Button onClick={this.onClick.bind(this, \'visible2\')}>\u786e\u8ba4\u5bf9\u8bdd\u6846</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo\n```\n\n## \u5ef6\u8fdf\u5173\u95ed\u5bf9\u8bdd\u6846\n\n\u8fd9\u91cc\u662f\u5229\u7528 `Promise` \u7b49\u5b83\u6267\u884c\u5b8c\u6210\u518d\u53bb\u5173\u95ed\u7a97\u53e3\n\n```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true\nimport React from \'react\';\nimport { Alert, Button } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible: false,\n }\n }\n onClick() {\n this.setState({ visible: !this.statevisible });\n }\n onClosed() {\n this.setState({ visible: false });\n }\n render() {\n return (\n <div>\n <Alert\n icon="delete"\n isOpen={this.state.visible}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n type="danger"\n onConfirm={() => {\n console.log(\'\u786e\u5b9a\u56de\u8c03\uff01, \u8fd9\u91cc\u662f\u5229\u7528Promise\u7b49\u6267\u884c\u5b8c\u6210\u518d\u53bb\u5173\u95ed\u7a97\u53e3\');\n return new Promise((resolve, reject) => {\n const random = Math.random();\n console.log(\'\u6d4b\u8bd5\uff0c\u968f\u673a\u503c\u5927\u4e8e 0.5 \u6267\u884c resolve \u4e8b\u4ef6\uff0c\u5426\u5219 \u6267\u884c reject \u89e6\u53d1 catch \u9519\u8bef\', random, random > 0.5)\n setTimeout(random > 0.5 ? resolve : reject, 3000);\n }).catch(() => {\n // \u53ef\u4ee5\u901a\u8fc7\u4e0b\u9762\u65b9\u5f0f\uff0c\u963b\u6b62\u5f39\u6846\u6d88\u5931\n // throw new Error();\n });\n }}\n onClosed={this.onClosed.bind(this, \'visible\')}\n >\n \u8fd9\u91cc\u662f\u5229\u7528 <b>Promise</b> \u7684\u7279\u6027\uff0c\u7b49\u5b83\u6267\u884c\u5b8c\u6210\u540e\uff0c\u518d\u53bb\u5173\u95ed\u7a97\u53e3\uff0c\u8fbe\u5230\u5ef6\u8fdf\u5173\u95ed\u7684\u6548\u679c\u3002<br /><br />\n \u8fd9\u4e2a\u6d4b\u8bd5\u4f8b\u5b50\uff0c\u751f\u6210\u968f\u673a\u503c\u5224\u65ad\u662f\u5426\u5927\u4e8e <b>0.5</b> \u6267\u884c <b>resolve</b> \u4e8b\u4ef6\uff0c\u5426\u5219 \u6267\u884c <b>reject</b> \u89e6\u53d1 <b>catch</b> \u9519\u8bef\u3002\n </Alert>\n <Button onClick={this.onClick.bind(this, \'visible\')}>\u5ef6\u8fdf\u5173\u95ed\u5bf9\u8bdd\u6846</Button>\n </div>\n )\n }\n}\nexport default Demo\n```\n\n## \u5e26\u56fe\u6807\u7684\u5f39\u51fa\u6846\n\n\u901a\u8fc7\u8bbe\u7f6e `icon` \u548c `type` \u53c2\u6570\u8bbe\u7f6e\u5e26\u72b6\u6001\u7684\u5f39\u51fa\u5bf9\u8bdd\u6846\u3002\n\n```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true\nimport React from \'react\';\nimport { Alert, ButtonGroup, Button } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible1: false,\n visible2: false,\n }\n }\n onClick(type) {\n this.setState({ [type]: !this.state[type] });\n }\n onClosed(type) {\n this.setState({ [type]: false });\n }\n render() {\n return (\n <div>\n <Alert\n isOpen={this.state.visible1}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="information"\n type="primary"\n onClosed={this.onClosed.bind(this, \'visible1\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible2}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="circle-check"\n type="success"\n onClosed={this.onClosed.bind(this, \'visible2\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible3}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="warning"\n type="warning"\n onClosed={this.onClosed.bind(this, \'visible3\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible4}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="circle-close"\n type="danger"\n onClosed={this.onClosed.bind(this, \'visible4\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible5}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n type="light"\n onClosed={this.onClosed.bind(this, \'visible5\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n isOpen={this.state.visible6}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n type="dark"\n onClosed={this.onClosed.bind(this, \'visible6\')}\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u89e6\u53d1 \u201c<b>onConfirm</b>\u201d \u6216 \u201c<b>onCancel</b>\u201d \u4e8b\u4ef6\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this, \'visible1\')} type="primary">\u4e3b\u8981</Button>\n <Button onClick={this.onClick.bind(this, \'visible2\')} type="success">\u6210\u529f</Button>\n <Button onClick={this.onClick.bind(this, \'visible3\')} type="warning">\u8b66\u544a</Button>\n <Button onClick={this.onClick.bind(this, \'visible4\')} type="danger">\u9519\u8bef</Button>\n <Button onClick={this.onClick.bind(this, \'visible5\')} type="light">\u4eae\u6309\u94ae</Button>\n <Button onClick={this.onClick.bind(this, \'visible6\')} type="dark">\u6697\u6309\u94ae</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo\n```\n\n\n## \u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846\n\n```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true\nimport React from \'react\';\nimport { Alert, ButtonGroup, Button } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible1: false,\n visible2: false,\n }\n }\n onClick(type) {\n this.setState({ [type]: !this.state[type] });\n }\n onClosed(type) {\n this.setState({ [type]: false });\n }\n render() {\n return (\n <div>\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible1}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="information"\n type="primary"\n onClosed={this.onClosed.bind(this, \'visible1\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible2}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="circle-check"\n type="success"\n onClosed={this.onClosed.bind(this, \'visible2\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible3}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="warning"\n type="warning"\n onClosed={this.onClosed.bind(this, \'visible3\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible4}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n icon="circle-close"\n type="danger"\n onClosed={this.onClosed.bind(this, \'visible4\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible5}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n type="light"\n onClosed={this.onClosed.bind(this, \'visible5\')}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n />\n <Alert\n title="\u5e26\u6807\u9898\u7684\u5f39\u51fa\u6846"\n isOpen={this.state.visible6}\n confirmText="\u786e\u5b9a\u6309\u94ae"\n cancelText="\u53d6\u6d88\u6309\u94ae"\n type="dark"\n onClosed={this.onClosed.bind(this, \'visible6\')}\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u89e6\u53d1 \u201c<b>onConfirm</b>\u201d \u6216 \u201c<b>onCancel</b>\u201d \u4e8b\u4ef6\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this, \'visible1\')} type="primary">\u4e3b\u8981</Button>\n <Button onClick={this.onClick.bind(this, \'visible2\')} type="success">\u6210\u529f</Button>\n <Button onClick={this.onClick.bind(this, \'visible3\')} type="warning">\u8b66\u544a</Button>\n <Button onClick={this.onClick.bind(this, \'visible4\')} type="danger">\u9519\u8bef</Button>\n <Button onClick={this.onClick.bind(this, \'visible5\')} type="light">\u4eae\u6309\u94ae</Button>\n <Button onClick={this.onClick.bind(this, \'visible6\')} type="dark">\u6697\u6309\u94ae</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo\n```\n\n### \u81ea\u5b9a\u4e49\u6309\u94ae\n\n\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb **`\u786e\u5b9a\u6309\u94ae`** \u6216 **`\u53d6\u6d88\u6309\u94ae`** \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u5c06\u4e0d\u89e6\u53d1 ~~`onConfirm`~~ \u6216 ~~`onCancel`~~ \u4e8b\u4ef6\u3002\u56e0\u4e3a\u8fd9\u4fe9\u6309\u94ae\u662f\u81ea\u5b9a\u4e49\u6309\u94ae\u3002\u4f60\u53ef\u4ee5\u6b63\u5bf9\u81ea\u5b9a\u4e49\u6309\u94ae\u5916\u9762\u7684\u5bf9\u8c61\u5b9a\u4e49 `className="w-alert-footer"` \u5c06\u663e\u793a\u9ed8\u8ba4\u6837\u5f0f\u3002\n\n```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true\nimport React from \'react\';\nimport { Alert, ButtonGroup, Button } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible: false,\n }\n }\n onClick(type) {\n this.setState({ visible: !this.state.visible });\n }\n onClosed(type) {\n this.setState({ visible: false });\n }\n render() {\n return (\n <div>\n <Alert\n isOpen={this.state.visible}\n type="danger"\n useButton={false}\n maskClosable={true}\n onClose={this.onClosed.bind(this)}\n // onClosed={this.onClosed.bind(this)}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u5c06\u4e0d\u89e6\u53d1 \u201c<del>onConfirm</del>\u201d \u6216 \u201c<del>onCancel</del>\u201d \u4e8b\u4ef6\u3002\u56e0\u4e3a\u8fd9\u4fe9\u6309\u94ae\u662f\u81ea\u5b9a\u4e49\u6309\u94ae\u3002\n <br /><br />\n <div className="w-alert-footer">\n <Button type="danger" onClick={this.onClosed.bind(this)} >\u786e\u5b9a\u6309\u94ae</Button>\n <Button onClick={this.onClosed.bind(this)} >\u53d6\u6d88\u6309\u94ae</Button>\n </div>\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this)}>\u5355\u4e2a\u6309\u94ae\u786e\u8ba4\u5bf9\u8bdd\u6846</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo\n```\n\n### \u4e0d\u663e\u793a\u906e\u7f69\u5c42\n\n```jsx mdx:preview&background=#fff&codeSandbox=true&codePen=true\nimport React from \'react\';\nimport { Alert, ButtonGroup, Button } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super();\n this.state = {\n visible: false,\n }\n }\n onClick(type) {\n this.setState({ visible: !this.state.visible });\n }\n onClosed(type) {\n this.setState({ visible: false });\n }\n render() {\n return (\n <div>\n <Alert\n isOpen={this.state.visible}\n type="danger"\n maskClosable={true}\n hasBackdrop={false}\n onClose={this.onClosed.bind(this)}\n onClosed={this.onClosed.bind(this)}\n content="\u8fd9\u4e2a\u5bf9\u8bdd\u6846\u53ea\u6709\u4e24\u4e2a\u4e2a\u6309\u94ae\uff0c\u5355\u51fb\u201c\u786e\u5b9a\u6309\u94ae\u201d\u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\u3002\u7528\u4f5c\u901a\u77e5\u7528\u6237\u91cd\u8981\u4fe1\u606f\u3002"\n >\n \u8fd9\u4e2a\u5bf9\u8bdd\u6846\u6709\u4e24\u4e2a\u6309\u94ae\uff0c\u5355\u51fb \u201c<b>\u786e\u5b9a\u6309\u94ae</b>\u201d \u6216 \u201c<b>\u53d6\u6d88\u6309\u94ae</b>\u201d \u540e\uff0c\u6b64\u5bf9\u8bdd\u6846\u5c06\u5173\u95ed\uff0c\u5c06\u4e0d\u89e6\u53d1 \u201c<del>onConfirm</del>\u201d \u6216 \u201c<del>onCancel</del>\u201d \u4e8b\u4ef6\u3002\u56e0\u4e3a\u8fd9\u4fe9\u6309\u94ae\u662f\u81ea\u5b9a\u4e49\u6309\u94ae\u3002\n </Alert>\n <ButtonGroup>\n <Button onClick={this.onClick.bind(this)}>\u5355\u4e2a\u6309\u94ae\u786e\u8ba4\u5bf9\u8bdd\u6846</Button>\n </ButtonGroup>\n </div>\n )\n }\n}\nexport default Demo\n```\n\n## Props\n\n\u867d\u7136\u7c7b\u4f3c\u4e8e\u5bf9 `<Modal>`\uff0c\u4f46 `<Alert>` \u66f4\u5177\u9650\u5236\u6027\uff0c\u53ea\u5e94\u7528\u4e8e\u91cd\u8981\u4fe1\u606f\u3002\u6b64\u7ec4\u4ef6\u7ee7\u627f [`<Modal>`](#/components/modal) \u7684\u5c5e\u6027\uff0c\u6240\u4ee5\u90e8\u5206\u53c2\u6570\u53ef\u4ee5\u53c2\u8003 `<Modal>` \u7ec4\u4ef6\u3002\n\n| \u53c2\u6570 | \u8bf4\u660e | \u7c7b\u578b | \u9ed8\u8ba4\u503c |\n|--------- |-------- |--------- |-------- |\n| onCancel | \u53d6\u6d88\u6309\u94ae\u7684\u56de\u8c03\u51fd\u6570 | Function(e) | - |\n| onConfirm | \u70b9\u51fb\u786e\u5b9a\u6309\u94ae\u56de\u8c03 | Function(e) | - |\n| cancelText | \u53d6\u6d88\u6309\u94ae\u6587\u5b57\uff0c | String | - |\n| confirmText | \u786e\u8ba4\u6309\u94ae\u6587\u5b57 | String | `\u786e\u8ba4` |\n| type | \u6309\u94ae\u7c7b\u578b\u8ddf `<Button>` \u7ec4\u4ef6\u7684 `type` \u53c2\u6570\u4e00\u81f4\uff0c\u540c\u65f6\u4f1a\u5f71\u54cd\u6309\u94ae\u989c\u8272\u3002 | String | `light` |\n| icon[`<Modal>`](#/components/modal) | \u8bbe\u7f6e\u5bf9\u8bdd\u6846\u5de6\u4e0a\u89d2\u56fe\u6807\uff0c\uff0c\u8bbe\u7f6e `type` \u5c06\u56fe\u6807\u8bbe\u7f6e\u4e0d\u540c\u7684\u989c\u8272\u3002\u5f53\u524d\u5c5e\u6027\u4e3a [`<Icon>`](#/components/icon) \u7ec4\u4ef6\u7684 `type` \u5c5e\u6027\uff0c\u6240\u4ee5\u53ef\u4ee5\u53c2\u8003\u8be5\u7ec4\u4ef6\u81ea\u5b9a\u4e49\u56fe\u6807\u3002 | String/ReactNode | - |\n| title[`<Modal>`](#/components/modal) | \u8bbe\u7f6e\u6807\u9898 | Function(e) | - |\n| useButton[`<Modal>`](#/components/modal) | \u662f\u5426\u4f7f\u7528\u9ed8\u8ba4\u6309\u94ae\uff0c\u5982\u679c\u8bbe\u7f6e `false` \u9700\u8981\u81ea\u5b9a\u4e49\u6309\u94ae\u5173\u95ed | Boolean | `true` |\n| isOpen[`<Modal>`](#/components/modal) | \u5bf9\u8bdd\u6846\u662f\u5426\u53ef\u89c1 | Boolean | `false` |\n| maskClosable[`<Modal>`](#/components/modal) | \u70b9\u51fb\u906e\u7f69\u5c42\u662f\u5426\u5141\u8bb8\u5173\u95ed | boolean | `true` |\n\n\u66f4\u591a\u5c5e\u6027\u6587\u6863\u8bf7\u53c2\u8003 [Modal](#/components/modal)\u3002'}}}]);
2
+ //# sourceMappingURL=9650.c068e1d5.chunk.js.map