Browse Source

增加rendercolumn

jonbo 3 months ago
parent
commit
33aa22a334
1 changed files with 18 additions and 0 deletions
  1. 18 0
      src/views/mis/common/misTable/RenderColumn.vue

+ 18 - 0
src/views/mis/common/misTable/RenderColumn.vue

@@ -0,0 +1,18 @@
+<script>
+export default {
+  props: {
+    render: {
+      type: Function,
+      default: () => () => { }
+    },
+    scope: {
+      type: Object,
+      default: () => { }
+    }
+  },
+  render(h) {
+    const { row, column, value, colIndex } = this.scope;
+    return this.render(h, row, column, value, colIndex);
+  }
+}
+</script>