Skip to content

Commit

Permalink
fix(button): no default value is set for t-id (#2337)
Browse files Browse the repository at this point in the history
  • Loading branch information
betavs authored Aug 31, 2023
1 parent e290205 commit 209825e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/button/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@
* */

import { TdButtonProps } from './type';
const props: TdButtonProps = {
/**按钮id */
const props: TdButtonProps = {
/** 按钮id */
tId: {
type: String,
value: '',
},
/** 是否为块级元素 */
block: {
Expand Down
10 changes: 5 additions & 5 deletions src/button/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ import { LoadingProps } from '../loading/index';
import { SizeEnum } from '../common/common';

export interface TdButtonProps {
/**按钮id */
tId?: {
type: StringConstructor;
value?: string;
};
/** 按钮id */
tId?: {
type: StringConstructor;
value?: string;
};
/**
* 是否为块级元素
* @default false
Expand Down

0 comments on commit 209825e

Please sign in to comment.