perf: reduce the number of icon component instances

This commit is contained in:
vben
2024-07-06 21:53:02 +08:00
parent f7a93a9bb3
commit 3571511394
10 changed files with 19 additions and 24 deletions

View File

@@ -46,6 +46,6 @@ const slots = useSlots();
<slot name="tip"></slot>
</VbenTooltip>
</span>
<Input v-model="inputValue" class="h-8 w-[160px]" />
<Input v-model="inputValue" class="h-8 w-[165px]" />
</div>
</template>

View File

@@ -54,7 +54,7 @@ const slots = useSlots();
</VbenTooltip>
</span>
<NumberField v-model="inputValue" v-bind="$attrs" class="w-[160px]">
<NumberField v-model="inputValue" v-bind="$attrs" class="w-[165px]">
<NumberFieldContent>
<NumberFieldDecrement />
<NumberFieldInput />

View File

@@ -54,7 +54,7 @@ const slots = useSlots();
</VbenTooltip>
</span>
<Select v-model="selectValue">
<SelectTrigger class="h-8 w-[160px]">
<SelectTrigger class="h-8 w-[165px]">
<SelectValue :placeholder="placeholder" />
</SelectTrigger>
<SelectContent>