• This project
    • Loading...
  • Sign in

Fedex / iClear-Connect-Pre-Clearance

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • iClear-Connect-Pre-Clearance
  • web
  • src
  • components
  • YlTable
  • column.vue
  • jinhui.wang's avatar
    前端项目代码增加 · 90e29239
    90e29239
    jinhui.wang authored 2024-10-18 11:27:24 +0800
column.vue 524 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<script>
/**
 * 动态渲染 el-table-column
 */
export default {
    name: 'column',
    props: {
        attrs: {
            type: Object,
            default: () => ({}),
            required: true
        }
    },
    render: function(h) {
        let attrs = this.attrs;
        let scopedSlots = {};
        if (attrs.render) {
            scopedSlots.default = scope => attrs.render(h, scope);
        }
        return h('el-table-column', {
            attrs,
            scopedSlots
        });
    }
};
</script>