diff --git a/build/bin/build-lib.js b/build/bin/build-lib.js index d20e2ba7c..b173bb4dc 100644 --- a/build/bin/build-lib.js +++ b/build/bin/build-lib.js @@ -42,7 +42,7 @@ components.forEach((componentName) => { const dir = path.join(__dirname, '../../lib/', componentName, '/style'); const file = path.join(dir, 'index.js'); const cssPath = path.join(__dirname, '../../lib/vant-css/', `${componentName}.css`); - const content = []; + const content = [`require('../../vant-css/base.css');`]; if (fs.existsSync(cssPath)) { content.push(`require('../../vant-css/${componentName}.css');`); } diff --git a/packages/actionsheet/index.vue b/packages/actionsheet/index.vue index 04f206ba2..0ce765aaa 100644 --- a/packages/actionsheet/index.vue +++ b/packages/actionsheet/index.vue @@ -1,7 +1,7 @@