monofor / vue-tables-3

Vue.js 2 grid components
https://www.npmjs.com/package/vue-tables-3
MIT License
20 stars 2 forks source link

Columns function not work in Vue + Vite #45

Open palachX opened 1 year ago

palachX commented 1 year ago

I use columns but when i use function in vite he reload page


const headings_init = {}

props.columns.forEach(column => {
    headings_init[column] = (h, row, index) => {
        if (column === 'id')
            return '#';
        else
            return t(`table.${props.type18n ? `${props.type18n}.` : ''}${h.column}`);
    }
})

"vite": "^4.2.2", "vue": "^3.2.13",

palachX commented 1 year ago

When i Use template in html code i get error in my column

            <template #h__name>

            </template>

(...args) => {
    if (renderFnWithContext._d) {
      setBlockTracking(-1);
    }
    const prevInstance = setCurrentRenderingInstance(ctx);
    let res;
    try {
      res = fn(...args);
    } finally {
      setCurrentRenderingInstance(prevInstance);
      if (renderFnWithContext._d) {
        setBlockTracking(1);
      }
    }
    if (true) {
      devtoolsComponentUpdated(ctx);
    }
    return res;
  }

image