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

feat(Table): generic table #1446

Closed
wants to merge 4 commits into from
Closed

feat(Table): generic table #1446

wants to merge 4 commits into from

Commits on Feb 23, 2024

  1. Configuration menu
    Copy the full SHA
    048096c View commit details
    Browse the repository at this point in the history
  2. chore(deps): update devdependency @nuxt/ui-pro to v1.0.0-28478433.ed4…

    …77f1 (#1405)
    
    Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
    renovate[bot] authored Feb 23, 2024
    Configuration menu
    Copy the full SHA
    98079d1 View commit details
    Browse the repository at this point in the history

Commits on Mar 1, 2024

  1. feat(Table): use script setup & generics

    - convert component to use `script setup` syntax to prepare for generics
      support
    - prop definition can't use local vars w/ `script setup`, set defaults to undefined & use
      `defu` to merge defaults where applicable
    - props mapped as local vars should overwrite direct prop references in
      the template
    - modify `loadingState` & `emptyState` computed properties, if the
      corresponding props are explicitly set as `null` they will pass `null`
      to maintain existing functionality
    - cast `rows` prop to a new generic type that extends a basic object
      representation
    - TODO: consider using `keyof Row` type on column keys to enforce type
      on internal functionality (need to solve for custom `action`-like columns)
    zoobzio committed Mar 1, 2024
    Configuration menu
    Copy the full SHA
    8648064 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c6115ba View commit details
    Browse the repository at this point in the history