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

Adding a stickyColumn causes an error. #5263

Closed
tomomo opened this issue Apr 27, 2020 · 0 comments · Fixed by #5265 · May be fixed by leonyork/cognito-oauth2-demo#1
Closed

Adding a stickyColumn causes an error. #5263

tomomo opened this issue Apr 27, 2020 · 0 comments · Fixed by #5265 · May be fixed by leonyork/cognito-oauth2-demo#1
Labels
Status: Fixed / Implemented Issue fixed by a new release Type: Types

Comments

@tomomo
Copy link

tomomo commented Apr 27, 2020

Describe the bug

      TS2322: Type '{ key: string; label: string; sortable: true; stickyColumn: boolean; class: string; }' is not assignable to type 'string | ({ key: string; } & BvTableField)'.
  Object literal may only specify known properties, and 'stickyColumn' does not exist in type '{ key: string; } & BvTableField'.

Steps to reproduce the bug

<template>
  <div>
    <b-table :fields="fields" />
  </div>
</template>

<script lang="ts">
import Vue from 'vue';
import {
  BvTableFieldArray,
} from 'bootstrap-vue/esm/components/table';

type DataType = {
  fields: BvTableFieldArray
}

export default Vue.extend({
  data(): DataType {
    return {
      fields: [{ key: 'id', stickyColumn: true }]
    };
  }
});
</script>

Expected behavior

The stickyColumn described in the manual does not exist.
Is the following code missing?

// `bootstrap-vue/esm/components/table/index.d.ts`

export interface BvTableField {
  :
  stickyColumn?: boolean
}

Versions

Libraries:

  • BootstrapVue: 2.12.0
  • Bootstrap: 4.4.1
  • Vue: 2.6.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Fixed / Implemented Issue fixed by a new release Type: Types
Projects
None yet
2 participants