types: 调整类型
This commit is contained in:
parent
de0cb43566
commit
24c8af9183
|
@ -1,3 +1,5 @@
|
||||||
import Icon from './src/Icon.vue'
|
import Icon from './src/Icon.vue'
|
||||||
|
|
||||||
|
export type { IconTypes } from './src/types'
|
||||||
|
|
||||||
export { Icon }
|
export { Icon }
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
import Infotip from './src/Infotip.vue'
|
import Infotip from './src/Infotip.vue'
|
||||||
|
|
||||||
|
export type { InfoTipSchema } from './src/types'
|
||||||
|
|
||||||
export { Infotip }
|
export { Infotip }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export interface TipSchema {
|
export interface InfoTipSchema {
|
||||||
label: string
|
label: string
|
||||||
keys?: string[]
|
keys?: string[]
|
||||||
}
|
}
|
|
@ -1,3 +1,5 @@
|
||||||
import LocaleDropdown from './src/LocaleDropdown.vue'
|
import LocaleDropdown from './src/LocaleDropdown.vue'
|
||||||
|
|
||||||
|
export type { Language, LocaleDropdownType } from './src/types'
|
||||||
|
|
||||||
export { LocaleDropdown }
|
export { LocaleDropdown }
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
import Qrcode from './src/Qrcode.vue'
|
import Qrcode from './src/Qrcode.vue'
|
||||||
|
|
||||||
|
export type { QrcodeLogo } from './src/types'
|
||||||
|
|
||||||
export { Qrcode }
|
export { Qrcode }
|
||||||
|
|
|
@ -6,7 +6,7 @@ import { cloneDeep } from 'lodash-es'
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { useDesign } from '@/hooks/web/useDesign'
|
import { useDesign } from '@/hooks/web/useDesign'
|
||||||
import { isString } from '@/utils/is'
|
import { isString } from '@/utils/is'
|
||||||
import { QrcodeLogo } from '@/types/qrcode'
|
import { QrcodeLogo } from '@/components/Qrcode'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
// img 或者 canvas,img不支持logo嵌套
|
// img 或者 canvas,img不支持logo嵌套
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { Pagination, TableColumn } from '@/types/table'
|
import { Pagination, TableColumn } from '@/types/table'
|
||||||
|
|
||||||
export type TableProps = {
|
export interface TableProps {
|
||||||
pageSize?: number
|
pageSize?: number
|
||||||
currentPage?: number
|
currentPage?: number
|
||||||
// 是否多选
|
// 是否多选
|
||||||
|
@ -23,4 +23,5 @@ export type TableProps = {
|
||||||
headerAlign?: 'left' | 'center' | 'right'
|
headerAlign?: 'left' | 'center' | 'right'
|
||||||
data?: Recordable
|
data?: Recordable
|
||||||
expand?: boolean
|
expand?: boolean
|
||||||
} & Recordable
|
[key: string]: any
|
||||||
|
}
|
|
@ -1,7 +1,6 @@
|
||||||
import { h } from 'vue'
|
import { h } from 'vue'
|
||||||
import type { VNode } from 'vue'
|
import type { VNode } from 'vue'
|
||||||
import { Icon } from '@/components/Icon'
|
import { Icon, IconTypes } from '@/components/Icon'
|
||||||
import { IconTypes } from '@/types/icon'
|
|
||||||
|
|
||||||
export const useIcon = (props: IconTypes): VNode => {
|
export const useIcon = (props: IconTypes): VNode => {
|
||||||
return h(Icon, props)
|
return h(Icon, props)
|
||||||
|
|
|
@ -2,10 +2,7 @@ import { defineStore } from 'pinia'
|
||||||
import { store } from '../index'
|
import { store } from '../index'
|
||||||
import { setCssVar, humpToUnderline } from '@/utils'
|
import { setCssVar, humpToUnderline } from '@/utils'
|
||||||
import { ElMessage } from 'element-plus'
|
import { ElMessage } from 'element-plus'
|
||||||
import { ElementPlusSize } from '@/types/elementPlus'
|
|
||||||
import { useCache } from '@/hooks/web/useCache'
|
import { useCache } from '@/hooks/web/useCache'
|
||||||
import { LayoutType } from '@/types/layout'
|
|
||||||
import { ThemeTypes } from '@/types/theme'
|
|
||||||
|
|
||||||
const { wsCache } = useCache()
|
const { wsCache } = useCache()
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { store } from '../index'
|
||||||
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
import zhCn from 'element-plus/es/locale/lang/zh-cn'
|
||||||
import en from 'element-plus/es/locale/lang/en'
|
import en from 'element-plus/es/locale/lang/en'
|
||||||
import { useCache } from '@/hooks/web/useCache'
|
import { useCache } from '@/hooks/web/useCache'
|
||||||
import { LocaleDropdownType } from '@/types/localeDropdown'
|
import { LocaleDropdownType } from '@/components/LocaleDropdown'
|
||||||
|
|
||||||
const { wsCache } = useCache()
|
const { wsCache } = useCache()
|
||||||
|
|
||||||
|
|
|
@ -1,16 +0,0 @@
|
||||||
export type ThemeTypes = {
|
|
||||||
elColorPrimary?: string
|
|
||||||
leftMenuBorderColor?: string
|
|
||||||
leftMenuBgColor?: string
|
|
||||||
leftMenuBgLightColor?: string
|
|
||||||
leftMenuBgActiveColor?: string
|
|
||||||
leftMenuCollapseBgActiveColor?: string
|
|
||||||
leftMenuTextColor?: string
|
|
||||||
leftMenuTextActiveColor?: string
|
|
||||||
logoTitleTextColor?: string
|
|
||||||
logoBorderColor?: string
|
|
||||||
topHeaderBgColor?: string
|
|
||||||
topHeaderTextColor?: string
|
|
||||||
topHeaderHoverColor?: string
|
|
||||||
topToolBorderColor?: string
|
|
||||||
}
|
|
|
@ -45,4 +45,21 @@ declare global {
|
||||||
code: string
|
code: string
|
||||||
data: T extends any ? T : T & any
|
data: T extends any ? T : T & any
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare interface ThemeTypes {
|
||||||
|
elColorPrimary?: string
|
||||||
|
leftMenuBorderColor?: string
|
||||||
|
leftMenuBgColor?: string
|
||||||
|
leftMenuBgLightColor?: string
|
||||||
|
leftMenuBgActiveColor?: string
|
||||||
|
leftMenuCollapseBgActiveColor?: string
|
||||||
|
leftMenuTextColor?: string
|
||||||
|
leftMenuTextActiveColor?: string
|
||||||
|
logoTitleTextColor?: string
|
||||||
|
logoBorderColor?: string
|
||||||
|
topHeaderBgColor?: string
|
||||||
|
topHeaderTextColor?: string
|
||||||
|
topHeaderHoverColor?: string
|
||||||
|
topToolBorderColor?: string
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue