diff --git a/packages/vlossom/src/components/vs-chip/stories/VsChip.stories.ts b/packages/vlossom/src/components/vs-chip/stories/VsChip.stories.ts index 1e6deef6c..b60161bf8 100644 --- a/packages/vlossom/src/components/vs-chip/stories/VsChip.stories.ts +++ b/packages/vlossom/src/components/vs-chip/stories/VsChip.stories.ts @@ -32,12 +32,12 @@ export const ColorScheme: Story = { render: () => ({ components: { VsChip }, setup() { - const coloredChips = ref([...colorScheme.options]); - return { coloredChips }; + const colorOptions = ref([...colorScheme.options]); + return { colorOptions }; }, template: `
- + Chip
@@ -49,25 +49,25 @@ export const Closable: Story = { render: () => ({ components: { VsChip }, setup() { - const initialColoredChips = colorScheme.options.map((color, index) => ({ id: index, color: color })); - const coloredChips = ref(initialColoredChips); + const initialColorOptions = colorScheme.options.map((color, index) => ({ id: index, color: color })); + const colorOptions = ref(initialColorOptions); const close = (index: number) => { - coloredChips.value = coloredChips.value.filter((_, i) => i !== index); + colorOptions.value = colorOptions.value.filter((_, i) => i !== index); }; const reset = () => { - coloredChips.value = initialColoredChips; + colorOptions.value = initialColorOptions; }; - return { coloredChips, close, reset }; + return { colorOptions, close, reset }; }, template: `
- Chip - Reset + Reset
`, }), @@ -77,12 +77,12 @@ export const NoRound: Story = { render: () => ({ components: { VsChip }, setup() { - const coloredChips = ref([...colorScheme.options]); - return { coloredChips }; + const colorOptions = ref([...colorScheme.options]); + return { colorOptions }; }, template: `
- Chip @@ -96,12 +96,12 @@ export const Primary: Story = { render: () => ({ components: { VsChip }, setup() { - const coloredChips = ref([...colorScheme.options]); - return { coloredChips }; + const colorOptions = ref([...colorScheme.options]); + return { colorOptions }; }, template: `
- Chip @@ -160,7 +160,7 @@ export const ClickEventWithPrimary: Story = { render: () => ({ components: { VsChip, Check }, setup() { - const coloredChips = ref(colorScheme.options.map((color, index) => ({ id: index, color: color }))); + const colorOptions = ref(colorScheme.options.map((color, index) => ({ id: index, color: color }))); const selectedChips: Ref = ref([]); const onClick = (id: number) => { @@ -173,11 +173,11 @@ export const ClickEventWithPrimary: Story = { const isSelected = (id: number) => selectedChips.value.includes(id); - return { coloredChips, selectedChips, onClick, isSelected }; + return { colorOptions, selectedChips, onClick, isSelected }; }, template: `
-