mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix: not default require reset.css
This commit is contained in:
parent
6fda3568da
commit
1e34782657
@ -52,7 +52,7 @@ Object.keys(components).forEach((componentName) => {
|
|||||||
const dir = path.join(__dirname, '../../lib/', componentName, '/style');
|
const dir = path.join(__dirname, '../../lib/', componentName, '/style');
|
||||||
const file = path.join(dir, 'index.js');
|
const file = path.join(dir, 'index.js');
|
||||||
const cssPath = path.join(__dirname, '../../lib/vant-css/', `${componentName}.css`);
|
const cssPath = path.join(__dirname, '../../lib/vant-css/', `${componentName}.css`);
|
||||||
const content = [`require('../../vant-css/base.css');`];
|
const content = [];
|
||||||
if (fs.existsSync(cssPath)) {
|
if (fs.existsSync(cssPath)) {
|
||||||
content.push(`require('../../vant-css/${componentName}.css');`);
|
content.push(`require('../../vant-css/${componentName}.css');`);
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
import CellSwipe from './components/CellSwipe.vue'
|
import CellSwipe from './src/cell-swipe';
|
||||||
|
|
||||||
export default CellSwipe;
|
export default CellSwipe;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user