We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
develop
none
{ field: 'serviceTicketHandleType', title: '处理方式', sort: false, width: 'auto', headerStyle: { bgColor: '#f5f7fa', color: '#909399', fontSize: 14, fontWeight: 900, borderColor: '#ebeef5' }, style: { bgColor: '#fff', color: '#606266', fontSize: 14, borderColor: '#ebeef5' }, customLayout: args => { const { table, row, col, rect } = args; const { height, width } = rect || table.getCellRect(col, row); const record = table.getRecordByRowCol(col, row); const container = new VTable.CustomLayout.Group({ height, width, display: 'flex', flexDirection: 'row', alignItems: 'center', flexWrap: 'wrap', alignContent: 'center' }); const edittext = new VTable.CustomLayout.Text({ text: '修改', fontSize: 14, fill: '#2E5CF6', boundsPadding: [7, 10, 5, 10], cursor: 'pointer', key: 'serviceTicketVo-table-edit' } as any); container.add(edittext); const dealtext = new VTable.CustomLayout.Text({ text: '处理', fontSize: 14, fill: '#2E5CF6', boundsPadding: [7, 10, 5, 10], cursor: 'pointer', key: 'serviceTicketVo-table-deal' } as any); container.add(dealtext); const addReviewtext = new VTable.CustomLayout.Text({ text: '评论', fontSize: 14, fill: '#2E5CF6', boundsPadding: [7, 10, 5, 10], cursor: 'pointer', key: 'serviceTicketVo-table-addReview' } as any); container.add(addReviewtext); const sendWxCpApptext = new VTable.CustomLayout.Text({ text: '企微通知', fontSize: 14, fill: '#2E5CF6', boundsPadding: [7, 10, 5, 10], cursor: 'pointer', key: 'serviceTicketVo-table-sendWxCpApp' } as any); container.add(sendWxCpApptext); const editTipstext = new VTable.CustomLayout.Text({ text: '填写提示', fontSize: 14, fill: '#2E5CF6', boundsPadding: [7, 10, 5, 10], cursor: 'pointer', key: 'serviceTicketVo-table-editTips' } as any); container.add(editTipstext); return { rootContainer: container, renderDefault: false }; } },
应该显示横排 但显示成立竖排
- OS: - Browser: - Framework:
No response
The text was updated successfully, but these errors were encountered:
fix: customlayout flex render error #1163
0b1320f
fangsmile
Successfully merging a pull request may close this issue.
Version
develop
Link to Minimal Reproduction
none
Steps to Reproduce
应该显示横排 但显示成立竖排
Current Behavior
Expected Behavior
Environment
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: