提交 6c6acf0f 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

Revert "feat: 增加border更新例子"

This reverts commit a1089139.
上级 71da3ba2
<template>
<!-- #ifdef APP -->
<scroll-view style="flex:1">
<!-- #endif -->
<view>
<button @click="handleUpdate">点击更新border样式</button>
<view class="border-view" :style="borderStyle"></view>
</view>
<!-- #ifdef APP -->
</scroll-view>
<!-- #endif -->
</template>
<script setup>
let borderStyle = ref("border:3px solid red;")
const handleUpdate = () => {
borderStyle.value = "border:7px solid red;"
}
</script>
<style>
.border-view {
width: 150px;
height: 150px;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册