diff --git a/scripts/copyh5.cjs b/scripts/copyh5.cjs index 14f6d0412f..b3707f9d97 100644 --- a/scripts/copyh5.cjs +++ b/scripts/copyh5.cjs @@ -67,7 +67,7 @@ const copy = async () => { const fromConfig = await fse.readJson(configPath); fromConfig.nav.forEach(({ packages }) => { packages.forEach((item) => { - if (item.show) { + if (item.show !== false) { let cmpName = item.name.toLowerCase(); let docpath = `src/packages/__VUE/${cmpName}/doc.md`; let docEnPath = `src/packages/__VUE/${cmpName}/doc.en-US.md`; diff --git a/scripts/copymd.cjs b/scripts/copymd.cjs index ec1df24d49..87e1796e5a 100644 --- a/scripts/copymd.cjs +++ b/scripts/copymd.cjs @@ -34,7 +34,7 @@ const copy = async () => { const fromConfig = await fse.readJson(configPath); fromConfig.nav.forEach(({ packages }) => { packages.forEach((item) => { - if (item.show) { + if (item.show !== false) { let cmpName = item.name.toLowerCase(); let docpath = `src/packages/__VUE/${cmpName}/doc.md`; let docEnPath = `src/packages/__VUE/${cmpName}/doc.en-US.md`; diff --git a/scripts/copytaro.cjs b/scripts/copytaro.cjs index c6fb003dd2..ee6c0b35ed 100644 --- a/scripts/copytaro.cjs +++ b/scripts/copytaro.cjs @@ -67,7 +67,7 @@ const copy = async () => { const fromConfig = await fse.readJson(configPath); fromConfig.nav.forEach(({ packages }) => { packages.forEach((item) => { - if (item.show) { + if (item.show !== false) { let cmpName = item.name.toLowerCase(); let doctaropath = `src/packages/__VUE/${cmpName}/doc.taro.md`; fse.readFile(doctaropath, (err, data) => {