Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Columns function not work in Vue + Vite #45

Open
palachX opened this issue Apr 20, 2023 · 1 comment
Open

Columns function not work in Vue + Vite #45

palachX opened this issue Apr 20, 2023 · 1 comment

Comments

@palachX
Copy link

palachX commented Apr 20, 2023

  • Vue.js version:
  • consumed using: (browserify/webpack/rollup)
  • FULL error message (including stack trace):
  • relevant code:
  • steps for reproducing the issue:

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
Copy link
Author

palachX commented Apr 20, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant