@uiw/doc 4.11.5 → 4.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +21 -1
- package/package.json +1 -1
- package/web/CONTRIBUTORS.svg +4 -4
- package/web/asset-manifest.json +397 -391
- package/web/index.html +1 -1
- package/web/static/css/{163.187e4305.chunk.css → 1059.a51ed6f4.chunk.css} +2 -2
- package/web/static/css/1059.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/{221.187e4305.chunk.css → 1061.a51ed6f4.chunk.css} +2 -2
- package/web/static/css/1061.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/{643.187e4305.chunk.css → 1169.a51ed6f4.chunk.css} +2 -2
- package/web/static/css/1169.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/{694.187e4305.chunk.css → 1317.a51ed6f4.chunk.css} +2 -2
- package/web/static/css/1317.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/1584.a51ed6f4.chunk.css +2 -0
- package/web/static/css/1584.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/1619.a51ed6f4.chunk.css +2 -0
- package/web/static/css/1619.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/163.a51ed6f4.chunk.css +2 -0
- package/web/static/css/163.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/1820.a51ed6f4.chunk.css +2 -0
- package/web/static/css/1820.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2156.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2156.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2190.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2190.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/221.a51ed6f4.chunk.css +2 -0
- package/web/static/css/221.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2230.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2230.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2316.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2316.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2367.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2367.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2411.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2411.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2582.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2582.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2595.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2595.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2737.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2737.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/2782.a51ed6f4.chunk.css +2 -0
- package/web/static/css/2782.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/3313.a51ed6f4.chunk.css +2 -0
- package/web/static/css/3313.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/3518.a51ed6f4.chunk.css +2 -0
- package/web/static/css/3518.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/3812.a51ed6f4.chunk.css +2 -0
- package/web/static/css/3812.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/3917.a51ed6f4.chunk.css +2 -0
- package/web/static/css/3917.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/4010.a51ed6f4.chunk.css +2 -0
- package/web/static/css/4010.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/4098.a51ed6f4.chunk.css +2 -0
- package/web/static/css/4098.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/4128.a51ed6f4.chunk.css +2 -0
- package/web/static/css/4128.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/4188.a51ed6f4.chunk.css +2 -0
- package/web/static/css/4188.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/{4396.2422fe7f.chunk.css → 4396.c0ee3372.chunk.css} +2 -2
- package/web/static/css/4396.c0ee3372.chunk.css.map +1 -0
- package/web/static/css/4405.a51ed6f4.chunk.css +2 -0
- package/web/static/css/4405.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/4503.a51ed6f4.chunk.css +2 -0
- package/web/static/css/4503.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/4648.a51ed6f4.chunk.css +2 -0
- package/web/static/css/4648.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/4948.a51ed6f4.chunk.css +2 -0
- package/web/static/css/4948.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/5244.a51ed6f4.chunk.css +2 -0
- package/web/static/css/5244.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/5308.a51ed6f4.chunk.css +2 -0
- package/web/static/css/5308.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/5393.a51ed6f4.chunk.css +2 -0
- package/web/static/css/5393.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/5408.a51ed6f4.chunk.css +2 -0
- package/web/static/css/5408.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/5595.a51ed6f4.chunk.css +2 -0
- package/web/static/css/5595.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/5865.a51ed6f4.chunk.css +2 -0
- package/web/static/css/5865.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/643.a51ed6f4.chunk.css +2 -0
- package/web/static/css/643.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/6510.a51ed6f4.chunk.css +2 -0
- package/web/static/css/6510.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/6715.a51ed6f4.chunk.css +2 -0
- package/web/static/css/6715.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/6730.a51ed6f4.chunk.css +2 -0
- package/web/static/css/6730.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/694.a51ed6f4.chunk.css +2 -0
- package/web/static/css/694.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/7087.a51ed6f4.chunk.css +2 -0
- package/web/static/css/7087.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/7104.a51ed6f4.chunk.css +2 -0
- package/web/static/css/7104.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/7157.a51ed6f4.chunk.css +2 -0
- package/web/static/css/7157.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/7390.a51ed6f4.chunk.css +2 -0
- package/web/static/css/7390.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/748.a51ed6f4.chunk.css +2 -0
- package/web/static/css/748.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/7541.a51ed6f4.chunk.css +2 -0
- package/web/static/css/7541.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/7761.a51ed6f4.chunk.css +2 -0
- package/web/static/css/7761.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/7834.a51ed6f4.chunk.css +2 -0
- package/web/static/css/7834.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/7875.a51ed6f4.chunk.css +2 -0
- package/web/static/css/7875.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/7884.a51ed6f4.chunk.css +2 -0
- package/web/static/css/7884.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/8023.a51ed6f4.chunk.css +2 -0
- package/web/static/css/8023.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/8073.a51ed6f4.chunk.css +2 -0
- package/web/static/css/8073.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/8566.a51ed6f4.chunk.css +2 -0
- package/web/static/css/8566.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/875.a51ed6f4.chunk.css +2 -0
- package/web/static/css/875.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/8898.a51ed6f4.chunk.css +2 -0
- package/web/static/css/8898.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9121.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9121.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9253.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9253.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9260.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9260.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9384.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9384.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9503.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9503.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9673.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9673.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9763.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9763.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9776.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9776.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9777.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9777.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/9853.a51ed6f4.chunk.css +2 -0
- package/web/static/css/9853.a51ed6f4.chunk.css.map +1 -0
- package/web/static/css/{main.9ac00422.css → main.dc552a00.css} +2 -2
- package/web/static/css/main.dc552a00.css.map +1 -0
- package/web/static/js/1016.a3866702.chunk.js +2 -0
- package/web/static/js/1016.a3866702.chunk.js.map +1 -0
- package/web/static/js/1059.90efb44d.chunk.js +2 -0
- package/web/static/js/1059.90efb44d.chunk.js.map +1 -0
- package/web/static/js/1061.73bad321.chunk.js +2 -0
- package/web/static/js/1061.73bad321.chunk.js.map +1 -0
- package/web/static/js/1151.3c560b1f.chunk.js +2 -0
- package/web/static/js/1151.3c560b1f.chunk.js.map +1 -0
- package/web/static/js/1169.db9d8740.chunk.js +2 -0
- package/web/static/js/1169.db9d8740.chunk.js.map +1 -0
- package/web/static/js/1317.88afe85a.chunk.js +2 -0
- package/web/static/js/1317.88afe85a.chunk.js.map +1 -0
- package/web/static/js/1584.5a8e50ec.chunk.js +2 -0
- package/web/static/js/1584.5a8e50ec.chunk.js.map +1 -0
- package/web/static/js/1619.5a8a4ff8.chunk.js +2 -0
- package/web/static/js/1619.5a8a4ff8.chunk.js.map +1 -0
- package/web/static/js/163.14325291.chunk.js +2 -0
- package/web/static/js/163.14325291.chunk.js.map +1 -0
- package/web/static/js/1756.87f583cc.chunk.js +2 -0
- package/web/static/js/1756.87f583cc.chunk.js.map +1 -0
- package/web/static/js/1820.1beae18a.chunk.js +2 -0
- package/web/static/js/1820.1beae18a.chunk.js.map +1 -0
- package/web/static/js/1971.d746cb8b.chunk.js +2 -0
- package/web/static/js/1971.d746cb8b.chunk.js.map +1 -0
- package/web/static/js/207.891adb65.chunk.js +2 -0
- package/web/static/js/207.891adb65.chunk.js.map +1 -0
- package/web/static/js/2078.53137233.chunk.js +2 -0
- package/web/static/js/2078.53137233.chunk.js.map +1 -0
- package/web/static/js/2156.bdcfa583.chunk.js +2 -0
- package/web/static/js/2156.bdcfa583.chunk.js.map +1 -0
- package/web/static/js/2190.f8df1d26.chunk.js +2 -0
- package/web/static/js/2190.f8df1d26.chunk.js.map +1 -0
- package/web/static/js/221.6e5aadfa.chunk.js +2 -0
- package/web/static/js/221.6e5aadfa.chunk.js.map +1 -0
- package/web/static/js/2230.d1c75abd.chunk.js +2 -0
- package/web/static/js/2230.d1c75abd.chunk.js.map +1 -0
- package/web/static/js/2316.69000f72.chunk.js +2 -0
- package/web/static/js/2316.69000f72.chunk.js.map +1 -0
- package/web/static/js/2367.eccc87d2.chunk.js +2 -0
- package/web/static/js/2367.eccc87d2.chunk.js.map +1 -0
- package/web/static/js/2411.205f2dfc.chunk.js +2 -0
- package/web/static/js/2411.205f2dfc.chunk.js.map +1 -0
- package/web/static/js/2448.1d46904a.chunk.js +2 -0
- package/web/static/js/2448.1d46904a.chunk.js.map +1 -0
- package/web/static/js/2456.624e63f5.chunk.js +2 -0
- package/web/static/js/2456.624e63f5.chunk.js.map +1 -0
- package/web/static/js/2582.f98597b8.chunk.js +2 -0
- package/web/static/js/2582.f98597b8.chunk.js.map +1 -0
- package/web/static/js/2595.fa3e8660.chunk.js +2 -0
- package/web/static/js/2595.fa3e8660.chunk.js.map +1 -0
- package/web/static/js/2679.0780e749.chunk.js +2 -0
- package/web/static/js/2679.0780e749.chunk.js.map +1 -0
- package/web/static/js/2692.db178ecc.chunk.js +2 -0
- package/web/static/js/2692.db178ecc.chunk.js.map +1 -0
- package/web/static/js/2737.1531e7c4.chunk.js +2 -0
- package/web/static/js/2737.1531e7c4.chunk.js.map +1 -0
- package/web/static/js/2782.8f53b5d3.chunk.js +2 -0
- package/web/static/js/2782.8f53b5d3.chunk.js.map +1 -0
- package/web/static/js/2795.45c184a0.chunk.js +2 -0
- package/web/static/js/2795.45c184a0.chunk.js.map +1 -0
- package/web/static/js/3257.5693b5c1.chunk.js +2 -0
- package/web/static/js/3257.5693b5c1.chunk.js.map +1 -0
- package/web/static/js/3261.d4120c57.chunk.js +2 -0
- package/web/static/js/3261.d4120c57.chunk.js.map +1 -0
- package/web/static/js/3313.fe0cd6f5.chunk.js +2 -0
- package/web/static/js/3313.fe0cd6f5.chunk.js.map +1 -0
- package/web/static/js/3450.bb5e6340.chunk.js +2 -0
- package/web/static/js/3450.bb5e6340.chunk.js.map +1 -0
- package/web/static/js/3518.33d8ba7a.chunk.js +2 -0
- package/web/static/js/3518.33d8ba7a.chunk.js.map +1 -0
- package/web/static/js/3769.535a1903.chunk.js +2 -0
- package/web/static/js/3769.535a1903.chunk.js.map +1 -0
- package/web/static/js/3811.ac38cada.chunk.js +2 -0
- package/web/static/js/3811.ac38cada.chunk.js.map +1 -0
- package/web/static/js/3812.550737c8.chunk.js +2 -0
- package/web/static/js/3812.550737c8.chunk.js.map +1 -0
- package/web/static/js/3917.ebbebb48.chunk.js +2 -0
- package/web/static/js/3917.ebbebb48.chunk.js.map +1 -0
- package/web/static/js/3931.088517c5.chunk.js +2 -0
- package/web/static/js/3931.088517c5.chunk.js.map +1 -0
- package/web/static/js/4010.94a2f370.chunk.js +2 -0
- package/web/static/js/4010.94a2f370.chunk.js.map +1 -0
- package/web/static/js/4036.412a4652.chunk.js +2 -0
- package/web/static/js/4036.412a4652.chunk.js.map +1 -0
- package/web/static/js/4098.76ee1dff.chunk.js +2 -0
- package/web/static/js/4098.76ee1dff.chunk.js.map +1 -0
- package/web/static/js/4128.69c6f721.chunk.js +2 -0
- package/web/static/js/4128.69c6f721.chunk.js.map +1 -0
- package/web/static/js/4188.07a6d14f.chunk.js +2 -0
- package/web/static/js/4188.07a6d14f.chunk.js.map +1 -0
- package/web/static/js/4396.387e56ba.chunk.js +2 -0
- package/web/static/js/4396.387e56ba.chunk.js.map +1 -0
- package/web/static/js/4405.64ed0757.chunk.js +2 -0
- package/web/static/js/4405.64ed0757.chunk.js.map +1 -0
- package/web/static/js/4503.472c4be8.chunk.js +2 -0
- package/web/static/js/4503.472c4be8.chunk.js.map +1 -0
- package/web/static/js/4648.fb08ecf7.chunk.js +2 -0
- package/web/static/js/4648.fb08ecf7.chunk.js.map +1 -0
- package/web/static/js/4781.ce661c8a.chunk.js +2 -0
- package/web/static/js/4781.ce661c8a.chunk.js.map +1 -0
- package/web/static/js/{4877.607c2b06.chunk.js → 4877.578a0d95.chunk.js} +2 -2
- package/web/static/js/{4877.607c2b06.chunk.js.map → 4877.578a0d95.chunk.js.map} +1 -1
- package/web/static/js/4948.0bff80bf.chunk.js +2 -0
- package/web/static/js/4948.0bff80bf.chunk.js.map +1 -0
- package/web/static/js/5146.76b73d7f.chunk.js +2 -0
- package/web/static/js/5146.76b73d7f.chunk.js.map +1 -0
- package/web/static/js/5183.5bf4bc58.js +3 -0
- package/web/static/js/{5183.7b46ce4a.js.LICENSE.txt → 5183.5bf4bc58.js.LICENSE.txt} +0 -0
- package/web/static/js/{5183.7b46ce4a.js.map → 5183.5bf4bc58.js.map} +1 -1
- package/web/static/js/5244.59240891.chunk.js +2 -0
- package/web/static/js/5244.59240891.chunk.js.map +1 -0
- package/web/static/js/5253.7a8716a8.chunk.js +2 -0
- package/web/static/js/5253.7a8716a8.chunk.js.map +1 -0
- package/web/static/js/5308.6764f3f6.chunk.js +2 -0
- package/web/static/js/5308.6764f3f6.chunk.js.map +1 -0
- package/web/static/js/5364.b95913d0.chunk.js +2 -0
- package/web/static/js/5364.b95913d0.chunk.js.map +1 -0
- package/web/static/js/5393.e5199c1b.chunk.js +2 -0
- package/web/static/js/5393.e5199c1b.chunk.js.map +1 -0
- package/web/static/js/5408.10ccad31.chunk.js +2 -0
- package/web/static/js/5408.10ccad31.chunk.js.map +1 -0
- package/web/static/js/5468.ea87a4b5.chunk.js +2 -0
- package/web/static/js/5468.ea87a4b5.chunk.js.map +1 -0
- package/web/static/js/5595.de093c72.chunk.js +2 -0
- package/web/static/js/5595.de093c72.chunk.js.map +1 -0
- package/web/static/js/5821.41b747c6.chunk.js +2 -0
- package/web/static/js/5821.41b747c6.chunk.js.map +1 -0
- package/web/static/js/5865.c64e1f6d.chunk.js +2 -0
- package/web/static/js/5865.c64e1f6d.chunk.js.map +1 -0
- package/web/static/js/5930.65ea3787.chunk.js +2 -0
- package/web/static/js/5930.65ea3787.chunk.js.map +1 -0
- package/web/static/js/6019.add10037.chunk.js +2 -0
- package/web/static/js/6019.add10037.chunk.js.map +1 -0
- package/web/static/js/6036.289c2eb8.chunk.js +2 -0
- package/web/static/js/6036.289c2eb8.chunk.js.map +1 -0
- package/web/static/js/643.a4b0a277.chunk.js +2 -0
- package/web/static/js/643.a4b0a277.chunk.js.map +1 -0
- package/web/static/js/6510.1eb426c4.chunk.js +2 -0
- package/web/static/js/6510.1eb426c4.chunk.js.map +1 -0
- package/web/static/js/6536.6aaaba5b.chunk.js +2 -0
- package/web/static/js/6536.6aaaba5b.chunk.js.map +1 -0
- package/web/static/js/6566.3c91cbc8.chunk.js +2 -0
- package/web/static/js/6566.3c91cbc8.chunk.js.map +1 -0
- package/web/static/js/6659.6790167d.chunk.js +2 -0
- package/web/static/js/6659.6790167d.chunk.js.map +1 -0
- package/web/static/js/6715.89ba7a32.chunk.js +2 -0
- package/web/static/js/6715.89ba7a32.chunk.js.map +1 -0
- package/web/static/js/6730.924466d5.chunk.js +2 -0
- package/web/static/js/6730.924466d5.chunk.js.map +1 -0
- package/web/static/js/6869.6df90f7d.chunk.js +2 -0
- package/web/static/js/6869.6df90f7d.chunk.js.map +1 -0
- package/web/static/js/6878.c6cec0d9.chunk.js +2 -0
- package/web/static/js/6878.c6cec0d9.chunk.js.map +1 -0
- package/web/static/js/691.19935a6a.chunk.js +3 -0
- package/web/static/js/{77.bdabcc80.chunk.js.LICENSE.txt → 691.19935a6a.chunk.js.LICENSE.txt} +0 -0
- package/web/static/js/691.19935a6a.chunk.js.map +1 -0
- package/web/static/js/694.0dfc6874.chunk.js +2 -0
- package/web/static/js/694.0dfc6874.chunk.js.map +1 -0
- package/web/static/js/7079.3aa94426.chunk.js +2 -0
- package/web/static/js/7079.3aa94426.chunk.js.map +1 -0
- package/web/static/js/7087.b50c719c.chunk.js +2 -0
- package/web/static/js/7087.b50c719c.chunk.js.map +1 -0
- package/web/static/js/7104.1e0bdbb7.chunk.js +2 -0
- package/web/static/js/7104.1e0bdbb7.chunk.js.map +1 -0
- package/web/static/js/7157.5095d0b3.chunk.js +2 -0
- package/web/static/js/7157.5095d0b3.chunk.js.map +1 -0
- package/web/static/js/7217.1cd6fbd5.chunk.js +2 -0
- package/web/static/js/7217.1cd6fbd5.chunk.js.map +1 -0
- package/web/static/js/7313.afa8589a.chunk.js +2 -0
- package/web/static/js/7313.afa8589a.chunk.js.map +1 -0
- package/web/static/js/7390.09051e7a.chunk.js +2 -0
- package/web/static/js/7390.09051e7a.chunk.js.map +1 -0
- package/web/static/js/745.3a86c62c.chunk.js +2 -0
- package/web/static/js/745.3a86c62c.chunk.js.map +1 -0
- package/web/static/js/747.7519f1c0.chunk.js +2 -0
- package/web/static/js/747.7519f1c0.chunk.js.map +1 -0
- package/web/static/js/748.481659a4.chunk.js +2 -0
- package/web/static/js/748.481659a4.chunk.js.map +1 -0
- package/web/static/js/7541.2bf8c95a.chunk.js +2 -0
- package/web/static/js/7541.2bf8c95a.chunk.js.map +1 -0
- package/web/static/js/766.3a803d1a.chunk.js +2 -0
- package/web/static/js/766.3a803d1a.chunk.js.map +1 -0
- package/web/static/js/7664.f92b74f7.chunk.js +2 -0
- package/web/static/js/7664.f92b74f7.chunk.js.map +1 -0
- package/web/static/js/7761.93b04cda.chunk.js +2 -0
- package/web/static/js/7761.93b04cda.chunk.js.map +1 -0
- package/web/static/js/7834.17da4e4b.chunk.js +2 -0
- package/web/static/js/7834.17da4e4b.chunk.js.map +1 -0
- package/web/static/js/7861.757503f5.chunk.js +2 -0
- package/web/static/js/7861.757503f5.chunk.js.map +1 -0
- package/web/static/js/7875.8e25630a.chunk.js +2 -0
- package/web/static/js/7875.8e25630a.chunk.js.map +1 -0
- package/web/static/js/7884.ff219c2d.chunk.js +2 -0
- package/web/static/js/7884.ff219c2d.chunk.js.map +1 -0
- package/web/static/js/8023.98b0d5d9.chunk.js +2 -0
- package/web/static/js/8023.98b0d5d9.chunk.js.map +1 -0
- package/web/static/js/8073.d3102645.chunk.js +2 -0
- package/web/static/js/8073.d3102645.chunk.js.map +1 -0
- package/web/static/js/8312.58a5729e.chunk.js +2 -0
- package/web/static/js/8312.58a5729e.chunk.js.map +1 -0
- package/web/static/js/8398.cc6aa9ea.chunk.js +2 -0
- package/web/static/js/8398.cc6aa9ea.chunk.js.map +1 -0
- package/web/static/js/8488.148bfa75.chunk.js +2 -0
- package/web/static/js/8488.148bfa75.chunk.js.map +1 -0
- package/web/static/js/8566.89797c93.chunk.js +2 -0
- package/web/static/js/8566.89797c93.chunk.js.map +1 -0
- package/web/static/js/8586.9d605493.chunk.js +2 -0
- package/web/static/js/8586.9d605493.chunk.js.map +1 -0
- package/web/static/js/8709.44b46cf7.chunk.js +2 -0
- package/web/static/js/8709.44b46cf7.chunk.js.map +1 -0
- package/web/static/js/875.8ab8ff06.chunk.js +2 -0
- package/web/static/js/875.8ab8ff06.chunk.js.map +1 -0
- package/web/static/js/8768.0dfc18cd.chunk.js +2 -0
- package/web/static/js/8768.0dfc18cd.chunk.js.map +1 -0
- package/web/static/js/8849.d5dd1a61.chunk.js +2 -0
- package/web/static/js/8849.d5dd1a61.chunk.js.map +1 -0
- package/web/static/js/8898.a062dc4b.chunk.js +2 -0
- package/web/static/js/8898.a062dc4b.chunk.js.map +1 -0
- package/web/static/js/8915.82c6b45a.chunk.js +2 -0
- package/web/static/js/8915.82c6b45a.chunk.js.map +1 -0
- package/web/static/js/9057.452b4a09.chunk.js +2 -0
- package/web/static/js/9057.452b4a09.chunk.js.map +1 -0
- package/web/static/js/9121.fdcdfbe5.chunk.js +2 -0
- package/web/static/js/9121.fdcdfbe5.chunk.js.map +1 -0
- package/web/static/js/9147.d6a507a2.chunk.js +2 -0
- package/web/static/js/9147.d6a507a2.chunk.js.map +1 -0
- package/web/static/js/9188.636af533.chunk.js +2 -0
- package/web/static/js/9188.636af533.chunk.js.map +1 -0
- package/web/static/js/9253.fda79e60.chunk.js +2 -0
- package/web/static/js/9253.fda79e60.chunk.js.map +1 -0
- package/web/static/js/9260.f61ca7dc.chunk.js +2 -0
- package/web/static/js/9260.f61ca7dc.chunk.js.map +1 -0
- package/web/static/js/9384.2fd18cf6.chunk.js +2 -0
- package/web/static/js/9384.2fd18cf6.chunk.js.map +1 -0
- package/web/static/js/9503.90cf8ff8.chunk.js +2 -0
- package/web/static/js/9503.90cf8ff8.chunk.js.map +1 -0
- package/web/static/js/9673.5bac86ce.chunk.js +2 -0
- package/web/static/js/9673.5bac86ce.chunk.js.map +1 -0
- package/web/static/js/9763.6aa7e595.chunk.js +2 -0
- package/web/static/js/9763.6aa7e595.chunk.js.map +1 -0
- package/web/static/js/9776.6c150975.chunk.js +2 -0
- package/web/static/js/9776.6c150975.chunk.js.map +1 -0
- package/web/static/js/9777.b69fb989.chunk.js +2 -0
- package/web/static/js/9777.b69fb989.chunk.js.map +1 -0
- package/web/static/js/9820.1374775d.chunk.js +2 -0
- package/web/static/js/9820.1374775d.chunk.js.map +1 -0
- package/web/static/js/9836.8cd96a11.chunk.js +2 -0
- package/web/static/js/9836.8cd96a11.chunk.js.map +1 -0
- package/web/static/js/9853.524e86eb.chunk.js +2 -0
- package/web/static/js/9853.524e86eb.chunk.js.map +1 -0
- package/web/static/js/9900.2d8ffaaf.chunk.js +2 -0
- package/web/static/js/9900.2d8ffaaf.chunk.js.map +1 -0
- package/web/static/js/9961.3712fbe4.chunk.js +2 -0
- package/web/static/js/9961.3712fbe4.chunk.js.map +1 -0
- package/web/static/js/main.08369c80.js +2 -0
- package/web/static/js/main.08369c80.js.map +1 -0
- package/web/static/js/vendors-prismjs.b53bdc3b.chunk.js +3 -0
- package/web/static/js/{vendors-prismjs.7634bcac.chunk.js.LICENSE.txt → vendors-prismjs.b53bdc3b.chunk.js.LICENSE.txt} +0 -0
- package/web/static/js/vendors-prismjs.b53bdc3b.chunk.js.map +1 -0
- package/web/static/css/1059.187e4305.chunk.css +0 -2
- package/web/static/css/1059.187e4305.chunk.css.map +0 -1
- package/web/static/css/1061.187e4305.chunk.css +0 -2
- package/web/static/css/1061.187e4305.chunk.css.map +0 -1
- package/web/static/css/1169.187e4305.chunk.css +0 -2
- package/web/static/css/1169.187e4305.chunk.css.map +0 -1
- package/web/static/css/1317.187e4305.chunk.css +0 -2
- package/web/static/css/1317.187e4305.chunk.css.map +0 -1
- package/web/static/css/1584.187e4305.chunk.css +0 -2
- package/web/static/css/1584.187e4305.chunk.css.map +0 -1
- package/web/static/css/1619.187e4305.chunk.css +0 -2
- package/web/static/css/1619.187e4305.chunk.css.map +0 -1
- package/web/static/css/163.187e4305.chunk.css.map +0 -1
- package/web/static/css/1820.187e4305.chunk.css +0 -2
- package/web/static/css/1820.187e4305.chunk.css.map +0 -1
- package/web/static/css/2156.187e4305.chunk.css +0 -2
- package/web/static/css/2156.187e4305.chunk.css.map +0 -1
- package/web/static/css/2190.187e4305.chunk.css +0 -2
- package/web/static/css/2190.187e4305.chunk.css.map +0 -1
- package/web/static/css/221.187e4305.chunk.css.map +0 -1
- package/web/static/css/2230.187e4305.chunk.css +0 -2
- package/web/static/css/2230.187e4305.chunk.css.map +0 -1
- package/web/static/css/2316.187e4305.chunk.css +0 -2
- package/web/static/css/2316.187e4305.chunk.css.map +0 -1
- package/web/static/css/2367.187e4305.chunk.css +0 -2
- package/web/static/css/2367.187e4305.chunk.css.map +0 -1
- package/web/static/css/2411.187e4305.chunk.css +0 -2
- package/web/static/css/2411.187e4305.chunk.css.map +0 -1
- package/web/static/css/2582.187e4305.chunk.css +0 -2
- package/web/static/css/2582.187e4305.chunk.css.map +0 -1
- package/web/static/css/2595.187e4305.chunk.css +0 -2
- package/web/static/css/2595.187e4305.chunk.css.map +0 -1
- package/web/static/css/2737.187e4305.chunk.css +0 -2
- package/web/static/css/2737.187e4305.chunk.css.map +0 -1
- package/web/static/css/2782.187e4305.chunk.css +0 -2
- package/web/static/css/2782.187e4305.chunk.css.map +0 -1
- package/web/static/css/3313.187e4305.chunk.css +0 -2
- package/web/static/css/3313.187e4305.chunk.css.map +0 -1
- package/web/static/css/3518.187e4305.chunk.css +0 -2
- package/web/static/css/3518.187e4305.chunk.css.map +0 -1
- package/web/static/css/3812.187e4305.chunk.css +0 -2
- package/web/static/css/3812.187e4305.chunk.css.map +0 -1
- package/web/static/css/3917.187e4305.chunk.css +0 -2
- package/web/static/css/3917.187e4305.chunk.css.map +0 -1
- package/web/static/css/4010.187e4305.chunk.css +0 -2
- package/web/static/css/4010.187e4305.chunk.css.map +0 -1
- package/web/static/css/4098.187e4305.chunk.css +0 -2
- package/web/static/css/4098.187e4305.chunk.css.map +0 -1
- package/web/static/css/4128.187e4305.chunk.css +0 -2
- package/web/static/css/4128.187e4305.chunk.css.map +0 -1
- package/web/static/css/4188.187e4305.chunk.css +0 -2
- package/web/static/css/4188.187e4305.chunk.css.map +0 -1
- package/web/static/css/4396.2422fe7f.chunk.css.map +0 -1
- package/web/static/css/4405.187e4305.chunk.css +0 -2
- package/web/static/css/4405.187e4305.chunk.css.map +0 -1
- package/web/static/css/4503.187e4305.chunk.css +0 -2
- package/web/static/css/4503.187e4305.chunk.css.map +0 -1
- package/web/static/css/4648.187e4305.chunk.css +0 -2
- package/web/static/css/4648.187e4305.chunk.css.map +0 -1
- package/web/static/css/4948.187e4305.chunk.css +0 -2
- package/web/static/css/4948.187e4305.chunk.css.map +0 -1
- package/web/static/css/5244.187e4305.chunk.css +0 -2
- package/web/static/css/5244.187e4305.chunk.css.map +0 -1
- package/web/static/css/5308.187e4305.chunk.css +0 -2
- package/web/static/css/5308.187e4305.chunk.css.map +0 -1
- package/web/static/css/5393.187e4305.chunk.css +0 -2
- package/web/static/css/5393.187e4305.chunk.css.map +0 -1
- package/web/static/css/5408.187e4305.chunk.css +0 -2
- package/web/static/css/5408.187e4305.chunk.css.map +0 -1
- package/web/static/css/5595.187e4305.chunk.css +0 -2
- package/web/static/css/5595.187e4305.chunk.css.map +0 -1
- package/web/static/css/5865.187e4305.chunk.css +0 -2
- package/web/static/css/5865.187e4305.chunk.css.map +0 -1
- package/web/static/css/643.187e4305.chunk.css.map +0 -1
- package/web/static/css/6510.187e4305.chunk.css +0 -2
- package/web/static/css/6510.187e4305.chunk.css.map +0 -1
- package/web/static/css/6715.187e4305.chunk.css +0 -2
- package/web/static/css/6715.187e4305.chunk.css.map +0 -1
- package/web/static/css/6730.187e4305.chunk.css +0 -2
- package/web/static/css/6730.187e4305.chunk.css.map +0 -1
- package/web/static/css/694.187e4305.chunk.css.map +0 -1
- package/web/static/css/7087.187e4305.chunk.css +0 -2
- package/web/static/css/7087.187e4305.chunk.css.map +0 -1
- package/web/static/css/7104.187e4305.chunk.css +0 -2
- package/web/static/css/7104.187e4305.chunk.css.map +0 -1
- package/web/static/css/7157.187e4305.chunk.css +0 -2
- package/web/static/css/7157.187e4305.chunk.css.map +0 -1
- package/web/static/css/7390.187e4305.chunk.css +0 -2
- package/web/static/css/7390.187e4305.chunk.css.map +0 -1
- package/web/static/css/748.187e4305.chunk.css +0 -2
- package/web/static/css/748.187e4305.chunk.css.map +0 -1
- package/web/static/css/7541.187e4305.chunk.css +0 -2
- package/web/static/css/7541.187e4305.chunk.css.map +0 -1
- package/web/static/css/7761.187e4305.chunk.css +0 -2
- package/web/static/css/7761.187e4305.chunk.css.map +0 -1
- package/web/static/css/7834.187e4305.chunk.css +0 -2
- package/web/static/css/7834.187e4305.chunk.css.map +0 -1
- package/web/static/css/7875.187e4305.chunk.css +0 -2
- package/web/static/css/7875.187e4305.chunk.css.map +0 -1
- package/web/static/css/7884.187e4305.chunk.css +0 -2
- package/web/static/css/7884.187e4305.chunk.css.map +0 -1
- package/web/static/css/8023.187e4305.chunk.css +0 -2
- package/web/static/css/8023.187e4305.chunk.css.map +0 -1
- package/web/static/css/8073.187e4305.chunk.css +0 -2
- package/web/static/css/8073.187e4305.chunk.css.map +0 -1
- package/web/static/css/8566.187e4305.chunk.css +0 -2
- package/web/static/css/8566.187e4305.chunk.css.map +0 -1
- package/web/static/css/875.187e4305.chunk.css +0 -2
- package/web/static/css/875.187e4305.chunk.css.map +0 -1
- package/web/static/css/9121.187e4305.chunk.css +0 -2
- package/web/static/css/9121.187e4305.chunk.css.map +0 -1
- package/web/static/css/9253.187e4305.chunk.css +0 -2
- package/web/static/css/9253.187e4305.chunk.css.map +0 -1
- package/web/static/css/9260.187e4305.chunk.css +0 -2
- package/web/static/css/9260.187e4305.chunk.css.map +0 -1
- package/web/static/css/9384.187e4305.chunk.css +0 -2
- package/web/static/css/9384.187e4305.chunk.css.map +0 -1
- package/web/static/css/9503.187e4305.chunk.css +0 -2
- package/web/static/css/9503.187e4305.chunk.css.map +0 -1
- package/web/static/css/9673.187e4305.chunk.css +0 -2
- package/web/static/css/9673.187e4305.chunk.css.map +0 -1
- package/web/static/css/9763.187e4305.chunk.css +0 -2
- package/web/static/css/9763.187e4305.chunk.css.map +0 -1
- package/web/static/css/9776.187e4305.chunk.css +0 -2
- package/web/static/css/9776.187e4305.chunk.css.map +0 -1
- package/web/static/css/9777.187e4305.chunk.css +0 -2
- package/web/static/css/9777.187e4305.chunk.css.map +0 -1
- package/web/static/css/9853.187e4305.chunk.css +0 -2
- package/web/static/css/9853.187e4305.chunk.css.map +0 -1
- package/web/static/css/main.9ac00422.css.map +0 -1
- package/web/static/js/1016.0ab3d95f.chunk.js +0 -2
- package/web/static/js/1016.0ab3d95f.chunk.js.map +0 -1
- package/web/static/js/1059.7618762f.chunk.js +0 -2
- package/web/static/js/1059.7618762f.chunk.js.map +0 -1
- package/web/static/js/1061.7c98d2ba.chunk.js +0 -2
- package/web/static/js/1061.7c98d2ba.chunk.js.map +0 -1
- package/web/static/js/1151.a61edfb2.chunk.js +0 -2
- package/web/static/js/1151.a61edfb2.chunk.js.map +0 -1
- package/web/static/js/1169.47a639a5.chunk.js +0 -2
- package/web/static/js/1169.47a639a5.chunk.js.map +0 -1
- package/web/static/js/1317.77854aa1.chunk.js +0 -2
- package/web/static/js/1317.77854aa1.chunk.js.map +0 -1
- package/web/static/js/1584.e306a2c1.chunk.js +0 -2
- package/web/static/js/1584.e306a2c1.chunk.js.map +0 -1
- package/web/static/js/1619.b7984778.chunk.js +0 -2
- package/web/static/js/1619.b7984778.chunk.js.map +0 -1
- package/web/static/js/163.fc99f5fd.chunk.js +0 -2
- package/web/static/js/163.fc99f5fd.chunk.js.map +0 -1
- package/web/static/js/1756.7336ff8d.chunk.js +0 -2
- package/web/static/js/1756.7336ff8d.chunk.js.map +0 -1
- package/web/static/js/1820.243b7e89.chunk.js +0 -2
- package/web/static/js/1820.243b7e89.chunk.js.map +0 -1
- package/web/static/js/1971.043ba73e.chunk.js +0 -2
- package/web/static/js/1971.043ba73e.chunk.js.map +0 -1
- package/web/static/js/207.32dfc25c.chunk.js +0 -2
- package/web/static/js/207.32dfc25c.chunk.js.map +0 -1
- package/web/static/js/2078.b790ef29.chunk.js +0 -2
- package/web/static/js/2078.b790ef29.chunk.js.map +0 -1
- package/web/static/js/2156.e793e47d.chunk.js +0 -2
- package/web/static/js/2156.e793e47d.chunk.js.map +0 -1
- package/web/static/js/2190.7597770e.chunk.js +0 -2
- package/web/static/js/2190.7597770e.chunk.js.map +0 -1
- package/web/static/js/221.e27b8672.chunk.js +0 -2
- package/web/static/js/221.e27b8672.chunk.js.map +0 -1
- package/web/static/js/2230.805f585e.chunk.js +0 -2
- package/web/static/js/2230.805f585e.chunk.js.map +0 -1
- package/web/static/js/2316.22f957ae.chunk.js +0 -2
- package/web/static/js/2316.22f957ae.chunk.js.map +0 -1
- package/web/static/js/2367.de0e33cf.chunk.js +0 -2
- package/web/static/js/2367.de0e33cf.chunk.js.map +0 -1
- package/web/static/js/2411.c432492d.chunk.js +0 -2
- package/web/static/js/2411.c432492d.chunk.js.map +0 -1
- package/web/static/js/2448.dc510246.chunk.js +0 -2
- package/web/static/js/2448.dc510246.chunk.js.map +0 -1
- package/web/static/js/2456.013e4bdc.chunk.js +0 -2
- package/web/static/js/2456.013e4bdc.chunk.js.map +0 -1
- package/web/static/js/2582.1bd50d13.chunk.js +0 -2
- package/web/static/js/2582.1bd50d13.chunk.js.map +0 -1
- package/web/static/js/2595.94dc6f2d.chunk.js +0 -2
- package/web/static/js/2595.94dc6f2d.chunk.js.map +0 -1
- package/web/static/js/2679.4d07c747.chunk.js +0 -2
- package/web/static/js/2679.4d07c747.chunk.js.map +0 -1
- package/web/static/js/2692.c93feb86.chunk.js +0 -2
- package/web/static/js/2692.c93feb86.chunk.js.map +0 -1
- package/web/static/js/2737.01b58403.chunk.js +0 -2
- package/web/static/js/2737.01b58403.chunk.js.map +0 -1
- package/web/static/js/2782.d09fa2d2.chunk.js +0 -2
- package/web/static/js/2782.d09fa2d2.chunk.js.map +0 -1
- package/web/static/js/2795.85c20470.chunk.js +0 -2
- package/web/static/js/2795.85c20470.chunk.js.map +0 -1
- package/web/static/js/3257.f8706edc.chunk.js +0 -2
- package/web/static/js/3257.f8706edc.chunk.js.map +0 -1
- package/web/static/js/3261.8fb28323.chunk.js +0 -2
- package/web/static/js/3261.8fb28323.chunk.js.map +0 -1
- package/web/static/js/3313.00bc6b3a.chunk.js +0 -2
- package/web/static/js/3313.00bc6b3a.chunk.js.map +0 -1
- package/web/static/js/3450.d09525f0.chunk.js +0 -2
- package/web/static/js/3450.d09525f0.chunk.js.map +0 -1
- package/web/static/js/3518.4ae16e1a.chunk.js +0 -2
- package/web/static/js/3518.4ae16e1a.chunk.js.map +0 -1
- package/web/static/js/3769.c50e5321.chunk.js +0 -2
- package/web/static/js/3769.c50e5321.chunk.js.map +0 -1
- package/web/static/js/3811.84b766f9.chunk.js +0 -2
- package/web/static/js/3811.84b766f9.chunk.js.map +0 -1
- package/web/static/js/3812.e88939dd.chunk.js +0 -2
- package/web/static/js/3812.e88939dd.chunk.js.map +0 -1
- package/web/static/js/3917.9fa854c7.chunk.js +0 -2
- package/web/static/js/3917.9fa854c7.chunk.js.map +0 -1
- package/web/static/js/3931.710a8e71.chunk.js +0 -2
- package/web/static/js/3931.710a8e71.chunk.js.map +0 -1
- package/web/static/js/4010.25479d9a.chunk.js +0 -2
- package/web/static/js/4010.25479d9a.chunk.js.map +0 -1
- package/web/static/js/4036.bee6a610.chunk.js +0 -2
- package/web/static/js/4036.bee6a610.chunk.js.map +0 -1
- package/web/static/js/4098.2b7a41a1.chunk.js +0 -2
- package/web/static/js/4098.2b7a41a1.chunk.js.map +0 -1
- package/web/static/js/4128.91667ba9.chunk.js +0 -2
- package/web/static/js/4128.91667ba9.chunk.js.map +0 -1
- package/web/static/js/4188.5c798453.chunk.js +0 -2
- package/web/static/js/4188.5c798453.chunk.js.map +0 -1
- package/web/static/js/4396.1e7561d7.chunk.js +0 -2
- package/web/static/js/4396.1e7561d7.chunk.js.map +0 -1
- package/web/static/js/4405.689929fb.chunk.js +0 -2
- package/web/static/js/4405.689929fb.chunk.js.map +0 -1
- package/web/static/js/4503.bd1b5564.chunk.js +0 -2
- package/web/static/js/4503.bd1b5564.chunk.js.map +0 -1
- package/web/static/js/4648.cf7dc241.chunk.js +0 -2
- package/web/static/js/4648.cf7dc241.chunk.js.map +0 -1
- package/web/static/js/4781.eb1374c6.chunk.js +0 -2
- package/web/static/js/4781.eb1374c6.chunk.js.map +0 -1
- package/web/static/js/4948.77515624.chunk.js +0 -2
- package/web/static/js/4948.77515624.chunk.js.map +0 -1
- package/web/static/js/5146.6d483514.chunk.js +0 -2
- package/web/static/js/5146.6d483514.chunk.js.map +0 -1
- package/web/static/js/5183.7b46ce4a.js +0 -3
- package/web/static/js/5244.044f96c3.chunk.js +0 -2
- package/web/static/js/5244.044f96c3.chunk.js.map +0 -1
- package/web/static/js/5253.0a82cabf.chunk.js +0 -2
- package/web/static/js/5253.0a82cabf.chunk.js.map +0 -1
- package/web/static/js/5308.b47d29ed.chunk.js +0 -2
- package/web/static/js/5308.b47d29ed.chunk.js.map +0 -1
- package/web/static/js/5364.125e27d2.chunk.js +0 -2
- package/web/static/js/5364.125e27d2.chunk.js.map +0 -1
- package/web/static/js/5393.3b88516d.chunk.js +0 -2
- package/web/static/js/5393.3b88516d.chunk.js.map +0 -1
- package/web/static/js/5408.e4dba9c0.chunk.js +0 -2
- package/web/static/js/5408.e4dba9c0.chunk.js.map +0 -1
- package/web/static/js/5468.ff29858b.chunk.js +0 -2
- package/web/static/js/5468.ff29858b.chunk.js.map +0 -1
- package/web/static/js/5595.1d09db32.chunk.js +0 -2
- package/web/static/js/5595.1d09db32.chunk.js.map +0 -1
- package/web/static/js/5821.c5b30ecc.chunk.js +0 -2
- package/web/static/js/5821.c5b30ecc.chunk.js.map +0 -1
- package/web/static/js/5865.fc5f66e5.chunk.js +0 -2
- package/web/static/js/5865.fc5f66e5.chunk.js.map +0 -1
- package/web/static/js/5930.ce74b909.chunk.js +0 -2
- package/web/static/js/5930.ce74b909.chunk.js.map +0 -1
- package/web/static/js/6019.3ddd5b5f.chunk.js +0 -2
- package/web/static/js/6019.3ddd5b5f.chunk.js.map +0 -1
- package/web/static/js/6036.97de923f.chunk.js +0 -2
- package/web/static/js/6036.97de923f.chunk.js.map +0 -1
- package/web/static/js/643.f8870fc5.chunk.js +0 -2
- package/web/static/js/643.f8870fc5.chunk.js.map +0 -1
- package/web/static/js/6510.2da79650.chunk.js +0 -2
- package/web/static/js/6510.2da79650.chunk.js.map +0 -1
- package/web/static/js/6536.75066313.chunk.js +0 -2
- package/web/static/js/6536.75066313.chunk.js.map +0 -1
- package/web/static/js/6566.05382686.chunk.js +0 -2
- package/web/static/js/6566.05382686.chunk.js.map +0 -1
- package/web/static/js/6659.2432f911.chunk.js +0 -2
- package/web/static/js/6659.2432f911.chunk.js.map +0 -1
- package/web/static/js/6715.0dc4dc23.chunk.js +0 -2
- package/web/static/js/6715.0dc4dc23.chunk.js.map +0 -1
- package/web/static/js/6730.592e2137.chunk.js +0 -2
- package/web/static/js/6730.592e2137.chunk.js.map +0 -1
- package/web/static/js/6869.3a61102b.chunk.js +0 -2
- package/web/static/js/6869.3a61102b.chunk.js.map +0 -1
- package/web/static/js/6878.c21d4848.chunk.js +0 -2
- package/web/static/js/6878.c21d4848.chunk.js.map +0 -1
- package/web/static/js/694.22af7a63.chunk.js +0 -2
- package/web/static/js/694.22af7a63.chunk.js.map +0 -1
- package/web/static/js/7079.8cd7470e.chunk.js +0 -2
- package/web/static/js/7079.8cd7470e.chunk.js.map +0 -1
- package/web/static/js/7087.e9bda77d.chunk.js +0 -2
- package/web/static/js/7087.e9bda77d.chunk.js.map +0 -1
- package/web/static/js/7104.a75a501c.chunk.js +0 -2
- package/web/static/js/7104.a75a501c.chunk.js.map +0 -1
- package/web/static/js/7157.d897fb2a.chunk.js +0 -2
- package/web/static/js/7157.d897fb2a.chunk.js.map +0 -1
- package/web/static/js/7217.6128cabc.chunk.js +0 -2
- package/web/static/js/7217.6128cabc.chunk.js.map +0 -1
- package/web/static/js/7313.2017dd23.chunk.js +0 -2
- package/web/static/js/7313.2017dd23.chunk.js.map +0 -1
- package/web/static/js/7390.a5d47e48.chunk.js +0 -2
- package/web/static/js/7390.a5d47e48.chunk.js.map +0 -1
- package/web/static/js/745.e92abd14.chunk.js +0 -2
- package/web/static/js/745.e92abd14.chunk.js.map +0 -1
- package/web/static/js/747.31d81e47.chunk.js +0 -2
- package/web/static/js/747.31d81e47.chunk.js.map +0 -1
- package/web/static/js/748.cd31eb10.chunk.js +0 -2
- package/web/static/js/748.cd31eb10.chunk.js.map +0 -1
- package/web/static/js/7541.e35f1386.chunk.js +0 -2
- package/web/static/js/7541.e35f1386.chunk.js.map +0 -1
- package/web/static/js/7664.e8d14553.chunk.js +0 -2
- package/web/static/js/7664.e8d14553.chunk.js.map +0 -1
- package/web/static/js/77.bdabcc80.chunk.js +0 -3
- package/web/static/js/77.bdabcc80.chunk.js.map +0 -1
- package/web/static/js/7761.519ae422.chunk.js +0 -2
- package/web/static/js/7761.519ae422.chunk.js.map +0 -1
- package/web/static/js/7834.a35aae05.chunk.js +0 -2
- package/web/static/js/7834.a35aae05.chunk.js.map +0 -1
- package/web/static/js/7861.f0341e75.chunk.js +0 -2
- package/web/static/js/7861.f0341e75.chunk.js.map +0 -1
- package/web/static/js/7875.da5b1b45.chunk.js +0 -2
- package/web/static/js/7875.da5b1b45.chunk.js.map +0 -1
- package/web/static/js/7884.9f31b4ab.chunk.js +0 -2
- package/web/static/js/7884.9f31b4ab.chunk.js.map +0 -1
- package/web/static/js/8023.364152bd.chunk.js +0 -2
- package/web/static/js/8023.364152bd.chunk.js.map +0 -1
- package/web/static/js/8073.0d1d898d.chunk.js +0 -2
- package/web/static/js/8073.0d1d898d.chunk.js.map +0 -1
- package/web/static/js/8312.6c0a85dd.chunk.js +0 -2
- package/web/static/js/8312.6c0a85dd.chunk.js.map +0 -1
- package/web/static/js/8398.29808175.chunk.js +0 -2
- package/web/static/js/8398.29808175.chunk.js.map +0 -1
- package/web/static/js/8488.73077e9f.chunk.js +0 -2
- package/web/static/js/8488.73077e9f.chunk.js.map +0 -1
- package/web/static/js/8566.8013c372.chunk.js +0 -2
- package/web/static/js/8566.8013c372.chunk.js.map +0 -1
- package/web/static/js/8586.922fe070.chunk.js +0 -2
- package/web/static/js/8586.922fe070.chunk.js.map +0 -1
- package/web/static/js/8709.935c2f52.chunk.js +0 -2
- package/web/static/js/8709.935c2f52.chunk.js.map +0 -1
- package/web/static/js/875.27e6de15.chunk.js +0 -2
- package/web/static/js/875.27e6de15.chunk.js.map +0 -1
- package/web/static/js/8768.9960b4fe.chunk.js +0 -2
- package/web/static/js/8768.9960b4fe.chunk.js.map +0 -1
- package/web/static/js/8849.4c89f87b.chunk.js +0 -2
- package/web/static/js/8849.4c89f87b.chunk.js.map +0 -1
- package/web/static/js/8915.ff4b2001.chunk.js +0 -2
- package/web/static/js/8915.ff4b2001.chunk.js.map +0 -1
- package/web/static/js/9057.a47ec4de.chunk.js +0 -2
- package/web/static/js/9057.a47ec4de.chunk.js.map +0 -1
- package/web/static/js/9121.c6a17f36.chunk.js +0 -2
- package/web/static/js/9121.c6a17f36.chunk.js.map +0 -1
- package/web/static/js/9147.53ea3fbb.chunk.js +0 -2
- package/web/static/js/9147.53ea3fbb.chunk.js.map +0 -1
- package/web/static/js/9188.7354157e.chunk.js +0 -2
- package/web/static/js/9188.7354157e.chunk.js.map +0 -1
- package/web/static/js/9253.180d6720.chunk.js +0 -2
- package/web/static/js/9253.180d6720.chunk.js.map +0 -1
- package/web/static/js/9260.bda20e3d.chunk.js +0 -2
- package/web/static/js/9260.bda20e3d.chunk.js.map +0 -1
- package/web/static/js/9384.80c51d71.chunk.js +0 -2
- package/web/static/js/9384.80c51d71.chunk.js.map +0 -1
- package/web/static/js/9503.bc8352cc.chunk.js +0 -2
- package/web/static/js/9503.bc8352cc.chunk.js.map +0 -1
- package/web/static/js/9673.974ff515.chunk.js +0 -2
- package/web/static/js/9673.974ff515.chunk.js.map +0 -1
- package/web/static/js/9763.5dc46da3.chunk.js +0 -2
- package/web/static/js/9763.5dc46da3.chunk.js.map +0 -1
- package/web/static/js/9776.1b92433a.chunk.js +0 -2
- package/web/static/js/9776.1b92433a.chunk.js.map +0 -1
- package/web/static/js/9777.6e29c8a0.chunk.js +0 -2
- package/web/static/js/9777.6e29c8a0.chunk.js.map +0 -1
- package/web/static/js/9820.da3bde55.chunk.js +0 -2
- package/web/static/js/9820.da3bde55.chunk.js.map +0 -1
- package/web/static/js/9836.26769e83.chunk.js +0 -2
- package/web/static/js/9836.26769e83.chunk.js.map +0 -1
- package/web/static/js/9853.5441c1e7.chunk.js +0 -2
- package/web/static/js/9853.5441c1e7.chunk.js.map +0 -1
- package/web/static/js/9900.7ad9abbf.chunk.js +0 -2
- package/web/static/js/9900.7ad9abbf.chunk.js.map +0 -1
- package/web/static/js/9961.867fe956.chunk.js +0 -2
- package/web/static/js/9961.867fe956.chunk.js.map +0 -1
- package/web/static/js/main.3260158b.js +0 -2
- package/web/static/js/main.3260158b.js.map +0 -1
- package/web/static/js/vendors-prismjs.7634bcac.chunk.js +0 -3
- package/web/static/js/vendors-prismjs.7634bcac.chunk.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/2190.f8df1d26.chunk.js","mappings":"wFAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,MACzBC,EAAOC,QAAUT,G,oNCEF,SAASU,EAAT,GAAqF,IAArEC,EAAoE,EAApEA,QAASC,EAA2D,EAA3DA,aAAcC,EAA6C,EAA7CA,QAASC,EAAoC,EAApCA,YAAgBC,GAAoB,YAC3FC,GAAuB,UAAQD,GAyDrC,OAxDIF,IACFG,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,WACLQ,cAAe,CAAC,OAChBC,IAAKJ,EAAMZ,MAAQ,IAAIiB,QAAQ,UAAW,wCAC1CC,KAAM,mDACNC,aAAa,yBAAD,OAA2BZ,EAA3B,qBACZa,YAAY,yLAAD,OAA2Lb,EAA3L,qFAGXG,IACFE,EAAMS,kBAAo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,UACtB1C,aAAcA,EACR4D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQ/D,QAAAA,EAASC,YAAAA,SAMzE,gBAAKsD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA9CX,O,+JCrCI,SAASyC,IACtB,OACE,SAAC,IAAD,CACEzC,KAAK,yEACL9B,aAAc,CAAEwE,IAAAA,EAAAA,GAAKC,IAAAA,EAAAA,IACrB3B,YAAU,iBAAE,oGACO,+BADP,cACJ4B,EADI,yBAEHA,EAAGC,SAAWD,GAFX","sources":["../../node_modules/@babel/standalone|sync|nonrecursive","components/Markdown/Code.tsx","components/Markdown/Footer.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","routes/components/grid/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 84934;\nmodule.exports = webpackEmptyContext;","import CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n code: string;\n version: string;\n codePen: boolean;\n codeSandbox?: boolean;\n dependencies: any;\n}\n\nexport default function Code({ version, dependencies, codePen, codeSandbox, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '<div id=\"container\" style=\"padding: 24px\"></div>',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `<div id=\"container\"></div>`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return <CodePreview {...props} dependencies={dependencies} style={{ marginBottom: 0 }} />;\n}\n","import React, { Fragment } from 'react';\nimport { Divider } from 'uiw';\n\nexport type FooterProps = {\n path?: string;\n};\n\nexport default function (props: FooterProps = {}) {\n const { path } = props;\n const url = /^http/.test(path || '') ? path : `https://github.com/uiwjs/uiw/blob/master/${path}`;\n return (\n <Fragment>\n 犯了错误还是想对文件做出贡献?\n {url && (\n <a href={url} target=\"_blank\" rel=\"noopener noreferrer\">\n 在Github上编辑本页!\n </a>\n )}\n <br />\n <a href=\"https://github.com/uiwjs/uiw/issues\" target=\"_blank\" rel=\"noopener noreferrer\">\n 反馈建议\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw/issues/new\">\n 提交bug\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw\">\n Github\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt\">\n kkt\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt-ssr\">\n @kkt/ssr\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://uiw.gitee.io\">\n 国内镜像\n </a>\n </Fragment>\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"docinfo\":\"index_docinfo__3Vx8S\",\"markdown\":\"index_markdown__hcQCp\"};","import { useEffect, useState } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from 'uiw/package.json';\nimport Code from './Code';\nimport Footer from './Footer';\nimport styles from './index.module.less';\n\nexport type CreatePageProps<T> = {\n dependencies?: T;\n path: string;\n renderPage?: () => Promise<string>;\n};\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default function CreatePage<T>(props: CreatePageProps<T>) {\n const { renderPage, dependencies, path } = props;\n const [mdStr, setMdStr] = useState('');\n\n const version = pkg.version || '2.0.0';\n useEffect(() => {\n if (renderPage) {\n renderPage()\n .then((str) => {\n setMdStr(str);\n })\n .catch(() => {});\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!mdStr) {\n return null;\n }\n\n return (\n <div>\n <MarkdownPreview\n source={mdStr}\n className={styles.markdown}\n components={{\n /**\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox } = props as any;\n if (inline) {\n return <code {...props} />;\n }\n const config = {\n noPreview,\n bordered,\n noScroll,\n bgWhite,\n noCode,\n codePen,\n codeSandbox,\n } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return <code {...props} />;\n }\n return (\n <Code\n version={version}\n code={getCodeStr(node.children)}\n dependencies={dependencies}\n {...{ noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox }}\n />\n );\n },\n }}\n />\n <div className={styles.docinfo}>\n <Footer path={path} />\n </div>\n </div>\n );\n}\n","import React from 'react';\nimport { Col, Row } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default function Page() {\n return (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-grid/README.md\"\n dependencies={{ Col, Row }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-grid/README.md');\n return md.default || md;\n }}\n />\n );\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codePen","codeSandbox","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","uiw","devDependencies","kkt","license","scripts","start","build","test","browserslist","style","marginBottom","path","url","Fragment","href","target","rel","type","getCodeStr","data","forEach","node","value","children","Array","isArray","CreatePage","renderPage","useState","mdStr","setMdStr","pkg","useEffect","then","str","catch","source","className","styles","components","inline","noPreview","bordered","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","Footer","Page","Col","Row","md","default"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[221],{84934:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=84934,e.exports=n},86082:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});var r=t(50189),o=t(53782),i=t(11026),c=t(41473),s=t(89171),d=t(75752),a=t(64357),u=t(69286),l=["version","dependencies","codePen","codeSandbox"];function p(e){var n=e.version,t=e.dependencies,i=e.codePen,c=e.codeSandbox,s=(0,o.Z)(e,l),d=(0,r.Z)({},s);return i&&(d.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(d.code||"").replace("_mount_",'document.getElementById("container")'),html:'<div id="container" style="padding: 24px"></div>',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js")}),c&&(d.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'<div id="container"></div>'},"src/index.js":{content:(d.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2",uiw:"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,u.jsx)(a.Z,(0,r.Z)((0,r.Z)({},d),{},{dependencies:t,style:{marginBottom:0}}))}var h=t(53864);function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.path,t=/^http/.test(n||"")?n:"https://github.com/uiwjs/uiw/blob/master/".concat(n);return(0,u.jsxs)(c.Fragment,{children:["\u72af\u4e86\u9519\u8bef\u8fd8\u662f\u60f3\u5bf9\u6587\u4ef6\u505a\u51fa\u8d21\u732e\uff1f",t&&(0,u.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"\u5728Github\u4e0a\u7f16\u8f91\u672c\u9875\uff01"}),(0,u.jsx)("br",{}),(0,u.jsx)("a",{href:"https://github.com/uiwjs/uiw/issues",target:"_blank",rel:"noopener noreferrer",children:"\u53cd\u9988\u5efa\u8bae"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw/issues/new",children:"\u63d0\u4ea4bug"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"Github"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt-ssr",children:"@kkt/ssr"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://uiw.gitee.io",children:"\u56fd\u5185\u955c\u50cf"})]})}var m="index_docinfo__3Vx8S",k="index_markdown__hcQCp",x=["inline","node"],b=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t};function j(e){var n=e.renderPage,t=e.dependencies,a=e.path,l=(0,c.useState)(""),h=(0,i.Z)(l,2),j=h[0],v=h[1],g=d.i8||"2.0.0";return(0,c.useEffect)((function(){n&&n().then((function(e){v(e)})).catch((function(){}))}),[]),j?(0,u.jsxs)("div",{children:[(0,u.jsx)(s.Z,{source:j,className:k,components:{code:function(e){var n=e.inline,i=e.node,c=(0,o.Z)(e,x),s=c,d=s.noPreview,a=s.bordered,l=s.noScroll,h=s.bgWhite,f=s.noCode,m=s.codePen,k=s.codeSandbox;if(n)return(0,u.jsx)("code",(0,r.Z)({},c));var j={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k};return 0===Object.keys(j).filter((function(e){return void 0!==j[e]})).length?(0,u.jsx)("code",(0,r.Z)({},c)):(0,u.jsx)(p,{version:g,code:b(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k})}}}),(0,u.jsx)("div",{className:m,children:(0,u.jsx)(f,{path:a})})]}):null}},96632:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return a}});var r=t(27791),o=t(57135),i=t.n(o),c=(t(41473),t(53864)),s=t(86082),d=t(69286);function a(){return(0,d.jsx)(s.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-card/README.md",dependencies:{Card:c.Zb,Icon:c.JO},renderPage:(0,r.Z)(i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(2456).then(t.bind(t,52456));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
+
//# sourceMappingURL=221.6e5aadfa.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/221.6e5aadfa.chunk.js","mappings":"uFAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,MACzBC,EAAOC,QAAUT,G,oNCEF,SAASU,EAAT,GAAq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hD,EAAgDA,OAAQ/D,EAAxD,EAAwDA,QAASC,EAAjE,EAAiEA,YACjE,GAAIyD,EACF,OAAO,2BAAUvD,IAEnB,IAAM6D,EAAS,CACbL,UAAAA,EACAC,SAAAA,EACAC,SAAAA,EACAC,QAAAA,EACAC,OAAAA,EACA/D,QAAAA,EACAC,YAAAA,GAEF,OAAgF,IAA5EgE,OAAOzE,KAAKwE,GAAQE,QAAO,SAACnD,GAAD,YAA2BoD,IAAjBH,EAAOjD,MAAqBqD,QAC5D,2BAAUjE,KAGjB,SAACN,EAAD,CACEC,QAASA,EACTP,KAAM6C,EAAWG,EAAKE,UACtB1C,aAAcA,EACR4D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQ/D,QAAAA,EAASC,YAAAA,SAMzE,gBAAKsD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA9CX,O,+JCrCI,SAASyC,IACtB,OACE,SAAC,IAAD,CACEzC,KAAK,yEACL9B,aAAc,CAAEwE,KAAAA,EAAAA,GAAMC,KAAAA,EAAAA,IACtB3B,YAAU,iBAAE,oGACO,gCADP,cACJ4B,EADI,yBAEHA,EAAGC,SAAWD,GAFX","sources":["../../node_modules/@babel/standalone|sync|nonrecursive","components/Markdown/Code.tsx","components/Markdown/Footer.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","routes/components/card/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 84934;\nmodule.exports = webpackEmptyContext;","import CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n code: string;\n version: string;\n codePen: boolean;\n codeSandbox?: boolean;\n dependencies: any;\n}\n\nexport default function Code({ version, dependencies, codePen, codeSandbox, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '<div id=\"container\" style=\"padding: 24px\"></div>',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `<div id=\"container\"></div>`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return <CodePreview {...props} dependencies={dependencies} style={{ marginBottom: 0 }} />;\n}\n","import React, { Fragment } from 'react';\nimport { Divider } from 'uiw';\n\nexport type FooterProps = {\n path?: string;\n};\n\nexport default function (props: FooterProps = {}) {\n const { path } = props;\n const url = /^http/.test(path || '') ? path : `https://github.com/uiwjs/uiw/blob/master/${path}`;\n return (\n <Fragment>\n 犯了错误还是想对文件做出贡献?\n {url && (\n <a href={url} target=\"_blank\" rel=\"noopener noreferrer\">\n 在Github上编辑本页!\n </a>\n )}\n <br />\n <a href=\"https://github.com/uiwjs/uiw/issues\" target=\"_blank\" rel=\"noopener noreferrer\">\n 反馈建议\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw/issues/new\">\n 提交bug\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw\">\n Github\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt\">\n kkt\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt-ssr\">\n @kkt/ssr\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://uiw.gitee.io\">\n 国内镜像\n </a>\n </Fragment>\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"docinfo\":\"index_docinfo__3Vx8S\",\"markdown\":\"index_markdown__hcQCp\"};","import { useEffect, useState } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from 'uiw/package.json';\nimport Code from './Code';\nimport Footer from './Footer';\nimport styles from './index.module.less';\n\nexport type CreatePageProps<T> = {\n dependencies?: T;\n path: string;\n renderPage?: () => Promise<string>;\n};\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default function CreatePage<T>(props: CreatePageProps<T>) {\n const { renderPage, dependencies, path } = props;\n const [mdStr, setMdStr] = useState('');\n\n const version = pkg.version || '2.0.0';\n useEffect(() => {\n if (renderPage) {\n renderPage()\n .then((str) => {\n setMdStr(str);\n })\n .catch(() => {});\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!mdStr) {\n return null;\n }\n\n return (\n <div>\n <MarkdownPreview\n source={mdStr}\n className={styles.markdown}\n components={{\n /**\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox } = props as any;\n if (inline) {\n return <code {...props} />;\n }\n const config = {\n noPreview,\n bordered,\n noScroll,\n bgWhite,\n noCode,\n codePen,\n codeSandbox,\n } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return <code {...props} />;\n }\n return (\n <Code\n version={version}\n code={getCodeStr(node.children)}\n dependencies={dependencies}\n {...{ noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox }}\n />\n );\n },\n }}\n />\n <div className={styles.docinfo}>\n <Footer path={path} />\n </div>\n </div>\n );\n}\n","import React from 'react';\nimport { Card, Icon } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default function Page() {\n return (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-card/README.md\"\n dependencies={{ Card, Icon }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-card/README.md');\n return md.default || md;\n }}\n />\n );\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codePen","codeSandbox","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","uiw","devDependencies","kkt","license","scripts","start","build","test","browserslist","style","marginBottom","path","url","Fragment","href","target","rel","type","getCodeStr","data","forEach","node","value","children","Array","isArray","CreatePage","renderPage","useState","mdStr","setMdStr","pkg","useEffect","then","str","catch","source","className","styles","components","inline","noPreview","bordered","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","Footer","Page","Card","Icon","md","default"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2230],{84934:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=84934,e.exports=n},86082:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(50189),o=t(53782),i=t(11026),c=t(41473),s=t(89171),d=t(75752),a=t(64357),u=t(69286),l=["version","dependencies","codePen","codeSandbox"];function p(e){var n=e.version,t=e.dependencies,i=e.codePen,c=e.codeSandbox,s=(0,o.Z)(e,l),d=(0,r.Z)({},s);return i&&(d.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(d.code||"").replace("_mount_",'document.getElementById("container")'),html:'<div id="container" style="padding: 24px"></div>',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js")}),c&&(d.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'<div id="container"></div>'},"src/index.js":{content:(d.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2",uiw:"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,u.jsx)(a.Z,(0,r.Z)((0,r.Z)({},d),{},{dependencies:t,style:{marginBottom:0}}))}var h=t(53864);function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.path,t=/^http/.test(n||"")?n:"https://github.com/uiwjs/uiw/blob/master/".concat(n);return(0,u.jsxs)(c.Fragment,{children:["\u72af\u4e86\u9519\u8bef\u8fd8\u662f\u60f3\u5bf9\u6587\u4ef6\u505a\u51fa\u8d21\u732e\uff1f",t&&(0,u.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"\u5728Github\u4e0a\u7f16\u8f91\u672c\u9875\uff01"}),(0,u.jsx)("br",{}),(0,u.jsx)("a",{href:"https://github.com/uiwjs/uiw/issues",target:"_blank",rel:"noopener noreferrer",children:"\u53cd\u9988\u5efa\u8bae"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw/issues/new",children:"\u63d0\u4ea4bug"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"Github"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt-ssr",children:"@kkt/ssr"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://uiw.gitee.io",children:"\u56fd\u5185\u955c\u50cf"})]})}var m="index_docinfo__3Vx8S",k="index_markdown__hcQCp",x=["inline","node"],b=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t};function v(e){var n=e.renderPage,t=e.dependencies,a=e.path,l=(0,c.useState)(""),h=(0,i.Z)(l,2),v=h[0],j=h[1],g=d.i8||"2.0.0";return(0,c.useEffect)((function(){n&&n().then((function(e){j(e)})).catch((function(){}))}),[]),v?(0,u.jsxs)("div",{children:[(0,u.jsx)(s.Z,{source:v,className:k,components:{code:function(e){var n=e.inline,i=e.node,c=(0,o.Z)(e,x),s=c,d=s.noPreview,a=s.bordered,l=s.noScroll,h=s.bgWhite,f=s.noCode,m=s.codePen,k=s.codeSandbox;if(n)return(0,u.jsx)("code",(0,r.Z)({},c));var v={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k};return 0===Object.keys(v).filter((function(e){return void 0!==v[e]})).length?(0,u.jsx)("code",(0,r.Z)({},c)):(0,u.jsx)(p,{version:g,code:b(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k})}}}),(0,u.jsx)("div",{className:m,children:(0,u.jsx)(f,{path:a})})]}):null}},58123:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return a}});var r=t(27791),o=t(57135),i=t.n(o),c=(t(41473),t(53864)),s=t(86082),d=t(69286);function a(){return(0,d.jsx)(s.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-checkbox/README.md",dependencies:{Checkbox:c.XZ,Button:c.zx,Form:c.l0,Row:c.X2,Col:c.JX,Divider:c.iz,Notify:c.gU},renderPage:(0,r.Z)(i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(747).then(t.bind(t,10747));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
+
//# sourceMappingURL=2230.d1c75abd.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/2230.d1c75abd.chunk.js","mappings":"wFAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,MACzBC,EAAOC,QAAUT,G,oNCEF,SAASU,EAAT,GAAqF,IAArEC,EAAoE,EAApEA,QAASC,EAA2D,EAA3DA,aAAcC,EAA6C,EAA7CA,QAASC,EAAoC,EAApCA,YAAgBC,GAAoB,YAC3FC,GAAuB,UAAQD,GAyDrC,OAxDIF,IACFG,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,WACLQ,cAAe,CAAC,OAChBC,IAAKJ,EAAMZ,MAAQ,IAAIiB,QAAQ,UAAW,wCAC1CC,KAAM,mDACNC,aAAa,yBAAD,OAA2BZ,EAA3B,qBACZa,YAAY,yLAAD,OAA2Lb,EAA3L,qFAGXG,IACFE,EAAMS,kBAAoB,CACxBC,MAAO,CACL,sBAAuB,CACrBC,QAAQ,iKAQV,oBAAqB,CACnBA,QAAQ,8BAEV,eAAgB,CACdA,SAAUX,EAAMZ,MAAQ,IAAIiB,QAAQ,UAAW,yCAEjD,YAAa,CACXM,QAAQ,qJAEV,eAAgB,CACdA,QAAS,CACPC,KAAM,WACNC,YAAY,QAAD,OAAUlB,EAAV,WACXC,aAAc,CACZkB,MAAO,UACP,YAAa,UACbC,IAAK,UAEPC,gBAAiB,CACf,oBAAqB,SACrBC,IAAK,UAEPC,QAAS,MACTC,QAAS,CACPC,MAAO,YACPC,MAAO,YACPC,KAAM,wBAERC,aAAc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,EAAAA,IAC3DhC,YAAU,iBAAE,oGACO,+BADP,cACJiC,EADI,yBAEHA,EAAGC,SAAWD,GAFX","sources":["../../node_modules/@babel/standalone|sync|nonrecursive","components/Markdown/Code.tsx","components/Markdown/Footer.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","routes/components/checkbox/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 84934;\nmodule.exports = webpackEmptyContext;","import CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n code: string;\n version: string;\n codePen: boolean;\n codeSandbox?: boolean;\n dependencies: any;\n}\n\nexport default function Code({ version, dependencies, codePen, codeSandbox, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '<div id=\"container\" style=\"padding: 24px\"></div>',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `<div id=\"container\"></div>`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return <CodePreview {...props} dependencies={dependencies} style={{ marginBottom: 0 }} />;\n}\n","import React, { Fragment } from 'react';\nimport { Divider } from 'uiw';\n\nexport type FooterProps = {\n path?: string;\n};\n\nexport default function (props: FooterProps = {}) {\n const { path } = props;\n const url = /^http/.test(path || '') ? path : `https://github.com/uiwjs/uiw/blob/master/${path}`;\n return (\n <Fragment>\n 犯了错误还是想对文件做出贡献?\n {url && (\n <a href={url} target=\"_blank\" rel=\"noopener noreferrer\">\n 在Github上编辑本页!\n </a>\n )}\n <br />\n <a href=\"https://github.com/uiwjs/uiw/issues\" target=\"_blank\" rel=\"noopener noreferrer\">\n 反馈建议\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw/issues/new\">\n 提交bug\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw\">\n Github\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt\">\n kkt\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt-ssr\">\n @kkt/ssr\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://uiw.gitee.io\">\n 国内镜像\n </a>\n </Fragment>\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"docinfo\":\"index_docinfo__3Vx8S\",\"markdown\":\"index_markdown__hcQCp\"};","import { useEffect, useState } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from 'uiw/package.json';\nimport Code from './Code';\nimport Footer from './Footer';\nimport styles from './index.module.less';\n\nexport type CreatePageProps<T> = {\n dependencies?: T;\n path: string;\n renderPage?: () => Promise<string>;\n};\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default function CreatePage<T>(props: CreatePageProps<T>) {\n const { renderPage, dependencies, path } = props;\n const [mdStr, setMdStr] = useState('');\n\n const version = pkg.version || '2.0.0';\n useEffect(() => {\n if (renderPage) {\n renderPage()\n .then((str) => {\n setMdStr(str);\n })\n .catch(() => {});\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!mdStr) {\n return null;\n }\n\n return (\n <div>\n <MarkdownPreview\n source={mdStr}\n className={styles.markdown}\n components={{\n /**\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox } = props as any;\n if (inline) {\n return <code {...props} />;\n }\n const config = {\n noPreview,\n bordered,\n noScroll,\n bgWhite,\n noCode,\n codePen,\n codeSandbox,\n } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return <code {...props} />;\n }\n return (\n <Code\n version={version}\n code={getCodeStr(node.children)}\n dependencies={dependencies}\n {...{ noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox }}\n />\n );\n },\n }}\n />\n <div className={styles.docinfo}>\n <Footer path={path} />\n </div>\n </div>\n );\n}\n","import React from 'react';\nimport { Checkbox, Button, Form, Row, Col, Divider, Notify } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default function Page() {\n return (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-checkbox/README.md\"\n dependencies={{ Checkbox, Button, Form, Row, Col, Divider, Notify }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-checkbox/README.md');\n return md.default || md;\n }}\n />\n );\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codePen","codeSandbox","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","uiw","devDependencies","kkt","license","scripts","start","build","test","browserslist","style","marginBottom","path","url","Fragment","href","target","rel","type","getCodeStr","data","forEach","node","value","children","Array","isArray","CreatePage","renderPage","useState","mdStr","setMdStr","pkg","useEffect","then","str","catch","source","className","styles","components","inline","noPreview","bordered","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","Footer","Page","Checkbox","Button","Form","Row","Col","Divider","Notify","md","default"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2316],{84934:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=84934,e.exports=n},86082:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(50189),o=t(53782),i=t(11026),s=t(41473),c=t(89171),d=t(75752),a=t(64357),u=t(69286),l=["version","dependencies","codePen","codeSandbox"];function p(e){var n=e.version,t=e.dependencies,i=e.codePen,s=e.codeSandbox,c=(0,o.Z)(e,l),d=(0,r.Z)({},c);return i&&(d.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(d.code||"").replace("_mount_",'document.getElementById("container")'),html:'<div id="container" style="padding: 24px"></div>',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js")}),s&&(d.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'<div id="container"></div>'},"src/index.js":{content:(d.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2",uiw:"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,u.jsx)(a.Z,(0,r.Z)((0,r.Z)({},d),{},{dependencies:t,style:{marginBottom:0}}))}var h=t(53864);function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.path,t=/^http/.test(n||"")?n:"https://github.com/uiwjs/uiw/blob/master/".concat(n);return(0,u.jsxs)(s.Fragment,{children:["\u72af\u4e86\u9519\u8bef\u8fd8\u662f\u60f3\u5bf9\u6587\u4ef6\u505a\u51fa\u8d21\u732e\uff1f",t&&(0,u.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"\u5728Github\u4e0a\u7f16\u8f91\u672c\u9875\uff01"}),(0,u.jsx)("br",{}),(0,u.jsx)("a",{href:"https://github.com/uiwjs/uiw/issues",target:"_blank",rel:"noopener noreferrer",children:"\u53cd\u9988\u5efa\u8bae"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw/issues/new",children:"\u63d0\u4ea4bug"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"Github"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt-ssr",children:"@kkt/ssr"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://uiw.gitee.io",children:"\u56fd\u5185\u955c\u50cf"})]})}var m="index_docinfo__3Vx8S",k="index_markdown__hcQCp",x=["inline","node"],b=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t};function v(e){var n=e.renderPage,t=e.dependencies,a=e.path,l=(0,s.useState)(""),h=(0,i.Z)(l,2),v=h[0],j=h[1],g=d.i8||"2.0.0";return(0,s.useEffect)((function(){n&&n().then((function(e){j(e)})).catch((function(){}))}),[]),v?(0,u.jsxs)("div",{children:[(0,u.jsx)(c.Z,{source:v,className:k,components:{code:function(e){var n=e.inline,i=e.node,s=(0,o.Z)(e,x),c=s,d=c.noPreview,a=c.bordered,l=c.noScroll,h=c.bgWhite,f=c.noCode,m=c.codePen,k=c.codeSandbox;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var v={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k};return 0===Object.keys(v).filter((function(e){return void 0!==v[e]})).length?(0,u.jsx)("code",(0,r.Z)({},s)):(0,u.jsx)(p,{version:g,code:b(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k})}}}),(0,u.jsx)("div",{className:m,children:(0,u.jsx)(f,{path:a})})]}):null}},62462:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return a}});var r=t(27791),o=t(57135),i=t.n(o),s=(t(41473),t(53864)),c=t(86082),d=t(69286);function a(){return(0,d.jsx)(c.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-popover/README.md",dependencies:{Popover:s.J2,Button:s.zx,Input:s.II,Card:s.Zb},renderPage:(0,r.Z)(i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(6536).then(t.bind(t,36536));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
+
//# sourceMappingURL=2316.69000f72.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/2316.69000f72.chunk.js","mappings":"wFAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,MACzBC,EAAOC,QAAUT,G,oNCEF,SAASU,EAAT,GAAqF,IAArEC,EAAoE,EAApEA,QAASC,EAA2D,EAA3DA,aAAcC,EAA6C,EAA7CA,QAASC,EAAoC,EAApCA,YAAgBC,GAAoB,YAC3FC,GAAuB,UAAQD,GAyDrC,OAxDIF,IACFG,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,W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AC,YAAAA,GAEF,OAAgF,IAA5EgE,OAAOzE,KAAKwE,GAAQE,QAAO,SAACnD,GAAD,YAA2BoD,IAAjBH,EAAOjD,MAAqBqD,QAC5D,2BAAUjE,KAGjB,SAACN,EAAD,CACEC,QAASA,EACTP,KAAM6C,EAAWG,EAAKE,UACtB1C,aAAcA,EACR4D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQ/D,QAAAA,EAASC,YAAAA,SAMzE,gBAAKsD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA9CX,O,+JCrCI,SAASyC,IACtB,OACE,SAAC,IAAD,CACEzC,KAAK,4EACL9B,aAAc,CAAEwE,QAAAA,EAAAA,GAASC,OAAAA,EAAAA,GAAQC,MAAAA,EAAAA,GAAOC,KAAAA,EAAAA,IACxC7B,YAAU,iBAAE,oGACO,gCADP,cACJ8B,EADI,yBAEHA,EAAGC,SAAWD,GAFX","sources":["../../node_modules/@babel/standalone|sync|nonrecursive","components/Markdown/Code.tsx","components/Markdown/Footer.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","routes/components/popover/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 84934;\nmodule.exports = webpackEmptyContext;","import CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n code: string;\n version: string;\n codePen: boolean;\n codeSandbox?: boolean;\n dependencies: any;\n}\n\nexport default function Code({ version, dependencies, codePen, codeSandbox, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '<div id=\"container\" style=\"padding: 24px\"></div>',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `<div id=\"container\"></div>`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return <CodePreview {...props} dependencies={dependencies} style={{ marginBottom: 0 }} />;\n}\n","import React, { Fragment } from 'react';\nimport { Divider } from 'uiw';\n\nexport type FooterProps = {\n path?: string;\n};\n\nexport default function (props: FooterProps = {}) {\n const { path } = props;\n const url = /^http/.test(path || '') ? path : `https://github.com/uiwjs/uiw/blob/master/${path}`;\n return (\n <Fragment>\n 犯了错误还是想对文件做出贡献?\n {url && (\n <a href={url} target=\"_blank\" rel=\"noopener noreferrer\">\n 在Github上编辑本页!\n </a>\n )}\n <br />\n <a href=\"https://github.com/uiwjs/uiw/issues\" target=\"_blank\" rel=\"noopener noreferrer\">\n 反馈建议\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw/issues/new\">\n 提交bug\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw\">\n Github\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt\">\n kkt\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt-ssr\">\n @kkt/ssr\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://uiw.gitee.io\">\n 国内镜像\n </a>\n </Fragment>\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"docinfo\":\"index_docinfo__3Vx8S\",\"markdown\":\"index_markdown__hcQCp\"};","import { useEffect, useState } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from 'uiw/package.json';\nimport Code from './Code';\nimport Footer from './Footer';\nimport styles from './index.module.less';\n\nexport type CreatePageProps<T> = {\n dependencies?: T;\n path: string;\n renderPage?: () => Promise<string>;\n};\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default function CreatePage<T>(props: CreatePageProps<T>) {\n const { renderPage, dependencies, path } = props;\n const [mdStr, setMdStr] = useState('');\n\n const version = pkg.version || '2.0.0';\n useEffect(() => {\n if (renderPage) {\n renderPage()\n .then((str) => {\n setMdStr(str);\n })\n .catch(() => {});\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!mdStr) {\n return null;\n }\n\n return (\n <div>\n <MarkdownPreview\n source={mdStr}\n className={styles.markdown}\n components={{\n /**\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox } = props as any;\n if (inline) {\n return <code {...props} />;\n }\n const config = {\n noPreview,\n bordered,\n noScroll,\n bgWhite,\n noCode,\n codePen,\n codeSandbox,\n } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return <code {...props} />;\n }\n return (\n <Code\n version={version}\n code={getCodeStr(node.children)}\n dependencies={dependencies}\n {...{ noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox }}\n />\n );\n },\n }}\n />\n <div className={styles.docinfo}>\n <Footer path={path} />\n </div>\n </div>\n );\n}\n","import React from 'react';\nimport { Popover, Button, Input, Card } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default function Page() {\n return (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-popover/README.md\"\n dependencies={{ Popover, Button, Input, Card }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-popover/README.md');\n return md.default || md;\n }}\n />\n );\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codePen","codeSandbox","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","uiw","devDependencies","kkt","license","scripts","start","build","test","browserslist","style","marginBottom","path","url","Fragment","href","target","rel","type","getCodeStr","data","forEach","node","value","children","Array","isArray","CreatePage","renderPage","useState","mdStr","setMdStr","pkg","useEffect","then","str","catch","source","className","styles","components","inline","noPreview","bordered","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","Footer","Page","Popover","Button","Input","Card","md","default"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2367],{84934:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=84934,e.exports=n},86082:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var r=t(50189),o=t(53782),i=t(11026),s=t(41473),c=t(89171),d=t(75752),a=t(64357),u=t(69286),l=["version","dependencies","codePen","codeSandbox"];function p(e){var n=e.version,t=e.dependencies,i=e.codePen,s=e.codeSandbox,c=(0,o.Z)(e,l),d=(0,r.Z)({},c);return i&&(d.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(d.code||"").replace("_mount_",'document.getElementById("container")'),html:'<div id="container" style="padding: 24px"></div>',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js")}),s&&(d.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'<div id="container"></div>'},"src/index.js":{content:(d.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2",uiw:"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,u.jsx)(a.Z,(0,r.Z)((0,r.Z)({},d),{},{dependencies:t,style:{marginBottom:0}}))}var h=t(53864);function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.path,t=/^http/.test(n||"")?n:"https://github.com/uiwjs/uiw/blob/master/".concat(n);return(0,u.jsxs)(s.Fragment,{children:["\u72af\u4e86\u9519\u8bef\u8fd8\u662f\u60f3\u5bf9\u6587\u4ef6\u505a\u51fa\u8d21\u732e\uff1f",t&&(0,u.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"\u5728Github\u4e0a\u7f16\u8f91\u672c\u9875\uff01"}),(0,u.jsx)("br",{}),(0,u.jsx)("a",{href:"https://github.com/uiwjs/uiw/issues",target:"_blank",rel:"noopener noreferrer",children:"\u53cd\u9988\u5efa\u8bae"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw/issues/new",children:"\u63d0\u4ea4bug"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"Github"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt-ssr",children:"@kkt/ssr"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://uiw.gitee.io",children:"\u56fd\u5185\u955c\u50cf"})]})}var m="index_docinfo__3Vx8S",k="index_markdown__hcQCp",x=["inline","node"],v=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t};function b(e){var n=e.renderPage,t=e.dependencies,a=e.path,l=(0,s.useState)(""),h=(0,i.Z)(l,2),b=h[0],j=h[1],g=d.i8||"2.0.0";return(0,s.useEffect)((function(){n&&n().then((function(e){j(e)})).catch((function(){}))}),[]),b?(0,u.jsxs)("div",{children:[(0,u.jsx)(c.Z,{source:b,className:k,components:{code:function(e){var n=e.inline,i=e.node,s=(0,o.Z)(e,x),c=s,d=c.noPreview,a=c.bordered,l=c.noScroll,h=c.bgWhite,f=c.noCode,m=c.codePen,k=c.codeSandbox;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var b={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k};return 0===Object.keys(b).filter((function(e){return void 0!==b[e]})).length?(0,u.jsx)("code",(0,r.Z)({},s)):(0,u.jsx)(p,{version:g,code:v(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k})}}}),(0,u.jsx)("div",{className:m,children:(0,u.jsx)(f,{path:a})})]}):null}},23472:function(e,n,t){"use strict";t.r(n);var r=t(27791),o=t(57135),i=t.n(o),s=(t(41473),t(53864)),c=t(86082),d=t(69286);n.default=function(){return(0,d.jsx)(c.Z,{path:"https://github.com/uiwjs/react-split/edit/master/README.md",dependencies:{Split:s.P,Divider:s.iz,Button:s.zx,Menu:s.v2},renderPage:(0,r.Z)(i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(486).then(t.bind(t,60486));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
+
//# sourceMappingURL=2367.eccc87d2.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/2367.eccc87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,SAAC,IAAD,CACEO,OAAQP,EACRQ,UAAWC,EACXC,WAAY,CASVlE,KAAM,YAAiC,IAA9BmE,EAA6B,EAA7BA,OAAQnB,EAAqB,EAArBA,KAASpC,GAAY,YACpC,EAAiFA,EAAzEwD,EAAR,EAAQA,UAAWC,EAAnB,EAAmBA,SAAUC,EAA7B,EAA6BA,SAAUC,EAAvC,EAAuCA,QAASC,EAAhD,EAAgDA,OAAQ/D,EAAxD,EAAwDA,QAASC,EAAjE,EAAiEA,YACjE,GAAIyD,EACF,OAAO,2BAAUvD,IAEnB,IAAM6D,EAAS,CACbL,UAAAA,EACAC,SAAAA,EACAC,SAAAA,EACAC,QAAAA,EACAC,OAAAA,EACA/D,QAAAA,EACAC,YAAAA,GAEF,OAAgF,IAA5EgE,OAAOzE,KAAKwE,GAAQE,QAAO,SAACnD,GAAD,YAA2BoD,IAAjBH,EAAOjD,MAAqBqD,QAC5D,2BAAUjE,KAGjB,SAACN,EAAD,CACEC,QAASA,EACTP,KAAM6C,EAAWG,EAAKE,UACtB1C,aAAcA,EACR4D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQ/D,QAAAA,EAASC,YAAAA,SAMzE,gBAAKsD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA9CX,O,yHCrCX,qBAAe,OACb,SAAC,IAAD,CACEA,KAAK,6DACL9B,aAAc,CAAEuE,MAAAA,EAAAA,EAAOC,QAAAA,EAAAA,GAASC,OAAAA,EAAAA,GAAQC,KAAAA,EAAAA,IACxC5B,YAAU,iBAAE,oGACO,+BADP,cACJ6B,EADI,yBAEHA,EAAGC,SAAWD,GAFX","sources":["../../node_modules/@babel/standalone|sync|nonrecursive","components/Markdown/Code.tsx","components/Markdown/Footer.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","routes/components/split/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 84934;\nmodule.exports = webpackEmptyContext;","import CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n code: string;\n version: string;\n codePen: boolean;\n codeSandbox?: boolean;\n dependencies: any;\n}\n\nexport default function Code({ version, dependencies, codePen, codeSandbox, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '<div id=\"container\" style=\"padding: 24px\"></div>',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `<div id=\"container\"></div>`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return <CodePreview {...props} dependencies={dependencies} style={{ marginBottom: 0 }} />;\n}\n","import React, { Fragment } from 'react';\nimport { Divider } from 'uiw';\n\nexport type FooterProps = {\n path?: string;\n};\n\nexport default function (props: FooterProps = {}) {\n const { path } = props;\n const url = /^http/.test(path || '') ? path : `https://github.com/uiwjs/uiw/blob/master/${path}`;\n return (\n <Fragment>\n 犯了错误还是想对文件做出贡献?\n {url && (\n <a href={url} target=\"_blank\" rel=\"noopener noreferrer\">\n 在Github上编辑本页!\n </a>\n )}\n <br />\n <a href=\"https://github.com/uiwjs/uiw/issues\" target=\"_blank\" rel=\"noopener noreferrer\">\n 反馈建议\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw/issues/new\">\n 提交bug\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw\">\n Github\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt\">\n kkt\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt-ssr\">\n @kkt/ssr\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://uiw.gitee.io\">\n 国内镜像\n </a>\n </Fragment>\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"docinfo\":\"index_docinfo__3Vx8S\",\"markdown\":\"index_markdown__hcQCp\"};","import { useEffect, useState } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from 'uiw/package.json';\nimport Code from './Code';\nimport Footer from './Footer';\nimport styles from './index.module.less';\n\nexport type CreatePageProps<T> = {\n dependencies?: T;\n path: string;\n renderPage?: () => Promise<string>;\n};\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default function CreatePage<T>(props: CreatePageProps<T>) {\n const { renderPage, dependencies, path } = props;\n const [mdStr, setMdStr] = useState('');\n\n const version = pkg.version || '2.0.0';\n useEffect(() => {\n if (renderPage) {\n renderPage()\n .then((str) => {\n setMdStr(str);\n })\n .catch(() => {});\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!mdStr) {\n return null;\n }\n\n return (\n <div>\n <MarkdownPreview\n source={mdStr}\n className={styles.markdown}\n components={{\n /**\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox } = props as any;\n if (inline) {\n return <code {...props} />;\n }\n const config = {\n noPreview,\n bordered,\n noScroll,\n bgWhite,\n noCode,\n codePen,\n codeSandbox,\n } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return <code {...props} />;\n }\n return (\n <Code\n version={version}\n code={getCodeStr(node.children)}\n dependencies={dependencies}\n {...{ noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox }}\n />\n );\n },\n }}\n />\n <div className={styles.docinfo}>\n <Footer path={path} />\n </div>\n </div>\n );\n}\n","import React from 'react';\nimport { Split, Divider, Button, Menu } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default () => (\n <Markdown\n path=\"https://github.com/uiwjs/react-split/edit/master/README.md\"\n dependencies={{ Split, Divider, Button, Menu }}\n renderPage={async () => {\n const md = await import('@uiw/react-split/README.md');\n return md.default || md;\n }}\n />\n);\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codePen","codeSandbox","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","uiw","devDependencies","kkt","license","scripts","start","build","test","browserslist","style","marginBottom","path","url","Fragment","href","target","rel","type","getCodeStr","data","forEach","node","value","children","Array","isArray","CreatePage","renderPage","useState","mdStr","setMdStr","pkg","useEffect","then","str","catch","source","className","styles","components","inline","noPreview","bordered","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","Footer","Split","Divider","Button","Menu","md","default"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2411],{84934:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=84934,e.exports=n},86082:function(e,n,t){"use strict";t.d(n,{Z:function(){return b}});var r=t(50189),o=t(53782),i=t(11026),c=t(41473),s=t(89171),d=t(75752),a=t(64357),u=t(69286),l=["version","dependencies","codePen","codeSandbox"];function p(e){var n=e.version,t=e.dependencies,i=e.codePen,c=e.codeSandbox,s=(0,o.Z)(e,l),d=(0,r.Z)({},s);return i&&(d.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(d.code||"").replace("_mount_",'document.getElementById("container")'),html:'<div id="container" style="padding: 24px"></div>',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js")}),c&&(d.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'<div id="container"></div>'},"src/index.js":{content:(d.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2",uiw:"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,u.jsx)(a.Z,(0,r.Z)((0,r.Z)({},d),{},{dependencies:t,style:{marginBottom:0}}))}var h=t(53864);function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.path,t=/^http/.test(n||"")?n:"https://github.com/uiwjs/uiw/blob/master/".concat(n);return(0,u.jsxs)(c.Fragment,{children:["\u72af\u4e86\u9519\u8bef\u8fd8\u662f\u60f3\u5bf9\u6587\u4ef6\u505a\u51fa\u8d21\u732e\uff1f",t&&(0,u.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"\u5728Github\u4e0a\u7f16\u8f91\u672c\u9875\uff01"}),(0,u.jsx)("br",{}),(0,u.jsx)("a",{href:"https://github.com/uiwjs/uiw/issues",target:"_blank",rel:"noopener noreferrer",children:"\u53cd\u9988\u5efa\u8bae"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw/issues/new",children:"\u63d0\u4ea4bug"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"Github"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt-ssr",children:"@kkt/ssr"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://uiw.gitee.io",children:"\u56fd\u5185\u955c\u50cf"})]})}var m="index_docinfo__3Vx8S",k="index_markdown__hcQCp",x=["inline","node"],v=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t};function b(e){var n=e.renderPage,t=e.dependencies,a=e.path,l=(0,c.useState)(""),h=(0,i.Z)(l,2),b=h[0],j=h[1],g=d.i8||"2.0.0";return(0,c.useEffect)((function(){n&&n().then((function(e){j(e)})).catch((function(){}))}),[]),b?(0,u.jsxs)("div",{children:[(0,u.jsx)(s.Z,{source:b,className:k,components:{code:function(e){var n=e.inline,i=e.node,c=(0,o.Z)(e,x),s=c,d=s.noPreview,a=s.bordered,l=s.noScroll,h=s.bgWhite,f=s.noCode,m=s.codePen,k=s.codeSandbox;if(n)return(0,u.jsx)("code",(0,r.Z)({},c));var b={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k};return 0===Object.keys(b).filter((function(e){return void 0!==b[e]})).length?(0,u.jsx)("code",(0,r.Z)({},c)):(0,u.jsx)(p,{version:g,code:v(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k})}}}),(0,u.jsx)("div",{className:m,children:(0,u.jsx)(f,{path:a})})]}):null}},57018:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return a}});var r=t(27791),o=t(57135),i=t.n(o),c=(t(41473),t(53864)),s=t(86082),d=t(69286);function a(){return(0,d.jsx)(s.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-dropdown/README.md",dependencies:{Dropdown:c.Lt,Divider:c.iz,Menu:c.v2,Button:c.zx,ButtonGroup:c.hE,Icon:c.JO},renderPage:(0,r.Z)(i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(8709).then(t.bind(t,88709));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
+
//# sourceMappingURL=2411.205f2dfc.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/2411.205f2dfc.chunk.js","mappings":"wFAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,MACzBC,EAAOC,QAAUT,G,oNCEF,SAASU,EAAT,GAAqF,IAArEC,EAAoE,EAApEA,QAASC,EAA2D,EAA3DA,aAAcC,EAA6C,EAA7CA,QAASC,EAAoC,EAApCA,YAAgBC,GAAoB,YAC3FC,GAAuB,UAAQD,GAyDrC,OAxDIF,IACFG,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,WACLQ,cAAe,CAAC,OAChBC,IAAKJ,EAAMZ,MAAQ,IAAIiB,QAAQ,UAAW,wCAC1CC,KAAM,mDACNC,aAAa,yBAAD,OAA2BZ,EAA3B,qBACZa,YAAY,yLAAD,OAA2Lb,EAA3L,qFAGXG,IACFE,EAAMS,kBAAoB,CACxBC,MAAO,CACL,sBAAuB,CACrBC,QAAQ,iKAQV,oBAAqB,CACnBA,QAAQ,8BAEV,eAAgB,CACdA,SAAUX,EAAMZ,MAAQ,IAAIiB,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gBAAKsD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA9CX,O,+JCrCI,SAASyC,IACtB,OACE,SAAC,IAAD,CACEzC,KAAK,6EACL9B,aAAc,CAAEwE,SAAAA,EAAAA,GAAUC,QAAAA,EAAAA,GAASC,KAAAA,EAAAA,GAAMC,OAAAA,EAAAA,GAAQC,YAAAA,EAAAA,GAAaC,KAAAA,EAAAA,IAC9D/B,YAAU,iBAAE,oGACO,gCADP,cACJgC,EADI,yBAEHA,EAAGC,SAAWD,GAFX","sources":["../../node_modules/@babel/standalone|sync|nonrecursive","components/Markdown/Code.tsx","components/Markdown/Footer.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","routes/components/dropdown/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 84934;\nmodule.exports = webpackEmptyContext;","import CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n code: string;\n version: string;\n codePen: boolean;\n codeSandbox?: boolean;\n dependencies: any;\n}\n\nexport default function Code({ version, dependencies, codePen, codeSandbox, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '<div id=\"container\" style=\"padding: 24px\"></div>',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `<div id=\"container\"></div>`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return <CodePreview {...props} dependencies={dependencies} style={{ marginBottom: 0 }} />;\n}\n","import React, { Fragment } from 'react';\nimport { Divider } from 'uiw';\n\nexport type FooterProps = {\n path?: string;\n};\n\nexport default function (props: FooterProps = {}) {\n const { path } = props;\n const url = /^http/.test(path || '') ? path : `https://github.com/uiwjs/uiw/blob/master/${path}`;\n return (\n <Fragment>\n 犯了错误还是想对文件做出贡献?\n {url && (\n <a href={url} target=\"_blank\" rel=\"noopener noreferrer\">\n 在Github上编辑本页!\n </a>\n )}\n <br />\n <a href=\"https://github.com/uiwjs/uiw/issues\" target=\"_blank\" rel=\"noopener noreferrer\">\n 反馈建议\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw/issues/new\">\n 提交bug\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw\">\n Github\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt\">\n kkt\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt-ssr\">\n @kkt/ssr\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://uiw.gitee.io\">\n 国内镜像\n </a>\n </Fragment>\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"docinfo\":\"index_docinfo__3Vx8S\",\"markdown\":\"index_markdown__hcQCp\"};","import { useEffect, useState } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from 'uiw/package.json';\nimport Code from './Code';\nimport Footer from './Footer';\nimport styles from './index.module.less';\n\nexport type CreatePageProps<T> = {\n dependencies?: T;\n path: string;\n renderPage?: () => Promise<string>;\n};\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default function CreatePage<T>(props: CreatePageProps<T>) {\n const { renderPage, dependencies, path } = props;\n const [mdStr, setMdStr] = useState('');\n\n const version = pkg.version || '2.0.0';\n useEffect(() => {\n if (renderPage) {\n renderPage()\n .then((str) => {\n setMdStr(str);\n })\n .catch(() => {});\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!mdStr) {\n return null;\n }\n\n return (\n <div>\n <MarkdownPreview\n source={mdStr}\n className={styles.markdown}\n components={{\n /**\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox } = props as any;\n if (inline) {\n return <code {...props} />;\n }\n const config = {\n noPreview,\n bordered,\n noScroll,\n bgWhite,\n noCode,\n codePen,\n codeSandbox,\n } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return <code {...props} />;\n }\n return (\n <Code\n version={version}\n code={getCodeStr(node.children)}\n dependencies={dependencies}\n {...{ noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox }}\n />\n );\n },\n }}\n />\n <div className={styles.docinfo}>\n <Footer path={path} />\n </div>\n </div>\n );\n}\n","import React from 'react';\nimport { Dropdown, Divider, Menu, Button, ButtonGroup, Icon } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default function Page() {\n return (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-dropdown/README.md\"\n dependencies={{ Dropdown, Divider, Menu, Button, ButtonGroup, Icon }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-dropdown/README.md');\n return md.default || md;\n }}\n />\n );\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codePen","codeSandbox","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","uiw","devDependencies","kkt","license","scripts","start","build","test","browserslist","style","marginBottom","path","url","Fragment","href","target","rel","type","getCodeStr","data","forEach","node","value","children","Array","isArray","CreatePage","renderPage","useState","mdStr","setMdStr","pkg","useEffect","then","str","catch","source","className","styles","components","inline","noPreview","bordered","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","Footer","Page","Dropdown","Divider","Menu","Button","ButtonGroup","Icon","md","default"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2448],{32448:function(n,e,t){t.r(e),e.default="TimePicker \u65f6\u95f4\u9009\u62e9\u5668\n===\n\n[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-time-picker/file/README.md)\n[](https://www.npmjs.com/package/@uiw/react-time-picker)\n[](https://npmjs.com/@uiw/react-time-picker)\n\n\u5f53\u7528\u6237\u9700\u8981\u8f93\u5165\u4e00\u4e2a\u65f6\u95f4\uff0c\u53ef\u4ee5\u70b9\u51fb\u6807\u51c6\u8f93\u5165\u6846\uff0c\u5f39\u51fa\u65f6\u95f4\u9762\u677f\u8fdb\u884c\u9009\u62e9\u3002\n\n```jsx\nimport { TimePicker } from 'uiw';\n// or\nimport TimePicker from '@uiw/react-time-picker';\n```\n\n## \u57fa\u7840\u7528\u6cd5\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { TimePicker, Row, Col } from 'uiw';\n\nconst Demo = () => (\n <Row gutter={10}>\n <Col fixed>\n <TimePicker\n onChange={(formatDate, date) => {\n console.log('---\x3e', formatDate, date);\n }}\n />\n </Col>\n <Col fixed>\n <TimePicker format=\"HH:mm\" precision=\"minute\" />\n </Col>\n <Col fixed>\n <TimePicker format=\"HH\" precision=\"hour\" />\n </Col>\n </Row>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n## \u8bbe\u7f6e\u521d\u59cb\u503c\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { TimePicker, Row, Col } from 'uiw';\n\nconst Demo = () => {\n const value = new Date(2018, 1, 24, 4,5,35);\n return (\n <Row gutter={10}>\n <Col fixed>\n <TimePicker value={value} />\n </Col>\n <Col fixed>\n <TimePicker value={value} format=\"HH:mm\" precision=\"minute\" />\n </Col>\n <Col fixed>\n <TimePicker value={value} format=\"HH\" precision=\"hour\" />\n </Col>\n </Row>\n )\n}\nReactDOM.render(<Demo />, _mount_);\n```\n\n## \u8bbe\u7f6e\u6309\u94ae\u5927\u5c0f\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { TimePicker, Row, Col } from 'uiw';\n\nconst Demo = () => {\n const value = new Date(2018, 1, 24, 4,5,35);\n return (\n <Row gutter={10}>\n <Col fixed>\n <TimePicker size=\"small\" value={value} />\n </Col>\n <Col fixed>\n <TimePicker size=\"large\" value={value} format=\"HH:mm\" precision=\"minute\" />\n </Col>\n <Col fixed>\n <TimePicker value={value} format=\"HH\" precision=\"hour\" />\n </Col>\n </Row>\n )\n}\nReactDOM.render(<Demo />, _mount_);\n```\n\n## \u8868\u5355\u4e2d\u5e94\u7528\n\n\u5728\u8868\u5355\u8fd4\u56de\u7684\u6570\u636e\uff0c\u5e76\u6ca1\u6709\u5c06 `format` \u683c\u5f0f\u5316\u540e\u7684\u6570\u636e\u8fd4\u56de\u7ed9\u4f60\uff0c\u800c\u662f\u8fd4\u56de\u7684\u4e00\u4e2a `Date`\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7 [`formatter`](#/components/formatter) \u91cd\u65b0\u683c\u5f0f\u5316\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { TimePicker, Notify, Row, Col, Form, Button } from 'uiw';\n\nconst Demo = () => (\n <div>\n <Form\n onSubmit={({initial, current}) => {\n console.log('--\x3e>', initial, current);\n if(current.date) {\n Notify.success({\n title: '\u63d0\u4ea4\u6210\u529f\uff01',\n description: `\u8868\u5355\u63d0\u4ea4\u65f6\u95f4\u6210\u529f\uff0c\u65f6\u95f4\u4e3a\uff1a${formatter('HH:mm:ss', current.date)}`,\n });\n } else {\n Notify.error({\n title: '\u63d0\u4ea4\u5931\u8d25\uff01',\n description: <span>\u8868\u5355\u63d0\u4ea4\u65f6\u95f4\u6210\u529f\uff0c\u65f6\u95f4\u4e3a\uff1a<b>\u7a7a</b>\uff0c\u5c06\u81ea\u52a8\u586b\u5145\u521d\u59cb\u5316\u503c\uff01</span>,\n });\n }\n }}\n fields={{\n date: {\n labelClassName: 'fieldLabel',\n labelFor: 'date-inline',\n children: <TimePicker />\n },\n }}\n >\n {({ fields, state, canSubmit }) => {\n return (\n <Row gutter={10}>\n <Col fixed>{fields.date}</Col>\n <Col>\n <Button disabled={!canSubmit()} type=\"primary\" htmlType=\"submit\">\u63d0\u4ea4</Button>\n </Col>\n </Row>\n )\n }}\n </Form>\n </div>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n## \u7981\u7528\n\n\u53ef\u4ee5\u4f7f\u7528 `disabledHours` `disabledMinutes` `disabledSeconds` \u7981\u7528\u90e8\u5206\u65f6\u95f4\u9009\u62e9\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { TimePicker, Row, Col } from 'uiw';\n\nconst Demo = () => (\n <Row gutter={10} style={{ maxWidth: 360 }}>\n <Col fixed>\n <TimePicker\n disabledMinutes={(minute, type) => {\n if (minute % 15 !== 0) {\n return true;\n }\n }}\n disabledHours={(hour, type, date) => {\n // console.log('~~:', hour, type, date);\n if (hour < 3) {\n return true;\n }\n }}\n />\n </Col>\n <Col>\n <TimePicker disabled value={new Date(2018, 1, 24, 4,5,35)} />\n </Col>\n </Row>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n## \u4e0d\u663e\u793a\u7981\u7528\n\n\u53ef\u4ee5\u4f7f\u7528 `hideDisabled` \u5c06\u7981\u7528\u7684\u90e8\u5206\u65f6\u95f4\u9690\u85cf\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { TimePicker, Row, Col } from 'uiw';\n\nconst Demo = () => (\n <Row gutter={10} style={{ maxWidth: 360 }}>\n <Col fixed>\n <TimePicker\n hideDisabled\n disabledMinutes={(minute, type) => {\n if (minute % 15 !== 0) {\n return true;\n }\n }}\n disabledHours={(hour, type, date) => {\n // console.log('~~:', hour, type, date);\n if (hour < 3) {\n return true;\n }\n }}\n />\n </Col>\n </Row>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n## \u95f4\u9694\u65f6\u95f4\n\n\u53ef\u4ee5\u4f7f\u7528 `hideDisabled` \u5c06\u7981\u7528\u7684\u90e8\u5206\u65f6\u95f4\u9690\u85cf\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { TimePicker, Row, Col } from 'uiw';\n\nconst Demo = () => (\n <Row gutter={10} style={{ maxWidth: 360 }}>\n <Col fixed>\n <TimePicker\n hideDisabled\n disabledMinutes={(minute, date) => {\n if (minute % 15 !== 0) {\n return true;\n }\n }}\n disabledSeconds={(second, date) => {\n if (second % 15 !== 0) {\n return true;\n }\n }}\n />\n </Col>\n </Row>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n## Props\n\n| \u53c2\u6570 | \u8bf4\u660e | \u7c7b\u578b | \u9ed8\u8ba4\u503c |\n|--------- |-------- |--------- |-------- |\n| value | \u521d\u59cb\u65f6\u95f4\u503c | Date | - |\n| placeholder | \u8f93\u5165\u6846\u63d0\u793a\u6587\u5b57 | String | - |\n| format | \u683c\u5f0f\u5316\u65f6\u95f4\uff0c\u89c4\u5219\u67e5\u770b [`formatter`](#/components/formatter) \u6587\u6863 | Function | `HH:mm:ss` |\n| precision | \u9009\u62e9\u65f6\u95f4\u7cbe\u786e\u5ea6 | Enum{`hour`, `minute`, `second`} | `false` |\n| disabled | \u7981\u7528\u5168\u90e8\u64cd\u4f5c | Boolean | `false` |\n| disabledHours | \u7981\u6b62\u9009\u62e9\u90e8\u5206\u5c0f\u65f6\u9009\u9879 | Function(hour, <br/>type{`Hours`, `Minutes`, `Seconds`}, <br/>selectedDate) | - |\n| disabledMinutes | \u7981\u6b62\u9009\u62e9\u90e8\u5206\u5206\u949f\u9009\u9879 | Function(minute, <br/>type{`Hours`, `Minutes`, `Seconds`}, <br/>selectedDate) | - |\n| disabledSeconds | \u7981\u6b62\u9009\u62e9\u90e8\u5206\u79d2\u9009\u9879 | Function(second, <br/>type{`Hours`, `Minutes`, `Seconds`}, <br/>selectedDate) | - |\n| hideDisabled | \u4e0d\u53ef\u9009\u62e9\u7684\u9879\u9690\u85cf | Boolean | `false` |\n| onChange | \u65f6\u95f4\u9009\u62e9\u7684\u56de\u8c03\u51fd\u6570 | Function(formatDate, Date, <br/>type{`Hours`, `Minutes`, `Seconds`}, <br/>, num, disableds) | - |\n\n`uiw@3.3.0+` \u7ec4\u4ef6\u96c6\u6210\u90e8\u5206 Input\uff0c\u4e0d\u518d\u901a\u8fc7 inputProps \u5c5e\u6027\u4f20\u503c\uff0c\u66f4\u591a\u5c5e\u6027\u8bf7\u53c2\u8003 [Input](#/components/input)\n\n## ~~Props.inputProps~~\n\n`uiw@3.3.0+` \u5c06\u4e0d\u652f\u6301\u6b64\u5c5e\u6027\n\n| \u53c2\u6570 | \u8bf4\u660e | \u7c7b\u578b | \u9ed8\u8ba4\u503c |\n|--------- |-------- |--------- |-------- |\n| ~~inputProps~~ | ~~\u5c06\u53c2\u6570\u4f20\u9012\u7ed9 [`<Input>`](#/components/input) \u7ec4\u4ef6~~ | `Object` | - |\n\n## Props.popoverProps\n\n| \u53c2\u6570 | \u8bf4\u660e | \u7c7b\u578b | \u9ed8\u8ba4\u503c |\n|--------- |-------- |--------- |-------- |\n| popoverProps | \u5c06\u53c2\u6570\u4f20\u9012\u7ed9 [`<Popover>`](#/components/popover) \u7ec4\u4ef6 | `Object` | - |\n"}}]);
|
|
2
|
+
//# sourceMappingURL=2448.1d46904a.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/2448.1d46904a.chunk.js","mappings":"gHAAA","sources":["../../packages/react-time-picker/README.md"],"sourcesContent":["export default \"TimePicker 时间选择器\\n===\\n\\n[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-time-picker/file/README.md)\\n[](https://www.npmjs.com/package/@uiw/react-time-picker)\\n[](https://npmjs.com/@uiw/react-time-picker)\\n\\n当用户需要输入一个时间,可以点击标准输入框,弹出时间面板进行选择。\\n\\n```jsx\\nimport { TimePicker } from 'uiw';\\n// or\\nimport TimePicker from '@uiw/react-time-picker';\\n```\\n\\n## 基础用法\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { TimePicker, Row, Col } from 'uiw';\\n\\nconst Demo = () => (\\n <Row gutter={10}>\\n <Col fixed>\\n <TimePicker\\n onChange={(formatDate, date) => {\\n console.log('--->', formatDate, date);\\n }}\\n />\\n </Col>\\n <Col fixed>\\n <TimePicker format=\\\"HH:mm\\\" precision=\\\"minute\\\" />\\n </Col>\\n <Col fixed>\\n <TimePicker format=\\\"HH\\\" precision=\\\"hour\\\" />\\n </Col>\\n </Row>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n## 设置初始值\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { TimePicker, Row, Col } from 'uiw';\\n\\nconst Demo = () => {\\n const value = new Date(2018, 1, 24, 4,5,35);\\n return (\\n <Row gutter={10}>\\n <Col fixed>\\n <TimePicker value={value} />\\n </Col>\\n <Col fixed>\\n <TimePicker value={value} format=\\\"HH:mm\\\" precision=\\\"minute\\\" />\\n </Col>\\n <Col fixed>\\n <TimePicker value={value} format=\\\"HH\\\" precision=\\\"hour\\\" />\\n </Col>\\n </Row>\\n )\\n}\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n## 设置按钮大小\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { TimePicker, Row, Col } from 'uiw';\\n\\nconst Demo = () => {\\n const value = new Date(2018, 1, 24, 4,5,35);\\n return (\\n <Row gutter={10}>\\n <Col fixed>\\n <TimePicker size=\\\"small\\\" value={value} />\\n </Col>\\n <Col fixed>\\n <TimePicker size=\\\"large\\\" value={value} format=\\\"HH:mm\\\" precision=\\\"minute\\\" />\\n </Col>\\n <Col fixed>\\n <TimePicker value={value} format=\\\"HH\\\" precision=\\\"hour\\\" />\\n </Col>\\n </Row>\\n )\\n}\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n## 表单中应用\\n\\n在表单返回的数据,并没有将 `format` 格式化后的数据返回给你,而是返回的一个 `Date`,你可以通过 [`formatter`](#/components/formatter) 重新格式化。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { TimePicker, Notify, Row, Col, Form, Button } from 'uiw';\\n\\nconst Demo = () => (\\n <div>\\n <Form\\n onSubmit={({initial, current}) => {\\n console.log('-->>', initial, current);\\n if(current.date) {\\n Notify.success({\\n title: '提交成功!',\\n description: `表单提交时间成功,时间为:${formatter('HH:mm:ss', current.date)}`,\\n });\\n } else {\\n Notify.error({\\n title: '提交失败!',\\n description: <span>表单提交时间成功,时间为:<b>空</b>,将自动填充初始化值!</span>,\\n });\\n }\\n }}\\n fields={{\\n date: {\\n labelClassName: 'fieldLabel',\\n labelFor: 'date-inline',\\n children: <TimePicker />\\n },\\n }}\\n >\\n {({ fields, state, canSubmit }) => {\\n return (\\n <Row gutter={10}>\\n <Col fixed>{fields.date}</Col>\\n <Col>\\n <Button disabled={!canSubmit()} type=\\\"primary\\\" htmlType=\\\"submit\\\">提交</Button>\\n </Col>\\n </Row>\\n )\\n }}\\n </Form>\\n </div>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n## 禁用\\n\\n可以使用 `disabledHours` `disabledMinutes` `disabledSeconds` 禁用部分时间选择。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { TimePicker, Row, Col } from 'uiw';\\n\\nconst Demo = () => (\\n <Row gutter={10} style={{ maxWidth: 360 }}>\\n <Col fixed>\\n <TimePicker\\n disabledMinutes={(minute, type) => {\\n if (minute % 15 !== 0) {\\n return true;\\n }\\n }}\\n disabledHours={(hour, type, date) => {\\n // console.log('~~:', hour, type, date);\\n if (hour < 3) {\\n return true;\\n }\\n }}\\n />\\n </Col>\\n <Col>\\n <TimePicker disabled value={new Date(2018, 1, 24, 4,5,35)} />\\n </Col>\\n </Row>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n## 不显示禁用\\n\\n可以使用 `hideDisabled` 将禁用的部分时间隐藏。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { TimePicker, Row, Col } from 'uiw';\\n\\nconst Demo = () => (\\n <Row gutter={10} style={{ maxWidth: 360 }}>\\n <Col fixed>\\n <TimePicker\\n hideDisabled\\n disabledMinutes={(minute, type) => {\\n if (minute % 15 !== 0) {\\n return true;\\n }\\n }}\\n disabledHours={(hour, type, date) => {\\n // console.log('~~:', hour, type, date);\\n if (hour < 3) {\\n return true;\\n }\\n }}\\n />\\n </Col>\\n </Row>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n## 间隔时间\\n\\n可以使用 `hideDisabled` 将禁用的部分时间隐藏。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { TimePicker, Row, Col } from 'uiw';\\n\\nconst Demo = () => (\\n <Row gutter={10} style={{ maxWidth: 360 }}>\\n <Col fixed>\\n <TimePicker\\n hideDisabled\\n disabledMinutes={(minute, date) => {\\n if (minute % 15 !== 0) {\\n return true;\\n }\\n }}\\n disabledSeconds={(second, date) => {\\n if (second % 15 !== 0) {\\n return true;\\n }\\n }}\\n />\\n </Col>\\n </Row>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n## Props\\n\\n| 参数 | 说明 | 类型 | 默认值 |\\n|--------- |-------- |--------- |-------- |\\n| value | 初始时间值 | Date | - |\\n| placeholder | 输入框提示文字 | String | - |\\n| format | 格式化时间,规则查看 [`formatter`](#/components/formatter) 文档 | Function | `HH:mm:ss` |\\n| precision | 选择时间精确度 | Enum{`hour`, `minute`, `second`} | `false` |\\n| disabled | 禁用全部操作 | Boolean | `false` |\\n| disabledHours | 禁止选择部分小时选项 | Function(hour, <br/>type{`Hours`, `Minutes`, `Seconds`}, <br/>selectedDate) | - |\\n| disabledMinutes | 禁止选择部分分钟选项 | Function(minute, <br/>type{`Hours`, `Minutes`, `Seconds`}, <br/>selectedDate) | - |\\n| disabledSeconds | 禁止选择部分秒选项 | Function(second, <br/>type{`Hours`, `Minutes`, `Seconds`}, <br/>selectedDate) | - |\\n| hideDisabled | 不可选择的项隐藏 | Boolean | `false` |\\n| onChange | 时间选择的回调函数 | Function(formatDate, Date, <br/>type{`Hours`, `Minutes`, `Seconds`}, <br/>, num, disableds) | - |\\n\\n`uiw@3.3.0+` 组件集成部分 Input,不再通过 inputProps 属性传值,更多属性请参考 [Input](#/components/input)\\n\\n## ~~Props.inputProps~~\\n\\n`uiw@3.3.0+` 将不支持此属性\\n\\n| 参数 | 说明 | 类型 | 默认值 |\\n|--------- |-------- |--------- |-------- |\\n| ~~inputProps~~ | ~~将参数传递给 [`<Input>`](#/components/input) 组件~~ | `Object` | - |\\n\\n## Props.popoverProps\\n\\n| 参数 | 说明 | 类型 | 默认值 |\\n|--------- |-------- |--------- |-------- |\\n| popoverProps | 将参数传递给 [`<Popover>`](#/components/popover) 组件 | `Object` | - |\\n\";"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2456],{52456:function(n,e,t){t.r(e),e.default='Card \u5361\u7247\n===\n\n[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-card/file/README.md)\n[](https://www.npmjs.com/package/@uiw/react-card)\n[](https://npmjs.com/@uiw/react-card)\n\n\u901a\u7528\u5361\u7247\u5bb9\u5668\uff0c\u5c06\u4fe1\u606f\u805a\u5408\u5728\u5361\u7247\u5bb9\u5668\u4e2d\u5c55\u793a\uff0c\u7528\u6765\u663e\u793a\u6587\u5b57\u3001\u5217\u8868\u3001\u56fe\u6587\u7b49\u5185\u5bb9\u3002\n\n```jsx\nimport { Card } from \'uiw\';\n// or\nimport Card from \'@uiw/react-card\';\n```\n\n## \u57fa\u7840\u7528\u6cd5\n\n\u5305\u542b\u6807\u9898\u3001\u5185\u5bb9\u3001\u64cd\u4f5c\u533a\u57df\u3002\n\n\x3c!--rehype:codeSandbox=true&codePen=true--\x3e \n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Card } from \'uiw\';\n\nReactDOM.render(\n <div>\n <Card title="Card\u6807\u9898" extra={<a href="#">\u66f4\u591a</a>} style={{ width: 300 }}>\n \u5361\u7247\u5185\u5bb9<br/>\n \u5361\u7247\u5185\u5bb9<br/>\n \u5361\u7247\u5185\u5bb9<br/>\n </Card>\n </div>,\n _mount_\n);\n```\n\n## \u65e0\u8fb9\u6846\n\n\u5728\u7070\u8272\u80cc\u666f\u4e0a\u4f7f\u7528\u65e0\u8fb9\u6846\u7684\u5361\u7247\u3002\n\n\x3c!--rehype:codeSandbox=true&codePen=true--\x3e \n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Card } from \'uiw\';\n\nReactDOM.render(\n <Card title="Card\u6807\u9898" bordered={false} style={{ width: 300 }}>\n \u5361\u7247\u5185\u5bb9<br/>\n \u5361\u7247\u5185\u5bb9<br/>\n \u5361\u7247\u5185\u5bb9<br/>\n </Card>,\n _mount_\n);\n```\n\n## \u7b80\u6d01\u5361\u7247\n\n\u53ea\u5305\u542b\u5185\u5bb9\u533a\u57df\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e \n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Card } from \'uiw\';\n\nReactDOM.render(\n <Card style={{ width: 300 }}>\n \u5361\u7247\u5185\u5bb9<br/>\n \u5361\u7247\u5185\u5bb9<br/>\n \u5361\u7247\u5185\u5bb9<br/>\n </Card>,\n _mount_\n);\n```\n\n## \u66f4\u7075\u6d3b\u7684\u5185\u5bb9\u5c55\u793a\n\n\u53ef\u4ee5\u8c03\u6574\u9ed8\u8ba4\u8fb9\u8ddd\uff0c\u8bbe\u5b9a\u5bbd\u5ea6\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e \n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Card } from \'uiw\';\n\nlet titleStyle = { padding: `10px 16px` };\n\nReactDOM.render(\n <Card style={{ width: 240 }} bodyStyle={{ padding: 10 }}>\n <div>\n <img alt="example" width="100%" src="https://avatars1.githubusercontent.com/u/1680273?v=4" />\n </div>\n <div style={titleStyle}>\n <h3 style={{margin:0}}>\u6211\u7231\u6f02\u4eae\u59b9\u59b9</h3>\n <p style={{margin:0}}><a href="https://uiwjs.github.io">https://uiwjs.github.io</a></p>\n </div>\n </Card>,\n _mount_\n);\n```\n\n## \u6dfb\u52a0\u9875\u811a\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e \n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Card, Icon } from \'uiw\';\n\nconst footer = (\n <a href="https://uiwjs.github.io">\n <Icon type=\'user\' /> \n 16 Friends\n </a>\n)\n\nReactDOM.render(\n <Card\n title="Card\u6807\u9898"\n footer={footer}\n style={{ width: 240 }} \n bodyStyle={{ padding: 0 }}\n >\n <div>\n <img alt="example" width="100%" src="https://avatars1.githubusercontent.com/u/1680273?v=4" />\n </div>\n <div style={{ padding: `10px 16px` }}>\n <h3 style={{margin:0}}>\u6211\u7231\u6f02\u4eae\u59b9\u59b9</h3>\n <p style={{margin:0}}><a href="https://uiwjs.github.io">https://uiwjs.github.io</a></p>\n </div>\n </Card>,\n _mount_\n);\n```\n\n## \u6fc0\u6d3b\n\n\u8bbe\u7f6e\u5c5e\u6027 `active=true` \u5c06\u6fc0\u6d3b\u5361\u7247\uff0c\u9ed8\u8ba4\u5c55\u793a\u9f20\u6807\u7ecf\u8fc7\u7684\u6837\u5f0f\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e \n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Card, Icon } from \'uiw\';\n\nconst footer = (\n <a href="https://uiwjs.github.io">\n <Icon type=\'user\' /> \n 16 Friends\n </a>\n)\n\nReactDOM.render(\n <Card\n active\n title="Card\u6807\u9898"\n footer={footer}\n style={{ width: 240 }} \n bodyStyle={{ padding: 0 }}\n >\n <div>\n <img alt="example" width="100%" src="https://avatars1.githubusercontent.com/u/1680273?v=4" />\n </div>\n <div style={{ padding: `10px 16px` }}>\n <h3 style={{margin:0}}>\u6211\u7231\u6f02\u4eae\u59b9\u59b9</h3>\n <p style={{margin:0}}><a href="https://uiwjs.github.io">https://uiwjs.github.io</a></p>\n </div>\n </Card>,\n _mount_\n);\n```\n\n## API\n\n| \u53c2\u6570 | \u8bf4\u660e | \u7c7b\u578b | \u9ed8\u8ba4\u503c |\n|--------- |-------- |--------- |-------- |\n| title | \u5361\u7247\u6807\u9898 | String/ReactNode | - |\n| footer | \u9875\u811a\u5185\u5bb9\u7684\u7b80\u5199 | String/ReactNode | - |\n| extra | \u5361\u7247\u53f3\u4e0a\u89d2\u7684\u64cd\u4f5c\u533a\u57df | String/ReactNode | - |\n| bordered | \u662f\u5426\u663e\u793a\u8fb9\u6846 | Boolean | `true` |\n| active | \u5c55\u793a\u9f20\u6807\u7ecf\u8fc7\u7684\u6837\u5f0f\u3002 | Boolean | `false` |\n| noHover | \u53d6\u6d88\u9f20\u6807\u79fb\u8fc7\u65f6\u8fb9\u6846\u9634\u5f71 | Boolean | `false` |\n| bodyStyle | \u8bbe\u7f6e `body` \u7684\u6837\u5f0f | Object | - |\n| bodyClassName | \u8bbe\u7f6e `body` \u7684 `className` | String | - |'}}]);
|
|
2
|
+
//# sourceMappingURL=2456.624e63f5.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/2456.624e63f5.chunk.js","mappings":"gHAAA","sources":["../../packages/react-card/README.md"],"sourcesContent":["export default \"Card 卡片\\n===\\n\\n[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-card/file/README.md)\\n[](https://www.npmjs.com/package/@uiw/react-card)\\n[](https://npmjs.com/@uiw/react-card)\\n\\n通用卡片容器,将信息聚合在卡片容器中展示,用来显示文字、列表、图文等内容。\\n\\n```jsx\\nimport { Card } from 'uiw';\\n// or\\nimport Card from '@uiw/react-card';\\n```\\n\\n## 基础用法\\n\\n包含标题、内容、操作区域。\\n\\n<!--rehype:codeSandbox=true&codePen=true--> \\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Card } from 'uiw';\\n\\nReactDOM.render(\\n <div>\\n <Card title=\\\"Card标题\\\" extra={<a href=\\\"#\\\">更多</a>} style={{ width: 300 }}>\\n 卡片内容<br/>\\n 卡片内容<br/>\\n 卡片内容<br/>\\n </Card>\\n </div>,\\n _mount_\\n);\\n```\\n\\n## 无边框\\n\\n在灰色背景上使用无边框的卡片。\\n\\n<!--rehype:codeSandbox=true&codePen=true--> \\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Card } from 'uiw';\\n\\nReactDOM.render(\\n <Card title=\\\"Card标题\\\" bordered={false} style={{ width: 300 }}>\\n 卡片内容<br/>\\n 卡片内容<br/>\\n 卡片内容<br/>\\n </Card>,\\n _mount_\\n);\\n```\\n\\n## 简洁卡片\\n\\n只包含内容区域。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true--> \\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Card } from 'uiw';\\n\\nReactDOM.render(\\n <Card style={{ width: 300 }}>\\n 卡片内容<br/>\\n 卡片内容<br/>\\n 卡片内容<br/>\\n </Card>,\\n _mount_\\n);\\n```\\n\\n## 更灵活的内容展示\\n\\n可以调整默认边距,设定宽度。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true--> \\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Card } from 'uiw';\\n\\nlet titleStyle = { padding: `10px 16px` };\\n\\nReactDOM.render(\\n <Card style={{ width: 240 }} bodyStyle={{ padding: 10 }}>\\n <div>\\n <img alt=\\\"example\\\" width=\\\"100%\\\" src=\\\"https://avatars1.githubusercontent.com/u/1680273?v=4\\\" />\\n </div>\\n <div style={titleStyle}>\\n <h3 style={{margin:0}}>我爱漂亮妹妹</h3>\\n <p style={{margin:0}}><a href=\\\"https://uiwjs.github.io\\\">https://uiwjs.github.io</a></p>\\n </div>\\n </Card>,\\n _mount_\\n);\\n```\\n\\n## 添加页脚\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true--> \\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Card, Icon } from 'uiw';\\n\\nconst footer = (\\n <a href=\\\"https://uiwjs.github.io\\\">\\n <Icon type='user' /> \\n 16 Friends\\n </a>\\n)\\n\\nReactDOM.render(\\n <Card\\n title=\\\"Card标题\\\"\\n footer={footer}\\n style={{ width: 240 }} \\n bodyStyle={{ padding: 0 }}\\n >\\n <div>\\n <img alt=\\\"example\\\" width=\\\"100%\\\" src=\\\"https://avatars1.githubusercontent.com/u/1680273?v=4\\\" />\\n </div>\\n <div style={{ padding: `10px 16px` }}>\\n <h3 style={{margin:0}}>我爱漂亮妹妹</h3>\\n <p style={{margin:0}}><a href=\\\"https://uiwjs.github.io\\\">https://uiwjs.github.io</a></p>\\n </div>\\n </Card>,\\n _mount_\\n);\\n```\\n\\n## 激活\\n\\n设置属性 `active=true` 将激活卡片,默认展示鼠标经过的样式。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true--> \\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Card, Icon } from 'uiw';\\n\\nconst footer = (\\n <a href=\\\"https://uiwjs.github.io\\\">\\n <Icon type='user' /> \\n 16 Friends\\n </a>\\n)\\n\\nReactDOM.render(\\n <Card\\n active\\n title=\\\"Card标题\\\"\\n footer={footer}\\n style={{ width: 240 }} \\n bodyStyle={{ padding: 0 }}\\n >\\n <div>\\n <img alt=\\\"example\\\" width=\\\"100%\\\" src=\\\"https://avatars1.githubusercontent.com/u/1680273?v=4\\\" />\\n </div>\\n <div style={{ padding: `10px 16px` }}>\\n <h3 style={{margin:0}}>我爱漂亮妹妹</h3>\\n <p style={{margin:0}}><a href=\\\"https://uiwjs.github.io\\\">https://uiwjs.github.io</a></p>\\n </div>\\n </Card>,\\n _mount_\\n);\\n```\\n\\n## API\\n\\n| 参数 | 说明 | 类型 | 默认值 |\\n|--------- |-------- |--------- |-------- |\\n| title | 卡片标题 | String/ReactNode | - |\\n| footer | 页脚内容的简写 | String/ReactNode | - |\\n| extra | 卡片右上角的操作区域 | String/ReactNode | - |\\n| bordered | 是否显示边框 | Boolean | `true` |\\n| active | 展示鼠标经过的样式。 | Boolean | `false` |\\n| noHover | 取消鼠标移过时边框阴影 | Boolean | `false` |\\n| bodyStyle | 设置 `body` 的样式 | Object | - |\\n| bodyClassName | 设置 `body` 的 `className` | String | - |\";"],"names":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2582],{84934:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=84934,e.exports=n},86082:function(e,n,t){"use strict";t.d(n,{Z:function(){return j}});var r=t(50189),o=t(53782),i=t(11026),s=t(41473),c=t(89171),d=t(75752),a=t(64357),u=t(69286),l=["version","dependencies","codePen","codeSandbox"];function p(e){var n=e.version,t=e.dependencies,i=e.codePen,s=e.codeSandbox,c=(0,o.Z)(e,l),d=(0,r.Z)({},c);return i&&(d.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(d.code||"").replace("_mount_",'document.getElementById("container")'),html:'<div id="container" style="padding: 24px"></div>',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js")}),s&&(d.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'<div id="container"></div>'},"src/index.js":{content:(d.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2",uiw:"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,u.jsx)(a.Z,(0,r.Z)((0,r.Z)({},d),{},{dependencies:t,style:{marginBottom:0}}))}var h=t(53864);function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.path,t=/^http/.test(n||"")?n:"https://github.com/uiwjs/uiw/blob/master/".concat(n);return(0,u.jsxs)(s.Fragment,{children:["\u72af\u4e86\u9519\u8bef\u8fd8\u662f\u60f3\u5bf9\u6587\u4ef6\u505a\u51fa\u8d21\u732e\uff1f",t&&(0,u.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"\u5728Github\u4e0a\u7f16\u8f91\u672c\u9875\uff01"}),(0,u.jsx)("br",{}),(0,u.jsx)("a",{href:"https://github.com/uiwjs/uiw/issues",target:"_blank",rel:"noopener noreferrer",children:"\u53cd\u9988\u5efa\u8bae"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw/issues/new",children:"\u63d0\u4ea4bug"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"Github"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt-ssr",children:"@kkt/ssr"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://uiw.gitee.io",children:"\u56fd\u5185\u955c\u50cf"})]})}var m="index_docinfo__3Vx8S",k="index_markdown__hcQCp",x=["inline","node"],b=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t};function j(e){var n=e.renderPage,t=e.dependencies,a=e.path,l=(0,s.useState)(""),h=(0,i.Z)(l,2),j=h[0],v=h[1],g=d.i8||"2.0.0";return(0,s.useEffect)((function(){n&&n().then((function(e){v(e)})).catch((function(){}))}),[]),j?(0,u.jsxs)("div",{children:[(0,u.jsx)(c.Z,{source:j,className:k,components:{code:function(e){var n=e.inline,i=e.node,s=(0,o.Z)(e,x),c=s,d=c.noPreview,a=c.bordered,l=c.noScroll,h=c.bgWhite,f=c.noCode,m=c.codePen,k=c.codeSandbox;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var j={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k};return 0===Object.keys(j).filter((function(e){return void 0!==j[e]})).length?(0,u.jsx)("code",(0,r.Z)({},s)):(0,u.jsx)(p,{version:g,code:b(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:k})}}}),(0,u.jsx)("div",{className:m,children:(0,u.jsx)(f,{path:a})})]}):null}},51374:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return a}});var r=t(27791),o=t(57135),i=t.n(o),s=(t(41473),t(53864)),c=t(86082),d=t(69286);function a(){return(0,d.jsx)(c.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-drawer/README.md",dependencies:{Drawer:s.dy,ButtonGroup:s.hE,Button:s.zx},renderPage:(0,r.Z)(i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(9147).then(t.bind(t,29147));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
+
//# sourceMappingURL=2582.f98597b8.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/2582.f98597b8.chunk.js","mappings":"wFAAA,SAASA,EAAoBC,GAC5B,IAAIC,EAAI,IAAIC,MAAM,uBAAyBF,EAAM,KAEjD,MADAC,EAAEE,KAAO,mBACHF,EAEPF,EAAoBK,KAAO,WAAa,MAAO,IAC/CL,EAAoBM,QAAUN,EAC9BA,EAAoBO,GAAK,MACzBC,EAAOC,QAAUT,G,oNCEF,SAASU,EAAT,GAAqF,IAArEC,EAAoE,EAApEA,QAASC,EAA2D,EAA3DA,aAAcC,EAA6C,EAA7CA,QAASC,EAAoC,EAApCA,YAAgBC,GAAoB,YAC3FC,GAAuB,UAAQD,GAyDrC,OAxDIF,IACFG,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,WACLQ,cAAe,CAAC,OAChBC,IAAKJ,EAAMZ,MAAQ,IAAIiB,QAAQ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SAACnD,GAAD,YAA2BoD,IAAjBH,EAAOjD,MAAqBqD,QAC5D,2BAAUjE,KAGjB,SAACN,EAAD,CACEC,QAASA,EACTP,KAAM6C,EAAWG,EAAKE,UACtB1C,aAAcA,EACR4D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQ/D,QAAAA,EAASC,YAAAA,SAMzE,gBAAKsD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA9CX,O,+JCrCI,SAASyC,IACtB,OACE,SAAC,IAAD,CACEzC,KAAK,2EACL9B,aAAc,CAAEwE,OAAAA,EAAAA,GAAQC,YAAAA,EAAAA,GAAaC,OAAAA,EAAAA,IACrC5B,YAAU,iBAAE,oGACO,gCADP,cACJ6B,EADI,yBAEHA,EAAGC,SAAWD,GAFX","sources":["../../node_modules/@babel/standalone|sync|nonrecursive","components/Markdown/Code.tsx","components/Markdown/Footer.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","routes/components/drawer/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 84934;\nmodule.exports = webpackEmptyContext;","import CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n code: string;\n version: string;\n codePen: boolean;\n codeSandbox?: boolean;\n dependencies: any;\n}\n\nexport default function Code({ version, dependencies, codePen, codeSandbox, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '<div id=\"container\" style=\"padding: 24px\"></div>',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `<div id=\"container\"></div>`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return <CodePreview {...props} dependencies={dependencies} style={{ marginBottom: 0 }} />;\n}\n","import React, { Fragment } from 'react';\nimport { Divider } from 'uiw';\n\nexport type FooterProps = {\n path?: string;\n};\n\nexport default function (props: FooterProps = {}) {\n const { path } = props;\n const url = /^http/.test(path || '') ? path : `https://github.com/uiwjs/uiw/blob/master/${path}`;\n return (\n <Fragment>\n 犯了错误还是想对文件做出贡献?\n {url && (\n <a href={url} target=\"_blank\" rel=\"noopener noreferrer\">\n 在Github上编辑本页!\n </a>\n )}\n <br />\n <a href=\"https://github.com/uiwjs/uiw/issues\" target=\"_blank\" rel=\"noopener noreferrer\">\n 反馈建议\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw/issues/new\">\n 提交bug\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw\">\n Github\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt\">\n kkt\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt-ssr\">\n @kkt/ssr\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://uiw.gitee.io\">\n 国内镜像\n </a>\n </Fragment>\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"docinfo\":\"index_docinfo__3Vx8S\",\"markdown\":\"index_markdown__hcQCp\"};","import { useEffect, useState } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from 'uiw/package.json';\nimport Code from './Code';\nimport Footer from './Footer';\nimport styles from './index.module.less';\n\nexport type CreatePageProps<T> = {\n dependencies?: T;\n path: string;\n renderPage?: () => Promise<string>;\n};\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default function CreatePage<T>(props: CreatePageProps<T>) {\n const { renderPage, dependencies, path } = props;\n const [mdStr, setMdStr] = useState('');\n\n const version = pkg.version || '2.0.0';\n useEffect(() => {\n if (renderPage) {\n renderPage()\n .then((str) => {\n setMdStr(str);\n })\n .catch(() => {});\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!mdStr) {\n return null;\n }\n\n return (\n <div>\n <MarkdownPreview\n source={mdStr}\n className={styles.markdown}\n components={{\n /**\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox } = props as any;\n if (inline) {\n return <code {...props} />;\n }\n const config = {\n noPreview,\n bordered,\n noScroll,\n bgWhite,\n noCode,\n codePen,\n codeSandbox,\n } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return <code {...props} />;\n }\n return (\n <Code\n version={version}\n code={getCodeStr(node.children)}\n dependencies={dependencies}\n {...{ noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox }}\n />\n );\n },\n }}\n />\n <div className={styles.docinfo}>\n <Footer path={path} />\n </div>\n </div>\n );\n}\n","import React from 'react';\nimport { Drawer, ButtonGroup, Button } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default function Page() {\n return (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-drawer/README.md\"\n dependencies={{ Drawer, ButtonGroup, Button }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-drawer/README.md');\n return md.default || md;\n }}\n />\n );\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codePen","codeSandbox","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","uiw","devDependencies","kkt","license","scripts","start","build","test","browserslist","style","marginBottom","path","url","Fragment","href","target","rel","type","getCodeStr","data","forEach","node","value","children","Array","isArray","CreatePage","renderPage","useState","mdStr","setMdStr","pkg","useEffect","then","str","catch","source","className","styles","components","inline","noPreview","bordered","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","Footer","Page","Drawer","ButtonGroup","Button","md","default"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2595],{84934:function(e){function n(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}n.keys=function(){return[]},n.resolve=n,n.id=84934,e.exports=n},86082:function(e,n,t){"use strict";t.d(n,{Z:function(){return v}});var r=t(50189),o=t(53782),i=t(11026),c=t(41473),s=t(89171),d=t(75752),a=t(64357),u=t(69286),l=["version","dependencies","codePen","codeSandbox"];function p(e){var n=e.version,t=e.dependencies,i=e.codePen,c=e.codeSandbox,s=(0,o.Z)(e,l),d=(0,r.Z)({},s);return i&&(d.codePenOption={title:"uiw".concat(n," - demo"),includeModule:["uiw"],js:(d.code||"").replace("_mount_",'document.getElementById("container")'),html:'<div id="container" style="padding: 24px"></div>',css_external:"https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.css"),js_external:"https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@".concat(n,"/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js")}),c&&(d.codeSandboxOption={files:{"sandbox.config.json":{content:'{\n "template": "node",\n "container": {\n "startScript": "start",\n "node": "14"\n }\n }'},"public/index.html":{content:'<div id="container"></div>'},"src/index.js":{content:(d.code||"").replace("_mount_",'document.getElementById("container")')},".kktrc.js":{content:'import lessModules from "@kkt/less-modules";\nexport default (conf, env, options) => {\nconf = lessModules(conf, env, options);\nreturn conf;\n};'},"package.json":{content:{name:"uiw-demo",description:"uiw v".concat(n," - demo"),dependencies:{react:"^17.0.2","react-dom":"^17.0.2",uiw:"latest"},devDependencies:{"@kkt/less-modules":"~7.1.1",kkt:"~7.1.5"},license:"MIT",scripts:{start:"kkt start",build:"kkt build",test:"kkt test --env=jsdom"},browserslist:[">0.2%","not dead","not ie <= 11","not op_mini all"]}}}}),(0,u.jsx)(a.Z,(0,r.Z)((0,r.Z)({},d),{},{dependencies:t,style:{marginBottom:0}}))}var h=t(53864);function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.path,t=/^http/.test(n||"")?n:"https://github.com/uiwjs/uiw/blob/master/".concat(n);return(0,u.jsxs)(c.Fragment,{children:["\u72af\u4e86\u9519\u8bef\u8fd8\u662f\u60f3\u5bf9\u6587\u4ef6\u505a\u51fa\u8d21\u732e\uff1f",t&&(0,u.jsx)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:"\u5728Github\u4e0a\u7f16\u8f91\u672c\u9875\uff01"}),(0,u.jsx)("br",{}),(0,u.jsx)("a",{href:"https://github.com/uiwjs/uiw/issues",target:"_blank",rel:"noopener noreferrer",children:"\u53cd\u9988\u5efa\u8bae"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw/issues/new",children:"\u63d0\u4ea4bug"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/uiwjs/uiw",children:"Github"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt",children:"kkt"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"https://github.com/kktjs/kkt-ssr",children:"@kkt/ssr"}),(0,u.jsx)(h.iz,{type:"vertical"}),(0,u.jsx)("a",{target:"_blank",rel:"noopener noreferrer",href:"http://uiw.gitee.io",children:"\u56fd\u5185\u955c\u50cf"})]})}var m="index_docinfo__3Vx8S",x="index_markdown__hcQCp",k=["inline","node"],b=function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return n.forEach((function(n){"text"===n.type?t+=n.value:n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t};function v(e){var n=e.renderPage,t=e.dependencies,a=e.path,l=(0,c.useState)(""),h=(0,i.Z)(l,2),v=h[0],j=h[1],g=d.i8||"2.0.0";return(0,c.useEffect)((function(){n&&n().then((function(e){j(e)})).catch((function(){}))}),[]),v?(0,u.jsxs)("div",{children:[(0,u.jsx)(s.Z,{source:v,className:x,components:{code:function(e){var n=e.inline,i=e.node,c=(0,o.Z)(e,k),s=c,d=s.noPreview,a=s.bordered,l=s.noScroll,h=s.bgWhite,f=s.noCode,m=s.codePen,x=s.codeSandbox;if(n)return(0,u.jsx)("code",(0,r.Z)({},c));var v={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:x};return 0===Object.keys(v).filter((function(e){return void 0!==v[e]})).length?(0,u.jsx)("code",(0,r.Z)({},c)):(0,u.jsx)(p,{version:g,code:b(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m,codeSandbox:x})}}}),(0,u.jsx)("div",{className:m,children:(0,u.jsx)(f,{path:a})})]}):null}},93520:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return u}});var r=t(27791),o=t(57135),i=t.n(o),c=t(41473),s=t(53864),d=t(86082),a=t(69286);function u(){return(0,a.jsx)(d.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-form/README.md",dependencies:{Form:s.l0,FormItem:s.xJ,Row:s.X2,Col:s.JX,Icon:s.JO,Divider:s.iz,Button:s.zx,Input:s.II,Checkbox:s.XZ,Switch:s.rs,Radio:s.Y8,RadioGroup:s.Ee,Select:s.Ph,Textarea:s.gx,Notify:s.gU,Menu:s.v2,Dropdown:s.Lt,useRef:c.useRef},renderPage:(0,r.Z)(i().mark((function e(){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.e(6566).then(t.bind(t,36566));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),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AA,EAAAA,GACAC,WAAAA,EAAAA,GACAC,OAAAA,EAAAA,GACAC,SAAAA,EAAAA,GACAC,OAAAA,EAAAA,GACAC,KAAAA,EAAAA,GACAC,SAAAA,EAAAA,GACAC,OAAAA,EAAAA,QAEF3C,YAAU,iBAAE,oGACO,gCADP,cACJ4C,EADI,yBAEHA,EAAGC,SAAWD,GAFX","sources":["../../node_modules/@babel/standalone|sync|nonrecursive","components/Markdown/Code.tsx","components/Markdown/Footer.tsx","webpack://website/./src/components/Markdown/index.module.less?6e49","components/Markdown/index.tsx","routes/components/form/index.tsx"],"sourcesContent":["function webpackEmptyContext(req) {\n\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\te.code = 'MODULE_NOT_FOUND';\n\tthrow e;\n}\nwebpackEmptyContext.keys = function() { return []; };\nwebpackEmptyContext.resolve = webpackEmptyContext;\nwebpackEmptyContext.id = 84934;\nmodule.exports = webpackEmptyContext;","import CodePreview, { CodePreviewProps } from '@uiw/react-code-preview';\n\nexport interface CodeProps extends CodePreviewProps {\n code: string;\n version: string;\n codePen: boolean;\n codeSandbox?: boolean;\n dependencies: any;\n}\n\nexport default function Code({ version, dependencies, codePen, codeSandbox, ...other }: CodeProps) {\n const props: CodePreviewProps = { ...other };\n if (codePen) {\n props.codePenOption = {\n title: `uiw${version} - demo`,\n includeModule: ['uiw'],\n js: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n html: '<div id=\"container\" style=\"padding: 24px\"></div>',\n css_external: `https://unpkg.com/uiw@${version}/dist/uiw.min.css`,\n js_external: `https://unpkg.com/react@16.x/umd/react.development.js;https://unpkg.com/react-dom@16.x/umd/react-dom.development.js;https://unpkg.com/classnames@2.2.6/index.js;https://unpkg.com/uiw@${version}/dist/uiw.min.js;https://unpkg.com/@uiw/codepen-require-polyfill@1.0.2/index.js`,\n };\n }\n if (codeSandbox) {\n props.codeSandboxOption = {\n files: {\n 'sandbox.config.json': {\n content: `{\n \"template\": \"node\",\n \"container\": {\n \"startScript\": \"start\",\n \"node\": \"14\"\n }\n }`,\n },\n 'public/index.html': {\n content: `<div id=\"container\"></div>`,\n },\n 'src/index.js': {\n content: (props.code || '').replace('_mount_', 'document.getElementById(\"container\")'),\n },\n '.kktrc.js': {\n content: `import lessModules from \"@kkt/less-modules\";\\nexport default (conf, env, options) => {\\nconf = lessModules(conf, env, options);\\nreturn conf;\\n};`,\n },\n 'package.json': {\n content: {\n name: 'uiw-demo',\n description: `uiw v${version} - demo`,\n dependencies: {\n react: '^17.0.2',\n 'react-dom': '^17.0.2',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '~7.1.1',\n kkt: '~7.1.5',\n },\n license: 'MIT',\n scripts: {\n start: 'kkt start',\n build: 'kkt build',\n test: 'kkt test --env=jsdom',\n },\n browserslist: ['>0.2%', 'not dead', 'not ie <= 11', 'not op_mini all'],\n },\n },\n },\n };\n }\n return <CodePreview {...props} dependencies={dependencies} style={{ marginBottom: 0 }} />;\n}\n","import React, { Fragment } from 'react';\nimport { Divider } from 'uiw';\n\nexport type FooterProps = {\n path?: string;\n};\n\nexport default function (props: FooterProps = {}) {\n const { path } = props;\n const url = /^http/.test(path || '') ? path : `https://github.com/uiwjs/uiw/blob/master/${path}`;\n return (\n <Fragment>\n 犯了错误还是想对文件做出贡献?\n {url && (\n <a href={url} target=\"_blank\" rel=\"noopener noreferrer\">\n 在Github上编辑本页!\n </a>\n )}\n <br />\n <a href=\"https://github.com/uiwjs/uiw/issues\" target=\"_blank\" rel=\"noopener noreferrer\">\n 反馈建议\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw/issues/new\">\n 提交bug\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/uiwjs/uiw\">\n Github\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt\">\n kkt\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/kktjs/kkt-ssr\">\n @kkt/ssr\n </a>\n <Divider type=\"vertical\" />\n <a target=\"_blank\" rel=\"noopener noreferrer\" href=\"http://uiw.gitee.io\">\n 国内镜像\n </a>\n </Fragment>\n );\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"docinfo\":\"index_docinfo__3Vx8S\",\"markdown\":\"index_markdown__hcQCp\"};","import { useEffect, useState } from 'react';\nimport MarkdownPreview from '@uiw/react-markdown-preview';\nimport pkg from 'uiw/package.json';\nimport Code from './Code';\nimport Footer from './Footer';\nimport styles from './index.module.less';\n\nexport type CreatePageProps<T> = {\n dependencies?: T;\n path: string;\n renderPage?: () => Promise<string>;\n};\n\nconst getCodeStr = (data: any[] = [], code: string = '') => {\n data.forEach((node) => {\n if (node.type === 'text') {\n code += node.value;\n } else if (node.children && Array.isArray(node.children)) {\n code += getCodeStr(node.children);\n }\n });\n return code;\n};\n\nexport default function CreatePage<T>(props: CreatePageProps<T>) {\n const { renderPage, dependencies, path } = props;\n const [mdStr, setMdStr] = useState('');\n\n const version = pkg.version || '2.0.0';\n useEffect(() => {\n if (renderPage) {\n renderPage()\n .then((str) => {\n setMdStr(str);\n })\n .catch(() => {});\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n if (!mdStr) {\n return null;\n }\n\n return (\n <div>\n <MarkdownPreview\n source={mdStr}\n className={styles.markdown}\n components={{\n /**\n * bordered 边框\n * bgWhite 设置代码预览背景白色,否则为格子背景。\n * noCode 不显示代码编辑器。\n * noPreview 不显示代码预览效果。\n * noScroll 预览区域不显示滚动条。\n * codePen 显示 Codepen 按钮,要特别注意 包导入的问题,实例中的 import 主要用于 Codepen 使用。\n */\n code: ({ inline, node, ...props }) => {\n const { noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox } = props as any;\n if (inline) {\n return <code {...props} />;\n }\n const config = {\n noPreview,\n bordered,\n noScroll,\n bgWhite,\n noCode,\n codePen,\n codeSandbox,\n } as any;\n if (Object.keys(config).filter((name) => config[name] !== undefined).length === 0) {\n return <code {...props} />;\n }\n return (\n <Code\n version={version}\n code={getCodeStr(node.children)}\n dependencies={dependencies}\n {...{ noPreview, bordered, noScroll, bgWhite, noCode, codePen, codeSandbox }}\n />\n );\n },\n }}\n />\n <div className={styles.docinfo}>\n <Footer path={path} />\n </div>\n </div>\n );\n}\n","import React, { useRef } from 'react';\nimport {\n Form,\n FormItem,\n Row,\n Col,\n Icon,\n Divider,\n Button,\n Input,\n Checkbox,\n Switch,\n Radio,\n RadioGroup,\n Select,\n Textarea,\n Notify,\n Menu,\n Dropdown,\n} from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default function Page() {\n return (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-form/README.md\"\n dependencies={{\n Form,\n FormItem,\n Row,\n Col,\n Icon,\n Divider,\n Button,\n Input,\n Checkbox,\n Switch,\n Radio,\n RadioGroup,\n Select,\n Textarea,\n Notify,\n Menu,\n Dropdown,\n useRef,\n }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-form/README.md');\n return md.default || md;\n }}\n />\n );\n}\n"],"names":["webpackEmptyContext","req","e","Error","code","keys","resolve","id","module","exports","Code","version","dependencies","codePen","codeSandbox","other","props","codePenOption","title","includeModule","js","replace","html","css_external","js_external","codeSandboxOption","files","content","name","description","react","uiw","devDependencies","kkt","license","scripts","start","build","test","browserslist","style","marginBottom","path","url","Fragment","href","target","rel","type","getCodeStr","data","forEach","node","value","children","Array","isArray","CreatePage","renderPage","useState","mdStr","setMdStr","pkg","useEffect","then","str","catch","source","className","styles","components","inline","noPreview","bordered","noScroll","bgWhite","noCode","config","Object","filter","undefined","length","Footer","Page","Form","FormItem","Row","Col","Icon","Divider","Button","Input","Checkbox","Switch","Radio","RadioGroup","Select","Textarea","Notify","Menu","Dropdown","useRef","md","default"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2679],{12679:function(n,e,o){o.r(e),e.default="PinCode \u5b89\u5168\u7801\n===\n\n[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-pin-code/file/README.md)\n[](https://www.npmjs.com/package/@uiw/react-pin-code)\n[](https://npmjs.com/@uiw/react-pin-code)\n\n\u9488\u5bf9\u8f93\u5165\u6570\u5b57\u5e8f\u5217\u8fdb\u884c\u4e86\u4f18\u5316\u3002\u6700\u5e38\u89c1\u7684\u5e94\u7528\u662f\u8f93\u5165\u4e00\u6b21\u6027\u5b89\u5168\u7801\u3002\u5b83\u7ecf\u8fc7\u4f18\u5316\uff0c\u53ef\u5feb\u901f\u8f93\u5165\u6570\u5b57\u3002\n\n```jsx\nimport { PinCode } from 'uiw';\n// or\nimport PinCode from '@uiw/react-pin-code';\n```\n\n### \u57fa\u7840\u7528\u6cd5\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { PinCode } from 'uiw';\n\nconst Demo = () => (\n <div>\n <PinCode autoFocus value={['', '', '', '', '']} onChange={(val) => console.log(val)} />\n </div>\n);\nReactDOM.render(<Demo />, _mount_);\n```\n\n### \u5728\u8868\u5355\u4e2d\u4f7f\u7528\n\n\u5728 [`<Form />`](#/components/form) \u8868\u5355\u4e2d\u5e94\u7528 [`<PinCode />`](#/components/pin-code) \u7ec4\u4ef6\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { Form, Row, Col, Icon, PinCode, Button, Notify } from 'uiw';\n\nconst Demo = () => (\n <div>\n <Form\n resetOnSubmit={false}\n onSubmitError={(error) => {\n if (error.filed) {\n return { ...error.filed };\n }\n return null;\n }}\n onSubmit={({initial, current}) => {\n const errorObj = {};\n if (current.pinCode.join('').length === 0) {\n errorObj.pinCode = '\u8bf7\u8f93\u5165\u5b89\u5168\u7801\uff01';\n }\n if (current.pinCode.join('').length < 5) {\n errorObj.pinCode = '\u5b89\u5168\u7801\u6ca1\u6709\u8f93\u5165\u5b8c\u6574\uff01';\n }\n if(Object.keys(errorObj).length > 0) {\n const err = new Error();\n err.filed = errorObj;\n Notify.error({ title: '\u63d0\u4ea4\u5931\u8d25\uff01', description: '\u8bf7\u786e\u8ba4\u63d0\u4ea4\u8868\u5355\u662f\u5426\u6b63\u786e\uff01' });\n throw err;\n }\n Notify.success({\n title: '\u63d0\u4ea4\u6210\u529f\uff01',\n description: `\u8868\u5355\u63d0\u4ea4\u6210\u529f\uff0c\u5b89\u5168\u7801\u4e3a\uff1a${current.pinCode.join('')}\uff01`,\n });\n }}\n fields={{\n pinCode: {\n initialValue: ['', '', '', '', ''],\n children: <PinCode />\n },\n }}\n >\n {({ fields, state, canSubmit }) => {\n console.log('state:',state.current.pinCode.join(''))\n return (\n <div>\n <Row>\n <Col fixed>{fields.pinCode}</Col>\n </Row>\n <Row>\n <Col fixed>\n <Button size=\"small\" disabled={!canSubmit()} type=\"primary\" htmlType=\"submit\">\u63d0\u4ea4</Button>\n <span style={{ paddingLeft: 16, color: '#a7a7a7', verticalAlign: 'middle' }}>\n {state.current.pinCode.join('')}\n </span>\n </Col>\n </Row>\n <Row>\n <Col>\n <pre style={{ padding: 10, marginTop: 10 }}>\n {JSON.stringify(state.current, null, 2)}\n </pre>\n </Col>\n </Row>\n </div>\n )\n }}\n </Form>\n </div>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n### \u66f4\u6539\u5360\u4f4d\u7b26\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { PinCode, Divider } from 'uiw';\n\nconst Demo = () => (\n <div>\n <PinCode placeholder=\"\u25a0\" value={['8', '7', '3', '', '']} onChange={(val) => console.log(val)} />\n <Divider />\n <PinCode placeholder=\"\u2605\" value={['6', '', '', '', '']} onChange={(val) => console.log(val)} />\n <Divider />\n <PinCode placeholder=\"\ud83e\udd23\" value={['', '', '', '', '']} onChange={(val) => console.log(val)} />\n </div>\n);\nReactDOM.render(<Demo />, _mount_);\n```\n\n### \u8f93\u5165\u6846\u88ab\u7981\u7528\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { PinCode, Divider } from 'uiw';\n\nconst Demo = () => (\n <div>\n <PinCode disabled value={['1', '9', '8', '7', '0']} />\n <Divider />\n <PinCode disabled value={['', '', '', '', '']} />\n <Divider />\n <PinCode disabled placeholder=\"\ud83e\udd23\" value={['', '', '', '', '']} />\n </div>\n);\nReactDOM.render(<Demo />, _mount_);\n```\n\n### \u5c3a\u5bf8\u5927\u5c0f\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { PinCode, Divider } from 'uiw';\n\nconst Demo = () => (\n <div>\n <PinCode size=\"large\" value={['1', '9', '8', '7', '0']} />\n <Divider />\n <PinCode value={['', '', '', '', '']} />\n <Divider />\n <PinCode size=\"small\" value={['', '', '', '', '']} />\n </div>\n);\nReactDOM.render(<Demo />, _mount_);\n```\n\n## PinCode\n\n| \u53c2\u6570 | \u8bf4\u660e | \u7c7b\u578b | \u9ed8\u8ba4\u503c |\n|--------- |-------- |--------- |-------- |\n| value | \u7ed1\u5b9a\u503c\uff0c\u6839\u636e\u6570\u7ec4\u957f\u5ea6\uff0c\u5c55\u793a\u5b89\u5168\u7801\u7684\u957f\u5ea6 | string[] | - |\n| disabled | \u7981\u7528\u8f93\u5165\u6846 | Boolean | `false` |\n| autoFocus | \u81ea\u52a8\u83b7\u5f97\u7126\u70b9\u3002 | Boolean | - |\n| placeholder | \u5360\u4f4d\u7b26 | string | `\u25cb` |\n| size | \u6307\u5b9a\u8f93\u5165\u6846\u7684\u5c3a\u5bf8\uff0c\u9664\u4e86\u9ed8\u8ba4\u7684\u5927\u5c0f\u5916\uff0c\u8fd8\u63d0\u4f9b\u4e86 `large`\u3001`small` \u548c `default` \u4e09\u79cd\u5c3a\u5bf8\u3002 | String | - |\n| onChange | `value` \u53d8\u5316\u65f6\u56de\u8c03\u51fd\u6570 | Function(value: string[]) | - |\n| onBlur | \u5931\u53bb\u7126\u70b9\u65f6\u8fd0\u884c | Function(event: React.FocusEvent<HTMLInputElement\\>) | - |\n| onFocus | \u83b7\u5f97\u7126\u70b9\u65f6\u8fd0\u884c | Function(event: React.FocusEvent<HTMLInputElement\\>) | - |"}}]);
|
|
2
|
+
//# sourceMappingURL=2679.0780e749.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/2679.0780e749.chunk.js","mappings":"gHAAA","sources":["../../packages/react-pin-code/README.md"],"sourcesContent":["export default \"PinCode 安全码\\n===\\n\\n[](https://uiwjs.github.io/npm-unpkg/#/pkg/@uiw/react-pin-code/file/README.md)\\n[](https://www.npmjs.com/package/@uiw/react-pin-code)\\n[](https://npmjs.com/@uiw/react-pin-code)\\n\\n针对输入数字序列进行了优化。最常见的应用是输入一次性安全码。它经过优化,可快速输入数字。\\n\\n```jsx\\nimport { PinCode } from 'uiw';\\n// or\\nimport PinCode from '@uiw/react-pin-code';\\n```\\n\\n### 基础用法\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { PinCode } from 'uiw';\\n\\nconst Demo = () => (\\n <div>\\n <PinCode autoFocus value={['', '', '', '', '']} onChange={(val) => console.log(val)} />\\n </div>\\n);\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n### 在表单中使用\\n\\n在 [`<Form />`](#/components/form) 表单中应用 [`<PinCode />`](#/components/pin-code) 组件\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Form, Row, Col, Icon, PinCode, Button, Notify } from 'uiw';\\n\\nconst Demo = () => (\\n <div>\\n <Form\\n resetOnSubmit={false}\\n onSubmitError={(error) => {\\n if (error.filed) {\\n return { ...error.filed };\\n }\\n return null;\\n }}\\n onSubmit={({initial, current}) => {\\n const errorObj = {};\\n if (current.pinCode.join('').length === 0) {\\n errorObj.pinCode = '请输入安全码!';\\n }\\n if (current.pinCode.join('').length < 5) {\\n errorObj.pinCode = '安全码没有输入完整!';\\n }\\n if(Object.keys(errorObj).length > 0) {\\n const err = new Error();\\n err.filed = errorObj;\\n Notify.error({ title: '提交失败!', description: '请确认提交表单是否正确!' });\\n throw err;\\n }\\n Notify.success({\\n title: '提交成功!',\\n description: `表单提交成功,安全码为:${current.pinCode.join('')}!`,\\n });\\n }}\\n fields={{\\n pinCode: {\\n initialValue: ['', '', '', '', ''],\\n children: <PinCode />\\n },\\n }}\\n >\\n {({ fields, state, canSubmit }) => {\\n console.log('state:',state.current.pinCode.join(''))\\n return (\\n <div>\\n <Row>\\n <Col fixed>{fields.pinCode}</Col>\\n </Row>\\n <Row>\\n <Col fixed>\\n <Button size=\\\"small\\\" disabled={!canSubmit()} type=\\\"primary\\\" htmlType=\\\"submit\\\">提交</Button>\\n <span style={{ paddingLeft: 16, color: '#a7a7a7', verticalAlign: 'middle' }}>\\n {state.current.pinCode.join('')}\\n </span>\\n </Col>\\n </Row>\\n <Row>\\n <Col>\\n <pre style={{ padding: 10, marginTop: 10 }}>\\n {JSON.stringify(state.current, null, 2)}\\n </pre>\\n </Col>\\n </Row>\\n </div>\\n )\\n }}\\n </Form>\\n </div>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n### 更改占位符\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { PinCode, Divider } from 'uiw';\\n\\nconst Demo = () => (\\n <div>\\n <PinCode placeholder=\\\"■\\\" value={['8', '7', '3', '', '']} onChange={(val) => console.log(val)} />\\n <Divider />\\n <PinCode placeholder=\\\"★\\\" value={['6', '', '', '', '']} onChange={(val) => console.log(val)} />\\n <Divider />\\n <PinCode placeholder=\\\"🤣\\\" value={['', '', '', '', '']} onChange={(val) => console.log(val)} />\\n </div>\\n);\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n### 输入框被禁用\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { PinCode, Divider } from 'uiw';\\n\\nconst Demo = () => (\\n <div>\\n <PinCode disabled value={['1', '9', '8', '7', '0']} />\\n <Divider />\\n <PinCode disabled value={['', '', '', '', '']} />\\n <Divider />\\n <PinCode disabled placeholder=\\\"🤣\\\" value={['', '', '', '', '']} />\\n </div>\\n);\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n### 尺寸大小\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { PinCode, Divider } from 'uiw';\\n\\nconst Demo = () => (\\n <div>\\n <PinCode size=\\\"large\\\" value={['1', '9', '8', '7', '0']} />\\n <Divider />\\n <PinCode value={['', '', '', '', '']} />\\n <Divider />\\n <PinCode size=\\\"small\\\" value={['', '', '', '', '']} />\\n </div>\\n);\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n## PinCode\\n\\n| 参数 | 说明 | 类型 | 默认值 |\\n|--------- |-------- |--------- |-------- |\\n| value | 绑定值,根据数组长度,展示安全码的长度 | string[] | - |\\n| disabled | 禁用输入框 | Boolean | `false` |\\n| autoFocus | 自动获得焦点。 | Boolean | - |\\n| placeholder | 占位符 | string | `○` |\\n| size | 指定输入框的尺寸,除了默认的大小外,还提供了 `large`、`small` 和 `default` 三种尺寸。 | String | - |\\n| onChange | `value` 变化时回调函数 | Function(value: string[]) | - |\\n| onBlur | 失去焦点时运行 | Function(event: React.FocusEvent<HTMLInputElement\\\\>) | - |\\n| onFocus | 获得焦点时运行 | Function(event: React.FocusEvent<HTMLInputElement\\\\>) | - |\";"],"names":[],"sourceRoot":""}
|