你可以使用Vue的数据绑定功能,根据数据的状态动态地改变el-button的字体颜色。这种方法适用于需要根据数据状态改变样式的场景。 html <template> <div> <el-button :style="{ color: buttonColor }">按钮</el-button> </div> </template> <script> export...