mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 04:08:44 +08:00 
			
		
		
		
	初始化项目,自 v1.7.1 版本开始
This commit is contained in:
		
							
								
								
									
										119
									
								
								src/types/auto-components.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										119
									
								
								src/types/auto-components.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,119 @@
 | 
			
		||||
// generated by unplugin-vue-components
 | 
			
		||||
// We suggest you to commit this file into source control
 | 
			
		||||
// Read more: https://github.com/vuejs/core/pull/3399
 | 
			
		||||
import '@vue/runtime-core'
 | 
			
		||||
 | 
			
		||||
export {}
 | 
			
		||||
 | 
			
		||||
declare module '@vue/runtime-core' {
 | 
			
		||||
  export interface GlobalComponents {
 | 
			
		||||
    Backtop: typeof import('./../components/Backtop/src/Backtop.vue')['default']
 | 
			
		||||
    ConfigGlobal: typeof import('./../components/ConfigGlobal/src/ConfigGlobal.vue')['default']
 | 
			
		||||
    ContentDetailWrap: typeof import('./../components/ContentDetailWrap/src/ContentDetailWrap.vue')['default']
 | 
			
		||||
    ContentWrap: typeof import('./../components/ContentWrap/src/ContentWrap.vue')['default']
 | 
			
		||||
    CopperModal: typeof import('./../components/Cropper/src/CopperModal.vue')['default']
 | 
			
		||||
    CountTo: typeof import('./../components/CountTo/src/CountTo.vue')['default']
 | 
			
		||||
    Crontab: typeof import('./../components/Crontab/src/Crontab.vue')['default']
 | 
			
		||||
    Cropper: typeof import('./../components/Cropper/src/Cropper.vue')['default']
 | 
			
		||||
    CropperAvatar: typeof import('./../components/Cropper/src/CropperAvatar.vue')['default']
 | 
			
		||||
    Descriptions: typeof import('./../components/Descriptions/src/Descriptions.vue')['default']
 | 
			
		||||
    Dialog: typeof import('./../components/Dialog/src/Dialog.vue')['default']
 | 
			
		||||
    DictTag: typeof import('./../components/DictTag/src/DictTag.vue')['default']
 | 
			
		||||
    Echart: typeof import('./../components/Echart/src/Echart.vue')['default']
 | 
			
		||||
    Editor: typeof import('./../components/Editor/src/Editor.vue')['default']
 | 
			
		||||
    ElAvatar: typeof import('element-plus/es')['ElAvatar']
 | 
			
		||||
    ElBadge: typeof import('element-plus/es')['ElBadge']
 | 
			
		||||
    ElButton: typeof import('element-plus/es')['ElButton']
 | 
			
		||||
    ElButtonGroup: typeof import('element-plus/es')['ElButtonGroup']
 | 
			
		||||
    ElCard: typeof import('element-plus/es')['ElCard']
 | 
			
		||||
    ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
 | 
			
		||||
    ElCol: typeof import('element-plus/es')['ElCol']
 | 
			
		||||
    ElCollapse: typeof import('element-plus/es')['ElCollapse']
 | 
			
		||||
    ElCollapseItem: typeof import('element-plus/es')['ElCollapseItem']
 | 
			
		||||
    ElCollapseTransition: typeof import('element-plus/es')['ElCollapseTransition']
 | 
			
		||||
    ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
 | 
			
		||||
    ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
 | 
			
		||||
    ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
 | 
			
		||||
    ElDialog: typeof import('element-plus/es')['ElDialog']
 | 
			
		||||
    ElDivider: typeof import('element-plus/es')['ElDivider']
 | 
			
		||||
    ElDrawer: typeof import('element-plus/es')['ElDrawer']
 | 
			
		||||
    ElDropdown: typeof import('element-plus/es')['ElDropdown']
 | 
			
		||||
    ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
 | 
			
		||||
    ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
 | 
			
		||||
    ElementBaseInfo: typeof import('./../components/bpmnProcessDesigner/package/penal/base/ElementBaseInfo.vue')['default']
 | 
			
		||||
    ElementForm: typeof import('./../components/bpmnProcessDesigner/package/penal/form/ElementForm.vue')['default']
 | 
			
		||||
    ElementListeners: typeof import('./../components/bpmnProcessDesigner/package/penal/listeners/ElementListeners.vue')['default']
 | 
			
		||||
    ElementMultiInstance: typeof import('./../components/bpmnProcessDesigner/package/penal/multi-instance/ElementMultiInstance.vue')['default']
 | 
			
		||||
    ElementOtherConfig: typeof import('./../components/bpmnProcessDesigner/package/penal/other/ElementOtherConfig.vue')['default']
 | 
			
		||||
    ElementProperties: typeof import('./../components/bpmnProcessDesigner/package/penal/properties/ElementProperties.vue')['default']
 | 
			
		||||
    ElementTask: typeof import('./../components/bpmnProcessDesigner/package/penal/task/ElementTask.vue')['default']
 | 
			
		||||
    ElForm: typeof import('element-plus/es')['ElForm']
 | 
			
		||||
    ElFormItem: typeof import('element-plus/es')['ElFormItem']
 | 
			
		||||
    ElIcon: typeof import('element-plus/es')['ElIcon']
 | 
			
		||||
    ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
 | 
			
		||||
    ElInput: typeof import('element-plus/es')['ElInput']
 | 
			
		||||
    ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
 | 
			
		||||
    ElLink: typeof import('element-plus/es')['ElLink']
 | 
			
		||||
    ElOption: typeof import('element-plus/es')['ElOption']
 | 
			
		||||
    ElPagination: typeof import('element-plus/es')['ElPagination']
 | 
			
		||||
    ElPopover: typeof import('element-plus/es')['ElPopover']
 | 
			
		||||
    ElRadio: typeof import('element-plus/es')['ElRadio']
 | 
			
		||||
    ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
 | 
			
		||||
    ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
 | 
			
		||||
    ElRow: typeof import('element-plus/es')['ElRow']
 | 
			
		||||
    ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
 | 
			
		||||
    ElSelect: typeof import('element-plus/es')['ElSelect']
 | 
			
		||||
    ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
 | 
			
		||||
    ElSpace: typeof import('element-plus/es')['ElSpace']
 | 
			
		||||
    ElSwitch: typeof import('element-plus/es')['ElSwitch']
 | 
			
		||||
    ElTable: typeof import('element-plus/es')['ElTable']
 | 
			
		||||
    ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
 | 
			
		||||
    ElTabPane: typeof import('element-plus/es')['ElTabPane']
 | 
			
		||||
    ElTabs: typeof import('element-plus/es')['ElTabs']
 | 
			
		||||
    ElTag: typeof import('element-plus/es')['ElTag']
 | 
			
		||||
    ElTooltip: typeof import('element-plus/es')['ElTooltip']
 | 
			
		||||
    ElTransfer: typeof import('element-plus/es')['ElTransfer']
 | 
			
		||||
    ElTree: typeof import('element-plus/es')['ElTree']
 | 
			
		||||
    ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
 | 
			
		||||
    ElUpload: typeof import('element-plus/es')['ElUpload']
 | 
			
		||||
    Error: typeof import('./../components/Error/src/Error.vue')['default']
 | 
			
		||||
    FlowCondition: typeof import('./../components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue')['default']
 | 
			
		||||
    Form: typeof import('./../components/Form/src/Form.vue')['default']
 | 
			
		||||
    Highlight: typeof import('./../components/Highlight/src/Highlight.vue')['default']
 | 
			
		||||
    Icon: typeof import('./../components/Icon/src/Icon.vue')['default']
 | 
			
		||||
    IconSelect: typeof import('./../components/Icon/src/IconSelect.vue')['default']
 | 
			
		||||
    IFrame: typeof import('./../components/IFrame/src/IFrame.vue')['default']
 | 
			
		||||
    ImageViewer: typeof import('./../components/ImageViewer/src/ImageViewer.vue')['default']
 | 
			
		||||
    Infotip: typeof import('./../components/Infotip/src/Infotip.vue')['default']
 | 
			
		||||
    InputPassword: typeof import('./../components/InputPassword/src/InputPassword.vue')['default']
 | 
			
		||||
    ProcessDesigner: typeof import('./../components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue')['default']
 | 
			
		||||
    ProcessPalette: typeof import('./../components/bpmnProcessDesigner/package/palette/ProcessPalette.vue')['default']
 | 
			
		||||
    ProcessViewer: typeof import('./../components/bpmnProcessDesigner/package/designer/ProcessViewer.vue')['default']
 | 
			
		||||
    PropertiesPanel: typeof import('./../components/bpmnProcessDesigner/package/penal/PropertiesPanel.vue')['default']
 | 
			
		||||
    Qrcode: typeof import('./../components/Qrcode/src/Qrcode.vue')['default']
 | 
			
		||||
    ReceiveTask: typeof import('./../components/bpmnProcessDesigner/package/penal/task/task-components/ReceiveTask.vue')['default']
 | 
			
		||||
    RouterLink: typeof import('vue-router')['RouterLink']
 | 
			
		||||
    RouterView: typeof import('vue-router')['RouterView']
 | 
			
		||||
    ScriptTask: typeof import('./../components/bpmnProcessDesigner/package/penal/task/task-components/ScriptTask.vue')['default']
 | 
			
		||||
    Search: typeof import('./../components/Search/src/Search.vue')['default']
 | 
			
		||||
    SignalAndMessage: typeof import('./../components/bpmnProcessDesigner/package/penal/signal-message/SignalAndMessage.vue')['default']
 | 
			
		||||
    Sticky: typeof import('./../components/Sticky/src/Sticky.vue')['default']
 | 
			
		||||
    Table: typeof import('./../components/Table/src/Table.vue')['default']
 | 
			
		||||
    Tooltip: typeof import('./../components/Tooltip/src/Tooltip.vue')['default']
 | 
			
		||||
    UploadFile: typeof import('./../components/UploadFile/src/UploadFile.vue')['default']
 | 
			
		||||
    UploadImg: typeof import('./../components/UploadFile/src/UploadImg.vue')['default']
 | 
			
		||||
    UploadImgs: typeof import('./../components/UploadFile/src/UploadImgs.vue')['default']
 | 
			
		||||
    UserTask: typeof import('./../components/bpmnProcessDesigner/package/penal/task/task-components/UserTask.vue')['default']
 | 
			
		||||
    UserTaskListeners: typeof import('./../components/bpmnProcessDesigner/package/penal/listeners/UserTaskListeners.vue')['default']
 | 
			
		||||
    Verify: typeof import('./../components/Verifition/src/Verify.vue')['default']
 | 
			
		||||
    VerifyPoints: typeof import('./../components/Verifition/src/Verify/VerifyPoints.vue')['default']
 | 
			
		||||
    VerifySlide: typeof import('./../components/Verifition/src/Verify/VerifySlide.vue')['default']
 | 
			
		||||
    XButton: typeof import('./../components/XButton/src/XButton.vue')['default']
 | 
			
		||||
    XModal: typeof import('./../components/XModal/src/XModal.vue')['default']
 | 
			
		||||
    XTable: typeof import('./../components/XTable/src/XTable.vue')['default']
 | 
			
		||||
    XTextButton: typeof import('./../components/XButton/src/XTextButton.vue')['default']
 | 
			
		||||
  }
 | 
			
		||||
  export interface ComponentCustomProperties {
 | 
			
		||||
    vLoading: typeof import('element-plus/es')['ElLoadingDirective']
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										67
									
								
								src/types/auto-imports.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										67
									
								
								src/types/auto-imports.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,67 @@
 | 
			
		||||
// Generated by 'unplugin-auto-import'
 | 
			
		||||
export {}
 | 
			
		||||
declare global {
 | 
			
		||||
  const DICT_TYPE: typeof import('@/utils/dict')['DICT_TYPE']
 | 
			
		||||
  const EffectScope: typeof import('vue')['EffectScope']
 | 
			
		||||
  const computed: typeof import('vue')['computed']
 | 
			
		||||
  const createApp: typeof import('vue')['createApp']
 | 
			
		||||
  const customRef: typeof import('vue')['customRef']
 | 
			
		||||
  const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
 | 
			
		||||
  const defineComponent: typeof import('vue')['defineComponent']
 | 
			
		||||
  const effectScope: typeof import('vue')['effectScope']
 | 
			
		||||
  const getCurrentInstance: typeof import('vue')['getCurrentInstance']
 | 
			
		||||
  const getCurrentScope: typeof import('vue')['getCurrentScope']
 | 
			
		||||
  const h: typeof import('vue')['h']
 | 
			
		||||
  const inject: typeof import('vue')['inject']
 | 
			
		||||
  const isProxy: typeof import('vue')['isProxy']
 | 
			
		||||
  const isReactive: typeof import('vue')['isReactive']
 | 
			
		||||
  const isReadonly: typeof import('vue')['isReadonly']
 | 
			
		||||
  const isRef: typeof import('vue')['isRef']
 | 
			
		||||
  const markRaw: typeof import('vue')['markRaw']
 | 
			
		||||
  const nextTick: typeof import('vue')['nextTick']
 | 
			
		||||
  const onActivated: typeof import('vue')['onActivated']
 | 
			
		||||
  const onBeforeMount: typeof import('vue')['onBeforeMount']
 | 
			
		||||
  const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
 | 
			
		||||
  const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
 | 
			
		||||
  const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
 | 
			
		||||
  const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
 | 
			
		||||
  const onDeactivated: typeof import('vue')['onDeactivated']
 | 
			
		||||
  const onErrorCaptured: typeof import('vue')['onErrorCaptured']
 | 
			
		||||
  const onMounted: typeof import('vue')['onMounted']
 | 
			
		||||
  const onRenderTracked: typeof import('vue')['onRenderTracked']
 | 
			
		||||
  const onRenderTriggered: typeof import('vue')['onRenderTriggered']
 | 
			
		||||
  const onScopeDispose: typeof import('vue')['onScopeDispose']
 | 
			
		||||
  const onServerPrefetch: typeof import('vue')['onServerPrefetch']
 | 
			
		||||
  const onUnmounted: typeof import('vue')['onUnmounted']
 | 
			
		||||
  const onUpdated: typeof import('vue')['onUpdated']
 | 
			
		||||
  const provide: typeof import('vue')['provide']
 | 
			
		||||
  const reactive: typeof import('vue')['reactive']
 | 
			
		||||
  const readonly: typeof import('vue')['readonly']
 | 
			
		||||
  const ref: typeof import('vue')['ref']
 | 
			
		||||
  const required: typeof import('@/utils/formRules')['required']
 | 
			
		||||
  const resolveComponent: typeof import('vue')['resolveComponent']
 | 
			
		||||
  const resolveDirective: typeof import('vue')['resolveDirective']
 | 
			
		||||
  const shallowReactive: typeof import('vue')['shallowReactive']
 | 
			
		||||
  const shallowReadonly: typeof import('vue')['shallowReadonly']
 | 
			
		||||
  const shallowRef: typeof import('vue')['shallowRef']
 | 
			
		||||
  const toRaw: typeof import('vue')['toRaw']
 | 
			
		||||
  const toRef: typeof import('vue')['toRef']
 | 
			
		||||
  const toRefs: typeof import('vue')['toRefs']
 | 
			
		||||
  const triggerRef: typeof import('vue')['triggerRef']
 | 
			
		||||
  const unref: typeof import('vue')['unref']
 | 
			
		||||
  const useAttrs: typeof import('vue')['useAttrs']
 | 
			
		||||
  const useCssModule: typeof import('vue')['useCssModule']
 | 
			
		||||
  const useCssVars: typeof import('vue')['useCssVars']
 | 
			
		||||
  const useI18n: typeof import('@/hooks/web/useI18n')['useI18n']
 | 
			
		||||
  const useLink: typeof import('vue-router')['useLink']
 | 
			
		||||
  const useMessage: typeof import('@/hooks/web/useMessage')['useMessage']
 | 
			
		||||
  const useRoute: typeof import('vue-router')['useRoute']
 | 
			
		||||
  const useRouter: typeof import('vue-router')['useRouter']
 | 
			
		||||
  const useSlots: typeof import('vue')['useSlots']
 | 
			
		||||
  const useVxeCrudSchemas: typeof import('@/hooks/web/useVxeCrudSchemas')['useVxeCrudSchemas']
 | 
			
		||||
  const useXTable: typeof import('@/hooks/web/useXTable')['useXTable']
 | 
			
		||||
  const watch: typeof import('vue')['watch']
 | 
			
		||||
  const watchEffect: typeof import('vue')['watchEffect']
 | 
			
		||||
  const watchPostEffect: typeof import('vue')['watchPostEffect']
 | 
			
		||||
  const watchSyncEffect: typeof import('vue')['watchSyncEffect']
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										56
									
								
								src/types/components.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										56
									
								
								src/types/components.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,56 @@
 | 
			
		||||
export type ComponentName =
 | 
			
		||||
  | 'Radio'
 | 
			
		||||
  | 'RadioButton'
 | 
			
		||||
  | 'Checkbox'
 | 
			
		||||
  | 'CheckboxButton'
 | 
			
		||||
  | 'Input'
 | 
			
		||||
  | 'Autocomplete'
 | 
			
		||||
  | 'InputNumber'
 | 
			
		||||
  | 'Select'
 | 
			
		||||
  | 'Cascader'
 | 
			
		||||
  | 'Switch'
 | 
			
		||||
  | 'Slider'
 | 
			
		||||
  | 'TimePicker'
 | 
			
		||||
  | 'DatePicker'
 | 
			
		||||
  | 'Rate'
 | 
			
		||||
  | 'ColorPicker'
 | 
			
		||||
  | 'Transfer'
 | 
			
		||||
  | 'Divider'
 | 
			
		||||
  | 'TimeSelect'
 | 
			
		||||
  | 'SelectV2'
 | 
			
		||||
  | 'TreeSelect'
 | 
			
		||||
  | 'InputPassword'
 | 
			
		||||
  | 'Editor'
 | 
			
		||||
  | 'UploadImg'
 | 
			
		||||
  | 'UploadImgs'
 | 
			
		||||
  | 'UploadFile'
 | 
			
		||||
 | 
			
		||||
export type ColProps = {
 | 
			
		||||
  span?: number
 | 
			
		||||
  xs?: number
 | 
			
		||||
  sm?: number
 | 
			
		||||
  md?: number
 | 
			
		||||
  lg?: number
 | 
			
		||||
  xl?: number
 | 
			
		||||
  tag?: string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export type ComponentOptions = {
 | 
			
		||||
  label?: string
 | 
			
		||||
  value?: FormValueType
 | 
			
		||||
  disabled?: boolean
 | 
			
		||||
  key?: string | number
 | 
			
		||||
  children?: ComponentOptions[]
 | 
			
		||||
  options?: ComponentOptions[]
 | 
			
		||||
} & Recordable
 | 
			
		||||
 | 
			
		||||
export type ComponentOptionsAlias = {
 | 
			
		||||
  labelField?: string
 | 
			
		||||
  valueField?: string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export type ComponentProps = {
 | 
			
		||||
  optionsAlias?: ComponentOptionsAlias
 | 
			
		||||
  options?: ComponentOptions[]
 | 
			
		||||
  optionsSlot?: boolean
 | 
			
		||||
} & Recordable
 | 
			
		||||
							
								
								
									
										4
									
								
								src/types/configGlobal.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								src/types/configGlobal.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
import { ElementPlusSize } from './elementPlus'
 | 
			
		||||
export interface ConfigGlobalTypes {
 | 
			
		||||
  size?: ElementPlusSize
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										7
									
								
								src/types/contextMenu.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								src/types/contextMenu.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,7 @@
 | 
			
		||||
export type contextMenuSchema = {
 | 
			
		||||
  disabled?: boolean
 | 
			
		||||
  divided?: boolean
 | 
			
		||||
  icon?: string
 | 
			
		||||
  label: string
 | 
			
		||||
  command?: (item: contextMenuSchema) => void
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										13
									
								
								src/types/descriptions.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								src/types/descriptions.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
			
		||||
export interface DescriptionsSchema {
 | 
			
		||||
  span?: number // 占多少分
 | 
			
		||||
  field: string // 字段名
 | 
			
		||||
  label?: string // label名
 | 
			
		||||
  width?: string | number
 | 
			
		||||
  minWidth?: string | number
 | 
			
		||||
  align?: 'left' | 'center' | 'right'
 | 
			
		||||
  labelAlign?: 'left' | 'center' | 'right'
 | 
			
		||||
  className?: string
 | 
			
		||||
  labelClassName?: string
 | 
			
		||||
  dateFormat?: string
 | 
			
		||||
  dictType?: string
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										3
									
								
								src/types/elementPlus.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								src/types/elementPlus.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
export type ElementPlusSize = 'default' | 'small' | 'large'
 | 
			
		||||
 | 
			
		||||
export type ElementPlusInfoType = 'success' | 'info' | 'warning' | 'danger'
 | 
			
		||||
							
								
								
									
										44
									
								
								src/types/form.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										44
									
								
								src/types/form.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,44 @@
 | 
			
		||||
import type { CSSProperties } from 'vue'
 | 
			
		||||
import { ColProps, ComponentProps, ComponentName } from '@/types/components'
 | 
			
		||||
import type { AxiosPromise } from 'axios'
 | 
			
		||||
 | 
			
		||||
export type FormSetPropsType = {
 | 
			
		||||
  field: string
 | 
			
		||||
  path: string
 | 
			
		||||
  value: any
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export type FormValueType = string | number | string[] | number[] | boolean | undefined | null
 | 
			
		||||
 | 
			
		||||
export type FormItemProps = {
 | 
			
		||||
  labelWidth?: string | number
 | 
			
		||||
  required?: boolean
 | 
			
		||||
  rules?: Recordable
 | 
			
		||||
  error?: string
 | 
			
		||||
  showMessage?: boolean
 | 
			
		||||
  inlineMessage?: boolean
 | 
			
		||||
  style?: CSSProperties
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export type FormSchema = {
 | 
			
		||||
  // 唯一值
 | 
			
		||||
  field: string
 | 
			
		||||
  // 标题
 | 
			
		||||
  label?: string
 | 
			
		||||
  // 提示
 | 
			
		||||
  labelMessage?: string
 | 
			
		||||
  // col组件属性
 | 
			
		||||
  colProps?: ColProps
 | 
			
		||||
  // 表单组件属性,slots对应的是表单组件的插槽,规则:${field}-xxx,具体可以查看element-plus文档
 | 
			
		||||
  componentProps?: { slots?: Recordable } & ComponentProps
 | 
			
		||||
  // formItem组件属性
 | 
			
		||||
  formItemProps?: FormItemProps
 | 
			
		||||
  // 渲染的组件
 | 
			
		||||
  component?: ComponentName
 | 
			
		||||
  // 初始值
 | 
			
		||||
  value?: FormValueType
 | 
			
		||||
  // 是否隐藏
 | 
			
		||||
  hidden?: boolean
 | 
			
		||||
  // 远程加载下拉项
 | 
			
		||||
  api?: <T = any>() => AxiosPromise<T>
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										5
									
								
								src/types/icon.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								src/types/icon.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
export interface IconTypes {
 | 
			
		||||
  size?: number
 | 
			
		||||
  color?: string
 | 
			
		||||
  icon: string
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										4
									
								
								src/types/infoTip.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								src/types/infoTip.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
export interface TipSchema {
 | 
			
		||||
  label: string
 | 
			
		||||
  keys?: string[]
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										1
									
								
								src/types/layout.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								src/types/layout.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
export type LayoutType = 'classic' | 'topLeft' | 'top' | 'cutMenu'
 | 
			
		||||
							
								
								
									
										10
									
								
								src/types/localeDropdown.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								src/types/localeDropdown.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
export interface Language {
 | 
			
		||||
  el: Recordable
 | 
			
		||||
  name: string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface LocaleDropdownType {
 | 
			
		||||
  lang: LocaleType
 | 
			
		||||
  name?: string
 | 
			
		||||
  elLocale?: Language
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										9
									
								
								src/types/qrcode.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/types/qrcode.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
export interface QrcodeLogo {
 | 
			
		||||
  src?: string
 | 
			
		||||
  logoSize?: number
 | 
			
		||||
  bgColor?: string
 | 
			
		||||
  borderSize?: number
 | 
			
		||||
  crossOrigin?: string
 | 
			
		||||
  borderRadius?: number
 | 
			
		||||
  logoRadius?: number
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										42
									
								
								src/types/table.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								src/types/table.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
export type TableColumn = {
 | 
			
		||||
  field: string
 | 
			
		||||
  label?: string
 | 
			
		||||
  children?: TableColumn[]
 | 
			
		||||
} & Recordable
 | 
			
		||||
 | 
			
		||||
export type VxeTableColumn = {
 | 
			
		||||
  field: string
 | 
			
		||||
  title?: string
 | 
			
		||||
  children?: TableColumn[]
 | 
			
		||||
} & Recordable
 | 
			
		||||
 | 
			
		||||
export type TableSlotDefault = {
 | 
			
		||||
  row: Recordable
 | 
			
		||||
  column: TableColumn
 | 
			
		||||
  $index: number
 | 
			
		||||
} & Recordable
 | 
			
		||||
 | 
			
		||||
export interface Pagination {
 | 
			
		||||
  small?: boolean
 | 
			
		||||
  background?: boolean
 | 
			
		||||
  pageSize?: number
 | 
			
		||||
  defaultPageSize?: number
 | 
			
		||||
  total?: number
 | 
			
		||||
  pageCount?: number
 | 
			
		||||
  pagerCount?: number
 | 
			
		||||
  currentPage?: number
 | 
			
		||||
  defaultCurrentPage?: number
 | 
			
		||||
  layout?: string
 | 
			
		||||
  pageSizes?: number[]
 | 
			
		||||
  popperClass?: string
 | 
			
		||||
  prevText?: string
 | 
			
		||||
  nextText?: string
 | 
			
		||||
  disabled?: boolean
 | 
			
		||||
  hideOnSinglePage?: boolean
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export interface TableSetPropsType {
 | 
			
		||||
  field: string
 | 
			
		||||
  path: string
 | 
			
		||||
  value: any
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										16
									
								
								src/types/theme.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								src/types/theme.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
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
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user