diff --git a/.changeset/chilled-dolls-boil.md b/.changeset/chilled-dolls-boil.md new file mode 100644 index 00000000..79f99274 --- /dev/null +++ b/.changeset/chilled-dolls-boil.md @@ -0,0 +1,5 @@ +--- +"@indielayer/ui": patch +--- + +fix(table): selected use prop key diff --git a/packages/ui/docs/pages/component/table/usage.vue b/packages/ui/docs/pages/component/table/usage.vue index a437fa17..22555541 100644 --- a/packages/ui/docs/pages/component/table/usage.vue +++ b/packages/ui/docs/pages/component/table/usage.vue @@ -61,7 +61,7 @@ const itemsSorted = computed(() => { }) }) -const selectedIndex = ref(0) +const selected = ref(2)