16 行
259 B
Plaintext
16 行
259 B
Plaintext
<template>
|
|
<!-- 测试外部class和style是否会覆盖到 二级组件根节点上 -->
|
|
<view class="box">
|
|
<text>我是二级组件</text>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup lang="uts">
|
|
</script>
|
|
|
|
<style>
|
|
.box{
|
|
background-color: #55aa00;
|
|
}
|
|
</style>
|