docs: fix component rendering
This commit is contained in:
parent
bfe4c3d3c2
commit
f3a3c08efc
|
|
@ -633,6 +633,13 @@ export const Index = {
|
||||||
component: () => import("../src/lib/registry/default/example/SliderDemo.vue").then((m) => m.default),
|
component: () => import("../src/lib/registry/default/example/SliderDemo.vue").then((m) => m.default),
|
||||||
files: ["../src/lib/registry/default/example/SliderDemo.vue"],
|
files: ["../src/lib/registry/default/example/SliderDemo.vue"],
|
||||||
},
|
},
|
||||||
|
"SliderForm": {
|
||||||
|
name: "SliderForm",
|
||||||
|
type: "components:example",
|
||||||
|
registryDependencies: ["button","form","select","toast"],
|
||||||
|
component: () => import("../src/lib/registry/default/example/SliderForm.vue").then((m) => m.default),
|
||||||
|
files: ["../src/lib/registry/default/example/SliderForm.vue"],
|
||||||
|
},
|
||||||
"SonnerDemo": {
|
"SonnerDemo": {
|
||||||
name: "SonnerDemo",
|
name: "SonnerDemo",
|
||||||
type: "components:example",
|
type: "components:example",
|
||||||
|
|
@ -1600,6 +1607,13 @@ export const Index = {
|
||||||
component: () => import("../src/lib/registry/new-york/example/SliderDemo.vue").then((m) => m.default),
|
component: () => import("../src/lib/registry/new-york/example/SliderDemo.vue").then((m) => m.default),
|
||||||
files: ["../src/lib/registry/new-york/example/SliderDemo.vue"],
|
files: ["../src/lib/registry/new-york/example/SliderDemo.vue"],
|
||||||
},
|
},
|
||||||
|
"SliderForm": {
|
||||||
|
name: "SliderForm",
|
||||||
|
type: "components:example",
|
||||||
|
registryDependencies: ["button","form","select","toast"],
|
||||||
|
component: () => import("../src/lib/registry/new-york/example/SliderForm.vue").then((m) => m.default),
|
||||||
|
files: ["../src/lib/registry/new-york/example/SliderForm.vue"],
|
||||||
|
},
|
||||||
"SonnerDemo": {
|
"SonnerDemo": {
|
||||||
name: "SonnerDemo",
|
name: "SonnerDemo",
|
||||||
type: "components:example",
|
type: "components:example",
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ import { Slider } from '@/components/ui/slider'
|
||||||
</template>
|
</template>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
|
||||||
### Form
|
### Form
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import { toast } from '@/lib/registry/default/ui/toast'
|
||||||
|
|
||||||
const formSchema = toTypedSchema(z.object({
|
const formSchema = toTypedSchema(z.object({
|
||||||
duration: z.array(
|
duration: z.array(
|
||||||
z.number().min(1).max(1440)
|
z.number().min(0).max(60),
|
||||||
),
|
),
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ import { toast } from '@/lib/registry/new-york/ui/toast'
|
||||||
|
|
||||||
const formSchema = toTypedSchema(z.object({
|
const formSchema = toTypedSchema(z.object({
|
||||||
duration: z.array(
|
duration: z.array(
|
||||||
z.number().min(1).max(1440)
|
z.number().min(0).max(60),
|
||||||
),
|
),
|
||||||
}))
|
}))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user