Skip to content

Commit 56db58f

Browse files
committed
remove changes to component example
1 parent 05065b1 commit 56db58f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/app/components/content/ComponentExample.vue

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ const props = withDefaults(defineProps<{
5050
items?: any[]
5151
default: any
5252
multiple?: boolean
53-
visibleWhen?: { option: string, is: any }
5453
}>
5554
/**
5655
* A list of line numbers to highlight in the code block
@@ -158,7 +157,6 @@ const urlSearchParams = computed(() => {
158157

159158
<UFormField
160159
v-for="option in props.options"
161-
v-show="!option.visibleWhen || get(optionsValues, option.visibleWhen.option) === option.visibleWhen.is"
162160
:key="option.name"
163161
:label="option.label"
164162
:name="option.name"
@@ -197,11 +195,10 @@ const urlSearchParams = computed(() => {
197195
<UInput
198196
v-else
199197
:model-value="get(optionsValues, option.name)"
200-
:type="typeof option.default === 'number' ? 'number' : 'text'"
201198
color="neutral"
202199
variant="soft"
203200
:ui="{ base: 'rounded-sm rounded-l-none min-w-12' }"
204-
@update:model-value="set(optionsValues, option.name, typeof option.default === 'number' ? Number($event) || option.default : $event)"
201+
@update:model-value="set(optionsValues, option.name, $event)"
205202
/>
206203
</UFormField>
207204
</div>

0 commit comments

Comments
 (0)