style: update icon size

This commit is contained in:
JaguarJack
2023-02-20 14:41:26 +08:00
parent 9370236816
commit 306e11fb7a
9 changed files with 24 additions and 19 deletions

View File

@@ -1,5 +1,5 @@
<template>
<el-button type="primary" :size="size"><Icon name="plus" class="w-4 mr-1" /> {{ text }}</el-button>
<el-button type="primary" :size="size"><Icon name="plus" className="w-4 h-4 mr-1" /> {{ text }}</el-button>
</template>
<script lang="ts" setup>

View File

@@ -1,5 +1,5 @@
<template>
<el-button type="danger" :size="size"><Icon name="trash" class="w-4 mr-1" /> {{ text }}</el-button>
<el-button type="danger" :size="size"><Icon name="trash" className="w-4 h-4 mr-1" /> {{ text }}</el-button>
</template>
<script lang="ts" setup>

View File

@@ -1,5 +1,5 @@
<template>
<el-button type="primary" :size="size"><Icon name="eye" class="w-4 mr-1" /> {{ text }}</el-button>
<el-button type="primary" :size="size"><Icon name="eye" className="w-4 h-4 mr-1" /> {{ text }}</el-button>
</template>
<script lang="ts" setup>

View File

@@ -1,5 +1,5 @@
<template>
<el-button type="success" :size="size"><Icon name="pencil-square" class="w-4 mr-1" /> {{ text }}</el-button>
<el-button type="success" :size="size"><Icon name="pencil-square" className="w-4 h-4 mr-1" /> {{ text }}</el-button>
</template>
<script lang="ts" setup>

View File

@@ -4,11 +4,11 @@
<slot name="body" />
<el-form-item>
<el-button type="primary" @click="search()">
<Icon name="magnifying-glass" class="w-4 mr-1 -ml-1" />
<Icon name="magnifying-glass" className="w-4 h-4 mr-1 -ml-1" />
搜索
</el-button>
<el-button @click="reset()">
<Icon name="arrow-path" class="w-4 mr-1 -ml-1" />
<Icon name="arrow-path" className="w-4 h-4 mr-1 -ml-1" />
重置
</el-button>
</el-form-item>