Skip to content

Commit f9b6f08

Browse files
committed
style: 代码风格格式化
1 parent 9aa5794 commit f9b6f08

File tree

11 files changed

+36
-44
lines changed

11 files changed

+36
-44
lines changed

packages/ccui/ui/button/src/button-types.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
import type { ExtractPropTypes, PropType } from 'vue'
22

3-
export type ButtonType =
4-
| 'primary'
5-
| 'success'
6-
| 'warning'
7-
| 'danger'
8-
| 'info'
9-
| 'text'
3+
export type ButtonType = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text'
104

115
export type ButtonSizeType = 'large' | 'default' | 'small'
126
export type ButtonNativeType = 'button' | 'submit' | 'reset'

packages/ccui/ui/card/src/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { CardProps } from './card-types'
12
import { computed, defineComponent } from 'vue'
23
import { useNamespace } from '../../shared/hooks/use-namespace'
3-
import type { CardProps } from './card-types'
44
import { cardProps } from './card-types'
55
import './card.scss'
66

packages/ccui/ui/radio/src/radio.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { RadioProps } from './radio-types'
12
import { computed, defineComponent, inject } from 'vue'
23
import { useNamespace } from '../../shared/hooks/use-namespace'
3-
import type { RadioProps } from './radio-types'
44
import IconActive from './components/icon-active'
55
import IconCircle from './components/icon-circle'
66
import { radioGroupInjectionKey, radioProps } from './radio-types'

packages/ccui/ui/rate/src/rate.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1+
import type { RateProps } from './rate-types'
12
import { computed, defineComponent, ref } from 'vue'
23
import { useNamespace } from '../../shared/hooks/use-namespace'
3-
import type { RateProps } from './rate-types'
4-
import { rateProps } from './rate-types'
54
import iconDefault from './components/icon-default'
5+
import { rateProps } from './rate-types'
66

77
import './rate.scss'
88

packages/ccui/ui/status/src/status-types.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type { ExtractPropTypes, PropType } from 'vue'
22

3-
type IStatusType =
4-
| 'success'
5-
| 'error'
6-
| 'initial'
7-
| 'warning'
8-
| 'waiting'
9-
| 'running'
10-
| 'invalid'
3+
type IStatusType
4+
= | 'success'
5+
| 'error'
6+
| 'initial'
7+
| 'warning'
8+
| 'waiting'
9+
| 'running'
10+
| 'invalid'
1111

1212
export const statusProps = {
1313
type: {

packages/ccui/ui/status/src/status.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { StatusProps } from './status-types'
12
import { computed, defineComponent } from 'vue'
23
import { useNamespace } from '../../shared/hooks/use-namespace'
3-
import type { StatusProps } from './status-types'
44
import { statusProps } from './status-types'
55

66
import './status.scss'

packages/ccui/ui/tabs/src/components/tab/tab.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { defineComponent, inject, onUnmounted } from 'vue'
21
import type { TabsState } from '../../tabs-types'
2+
import type { TabProps } from './tab-types'
3+
import { defineComponent, inject, onUnmounted } from 'vue'
34
import { useNamespace } from '../../../../shared/hooks/use-namespace'
45
import { tabsInjectionKey } from '../../tabs-types'
5-
import type { TabProps } from './tab-types'
66
import { tabProps } from './tab-types'
77
import './tab.scss'
88

packages/ccui/ui/tree/src/tree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import type { TreeItem, TreeProps } from './tree-types'
12
import { computed, defineComponent, toRefs } from 'vue'
23
import { useNamespace } from '../../shared/hooks/use-namespace'
3-
import type { TreeItem, TreeProps } from './tree-types'
44
import IconClose from './components/icon-close'
55
import IconOpen from './components/icon-open'
66
import useToggle from './composables/use-toggle'

packages/docs/components/button-3d/index.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,11 @@
109109
### Button3DType
110110

111111
```ts
112-
export type Button3DType
113-
= 'primary'
114-
| 'success'
115-
| 'warning'
116-
| 'danger'
117-
| 'info'
112+
export type Button3DType = 'primary'
113+
| 'success'
114+
| 'warning'
115+
| 'danger'
116+
| 'info'
118117
```
119118
120119
### Button3DSizeType

packages/docs/components/button/index.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,12 @@ export default defineComponent({
149149
### ButtonType
150150

151151
```ts
152-
export type ButtonType
153-
= 'primary'
154-
| 'success'
155-
| 'warning'
156-
| 'danger'
157-
| 'info'
158-
| 'text'
152+
export type ButtonType = 'primary'
153+
| 'success'
154+
| 'warning'
155+
| 'danger'
156+
| 'info'
157+
| 'text'
159158
```
160159
161160
### ButtonSizeType

0 commit comments

Comments
 (0)