Files
mes-ui-d2/src/pages/demo/d2-crud/demo1/doc.md
孙昊翔 9887ce8af5 d2-crud 基础表格
Former-commit-id: e570bc03852b769639b4888c85a07d6b60ec66b9 [formerly e570bc03852b769639b4888c85a07d6b60ec66b9 [formerly e570bc03852b769639b4888c85a07d6b60ec66b9 [formerly e570bc03852b769639b4888c85a07d6b60ec66b9 [formerly 707df6e0ca4a201395966c5e5db0e004d0d862fc [formerly 5a79488d6cc3085a3e2402dd4b2b05de73e12ef5]]]]]
Former-commit-id: 29aa5969dec9e481a39e6381488a9d14324e895e
Former-commit-id: 27f8d12d043c1ba6c198c8d953adbd8024ff07a6
Former-commit-id: 30222bdfe002872f406308fd6ce58fc4b095b040 [formerly 5d145a6340be0ea300cb77fb07848438cd06a00a]
Former-commit-id: 2254fedb068df677e5eb677081710d3947fe0b1f
Former-commit-id: 8f3dc6459698c11ab8c5b90f213d371ec39e9aa9
Former-commit-id: 420d4c39c6e0568249385387881a0378ff8d6221
Former-commit-id: c8dd9bbcc602ebe89b26bb8b62cc753f94171956
Former-commit-id: 8b4d42e1428c7340f56bcdfc4cd7b5f696fe7c97
2018-08-28 16:46:06 +08:00

2 lines
377 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

`D2 Crud` 组件中传入 `columns``data` 对象数组,即可创建一个最基础的表格,`columns` 中的 `key` 需要与 `data` 中对象的key严格对照可以在 `columns` 对象中传入 `width` 属性来控制列宽。当表格中的数据通过操作变化时,可以通过 `this.$refs.d2Crud.d2Data` 拿到变化后的表格数据。代码如下: