Skip to content

Commit ea03db1

Browse files
committed
wip(x): 支持 :host 选择器
1 parent d83bcee commit ea03db1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/uni-mp-alipay/src/compiler/options.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ export const miniProgram: MiniProgramCompilerOptions = {
5252
},
5353
directive: 'a:',
5454
component: {
55+
// 支付宝小程序支持 :host 选择器
56+
':host': true,
5557
dir: COMPONENTS_DIR,
5658
getPropertySync: true,
5759
},

0 commit comments

Comments
 (0)