Commit 8e03c57bf49366d96489e2b87a77fa582831625b
1 parent
85c4d1fb
perf: auto import vue element-plus
Showing
58 changed files
with
50 additions
and
142 deletions
yudao-ui-admin-vue3/src/App.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { computed } from 'vue' | ||
| 3 | import { isDark } from '@/utils/is' | 2 | import { isDark } from '@/utils/is' |
| 4 | import { useAppStore } from '@/store/modules/app' | 3 | import { useAppStore } from '@/store/modules/app' |
| 5 | import { useDesign } from '@/hooks/web/useDesign' | 4 | import { useDesign } from '@/hooks/web/useDesign' |
| 6 | -import { ConfigGlobal } from '@/components/ConfigGlobal' | ||
| 7 | import { CACHE_KEY, useCache } from '@/hooks/web/useCache' | 5 | import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
| 8 | 6 | ||
| 9 | const { getPrefixCls } = useDesign() | 7 | const { getPrefixCls } = useDesign() |
yudao-ui-admin-vue3/src/components/ConfigGlobal/src/ConfigGlobal.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { provide, computed, watch, onMounted } from 'vue' | ||
| 3 | import { propTypes } from '@/utils/propTypes' | 2 | import { propTypes } from '@/utils/propTypes' |
| 4 | -import { ElConfigProvider } from 'element-plus' | ||
| 5 | import { useLocaleStore } from '@/store/modules/locale' | 3 | import { useLocaleStore } from '@/store/modules/locale' |
| 6 | -import { useWindowSize } from '@vueuse/core' | ||
| 7 | import { useAppStore } from '@/store/modules/app' | 4 | import { useAppStore } from '@/store/modules/app' |
| 8 | import { setCssVar } from '@/utils' | 5 | import { setCssVar } from '@/utils' |
| 9 | import { useDesign } from '@/hooks/web/useDesign' | 6 | import { useDesign } from '@/hooks/web/useDesign' |
yudao-ui-admin-vue3/src/components/ContentDetailWrap/src/ContentDetailWrap.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { ElCard } from 'element-plus' | ||
| 3 | import { propTypes } from '@/utils/propTypes' | 2 | import { propTypes } from '@/utils/propTypes' |
| 4 | import { useDesign } from '@/hooks/web/useDesign' | 3 | import { useDesign } from '@/hooks/web/useDesign' |
| 5 | -import { ref, onMounted } from 'vue' | ||
| 6 | -import { Sticky } from '@/components/Sticky' | ||
| 7 | import { useI18n } from '@/hooks/web/useI18n' | 4 | import { useI18n } from '@/hooks/web/useI18n' |
| 8 | const { t } = useI18n() | 5 | const { t } = useI18n() |
| 9 | 6 |
yudao-ui-admin-vue3/src/components/CountTo/src/CountTo.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { reactive, computed, watch, onMounted, unref, toRef, PropType } from 'vue' | 2 | +import { PropType } from 'vue' |
| 3 | import { isNumber } from '@/utils/is' | 3 | import { isNumber } from '@/utils/is' |
| 4 | import { propTypes } from '@/utils/propTypes' | 4 | import { propTypes } from '@/utils/propTypes' |
| 5 | import { useDesign } from '@/hooks/web/useDesign' | 5 | import { useDesign } from '@/hooks/web/useDesign' |
yudao-ui-admin-vue3/src/components/Crontab/src/Crontab.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { | ||
| 3 | - ElInput, | ||
| 4 | - ElInputNumber, | ||
| 5 | - ElDialog, | ||
| 6 | - ElTabs, | ||
| 7 | - ElTabPane, | ||
| 8 | - ElSelect, | ||
| 9 | - ElOption, | ||
| 10 | - ElForm, | ||
| 11 | - ElFormItem, | ||
| 12 | - ElRadioGroup, | ||
| 13 | - ElRadioButton, | ||
| 14 | - ElMessage | ||
| 15 | -} from 'element-plus' | ||
| 16 | -import { ref, computed, onMounted, reactive, watch, PropType } from 'vue' | 2 | +import { ElMessage } from 'element-plus' |
| 3 | +import { PropType } from 'vue' | ||
| 17 | interface shortcutsType { | 4 | interface shortcutsType { |
| 18 | text: string | 5 | text: string |
| 19 | value: string | 6 | value: string |
yudao-ui-admin-vue3/src/components/Cropper/src/CopperModal.vue
| @@ -116,11 +116,7 @@ | @@ -116,11 +116,7 @@ | ||
| 116 | <script setup lang="ts"> | 116 | <script setup lang="ts"> |
| 117 | import { useDesign } from '@/hooks/web/useDesign' | 117 | import { useDesign } from '@/hooks/web/useDesign' |
| 118 | import { dataURLtoBlob } from '@/utils/filt' | 118 | import { dataURLtoBlob } from '@/utils/filt' |
| 119 | -import { ref } from 'vue' | ||
| 120 | import { useI18n } from 'vue-i18n' | 119 | import { useI18n } from 'vue-i18n' |
| 121 | -import { ElUpload, ElAvatar, ElTooltip, ElSpace } from 'element-plus' | ||
| 122 | -import { Dialog } from '@/components/Dialog' | ||
| 123 | -import { CropperImage } from '@/components/Cropper' | ||
| 124 | import type { CropendResult, Cropper } from './types' | 120 | import type { CropendResult, Cropper } from './types' |
| 125 | import { propTypes } from '@/utils/propTypes' | 121 | import { propTypes } from '@/utils/propTypes' |
| 126 | 122 |
yudao-ui-admin-vue3/src/components/Cropper/src/Cropper.vue
| @@ -11,20 +11,10 @@ | @@ -11,20 +11,10 @@ | ||
| 11 | </div> | 11 | </div> |
| 12 | </template> | 12 | </template> |
| 13 | <script setup lang="ts"> | 13 | <script setup lang="ts"> |
| 14 | -import { | ||
| 15 | - computed, | ||
| 16 | - CSSProperties, | ||
| 17 | - onMounted, | ||
| 18 | - onUnmounted, | ||
| 19 | - PropType, | ||
| 20 | - ref, | ||
| 21 | - unref, | ||
| 22 | - useAttrs | ||
| 23 | -} from 'vue' | 14 | +import { CSSProperties, PropType } from 'vue' |
| 24 | import Cropper from 'cropperjs' | 15 | import Cropper from 'cropperjs' |
| 25 | import 'cropperjs/dist/cropper.css' | 16 | import 'cropperjs/dist/cropper.css' |
| 26 | import { useDesign } from '@/hooks/web/useDesign' | 17 | import { useDesign } from '@/hooks/web/useDesign' |
| 27 | -import { useDebounceFn } from '@vueuse/core' | ||
| 28 | import { propTypes } from '@/utils/propTypes' | 18 | import { propTypes } from '@/utils/propTypes' |
| 29 | 19 | ||
| 30 | type Options = Cropper.Options | 20 | type Options = Cropper.Options |
yudao-ui-admin-vue3/src/components/Cropper/src/CropperAvatar.vue
| @@ -15,7 +15,6 @@ | @@ -15,7 +15,6 @@ | ||
| 15 | import { useDesign } from '@/hooks/web/useDesign' | 15 | import { useDesign } from '@/hooks/web/useDesign' |
| 16 | import { useMessage } from '@/hooks/web/useMessage' | 16 | import { useMessage } from '@/hooks/web/useMessage' |
| 17 | import { propTypes } from '@/utils/propTypes' | 17 | import { propTypes } from '@/utils/propTypes' |
| 18 | -import { ref, watch, watchEffect } from 'vue' | ||
| 19 | import { useI18n } from 'vue-i18n' | 18 | import { useI18n } from 'vue-i18n' |
| 20 | import CopperModal from './CopperModal.vue' | 19 | import CopperModal from './CopperModal.vue' |
| 21 | 20 |
yudao-ui-admin-vue3/src/components/Descriptions/src/Descriptions.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | +import { PropType } from 'vue' | ||
| 2 | import dayjs from 'dayjs' | 3 | import dayjs from 'dayjs' |
| 3 | -import { ElCollapseTransition, ElDescriptions, ElDescriptionsItem, ElTooltip } from 'element-plus' | ||
| 4 | import { useDesign } from '@/hooks/web/useDesign' | 4 | import { useDesign } from '@/hooks/web/useDesign' |
| 5 | import { propTypes } from '@/utils/propTypes' | 5 | import { propTypes } from '@/utils/propTypes' |
| 6 | -import { ref, unref, PropType, computed, useAttrs, useSlots } from 'vue' | ||
| 7 | import { useAppStore } from '@/store/modules/app' | 6 | import { useAppStore } from '@/store/modules/app' |
| 8 | import { DescriptionsSchema } from '@/types/descriptions' | 7 | import { DescriptionsSchema } from '@/types/descriptions' |
| 9 | 8 |
yudao-ui-admin-vue3/src/components/Dialog/src/Dialog.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { ElDialog, ElScrollbar } from 'element-plus' | ||
| 3 | import { propTypes } from '@/utils/propTypes' | 2 | import { propTypes } from '@/utils/propTypes' |
| 4 | -import { computed, useAttrs, ref, unref, useSlots, watch, nextTick } from 'vue' | ||
| 5 | import { isNumber } from '@/utils/is' | 3 | import { isNumber } from '@/utils/is' |
| 6 | 4 | ||
| 7 | const slots = useSlots() | 5 | const slots = useSlots() |
yudao-ui-admin-vue3/src/components/Echart/src/Echart.vue
| @@ -4,7 +4,7 @@ import echarts from '@/plugins/echarts' | @@ -4,7 +4,7 @@ import echarts from '@/plugins/echarts' | ||
| 4 | import { debounce } from 'lodash-es' | 4 | import { debounce } from 'lodash-es' |
| 5 | import 'echarts-wordcloud' | 5 | import 'echarts-wordcloud' |
| 6 | import { propTypes } from '@/utils/propTypes' | 6 | import { propTypes } from '@/utils/propTypes' |
| 7 | -import { computed, PropType, ref, unref, watch, onMounted, onBeforeUnmount, onActivated } from 'vue' | 7 | +import { PropType } from 'vue' |
| 8 | import { useAppStore } from '@/store/modules/app' | 8 | import { useAppStore } from '@/store/modules/app' |
| 9 | import { isString } from '@/utils/is' | 9 | import { isString } from '@/utils/is' |
| 10 | import { useDesign } from '@/hooks/web/useDesign' | 10 | import { useDesign } from '@/hooks/web/useDesign' |
yudao-ui-admin-vue3/src/components/Editor/src/Editor.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { onBeforeUnmount, computed, PropType, unref, nextTick, ref, watch, shallowRef } from 'vue' | ||
| 3 | -import { Editor, Toolbar } from '@wangeditor/editor-for-vue' | 2 | +import { PropType } from 'vue' |
| 4 | import { IDomEditor, IEditorConfig, i18nChangeLanguage } from '@wangeditor/editor' | 3 | import { IDomEditor, IEditorConfig, i18nChangeLanguage } from '@wangeditor/editor' |
| 5 | import { propTypes } from '@/utils/propTypes' | 4 | import { propTypes } from '@/utils/propTypes' |
| 6 | import { isNumber } from '@/utils/is' | 5 | import { isNumber } from '@/utils/is' |
yudao-ui-admin-vue3/src/components/IFrame/src/IFrame.vue
yudao-ui-admin-vue3/src/components/Icon/src/Icon.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { computed, unref, ref, watch, nextTick } from 'vue' | ||
| 3 | -import { ElIcon } from 'element-plus' | ||
| 4 | import { propTypes } from '@/utils/propTypes' | 2 | import { propTypes } from '@/utils/propTypes' |
| 5 | import Iconify from '@purge-icons/generated' | 3 | import Iconify from '@purge-icons/generated' |
| 6 | import { useDesign } from '@/hooks/web/useDesign' | 4 | import { useDesign } from '@/hooks/web/useDesign' |
yudao-ui-admin-vue3/src/components/ImageViewer/src/ImageViewer.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { ElImageViewer } from 'element-plus' | ||
| 3 | -import { computed, ref, PropType } from 'vue' | 2 | +import { PropType } from 'vue' |
| 4 | import { propTypes } from '@/utils/propTypes' | 3 | import { propTypes } from '@/utils/propTypes' |
| 5 | 4 | ||
| 6 | const props = defineProps({ | 5 | const props = defineProps({ |
yudao-ui-admin-vue3/src/components/Infotip/src/Infotip.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | import { PropType } from 'vue' | 2 | import { PropType } from 'vue' |
| 3 | -import { Highlight } from '@/components/Highlight' | ||
| 4 | import { useDesign } from '@/hooks/web/useDesign' | 3 | import { useDesign } from '@/hooks/web/useDesign' |
| 5 | import { propTypes } from '@/utils/propTypes' | 4 | import { propTypes } from '@/utils/propTypes' |
| 6 | import { TipSchema } from '@/types/infoTip' | 5 | import { TipSchema } from '@/types/infoTip' |
yudao-ui-admin-vue3/src/components/InputPassword/src/InputPassword.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { ref, unref, computed, watch } from 'vue' | ||
| 3 | -import { ElInput } from 'element-plus' | ||
| 4 | import { propTypes } from '@/utils/propTypes' | 2 | import { propTypes } from '@/utils/propTypes' |
| 5 | import { useConfigGlobal } from '@/hooks/web/useConfigGlobal' | 3 | import { useConfigGlobal } from '@/hooks/web/useConfigGlobal' |
| 6 | import { zxcvbn } from '@zxcvbn-ts/core' | 4 | import { zxcvbn } from '@zxcvbn-ts/core' |
yudao-ui-admin-vue3/src/components/Search/src/Search.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { Form } from '@/components/Form' | ||
| 3 | -import { PropType, computed, unref, ref } from 'vue' | 2 | +import { PropType } from 'vue' |
| 4 | import { propTypes } from '@/utils/propTypes' | 3 | import { propTypes } from '@/utils/propTypes' |
| 5 | -import { ElButton } from 'element-plus' | ||
| 6 | import { useI18n } from '@/hooks/web/useI18n' | 4 | import { useI18n } from '@/hooks/web/useI18n' |
| 7 | import { useForm } from '@/hooks/web/useForm' | 5 | import { useForm } from '@/hooks/web/useForm' |
| 8 | import { findIndex } from '@/utils' | 6 | import { findIndex } from '@/utils' |
yudao-ui-admin-vue3/src/components/Sticky/src/Sticky.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | import { propTypes } from '@/utils/propTypes' | 2 | import { propTypes } from '@/utils/propTypes' |
| 3 | -import { ref, onMounted, onActivated, shallowRef } from 'vue' | ||
| 4 | -import { useEventListener, useWindowSize, isClient } from '@vueuse/core' | ||
| 5 | import type { CSSProperties } from 'vue' | 3 | import type { CSSProperties } from 'vue' |
| 6 | const props = defineProps({ | 4 | const props = defineProps({ |
| 7 | // 距离顶部或者底部的距离(单位px) | 5 | // 距离顶部或者底部的距离(单位px) |
yudao-ui-admin-vue3/src/components/UploadFile/src/UploadFile.vue
| @@ -33,11 +33,10 @@ | @@ -33,11 +33,10 @@ | ||
| 33 | </div> | 33 | </div> |
| 34 | </template> | 34 | </template> |
| 35 | <script setup lang="ts" name="UploadFile"> | 35 | <script setup lang="ts" name="UploadFile"> |
| 36 | -import { PropType, ref } from 'vue' | 36 | +import { PropType } from 'vue' |
| 37 | import { useMessage } from '@/hooks/web/useMessage' | 37 | import { useMessage } from '@/hooks/web/useMessage' |
| 38 | import { propTypes } from '@/utils/propTypes' | 38 | import { propTypes } from '@/utils/propTypes' |
| 39 | import { getAccessToken, getTenantId } from '@/utils/auth' | 39 | import { getAccessToken, getTenantId } from '@/utils/auth' |
| 40 | -import { ElUpload, UploadInstance, UploadProps, UploadRawFile, UploadUserFile } from 'element-plus' | ||
| 41 | 40 | ||
| 42 | const message = useMessage() // 消息弹窗 | 41 | const message = useMessage() // 消息弹窗 |
| 43 | const emit = defineEmits(['update:modelValue']) | 42 | const emit = defineEmits(['update:modelValue']) |
yudao-ui-admin-vue3/src/components/UploadFile/src/UploadImg.vue
| @@ -51,9 +51,7 @@ | @@ -51,9 +51,7 @@ | ||
| 51 | </template> | 51 | </template> |
| 52 | 52 | ||
| 53 | <script setup lang="ts" name="UploadImg"> | 53 | <script setup lang="ts" name="UploadImg"> |
| 54 | -import { ref } from 'vue' | ||
| 55 | import type { UploadProps } from 'element-plus' | 54 | import type { UploadProps } from 'element-plus' |
| 56 | -import { ElUpload, ElNotification, ElImageViewer } from 'element-plus' | ||
| 57 | import { useI18n } from '@/hooks/web/useI18n' | 55 | import { useI18n } from '@/hooks/web/useI18n' |
| 58 | import { useMessage } from '@/hooks/web/useMessage' | 56 | import { useMessage } from '@/hooks/web/useMessage' |
| 59 | import { generateUUID } from '@/utils' | 57 | import { generateUUID } from '@/utils' |
| @@ -111,17 +109,8 @@ const beforeUpload: UploadProps['beforeUpload'] = (rawFile) => { | @@ -111,17 +109,8 @@ const beforeUpload: UploadProps['beforeUpload'] = (rawFile) => { | ||
| 111 | const imgSize = rawFile.size / 1024 / 1024 < props.fileSize | 109 | const imgSize = rawFile.size / 1024 / 1024 < props.fileSize |
| 112 | const imgType = props.fileType | 110 | const imgType = props.fileType |
| 113 | if (!imgType.includes(rawFile.type as FileTypes)) | 111 | if (!imgType.includes(rawFile.type as FileTypes)) |
| 114 | - ElNotification({ | ||
| 115 | - title: '温馨提示', | ||
| 116 | - message: '上传图片不符合所需的格式!', | ||
| 117 | - type: 'warning' | ||
| 118 | - }) | ||
| 119 | - if (!imgSize) | ||
| 120 | - ElNotification({ | ||
| 121 | - title: '温馨提示', | ||
| 122 | - message: `上传图片大小不能超过 ${props.fileSize}M!`, | ||
| 123 | - type: 'warning' | ||
| 124 | - }) | 112 | + message.notifyWarning('上传图片不符合所需的格式!') |
| 113 | + if (!imgSize) message.notifyWarning(`上传图片大小不能超过 ${props.fileSize}M!`) | ||
| 125 | return imgType.includes(rawFile.type as FileTypes) && imgSize | 114 | return imgType.includes(rawFile.type as FileTypes) && imgSize |
| 126 | } | 115 | } |
| 127 | 116 | ||
| @@ -133,11 +122,7 @@ const uploadSuccess: UploadProps['onSuccess'] = (res: any): void => { | @@ -133,11 +122,7 @@ const uploadSuccess: UploadProps['onSuccess'] = (res: any): void => { | ||
| 133 | 122 | ||
| 134 | // 图片上传错误提示 | 123 | // 图片上传错误提示 |
| 135 | const uploadError = () => { | 124 | const uploadError = () => { |
| 136 | - ElNotification({ | ||
| 137 | - title: '温馨提示', | ||
| 138 | - message: '图片上传失败,请您重新上传!', | ||
| 139 | - type: 'error' | ||
| 140 | - }) | 125 | + message.notifyError('图片上传失败,请您重新上传!') |
| 141 | } | 126 | } |
| 142 | </script> | 127 | </script> |
| 143 | <style scoped lang="scss"> | 128 | <style scoped lang="scss"> |
yudao-ui-admin-vue3/src/components/Verifition/src/Verify/VerifySlide.vue
| @@ -80,16 +80,6 @@ import { aesEncrypt } from './../utils/ase' | @@ -80,16 +80,6 @@ import { aesEncrypt } from './../utils/ase' | ||
| 80 | import { resetSize } from './../utils/util' | 80 | import { resetSize } from './../utils/util' |
| 81 | import { getCodeApi, reqCheckApi } from '@/api/login' | 81 | import { getCodeApi, reqCheckApi } from '@/api/login' |
| 82 | import { useI18n } from '@/hooks/web/useI18n' | 82 | import { useI18n } from '@/hooks/web/useI18n' |
| 83 | -import { | ||
| 84 | - computed, | ||
| 85 | - onMounted, | ||
| 86 | - reactive, | ||
| 87 | - ref, | ||
| 88 | - watch, | ||
| 89 | - nextTick, | ||
| 90 | - toRefs, | ||
| 91 | - getCurrentInstance | ||
| 92 | -} from 'vue' | ||
| 93 | 83 | ||
| 94 | const props = defineProps({ | 84 | const props = defineProps({ |
| 95 | captchaType: { | 85 | captchaType: { |
yudao-ui-admin-vue3/src/components/XButton/src/XButton.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | +import { PropType } from 'vue' | ||
| 2 | import { propTypes } from '@/utils/propTypes' | 3 | import { propTypes } from '@/utils/propTypes' |
| 3 | -import { computed, useAttrs, PropType } from 'vue' | ||
| 4 | 4 | ||
| 5 | const props = defineProps({ | 5 | const props = defineProps({ |
| 6 | modelValue: propTypes.bool.def(false), | 6 | modelValue: propTypes.bool.def(false), |
yudao-ui-admin-vue3/src/components/XButton/src/XTextButton.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | import { propTypes } from '@/utils/propTypes' | 2 | import { propTypes } from '@/utils/propTypes' |
| 3 | -import { computed, useAttrs, PropType } from 'vue' | ||
| 4 | 3 | ||
| 5 | const props = defineProps({ | 4 | const props = defineProps({ |
| 6 | modelValue: propTypes.bool.def(false), | 5 | modelValue: propTypes.bool.def(false), |
yudao-ui-admin-vue3/src/components/XModal/src/XModal.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | import { propTypes } from '@/utils/propTypes' | 2 | import { propTypes } from '@/utils/propTypes' |
| 3 | -import { computed, useAttrs, useSlots } from 'vue' | ||
| 4 | import { ElScrollbar } from 'element-plus' | 3 | import { ElScrollbar } from 'element-plus' |
| 5 | const slots = useSlots() | 4 | const slots = useSlots() |
| 6 | 5 |
yudao-ui-admin-vue3/src/components/XTable/src/XTable.vue
| @@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
| 6 | </VxeGrid> | 6 | </VxeGrid> |
| 7 | </template> | 7 | </template> |
| 8 | <script lang="ts" setup name="XTable"> | 8 | <script lang="ts" setup name="XTable"> |
| 9 | -import { computed, PropType, ref, unref, useAttrs, watch } from 'vue' | 9 | +import { PropType } from 'vue' |
| 10 | import { SizeType, VxeGridInstance } from 'vxe-table' | 10 | import { SizeType, VxeGridInstance } from 'vxe-table' |
| 11 | import { useAppStore } from '@/store/modules/app' | 11 | import { useAppStore } from '@/store/modules/app' |
| 12 | import { useDesign } from '@/hooks/web/useDesign' | 12 | import { useDesign } from '@/hooks/web/useDesign' |
yudao-ui-admin-vue3/src/hooks/event/useScrollTo.ts
yudao-ui-admin-vue3/src/hooks/web/useConfigGlobal.ts
| 1 | import { ConfigGlobalTypes } from '@/types/configGlobal' | 1 | import { ConfigGlobalTypes } from '@/types/configGlobal' |
| 2 | -import { inject } from 'vue' | ||
| 3 | 2 | ||
| 4 | export const useConfigGlobal = () => { | 3 | export const useConfigGlobal = () => { |
| 5 | const configGlobal = inject('configGlobal', {}) as ConfigGlobalTypes | 4 | const configGlobal = inject('configGlobal', {}) as ConfigGlobalTypes |
yudao-ui-admin-vue3/src/hooks/web/useEmitt.ts
yudao-ui-admin-vue3/src/hooks/web/useForm.ts
| 1 | import type { Form, FormExpose } from '@/components/Form' | 1 | import type { Form, FormExpose } from '@/components/Form' |
| 2 | import type { ElForm } from 'element-plus' | 2 | import type { ElForm } from 'element-plus' |
| 3 | -import { ref, unref, nextTick } from 'vue' | ||
| 4 | import type { FormProps } from '@/components/Form/src/types' | 3 | import type { FormProps } from '@/components/Form/src/types' |
| 5 | import { FormSchema, FormSetPropsType } from '@/types/form' | 4 | import { FormSchema, FormSetPropsType } from '@/types/form' |
| 6 | 5 |
yudao-ui-admin-vue3/src/hooks/web/useNProgress.ts
| 1 | -import { nextTick, unref } from 'vue' | ||
| 2 | import type { NProgressOptions } from 'nprogress' | 1 | import type { NProgressOptions } from 'nprogress' |
| 3 | import NProgress from 'nprogress' | 2 | import NProgress from 'nprogress' |
| 4 | import 'nprogress/nprogress.css' | 3 | import 'nprogress/nprogress.css' |
| 5 | -import { useCssVar } from '@vueuse/core' | ||
| 6 | 4 | ||
| 7 | const primaryColor = useCssVar('--el-color-primary', document.documentElement) | 5 | const primaryColor = useCssVar('--el-color-primary', document.documentElement) |
| 8 | 6 |
yudao-ui-admin-vue3/src/hooks/web/useTimeAgo.ts
| 1 | import { useTimeAgo as useTimeAgoCore, UseTimeAgoMessages } from '@vueuse/core' | 1 | import { useTimeAgo as useTimeAgoCore, UseTimeAgoMessages } from '@vueuse/core' |
| 2 | -import { computed, unref } from 'vue' | ||
| 3 | import { useLocaleStoreWithOut } from '@/store/modules/locale' | 2 | import { useLocaleStoreWithOut } from '@/store/modules/locale' |
| 4 | 3 | ||
| 5 | const TIME_AGO_MESSAGE_MAP: { | 4 | const TIME_AGO_MESSAGE_MAP: { |
yudao-ui-admin-vue3/src/hooks/web/useVxeCrudSchemas.ts
yudao-ui-admin-vue3/src/hooks/web/useXTable.ts
yudao-ui-admin-vue3/src/layout/components/AppView.vue
| @@ -2,7 +2,6 @@ | @@ -2,7 +2,6 @@ | ||
| 2 | import { useTagsViewStore } from '@/store/modules/tagsView' | 2 | import { useTagsViewStore } from '@/store/modules/tagsView' |
| 3 | import { useAppStore } from '@/store/modules/app' | 3 | import { useAppStore } from '@/store/modules/app' |
| 4 | import { Footer } from '@/layout/components/Footer' | 4 | import { Footer } from '@/layout/components/Footer' |
| 5 | -import { computed } from 'vue' | ||
| 6 | 5 | ||
| 7 | const appStore = useAppStore() | 6 | const appStore = useAppStore() |
| 8 | 7 |
yudao-ui-admin-vue3/src/layout/components/Collapse/src/Collapse.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { computed, unref } from 'vue' | ||
| 3 | import { useAppStore } from '@/store/modules/app' | 2 | import { useAppStore } from '@/store/modules/app' |
| 4 | import { propTypes } from '@/utils/propTypes' | 3 | import { propTypes } from '@/utils/propTypes' |
| 5 | import { useDesign } from '@/hooks/web/useDesign' | 4 | import { useDesign } from '@/hooks/web/useDesign' |
yudao-ui-admin-vue3/src/layout/components/ContextMenu/src/ContextMenu.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus' | ||
| 3 | -import { PropType, ref } from 'vue' | 2 | +import { PropType } from 'vue' |
| 4 | import { useI18n } from '@/hooks/web/useI18n' | 3 | import { useI18n } from '@/hooks/web/useI18n' |
| 5 | import { useDesign } from '@/hooks/web/useDesign' | 4 | import { useDesign } from '@/hooks/web/useDesign' |
| 6 | import type { RouteLocationNormalizedLoaded } from 'vue-router' | 5 | import type { RouteLocationNormalizedLoaded } from 'vue-router' |
| 7 | import { contextMenuSchema } from '@/types/contextMenu' | 6 | import { contextMenuSchema } from '@/types/contextMenu' |
| 7 | +import type { ElDropdown } from 'element-plus' | ||
| 8 | 8 | ||
| 9 | const { getPrefixCls } = useDesign() | 9 | const { getPrefixCls } = useDesign() |
| 10 | 10 |
yudao-ui-admin-vue3/src/layout/components/Footer/src/Footer.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | import { useAppStore } from '@/store/modules/app' | 2 | import { useAppStore } from '@/store/modules/app' |
| 3 | -import { computed } from 'vue' | ||
| 4 | import { useDesign } from '@/hooks/web/useDesign' | 3 | import { useDesign } from '@/hooks/web/useDesign' |
| 5 | 4 | ||
| 6 | const { getPrefixCls } = useDesign() | 5 | const { getPrefixCls } = useDesign() |
yudao-ui-admin-vue3/src/layout/components/LocaleDropdown/src/LocaleDropdown.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { computed, unref } from 'vue' | ||
| 3 | -import { ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus' | ||
| 4 | import { useLocaleStore } from '@/store/modules/locale' | 2 | import { useLocaleStore } from '@/store/modules/locale' |
| 5 | import { useLocale } from '@/hooks/web/useLocale' | 3 | import { useLocale } from '@/hooks/web/useLocale' |
| 6 | import { propTypes } from '@/utils/propTypes' | 4 | import { propTypes } from '@/utils/propTypes' |
yudao-ui-admin-vue3/src/layout/components/Menu/src/Menu.vue
| 1 | <script lang="tsx"> | 1 | <script lang="tsx"> |
| 2 | -import { computed, defineComponent, unref, PropType } from 'vue' | 2 | +import { PropType } from 'vue' |
| 3 | import { ElMenu, ElScrollbar } from 'element-plus' | 3 | import { ElMenu, ElScrollbar } from 'element-plus' |
| 4 | import { useAppStore } from '@/store/modules/app' | 4 | import { useAppStore } from '@/store/modules/app' |
| 5 | import { usePermissionStore } from '@/store/modules/permission' | 5 | import { usePermissionStore } from '@/store/modules/permission' |
| 6 | import { useRenderMenuItem } from './components/useRenderMenuItem' | 6 | import { useRenderMenuItem } from './components/useRenderMenuItem' |
| 7 | -import { useRouter } from 'vue-router' | ||
| 8 | import { isUrl } from '@/utils/is' | 7 | import { isUrl } from '@/utils/is' |
| 9 | import { useDesign } from '@/hooks/web/useDesign' | 8 | import { useDesign } from '@/hooks/web/useDesign' |
| 10 | import { LayoutType } from '@/types/layout' | 9 | import { LayoutType } from '@/types/layout' |
yudao-ui-admin-vue3/src/layout/components/Menu/src/helper.ts
| 1 | import type { RouteMeta } from 'vue-router' | 1 | import type { RouteMeta } from 'vue-router' |
| 2 | -import { ref, unref } from 'vue' | ||
| 3 | import { findPath } from '@/utils/tree' | 2 | import { findPath } from '@/utils/tree' |
| 4 | 3 | ||
| 5 | type OnlyOneChildType = AppRouteRecordRaw & { noShowingChildren?: boolean } | 4 | type OnlyOneChildType = AppRouteRecordRaw & { noShowingChildren?: boolean } |
yudao-ui-admin-vue3/src/layout/components/Message/src/Message.vue
yudao-ui-admin-vue3/src/layout/components/Setting/src/Setting.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { ElDrawer, ElDivider, ElMessage } from 'element-plus' | ||
| 3 | -import { ref, unref, computed, watch } from 'vue' | 2 | +import { ElMessage } from 'element-plus' |
| 4 | import { useCssVar, useClipboard } from '@vueuse/core' | 3 | import { useCssVar, useClipboard } from '@vueuse/core' |
| 5 | import { useI18n } from '@/hooks/web/useI18n' | 4 | import { useI18n } from '@/hooks/web/useI18n' |
| 6 | import { CACHE_KEY, useCache } from '@/hooks/web/useCache' | 5 | import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
yudao-ui-admin-vue3/src/layout/components/Setting/src/components/ColorRadioPicker.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { PropType, watch, unref, ref } from 'vue' | 2 | +import { PropType } from 'vue' |
| 3 | import { propTypes } from '@/utils/propTypes' | 3 | import { propTypes } from '@/utils/propTypes' |
| 4 | import { useDesign } from '@/hooks/web/useDesign' | 4 | import { useDesign } from '@/hooks/web/useDesign' |
| 5 | 5 |
yudao-ui-admin-vue3/src/layout/components/Setting/src/components/InterfaceDisplay.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { computed, ref, watch } from 'vue' | ||
| 3 | -import { ElSwitch, ElInput } from 'element-plus' | ||
| 4 | import { setCssVar } from '@/utils' | 2 | import { setCssVar } from '@/utils' |
| 5 | import { useI18n } from '@/hooks/web/useI18n' | 3 | import { useI18n } from '@/hooks/web/useI18n' |
| 6 | import { useDesign } from '@/hooks/web/useDesign' | 4 | import { useDesign } from '@/hooks/web/useDesign' |
yudao-ui-admin-vue3/src/layout/components/Setting/src/components/LayoutRadioPicker.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | import { useAppStore } from '@/store/modules/app' | 2 | import { useAppStore } from '@/store/modules/app' |
| 3 | -import { computed } from 'vue' | ||
| 4 | import { useDesign } from '@/hooks/web/useDesign' | 3 | import { useDesign } from '@/hooks/web/useDesign' |
| 5 | 4 | ||
| 6 | const { getPrefixCls } = useDesign() | 5 | const { getPrefixCls } = useDesign() |
yudao-ui-admin-vue3/src/layout/components/SizeDropdown/src/SizeDropdown.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { computed } from 'vue' | ||
| 3 | -import { ElDropdown, ElDropdownMenu, ElDropdownItem } from 'element-plus' | ||
| 4 | import { useAppStore } from '@/store/modules/app' | 2 | import { useAppStore } from '@/store/modules/app' |
| 5 | import { useI18n } from '@/hooks/web/useI18n' | 3 | import { useI18n } from '@/hooks/web/useI18n' |
| 6 | import { propTypes } from '@/utils/propTypes' | 4 | import { propTypes } from '@/utils/propTypes' |
yudao-ui-admin-vue3/src/layout/components/TabMenu/src/TabMenu.vue
| 1 | <script lang="tsx"> | 1 | <script lang="tsx"> |
| 2 | import { usePermissionStore } from '@/store/modules/permission' | 2 | import { usePermissionStore } from '@/store/modules/permission' |
| 3 | import { useAppStore } from '@/store/modules/app' | 3 | import { useAppStore } from '@/store/modules/app' |
| 4 | -import { computed, unref, defineComponent, watch, ref, onMounted } from 'vue' | ||
| 5 | import { useI18n } from '@/hooks/web/useI18n' | 4 | import { useI18n } from '@/hooks/web/useI18n' |
| 6 | import { ElScrollbar } from 'element-plus' | 5 | import { ElScrollbar } from 'element-plus' |
| 7 | import { Icon } from '@/components/Icon' | 6 | import { Icon } from '@/components/Icon' |
| 8 | import { Menu } from '@/layout/components/Menu' | 7 | import { Menu } from '@/layout/components/Menu' |
| 9 | -import { useRouter } from 'vue-router' | ||
| 10 | import { pathResolve } from '@/utils/routerHelper' | 8 | import { pathResolve } from '@/utils/routerHelper' |
| 11 | import { cloneDeep } from 'lodash-es' | 9 | import { cloneDeep } from 'lodash-es' |
| 12 | import { filterMenusPath, initTabMap, tabPathMap } from './helper' | 10 | import { filterMenusPath, initTabMap, tabPathMap } from './helper' |
yudao-ui-admin-vue3/src/layout/components/TabMenu/src/helper.ts
| @@ -2,7 +2,6 @@ import { getAllParentPath } from '@/layout/components/Menu/src/helper' | @@ -2,7 +2,6 @@ import { getAllParentPath } from '@/layout/components/Menu/src/helper' | ||
| 2 | import type { RouteMeta } from 'vue-router' | 2 | import type { RouteMeta } from 'vue-router' |
| 3 | import { isUrl } from '@/utils/is' | 3 | import { isUrl } from '@/utils/is' |
| 4 | import { cloneDeep } from 'lodash-es' | 4 | import { cloneDeep } from 'lodash-es' |
| 5 | -import { reactive } from 'vue' | ||
| 6 | 5 | ||
| 7 | export type TabMapTypes = { | 6 | export type TabMapTypes = { |
| 8 | [key: string]: string[] | 7 | [key: string]: string[] |
yudao-ui-admin-vue3/src/layout/components/TagsView/src/TagsView.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { onMounted, watch, computed, unref, ref, nextTick } from 'vue' | ||
| 3 | -import { useRouter } from 'vue-router' | ||
| 4 | import type { RouteLocationNormalizedLoaded, RouterLinkProps } from 'vue-router' | 2 | import type { RouteLocationNormalizedLoaded, RouterLinkProps } from 'vue-router' |
| 5 | import { usePermissionStore } from '@/store/modules/permission' | 3 | import { usePermissionStore } from '@/store/modules/permission' |
| 6 | import { useTagsViewStore } from '@/store/modules/tagsView' | 4 | import { useTagsViewStore } from '@/store/modules/tagsView' |
| @@ -9,7 +7,6 @@ import { useI18n } from '@/hooks/web/useI18n' | @@ -9,7 +7,6 @@ import { useI18n } from '@/hooks/web/useI18n' | ||
| 9 | import { filterAffixTags } from './helper' | 7 | import { filterAffixTags } from './helper' |
| 10 | import { ContextMenu, ContextMenuExpose } from '@/layout/components/ContextMenu' | 8 | import { ContextMenu, ContextMenuExpose } from '@/layout/components/ContextMenu' |
| 11 | import { useDesign } from '@/hooks/web/useDesign' | 9 | import { useDesign } from '@/hooks/web/useDesign' |
| 12 | -import { useTemplateRefsList } from '@vueuse/core' | ||
| 13 | import { ElScrollbar } from 'element-plus' | 10 | import { ElScrollbar } from 'element-plus' |
| 14 | import { useScrollTo } from '@/hooks/event/useScrollTo' | 11 | import { useScrollTo } from '@/hooks/event/useScrollTo' |
| 15 | 12 |
yudao-ui-admin-vue3/src/layout/components/ThemeSwitch/src/ThemeSwitch.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { ref } from 'vue' | ||
| 3 | import { useAppStore } from '@/store/modules/app' | 2 | import { useAppStore } from '@/store/modules/app' |
| 4 | -import { ElSwitch } from 'element-plus' | ||
| 5 | import { useIcon } from '@/hooks/web/useIcon' | 3 | import { useIcon } from '@/hooks/web/useIcon' |
| 6 | import { useDesign } from '@/hooks/web/useDesign' | 4 | import { useDesign } from '@/hooks/web/useDesign' |
| 7 | 5 |
yudao-ui-admin-vue3/src/layout/components/UserInfo/src/UserInfo.vue
| 1 | <script setup lang="ts"> | 1 | <script setup lang="ts"> |
| 2 | -import { ElDropdown, ElDropdownMenu, ElDropdownItem, ElMessageBox } from 'element-plus' | 2 | +import { ElMessageBox } from 'element-plus' |
| 3 | import { useI18n } from '@/hooks/web/useI18n' | 3 | import { useI18n } from '@/hooks/web/useI18n' |
| 4 | import { CACHE_KEY, useCache } from '@/hooks/web/useCache' | 4 | import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
| 5 | -import { useRouter } from 'vue-router' | ||
| 6 | import { useDesign } from '@/hooks/web/useDesign' | 5 | import { useDesign } from '@/hooks/web/useDesign' |
| 7 | import avatarImg from '@/assets/imgs/avatar.gif' | 6 | import avatarImg from '@/assets/imgs/avatar.gif' |
| 8 | import { useUserStore } from '@/store/modules/user' | 7 | import { useUserStore } from '@/store/modules/user' |
yudao-ui-admin-vue3/src/plugins/vxeTable/index.ts
yudao-ui-admin-vue3/src/types/auto-components.d.ts
| @@ -21,17 +21,44 @@ declare module '@vue/runtime-core' { | @@ -21,17 +21,44 @@ declare module '@vue/runtime-core' { | ||
| 21 | DictTag: typeof import('./../components/DictTag/src/DictTag.vue')['default'] | 21 | DictTag: typeof import('./../components/DictTag/src/DictTag.vue')['default'] |
| 22 | Echart: typeof import('./../components/Echart/src/Echart.vue')['default'] | 22 | Echart: typeof import('./../components/Echart/src/Echart.vue')['default'] |
| 23 | Editor: typeof import('./../components/Editor/src/Editor.vue')['default'] | 23 | Editor: typeof import('./../components/Editor/src/Editor.vue')['default'] |
| 24 | + ElBadge: typeof import('element-plus/es')['ElBadge'] | ||
| 24 | ElButton: typeof import('element-plus/es')['ElButton'] | 25 | ElButton: typeof import('element-plus/es')['ElButton'] |
| 25 | ElCard: typeof import('element-plus/es')['ElCard'] | 26 | ElCard: typeof import('element-plus/es')['ElCard'] |
| 26 | ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] | 27 | ElCheckbox: typeof import('element-plus/es')['ElCheckbox'] |
| 27 | ElCol: typeof import('element-plus/es')['ElCol'] | 28 | ElCol: typeof import('element-plus/es')['ElCol'] |
| 29 | + ElCollapseTransition: typeof import('element-plus/es')['ElCollapseTransition'] | ||
| 30 | + ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] | ||
| 31 | + ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] | ||
| 32 | + ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] | ||
| 28 | ElDivider: typeof import('element-plus/es')['ElDivider'] | 33 | ElDivider: typeof import('element-plus/es')['ElDivider'] |
| 34 | + ElDrawer: typeof import('element-plus/es')['ElDrawer'] | ||
| 35 | + ElDropdown: typeof import('element-plus/es')['ElDropdown'] | ||
| 36 | + ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] | ||
| 37 | + ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] | ||
| 29 | ElForm: typeof import('element-plus/es')['ElForm'] | 38 | ElForm: typeof import('element-plus/es')['ElForm'] |
| 30 | ElFormItem: typeof import('element-plus/es')['ElFormItem'] | 39 | ElFormItem: typeof import('element-plus/es')['ElFormItem'] |
| 40 | + ElIcon: typeof import('element-plus/es')['ElIcon'] | ||
| 41 | + ElImageViewer: typeof import('element-plus/es')['ElImageViewer'] | ||
| 31 | ElInput: typeof import('element-plus/es')['ElInput'] | 42 | ElInput: typeof import('element-plus/es')['ElInput'] |
| 43 | + ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] | ||
| 32 | ElLink: typeof import('element-plus/es')['ElLink'] | 44 | ElLink: typeof import('element-plus/es')['ElLink'] |
| 45 | + ElOption: typeof import('element-plus/es')['ElOption'] | ||
| 46 | + ElPopover: typeof import('element-plus/es')['ElPopover'] | ||
| 47 | + ElRadio: typeof import('element-plus/es')['ElRadio'] | ||
| 48 | + ElRadioButton: typeof import('element-plus/es')['ElRadioButton'] | ||
| 49 | + ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup'] | ||
| 33 | ElRow: typeof import('element-plus/es')['ElRow'] | 50 | ElRow: typeof import('element-plus/es')['ElRow'] |
| 51 | + ElSelect: typeof import('element-plus/es')['ElSelect'] | ||
| 34 | ElSkeleton: typeof import('element-plus/es')['ElSkeleton'] | 52 | ElSkeleton: typeof import('element-plus/es')['ElSkeleton'] |
| 53 | + ElSwitch: typeof import('element-plus/es')['ElSwitch'] | ||
| 54 | + ElTabPane: typeof import('element-plus/es')['ElTabPane'] | ||
| 55 | + ElTabs: typeof import('element-plus/es')['ElTabs'] | ||
| 56 | + ElTag: typeof import('element-plus/es')['ElTag'] | ||
| 57 | + ElTooltip: typeof import('element-plus/es')['ElTooltip'] | ||
| 58 | + ElTransfer: typeof import('element-plus/es')['ElTransfer'] | ||
| 59 | + ElTree: typeof import('element-plus/es')['ElTree'] | ||
| 60 | + ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] | ||
| 61 | + ElUpload: typeof import('element-plus/es')['ElUpload'] | ||
| 35 | Error: typeof import('./../components/Error/src/Error.vue')['default'] | 62 | Error: typeof import('./../components/Error/src/Error.vue')['default'] |
| 36 | Form: typeof import('./../components/Form/src/Form.vue')['default'] | 63 | Form: typeof import('./../components/Form/src/Form.vue')['default'] |
| 37 | Highlight: typeof import('./../components/Highlight/src/Highlight.vue')['default'] | 64 | Highlight: typeof import('./../components/Highlight/src/Highlight.vue')['default'] |
yudao-ui-admin-vue3/src/utils/index.ts
yudao-ui-admin-vue3/src/views/Profile/components/BasicInfo.vue
| @@ -11,9 +11,8 @@ | @@ -11,9 +11,8 @@ | ||
| 11 | <XButton type="danger" :title="t('common.reset')" @click="init()" /> | 11 | <XButton type="danger" :title="t('common.reset')" @click="init()" /> |
| 12 | </template> | 12 | </template> |
| 13 | <script setup lang="ts"> | 13 | <script setup lang="ts"> |
| 14 | -import { reactive, onMounted, unref, ref } from 'vue' | ||
| 15 | import type { FormRules } from 'element-plus' | 14 | import type { FormRules } from 'element-plus' |
| 16 | -import { ElMessage, ElRadioGroup, ElRadio } from 'element-plus' | 15 | +import { ElMessage } from 'element-plus' |
| 17 | import { useI18n } from '@/hooks/web/useI18n' | 16 | import { useI18n } from '@/hooks/web/useI18n' |
| 18 | import { FormSchema } from '@/types/form' | 17 | import { FormSchema } from '@/types/form' |
| 19 | import type { FormExpose } from '@/components/Form' | 18 | import type { FormExpose } from '@/components/Form' |
yudao-ui-admin-vue3/src/views/bpm/processInstance/process.data.ts
| 1 | -import { reactive } from 'vue' | ||
| 2 | import { useI18n } from '@/hooks/web/useI18n' | 1 | import { useI18n } from '@/hooks/web/useI18n' |
| 3 | import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas' | 2 | import { CrudSchema, useCrudSchemas } from '@/hooks/web/useCrudSchemas' |
| 4 | import { DICT_TYPE } from '@/utils/dict' | 3 | import { DICT_TYPE } from '@/utils/dict' |
yudao-ui-admin-vue3/src/views/infra/codegen/EditTable.vue
| @@ -21,7 +21,6 @@ | @@ -21,7 +21,6 @@ | ||
| 21 | </ContentWrap> | 21 | </ContentWrap> |
| 22 | </template> | 22 | </template> |
| 23 | <script setup lang="ts"> | 23 | <script setup lang="ts"> |
| 24 | -import { useRouter, useRoute } from 'vue-router' | ||
| 25 | import { useI18n } from '@/hooks/web/useI18n' | 24 | import { useI18n } from '@/hooks/web/useI18n' |
| 26 | import { useMessage } from '@/hooks/web/useMessage' | 25 | import { useMessage } from '@/hooks/web/useMessage' |
| 27 | import { BasicInfoForm, CloumInfoForm } from './components' | 26 | import { BasicInfoForm, CloumInfoForm } from './components' |