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
<div :style="{width:'400px'}"> <vxe-table border :column-config="{ useKey: true }" :row-config="{ useKey: true }" :data="tableData" > <vxe-column type="seq" width="60" fixed="left"></vxe-column> <vxe-column field="name" title="Name" fixed="left" width="auto" sortable type="html" ></vxe-column> <vxe-column field="age" title="age" width="100" sortable type="html" ></vxe-column> <vxe-column field="sex" width="100" title="sex" sortable type="html" ></vxe-column> <vxe-column field="describeHtml" title="<span class=red>HTML 标签与筛选</span>" type="html" width="100" ></vxe-column> <vxe-column field="role" width="100" type="html" title="<span class=green>HTML 标签与格式化</span>" :formatter="formatRole" ></vxe-column> </vxe-table> data() { return { tableData: [], htmlOptions: [ { label: "包含 aa", value: "aa" }, { label: "包含 bb", value: "bb" }, ], }; }, methods: { formatRole({ cellValue }) { return23434343434323423423424234234; }, filterDescribeMethod({ value, row }) { return row.describeHtml.indexOf(value) > -1; }, getData() { let data = []; for (let i = 0; i <= 80; i++) { data.push({ name: "xx1", age: "南", sex: "23232323", describe: "字母 aa -1", describeHtml: '<span style="color: red">字母 <span style="color: blue">aa</span> -1</span>', role: "oo1", }); } this.tableData = data; } }, created() { this.getData(0); }
<div :style="{width:'400px'}"> <vxe-table border :column-config="{ useKey: true }" :row-config="{ useKey: true }" :data="tableData" > <vxe-column type="seq" width="60" fixed="left"></vxe-column> <vxe-column field="name" title="Name" fixed="left" width="auto" sortable type="html" ></vxe-column> <vxe-column field="age" title="age" width="100" sortable type="html" ></vxe-column> <vxe-column field="sex" width="100" title="sex" sortable type="html" ></vxe-column> <vxe-column field="describeHtml" title="<span class=red>HTML 标签与筛选</span>" type="html" width="100" ></vxe-column> <vxe-column field="role" width="100" type="html" title="<span class=green>HTML 标签与格式化</span>" :formatter="formatRole" ></vxe-column> </vxe-table>
data() { return { tableData: [], htmlOptions: [ { label: "包含 aa", value: "aa" }, { label: "包含 bb", value: "bb" }, ], }; }, methods: { formatRole({ cellValue }) { return
; }, filterDescribeMethod({ value, row }) { return row.describeHtml.indexOf(value) > -1; }, getData() { let data = []; for (let i = 0; i <= 80; i++) { data.push({ name: "xx1", age: "南", sex: "23232323", describe: "字母 aa -1", describeHtml: '<span style="color: red">字母 <span style="color: blue">aa</span> -1</span>', role: "oo1", }); } this.tableData = data; } }, created() { this.getData(0); }
The text was updated successfully, but these errors were encountered:
#2740
Sorry, something went wrong.
No branches or pull requests
<div :style="{width:'400px'}"> <vxe-table border :column-config="{ useKey: true }" :row-config="{ useKey: true }" :data="tableData" > <vxe-column type="seq" width="60" fixed="left"></vxe-column> <vxe-column field="name" title="Name" fixed="left" width="auto" sortable type="html" ></vxe-column> <vxe-column field="age" title="age" width="100" sortable type="html" ></vxe-column> <vxe-column field="sex" width="100" title="sex" sortable type="html" ></vxe-column> <vxe-column field="describeHtml" title="<span class=red>HTML 标签与筛选</span>" type="html" width="100" ></vxe-column> <vxe-column field="role" width="100" type="html" title="<span class=green>HTML 标签与格式化</span>" :formatter="formatRole" ></vxe-column> </vxe-table>
data() { return { tableData: [], htmlOptions: [ { label: "包含 aa", value: "aa" }, { label: "包含 bb", value: "bb" }, ], }; }, methods: { formatRole({ cellValue }) { return
23434343434323423423424234234; }, filterDescribeMethod({ value, row }) { return row.describeHtml.indexOf(value) > -1; }, getData() { let data = []; for (let i = 0; i <= 80; i++) { data.push({ name: "xx1", age: "南", sex: "23232323", describe: "字母 aa -1", describeHtml: '<span style="color: red">字母 <span style="color: blue">aa</span> -1</span>', role: "oo1", }); } this.tableData = data; } }, created() { this.getData(0); }
20241210-104304.mp4
The text was updated successfully, but these errors were encountered: