Skip to content

Commit

Permalink
chore: fix demos routes (#4993)
Browse files Browse the repository at this point in the history
* chore: fix demos routes

* chore: fix demos routes
  • Loading branch information
uyarn authored Feb 6, 2025
1 parent 98f3b12 commit 71af666
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 62 deletions.
36 changes: 6 additions & 30 deletions packages/components/back-top/back-top.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,15 @@
### BackTop Props

name | type | default | description | required
-- | -- | -- | -- | --https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
container | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesighttps://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
content | String / Slot / Function | - | Backtop's children elements。Typescript:`string \| TNode`[see more ts definition](https://github.com/https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
default | String / Slot / Function | - | Backtop's children elements, same as `content`。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
-- | -- | -- | -- | --
container | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
content | String / Slot / Function | - | Backtop's children elements。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
default | String / Slot / Function | - | Backtop's children elements, same as `content`。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
duration | Number | 200 | \- | N
offset | Array | ["24px", "80px"] | Typescript:`Array<string \| number>` | N
shape | String | square | shape of BackTop element。options:circle/square。Typescript:`BackTopShapeEnum ` `type BackTopShapeEnum = 'circle' \| 'square'`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/back-top/type.ts) | N
size | String | medium | size of BackTop。options:medium/small | Nhttps://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
target | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
theme | String | light | theme of BackTop。options:light/primary/dark | N
visibleHeight | String / Number | '200px' | \- | N
onClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N

### BackTop Events

name | params | description
-- | -- | --
click | `(context: { e: MouseEvent })` | \-

## API

### BackTop Props

name | type | default | description | required
-- | -- | -- | -- | --https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
container | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesighttps://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
content | String / Slot / Function | - | Backtop's children elements。Typescript:`string \| TNode`[see more ts definition](https://github.com/https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
default | String / Slot / Function | - | Backtop's children elements, same as `content`。Typescript:`string \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
duration | Number | 200 | \- | N
offset | Array | ["24px", "80px"] | Typescript:`Array<string \| number>` | N
shape | String | square | shape of BackTop element。options:circle/square。Typescript:`BackTopShapeEnum ` `type BackTopShapeEnum = 'circle' \| 'square'`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/back-top/type.ts) | N
size | String | medium | size of BackTop。options:medium/small | Nhttps://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
target | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
size | String | medium | size of BackTop。options:medium/small | N
target | String / Function | 'body' | Typescript:`AttachNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
theme | String | light | theme of BackTop。options:light/primary/dark | N
visibleHeight | String / Number | '200px' | \- | N
onClick | Function | | Typescript:`(context: { e: MouseEvent }) => void`<br/> | N
Expand Down
36 changes: 6 additions & 30 deletions packages/components/back-top/back-top.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,15 @@
### BackTop Props

名称 | 类型 | 默认值 | 说明 | 必传
-- | -- | -- | -- | --https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
container | String / Function | 'body' | 监听滚动的容器。数据类型为 String 时,会被当作选择器处理,进行节点查询。https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.tsthub.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
content | String / Slot / Function | - | 回到顶部内容。TS 类型:`string \| TNode`[通用类型定义](https://githhttps://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
default | String / Slot / Function | - | 回到顶部内容,同 `content`。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
-- | -- | -- | -- | --
container | String / Function | 'body' | 监听滚动的容器。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body。TS 类型:`AttachNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
content | String / Slot / Function | - | 回到顶部内容。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
default | String / Slot / Function | - | 回到顶部内容,同 `content`。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
duration | Number | 200 | 回到顶部的耗时单位:毫秒 | N
offset | Array | ["24px", "80px"] | 回到顶部相对右下角的位置偏移,示例:[10, 20]['10em', '8rem']。TS 类型:`Array<string \| number>` | N
shape | String | square | 回到顶部的形状。可选项:circle/square。TS 类型:`BackTopShapeEnum ` `type BackTopShapeEnum = 'circle' \| 'square'`[详细类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/back-top/type.ts) | N
size | String | medium | 组件尺寸。可选项:medium/small | Nhttps://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
target | String / Function | 'body' | 指定回到该对象。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body。TS 类型:`AttachNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
theme | String | light | 组件主题风格,浅色、主色、深色。可选项:light/primary/dark | N
visibleHeight | String / Number | '200px' | 滚动高度达到此参数值才出现 | N
onClick | Function | | TS 类型:`(context: { e: MouseEvent }) => void`<br/>点击回到顶部时触发 | N

### BackTop Events

名称 | 参数 | 描述
-- | -- | --
click | `(context: { e: MouseEvent })` | 点击回到顶部时触发

## API

### BackTop Props

名称 | 类型 | 默认值 | 说明 | 必传
-- | -- | -- | -- | --https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
container | String / Function | 'body' | 监听滚动的容器。数据类型为 String 时,会被当作选择器处理,进行节点查询。https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.tsthub.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
content | String / Slot / Function | - | 回到顶部内容。TS 类型:`string \| TNode`[通用类型定义](https://githhttps://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
default | String / Slot / Function | - | 回到顶部内容,同 `content`。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
duration | Number | 200 | 回到顶部的耗时单位:毫秒 | N
offset | Array | ["24px", "80px"] | 回到顶部相对右下角的位置偏移,示例:[10, 20]['10em', '8rem']。TS 类型:`Array<string \| number>` | N
shape | String | square | 回到顶部的形状。可选项:circle/square。TS 类型:`BackTopShapeEnum ` `type BackTopShapeEnum = 'circle' \| 'square'`[详细类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/back-top/type.ts) | N
size | String | medium | 组件尺寸。可选项:medium/small | Nhttps://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts
target | String / Function | 'body' | 指定回到该对象。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body。TS 类型:`AttachNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/src/common.ts) | N
size | String | medium | 组件尺寸。可选项:medium/small | N
target | String / Function | 'body' | 指定回到该对象。数据类型为 String 时,会被当作选择器处理,进行节点查询。示例:'body' 或 () => document.body。TS 类型:`AttachNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
theme | String | light | 组件主题风格,浅色、主色、深色。可选项:light/primary/dark | N
visibleHeight | String / Number | '200px' | 滚动高度达到此参数值才出现 | N
onClick | Function | | TS 类型:`(context: { e: MouseEvent }) => void`<br/>点击回到顶部时触发 | N
Expand Down
4 changes: 2 additions & 2 deletions site/src/components/demo-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</template>

<script>
const demoVueReq = import.meta.globEager('../../../src/**/_example/*.vue');
const demoJsxReq = import.meta.globEager('../../../src/**/_example/*.jsx');
const demoVueReq = import.meta.globEager('../../../packages/components/**/_example/*.vue');
const demoJsxReq = import.meta.globEager('../../../packages/components/**/_example/*.jsx');
const demoReq = { ...demoVueReq, ...demoJsxReq };
const demoObject = {};
Expand Down

0 comments on commit 71af666

Please sign in to comment.