diff --git a/apps/showcase/doc/checkbox/FormDoc.vue b/apps/showcase/doc/checkbox/FormDoc.vue new file mode 100644 index 000000000..27470b991 --- /dev/null +++ b/apps/showcase/doc/checkbox/FormDoc.vue @@ -0,0 +1,106 @@ + + + + + + + + + Cheese + + + + Mushroom + + + + Pepper + + + + Onion + + + + {{ $form.checkbox.errors[0]?.message }} + + Submit + + + + + + diff --git a/apps/showcase/doc/select/FormDoc.vue b/apps/showcase/doc/select/FormDoc.vue new file mode 100644 index 000000000..0439ee568 --- /dev/null +++ b/apps/showcase/doc/select/FormDoc.vue @@ -0,0 +1,115 @@ + + + + + + + {{ $form.city.errors[0]?.message }} + + Submit + + + + + + diff --git a/apps/showcase/pages/checkbox/index.vue b/apps/showcase/pages/checkbox/index.vue index 4206d8f5c..62dbfa1b7 100755 --- a/apps/showcase/pages/checkbox/index.vue +++ b/apps/showcase/pages/checkbox/index.vue @@ -16,6 +16,7 @@ import BasicDoc from '@/doc/checkbox/BasicDoc.vue'; import DisabledDoc from '@/doc/checkbox/DisabledDoc.vue'; import DynamicDoc from '@/doc/checkbox/DynamicDoc.vue'; import FilledDoc from '@/doc/checkbox/FilledDoc.vue'; +import FormDoc from '@/doc/checkbox/FormDoc.vue'; import GroupDoc from '@/doc/checkbox/GroupDoc.vue'; import ImportDoc from '@/doc/checkbox/ImportDoc.vue'; import IndeterminateDoc from '@/doc/checkbox/IndeterminateDoc.vue'; @@ -37,6 +38,11 @@ export default { label: 'Basic', component: BasicDoc }, + { + id: 'form', + label: 'Form', + component: FormDoc + }, { id: 'indeterminate', label: 'Indeterminate', diff --git a/apps/showcase/pages/select/index.vue b/apps/showcase/pages/select/index.vue index 9706096c8..00f837737 100755 --- a/apps/showcase/pages/select/index.vue +++ b/apps/showcase/pages/select/index.vue @@ -12,6 +12,7 @@ import EditableDoc from '@/doc/select/EditableDoc.vue'; import FilledDoc from '@/doc/select/FilledDoc.vue'; import FilterDoc from '@/doc/select/FilterDoc.vue'; import FloatLabelDoc from '@/doc/select/FloatLabelDoc.vue'; +import FormDoc from '@/doc/select/FormDoc.vue'; import GroupDoc from '@/doc/select/GroupDoc.vue'; import IftaLabelDoc from '@/doc/select/IftaLabelDoc.vue'; import ImportDoc from '@/doc/select/ImportDoc.vue'; @@ -37,6 +38,11 @@ export default { label: 'Basic', component: BasicDoc }, + { + id: 'form', + label: 'Form', + component: FormDoc + }, { id: 'checkmark', label: 'Checkmark',