Skip to content

🤔 🤔 🤔 (置顶公告)常见问题列表 #422

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
xuliangzhan opened this issue Oct 12, 2019 · 0 comments
Closed

🤔 🤔 🤔 (置顶公告)常见问题列表 #422

xuliangzhan opened this issue Oct 12, 2019 · 0 comments

Comments

@xuliangzhan
Copy link
Collaborator

xuliangzhan commented Oct 12, 2019

问题描述:2.9.24+ 分组列头支持 vxe-colgroup(旧 vxe-table-colgroup),原先的 vxe-column(旧 vxe-table-column)也正常支持

老用法(已废弃):

<vxe-table-colgroup></vxe-table-colgroup>
<vxe-table-column></vxe-table-column>

新用法:

<vxe-column></vxe-column>
<vxe-colgroup></vxe-colgroup>

表格依赖的 xe-utils 工具函数库是否可以单独使用?

import XEUtils from 'xe-utils'

// API 文档 https://vxeui.com/xe-utils/
XEUtils.toDateString(new Date(), 'yyyy-MM-hh')

关于 table 和 grid 的区别

vxe-table 基础表格:标签方式调用,用于静态列,渲染性能较弱。
vxe-grid 配置式表格:JSON方式调用,全动态方式;集成 vxe-table、vxe-toolbar、vxe-form 、vxe-pager 自定义布局于一体的全功能高性能表格,渲染性能较强。

关于 columnIndex、$columnIndex、_columnIndex、rowIndex、$rowIndex、_rowIndex 的区别?

表格有 3 套索引机制:
行索引:rowIndex、$rowIndex、_rowIndex
列索引:columnIndex、$columnIndex、_columnIndex

row:行数据对象
rowIndex:指向 props.data 中的索引,对应方法 getRowIndex(row)
$rowIndex:指向可视区渲染中的行索引,对应方法 getVMRowIndex(row)
_rowIndex:指向当前表格数据的索引,对应方法 getVTRowIndex(row)

column:列配置对象
columnIndex:指向 props.columns 中的索引,对应方法 getColumnIndex(column)
$columnIndex:指向可视区渲染中的列索引,对应方法 getVMColumnIndex(column)
_columnIndex:指向当前表格列的索引,对应方法 getVTColumnIndex(column)

表格支持哪些可编辑列渲染?

查看文档

默认支持原生的 input、select、textarea 可编辑列渲染,也支持 UI 库的 VxeInput、VxeSelect、VxeTextarea 等可编辑列渲染,您可以任意选择使用自行封装的组件或者第三方组件库都是可以集成渲染的

将多个表格放在显示隐藏的 Tab 切换中,会导致列宽错乱?

查看文档

对于这种非常规渲染的的场景,你可以使用 auto-resize 或者 sync-resize 或者在显示完之后手动
调用 recalculate 方法

表格动态 insert 或 remove 的数据都不同步 data 吗

查看文档

这是该组件设计原理,任何动态的数据都属于临时数据,不会双向同步 data 属性,
可以通过 data.push 自行去操作数据源,将放弃内部 CRUD 管理行为
@xuliangzhan xuliangzhan pinned this issue Oct 12, 2019
@xuliangzhan xuliangzhan changed the title 常见问题列表 常见问题列表 😟 Oct 16, 2019
This was referenced Nov 9, 2019
@x-extends x-extends locked and limited conversation to collaborators Apr 2, 2020
@xuliangzhan xuliangzhan changed the title 常见问题列表 😟 😟 常见问题列表 Apr 9, 2020
@xuliangzhan xuliangzhan changed the title 😟 常见问题列表 🤔 常见问题列表 Apr 9, 2020
@xuliangzhan xuliangzhan unpinned this issue Jul 3, 2020
@xuliangzhan xuliangzhan pinned this issue Jul 8, 2020
@xuliangzhan xuliangzhan changed the title 🤔 常见问题列表 🤔 必看!常见问题列表 Oct 19, 2020
@xuliangzhan xuliangzhan changed the title 🤔 必看!常见问题列表 🤔 🤔 🤔 必看!常见问题列表 Mar 15, 2024
@xuliangzhan xuliangzhan changed the title 🤔 🤔 🤔 必看!常见问题列表 🤔 🤔 🤔 (公告)常见问题列表 May 18, 2024
@xuliangzhan xuliangzhan changed the title 🤔 🤔 🤔 (公告)常见问题列表 🤔 🤔 🤔 (置顶公告)常见问题列表 May 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant