Closed frogprincehe closed 3 years ago
Not yet implement this.
Hi,cscan I have another questiuon. I find Prop Component in vue-excel-editor has some function type Props, like "header-label" Props. do you tell me, How to use these Props? I can`t find demo. thanks!
Sorry, I can't catch what you want to do.
For the header-label, you may see the code in table th:
<div :class="{'filter-sign': columnFilter[p]}">
<span :class="{'table-col-header': !noHeaderEdit}" v-html="headerLabel(item.label, item)"></span>
</div>
the default headerLabel is defined as:
headerLabel: {
type: Function,
default (label) {
return label
}
},
Which means I pass 2 arguments (label, item) into your function (if provided using prop), e.g.
<vue-excel-editor header-label="myHeader" ...>
function myHeader(label, item) {
console.log(label, item) // For debugging
switch(label) {
case 'sku':
return 'SKN'
case 'descr':
return 'DESCRIPTION'
}
}
Hi, Is it have drag to fill column.,like Excel