Skip to content

Commit

Permalink
test: update csr and ssr snap
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Aug 20, 2024
1 parent 149676e commit 4f8d13f
Show file tree
Hide file tree
Showing 6 changed files with 1,949 additions and 2,101 deletions.
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 44 files
+66 −0 docs/mobile/api/button.en-US.md
+34 −5 docs/mobile/api/button.md
+7 −0 docs/mobile/api/icon.en-US.md
+1 −1 docs/mobile/api/icon.md
+29 −0 docs/mobile/api/image.en-US.md
+11 −17 docs/mobile/api/image.md
+64 −0 docs/mobile/api/input.en-US.md
+40 −12 docs/mobile/api/input.md
+17 −0 docs/mobile/api/link.en-US.md
+15 −0 docs/mobile/api/link.md
+45 −0 docs/mobile/api/loading.en-US.md
+14 −12 docs/mobile/api/loading.md
+32 −0 docs/mobile/api/navbar.en-US.md
+16 −4 docs/mobile/api/navbar.md
+32 −0 docs/mobile/api/skeleton.en-US.md
+13 −12 docs/mobile/api/skeleton.md
+32 −0 docs/mobile/api/tag.en-US.md
+12 −26 docs/mobile/api/tag.md
+27 −0 docs/web/api/empty.en-US.md
+27 −0 docs/web/api/empty.md
+16 −23 js/global-config/default-config.ts
+12 −3 js/global-config/locale/ar_KW.ts
+16 −3 js/global-config/locale/en_US.ts
+29 −8 js/global-config/locale/it_IT.ts
+17 −4 js/global-config/locale/ja_JP.ts
+17 −4 js/global-config/locale/ko_KR.ts
+30 −7 js/global-config/locale/ru_RU.ts
+16 −3 js/global-config/locale/zh_CN.ts
+16 −3 js/global-config/locale/zh_TW.ts
+14 −1 js/input-number/large-number.ts
+11 −4 js/table/tree-store.ts
+6 −6 style/mobile/components/_index.less
+40 −2 style/mobile/components/button/v2/_index.less
+8 −0 style/mobile/components/button/v2/_var.less
+44 −0 style/mobile/components/image/v2/_index.less
+10 −5 style/mobile/components/link/_index.less
+61 −15 style/mobile/components/link/_var.less
+8 −0 style/mobile/components/loading/_index.less
+51 −0 style/mobile/components/overlay/v2/_animate.less
+7 −2 style/mobile/components/overlay/v2/_index.less
+0 −1 style/mobile/components/overlay/v2/_var.less
+2 −10 style/web/components/empty/_index.less
+7 −16 style/web/components/empty/_var.less
+12 −0 test/unit/input-number/largeNumberToFixed.test.js
5 changes: 3 additions & 2 deletions src/link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React from 'react';
import useConfig from '../_util/useConfig';
import { TdLinkProps } from './type';
import { StyledProps } from '../common';
import parseTNode from '../_util/parseTNode';
import useDefaultProps from '../hooks/useDefaultProps';
import { linkDefaultProps } from './defaultProps';

Expand Down Expand Up @@ -54,9 +55,9 @@ const Link = React.forwardRef<HTMLAnchorElement, LinkProps>((props, ref) => {
)}
onClick={handleClick}
>
{prefixIcon && <span className={classNames([`${classPrefix}-link__prefix-icon`])}>{prefixIcon}</span>}
{prefixIcon && <span className={classNames([`${classPrefix}-link__prefix-icon`])}>{parseTNode(prefixIcon)}</span>}
{childNode && <span className={classNames([`${classPrefix}-link__content`])}>{childNode}</span>}
{suffixIcon && <span className={classNames([`${classPrefix}-link__suffix-icon`])}>{suffixIcon}</span>}
{suffixIcon && <span className={classNames([`${classPrefix}-link__suffix-icon`])}>{parseTNode(suffixIcon)}</span>}
</a>
);
});
Expand Down
14 changes: 7 additions & 7 deletions src/link/_example/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@ export default function LinkDemo() {
return (
<div className="tdesign-mobile-demo">
<TDemoHeader title="Link 链接" summary="当功能使用图标即可表意清楚时,可使用纯图标悬浮按钮,例如:添加、发布。" />
<TDemoBlock title="01 组件类型" summary="基础文字链接" padding={true}>
<TDemoBlock title="01 组件类型" summary="基础文字链接">
<BaseDemo />
</TDemoBlock>
<TDemoBlock summary="下划线文字链接" padding={true}>
<TDemoBlock summary="下划线文字链接">
<UnderlineDemo />
</TDemoBlock>
<TDemoBlock summary="前置图标文字链接" padding={true}>
<TDemoBlock summary="前置图标文字链接">
<PrefixDemo />
</TDemoBlock>
<TDemoBlock summary="后置图标文字链接" padding={true}>
<TDemoBlock summary="后置图标文字链接">
<SuffixDemo />
</TDemoBlock>
<TDemoBlock title="02 组件状态" summary="不同主题" padding={true}>
<TDemoBlock title="02 组件状态" summary="不同主题">
<ThemeDemo />
</TDemoBlock>
<TDemoBlock summary="禁用状态" padding={true}>
<TDemoBlock summary="禁用状态">
<StatusDemo />
</TDemoBlock>
<TDemoBlock title="03 组件样式" summary="链接尺寸" padding={true}>
<TDemoBlock title="03 组件样式" summary="链接尺寸">
<SizeDemo />
</TDemoBlock>
</div>
Expand Down
4 changes: 1 addition & 3 deletions src/link/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import _Link from './Link';

import './style/index.js';
import { TdLinkProps } from './type';

export type LinkProps = TdLinkProps;
export * from './type';
export type { LinkProps } from './Link';

export const Link = _Link;
export default Link;
Loading

0 comments on commit 4f8d13f

Please sign in to comment.