This commit is contained in:
Henry Jordan
2021-10-06 20:32:05 +00:00
parent eb4bb5a6a9
commit 0a2667bacf
3 changed files with 4 additions and 16 deletions

View File

@@ -15,12 +15,6 @@
:column="column" :column="column"
:headings="options.headings" :headings="options.headings"
></slot> ></slot>
<!-- <slot
name="send_by"
:item="item"
column="send_by"
:headings="options.headings"
></slot> -->
</b-col> </b-col>
<b-col sm="3"> <b-col sm="3">
<slot <slot
@@ -55,7 +49,6 @@ export default {
}; };
}, },
mounted() { mounted() {
// this.filterOptions();
}, },
methods: { methods: {
classBtn(cls) { classBtn(cls) {

View File

@@ -56,15 +56,7 @@ export default {
methods: { methods: {
classBtn(cls) { classBtn(cls) {
return "btn btn-slim btn-force-radius v-btn-header " + cls; return "btn btn-slim btn-force-radius v-btn-header " + cls;
}, }
/**
* Filter the column send_by
*/
filterOptions() {
this.options.columns = this.options.columns.filter(function (item) {
return item !== "send_by";
});
},
}, },
}; };
</script> </script>

View File

@@ -607,6 +607,9 @@ export default {
updated() {}, updated() {},
beforeCreate() {}, beforeCreate() {},
methods: { methods: {
/**
* Get custom headigns for dynamic lists
*/
getCustomHeading(column, props) { getCustomHeading(column, props) {
if (props["headings"] && props["headings"][column]) { if (props["headings"] && props["headings"][column]) {
return props["headings"][column]; return props["headings"][column];