Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

EL-Table with scoped slots running function twice



<el-table
ref="multipleTableRef"
:data="processingData.data.data"

table-layout="auto"
>
<el-table-column
type="selection"
width="50"
>
</el-table-column>

<!-- :fixed="(itemIn.type == "editButton") ? "right" : null" -->
<el-table-column v-for="itemIn in JSON.parse(processingData.structure.columns)" :key="itemIn.title"
:prop="itemIn.field"
:label="itemIn.title"
:align="itemIn.align"
:width="itemIn.width"
>

<template #default="scope">
<template v-if="itemIn.type == "text"">
{{ testtest("hello") }}
</template>
</el-table-column>
</el-table>


It is running testtest 6 times (It duplicates the function call twice). It should be 3 times, as we have in total 3 rows, which each itemIn.type == 'text'. How is this possible?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


If the slot starts twice, it may be a bug or error in the game itself. Check for updates or settings, and as for your favourite games, right here with a wide variety of slots and casino games. The collection is constantly updated so that players can enjoy the most relevant games with interesting bonuses and features.



Hi,

From the first look, your table component looks fine, it is hard to tell what is a problem without debugging.

Does your testtest function returns anything?


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(