ydb-components-material 0.1.86 → 0.1.88
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/build/docs/404.html +3 -3
- package/build/docs/_demos/:uuid +3 -3
- package/build/docs/colorful-button.html +3 -3
- package/build/docs/colorful-input.html +3 -3
- package/build/docs/index.html +3 -3
- package/build/docs/{umi.466b4c0a.css → umi.666eb3a7.css} +1 -1
- package/build/docs/umi.f5d91602.js +1 -0
- package/build/docs/~demos/:uuid.html +3 -3
- package/build/docs/~demos/colorful-button-demo.html +3 -3
- package/build/docs/~demos/colorful-input-demo.html +3 -3
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +9 -9
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +55 -2
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +55 -2
- package/dist/BizComps.css +1 -1
- package/dist/BizComps.js +58 -5
- package/dist/BizComps.js.map +1 -1
- package/es/components/file-item/index.js +165 -70
- package/es/components/file-item/index.scss +13 -2
- package/es/components/file-list/checkPoint.d.ts +3 -0
- package/es/components/file-list/checkPoint.js +157 -0
- package/es/components/file-list/checkPoint.scss +120 -0
- package/es/components/file-list/file.js +295 -0
- package/es/components/file-list/icon/checked.svg +1 -0
- package/es/components/file-list/icon/close.svg +1 -0
- package/es/components/file-list/icon/del.svg +1 -0
- package/es/components/file-list/icon/download.svg +1 -0
- package/es/components/file-list/icon/download_pc.svg +1 -0
- package/es/components/file-list/icon/file.svg +1 -0
- package/es/components/file-list/icon/icon_errorMsg.svg +1 -0
- package/es/components/file-list/icon/icon_warning.svg +1 -0
- package/es/components/file-list/icon/preview.svg +1 -0
- package/es/components/file-list/icon/preview_pc.svg +1 -0
- package/es/components/file-list/icon/upload.svg +1 -0
- package/es/components/file-list/icon/view.svg +1 -0
- package/es/components/file-list/index.d.ts +21 -0
- package/es/components/file-list/index.js +222 -0
- package/es/components/file-list/index.scss +36 -0
- package/es/components/file-list/item.d.ts +27 -0
- package/es/components/file-list/item.js +802 -0
- package/es/components/file-list/item.scss +412 -0
- package/es/components/file-list/seal.d.ts +3 -0
- package/es/components/file-list/seal.js +222 -0
- package/es/components/file-list/sealUtil.js +252 -0
- package/es/components/file-list/sign.d.ts +3 -0
- package/es/components/file-list/sign.js +138 -0
- package/es/components/file-list/signUtil.js +369 -0
- package/es/index.d.ts +2 -0
- package/es/index.js +1 -0
- package/lib/components/file-item/index.js +165 -70
- package/lib/components/file-item/index.scss +13 -2
- package/lib/components/file-list/checkPoint.d.ts +3 -0
- package/lib/components/file-list/checkPoint.js +162 -0
- package/lib/components/file-list/checkPoint.scss +120 -0
- package/lib/components/file-list/file.js +306 -0
- package/lib/components/file-list/icon/checked.svg +1 -0
- package/lib/components/file-list/icon/close.svg +1 -0
- package/lib/components/file-list/icon/del.svg +1 -0
- package/lib/components/file-list/icon/download.svg +1 -0
- package/lib/components/file-list/icon/download_pc.svg +1 -0
- package/lib/components/file-list/icon/file.svg +1 -0
- package/lib/components/file-list/icon/icon_errorMsg.svg +1 -0
- package/lib/components/file-list/icon/icon_warning.svg +1 -0
- package/lib/components/file-list/icon/preview.svg +1 -0
- package/lib/components/file-list/icon/preview_pc.svg +1 -0
- package/lib/components/file-list/icon/upload.svg +1 -0
- package/lib/components/file-list/icon/view.svg +1 -0
- package/lib/components/file-list/index.d.ts +21 -0
- package/lib/components/file-list/index.js +227 -0
- package/lib/components/file-list/index.scss +36 -0
- package/lib/components/file-list/item.d.ts +27 -0
- package/lib/components/file-list/item.js +808 -0
- package/lib/components/file-list/item.scss +412 -0
- package/lib/components/file-list/seal.d.ts +3 -0
- package/lib/components/file-list/seal.js +228 -0
- package/lib/components/file-list/sealUtil.js +254 -0
- package/lib/components/file-list/sign.d.ts +3 -0
- package/lib/components/file-list/sign.js +144 -0
- package/lib/components/file-list/signUtil.js +371 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -1
- package/lowcode/file-list/meta.ts +231 -0
- package/lowcode_es/_setter/IconSelectSetter.js +1 -1
- package/lowcode_es/file-list/meta.d.ts +22 -0
- package/lowcode_es/file-list/meta.js +213 -0
- package/lowcode_es/meta.js +3 -2
- package/lowcode_lib/_setter/IconSelectSetter.js +1 -1
- package/lowcode_lib/file-list/meta.d.ts +22 -0
- package/lowcode_lib/file-list/meta.js +218 -0
- package/lowcode_lib/meta.js +14 -13
- package/package.json +6 -4
- package/build/docs/umi.0968e2ca.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><g><g><path d="M14,7Q14,7.1718402,13.991568,7.3434739Q13.983135,7.5151072,13.966292,7.68612Q13.949449,7.8571329,13.924234,8.027113Q13.899019,8.197093,13.865496,8.3656311Q13.83197,8.5341702,13.790217,8.700861Q13.748464,8.8675518,13.698582,9.0319929Q13.648699,9.196434,13.590806,9.3582287Q13.532915,9.5200233,13.467155,9.6787834Q13.401394,9.8375435,13.327923,9.9928856Q13.254452,10.148228,13.173448,10.299777Q13.092443,10.451326,13.004099,10.598719Q12.915755,10.746111,12.820286,10.88899Q12.724816,11.03187,12.622452,11.169893Q12.520086,11.307918,12.411073,11.440753Q12.302058,11.573587,12.186657,11.700912Q12.071257,11.828238,11.949747,11.949747Q11.828238,12.071257,11.700912,12.186658Q11.573587,12.302058,11.440753,12.411073Q11.307918,12.520086,11.169893,12.622451Q11.03187,12.724816,10.88899,12.820286Q10.746111,12.915755,10.598719,13.004099Q10.451326,13.092443,10.299777,13.173449Q10.148228,13.254454,9.9928856,13.327925Q9.8375435,13.401396,9.6787834,13.467155Q9.5200233,13.532916,9.3582287,13.590808Q9.196434,13.648699,9.0319929,13.698583Q8.8675518,13.748465,8.700861,13.790218Q8.5341702,13.831971,8.3656311,13.865496Q8.197093,13.899019,8.027113,13.924234Q7.8571329,13.94945,7.68612,13.966293Q7.5151072,13.983136,7.3434734,13.991568Q7.1718402,14,7,14Q6.8281598,14,6.6565266,13.991568Q6.4848933,13.983135,6.3138804,13.966292Q6.1428671,13.949449,5.9728866,13.924234Q5.802906,13.899019,5.6343675,13.865496Q5.4658289,13.83197,5.2991385,13.790217Q5.1324482,13.748464,4.9680071,13.698582Q4.803566,13.648699,4.6417708,13.590806Q4.4799757,13.532915,4.3212156,13.467155Q4.1624556,13.401394,4.0071144,13.327923Q3.8517723,13.254452,3.700223,13.173448Q3.5486732,13.092443,3.4012804,13.004099Q3.2538881,12.915755,3.1110082,12.820286Q2.9681282,12.724816,2.8301048,12.622452Q2.6920815,12.520086,2.559247,12.411073Q2.4264126,12.302058,2.299087,12.186657Q2.171762,12.071257,2.0502524,11.949747Q1.9287429,11.828238,1.813342,11.700912Q1.6979411,11.573587,1.5889268,11.440753Q1.4799124,11.307918,1.3775473,11.169893Q1.275182,11.03187,1.1797127,10.88899Q1.0842432,10.746111,0.99589968,10.598719Q0.90755606,10.451326,0.82655108,10.299777Q0.74554604,10.148228,0.67207485,9.9928856Q0.59860361,9.8375435,0.53284317,9.6787834Q0.46708274,9.5200233,0.40919149,9.3582287Q0.35130021,9.196434,0.30141759,9.0319929Q0.25153497,8.8675518,0.20978118,8.700861Q0.16802739,8.5341702,0.13450301,8.3656311Q0.10097862,8.197093,0.075764418,8.027113Q0.0505502,7.8571329,0.033706907,7.68612Q0.016863609,7.5151072,0.0084318044,7.3434734Q0,7.1718402,0,7Q0,6.8281598,0.0084318044,6.6565266Q0.016863609,6.4848933,0.033706907,6.3138804Q0.0505502,6.1428671,0.07576441,5.9728866Q0.10097862,5.802906,0.13450301,5.6343675Q0.16802739,5.4658289,0.20978117,5.2991385Q0.25153497,5.1324482,0.30141759,4.9680071Q0.35130021,4.803566,0.40919146,4.6417708Q0.46708274,4.4799757,0.53284317,4.3212156Q0.59860361,4.1624556,0.67207479,4.0071144Q0.74554598,3.8517723,0.82655102,3.700223Q0.90755594,3.5486732,0.99589956,3.4012804Q1.0842431,3.2538881,1.1797125,3.1110082Q1.2751819,2.9681282,1.3775471,2.8301048Q1.4799123,2.6920815,1.5889268,2.559247Q1.6979411,2.4264126,1.8133421,2.299087Q1.9287429,2.171762,2.0502524,2.0502524Q2.171762,1.9287429,2.299087,1.813342Q2.4264126,1.6979411,2.559247,1.5889268Q2.6920815,1.4799124,2.8301048,1.3775473Q2.9681282,1.275182,3.1110082,1.1797127Q3.2538881,1.0842432,3.4012806,0.99589968Q3.5486729,0.90755606,3.7002227,0.82655108Q3.8517723,0.74554604,4.0071139,0.67207485Q4.1624556,0.59860361,4.3212156,0.53284317Q4.4799757,0.46708274,4.6417708,0.40919149Q4.803566,0.35130021,4.9680071,0.30141759Q5.1324482,0.25153497,5.2991385,0.20978118Q5.4658289,0.16802739,5.6343675,0.13450301Q5.802906,0.10097862,5.9728866,0.075764418Q6.1428671,0.0505502,6.31388,0.033706907Q6.4848928,0.016863609,6.6565266,0.0084318044Q6.8281598,0,7,0Q7.1718402,0,7.3434739,0.0084318044Q7.5151072,0.016863609,7.68612,0.033706907Q7.8571329,0.0505502,8.027113,0.07576441Q8.197093,0.10097862,8.3656311,0.13450301Q8.5341702,0.16802739,8.700861,0.20978117Q8.8675518,0.25153497,9.0319929,0.30141759Q9.196434,0.35130021,9.3582287,0.40919146Q9.5200233,0.46708274,9.6787834,0.53284317Q9.8375435,0.59860361,9.9928856,0.67207479Q10.148228,0.74554598,10.299777,0.82655102Q10.451326,0.90755594,10.598719,0.99589956Q10.746111,1.0842431,10.88899,1.1797125Q11.03187,1.2751819,11.169893,1.3775471Q11.307918,1.4799123,11.440753,1.5889268Q11.573587,1.6979411,11.700912,1.8133421Q11.828238,1.9287429,11.949747,2.0502524Q12.071257,2.171762,12.186658,2.299087Q12.302058,2.4264126,12.411073,2.559247Q12.520086,2.6920815,12.622451,2.8301048Q12.724816,2.9681282,12.820286,3.1110082Q12.915755,3.2538881,13.004099,3.4012806Q13.092443,3.5486729,13.173449,3.7002227Q13.254454,3.8517723,13.327925,4.0071139Q13.401396,4.1624556,13.467155,4.3212156Q13.532916,4.4799757,13.590808,4.6417708Q13.648699,4.803566,13.698583,4.9680071Q13.748465,5.1324482,13.790218,5.2991385Q13.831971,5.4658289,13.865496,5.6343675Q13.899019,5.802906,13.924234,5.9728866Q13.94945,6.1428671,13.966293,6.31388Q13.983136,6.4848928,13.991568,6.6565266Q14,6.8281598,14,7Z" fill="#FF6237" fill-opacity="1" style="mix-blend-mode:passthrough"/></g><path d="M7.777777928186035,10.889105915Q7.777777828186036,10.965710345,7.762832928186035,11.040842775Q7.747888128186036,11.115975225,7.718572828186035,11.186748525Q7.689257628186035,11.257521725,7.646698428186035,11.321216025Q7.604139428186035,11.384910325,7.549972028186035,11.439077825Q7.495804528186035,11.493245224999999,7.432110228186035,11.535804225Q7.368415928186035,11.578363425,7.297642728186036,11.607678625Q7.226869428186035,11.636993925,7.151736978186035,11.651938725Q7.076604548186035,11.666883625,7.000000118186035,11.666883725Q6.923395638186035,11.666883625,6.848263148186035,11.651938725Q6.7731306581860355,11.636993925,6.7023573781860355,11.607678625Q6.631584108186035,11.578363425,6.567889868186035,11.535804225Q6.504195628186035,11.493245224999999,6.4500281481860355,11.439077825Q6.3958606381860355,11.384910325,6.353301508186036,11.321216025Q6.310742363186035,11.257521725,6.281427126186035,11.186748525Q6.252111886186035,11.115975225,6.2371671071860355,11.040842775Q6.222222328186035,10.965710345,6.222222328186035,10.889105915Q6.222222328186035,10.812501435,6.2371671071860355,10.737368945Q6.252111886186035,10.662236455,6.281427126186035,10.591463175Q6.310742363186035,10.520689905,6.353301498186035,10.456995665Q6.3958606381860355,10.393301425,6.4500281481860355,10.339133945Q6.504195628186035,10.284966435,6.567889868186035,10.242407305Q6.631584138186035,10.19984816,6.702357408186035,10.170532923Q6.7731306581860355,10.141217683,6.848263148186035,10.126272904Q6.923395638186035,10.111328125,7.000000118186035,10.111328125Q7.076604548186035,10.111328125,7.151736978186035,10.126272904Q7.226869428186035,10.141217683,7.297642728186036,10.170532923Q7.368415928186035,10.19984816,7.432110228186035,10.242407295Q7.495804528186035,10.284966435,7.549972028186035,10.339133945Q7.604139428186035,10.393301425,7.646698428186035,10.456995665Q7.689257628186035,10.520689935,7.718572828186035,10.591463205Q7.747888128186036,10.662236455,7.762832928186035,10.737368945Q7.777777828186036,10.812501435,7.777777928186035,10.889105915Z" fill="#FFFFFF" fill-opacity="1" style="mix-blend-mode:passthrough"/><path d="M6.222222328186035,7.777995625C6.222222328186035,8.207550525,6.570445298186035,8.555773225,7.000000118186035,8.555773225C7.429554928186035,8.555773225,7.777777928186035,8.207550525,7.777777928186035,7.777995625L7.777777928186035,3.889105975C7.777777928186035,3.4595511549999998,7.429554928186035,3.111328125,7.000000118186035,3.111328125C6.570445298186035,3.111328125,6.222222328186035,3.4595511549999998,6.222222328186035,3.889105975L6.222222328186035,7.777995625Z" fill="#FFFFFF" fill-opacity="1"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><g><g><path d="M14,7Q14,7.1718402,13.991568,7.3434739Q13.983135,7.5151072,13.966292,7.68612Q13.949449,7.8571329,13.924234,8.027113Q13.899019,8.197093,13.865496,8.3656311Q13.83197,8.5341702,13.790217,8.700861Q13.748464,8.8675518,13.698582,9.0319929Q13.648699,9.196434,13.590806,9.3582287Q13.532915,9.5200233,13.467155,9.6787834Q13.401394,9.8375435,13.327923,9.9928856Q13.254452,10.148228,13.173448,10.299777Q13.092443,10.451326,13.004099,10.598719Q12.915755,10.746111,12.820286,10.88899Q12.724816,11.03187,12.622452,11.169893Q12.520086,11.307918,12.411073,11.440753Q12.302058,11.573587,12.186657,11.700912Q12.071257,11.828238,11.949747,11.949747Q11.828238,12.071257,11.700912,12.186658Q11.573587,12.302058,11.440753,12.411073Q11.307918,12.520086,11.169893,12.622451Q11.03187,12.724816,10.88899,12.820286Q10.746111,12.915755,10.598719,13.004099Q10.451326,13.092443,10.299777,13.173449Q10.148228,13.254454,9.9928856,13.327925Q9.8375435,13.401396,9.6787834,13.467155Q9.5200233,13.532916,9.3582287,13.590808Q9.196434,13.648699,9.0319929,13.698583Q8.8675518,13.748465,8.700861,13.790218Q8.5341702,13.831971,8.3656311,13.865496Q8.197093,13.899019,8.027113,13.924234Q7.8571329,13.94945,7.68612,13.966293Q7.5151072,13.983136,7.3434734,13.991568Q7.1718402,14,7,14Q6.8281598,14,6.6565266,13.991568Q6.4848933,13.983135,6.3138804,13.966292Q6.1428671,13.949449,5.9728866,13.924234Q5.802906,13.899019,5.6343675,13.865496Q5.4658289,13.83197,5.2991385,13.790217Q5.1324482,13.748464,4.9680071,13.698582Q4.803566,13.648699,4.6417708,13.590806Q4.4799757,13.532915,4.3212156,13.467155Q4.1624556,13.401394,4.0071144,13.327923Q3.8517723,13.254452,3.700223,13.173448Q3.5486732,13.092443,3.4012804,13.004099Q3.2538881,12.915755,3.1110082,12.820286Q2.9681282,12.724816,2.8301048,12.622452Q2.6920815,12.520086,2.559247,12.411073Q2.4264126,12.302058,2.299087,12.186657Q2.171762,12.071257,2.0502524,11.949747Q1.9287429,11.828238,1.813342,11.700912Q1.6979411,11.573587,1.5889268,11.440753Q1.4799124,11.307918,1.3775473,11.169893Q1.275182,11.03187,1.1797127,10.88899Q1.0842432,10.746111,0.99589968,10.598719Q0.90755606,10.451326,0.82655108,10.299777Q0.74554604,10.148228,0.67207485,9.9928856Q0.59860361,9.8375435,0.53284317,9.6787834Q0.46708274,9.5200233,0.40919149,9.3582287Q0.35130021,9.196434,0.30141759,9.0319929Q0.25153497,8.8675518,0.20978118,8.700861Q0.16802739,8.5341702,0.13450301,8.3656311Q0.10097862,8.197093,0.075764418,8.027113Q0.0505502,7.8571329,0.033706907,7.68612Q0.016863609,7.5151072,0.0084318044,7.3434734Q0,7.1718402,0,7Q0,6.8281598,0.0084318044,6.6565266Q0.016863609,6.4848933,0.033706907,6.3138804Q0.0505502,6.1428671,0.07576441,5.9728866Q0.10097862,5.802906,0.13450301,5.6343675Q0.16802739,5.4658289,0.20978117,5.2991385Q0.25153497,5.1324482,0.30141759,4.9680071Q0.35130021,4.803566,0.40919146,4.6417708Q0.46708274,4.4799757,0.53284317,4.3212156Q0.59860361,4.1624556,0.67207479,4.0071144Q0.74554598,3.8517723,0.82655102,3.700223Q0.90755594,3.5486732,0.99589956,3.4012804Q1.0842431,3.2538881,1.1797125,3.1110082Q1.2751819,2.9681282,1.3775471,2.8301048Q1.4799123,2.6920815,1.5889268,2.559247Q1.6979411,2.4264126,1.8133421,2.299087Q1.9287429,2.171762,2.0502524,2.0502524Q2.171762,1.9287429,2.299087,1.813342Q2.4264126,1.6979411,2.559247,1.5889268Q2.6920815,1.4799124,2.8301048,1.3775473Q2.9681282,1.275182,3.1110082,1.1797127Q3.2538881,1.0842432,3.4012806,0.99589968Q3.5486729,0.90755606,3.7002227,0.82655108Q3.8517723,0.74554604,4.0071139,0.67207485Q4.1624556,0.59860361,4.3212156,0.53284317Q4.4799757,0.46708274,4.6417708,0.40919149Q4.803566,0.35130021,4.9680071,0.30141759Q5.1324482,0.25153497,5.2991385,0.20978118Q5.4658289,0.16802739,5.6343675,0.13450301Q5.802906,0.10097862,5.9728866,0.075764418Q6.1428671,0.0505502,6.31388,0.033706907Q6.4848928,0.016863609,6.6565266,0.0084318044Q6.8281598,0,7,0Q7.1718402,0,7.3434739,0.0084318044Q7.5151072,0.016863609,7.68612,0.033706907Q7.8571329,0.0505502,8.027113,0.07576441Q8.197093,0.10097862,8.3656311,0.13450301Q8.5341702,0.16802739,8.700861,0.20978117Q8.8675518,0.25153497,9.0319929,0.30141759Q9.196434,0.35130021,9.3582287,0.40919146Q9.5200233,0.46708274,9.6787834,0.53284317Q9.8375435,0.59860361,9.9928856,0.67207479Q10.148228,0.74554598,10.299777,0.82655102Q10.451326,0.90755594,10.598719,0.99589956Q10.746111,1.0842431,10.88899,1.1797125Q11.03187,1.2751819,11.169893,1.3775471Q11.307918,1.4799123,11.440753,1.5889268Q11.573587,1.6979411,11.700912,1.8133421Q11.828238,1.9287429,11.949747,2.0502524Q12.071257,2.171762,12.186658,2.299087Q12.302058,2.4264126,12.411073,2.559247Q12.520086,2.6920815,12.622451,2.8301048Q12.724816,2.9681282,12.820286,3.1110082Q12.915755,3.2538881,13.004099,3.4012806Q13.092443,3.5486729,13.173449,3.7002227Q13.254454,3.8517723,13.327925,4.0071139Q13.401396,4.1624556,13.467155,4.3212156Q13.532916,4.4799757,13.590808,4.6417708Q13.648699,4.803566,13.698583,4.9680071Q13.748465,5.1324482,13.790218,5.2991385Q13.831971,5.4658289,13.865496,5.6343675Q13.899019,5.802906,13.924234,5.9728866Q13.94945,6.1428671,13.966293,6.31388Q13.983136,6.4848928,13.991568,6.6565266Q14,6.8281598,14,7ZM6.9999456,8.5557728C6.5703907,8.5557728,6.222168,8.20755,6.222168,7.7779951L6.222168,3.8891058C6.222168,3.4595511,6.5703907,3.1113281,6.9999456,3.1113281C7.4295006,3.1113281,7.7777233,3.4595511,7.7777233,3.8891058L7.7777233,7.7779951C7.7777233,8.20755,7.4295006,8.5557728,6.9999456,8.5557728ZM7.7777233,10.889106Q7.7777228,10.96571,7.7627783,11.040842Q7.7478328,11.115973,7.7185173,11.186747Q7.6892023,11.25752,7.6466436,11.321214Q7.604085,11.384909,7.5499172,11.439076Q7.4957495,11.493243,7.432055,11.535803Q7.3683605,11.578362,7.2975874,11.607677Q7.2268143,11.636992,7.1516819,11.651937Q7.0765495,11.666883,6.9999456,11.666883Q6.9233408,11.666883,6.8482084,11.651937Q6.7730756,11.636992,6.7023025,11.607677Q6.6315289,11.578362,6.5678344,11.535803Q6.5041404,11.493244,6.4499731,11.439077Q6.3958054,11.384909,6.3532467,11.321215Q6.3106875,11.25752,6.2813725,11.186747Q6.2520571,11.115973,6.2371125,11.040841Q6.222168,10.96571,6.222168,10.889106Q6.222168,10.8125,6.237113,10.737368Q6.2520571,10.662235,6.2813725,10.591462Q6.3106875,10.520689,6.3532462,10.456995Q6.3958054,10.3933,6.4499731,10.339133Q6.5041404,10.284966,6.5678349,10.242407Q6.6315289,10.199847,6.702302,10.170532Q6.7730751,10.141217,6.848208,10.126272Q6.9233408,10.111328,6.9999456,10.111328Q7.0765495,10.111328,7.1516819,10.126272Q7.2268143,10.141217,7.2975874,10.170532Q7.3683605,10.199847,7.432055,10.242407Q7.4957495,10.284966,7.5499167,10.339133Q7.604084,10.3933,7.6466436,10.456994Q7.6892023,10.520688,7.7185178,10.591461Q7.7478333,10.662235,7.7627783,10.737368Q7.7777228,10.8125,7.7777233,10.889106Z" fill-rule="evenodd" fill="#F29655" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="11" viewBox="0 0 16 11"><g><path d="M15.949896,5.2555661C16.016703,5.4388962,16.016703,5.5611272,15.949896,5.7444577C15.949896,5.7444577,15.883092,5.9277883,15.816283,5.9888978C15.749479,6.1722283,15.615868,6.3555694,15.482255,6.5999985C15.148229,7.0888891,14.680583,7.7000132,14.012527,8.3722239C12.743215,9.6555681,10.739035,11,8,11C5.2609663,11,3.2567897,9.6555681,1.987474,8.3722239C1.319415,7.7000132,0.85177505,7.0888891,0.51774478,6.5999985C0.51774478,6.5999985,0.18371604,5.9888978,0.18371604,5.9888978C0.11691014,5.9277883,0.050104432,5.7444577,0.050104432,5.7444577C-0.016701477,5.6222262,-0.016701477,5.4388962,0.050104432,5.2555661C0.050104432,5.2555661,0.1169103,5.0722361,0.18371604,5.0111141C0.25052202,4.8277841,0.38413364,4.6444426,0.51774478,4.4000139C0.85177356,3.9111221,1.319415,3.3000102,1.987474,2.6277888C3.2567489,1.3444551,5.2609239,0,7.9999585,0C10.738992,0,12.743169,1.3444551,14.012487,2.6277888C14.680545,3.3000102,15.148186,3.9111221,15.482213,4.400003C15.482213,4.400003,15.816243,5.0111032,15.816243,5.0111032C15.883049,5.0722246,15.949852,5.2555661,15.949852,5.2555661C15.949852,5.2555661,15.949896,5.2555661,15.949896,5.2555661ZM8.0000048,3.3000102C9.2025099,3.3000102,10.271409,4.2777824,10.271409,5.5000286C10.271409,6.72223,9.2025127,7.7000132,8.0000048,7.7000132C6.7974997,7.7000132,5.728601,6.72223,5.728601,5.5000286C5.728601,4.2777824,6.7974944,3.3000102,8.0000048,3.3000102C8.0000048,3.3000102,8.0000048,3.3000102,8.0000048,3.3000102ZM4.3924899,5.5000286C4.3924899,7.3333526,5.9958301,8.9222136,8.0000048,8.9222136C10.004179,8.9222136,11.607521,7.3333526,11.607521,5.5000286C11.607521,3.6666818,10.004179,2.0777981,8.0000048,2.0777981C5.9958305,2.0777981,4.3924899,3.6666818,4.3924899,5.5000286C4.3924899,5.5000286,4.3924899,5.5000286,4.3924899,5.5000286Z" fill="#1678FF" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><defs><clipPath id="master_svg0_106_82481"><rect x="0" y="0" width="14" height="14" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_106_82481)"><g><path d="M13.97271,6.999665275C13.891562,6.664800675,13.783504,6.337064275,13.64959,6.019664775C13.404864,5.411447975,13.081926,4.837849374999999,12.688967,4.313415075C12.110768,3.581627475,11.380726,2.984510075,10.549396,2.563414935C9.4433727,2.011644065,8.221776,1.732647761,6.9863548,1.7496645899C5.7502618,1.724446429,4.5259304,1.994385455,3.4145808,2.537164685C2.5844595,2.960120075,1.8547852,3.5569360750000003,1.2750096,4.287164675C0.87603199,4.822022175,0.55548692,5.411327375,0.32311872,6.037164675C0.18057276,6.345179575,0.07221707,6.667947775,0,6.999665275C0.082369737,7.336379975,0.19640799,7.664514075,0.34058478,7.979664775C0.5804258,8.602062275,0.90043324,9.190378675,1.2924757,9.729665275C1.8696687,10.462443375,2.5999486,11.059755375,3.4320469,11.479665775C4.5389404,12.015602875,5.7573576,12.279557875,6.9863548,12.249664875C8.2206593,12.275189875,9.4429007,12.002050875,10.549396,11.453415875C11.381495,11.033505475,12.111773,10.436194375,12.688967,9.703415875000001C13.086786,9.166357075,13.409948,8.577641475,13.64959,7.953415375C13.783248,7.644926075,13.891319,7.325930575,13.97271,6.999665275ZM12.837427,6.999665275C12.61424,7.708336375,12.27804,8.376138675,11.841871,8.977165675C11.375208,9.588168575000001,10.778562,10.087341275,10.095283,10.438415575C9.1284113,10.911903375,8.0622406,11.145957975,6.9863544,11.120915375C5.9230242,11.142092675,4.8697462,10.911237675,3.9123583,10.447165475C3.2290792,10.096089375,2.6324337,9.596917675,2.1657696,8.985916175C1.7243083,8.382339475,1.3822936,7.711744275,1.1527486,6.999665275C1.3787415,6.285076175,1.7178229,5.611497675,2.157037,5.004664875C2.6253767,4.395274375,3.2216303,3.896429775,3.903626,3.543414875C4.8629971,3.076080175,5.9198942,2.845088575,6.9863548,2.869664675C8.0470734,2.846531975,9.097971,3.077520975,10.051619,3.543414875C10.730993,3.900371775,11.326464,4.398561675,11.798207,5.004664875C12.250916,5.608408675,12.601961,6.282314275,12.837427,6.999665275ZM6.9863548,4.252164875C5.4805121,4.237688074999999,4.2485065,5.449904675,4.2356339,6.958702575C4.2227607,8.467500675,5.4339018,9.700643575,6.9397717,9.711963175000001C8.4456415,9.723282775000001,9.6751127,8.508486275,9.6848345,6.999665275C9.7042675,5.491362375,8.4918356,4.256905075000001,6.9863548,4.252164875ZM8.5757504,6.999665275C8.5804882,7.425781275,8.41364,7.835830675,8.1129045,8.137165075C7.5027294,8.764733275000001,6.4961782,8.764733275000001,5.886004,8.137165075C5.2691822,7.504751175,5.2691822,6.494578875,5.886004,5.862165475C6.500319,5.244508475,7.4985895,5.244508475,8.1129045,5.862165475C8.41364,6.163498375,8.5804882,6.573548775,8.5757504,6.999665275Z" fill="#1678FF" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="14" height="14" viewBox="0 0 14 14"><g><g><rect x="0" y="5.958888053894043" width="14" height="2.0841517448425293" rx="1.0420758724212646" fill="#1678FF" fill-opacity="1"/><g transform="matrix(0,1,-1,0,8.041714668273926,-8.041714668273926)"><rect x="8.041714668273926" y="0" width="14" height="2.0841517448425293" rx="1.0420758724212646" fill="#1678FF" fill-opacity="1"/></g></g></g></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="none" version="1.1" width="16" height="16" viewBox="0 0 16 16"><defs><clipPath id="master_svg0_141_32160"><rect x="0" y="0" width="16" height="16" rx="0"/></clipPath></defs><g clip-path="url(#master_svg0_141_32160)"><g><path d="M15.949896,7.7555661C16.016703,7.9388962,16.016703,8.0611272,15.949896,8.2444577C15.949896,8.2444577,15.883092,8.4277883,15.816283,8.4888978C15.749479,8.6722283,15.615868,8.8555694,15.482255,9.0999985C15.148229,9.5888891,14.680583,10.2000132,14.012527,10.8722239C12.743215,12.1555681,10.739035,13.5,8,13.5C5.2609663,13.5,3.2567897,12.1555681,1.987474,10.8722239C1.319415,10.2000132,0.85177505,9.5888891,0.51774478,9.0999985C0.51774478,9.0999985,0.18371604,8.4888978,0.18371604,8.4888978C0.11691014,8.4277883,0.050104432,8.2444577,0.050104432,8.2444577C-0.016701477,8.1222262,-0.016701477,7.9388962,0.050104432,7.7555661C0.050104432,7.7555661,0.1169103,7.5722361,0.18371604,7.5111141C0.25052202,7.3277841,0.38413364,7.1444426,0.51774478,6.9000139C0.85177356,6.4111221,1.319415,5.8000102,1.987474,5.127788799999999C3.2567489,3.8444551000000002,5.2609239,2.5,7.9999585,2.5C10.738992,2.5,12.743169,3.8444551000000002,14.012487,5.127788799999999C14.680545,5.8000102,15.148186,6.4111221,15.482213,6.900003C15.482213,6.900003,15.816243,7.5111032,15.816243,7.5111032C15.883049,7.5722246,15.949852,7.7555661,15.949852,7.7555661C15.949852,7.7555661,15.949896,7.7555661,15.949896,7.7555661ZM8.0000048,5.8000102C9.2025099,5.8000102,10.271409,6.7777824,10.271409,8.0000286C10.271409,9.22223,9.2025127,10.2000132,8.0000048,10.2000132C6.7974997,10.2000132,5.728601,9.22223,5.728601,8.0000286C5.728601,6.7777824,6.7974944,5.8000102,8.0000048,5.8000102C8.0000048,5.8000102,8.0000048,5.8000102,8.0000048,5.8000102ZM4.3924899,8.0000286C4.3924899,9.833352600000001,5.9958301,11.4222136,8.0000048,11.4222136C10.004179,11.4222136,11.607521,9.833352600000001,11.607521,8.0000286C11.607521,6.1666818,10.004179,4.5777981,8.0000048,4.5777981C5.9958305,4.5777981,4.3924899,6.1666818,4.3924899,8.0000286C4.3924899,8.0000286,4.3924899,8.0000286,4.3924899,8.0000286Z" fill="#1678FF" fill-opacity="1" style="mix-blend-mode:passthrough"/></g></g></svg>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
export interface FileListProps {
|
|
4
|
+
/**
|
|
5
|
+
* 列表数据
|
|
6
|
+
*/
|
|
7
|
+
fileList: Array<object>;
|
|
8
|
+
token: string;
|
|
9
|
+
tokenTY: string;
|
|
10
|
+
accessToken: string;
|
|
11
|
+
userInfo: object;
|
|
12
|
+
baseUrl: string;
|
|
13
|
+
env: string;
|
|
14
|
+
isPC?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
style?: object;
|
|
17
|
+
download: (value: any) => void;
|
|
18
|
+
valChange: (value: any) => void;
|
|
19
|
+
}
|
|
20
|
+
declare const FileList: React.FC<FileListProps>;
|
|
21
|
+
export default FileList;
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
exports.__esModule = true;
|
|
5
|
+
exports["default"] = void 0;
|
|
6
|
+
var _react = _interopRequireDefault(require("react"));
|
|
7
|
+
var _item = _interopRequireDefault(require("./item"));
|
|
8
|
+
require("./index.scss");
|
|
9
|
+
var MATERIAL_TYPE = {
|
|
10
|
+
1: '原件',
|
|
11
|
+
2: '复印件',
|
|
12
|
+
3: '原件或复印件',
|
|
13
|
+
4: '有电子签章的电子证照',
|
|
14
|
+
5: '证照扫描件'
|
|
15
|
+
};
|
|
16
|
+
var MATERIAL_FORMAT = {
|
|
17
|
+
1: 'doc',
|
|
18
|
+
2: 'docx',
|
|
19
|
+
3: 'ofd',
|
|
20
|
+
4: 'pdf',
|
|
21
|
+
5: 'xlsx',
|
|
22
|
+
6: 'xls',
|
|
23
|
+
7: 'png',
|
|
24
|
+
8: 'jpg',
|
|
25
|
+
9: 'jpeg',
|
|
26
|
+
10: 'gif',
|
|
27
|
+
11: 'bmp',
|
|
28
|
+
12: 'zip',
|
|
29
|
+
13: 'rar',
|
|
30
|
+
14: 'mp3',
|
|
31
|
+
15: 'mp4',
|
|
32
|
+
16: 'xml'
|
|
33
|
+
};
|
|
34
|
+
var FileList = function FileList(_ref) {
|
|
35
|
+
var fileList = _ref.fileList,
|
|
36
|
+
token = _ref.token,
|
|
37
|
+
tokenTY = _ref.tokenTY,
|
|
38
|
+
accessToken = _ref.accessToken,
|
|
39
|
+
userInfo = _ref.userInfo,
|
|
40
|
+
baseUrl = _ref.baseUrl,
|
|
41
|
+
env = _ref.env,
|
|
42
|
+
isPC = _ref.isPC,
|
|
43
|
+
disabled = _ref.disabled,
|
|
44
|
+
isShowLib = _ref.isShowLib,
|
|
45
|
+
style = _ref.style,
|
|
46
|
+
download = _ref.download,
|
|
47
|
+
valChange = _ref.valChange;
|
|
48
|
+
var convertNumbersToChinese = function convertNumbersToChinese(str) {
|
|
49
|
+
// 定义基础映射关系
|
|
50
|
+
var digitMap = {
|
|
51
|
+
'0': '〇',
|
|
52
|
+
'1': '一',
|
|
53
|
+
'2': '二',
|
|
54
|
+
'3': '三',
|
|
55
|
+
'4': '四',
|
|
56
|
+
'5': '五',
|
|
57
|
+
'6': '六',
|
|
58
|
+
'7': '七',
|
|
59
|
+
'8': '八',
|
|
60
|
+
'9': '九'
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
// 使用正则表达式全局匹配所有数字字符并进行替换
|
|
64
|
+
return String(str).replace(/\d/g, function (matchedDigit) {
|
|
65
|
+
return digitMap[matchedDigit];
|
|
66
|
+
}) + '、';
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
// 拼接材料的提示文案 - 一级材料
|
|
70
|
+
var getTipText = function getTipText(item) {
|
|
71
|
+
console.log('getTipText', item);
|
|
72
|
+
var materialSize = item.materialSize,
|
|
73
|
+
materialSpec = item.materialSpec,
|
|
74
|
+
materialType = item.materialType;
|
|
75
|
+
if (!materialSpec) return '';
|
|
76
|
+
var formatText = materialSpec.split(',').map(function (i) {
|
|
77
|
+
return MATERIAL_FORMAT[i];
|
|
78
|
+
}).join('、');
|
|
79
|
+
var sizeText = materialSize ? "\u5355\u4E2A\u4E0D\u8D85\u8FC7\u3010" + materialSize + "MB\u3011" : '';
|
|
80
|
+
return "\u9700\u4E0A\u4F20\u3010" + MATERIAL_TYPE[materialType] + "\u3011\uFF0C\u652F\u6301\u3010" + formatText + "\u3011\u683C\u5F0F\u3002" + sizeText;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
// 拼接材料的提示文案 - 二级材料
|
|
84
|
+
var getTipTextForSubMaterial = function getTipTextForSubMaterial(item, index, subIndex) {
|
|
85
|
+
var subMaterials = fileList[index].subMaterials;
|
|
86
|
+
console.log('getTipTextForSubMaterial', item, index, subIndex);
|
|
87
|
+
console.log('subMaterials', subMaterials);
|
|
88
|
+
var materialSize = item.materialSize,
|
|
89
|
+
materialSpec = item.materialSpec,
|
|
90
|
+
materialType = item.materialType;
|
|
91
|
+
var groupId = fileList[index].subMaterials[subIndex].groupId;
|
|
92
|
+
if (!materialSpec) return '';
|
|
93
|
+
var formatText = materialSpec.split(',').map(function (i) {
|
|
94
|
+
return MATERIAL_FORMAT[i];
|
|
95
|
+
}).join('、');
|
|
96
|
+
var sameGroupIdMaterials = subMaterials.filter(function (m) {
|
|
97
|
+
return m.groupId === groupId;
|
|
98
|
+
});
|
|
99
|
+
var materialNames = sameGroupIdMaterials.map(function (m) {
|
|
100
|
+
return m.materialName;
|
|
101
|
+
});
|
|
102
|
+
var text = '';
|
|
103
|
+
if (materialNames.length > 1) {
|
|
104
|
+
text = "\u3010" + materialNames.join('和') + "\u3011\u81F3\u5C11\u4E0A\u4F20\u4E00\u4EFD\uFF0C";
|
|
105
|
+
}
|
|
106
|
+
var sizeText = materialSize ? "\u5355\u4E2A\u4E0D\u8D85\u8FC7\u3010" + materialSize + "MB\u3011" : '';
|
|
107
|
+
console.log('text', sizeText);
|
|
108
|
+
return text + "\u9700\u4E0A\u4F20\u3010" + MATERIAL_TYPE[materialType] + "\u3011\uFF0C\u652F\u6301\u3010" + formatText + "\u3011\u683C\u5F0F\u3002" + sizeText;
|
|
109
|
+
};
|
|
110
|
+
var handleChange = function handleChange(value, fileIndex, index, subIndex) {
|
|
111
|
+
console.log('handleChange', value, fileIndex, index, subIndex);
|
|
112
|
+
// 先找到一级目录
|
|
113
|
+
var oneLevelItem = fileList[index];
|
|
114
|
+
// 如果subIndex有值。再去找一下二级目录
|
|
115
|
+
if (subIndex !== undefined) {
|
|
116
|
+
// value为空,说明删除了
|
|
117
|
+
if (!value) {
|
|
118
|
+
// 如果当前文件list中只有一个文件,还得补个空的
|
|
119
|
+
if (oneLevelItem.subMaterials[subIndex].fileList.length === 1) {
|
|
120
|
+
oneLevelItem.subMaterials[subIndex].fileList = [{
|
|
121
|
+
fileId: ''
|
|
122
|
+
}];
|
|
123
|
+
} else {
|
|
124
|
+
oneLevelItem.subMaterials[subIndex].fileList.splice(fileIndex, 1);
|
|
125
|
+
}
|
|
126
|
+
} else {
|
|
127
|
+
// 如果当前这个位置的fileId是空的。说明这次修改是新增
|
|
128
|
+
var isAdd = !oneLevelItem.subMaterials[subIndex].fileList[fileIndex].fileId;
|
|
129
|
+
oneLevelItem.subMaterials[subIndex].fileList[fileIndex] = value;
|
|
130
|
+
if (isAdd && oneLevelItem.subMaterials[subIndex].fileList.length < 10) {
|
|
131
|
+
oneLevelItem.subMaterials[subIndex].fileList.push({
|
|
132
|
+
fileId: ''
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
} else {
|
|
137
|
+
if (!value) {
|
|
138
|
+
oneLevelItem.fileList.splice(fileIndex, 1);
|
|
139
|
+
if (oneLevelItem.fileList.length === 0) {
|
|
140
|
+
oneLevelItem.fileList.push({
|
|
141
|
+
fileId: ''
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
} else {
|
|
145
|
+
// 如果当前这个位置的fileId是空的。说明这次修改是新增
|
|
146
|
+
var _isAdd = !oneLevelItem.fileList[fileIndex].fileId;
|
|
147
|
+
oneLevelItem.fileList[fileIndex] = value;
|
|
148
|
+
if (_isAdd && oneLevelItem.fileList.length < 10) {
|
|
149
|
+
oneLevelItem.fileList.push({
|
|
150
|
+
fileId: ''
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
console.log('fileList--------res', fileList);
|
|
156
|
+
valChange(fileList);
|
|
157
|
+
};
|
|
158
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
159
|
+
className: "file_list",
|
|
160
|
+
style: style
|
|
161
|
+
}, fileList.map(function (item, index) {
|
|
162
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
163
|
+
className: "file_level_one"
|
|
164
|
+
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
165
|
+
className: "name_level_one"
|
|
166
|
+
}, convertNumbersToChinese(index + 1), item.materialName), item.subMaterials && item.subMaterials.length > 0 ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
167
|
+
className: "file_level_two"
|
|
168
|
+
}, item.subMaterials.map(function (child, subIndex) {
|
|
169
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
170
|
+
className: "file_level_two_item"
|
|
171
|
+
}, /*#__PURE__*/_react["default"].createElement("p", {
|
|
172
|
+
className: "name_level_two"
|
|
173
|
+
}, subIndex + 1, "\u3001", child.materialName), /*#__PURE__*/_react["default"].createElement("p", {
|
|
174
|
+
className: "tip"
|
|
175
|
+
}, getTipTextForSubMaterial(item, index, subIndex)), child.fileList.map(function (file, i) {
|
|
176
|
+
return /*#__PURE__*/_react["default"].createElement(_item["default"], {
|
|
177
|
+
index: index,
|
|
178
|
+
subIndex: subIndex,
|
|
179
|
+
fileIndex: i,
|
|
180
|
+
file: file,
|
|
181
|
+
fileConfig: child,
|
|
182
|
+
maxFileSize: item.materialSize,
|
|
183
|
+
spec: item.materialSpec,
|
|
184
|
+
userInfo: userInfo,
|
|
185
|
+
token: token,
|
|
186
|
+
tokenTY: tokenTY,
|
|
187
|
+
accessToken: accessToken,
|
|
188
|
+
baseUrl: baseUrl,
|
|
189
|
+
env: env,
|
|
190
|
+
isPC: isPC,
|
|
191
|
+
disabled: disabled,
|
|
192
|
+
download: download,
|
|
193
|
+
valChange: handleChange,
|
|
194
|
+
style: {
|
|
195
|
+
marginBottom: '12px'
|
|
196
|
+
}
|
|
197
|
+
});
|
|
198
|
+
}));
|
|
199
|
+
})) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("p", {
|
|
200
|
+
className: "tip"
|
|
201
|
+
}, getTipText(item)), item.fileList.map(function (file, i) {
|
|
202
|
+
return /*#__PURE__*/_react["default"].createElement(_item["default"], {
|
|
203
|
+
index: index,
|
|
204
|
+
fileIndex: i,
|
|
205
|
+
file: file,
|
|
206
|
+
fileConfig: item,
|
|
207
|
+
maxFileSize: item.materialSize,
|
|
208
|
+
spec: item.materialSpec,
|
|
209
|
+
isShowLib: isShowLib,
|
|
210
|
+
userInfo: userInfo,
|
|
211
|
+
token: token,
|
|
212
|
+
tokenTY: tokenTY,
|
|
213
|
+
accessToken: accessToken,
|
|
214
|
+
baseUrl: baseUrl,
|
|
215
|
+
env: env,
|
|
216
|
+
isPC: isPC,
|
|
217
|
+
disabled: disabled,
|
|
218
|
+
download: download,
|
|
219
|
+
valChange: handleChange,
|
|
220
|
+
style: {
|
|
221
|
+
marginBottom: '12px'
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
})));
|
|
225
|
+
}));
|
|
226
|
+
};
|
|
227
|
+
var _default = exports["default"] = FileList;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
.file_list {
|
|
2
|
+
.file_level_one {
|
|
3
|
+
background: #ffffff;
|
|
4
|
+
border-radius: 8px;
|
|
5
|
+
padding: 16px 12px;
|
|
6
|
+
margin-bottom: 12px;
|
|
7
|
+
|
|
8
|
+
.tip {
|
|
9
|
+
font-size: 12px;
|
|
10
|
+
color: #999999;
|
|
11
|
+
margin-top: 8px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.name_level_one {
|
|
15
|
+
font-size: 15px;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
color: #333333;
|
|
18
|
+
padding-bottom: 16px;
|
|
19
|
+
border-bottom: 1px solid #EEEEEE;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.file_level_two {
|
|
23
|
+
margin-top: 16px;
|
|
24
|
+
|
|
25
|
+
.file_level_two_item {
|
|
26
|
+
margin-bottom: 16px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.name_level_two {
|
|
30
|
+
font-size: 14px;
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
color: #323232;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './item.scss';
|
|
3
|
+
export interface FileItemProps {
|
|
4
|
+
index: number;
|
|
5
|
+
subIndex: number;
|
|
6
|
+
fileIndex: number;
|
|
7
|
+
file: object;
|
|
8
|
+
fileConfig: object;
|
|
9
|
+
token: string;
|
|
10
|
+
tokenTY: string;
|
|
11
|
+
accessToken: string;
|
|
12
|
+
baseUrl: string;
|
|
13
|
+
env: string;
|
|
14
|
+
isPC?: boolean;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
maxFileSize: number;
|
|
17
|
+
spec: string;
|
|
18
|
+
isInValid: boolean;
|
|
19
|
+
isShowLib: boolean;
|
|
20
|
+
userInfo: object;
|
|
21
|
+
style?: object;
|
|
22
|
+
del: () => void;
|
|
23
|
+
valChange: (value: any, fileIndex: any, index: any, subIndex: any) => void;
|
|
24
|
+
download: (value: any) => void;
|
|
25
|
+
}
|
|
26
|
+
declare const FileItem: React.FC<FileItemProps>;
|
|
27
|
+
export default FileItem;
|