Vue杂记

Vue杂记

  • 是否加样式或者类名(动态属性)、scope.row能拿到data数据
<el-table-column prop="status" label="状态">
        <template slot-scope="scope">
          <span :style="{color: scope.row.status === '正常' ? 'green' : 'red'}">{{ scope.row.status }}</span>
        </template>
</el-table-column>

相关文章

可以通过min-width属性来设置el-table-column的最小宽度。以...
yarn dev,当文件变动后,会自动重启。 yanr start不会自动重...
ref 用于创建一个对值的响应式引用。这个值可以是原始值(如...
通过修改 getWK005 函数来实现这一点。这里的 query 参数就是...
&lt;el-form-item label=&quot;入库类型&quot; ...
API 变动 样式类名变化: 一些组件的样式类名有所变动,可能需...