diff --git a/yudao-ui-admin-vue3/package.json b/yudao-ui-admin-vue3/package.json index 1bd227f87..6963e8da9 100644 --- a/yudao-ui-admin-vue3/package.json +++ b/yudao-ui-admin-vue3/package.json @@ -1,6 +1,6 @@ { "name": "ruoyi-vue-pro-vue3", - "version": "1.6.4.1651", + "version": "1.6.4.1801", "description": "基于vue3、element-plus、typesScript、vite3", "author": "xingyu", "private": false, diff --git a/yudao-ui-admin-vue3/src/components/ConfigGlobal/src/ConfigGlobal.vue b/yudao-ui-admin-vue3/src/components/ConfigGlobal/src/ConfigGlobal.vue index 985d5dfbb..da6f8c710 100644 --- a/yudao-ui-admin-vue3/src/components/ConfigGlobal/src/ConfigGlobal.vue +++ b/yudao-ui-admin-vue3/src/components/ConfigGlobal/src/ConfigGlobal.vue @@ -7,13 +7,14 @@ import { useWindowSize } from '@vueuse/core' import { useAppStore } from '@/store/modules/app' import { setCssVar } from '@/utils' import { useDesign } from '@/hooks/web/useDesign' +import { ElementPlusSize } from '@/types/elementPlus' const { variables } = useDesign() const appStore = useAppStore() const props = defineProps({ - size: propTypes.oneOf(['default', 'small', 'large']).def('default') + size: propTypes.oneOf(['default', 'small', 'large']).def('default') }) provide('configGlobal', props) diff --git a/yudao-ui-admin-vue3/src/components/ContextMenu/src/ContextMenu.vue b/yudao-ui-admin-vue3/src/components/ContextMenu/src/ContextMenu.vue index 500712154..fc86c1ddb 100644 --- a/yudao-ui-admin-vue3/src/components/ContextMenu/src/ContextMenu.vue +++ b/yudao-ui-admin-vue3/src/components/ContextMenu/src/ContextMenu.vue @@ -4,6 +4,7 @@ import { PropType, ref } from 'vue' import { useI18n } from '@/hooks/web/useI18n' import { useDesign } from '@/hooks/web/useDesign' import type { RouteLocationNormalizedLoaded } from 'vue-router' +import { contextMenuSchema } from '../../../types/contextMenu' const { getPrefixCls } = useDesign() diff --git a/yudao-ui-admin-vue3/src/components/Descriptions/src/Descriptions.vue b/yudao-ui-admin-vue3/src/components/Descriptions/src/Descriptions.vue index c59d74a2d..946546680 100644 --- a/yudao-ui-admin-vue3/src/components/Descriptions/src/Descriptions.vue +++ b/yudao-ui-admin-vue3/src/components/Descriptions/src/Descriptions.vue @@ -4,6 +4,7 @@ import { useDesign } from '@/hooks/web/useDesign' import { propTypes } from '@/utils/propTypes' import { ref, unref, PropType, computed, useAttrs } from 'vue' import { useAppStore } from '@/store/modules/app' +import { DescriptionsSchema } from '@/types/descriptions' const appStore = useAppStore() diff --git a/yudao-ui-admin-vue3/src/components/Form/index.ts b/yudao-ui-admin-vue3/src/components/Form/index.ts index a9c5efc55..484c7a22d 100644 --- a/yudao-ui-admin-vue3/src/components/Form/index.ts +++ b/yudao-ui-admin-vue3/src/components/Form/index.ts @@ -1,5 +1,6 @@ import Form from './src/Form.vue' import { ElForm } from 'element-plus' +import { FormSchema, FormSetPropsType } from '@/types/form' export interface FormExpose { setValues: (data: Recordable) => void diff --git a/yudao-ui-admin-vue3/src/components/Form/src/Form.vue b/yudao-ui-admin-vue3/src/components/Form/src/Form.vue index fee05dfe6..f1d2ca64b 100644 --- a/yudao-ui-admin-vue3/src/components/Form/src/Form.vue +++ b/yudao-ui-admin-vue3/src/components/Form/src/Form.vue @@ -20,6 +20,7 @@ import { findIndex } from '@/utils' import { set } from 'lodash-es' import { FormProps } from './types' import { Icon } from '@/components/Icon' +import { FormSchema, FormSetPropsType } from '@/types/form' const { getPrefixCls } = useDesign() diff --git a/yudao-ui-admin-vue3/src/components/Form/src/componentMap.ts b/yudao-ui-admin-vue3/src/components/Form/src/componentMap.ts index 822f64da1..9fdb1db7a 100644 --- a/yudao-ui-admin-vue3/src/components/Form/src/componentMap.ts +++ b/yudao-ui-admin-vue3/src/components/Form/src/componentMap.ts @@ -20,6 +20,7 @@ import { } from 'element-plus' import { InputPassword } from '@/components/InputPassword' import { Editor } from '@/components/Editor' +import { ComponentName } from '@/types/components' const componentMap: Recordable = { Radio: ElRadioGroup, diff --git a/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderCheckbox.tsx b/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderCheckbox.tsx index 26ac32e12..fb3f1beeb 100644 --- a/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderCheckbox.tsx +++ b/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderCheckbox.tsx @@ -1,3 +1,4 @@ +import { FormSchema } from '@/types/form' import { ElCheckbox, ElCheckboxButton } from 'element-plus' import { defineComponent } from 'vue' diff --git a/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderRadio.tsx b/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderRadio.tsx index 98a477873..a5831eb78 100644 --- a/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderRadio.tsx +++ b/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderRadio.tsx @@ -1,3 +1,4 @@ +import { FormSchema } from '@/types/form' import { ElRadio, ElRadioButton } from 'element-plus' import { defineComponent } from 'vue' diff --git a/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderSelect.tsx b/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderSelect.tsx index 43943a4ea..5c33d7697 100644 --- a/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderSelect.tsx +++ b/yudao-ui-admin-vue3/src/components/Form/src/components/useRenderSelect.tsx @@ -1,3 +1,5 @@ +import { FormSchema } from '@/types/form' +import { ComponentOptions } from '@/types/components' import { ElOption, ElOptionGroup } from 'element-plus' import { getSlot } from '@/utils/tsxHelper' import { Slots } from 'vue' diff --git a/yudao-ui-admin-vue3/src/components/Form/src/helper.ts b/yudao-ui-admin-vue3/src/components/Form/src/helper.ts index b81409c7e..15c3cc861 100644 --- a/yudao-ui-admin-vue3/src/components/Form/src/helper.ts +++ b/yudao-ui-admin-vue3/src/components/Form/src/helper.ts @@ -2,6 +2,8 @@ import { useI18n } from '@/hooks/web/useI18n' import type { Slots } from 'vue' import { getSlot } from '@/utils/tsxHelper' import { PlaceholderMoel } from './types' +import { FormSchema } from '@/types/form' +import { ColProps } from '@/types/components' /** * diff --git a/yudao-ui-admin-vue3/src/components/Form/src/types.ts b/yudao-ui-admin-vue3/src/components/Form/src/types.ts index fb650ba33..92a49d850 100644 --- a/yudao-ui-admin-vue3/src/components/Form/src/types.ts +++ b/yudao-ui-admin-vue3/src/components/Form/src/types.ts @@ -1,3 +1,5 @@ +import { FormSchema } from '@/types/form' + export interface PlaceholderMoel { placeholder?: string startPlaceholder?: string diff --git a/yudao-ui-admin-vue3/src/components/Infotip/src/Infotip.vue b/yudao-ui-admin-vue3/src/components/Infotip/src/Infotip.vue index 588cfb818..41ac96aed 100644 --- a/yudao-ui-admin-vue3/src/components/Infotip/src/Infotip.vue +++ b/yudao-ui-admin-vue3/src/components/Infotip/src/Infotip.vue @@ -1,8 +1,9 @@ diff --git a/yudao-ui-admin-vue3/src/components/TabMenu/src/TabMenu.vue b/yudao-ui-admin-vue3/src/components/TabMenu/src/TabMenu.vue index 061421b96..0625e21c5 100644 --- a/yudao-ui-admin-vue3/src/components/TabMenu/src/TabMenu.vue +++ b/yudao-ui-admin-vue3/src/components/TabMenu/src/TabMenu.vue @@ -1,7 +1,7 @@