8000 feat(examples): improve ui form and slider examples · romhml/compodium@c2edfa5 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit c2edfa5

Browse files
committed
feat(examples): improve ui form and slider examples
1 parent 5498916 commit c2edfa5

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

packages/examples/src/assets/ui/index.css

+3
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
.w-xs {
5353
width: var(--container-xs);
5454
}
55+
.min-w-56 {
56+
min-width: calc(var(--spacing) * 56);
57+
}
5558
.min-w-60 {
5659
min-width: calc(var(--spacing) * 60);
5760
}

packages/examples/src/examples/ui/FormExample.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ function validate(data: Partial<typeof state>) {
2727
name="password"
2828
label="Password"
2929
>
30-
<UInput v-model="state.password" />
30+
<UInput
31+
v-model="state.password"
32+
type="password"
33+
/>
3134
</UFormField>
3235
<UButton type="submit">
3336
Submit
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<script setup lang="ts">
2+
extendCompodiumMeta({
3+
defaultProps: {
4+
defaultValue: 33
5+
}
6+
})
7+
</script>
8+
9+
<template>
10+
<USlider class="min-w-56" />
11+
</template>

0 commit comments

Comments
 (0)
0