Skip to content

Commit

Permalink
docs(Indexes): sync api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Sep 11, 2024
1 parent 3e93bae commit 3061ca5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ export type TreeOptionData<T = string | number> = {

export type SizeEnum = 'small' | 'medium' | 'large';

export type ShapeEnum = 'circle' | 'round';

export type HorizontalAlignEnum = 'left' | 'center' | 'right';

export type VerticalAlignEnum = 'top' | 'middle' | 'bottom';
Expand Down
3 changes: 2 additions & 1 deletion src/indexes/demos/custom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ const change = (index: number | string) => {
<style lang="less">
.component-wrap {
height: calc(100vh - 50px);
background-color: #fff;
}
.capsule {
Expand All @@ -65,7 +66,7 @@ const change = (index: number | string) => {
height: 30px;
border-radius: 15px;
background-color: #f3f3f3;
padding-left: 32rpx;
padding-left: 16px;
display: flex;
align-items: center;
font-size: 14px;
Expand Down
2 changes: 1 addition & 1 deletion src/indexes/indexes.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

name | type | default | description | required
-- | -- | -- | -- | --
indexList | Array | - | Typescript:`(string \| number)[]` | N
indexList | Array | - | Typescript:`Array<string \| number>` | N
sticky | Boolean | true | Typescript:`Boolean` | N
stickyOffset | Number | 0 | \- | N
onChange | Function | | Typescript:`(index: string \| number) => void`<br/> | N
Expand Down
2 changes: 1 addition & 1 deletion src/indexes/indexes.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

名称 | 类型 | 默认值 | 描述 | 必传
-- | -- | -- | -- | --
indexList | Array | - | 索引字符列表。不传默认 `A-Z`。TS 类型:`(string \| number)[]` | N
indexList | Array | - | 索引字符列表。不传默认 `A-Z`。TS 类型:`Array<string \| number>` | N
sticky | Boolean | true | 索引是否吸顶,默认为true。TS 类型:`Boolean` | N
stickyOffset | Number | 0 | 锚点吸顶时与顶部的距离 | N
onChange | Function | | TS 类型:`(index: string \| number) => void`<br/>索引发生变更时触发事件 | N
Expand Down
2 changes: 1 addition & 1 deletion src/indexes/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface TdIndexesProps {
/**
* 索引字符列表。不传默认 `A-Z`
*/
indexList?: (string | number)[];
indexList?: Array<string | number>;
/**
* 索引是否吸顶,默认为true
* @default true
Expand Down

0 comments on commit 3061ca5

Please sign in to comment.