@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
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3811],{53811:function(t,n,o){o.r(n),n.default='Tooltip \u6587\u5b57\u63d0\u793a\n===\n\n\u7b80\u5355\u7684\u6587\u5b57\u63d0\u793a\u6c14\u6ce1\u6846\u3002\n\n```jsx\nimport { Tooltip } from \'uiw\';\n// or\nimport Tooltip from \'@uiw/react-tooltip\';\n```\n\n### \u57fa\u7840\u7528\u6cd5\n\n\u6700\u7b80\u5355\u7684\u7528\u6cd5\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Tooltip, Button } from \'uiw\';\n\nconst Demo = () => (\n <div>\n <Tooltip placement="right" content="\u53f3\u8fb9\u6587\u5b57\u63d0\u793a">\n <Button>\u53f3\u8fb9\u6587\u5b57\u63d0\u793a(right)</Button>\n </Tooltip>\n <Tooltip placement="top" content="\u4e0a\u8fb9\u6587\u5b57\u63d0\u793a">\n <Button>\u4e0a\u8fb9\u6587\u5b57\u63d0\u793a(top)</Button>\n </Tooltip>\n <Tooltip placement="left" content="\u5de6\u8fb9\u6587\u5b57\u63d0\u793a">\n <Button>\u5de6\u8fb9\u6587\u5b57\u63d0\u793a(left)</Button>\n </Tooltip>\n <Tooltip placement="bottom" content="\u4e0b\u8fb9\u6587\u5b57\u63d0\u793a">\n <Button>\u4e0b\u8fb9\u6587\u5b57\u63d0\u793a(bottom)</Button>\n </Tooltip>\n </div>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n### \u4f4d\u7f6e\n\n\u4f4d\u7f6e\u6709 `12` \u4e2a\u65b9\u5411\uff0c\u6839\u636e `placement` \u53c2\u6570\u6765\u8bbe\u7f6e\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Tooltip, Button, Divider } from \'uiw\';\n\nconst btnStl = {position: \'relative\', width: 70 }\nconst Demo = () => (\n <div>\n <Tooltip placement="left" content={<strong>Hello uiw!</strong>}>\n <Button type="primary">\u5de6\u8fb9\u6587\u5b57\u63d0\u793a(left)</Button>\n </Tooltip>\n\n <Tooltip placement="top" content={<strong>Hello uiw!</strong>}>\n <Button type="primary">\u4e0a\u8fb9\u6587\u5b57\u63d0\u793a(top)</Button>\n </Tooltip>\n\n <Tooltip placement="bottom" content={<strong>Hello uiw!</strong>}>\n <Button type="primary">\u4e0b\u8fb9\u6587\u5b57\u63d0\u793a(bottom)</Button>\n </Tooltip>\n\n <Tooltip placement="right" content={<strong>Hello uiw!</strong>}>\n <Button type="primary">\u53f3\u8fb9\u6587\u5b57\u63d0\u793a(right)</Button>\n </Tooltip>\n\n <Divider />\n <div style={{ position: \'relative\' }}>\n <Tooltip placement="topLeft" content={<strong>Hello uiw!</strong>}>\n <Button style={{ ...btnStl, left: 70 }}>TL</Button>\n </Tooltip>\n <Tooltip placement="top" content={<strong>Hello uiw!</strong>}>\n <Button style={{ ...btnStl, left: 70}}>Top</Button>\n </Tooltip>\n <Tooltip placement="topRight" content={<strong>Hello uiw!</strong>}>\n <Button style={{ ...btnStl, left: 70 }}>TR</Button>\n </Tooltip>\n </div>\n <div style={{ position: \'relative\', paddingTop: 10 }}>\n <Tooltip placement="leftTop" content={<span><strong>Hello uiw!</strong> \u4f4d\u7f6e\u6709 12 \u4e2a\u65b9\u5411\uff0c\u6839\u636e placement \u53c2\u6570\u6765\u8bbe\u7f6e\u3002</span>}>\n <Button style={{ ...btnStl }}>LT</Button>\n </Tooltip>\n <Tooltip placement="rightTop" content={<span><strong>Hello uiw!</strong> \u4f4d\u7f6e\u6709 12 \u4e2a\u65b9\u5411\uff0c\u6839\u636e placement \u53c2\u6570\u6765\u8bbe\u7f6e\u3002</span>}>\n <Button style={{ ...btnStl, left: 216 }}>RT</Button>\n </Tooltip>\n </div>\n <div style={{ position: \'relative\', paddingTop: 10 }}>\n <Tooltip placement="left" content={<span><strong>Hello uiw!</strong> \u4f4d\u7f6e\u6709 12 \u4e2a\u65b9\u5411\uff0c\u6839\u636e placement \u53c2\u6570\u6765\u8bbe\u7f6e\u3002</span>}>\n <Button style={{ ...btnStl }}>Left</Button>\n </Tooltip>\n <Tooltip placement="right" content={<span><strong>Hello uiw!</strong> \u4f4d\u7f6e\u6709 12 \u4e2a\u65b9\u5411\uff0c\u6839\u636e placement \u53c2\u6570\u6765\u8bbe\u7f6e\u3002</span>}>\n <Button style={{ ...btnStl, left: 216 }}>Right</Button>\n </Tooltip>\n </div>\n <div style={{ position: \'relative\', paddingTop: 10 }}>\n <Tooltip placement="leftBottom" content={<span><strong>Hello uiw!</strong> \u4f4d\u7f6e\u6709 12 \u4e2a\u65b9\u5411\uff0c\u6839\u636e placement \u53c2\u6570\u6765\u8bbe\u7f6e\u3002</span>}>\n <Button style={{ ...btnStl }}>LB</Button>\n </Tooltip>\n <Tooltip placement="rightBottom" content={<span><strong>Hello uiw!</strong> \u4f4d\u7f6e\u6709 12 \u4e2a\u65b9\u5411\uff0c\u6839\u636e placement \u53c2\u6570\u6765\u8bbe\u7f6e\u3002</span>}>\n <Button style={{ ...btnStl, left: 216 }}>RB</Button>\n </Tooltip>\n </div>\n <div style={{ position: \'relative\', paddingTop: 10 }}>\n <Tooltip placement="bottomLeft" content={<span><strong>Hello uiw!</strong> \u4f4d\u7f6e\u6709 12 \u4e2a\u65b9\u5411\uff0c\u6839\u636e placement \u53c2\u6570\u6765\u8bbe\u7f6e\u3002</span>}>\n <Button style={{ ...btnStl, left: 70 }}>BL</Button>\n </Tooltip>\n <Tooltip placement="bottom" content={<span><strong>Hello uiw!</strong> \u4f4d\u7f6e\u6709 12 \u4e2a\u65b9\u5411\uff0c\u6839\u636e placement \u53c2\u6570\u6765\u8bbe\u7f6e\u3002</span>}>\n <Button style={{ ...btnStl, left: 70 }}>Bottom</Button>\n </Tooltip>\n <Tooltip placement="bottomRight" content={<span><strong>Hello uiw!</strong> \u4f4d\u7f6e\u6709 12 \u4e2a\u65b9\u5411\uff0c\u6839\u636e placement \u53c2\u6570\u6765\u8bbe\u7f6e\u3002</span>}>\n <Button style={{ ...btnStl, left: 70 }}>BR</Button>\n </Tooltip>\n </div>\n\n </div>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n### \u4e8b\u4ef6\n\n\u6587\u5b57\u63d0\u793a\u7ec4\u4ef6 `<Tooltip />`\uff0c\u901a\u8fc7\u8bbe\u7f6e\u5c5e\u6027 `trigger` \u53ef\u4ee5\u6587\u5b57\u63d0\u793a\u64cd\u4f5c\u65b9\u5f0f\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Tooltip, Button } from \'uiw\';\n\nconst Demo = () => (\n <div>\n\n <Tooltip trigger="hover" placement="top" content="Hello uiw!">\n <Button type="primary">\u60ac\u6d6e\u5f39\u51fa\u6587\u5b57\u63d0\u793a(top)</Button>\n </Tooltip>\n <Tooltip trigger="click" placement="top" content="Hello uiw!">\n <Button type="success">\u70b9\u51fb\u5f39\u51fa\u63d0\u793a(top)</Button>\n </Tooltip>\n\n </div>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n### \u6587\u5b57\u63d0\u793a\u6846\u4e0d\u663e\u793a\u7bad\u5934\n\n\u901a\u8fc7\u8bbe\u7f6e\u5c5e\u6027 `visibleArrow` \u53ef\u4ee5\u6587\u5b57\u63d0\u793a\u6846\u4e0d\u663e\u793a\u7bad\u5934\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from \'react-dom\';\nimport { Tooltip, Button } from \'uiw\';\n\nconst Demo = () => (\n <div>\n\n <Tooltip visibleArrow={false} trigger="hover" placement="top" content="Hello uiw!">\n <Button type="primary">\u60ac\u6d6e\u5f39\u51fa\u6587\u5b57\u63d0\u793a(top)</Button>\n </Tooltip>\n <Tooltip visibleArrow={false} trigger="click" placement="right" content="Hello uiw!">\n <Button type="success">\u70b9\u51fb\u5f39\u51fa\u63d0\u793a(right)</Button>\n </Tooltip>\n\n </div>\n)\nReactDOM.render(<Demo />, _mount_);\n```\n\n### \u53d7\u63a7\u7ec4\u4ef6\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport React from \'react\';\nimport ReactDOM from \'react-dom\';\nimport { Tooltip, Switch, Divider } from \'uiw\';\n\nclass Demo extends React.Component {\n constructor() {\n super()\n this.state = {\n isOpen: false,\n }\n }\n onChange(e) {\n this.setState({ isOpen: e.target.checked });\n }\n onVisibleChange(isOpen) {\n this.setState({ isOpen });\n }\n render() {\n return (\n <div>\n <Tooltip\n isOpen={this.state.isOpen}\n onVisibleChange={this.onVisibleChange.bind(this)}\n placement="top"\n content="Hello uiw!"\n >\n <span>\u9f20\u6807\u79fb\u52a8\u5230\u6b64\u5904\uff0c\u663e\u793a\u548c\u6d88\u5931\u89e6\u53d1\u4e8b\u4ef6\uff0c\u4e5f\u53ef\u4ee5\u901a\u8fc7 Switch \u7ec4\u4ef6\u6765\u63a7\u5236</span>\n </Tooltip>\n <Divider />\n <Switch checked={this.state.isOpen} onChange={this.onChange.bind(this)} />\n </div>\n )\n }\n}\nReactDOM.render(<Demo />, _mount_);\n```\n\n\n## Props\n\n| \u53c2\u6570 | \u8bf4\u660e | \u7c7b\u578b | \u9ed8\u8ba4\u503c |\n|--------- |-------- |--------- |-------- |\n| content | \u663e\u793a\u7684\u5185\u5bb9 | String,React.ReactNode | - |\n| placement | \u6c14\u6ce1\u6846\u4f4d\u7f6e\uff0c\u53ef\u73b0\u5b9e\u7bad\u5934\u5728\u4e0d\u901a\u7684\u65b9\u4f4d | Enum{`top`, `topLeft`, `topRight`,<br /> `left`, `leftTop`, `leftBottom`,<br /> `right`, `rightTop`, `rightBottom`,<br /> `bottom`, `bottomLeft`, `bottomRight`} | `top` |\n| visibleArrow | \u662f\u5426\u663e\u793a Tooltip \u7bad\u5934 | Boolean | `true` |\n| delay | \u5ef6\u8fdf\u8fdb\u5165\u548c\u6d88\u5931\uff0c`{ show: 2000, hide: 4000 }` \u6216\u8005\u76f4\u63a5\u8bbe\u7f6e `2000`\uff0c\u53ea\u5bf9 `trigger=hover` \u6709\u6548\uff0c\u7ee7\u627f `<OverlayTrigger />` \u7ec4\u4ef6\u5c5e\u6027 | Object/Number | - |\n| trigger | \u60ac\u505c/\u70b9\u51fb\u5f39\u51fa\u7a97\u53e3\uff0c\u7ee7\u627f `<OverlayTrigger />` \u7ec4\u4ef6\u5c5e\u6027 | Enum{`hover`, `click`} | `hover` |\n| disabled | \u662f\u5426\u7981\u7528\u5f39\u51fa\u76ee\u6807 | Boolean | `false` |\n| isOpen | \u9ed8\u8ba4\u662f\u5426\u663e\u793a\u5f39\u7a97\uff0c\u7ee7\u627f `<OverlayTrigger />` \u7ec4\u4ef6\u5c5e\u6027 | Boolean | `false` |\n| autoAdjustOverflow | \u5f39\u51fa\u5c42\u88ab\u906e\u6321\u65f6\u81ea\u52a8\u8c03\u6574\u4f4d\u7f6e\uff0c\u7ee7\u627f `<OverlayTrigger />` \u7ec4\u4ef6\u5c5e\u6027 | Boolean | `false` |\n| onVisibleChange | \u663e\u793a\u9690\u85cf\u7684\u56de\u8c03\uff0c\u7ee7\u627f `<OverlayTrigger />` \u7ec4\u4ef6\u5c5e\u6027 | Function(isVisible:bool) | - |\n\n\u66f4\u591a\u5c5e\u6027\u8bf7\u53c2\u8003 [OverlayTrigger](#/components/overlay-trigger)\u3002\n'}}]);
|
|
2
|
-
//# sourceMappingURL=3811.84b766f9.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3811.84b766f9.chunk.js","mappings":"gHAAA","sources":["../../packages/react-tooltip/README.md"],"sourcesContent":["export default \"Tooltip 文字提示\\n===\\n\\n简单的文字提示气泡框。\\n\\n```jsx\\nimport { Tooltip } from 'uiw';\\n// or\\nimport Tooltip from '@uiw/react-tooltip';\\n```\\n\\n### 基础用法\\n\\n最简单的用法。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Tooltip, Button } from 'uiw';\\n\\nconst Demo = () => (\\n <div>\\n <Tooltip placement=\\\"right\\\" content=\\\"右边文字提示\\\">\\n <Button>右边文字提示(right)</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"top\\\" content=\\\"上边文字提示\\\">\\n <Button>上边文字提示(top)</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"left\\\" content=\\\"左边文字提示\\\">\\n <Button>左边文字提示(left)</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"bottom\\\" content=\\\"下边文字提示\\\">\\n <Button>下边文字提示(bottom)</Button>\\n </Tooltip>\\n </div>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n### 位置\\n\\n位置有 `12` 个方向,根据 `placement` 参数来设置。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Tooltip, Button, Divider } from 'uiw';\\n\\nconst btnStl = {position: 'relative', width: 70 }\\nconst Demo = () => (\\n <div>\\n <Tooltip placement=\\\"left\\\" content={<strong>Hello uiw!</strong>}>\\n <Button type=\\\"primary\\\">左边文字提示(left)</Button>\\n </Tooltip>\\n\\n <Tooltip placement=\\\"top\\\" content={<strong>Hello uiw!</strong>}>\\n <Button type=\\\"primary\\\">上边文字提示(top)</Button>\\n </Tooltip>\\n\\n <Tooltip placement=\\\"bottom\\\" content={<strong>Hello uiw!</strong>}>\\n <Button type=\\\"primary\\\">下边文字提示(bottom)</Button>\\n </Tooltip>\\n\\n <Tooltip placement=\\\"right\\\" content={<strong>Hello uiw!</strong>}>\\n <Button type=\\\"primary\\\">右边文字提示(right)</Button>\\n </Tooltip>\\n\\n <Divider />\\n <div style={{ position: 'relative' }}>\\n <Tooltip placement=\\\"topLeft\\\" content={<strong>Hello uiw!</strong>}>\\n <Button style={{ ...btnStl, left: 70 }}>TL</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"top\\\" content={<strong>Hello uiw!</strong>}>\\n <Button style={{ ...btnStl, left: 70}}>Top</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"topRight\\\" content={<strong>Hello uiw!</strong>}>\\n <Button style={{ ...btnStl, left: 70 }}>TR</Button>\\n </Tooltip>\\n </div>\\n <div style={{ position: 'relative', paddingTop: 10 }}>\\n <Tooltip placement=\\\"leftTop\\\" content={<span><strong>Hello uiw!</strong> 位置有 12 个方向,根据 placement 参数来设置。</span>}>\\n <Button style={{ ...btnStl }}>LT</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"rightTop\\\" content={<span><strong>Hello uiw!</strong> 位置有 12 个方向,根据 placement 参数来设置。</span>}>\\n <Button style={{ ...btnStl, left: 216 }}>RT</Button>\\n </Tooltip>\\n </div>\\n <div style={{ position: 'relative', paddingTop: 10 }}>\\n <Tooltip placement=\\\"left\\\" content={<span><strong>Hello uiw!</strong> 位置有 12 个方向,根据 placement 参数来设置。</span>}>\\n <Button style={{ ...btnStl }}>Left</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"right\\\" content={<span><strong>Hello uiw!</strong> 位置有 12 个方向,根据 placement 参数来设置。</span>}>\\n <Button style={{ ...btnStl, left: 216 }}>Right</Button>\\n </Tooltip>\\n </div>\\n <div style={{ position: 'relative', paddingTop: 10 }}>\\n <Tooltip placement=\\\"leftBottom\\\" content={<span><strong>Hello uiw!</strong> 位置有 12 个方向,根据 placement 参数来设置。</span>}>\\n <Button style={{ ...btnStl }}>LB</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"rightBottom\\\" content={<span><strong>Hello uiw!</strong> 位置有 12 个方向,根据 placement 参数来设置。</span>}>\\n <Button style={{ ...btnStl, left: 216 }}>RB</Button>\\n </Tooltip>\\n </div>\\n <div style={{ position: 'relative', paddingTop: 10 }}>\\n <Tooltip placement=\\\"bottomLeft\\\" content={<span><strong>Hello uiw!</strong> 位置有 12 个方向,根据 placement 参数来设置。</span>}>\\n <Button style={{ ...btnStl, left: 70 }}>BL</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"bottom\\\" content={<span><strong>Hello uiw!</strong> 位置有 12 个方向,根据 placement 参数来设置。</span>}>\\n <Button style={{ ...btnStl, left: 70 }}>Bottom</Button>\\n </Tooltip>\\n <Tooltip placement=\\\"bottomRight\\\" content={<span><strong>Hello uiw!</strong> 位置有 12 个方向,根据 placement 参数来设置。</span>}>\\n <Button style={{ ...btnStl, left: 70 }}>BR</Button>\\n </Tooltip>\\n </div>\\n\\n </div>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n### 事件\\n\\n文字提示组件 `<Tooltip />`,通过设置属性 `trigger` 可以文字提示操作方式。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Tooltip, Button } from 'uiw';\\n\\nconst Demo = () => (\\n <div>\\n\\n <Tooltip trigger=\\\"hover\\\" placement=\\\"top\\\" content=\\\"Hello uiw!\\\">\\n <Button type=\\\"primary\\\">悬浮弹出文字提示(top)</Button>\\n </Tooltip>\\n <Tooltip trigger=\\\"click\\\" placement=\\\"top\\\" content=\\\"Hello uiw!\\\">\\n <Button type=\\\"success\\\">点击弹出提示(top)</Button>\\n </Tooltip>\\n\\n </div>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n### 文字提示框不显示箭头\\n\\n通过设置属性 `visibleArrow` 可以文字提示框不显示箭头。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Tooltip, Button } from 'uiw';\\n\\nconst Demo = () => (\\n <div>\\n\\n <Tooltip visibleArrow={false} trigger=\\\"hover\\\" placement=\\\"top\\\" content=\\\"Hello uiw!\\\">\\n <Button type=\\\"primary\\\">悬浮弹出文字提示(top)</Button>\\n </Tooltip>\\n <Tooltip visibleArrow={false} trigger=\\\"click\\\" placement=\\\"right\\\" content=\\\"Hello uiw!\\\">\\n <Button type=\\\"success\\\">点击弹出提示(right)</Button>\\n </Tooltip>\\n\\n </div>\\n)\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n### 受控组件\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport React from 'react';\\nimport ReactDOM from 'react-dom';\\nimport { Tooltip, Switch, Divider } from 'uiw';\\n\\nclass Demo extends React.Component {\\n constructor() {\\n super()\\n this.state = {\\n isOpen: false,\\n }\\n }\\n onChange(e) {\\n this.setState({ isOpen: e.target.checked });\\n }\\n onVisibleChange(isOpen) {\\n this.setState({ isOpen });\\n }\\n render() {\\n return (\\n <div>\\n <Tooltip\\n isOpen={this.state.isOpen}\\n onVisibleChange={this.onVisibleChange.bind(this)}\\n placement=\\\"top\\\"\\n content=\\\"Hello uiw!\\\"\\n >\\n <span>鼠标移动到此处,显示和消失触发事件,也可以通过 Switch 组件来控制</span>\\n </Tooltip>\\n <Divider />\\n <Switch checked={this.state.isOpen} onChange={this.onChange.bind(this)} />\\n </div>\\n )\\n }\\n}\\nReactDOM.render(<Demo />, _mount_);\\n```\\n\\n\\n## Props\\n\\n| 参数 | 说明 | 类型 | 默认值 |\\n|--------- |-------- |--------- |-------- |\\n| content | 显示的内容 | String,React.ReactNode | - |\\n| placement | 气泡框位置,可现实箭头在不通的方位 | Enum{`top`, `topLeft`, `topRight`,<br /> `left`, `leftTop`, `leftBottom`,<br /> `right`, `rightTop`, `rightBottom`,<br /> `bottom`, `bottomLeft`, `bottomRight`} | `top` |\\n| visibleArrow | 是否显示 Tooltip 箭头 | Boolean | `true` |\\n| delay | 延迟进入和消失,`{ show: 2000, hide: 4000 }` 或者直接设置 `2000`,只对 `trigger=hover` 有效,继承 `<OverlayTrigger />` 组件属性 | Object/Number | - |\\n| trigger | 悬停/点击弹出窗口,继承 `<OverlayTrigger />` 组件属性 | Enum{`hover`, `click`} | `hover` |\\n| disabled | 是否禁用弹出目标 | Boolean | `false` |\\n| isOpen | 默认是否显示弹窗,继承 `<OverlayTrigger />` 组件属性 | Boolean | `false` |\\n| autoAdjustOverflow | 弹出层被遮挡时自动调整位置,继承 `<OverlayTrigger />` 组件属性 | Boolean | `false` |\\n| onVisibleChange | 显示隐藏的回调,继承 `<OverlayTrigger />` 组件属性 | Function(isVisible:bool) | - |\\n\\n更多属性请参考 [OverlayTrigger](#/components/overlay-trigger)。\\n\";"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3812],{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(82136),d=t(75752),a=t(64508),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 webpack from "webpack";\nimport 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:"latest","react-dom":"latest",uiw:"latest"},devDependencies:{"@kkt/less-modules":"6.9.0",kkt:"6.9.0",typescript:"4.1.3"},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(29812);function m(){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 f="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,m=c.noCode,f=c.codePen;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var k={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:m,codePen:f};return 0===Object.keys(k).filter((function(e){return void 0!==k[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:m,codePen:f})}}}),(0,u.jsx)("div",{className:f,children:(0,u.jsx)(m,{path:a})})]}):null}},88915:function(e,n,t){"use strict";t.r(n);var r=t(27791),o=t(57135),i=t.n(o),s=(t(41473),t(29812)),c=t(86082),d=t(69286);n.default=function(){return(0,d.jsx)(c.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-tooltip/README.md",dependencies:{Tooltip:s.u,OverlayTrigger:s.Ox,Switch:s.rs,Button:s.zx,Input:s.II,Divider:s.iz},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(3811).then(t.bind(t,53811));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
-
//# sourceMappingURL=3812.e88939dd.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3812.e88939dd.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,GA0DrC,OAzDIF,IACFG,E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QAAAA,EACAC,OAAAA,EACAhE,QAAAA,GAEF,OAAgF,IAA5EkE,OAAO1E,KAAKyE,GAAQE,QAAO,SAACpD,GAAD,YAA2BqD,IAAjBH,EAAOlD,MAAqBsD,QAC5D,2BAAUlE,KAGjB,SAACN,EAAD,CACEC,QAASA,EACTP,KAAM8C,EAAWG,EAAKE,UACtB3C,aAAcA,EACR6D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQhE,QAAAA,SAMhE,gBAAKwD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA7CX,O,yHCrCX,qBAAe,OACb,SAAC,IAAD,CACEA,KAAK,4EACL/B,aAAc,CAAEwE,QAAAA,EAAAA,EAASC,eAAAA,EAAAA,GAAgBC,OAAAA,EAAAA,GAAQC,OAAAA,EAAAA,GAAQC,MAAAA,EAAAA,GAAOC,QAAAA,EAAAA,IAChE9B,YAAU,iBAAE,oGACO,gCADP,cACJ+B,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/tooltip/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 webpack from \"webpack\";\\nimport 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: 'latest',\n 'react-dom': 'latest',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '6.9.0',\n kkt: '6.9.0',\n typescript: '4.1.3',\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 } = 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 } 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 }}\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 { Tooltip, OverlayTrigger, Switch, Button, Input, Divider } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default () => (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-tooltip/README.md\"\n dependencies={{ Tooltip, OverlayTrigger, Switch, Button, Input, Divider }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-tooltip/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","typescript","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","Tooltip","OverlayTrigger","Switch","Button","Input","Divider","md","default"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3917],{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(82136),d=t(75752),a=t(64508),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 webpack from "webpack";\nimport 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:"latest","react-dom":"latest",uiw:"latest"},devDependencies:{"@kkt/less-modules":"6.9.0",kkt:"6.9.0",typescript:"4.1.3"},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(29812);function m(){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 f="index_docinfo__3Vx8S",k="index_markdown__hcQCp",b=["inline","node"],x=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,b),c=s,d=c.noPreview,a=c.bordered,l=c.noScroll,h=c.bgWhite,m=c.noCode,f=c.codePen;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var k={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:m,codePen:f};return 0===Object.keys(k).filter((function(e){return void 0!==k[e]})).length?(0,u.jsx)("code",(0,r.Z)({},s)):(0,u.jsx)(p,{version:g,code:x(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:m,codePen:f})}}}),(0,u.jsx)("div",{className:f,children:(0,u.jsx)(m,{path:a})})]}):null}},81423:function(e,n,t){"use strict";t.r(n),t.d(n,{default:function(){return d}});var r=t(27791),o=t(57135),i=t.n(o),s=(t(41473),t(86082)),c=t(69286);function d(){return(0,c.jsx)(s.Z,{path:"https://github.com/uiwjs/uiw/tree/master/website/src/routes/components/colors/README.md",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(1127).then(t.bind(t,51127));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
-
//# sourceMappingURL=3917.9fa854c7.chunk.js.map
|
|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,IACGM,MAAK,SAACC,GACLJ,EAASI,MAEVC,OAAM,iBAGV,IAEEN,GAKH,4BACE,SAAC,IAAD,CACEO,OAAQP,EACRQ,UAAWC,EACXC,WAAY,CASVnE,KAAM,YAAiC,IAA9BoE,EAA6B,EAA7BA,OAAQnB,EAAqB,EAArBA,KAASrC,GAAY,YACpC,EAAoEA,EAA5DyD,EAAR,EAAQA,UAAWC,EAAnB,EAAmBA,SAAUC,EAA7B,EAA6BA,SAAUC,EAAvC,EAAuCA,QAASC,EAAhD,EAAgDA,OAAQhE,EAAxD,EAAwDA,QACxD,GAAI2D,EACF,OAAO,2BAAUxD,IAEnB,IAAM8D,EAAS,CACbL,UAAAA,EACAC,SAAAA,EACAC,SAAAA,EACAC,QAAAA,EACAC,OAAAA,EACAhE,QAAAA,GAEF,OAAgF,IAA5EkE,OAAO1E,KAAKyE,GAAQE,QAAO,SAACpD,GAAD,YAA2BqD,IAAjBH,EAAOlD,MAAqBsD,QAC5D,2BAAUlE,KAGjB,SAACN,EAAD,CACEC,QAASA,EACTP,KAAM8C,EAAWG,EAAKE,UACtB3C,aAAcA,EACR6D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQhE,QAAAA,SAMhE,gBAAKwD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA7CX,O,oJCtCI,SAASyC,IACtB,OACE,SAAC,IAAD,CACEzC,KAAK,0FACLgB,YAAU,iBAAE,oGACO,gCADP,cACJ0B,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/colors/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 webpack from \"webpack\";\\nimport 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: 'latest',\n 'react-dom': 'latest',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '6.9.0',\n kkt: '6.9.0',\n typescript: '4.1.3',\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 } = 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 } 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 }}\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 Markdown from '../../../components/Markdown';\n\nexport default function Page() {\n return (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/website/src/routes/components/colors/README.md\"\n renderPage={async () => {\n const md = await import('./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","typescript","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","md","default"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3931],{9896:function(n,o,t){t.r(o),o.default="Portal \u5165\u53e3\n===\n\n[`Portals`](https://reactjs.org/docs/portals.html#event-bubbling-through-portals) \u662f react 16 \u63d0\u4f9b\u7684\u5b98\u65b9\u89e3\u51b3\u65b9\u6848\uff0c\u4f7f\u5f97\u7ec4\u4ef6\u53ef\u4ee5\u8131\u79bb\u7236\u7ec4\u4ef6\u5c42\u7ea7\u6302\u8f7d\u5728 DOM \u6811\u7684\u4efb\u4f55\u4f4d\u7f6e\uff0c\u6211\u4eec\u5229\u7528\u8fd9\u4e2a\u65b9\u6cd5\uff0c\u53ef\u5c06\u6a21\u6001\u5bf9\u8bdd\u6846\u751f\u6210\u5230\u6839\u8282\u70b9\u7684\u5916\u9762\u3002 \n\n```jsx\nimport { Portal } from 'uiw';\n// or\nimport Portal from '@uiw/react-portal';\n```\n\n### \u57fa\u672c\u4f7f\u7528\n\n```jsx\nimport { Portal } from 'uiw';\n\n<Portal>\n \u6b64\u6587\u672c\u5728 document.body \u7684\u672b\u5c3e\u4f20\u9001\uff01\n</Portal>\n<Portal node={document && document.getElementById('dom-id')}>\n \u6b64\u6587\u672c\u5728\u663e\u793a\u5728 dom-id \u7684 dom \u5bf9\u8c61\u4e2d \n</Portal>\n\n```\n\n\u5207\u6362\u4e0d\u540c\u7684 `<Portal />`\n\n```jsx\n{isVisiable && <Portal>\u5207\u6362\u4e0d\u540c\u7684 Portal</Portal>}\n```\n\n## Props\n\n| \u53c2\u6570 | \u8bf4\u660e | \u7c7b\u578b | \u9ed8\u8ba4\u503c |\n|--------- |-------- |--------- |-------- |\n| container | \u6307\u5b9a\u5bb9\u5668\u8282\u70b9\u751f\u6210\uff0c\u670d\u52a1\u7aef\u6e32\u67d3\u9ed8\u8ba4\u4e3a `null` | any | `document.body` |\n| ~~visible~~ | ~~\u5f53\u503c\u4e3a `true` \u7684\u65f6\u5019\u624d\u4f1a\u521b\u5efa `createPortal`\uff0c\u53ef\u907f\u514d\u521d\u59cb\u5316\u521b\u5efa\u591a\u4f59\u7684 `dom` \u8282\u70b9\u6302\u8f7d~~ `@v4.9.0+`\x3c!--rehype:style=color:red--\x3e \u4e4b\u540e\u79fb\u9664\u4e86 | boolean | - |\n| ~~onChildrenMount~~ | ~~\u6e32\u67d3\u540e\u7684\u56de\u8c03\u51fd\u6570~~ `@v4.9.0+`\x3c!--rehype:style=color:red--\x3e \u4e4b\u540e\u79fb\u9664\u4e86 | () => void | - |"}}]);
|
|
2
|
-
//# sourceMappingURL=3931.710a8e71.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/3931.710a8e71.chunk.js","mappings":"+GAAA","sources":["../../packages/react-portal/README.md"],"sourcesContent":["export default \"Portal 入口\\n===\\n\\n[`Portals`](https://reactjs.org/docs/portals.html#event-bubbling-through-portals) 是 react 16 提供的官方解决方案,使得组件可以脱离父组件层级挂载在 DOM 树的任何位置,我们利用这个方法,可将模态对话框生成到根节点的外面。 \\n\\n```jsx\\nimport { Portal } from 'uiw';\\n// or\\nimport Portal from '@uiw/react-portal';\\n```\\n\\n### 基本使用\\n\\n```jsx\\nimport { Portal } from 'uiw';\\n\\n<Portal>\\n 此文本在 document.body 的末尾传送!\\n</Portal>\\n<Portal node={document && document.getElementById('dom-id')}>\\n 此文本在显示在 dom-id 的 dom 对象中 \\n</Portal>\\n\\n```\\n\\n切换不同的 `<Portal />`\\n\\n```jsx\\n{isVisiable && <Portal>切换不同的 Portal</Portal>}\\n```\\n\\n## Props\\n\\n| 参数 | 说明 | 类型 | 默认值 |\\n|--------- |-------- |--------- |-------- |\\n| container | 指定容器节点生成,服务端渲染默认为 `null` | any | `document.body` |\\n| ~~visible~~ | ~~当值为 `true` 的时候才会创建 `createPortal`,可避免初始化创建多余的 `dom` 节点挂载~~ `@v4.9.0+`<!--rehype:style=color:red--> 之后移除了 | boolean | - |\\n| ~~onChildrenMount~~ | ~~渲染后的回调函数~~ `@v4.9.0+`<!--rehype:style=color:red--> 之后移除了 | () => void | - |\";"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4010],{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 x}});var r=t(50189),o=t(53782),i=t(11026),s=t(41473),c=t(82136),d=t(75752),a=t(64508),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 webpack from "webpack";\nimport 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:"latest","react-dom":"latest",uiw:"latest"},devDependencies:{"@kkt/less-modules":"6.9.0",kkt:"6.9.0",typescript:"4.1.3"},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(29812);function m(){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 f="index_docinfo__3Vx8S",k="index_markdown__hcQCp",b=["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 x(e){var n=e.renderPage,t=e.dependencies,a=e.path,l=(0,s.useState)(""),h=(0,i.Z)(l,2),x=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(){}))}),[]),x?(0,u.jsxs)("div",{children:[(0,u.jsx)(c.Z,{source:x,className:k,components:{code:function(e){var n=e.inline,i=e.node,s=(0,o.Z)(e,b),c=s,d=c.noPreview,a=c.bordered,l=c.noScroll,h=c.bgWhite,m=c.noCode,f=c.codePen;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var k={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:m,codePen:f};return 0===Object.keys(k).filter((function(e){return void 0!==k[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:m,codePen:f})}}}),(0,u.jsx)("div",{className:f,children:(0,u.jsx)(m,{path:a})})]}):null}},92425:function(e,n,t){"use strict";t.r(n);var r=t(27791),o=t(57135),i=t.n(o),s=(t(41473),t(29812)),c=t(86082),d=t(69286);n.default=function(){return(0,d.jsx)(c.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-tabs/README.md",dependencies:{Tabs:s.mQ,Divider:s.iz},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(9961).then(t.bind(t,39961));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
-
//# sourceMappingURL=4010.25479d9a.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4010.25479d9a.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,GA0DrC,OAzDIF,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,qLAEV,eAAgB,CACdA,QAAS,CACPC,KAAM,WACNC,YAAY,QAAD,OA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AA,EAAAA,GAAMC,QAAAA,EAAAA,IACtB1B,YAAU,iBAAE,oGACO,gCADP,cACJ2B,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/tabs/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 webpack from \"webpack\";\\nimport 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: 'latest',\n 'react-dom': 'latest',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '6.9.0',\n kkt: '6.9.0',\n typescript: '4.1.3',\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 } = 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 } 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 }}\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 { Tabs, Divider } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default () => (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-tabs/README.md\"\n dependencies={{ Tabs, Divider }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-tabs/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","typescript","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","Tabs","Divider","md","default"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4036],{94036:function(n,e,i){i.r(e),e.default="Pagination \u5206\u9875\n===\n\n\u5f53\u6570\u636e\u91cf\u8f83\u591a\u65f6\uff0c\u4f7f\u7528\u5206\u9875\u53ef\u4ee5\u5feb\u901f\u8fdb\u884c\u6570\u636e\u5207\u6362\uff0c\u6bcf\u6b21\u53ea\u52a0\u8f7d\u4e00\u4e2a\u9875\u9762\u3002\n\n```jsx\nimport { Pagination } from 'uiw';\n// or\nimport Pagination from '@uiw/react-pagination';\n```\n\n### \u57fa\u672c\u7528\u6cd5\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport { Pagination, Divider } from 'uiw';\n\n\nconst Demo = () => {\n const [pageObj, setPageObj] = React.useState({\n current: 2,\n pageSize: 10\n });\n return (\n <div>\n <Pagination\n current={pageObj.current}\n pageSize={pageObj.pageSize}\n total={30}\n divider\n pageSizeOptions={[5, 10, 20, 30]}\n onShowSizeChange={(current, pageSize) => setPageObj({\n current: current,\n pageSize: pageSize\n })}\n />\n <Divider />\n <Pagination current={2} pageSize={10} total={38} divider />\n <Divider />\n <Pagination current={1} pageSize={5} total={249} pageSizeOptions={[5, 10, 20, 30]} />\n <Divider />\n <Pagination current={1} alignment=\"center\" pageSize={10} total={50} />\n <Divider />\n <Pagination current={1} pageSize={10} total={60} divider />\n <Divider />\n <Pagination current={1} pageSize={10} total={70} divider />\n </div>\n )\n}\n\nReactDOM.render(\n <Demo />,\n _mount_\n);\n```\n\n### \u8ff7\u4f60\u5206\u9875\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { Pagination, Divider } from 'uiw';\n\nReactDOM.render(\n <div>\n <Pagination size=\"small\" current={1} pageSize={5} pageSizeOptions={[5, 10, 20, 30]} total={249} />\n <Divider />\n <Pagination size=\"small\" current={1} pageSize={10} total={50} />\n </div>,\n _mount_\n);\n```\n\n### \u5bf9\u9f50\n\n\u76ee\u524d\u6709\u4e09\u79cd\u5bf9\u9f50\u65b9\u5f0f `\u5de6\u8fb9(left)`\u3001`\u4e2d\u95f4(center)`\u3001`\u53f3\u8fb9(right)`\u3002\n\n\x3c!--rehype:bgWhite=true&codeSandbox=true&codePen=true--\x3e\n```jsx\nimport ReactDOM from 'react-dom';\nimport { Pagination, Divider } from 'uiw';\n\nReactDOM.render(\n <div>\n <Pagination\n current={5}\n total={250}\n onChange={(pageNumber) => { \n console.log(`pageNumber:${pageNumber}`)\n }}\n />\n <Divider />\n <Pagination\n current={1}\n alignment=\"center\"\n total={250}\n onChange={(pageNumber) => { \n console.log(`pageNumber:${pageNumber}`)\n }}\n />\n <Divider />\n <Pagination\n current={25}\n alignment=\"right\"\n total={250}\n onChange={(pageNumber) => { \n console.log(`pageNumber:${pageNumber}`)\n }}\n />\n </div>,\n _mount_\n);\n```\n\n### Props\n\n| \u53c2\u6570 | \u8bf4\u660e | \u7c7b\u578b | \u9ed8\u8ba4\u503c |\n|------ |-------- |---------- |-------- |\n| current | \u5f53\u524d\u9875\u6570\uff0c\u9009\u4e2d\u7684\u9875\u6570 | Number | 1 |\n| total | \u6570\u636e\u603b\u6570 | Number | 0 |\n| pageSize | \u6bcf\u9875\u6761\u6570 | Number | 10 |\n| pageSizeOptions | \u6307\u5b9a\u6bcf\u9875\u53ef\u4ee5\u663e\u793a\u591a\u5c11\u6761 | Number[] | - |\n| divider | \u9875\u7801\u4e4b\u95f4\u662f\u5426\u95f4\u9694 | Boolean | - |\n| size | \u5f53\u4e3a `small` \u65f6\uff0c\u662f\u5c0f\u5c3a\u5bf8\u5206\u9875 | Enum{`small`, `default`} | - |\n| alignment | \u5bf9\u9f50 | Enum{`left`, `center`, `right`} | `left` |\n| onChange | \u9875\u7801\u6539\u53d8\u7684\u56de\u8c03\uff0c\u8fd4\u56de\u6539\u53d8\u540e\u7684\u9875\u7801 | Function(current, total, pageSize) | - |\n| onShowSizeChange | pageSize \u53d8\u5316\u7684\u56de\u8c03 | Function(current, pageSize) | - |"}}]);
|
|
2
|
-
//# sourceMappingURL=4036.bee6a610.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4036.bee6a610.chunk.js","mappings":"gHAAA","sources":["../../packages/react-pagination/README.md"],"sourcesContent":["export default \"Pagination 分页\\n===\\n\\n当数据量较多时,使用分页可以快速进行数据切换,每次只加载一个页面。\\n\\n```jsx\\nimport { Pagination } from 'uiw';\\n// or\\nimport Pagination from '@uiw/react-pagination';\\n```\\n\\n### 基本用法\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport React from 'react';\\nimport ReactDOM from 'react-dom';\\nimport { Pagination, Divider } from 'uiw';\\n\\n\\nconst Demo = () => {\\n const [pageObj, setPageObj] = React.useState({\\n current: 2,\\n pageSize: 10\\n });\\n return (\\n <div>\\n <Pagination\\n current={pageObj.current}\\n pageSize={pageObj.pageSize}\\n total={30}\\n divider\\n pageSizeOptions={[5, 10, 20, 30]}\\n onShowSizeChange={(current, pageSize) => setPageObj({\\n current: current,\\n pageSize: pageSize\\n })}\\n />\\n <Divider />\\n <Pagination current={2} pageSize={10} total={38} divider />\\n <Divider />\\n <Pagination current={1} pageSize={5} total={249} pageSizeOptions={[5, 10, 20, 30]} />\\n <Divider />\\n <Pagination current={1} alignment=\\\"center\\\" pageSize={10} total={50} />\\n <Divider />\\n <Pagination current={1} pageSize={10} total={60} divider />\\n <Divider />\\n <Pagination current={1} pageSize={10} total={70} divider />\\n </div>\\n )\\n}\\n\\nReactDOM.render(\\n <Demo />,\\n _mount_\\n);\\n```\\n\\n### 迷你分页\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Pagination, Divider } from 'uiw';\\n\\nReactDOM.render(\\n <div>\\n <Pagination size=\\\"small\\\" current={1} pageSize={5} pageSizeOptions={[5, 10, 20, 30]} total={249} />\\n <Divider />\\n <Pagination size=\\\"small\\\" current={1} pageSize={10} total={50} />\\n </div>,\\n _mount_\\n);\\n```\\n\\n### 对齐\\n\\n目前有三种对齐方式 `左边(left)`、`中间(center)`、`右边(right)`。\\n\\n<!--rehype:bgWhite=true&codeSandbox=true&codePen=true-->\\n```jsx\\nimport ReactDOM from 'react-dom';\\nimport { Pagination, Divider } from 'uiw';\\n\\nReactDOM.render(\\n <div>\\n <Pagination\\n current={5}\\n total={250}\\n onChange={(pageNumber) => { \\n console.log(`pageNumber:${pageNumber}`)\\n }}\\n />\\n <Divider />\\n <Pagination\\n current={1}\\n alignment=\\\"center\\\"\\n total={250}\\n onChange={(pageNumber) => { \\n console.log(`pageNumber:${pageNumber}`)\\n }}\\n />\\n <Divider />\\n <Pagination\\n current={25}\\n alignment=\\\"right\\\"\\n total={250}\\n onChange={(pageNumber) => { \\n console.log(`pageNumber:${pageNumber}`)\\n }}\\n />\\n </div>,\\n _mount_\\n);\\n```\\n\\n### Props\\n\\n| 参数 | 说明 | 类型 | 默认值 |\\n|------ |-------- |---------- |-------- |\\n| current | 当前页数,选中的页数 | Number | 1 |\\n| total | 数据总数 | Number | 0 |\\n| pageSize | 每页条数 | Number | 10 |\\n| pageSizeOptions | 指定每页可以显示多少条 | Number[] | - |\\n| divider | 页码之间是否间隔 | Boolean | - |\\n| size | 当为 `small` 时,是小尺寸分页 | Enum{`small`, `default`} | - |\\n| alignment | 对齐 | Enum{`left`, `center`, `right`} | `left` |\\n| onChange | 页码改变的回调,返回改变后的页码 | Function(current, total, pageSize) | - |\\n| onShowSizeChange | pageSize 变化的回调 | Function(current, pageSize) | - |\";"],"names":[],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4098],{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(82136),d=t(75752),a=t(64508),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 webpack from "webpack";\nimport 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:"latest","react-dom":"latest",uiw:"latest"},devDependencies:{"@kkt/less-modules":"6.9.0",kkt:"6.9.0",typescript:"4.1.3"},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(29812);function m(){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 f="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,m=c.noCode,f=c.codePen;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var k={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:m,codePen:f};return 0===Object.keys(k).filter((function(e){return void 0!==k[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:m,codePen:f})}}}),(0,u.jsx)("div",{className:f,children:(0,u.jsx)(m,{path:a})})]}):null}},92910: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(29812)),c=t(86082),d=t(69286);function a(){return(0,d.jsx)(c.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-modal/README.md",dependencies:{Modal:s.u_,ButtonGroup:s.hE,Button:s.zx,Notify:s.gU,Form:s.l0,Input:s.II,Checkbox:s.XZ,Switch:s.rs,RadioGroup:s.Ee,Radio:s.Y8,Textarea:s.gx,Row:s.X2,Col:s.JX},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(9900).then(t.bind(t,29900));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
-
//# sourceMappingURL=4098.2b7a41a1.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4098.2b7a41a1.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,GA0DrC,OAzDIF,IACFG,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,WACLQ,cAAe,CAAC,OAChBC,IAAKJ,EAAMZ,MAAQ,IAAIiB,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2BqD,IAAjBH,EAAOlD,MAAqBsD,QAC5D,2BAAUlE,KAGjB,SAACN,EAAD,CACEC,QAASA,EACTP,KAAM8C,EAAWG,EAAKE,UACtB3C,aAAcA,EACR6D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQhE,QAAAA,SAMhE,gBAAKwD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA7CX,O,+JCvBI,SAASyC,IACtB,OACE,SAAC,IAAD,CACEzC,KAAK,0EACL/B,aAAc,CACZyE,MAAAA,EAAAA,GACAC,YAAAA,EAAAA,GACAC,OAAAA,EAAAA,GACAC,OAAAA,EAAAA,GACAC,KAAAA,EAAAA,GACAC,MAAAA,EAAAA,GACAC,SAAAA,EAAAA,GACAC,OAAAA,EAAAA,GACAC,WAAAA,EAAAA,GACAC,MAAAA,EAAAA,GACAC,SAAAA,EAAAA,GACAC,IAAAA,EAAAA,GACAC,IAAAA,EAAAA,IAEFtC,YAAU,iBAAE,oGACO,gCADP,cACJuC,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/modal/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 webpack from \"webpack\";\\nimport 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: 'latest',\n 'react-dom': 'latest',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '6.9.0',\n kkt: '6.9.0',\n typescript: '4.1.3',\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 } = 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 } 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 }}\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 {\n Modal,\n ButtonGroup,\n Button,\n Notify,\n Form,\n Input,\n Checkbox,\n Switch,\n RadioGroup,\n Radio,\n Textarea,\n Row,\n Col,\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-modal/README.md\"\n dependencies={{\n Modal,\n ButtonGroup,\n Button,\n Notify,\n Form,\n Input,\n Checkbox,\n Switch,\n RadioGroup,\n Radio,\n Textarea,\n Row,\n Col,\n }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-modal/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","typescript","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","Modal","ButtonGroup","Button","Notify","Form","Input","Checkbox","Switch","RadioGroup","Radio","Textarea","Row","Col","md","default"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4128],{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(82136),d=t(75752),a=t(64508),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 webpack from "webpack";\nimport 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:"latest","react-dom":"latest",uiw:"latest"},devDependencies:{"@kkt/less-modules":"6.9.0",kkt:"6.9.0",typescript:"4.1.3"},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(29812);function m(){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 f="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,m=c.noCode,f=c.codePen;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var k={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:m,codePen:f};return 0===Object.keys(k).filter((function(e){return void 0!==k[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:m,codePen:f})}}}),(0,u.jsx)("div",{className:f,children:(0,u.jsx)(m,{path:a})})]}):null}},77380:function(e,n,t){"use strict";t.r(n);var r=t(27791),o=t(57135),i=t.n(o),s=(t(41473),t(29812)),c=t(86082),d=t(69286);n.default=function(){return(0,d.jsx)(c.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-switch/README.md",dependencies:{Switch:s.rs,Divider:s.iz,Button:s.zx,Form:s.l0,Row:s.X2,Col:s.JX,Notify:s.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(8586).then(t.bind(t,88586));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
-
//# sourceMappingURL=4128.91667ba9.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4128.91667ba9.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,GA0DrC,OAzDIF,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,qLAEV,eAAgB,CACdA,QAAS,CACPC,KAAM,WACNC,YAAY,QAAD,OAAUlB,EAAV,WACXC,aAAc,CACZkB,MA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AASC,OAAAA,EAAAA,GAAQC,KAAAA,EAAAA,GAAMC,IAAAA,EAAAA,GAAKC,IAAAA,EAAAA,GAAKC,OAAAA,EAAAA,IACzD/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/switch/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 webpack from \"webpack\";\\nimport 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: 'latest',\n 'react-dom': 'latest',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '6.9.0',\n kkt: '6.9.0',\n typescript: '4.1.3',\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 } = 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 } 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 }}\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 { Switch, Divider, Button, Form, Row, Col, Notify } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default () => (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-switch/README.md\"\n dependencies={{ Switch, Divider, Button, Form, Row, Col, Notify }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-switch/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","typescript","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","Switch","Divider","Button","Form","Row","Col","Notify","md","default"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4188],{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(82136),d=t(75752),a=t(64508),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 webpack from "webpack";\nimport 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:"latest","react-dom":"latest",uiw:"latest"},devDependencies:{"@kkt/less-modules":"6.9.0",kkt:"6.9.0",typescript:"4.1.3"},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(29812);function m(){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 f="index_docinfo__3Vx8S",k="index_markdown__hcQCp",b=["inline","node"],x=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,b),c=s,d=c.noPreview,a=c.bordered,l=c.noScroll,h=c.bgWhite,m=c.noCode,f=c.codePen;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var k={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:m,codePen:f};return 0===Object.keys(k).filter((function(e){return void 0!==k[e]})).length?(0,u.jsx)("code",(0,r.Z)({},s)):(0,u.jsx)(p,{version:g,code:x(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:m,codePen:f})}}}),(0,u.jsx)("div",{className:f,children:(0,u.jsx)(m,{path:a})})]}):null}},39877:function(e,n,t){"use strict";t.r(n);var r=t(27791),o=t(57135),i=t.n(o),s=(t(41473),t(86082)),c=t(69286);n.default=function(){return(0,c.jsx)(s.Z,{path:"https://github.com/uiwjs/uiw/tree/master/website/src/routes/guide/kkt/README.md",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(9429).then(t.bind(t,19429));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
-
//# sourceMappingURL=4188.5c798453.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4188.5c798453.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,GA0DrC,OAzDIF,IACFG,EAAMC,cAAgB,CACpBC,MAAM,MAAD,OAAQP,EAAR,WACLQ,cAAe,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AAO1E,KAAKyE,GAAQE,QAAO,SAACpD,GAAD,YAA2BqD,IAAjBH,EAAOlD,MAAqBsD,QAC5D,2BAAUlE,KAGjB,SAACN,EAAD,CACEC,QAASA,EACTP,KAAM8C,EAAWG,EAAKE,UACtB3C,aAAcA,EACR6D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQhE,QAAAA,SAMhE,gBAAKwD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA7CX,O,8GCtCX,qBAAe,OACb,SAAC,IAAD,CACEA,KAAK,kFACLgB,YAAU,iBAAE,oGACO,gCADP,cACJyB,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/guide/kkt/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 webpack from \"webpack\";\\nimport 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: 'latest',\n 'react-dom': 'latest',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '6.9.0',\n kkt: '6.9.0',\n typescript: '4.1.3',\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 } = 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 } 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 }}\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 Markdown from '../../../components/Markdown';\n\nexport default () => (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/website/src/routes/guide/kkt/README.md\"\n renderPage={async () => {\n const md = await import('./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","typescript","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","md","default"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4396],{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(82136),d=t(75752),a=t(64508),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 webpack from "webpack";\nimport 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:"latest","react-dom":"latest",uiw:"latest"},devDependencies:{"@kkt/less-modules":"6.9.0",kkt:"6.9.0",typescript:"4.1.3"},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(29812);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",v=["inline","node"],x=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,v),c=s,d=c.noPreview,a=c.bordered,l=c.noScroll,h=c.bgWhite,f=c.noCode,m=c.codePen;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var k={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m};return 0===Object.keys(k).filter((function(e){return void 0!==k[e]})).length?(0,u.jsx)("code",(0,r.Z)({},s)):(0,u.jsx)(p,{version:g,code:x(i.children),dependencies:t,noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m})}}}),(0,u.jsx)("div",{className:m,children:(0,u.jsx)(f,{path:a})})]}):null}},90389: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(29812)),c=t(86082),d=t(69286);function a(){return(0,d.jsx)(c.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-overlay/README.md",dependencies:{Overlay:s.C6,Button:s.zx,Icon:s.JO,Card:s.Zb,Divider:s.iz},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(7861).then(t.bind(t,47861));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
-
//# sourceMappingURL=4396.1e7561d7.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4396.1e7561d7.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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AAUC,EAAvC,EAAuCA,QAASC,EAAhD,EAAgDA,OAAQhE,EAAxD,EAAwDA,QACxD,GAAI2D,EACF,OAAO,2BAAUxD,IAEnB,IAAM8D,EAAS,CACbL,UAAAA,EACAC,SAAAA,EACAC,SAAAA,EACAC,QAAAA,EACAC,OAAAA,EACAhE,QAAAA,GAEF,OAAgF,IAA5EkE,OAAO1E,KAAKyE,GAAQE,QAAO,SAACpD,GAAD,YAA2BqD,IAAjBH,EAAOlD,MAAqBsD,QAC5D,2BAAUlE,KAGjB,SAACN,EAAD,CACEC,QAASA,EACTP,KAAM8C,EAAWG,EAAKE,UACtB3C,aAAcA,EACR6D,UAAAA,EAAWC,SAAAA,EAAUC,SAAAA,EAAUC,QAAAA,EAASC,OAAAA,EAAQhE,QAAAA,SAMhE,gBAAKwD,UAAWC,EAAhB,UACE,SAACa,EAAD,CAAQxC,KAAMA,SA7CX,O,+JCpCI,SAASyC,IACtB,OACE,SAACC,EAAA,EAAD,CACE1C,KAAK,4EACL/B,aAAc,CAAE0E,QAAAA,EAAAA,GAASC,OAAAA,EAAAA,GAAQC,KAAAA,EAAAA,GAAMC,KAAAA,EAAAA,GAAMC,QAAAA,EAAAA,IAC7C/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/overlay/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 webpack from \"webpack\";\\nimport 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: 'latest',\n 'react-dom': 'latest',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '6.9.0',\n kkt: '6.9.0',\n typescript: '4.1.3',\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 } = 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 } 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 }}\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 { Overlay, Button, Icon, Card, Divider } from 'uiw';\nimport Markdown from '../../../components/Markdown';\nimport './index.less';\n\nexport default function Page() {\n return (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-overlay/README.md\"\n dependencies={{ Overlay, Button, Icon, Card, Divider }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-overlay/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","typescript","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","Markdown","Overlay","Button","Icon","Card","Divider","md","default"],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[4405],{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(82136),d=t(75752),a=t(64508),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 webpack from "webpack";\nimport 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:"latest","react-dom":"latest",uiw:"latest"},devDependencies:{"@kkt/less-modules":"6.9.0",kkt:"6.9.0",typescript:"4.1.3"},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(29812);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;if(n)return(0,u.jsx)("code",(0,r.Z)({},s));var k={noPreview:d,bordered:a,noScroll:l,bgWhite:h,noCode:f,codePen:m};return 0===Object.keys(k).filter((function(e){return void 0!==k[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})}}}),(0,u.jsx)("div",{className:m,children:(0,u.jsx)(f,{path:a})})]}):null}},98680:function(e,n,t){"use strict";t.r(n);var r=t(27791),o=t(57135),i=t.n(o),s=(t(41473),t(29812)),c=t(86082),d=t(69286);n.default=function(){return(0,d.jsx)(c.Z,{path:"https://github.com/uiwjs/uiw/tree/master/packages/react-steps/README.md",dependencies:{Steps:s.Rg,Icon:s.JO,Button:s.zx,Notify:s.gU,Row:s.X2,Col:s.JX},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(3450).then(t.bind(t,43450));case 2:return n=e.sent,e.abrupt("return",n.default||n);case 4:case"end":return e.stop()}}),e)})))})}}}]);
|
|
2
|
-
//# sourceMappingURL=4405.689929fb.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4405.689929fb.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,GA0DrC,OAzDIF,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,qLAEV,eAAgB,CACdA,QAAS,CACPC,KAAM,WACNC,YAAY,QAAD,OAAUlB,EAAV,WACXC,aAAc,CACZkB,MAAO,SACP,YAAa,SACbC,IAAK,UAEPC,gBAAiB,CACf,oBAAqB,QACrBC,IAAK,QACLC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AAA,EAAAA,IAClD9B,YAAU,iBAAE,oGACO,gCADP,cACJ+B,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/steps/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 webpack from \"webpack\";\\nimport 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: 'latest',\n 'react-dom': 'latest',\n uiw: 'latest',\n },\n devDependencies: {\n '@kkt/less-modules': '6.9.0',\n kkt: '6.9.0',\n typescript: '4.1.3',\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 } = 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 } 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 }}\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 { Steps, Icon, Button, Notify, Row, Col } from 'uiw';\nimport Markdown from '../../../components/Markdown';\n\nexport default () => (\n <Markdown\n path=\"https://github.com/uiwjs/uiw/tree/master/packages/react-steps/README.md\"\n dependencies={{ Steps, Icon, Button, Notify, Row, Col }}\n renderPage={async () => {\n const md = await import('uiw/node_modules/@uiw/react-steps/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","typescript","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","Steps","Icon","Button","Notify","Row","Col","md","default"],"sourceRoot":""}
|