动态代码

# 基础用法

下面是动态代码的基础用法。

<template>
  <div class="t-dynamic-code-area">
    <as-animation-dynamic-code>
    </as-animation-dynamic-code>
  </div>
</template>
<script>
export default {
  name: "t-dynamic-code"
}
</script>

<style>
.t-dynamic-code-area{
  width: 100%;
  height: 340px;
}
@media screen and (max-width: 480px) {
  .t-dynamic-code-area{
    height: 140px;
  }
}
</style>
Expand Copy

# Attributes

参数 说明 必填
text 文字内容,类型为String,默认值为I LOVE YOU。
text-color 文字颜色,类型为String,默认值为#00cc33。
font-size 字体大小,单位px,类型为Number,默认值为16。