-
Notifications
You must be signed in to change notification settings - Fork 341
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Revert "Merge remote-tracking branch 'upstream/develop' into …
…develop"" This reverts commit 84a5db9.
- Loading branch information
Showing
14 changed files
with
180 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v18.14.0 | ||
v18.16.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
packages/docs/page-config/ui-elements/data-table/examples/ColumnWidth.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<template> | ||
<va-data-table | ||
:columns="[ | ||
{ key: 'id', label: '50px', width: '50px' }, | ||
{ key: 'name', label: '100px', width: '100px' }, | ||
{ key: 'username', label: '200px', width: '200px' }, | ||
{ key: 'email', label: '400px', width: '300px' }, | ||
]" | ||
:items="items" | ||
/> | ||
</template> | ||
|
||
<script setup> | ||
const items = [ | ||
{ | ||
id: 1, | ||
name: "Leanne", | ||
username: "Bret", | ||
email: "[email protected]", | ||
}, | ||
{ | ||
id: 2, | ||
name: "Ervin", | ||
username: "Antonette", | ||
email: "[email protected]", | ||
}, | ||
{ | ||
id: 3, | ||
name: "Clementine", | ||
username: "Samantha", | ||
email: "[email protected]", | ||
}, | ||
{ | ||
id: 4, | ||
name: "Patricia", | ||
username: "Karianne", | ||
email: "[email protected]", | ||
}, | ||
{ | ||
id: 5, | ||
name: "Chelsey", | ||
username: "Kamren", | ||
email: "[email protected]", | ||
}, | ||
] | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { onMounted, shallowRef } from 'vue' | ||
import { useCaptureEvent } from './useCaptureEvent' | ||
|
||
export const useFocusedElement = () => { | ||
const activeEl = shallowRef<HTMLElement>() | ||
|
||
const updateActiveElement = () => { | ||
activeEl.value = document.activeElement as HTMLElement | ||
} | ||
|
||
onMounted(updateActiveElement) | ||
|
||
useCaptureEvent('focus', updateActiveElement) | ||
useCaptureEvent('blur', updateActiveElement) | ||
|
||
return activeEl | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters