ui5-webcomponents icon indicating copy to clipboard operation
ui5-webcomponents copied to clipboard

ui5-table-column with attr "slot" error

Open FnEsc opened this issue 6 years ago • 3 comments

Describe "<ui5-table-column>" with attr "slot" error in @vue/cli 4.5.4

example

<ui5-table-column v-for="column of action.columns" :key="column.key" slot="columds">
              <div>
                <ui5-label>{{ column.name }}</ui5-label>
              </div>
          </ui5-table-column>

Error Vue shows: "error slot attributes are deprecated vue/no-deprecated-slot-attribute"

FnEsc avatar Sep 11 '20 02:09 FnEsc

Hi FnEsc,

Could you provide the exact version of the following deps:

"vue"
"@vue/cli-plugin-babel"
"@vue/cli-plugin-eslint"
"@vue/cli-service"

fifoosid avatar Sep 11 '20 07:09 fifoosid

Hi fifoosid, much appreciated and very nice to meet you. My versions look like as following below:


 npm ls vue
 -- [email protected]

 npm ls @vue/cli-plugin-babel
 -- @vue/[email protected]

 npm ls @vue/cli-plugin-eslint
 -- @vue/[email protected]

 npm ls "@vue/cli-service
 -- @vue/[email protected]

FnEsc avatar Sep 12 '20 02:09 FnEsc

This is an eslint configuration in in Vue.js 2.6.0+ https://eslint.vuejs.org/rules/no-deprecated-slot-attribute.html

The docs suggests using "v-slot" https://vuejs.org/v2/api/#slot-deprecated

Can you check it - it seems the issue is related entirely to Vue.

BR, ilhan

ilhan007 avatar Sep 14 '20 11:09 ilhan007