Skip to content

Commit

Permalink
fix: fix cr
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed Apr 23, 2023
1 parent 07a27b3 commit a73fa53
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
44 changes: 22 additions & 22 deletions src/count-down/__test__/__snapshots__/demo.test.jsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`CountDown > CountDown baseVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small"
class="t-count-down t-count-down--default t-count-down--medium"
>
Expand Down Expand Up @@ -68,7 +68,7 @@ exports[`CountDown > CountDown baseVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small"
class="t-count-down t-count-down--default t-count-down--medium"
>
Expand Down Expand Up @@ -131,7 +131,7 @@ exports[`CountDown > CountDown baseVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--square t-count-down--small"
class="t-count-down t-count-down--square t-count-down--medium"
>
Expand Down Expand Up @@ -182,7 +182,7 @@ exports[`CountDown > CountDown baseVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--round t-count-down--small"
class="t-count-down t-count-down--round t-count-down--medium"
>
Expand Down Expand Up @@ -233,7 +233,7 @@ exports[`CountDown > CountDown baseVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--round t-count-down--small"
class="t-count-down t-count-down--round t-count-down--medium"
>
Expand Down Expand Up @@ -288,7 +288,7 @@ exports[`CountDown > CountDown baseVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small custom"
class="t-count-down t-count-down--default t-count-down--medium custom"
>
Expand Down Expand Up @@ -383,7 +383,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small"
class="t-count-down t-count-down--default t-count-down--medium"
>
Expand Down Expand Up @@ -434,7 +434,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small"
class="t-count-down t-count-down--default t-count-down--medium"
>
Expand Down Expand Up @@ -497,7 +497,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--square t-count-down--small"
class="t-count-down t-count-down--square t-count-down--medium"
>
Expand Down Expand Up @@ -548,7 +548,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--round t-count-down--small"
class="t-count-down t-count-down--round t-count-down--medium"
>
Expand Down Expand Up @@ -599,7 +599,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--round t-count-down--small"
class="t-count-down t-count-down--round t-count-down--medium"
>
Expand Down Expand Up @@ -654,7 +654,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small custom"
class="t-count-down t-count-down--default t-count-down--medium custom"
>
Expand Down Expand Up @@ -778,7 +778,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small"
class="t-count-down t-count-down--default t-count-down--medium"
>
Expand Down Expand Up @@ -925,7 +925,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small"
class="t-count-down t-count-down--default t-count-down--medium"
>
Expand Down Expand Up @@ -1084,7 +1084,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--square t-count-down--small"
class="t-count-down t-count-down--square t-count-down--medium"
>
Expand Down Expand Up @@ -1219,7 +1219,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--round t-count-down--small"
class="t-count-down t-count-down--round t-count-down--medium"
>
Expand Down Expand Up @@ -1358,7 +1358,7 @@ exports[`CountDown > CountDown mobileVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--round t-count-down--small"
class="t-count-down t-count-down--round t-count-down--medium"
>
Expand Down Expand Up @@ -1513,7 +1513,7 @@ exports[`CountDown > CountDown sizeVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small"
class="t-count-down t-count-down--default t-count-down--medium"
>
Expand Down Expand Up @@ -1660,7 +1660,7 @@ exports[`CountDown > CountDown sizeVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--default t-count-down--small"
class="t-count-down t-count-down--default t-count-down--medium"
>
Expand Down Expand Up @@ -1819,7 +1819,7 @@ exports[`CountDown > CountDown sizeVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--square t-count-down--small"
class="t-count-down t-count-down--square t-count-down--medium"
>
Expand Down Expand Up @@ -1954,7 +1954,7 @@ exports[`CountDown > CountDown sizeVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--round t-count-down--small"
class="t-count-down t-count-down--round t-count-down--medium"
>
Expand Down Expand Up @@ -2093,7 +2093,7 @@ exports[`CountDown > CountDown sizeVue demo works fine 1`] = `
class="demo-count-down-content"
>
<div
class="t-count-down t-count-down--round t-count-down--small"
class="t-count-down t-count-down--round t-count-down--medium"
>
Expand Down
2 changes: 1 addition & 1 deletion src/count-down/__test__/index.test.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('countdown.vue', async () => {

it('size', async () => {
const wrapper = mount(<CountDown time={100000}></CountDown>);
expect(wrapper.find('.t-count-down--small').exists()).toBe(true);
expect(wrapper.find('.t-count-down--medium').exists()).toBe(true);
});

it('theme', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/count-down/count-down.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ autoStart | Boolean | true | 是否自动开始倒计时 | N
content | String / Slot / Function | 'default' | 最终倒计时的展示内容,值为'default'时使用默认的格式,否则使用自定义样式插槽。TS 类型:`string \| TNode`[通用类型定义](https://github.com/Tencent/tdesign-mobile-vue/blob/develop/src/common.ts) | N
format | String | HH:mm:ss | 时间格式,DD-日,HH-时,mm-分,ss-秒,SSS-毫秒 | N
millisecond | Boolean | false | 是否开启毫秒级渲染 | N
size | String | 'small' | 倒计时尺寸。可选项:small/medium/large | N
size | String | 'medium' | 倒计时尺寸。可选项:small/medium/large | N
splitWithUnit | Boolean | false | 使用时间单位分割 | N
theme | String | 'default' | 倒计时风格。可选项:default/round/square | N
time | Number | - | 必需。倒计时时长,单位毫秒 | Y
Expand Down
2 changes: 1 addition & 1 deletion src/count-down/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default {
/** 倒计时尺寸 */
size: {
type: String as PropType<TdCountDownProps['size']>,
default: 'small' as TdCountDownProps['size'],
default: 'medium' as TdCountDownProps['size'],
validator(val: TdCountDownProps['size']): boolean {
if (!val) return true;
return ['small', 'medium', 'large'].includes(val);
Expand Down

0 comments on commit a73fa53

Please sign in to comment.