摘要:
1、为table添加分页: :pagination="pagination" pagination: { defaultPageSize: 10, showTotal: (total) => `共${total} 条数据`, total: 0, showSizeChanger: true, pageSizeOptions: ['10', '20', '50'], onShowSizeChange: 阅读全文
posted @ 2019-10-25 16:55
甜甜宝宝
阅读(5968)
评论(0)
推荐(0)
摘要:
例如: 想要回显id为1的温度, 结果直接在select框中显示了1,而不是选中了温度, 此时因为select中的value是string类型, 而我们设置的id是number类型, 对应不上, 所以想要选中value为1的option, 就需要把id.toString() 阅读全文
posted @ 2019-10-25 16:47
甜甜宝宝
阅读(14635)
评论(1)
推荐(2)