mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-05 07:03:00 +08:00
version: v4.8.8
This commit is contained in:
parent
b0cd545c99
commit
6975af2368
12
CHANGELOG.md
12
CHANGELOG.md
@ -1,5 +1,17 @@
|
||||
# CHANGE LOG
|
||||
|
||||
## 4.8.8
|
||||
|
||||
## Feats
|
||||
|
||||
- 更新 `vite` 版本至 `5.3.1`
|
||||
- 更新 `vue` 版本至 `3.4.30`
|
||||
- `FetchErrorFunction` 类型在你自定义请求拦截器插件处理错误请求的时候,可能会用上
|
||||
|
||||
## Fixes
|
||||
|
||||
- 修复 `useCheckedRowKeys` 的 `getRows` 方法类型丢失问题
|
||||
|
||||
## 4.8.7
|
||||
|
||||
## Feats
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ray-template",
|
||||
"private": false,
|
||||
"version": "4.8.7",
|
||||
"version": "4.8.8",
|
||||
"type": "module",
|
||||
"engines": {
|
||||
"node": "^18.0.0 || >=20.0.0",
|
||||
@ -48,7 +48,7 @@
|
||||
"pinia": "^2.1.7",
|
||||
"pinia-plugin-persistedstate": "^3.2.0",
|
||||
"print-js": "^1.6.0",
|
||||
"vue": "^3.4.27",
|
||||
"vue": "^3.4.30",
|
||||
"vue-demi": "0.14.6",
|
||||
"vue-hooks-plus": "2.2.0",
|
||||
"vue-i18n": "^9.13.1",
|
||||
@ -92,7 +92,7 @@
|
||||
"typescript": "^5.2.2",
|
||||
"unplugin-auto-import": "^0.17.5",
|
||||
"unplugin-vue-components": "^0.26.0",
|
||||
"vite": "^5.2.12",
|
||||
"vite": "^5.3.1",
|
||||
"vite-bundle-analyzer": "0.9.4",
|
||||
"vite-plugin-cdn2": "1.1.0",
|
||||
"vite-plugin-compression": "^0.5.1",
|
||||
|
429
pnpm-lock.yaml
generated
429
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -147,11 +147,6 @@ export interface ErrorImplementQueue {
|
||||
|
||||
export type FetchType = 'ok' | 'error'
|
||||
|
||||
export type FetchErrorFunction<T = any, D = any> = (
|
||||
error: AxiosError<T, D>,
|
||||
mode: string,
|
||||
) => void
|
||||
|
||||
export interface AxiosFetchInstance {
|
||||
requestInstance: RequestInterceptorConfig | null
|
||||
responseInstance: ResponseInterceptorConfig | null
|
||||
@ -173,12 +168,42 @@ type AxiosResponseInterceptorIns<T = any, D = any> = AxiosResponseOmit<T, D> & {
|
||||
config: AxiosResponseConfigInterceptor<T>
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param ins current response instance
|
||||
* @param mode current environment mode
|
||||
*
|
||||
* @description
|
||||
* axios response interceptor.
|
||||
*/
|
||||
export type AxiosResponseInterceptor<T = any, K = any> = (
|
||||
ins: AxiosResponseInterceptorIns<T, K>,
|
||||
mode: string,
|
||||
) => void
|
||||
|
||||
/**
|
||||
*
|
||||
* @param ins current request instance
|
||||
* @param mode current environment mode
|
||||
*
|
||||
* @description
|
||||
* axios request interceptor.
|
||||
*/
|
||||
export type AxiosRequestInterceptor<T = any> = (
|
||||
ins: RequestInterceptorConfig<T>,
|
||||
mode: string,
|
||||
) => void
|
||||
|
||||
/**
|
||||
*
|
||||
* @param error current request error instance
|
||||
* @param mode current environment mode
|
||||
*
|
||||
* @description
|
||||
* axios request and response error interceptor.
|
||||
* if you need create plugin with error interceptor, you can use this function type.
|
||||
*/
|
||||
export type FetchErrorFunction<T = any, D = any> = (
|
||||
error: AxiosError<T, D>,
|
||||
mode: string,
|
||||
) => void
|
||||
|
@ -187,7 +187,7 @@ const useCheckedRowKeys = <
|
||||
* @description
|
||||
* 获取所有已选择行的数据。
|
||||
*/
|
||||
const getRows = () => rowsRef.value
|
||||
const getRows = () => rowsRef.value as T[]
|
||||
|
||||
/**
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user