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

feat: 增加border更新例子

上级 a8798564
<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.
先完成此消息的编辑!
想要评论请 注册