From ca631f079973ad1e02c4ac356415d482cfdb8dd0 Mon Sep 17 00:00:00 2001 From: fairyland Date: Wed, 25 Oct 2023 16:14:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=AF=BC=E5=87=BA=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- snapshots/demo-js/index.d.ts | 2 +- snapshots/demo-ts/index.tsx | 2 +- src/templates/Icon.d.ts.template | 2 +- src/templates/Icon.tsx.template | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/snapshots/demo-js/index.d.ts b/snapshots/demo-js/index.d.ts index f40d105..00f6d6e 100644 --- a/snapshots/demo-js/index.d.ts +++ b/snapshots/demo-js/index.d.ts @@ -5,7 +5,7 @@ export { default as IconAlipay } from './IconAlipay'; export { default as IconUser } from './IconUser'; export { default as IconSetup } from './IconSetup'; -interface Props extends Omit, 'color'> { +export interface Props extends Omit, 'color'> { name: 'alipay' | 'user' | 'setup'; size?: number; color?: string | string[]; diff --git a/snapshots/demo-ts/index.tsx b/snapshots/demo-ts/index.tsx index ba0d5d5..f7100b7 100644 --- a/snapshots/demo-ts/index.tsx +++ b/snapshots/demo-ts/index.tsx @@ -11,7 +11,7 @@ export { default as IconSetup } from './IconSetup'; export type IconNames = 'alipay' | 'user' | 'setup'; -interface Props extends Omit, 'color'> { +export interface Props extends Omit, 'color'> { name: IconNames; size?: number; color?: string | string[]; diff --git a/src/templates/Icon.d.ts.template b/src/templates/Icon.d.ts.template index 4f00a50..3380a6d 100644 --- a/src/templates/Icon.d.ts.template +++ b/src/templates/Icon.d.ts.template @@ -3,7 +3,7 @@ import { SVGAttributes, FunctionComponent } from 'react'; #exports# -interface Props extends Omit, 'color'> { +export interface Props extends Omit, 'color'> { name: '#names#'; size?: number; color?: string | string[]; diff --git a/src/templates/Icon.tsx.template b/src/templates/Icon.tsx.template index ae68ea9..a087b06 100644 --- a/src/templates/Icon.tsx.template +++ b/src/templates/Icon.tsx.template @@ -7,7 +7,7 @@ import React, { SVGAttributes, FunctionComponent } from 'react'; export type IconNames = '#names#'; -interface Props extends Omit, 'color'> { +export interface Props extends Omit, 'color'> { name: IconNames; size?: number; color?: string | string[];