feat: 使用小图标

pull/134/head
xingyu4j 2025-06-08 18:35:55 +08:00
parent 9365549b9a
commit aa7df9236d
1 changed files with 13 additions and 1 deletions

View File

@ -186,6 +186,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.ALIPAY_APP.code, PayChannelEnum.ALIPAY_APP.code,
@ -211,6 +212,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.ALIPAY_PC.code, PayChannelEnum.ALIPAY_PC.code,
@ -236,6 +238,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.ALIPAY_WAP.code, PayChannelEnum.ALIPAY_WAP.code,
@ -261,6 +264,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.ALIPAY_QR.code, PayChannelEnum.ALIPAY_QR.code,
@ -282,11 +286,11 @@ const [Grid, gridApi] = useVbenVxeGrid({
/> />
</template> </template>
<template #alipayBarConfig="{ row }"> <template #alipayBarConfig="{ row }">
<!-- TODO @xingyu建议用小图标 -->
<TableAction <TableAction
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.ALIPAY_BAR.code, PayChannelEnum.ALIPAY_BAR.code,
@ -312,6 +316,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.WX_LITE.code, PayChannelEnum.WX_LITE.code,
@ -337,6 +342,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.WX_PUB.code, PayChannelEnum.WX_PUB.code,
@ -362,6 +368,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.WX_APP.code, PayChannelEnum.WX_APP.code,
@ -387,6 +394,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.WX_NATIVE.code, PayChannelEnum.WX_NATIVE.code,
@ -412,6 +420,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.WX_WAP.code, PayChannelEnum.WX_WAP.code,
@ -437,6 +446,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.WX_BAR.code, PayChannelEnum.WX_BAR.code,
@ -462,6 +472,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists( icon: isChannelExists(
row.channelCodes, row.channelCodes,
PayChannelEnum.WALLET.code, PayChannelEnum.WALLET.code,
@ -487,6 +498,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
:actions="[ :actions="[
{ {
type: 'primary', type: 'primary',
size: 'small',
icon: isChannelExists(row.channelCodes, PayChannelEnum.MOCK.code) icon: isChannelExists(row.channelCodes, PayChannelEnum.MOCK.code)
? 'lucide:check' ? 'lucide:check'
: 'lucide:x', : 'lucide:x',