Commit 814f4211b0d780a55ad0c4a6f802dbc133cbb0d0
1 parent
7a717ef8
feat: 升级 vue3 1.8.0
Showing
14 changed files
with
209 additions
and
6 deletions
yudao-ui-admin-vue3/package.json
| ... | ... | @@ -42,7 +42,7 @@ |
| 42 | 42 | "lodash-es": "^4.17.21", |
| 43 | 43 | "mitt": "^3.0.0", |
| 44 | 44 | "nprogress": "^0.2.0", |
| 45 | - "pinia": "^2.0.22", | |
| 45 | + "pinia": "^2.0.23", | |
| 46 | 46 | "qrcode": "^1.5.1", |
| 47 | 47 | "qs": "^6.11.0", |
| 48 | 48 | "url": "^0.11.0", |
| ... | ... | @@ -56,17 +56,17 @@ |
| 56 | 56 | "devDependencies": { |
| 57 | 57 | "@commitlint/cli": "^17.1.2", |
| 58 | 58 | "@commitlint/config-conventional": "^17.1.0", |
| 59 | - "@iconify/json": "^2.1.119", | |
| 59 | + "@iconify/json": "^2.1.120", | |
| 60 | 60 | "@intlify/vite-plugin-vue-i18n": "^6.0.3", |
| 61 | 61 | "@purge-icons/generated": "^0.9.0", |
| 62 | 62 | "@types/intro.js": "^5.1.0", |
| 63 | 63 | "@types/lodash-es": "^4.17.6", |
| 64 | - "@types/node": "^18.8.3", | |
| 64 | + "@types/node": "^18.8.4", | |
| 65 | 65 | "@types/nprogress": "^0.2.0", |
| 66 | 66 | "@types/qrcode": "^1.5.0", |
| 67 | 67 | "@types/qs": "^6.9.7", |
| 68 | - "@typescript-eslint/eslint-plugin": "^5.39.0", | |
| 69 | - "@typescript-eslint/parser": "^5.39.0", | |
| 68 | + "@typescript-eslint/eslint-plugin": "^5.40.0", | |
| 69 | + "@typescript-eslint/parser": "^5.40.0", | |
| 70 | 70 | "@vitejs/plugin-vue": "^3.1.2", |
| 71 | 71 | "@vitejs/plugin-vue-jsx": "^2.0.1", |
| 72 | 72 | "autoprefixer": "^10.4.12", |
| ... | ... | @@ -92,7 +92,7 @@ |
| 92 | 92 | "stylelint-order": "^5.0.0", |
| 93 | 93 | "typescript": "4.8.4", |
| 94 | 94 | "unplugin-vue-macros": "^0.12.0", |
| 95 | - "vite": "3.1.6", | |
| 95 | + "vite": "3.1.7", | |
| 96 | 96 | "vite-plugin-compression": "^0.5.1", |
| 97 | 97 | "vite-plugin-eslint": "^1.8.1", |
| 98 | 98 | "vite-plugin-html": "^3.2.0", | ... | ... |
yudao-ui-admin-vue3/src/types/components.d.ts
0 → 100644
| 1 | +export type ComponentName = | |
| 2 | + | 'Radio' | |
| 3 | + | 'RadioButton' | |
| 4 | + | 'Checkbox' | |
| 5 | + | 'CheckboxButton' | |
| 6 | + | 'Input' | |
| 7 | + | 'Autocomplete' | |
| 8 | + | 'InputNumber' | |
| 9 | + | 'Select' | |
| 10 | + | 'Cascader' | |
| 11 | + | 'Switch' | |
| 12 | + | 'Slider' | |
| 13 | + | 'TimePicker' | |
| 14 | + | 'DatePicker' | |
| 15 | + | 'Rate' | |
| 16 | + | 'ColorPicker' | |
| 17 | + | 'Transfer' | |
| 18 | + | 'Divider' | |
| 19 | + | 'TimeSelect' | |
| 20 | + | 'SelectV2' | |
| 21 | + | 'InputPassword' | |
| 22 | + | 'Editor' | |
| 23 | + | |
| 24 | +export type ColProps = { | |
| 25 | + span?: number | |
| 26 | + xs?: number | |
| 27 | + sm?: number | |
| 28 | + md?: number | |
| 29 | + lg?: number | |
| 30 | + xl?: number | |
| 31 | + tag?: string | |
| 32 | +} | |
| 33 | + | |
| 34 | +export type ComponentOptions = { | |
| 35 | + label?: string | |
| 36 | + value?: FormValueType | |
| 37 | + disabled?: boolean | |
| 38 | + key?: string | number | |
| 39 | + children?: ComponentOptions[] | |
| 40 | + options?: ComponentOptions[] | |
| 41 | +} & Recordable | |
| 42 | + | |
| 43 | +export type ComponentOptionsAlias = { | |
| 44 | + labelField?: string | |
| 45 | + valueField?: string | |
| 46 | +} | |
| 47 | + | |
| 48 | +export type ComponentProps = { | |
| 49 | + optionsAlias?: ComponentOptionsAlias | |
| 50 | + options?: ComponentOptions[] | |
| 51 | + optionsSlot?: boolean | |
| 52 | +} & Recordable | ... | ... |
yudao-ui-admin-vue3/src/types/configGlobal.d.ts
0 → 100644
yudao-ui-admin-vue3/src/types/contextMenu.d.ts
0 → 100644
yudao-ui-admin-vue3/src/types/descriptions.d.ts
0 → 100644
| 1 | +export interface DescriptionsSchema { | |
| 2 | + span?: number // 占多少分 | |
| 3 | + field: string // 字段名 | |
| 4 | + label?: string // label名 | |
| 5 | + width?: string | number | |
| 6 | + minWidth?: string | number | |
| 7 | + align?: 'left' | 'center' | 'right' | |
| 8 | + labelAlign?: 'left' | 'center' | 'right' | |
| 9 | + className?: string | |
| 10 | + labelClassName?: string | |
| 11 | +} | ... | ... |
yudao-ui-admin-vue3/src/types/elementPlus.d.ts
0 → 100644
yudao-ui-admin-vue3/src/types/form.d.ts
0 → 100644
| 1 | +import type { CSSProperties } from 'vue' | |
| 2 | +import { ColProps, ComponentProps, ComponentName } from '@/types/components' | |
| 3 | +import { FormValueType, FormValueType } from '@/types/form' | |
| 4 | +import type { AxiosPromise } from 'axios' | |
| 5 | + | |
| 6 | +export type FormSetPropsType = { | |
| 7 | + field: string | |
| 8 | + path: string | |
| 9 | + value: any | |
| 10 | +} | |
| 11 | + | |
| 12 | +export type FormValueType = string | number | string[] | number[] | boolean | undefined | null | |
| 13 | + | |
| 14 | +export type FormItemProps = { | |
| 15 | + labelWidth?: string | number | |
| 16 | + required?: boolean | |
| 17 | + rules?: Recordable | |
| 18 | + error?: string | |
| 19 | + showMessage?: boolean | |
| 20 | + inlineMessage?: boolean | |
| 21 | + style?: CSSProperties | |
| 22 | +} | |
| 23 | + | |
| 24 | +export type FormSchema = { | |
| 25 | + // 唯一值 | |
| 26 | + field: string | |
| 27 | + // 标题 | |
| 28 | + label?: string | |
| 29 | + // 提示 | |
| 30 | + labelMessage?: string | |
| 31 | + // col组件属性 | |
| 32 | + colProps?: ColProps | |
| 33 | + // 表单组件属性,slots对应的是表单组件的插槽,规则:${field}-xxx,具体可以查看element-plus文档 | |
| 34 | + componentProps?: { slots?: Recordable } & ComponentProps | |
| 35 | + // formItem组件属性 | |
| 36 | + formItemProps?: FormItemProps | |
| 37 | + // 渲染的组件 | |
| 38 | + component?: ComponentName | |
| 39 | + // 初始值 | |
| 40 | + value?: FormValueType | |
| 41 | + // 是否隐藏 | |
| 42 | + hidden?: boolean | |
| 43 | + // 远程加载下拉项 | |
| 44 | + api?: <T = any>() => AxiosPromise<T> | |
| 45 | +} | ... | ... |
yudao-ui-admin-vue3/src/types/icon.d.ts
0 → 100644
yudao-ui-admin-vue3/src/types/infoTip.d.ts
0 → 100644
yudao-ui-admin-vue3/src/types/layout.d.ts
0 → 100644
| 1 | +export type LayoutType = 'classic' | 'topLeft' | 'top' | 'cutMenu' | ... | ... |
yudao-ui-admin-vue3/src/types/localeDropdown.d.ts
0 → 100644
yudao-ui-admin-vue3/src/types/qrcode.d.ts
0 → 100644
yudao-ui-admin-vue3/src/types/table.d.ts
0 → 100644
| 1 | +export type TableColumn = { | |
| 2 | + field: string | |
| 3 | + label?: string | |
| 4 | + children?: TableColumn[] | |
| 5 | +} & Recordable | |
| 6 | + | |
| 7 | +export type TableSlotDefault = { | |
| 8 | + row: Recordable | |
| 9 | + column: TableColumn | |
| 10 | + $index: number | |
| 11 | +} & Recordable | |
| 12 | + | |
| 13 | +export interface Pagination { | |
| 14 | + small?: boolean | |
| 15 | + background?: boolean | |
| 16 | + pageSize?: number | |
| 17 | + defaultPageSize?: number | |
| 18 | + total?: number | |
| 19 | + pageCount?: number | |
| 20 | + pagerCount?: number | |
| 21 | + currentPage?: number | |
| 22 | + defaultCurrentPage?: number | |
| 23 | + layout?: string | |
| 24 | + pageSizes?: number[] | |
| 25 | + popperClass?: string | |
| 26 | + prevText?: string | |
| 27 | + nextText?: string | |
| 28 | + disabled?: boolean | |
| 29 | + hideOnSinglePage?: boolean | |
| 30 | +} | |
| 31 | + | |
| 32 | +export interface TableSetPropsType { | |
| 33 | + field: string | |
| 34 | + path: string | |
| 35 | + value: any | |
| 36 | +} | ... | ... |
yudao-ui-admin-vue3/src/types/theme.d.ts
0 → 100644
| 1 | +export type ThemeTypes = { | |
| 2 | + elColorPrimary?: string | |
| 3 | + leftMenuBorderColor?: string | |
| 4 | + leftMenuBgColor?: string | |
| 5 | + leftMenuBgLightColor?: string | |
| 6 | + leftMenuBgActiveColor?: string | |
| 7 | + leftMenuCollapseBgActiveColor?: string | |
| 8 | + leftMenuTextColor?: string | |
| 9 | + leftMenuTextActiveColor?: string | |
| 10 | + logoTitleTextColor?: string | |
| 11 | + logoBorderColor?: string | |
| 12 | + topHeaderBgColor?: string | |
| 13 | + topHeaderTextColor?: string | |
| 14 | + topHeaderHoverColor?: string | |
| 15 | + topToolBorderColor?: string | |
| 16 | +} | ... | ... |