Skip to content

Commit ee32439

Browse files
committed
wip(x): 支付宝小程序 radio 组件不支持嵌套其他标签
1 parent 2c137d6 commit ee32439

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/uni-mp-vite/lib/uvue.css

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@ checkbox {
190190
align-items: center;
191191
}
192192

193+
/* #ifdef MP-WEIXIN */
193194
/*
194195
* 目前仅适配微信小程序,其他小程序平台需要额外适配
195196
*/
@@ -200,4 +201,5 @@ radio .wx-radio-wrapper{
200201
justify-content: inherit;
201202
align-items: inherit;
202203
flex: 1;
203-
}
204+
}
205+
/* #endif */

packages/uni-mp-vite/src/plugin/index.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
parseManifestJsonOnce,
1313
parseRpx2UnitOnce,
1414
parseUniXFlexDirection,
15+
preCss,
1516
resolveBuiltIn,
1617
resolveVueI18nRuntime,
1718
} from '@dcloudio/uni-cli-shared'
@@ -266,9 +267,9 @@ export function uniMiniProgramPlugin(
266267
}
267268

268269
export function genUVueCssCode(manifestJson: Record<string, any>) {
269-
let cssCode = fs.readFileSync(
270-
path.resolve(__dirname, '../../lib/uvue.css'),
271-
'utf8'
270+
let cssCode = preCss(
271+
fs.readFileSync(path.resolve(__dirname, '../../lib/uvue.css'), 'utf8'),
272+
'uvue.css'
272273
)
273274
const flexDirection = parseUniXFlexDirection(manifestJson)
274275
if (flexDirection !== 'column') {

0 commit comments

Comments
 (0)