File tree Expand file tree Collapse file tree 11 files changed +36
-44
lines changed
Expand file tree Collapse file tree 11 files changed +36
-44
lines changed Original file line number Diff line number Diff line change 11import 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
115export type ButtonSizeType = 'large' | 'default' | 'small'
126export type ButtonNativeType = 'button' | 'submit' | 'reset'
Original file line number Diff line number Diff line change 1+ import type { CardProps } from './card-types'
12import { computed , defineComponent } from 'vue'
23import { useNamespace } from '../../shared/hooks/use-namespace'
3- import type { CardProps } from './card-types'
44import { cardProps } from './card-types'
55import './card.scss'
66
Original file line number Diff line number Diff line change 1+ import type { RadioProps } from './radio-types'
12import { computed , defineComponent , inject } from 'vue'
23import { useNamespace } from '../../shared/hooks/use-namespace'
3- import type { RadioProps } from './radio-types'
44import IconActive from './components/icon-active'
55import IconCircle from './components/icon-circle'
66import { radioGroupInjectionKey , radioProps } from './radio-types'
Original file line number Diff line number Diff line change 1+ import type { RateProps } from './rate-types'
12import { computed , defineComponent , ref } from 'vue'
23import { useNamespace } from '../../shared/hooks/use-namespace'
3- import type { RateProps } from './rate-types'
4- import { rateProps } from './rate-types'
54import iconDefault from './components/icon-default'
5+ import { rateProps } from './rate-types'
66
77import './rate.scss'
88
Original file line number Diff line number Diff line change 11import 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
1212export const statusProps = {
1313 type : {
Original file line number Diff line number Diff line change 1+ import type { StatusProps } from './status-types'
12import { computed , defineComponent } from 'vue'
23import { useNamespace } from '../../shared/hooks/use-namespace'
3- import type { StatusProps } from './status-types'
44import { statusProps } from './status-types'
55
66import './status.scss'
Original file line number Diff line number Diff line change 1- import { defineComponent , inject , onUnmounted } from 'vue'
21import type { TabsState } from '../../tabs-types'
2+ import type { TabProps } from './tab-types'
3+ import { defineComponent , inject , onUnmounted } from 'vue'
34import { useNamespace } from '../../../../shared/hooks/use-namespace'
45import { tabsInjectionKey } from '../../tabs-types'
5- import type { TabProps } from './tab-types'
66import { tabProps } from './tab-types'
77import './tab.scss'
88
Original file line number Diff line number Diff line change 1+ import type { TreeItem , TreeProps } from './tree-types'
12import { computed , defineComponent , toRefs } from 'vue'
23import { useNamespace } from '../../shared/hooks/use-namespace'
3- import type { TreeItem , TreeProps } from './tree-types'
44import IconClose from './components/icon-close'
55import IconOpen from './components/icon-open'
66import useToggle from './composables/use-toggle'
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments