Skip to content

Commit 558881b

Browse files
authored
docs(Swiper): remove unused theme (#779)
1 parent 46dc710 commit 558881b

File tree

14 files changed

+10
-89
lines changed

14 files changed

+10
-89
lines changed

db/TDesign.db

0 Bytes
Binary file not shown.

packages/products/tdesign-react/packages/components/swiper/defaultProps.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const swiperDefaultProps: TdSwiperProps = {
1414
interval: 5000,
1515
loop: true,
1616
stopOnHover: true,
17-
theme: 'light',
1817
trigger: 'hover',
1918
type: 'default',
2019
};

packages/products/tdesign-react/packages/components/swiper/swiper.en-US.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
name | type | default | description | required
88
-- | -- | -- | -- | --
99
className | String | - | className of component | N
10-
style | Object | - | CSS(Cascading Style Sheets),Typescript`React.CSSProperties` | N
10+
style | Object | - | CSS(Cascading Style Sheets),Typescript: `React.CSSProperties` | N
1111
animation | String | slide | options: slide/fade | N
1212
autoplay | Boolean | true | \- | N
1313
cardScale | Number | 210/332 | \- | N
@@ -18,12 +18,11 @@ duration | Number | 300 | \- | N
1818
height | Number | - | \- | N
1919
interval | Number | 5000 | \- | N
2020
loop | Boolean | true | \- | N
21-
navigation | TNode | - | Typescript`SwiperNavigation \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
21+
navigation | TNode | - | Typescript: `SwiperNavigation \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
2222
stopOnHover | Boolean | true | \- | N
23-
theme | String | light | options: light/dark | N
2423
trigger | String | hover | options: hover/click | N
2524
type | String | default | options: default/card | N
26-
onChange | Function | | Typescript`(current: number, context: { source: SwiperChangeSource }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/swiper/type.ts)。<br/>`type SwiperChangeSource = 'autoplay' \| 'click' \| 'hover'`<br/> | N
25+
onChange | Function | | Typescript: `(current: number, context: { source: SwiperChangeSource }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/swiper/type.ts)。<br/>`type SwiperChangeSource = 'autoplay' \| 'click' \| 'hover'`<br/> | N
2726

2827
### SwiperNavigation
2928

@@ -32,4 +31,4 @@ name | type | default | description | required
3231
placement | String | inside | options: inside/outside | N
3332
showSlideBtn | String | always | options: always/hover/never | N
3433
size | String | medium | options: small/medium/large | N
35-
type | String | - | Typescript`SwiperNavigationType` `type SwiperNavigationType = 'dots' \| 'dots-bar' \| 'bars' \| 'fraction'`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/swiper/type.ts) | N
34+
type | String | - | Typescript: `SwiperNavigationType` `type SwiperNavigationType = 'dots' \| 'dots-bar' \| 'bars' \| 'fraction'`[see more ts definition](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/swiper/type.ts) | N

packages/products/tdesign-react/packages/components/swiper/swiper.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ interval | Number | 5000 | 轮播间隔时间 | N
2020
loop | Boolean | true | 是否循环播放 | N
2121
navigation | TNode | - | 导航器全部配置。TS 类型:`SwiperNavigation \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/common.ts) | N
2222
stopOnHover | Boolean | true | 是否悬浮时停止轮播 | N
23-
theme | String | light | 深色模式和浅色模式。可选项:light/dark | N
2423
trigger | String | hover | 触发切换的方式:悬浮、点击等。可选项:hover/click | N
2524
type | String | default | 样式类型:默认样式、卡片样式。可选项:default/card | N
2625
onChange | Function | | TS 类型:`(current: number, context: { source: SwiperChangeSource }) => void`<br/>轮播切换时触发。[详细类型定义](https://github.com/Tencent/tdesign-react/blob/develop/packages/components/swiper/type.ts)。<br/>`type SwiperChangeSource = 'autoplay' \| 'click' \| 'hover'`<br/> | N

packages/products/tdesign-react/packages/components/swiper/type.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,6 @@ export interface TdSwiperProps {
6565
* @default true
6666
*/
6767
stopOnHover?: boolean;
68-
/**
69-
* 深色模式和浅色模式
70-
* @default light
71-
*/
72-
theme?: 'light' | 'dark';
7368
/**
7469
* 触发切换的方式:悬浮、点击等
7570
* @default hover

packages/products/tdesign-vue-next/packages/components/swiper/props.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,6 @@ export default {
7878
type: Boolean,
7979
default: true,
8080
},
81-
/** 深色模式和浅色模式 */
82-
theme: {
83-
type: String as PropType<TdSwiperProps['theme']>,
84-
default: 'light' as TdSwiperProps['theme'],
85-
validator(val: TdSwiperProps['theme']): boolean {
86-
if (!val) return true;
87-
return ['light', 'dark'].includes(val);
88-
},
89-
},
9081
/** 触发切换的方式:悬浮、点击等 */
9182
trigger: {
9283
type: String as PropType<TdSwiperProps['trigger']>,

packages/products/tdesign-vue-next/packages/components/swiper/swiper.en-US.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,11 @@ duration | Number | 300 | \- | N
1616
height | Number | - | \- | N
1717
interval | Number | 5000 | \- | N
1818
loop | Boolean | true | \- | N
19-
navigation | Object / Slot / Function | - | Typescript`SwiperNavigation \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
19+
navigation | Object / Slot / Function | - | Typescript: `SwiperNavigation \| TNode`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
2020
stopOnHover | Boolean | true | \- | N
21-
theme | String | light | options: light/dark | N
2221
trigger | String | hover | options: hover/click | N
2322
type | String | default | options: default/card | N
24-
onChange | Function | | Typescript`(current: number, context: { source: SwiperChangeSource }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/swiper/type.ts)。<br/>`type SwiperChangeSource = 'autoplay' \| 'click' \| 'hover'`<br/> | N
23+
onChange | Function | | Typescript: `(current: number, context: { source: SwiperChangeSource }) => void`<br/>[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/swiper/type.ts)。<br/>`type SwiperChangeSource = 'autoplay' \| 'click' \| 'hover'`<br/> | N
2524

2625
### Swiper Events
2726

@@ -36,4 +35,4 @@ name | type | default | description | required
3635
placement | String | inside | options: inside/outside | N
3736
showSlideBtn | String | always | options: always/hover/never | N
3837
size | String | medium | options: small/medium/large | N
39-
type | String | - | Typescript`SwiperNavigationType` `type SwiperNavigationType = 'dots' \| 'dots-bar' \| 'bars' \| 'fraction'`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/swiper/type.ts) | N
38+
type | String | - | Typescript: `SwiperNavigationType` `type SwiperNavigationType = 'dots' \| 'dots-bar' \| 'bars' \| 'fraction'`[see more ts definition](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/swiper/type.ts) | N

packages/products/tdesign-vue-next/packages/components/swiper/swiper.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ interval | Number | 5000 | 轮播间隔时间 | N
1818
loop | Boolean | true | 是否循环播放 | N
1919
navigation | Object / Slot / Function | - | 导航器全部配置。TS 类型:`SwiperNavigation \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/common.ts) | N
2020
stopOnHover | Boolean | true | 是否悬浮时停止轮播 | N
21-
theme | String | light | 深色模式和浅色模式。可选项:light/dark | N
2221
trigger | String | hover | 触发切换的方式:悬浮、点击等。可选项:hover/click | N
2322
type | String | default | 样式类型:默认样式、卡片样式。可选项:default/card | N
2423
onChange | Function | | TS 类型:`(current: number, context: { source: SwiperChangeSource }) => void`<br/>轮播切换时触发。[详细类型定义](https://github.com/Tencent/tdesign-vue-next/blob/develop/packages/components/swiper/type.ts)。<br/>`type SwiperChangeSource = 'autoplay' \| 'click' \| 'hover'`<br/> | N

packages/products/tdesign-vue-next/packages/components/swiper/type.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,6 @@ export interface TdSwiperProps {
7070
* @default true
7171
*/
7272
stopOnHover?: boolean;
73-
/**
74-
* 深色模式和浅色模式
75-
* @default light
76-
*/
77-
theme?: 'light' | 'dark';
7873
/**
7974
* 触发切换的方式:悬浮、点击等
8075
* @default hover

packages/products/tdesign-vue/src/swiper/props.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,6 @@ export default {
7474
type: Boolean,
7575
default: true,
7676
},
77-
/** 深色模式和浅色模式 */
78-
theme: {
79-
type: String as PropType<TdSwiperProps['theme']>,
80-
default: 'light' as TdSwiperProps['theme'],
81-
validator(val: TdSwiperProps['theme']): boolean {
82-
if (!val) return true;
83-
return ['light', 'dark'].includes(val);
84-
},
85-
},
8677
/** 触发切换的方式:悬浮、点击等 */
8778
trigger: {
8879
type: String as PropType<TdSwiperProps['trigger']>,

0 commit comments

Comments
 (0)