From 7e8e8aec9409aec98bfb2a95caeb874e29957b65 Mon Sep 17 00:00:00 2001 From: David Nixon Date: Mon, 31 Jul 2023 14:38:26 -0400 Subject: [PATCH] feat: add v-model --- src/components/CvSearch/CvSearch.stories.mdx | 80 ++++++++++++++++++-- 1 file changed, 72 insertions(+), 8 deletions(-) diff --git a/src/components/CvSearch/CvSearch.stories.mdx b/src/components/CvSearch/CvSearch.stories.mdx index 088b4a8ab..54c8c8c94 100644 --- a/src/components/CvSearch/CvSearch.stories.mdx +++ b/src/components/CvSearch/CvSearch.stories.mdx @@ -4,8 +4,7 @@ import { sbCompPrefix } from '../../global/storybook-utils'; import { SEARCH_SIZES } from './index'; import { action } from '@storybook/addon-actions'; import { ref } from 'vue'; -const myValue = ref('searching'); - +const myValue = ref('searching galaxies'); @@ -26,14 +25,14 @@ export const Template = args => ({ formItem: args.formItem, expandable: args.expandable, value: args.value, + myValue: myValue, onInput: action('input'), - onVModel: action('update:value'), }; }, template: args.template, }); const defaultTemplate = ` - `; +const vModelTemplate = ` +
+ + +
+
v-model value: {{ myValue }}
+ +
+
+`; # CvSearch Migration notes: -- The `v-model` is different in Vue 3 than Vue 2.If you specify it you will see an error deprecation message in the log. +- The `v-model` is different in Vue 3 than Vue 2. If you specify it you will see an error deprecation message in the log. Please use `v-model:value=something` instead. +- The "toolbar" mode is removed in this version. Please use the `expandable` mode instead. + + {Template.bind({})} + +