<script setup>/***
 * name：style v-bind 示例
 * user：sa0ChunLuyu
 * date：2022-04-13 09:20:12
 */
const opacity = ref(1)
</script>
<template>
  <tr>
    <td>动态 Style v-bind</td>
    <td class="opt">滑动滑块查看效果</td>
    <td>
      <n-slider v-model:value="opacity" :step="0.01" :min="0" :max="1"/>
    </td>
  </tr>
</template>
<style scoped>
.opt {
  opacity: v-bind(opacity);
}
</style>
