diff --git a/components.d.ts b/components.d.ts index 0f9b83fbda78670576f188332aae173d8cacaf7a..88c8f2d173785e7def44fa2d215edc177e850669 100644 --- a/components.d.ts +++ b/components.d.ts @@ -14,13 +14,9 @@ declare module 'vue' { FilmList: typeof import('./src/components/film-list/index.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] - VanCell: typeof import('vant/es')['Cell'] VanIcon: typeof import('vant/es')['Icon'] - VanIndexAnchor: typeof import('vant/es')['IndexAnchor'] - VanIndexBar: typeof import('vant/es')['IndexBar'] VanList: typeof import('vant/es')['List'] VanNavBar: typeof import('vant/es')['NavBar'] - VanSearch: typeof import('vant/es')['Search'] VanTab: typeof import('vant/es')['Tab'] VanTabbar: typeof import('vant/es')['Tabbar'] VanTabbarItem: typeof import('vant/es')['TabbarItem'] diff --git a/postcss.config.cjs b/postcss.config.cjs index 82676bd1a333191651e1c31bf1208d8ea65dedcb..a90540eecd529f7fe932ed9387cba174551d3aac 100644 --- a/postcss.config.cjs +++ b/postcss.config.cjs @@ -7,14 +7,21 @@ module.exports = { // viewportWidth: 375, // UI设计稿的宽度 // }, - "postcss-pxtorem": { - // 375 =》 37.5 - // 750 =》 75 - // rootValue: 75, // UI设计搞 / 10 - rootValue({ file }) { - return file.indexOf("vant") !== -1 ? 37.5 : 75; - }, - propList: ["*"], + // "postcss-pxtorem": { + // // 375 =》 37.5 + // // 750 =》 75 + // // rootValue: 75, // UI设计搞 / 10 + // rootValue({ file }) { + // return file.indexOf("vant") !== -1 ? 37.5 : 75; + // }, + // propList: ["*"], + // }, + + // 375设计稿 + 'postcss-pxtorem': { + // 375 /10 750 /10 + rootValue: 37.5, //UI设计稿 / 10 + propList: ['*'], // 所有属性转成rem }, }, };