@wyfex/ivue 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/types/UseElConfigProvider/index.vue.d.ts +0 -9
- package/dist/types/UseElConfigProvider/props.d.ts +0 -5
- package/dist/types/UseElConfigProvider/types.d.ts +2 -1
- package/dist/types/UseElForm/components/controls/Select.vue.d.ts +2 -4
- package/dist/types/UseElForm/types.d.ts +1 -0
- package/dist/types/UseElSelect/hook.d.ts +1 -0
- package/dist/types/UseElUpload/index.vue.d.ts +3 -3
- package/dist/types/UseElUpload/props.d.ts +2 -1
- package/package.json +4 -4
- package/src/components/UseElConfigProvider/props.ts +1 -9
- package/src/components/UseElConfigProvider/types.ts +5 -1
- package/src/components/UseElForm/types.ts +1 -0
- package/src/components/UseElTable/props.ts +2 -2
- package/src/components/UseElUpload/props.ts +2 -1
|
@@ -8,10 +8,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
8
8
|
default: string;
|
|
9
9
|
validator: (val: string) => boolean;
|
|
10
10
|
};
|
|
11
|
-
uploadConfig: {
|
|
12
|
-
type: import('vue').PropType<import('../../types').UploadConfig>;
|
|
13
|
-
default: () => {};
|
|
14
|
-
};
|
|
15
11
|
extConfig: {
|
|
16
12
|
type: import('vue').PropType<import('./types').ExtConfig>;
|
|
17
13
|
default: () => {};
|
|
@@ -22,10 +18,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
22
18
|
default: string;
|
|
23
19
|
validator: (val: string) => boolean;
|
|
24
20
|
};
|
|
25
|
-
uploadConfig: {
|
|
26
|
-
type: import('vue').PropType<import('../../types').UploadConfig>;
|
|
27
|
-
default: () => {};
|
|
28
|
-
};
|
|
29
21
|
extConfig: {
|
|
30
22
|
type: import('vue').PropType<import('./types').ExtConfig>;
|
|
31
23
|
default: () => {};
|
|
@@ -33,7 +25,6 @@ declare const __VLS_base: import('vue').DefineComponent<import('vue').ExtractPro
|
|
|
33
25
|
}>> & Readonly<{}>, {
|
|
34
26
|
extConfig: import('./types').ExtConfig;
|
|
35
27
|
language: string;
|
|
36
|
-
uploadConfig: import('../../types').UploadConfig;
|
|
37
28
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
38
29
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
39
30
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { UploadConfig } from '../../types';
|
|
3
2
|
import { ExtConfig } from './types';
|
|
4
3
|
declare const _default: {
|
|
5
4
|
language: {
|
|
@@ -7,10 +6,6 @@ declare const _default: {
|
|
|
7
6
|
default: string;
|
|
8
7
|
validator: (val: string) => boolean;
|
|
9
8
|
};
|
|
10
|
-
uploadConfig: {
|
|
11
|
-
type: PropType<UploadConfig>;
|
|
12
|
-
default: () => {};
|
|
13
|
-
};
|
|
14
9
|
extConfig: {
|
|
15
10
|
type: PropType<ExtConfig>;
|
|
16
11
|
default: () => {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { default as componentProps } from './props';
|
|
3
|
-
import { DictProps } from '../../types';
|
|
3
|
+
import { DictProps, UploadConfig } from '../../types';
|
|
4
4
|
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
5
5
|
export interface ExtConfig {
|
|
6
6
|
dictProps?: DictProps;
|
|
@@ -10,4 +10,5 @@ export interface ExtConfig {
|
|
|
10
10
|
pageBottomOffset?: number;
|
|
11
11
|
modalBottomOffset?: number;
|
|
12
12
|
};
|
|
13
|
+
upload?: UploadConfig;
|
|
13
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FormColumn } from '../../types';
|
|
2
2
|
import { DictMap, GlobalConfig } from '../../../../types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
modelValue: string | number | boolean | string[] | number[];
|
|
4
|
+
modelValue: string | number | boolean | string[] | number[] | undefined;
|
|
5
5
|
item: FormColumn;
|
|
6
6
|
globalConfig: GlobalConfig;
|
|
7
7
|
dictMap: DictMap;
|
|
@@ -11,8 +11,6 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
11
11
|
"update:modelValue": (value: string | number | boolean | string[] | number[]) => any;
|
|
12
12
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
13
|
"onUpdate:modelValue"?: ((value: string | number | boolean | string[] | number[]) => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
modelValue: string | number | boolean | string[] | number[];
|
|
16
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
17
15
|
declare const _default: typeof __VLS_export;
|
|
18
16
|
export default _default;
|
|
@@ -9,6 +9,7 @@ export declare const useElSelect: ({ props, emits, globalConfig }: {
|
|
|
9
9
|
optionsComputed: ComputedRef<{
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
}[]>;
|
|
12
|
+
defaultProps: ComputedRef<import('../../types').DictProps>;
|
|
12
13
|
modelValue: ComputedRef<string | string[]>;
|
|
13
14
|
contentComputed: ComputedRef<{}>;
|
|
14
15
|
handleSelectChange: (e: string | number | (string | number)[]) => void;
|
|
@@ -8,7 +8,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
uploadConfig: {
|
|
11
|
-
type: import('vue').PropType<
|
|
11
|
+
type: import('vue').PropType<import('../../types').UploadConfig>;
|
|
12
12
|
default: () => {};
|
|
13
13
|
};
|
|
14
14
|
uploadType: {
|
|
@@ -52,7 +52,7 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
52
52
|
default: string;
|
|
53
53
|
};
|
|
54
54
|
uploadConfig: {
|
|
55
|
-
type: import('vue').PropType<
|
|
55
|
+
type: import('vue').PropType<import('../../types').UploadConfig>;
|
|
56
56
|
default: () => {};
|
|
57
57
|
};
|
|
58
58
|
uploadType: {
|
|
@@ -88,9 +88,9 @@ declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractP
|
|
|
88
88
|
"onUpdate:linkUrl"?: ((url: string) => any) | undefined;
|
|
89
89
|
}>, {
|
|
90
90
|
disabled: boolean;
|
|
91
|
-
uploadConfig: Record<string, unknown>;
|
|
92
91
|
fileId: string;
|
|
93
92
|
linkUrl: string;
|
|
93
|
+
uploadConfig: import('../../types').UploadConfig;
|
|
94
94
|
uploadType: string;
|
|
95
95
|
uploadTip: string;
|
|
96
96
|
uploadList: Record<string, unknown>[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { UploadConfig } from '../../types';
|
|
2
3
|
declare const _default: {
|
|
3
4
|
fileId: {
|
|
4
5
|
type: StringConstructor;
|
|
@@ -9,7 +10,7 @@ declare const _default: {
|
|
|
9
10
|
default: string;
|
|
10
11
|
};
|
|
11
12
|
uploadConfig: {
|
|
12
|
-
type: PropType<
|
|
13
|
+
type: PropType<UploadConfig>;
|
|
13
14
|
default: () => {};
|
|
14
15
|
};
|
|
15
16
|
uploadType: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wyfex/ivue",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"description": "万有前端 X 体系下基于 Vite8 + Vue3 + Typescript6 + ElementPlus2 构建的 iVue 组件库",
|
|
5
5
|
"homepage": "https://wyfex.top/idocs/ivue",
|
|
6
6
|
"type": "module",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"vue": ">=3.2.0 <4.0.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/node": "^26.1.
|
|
53
|
+
"@types/node": "^26.1.1",
|
|
54
54
|
"@vitejs/plugin-vue": "^6.0.7",
|
|
55
55
|
"@vue/tsconfig": "^0.9.1",
|
|
56
|
-
"@wyfex/iutils": "^0.
|
|
56
|
+
"@wyfex/iutils": "^0.45.0",
|
|
57
57
|
"dayjs": "^1.11.21",
|
|
58
58
|
"element-plus": "^2.14.2",
|
|
59
59
|
"sass-embedded": "^1.100.0",
|
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
"vite": "^8.1.3",
|
|
65
65
|
"vite-svg-loader": "^5.1.1",
|
|
66
66
|
"vue": "^3.5.39",
|
|
67
|
-
"vue-tsc": "^3.3.
|
|
67
|
+
"vue-tsc": "^3.3.7"
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { PropType } from 'vue'
|
|
2
|
-
import type { UploadConfig } from '@/types'
|
|
3
2
|
import type { ExtConfig } from './types'
|
|
4
3
|
|
|
5
4
|
/**
|
|
@@ -15,14 +14,7 @@ export default {
|
|
|
15
14
|
validator: (val: string) => ['', 'zh', 'en'].includes(val)
|
|
16
15
|
},
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
uploadConfig: {
|
|
21
|
-
type: Object as PropType<UploadConfig>,
|
|
22
|
-
default: () => ({})
|
|
23
|
-
},
|
|
24
|
-
/**
|
|
25
|
-
* 扩展配置 如【字典属性、调试】等
|
|
17
|
+
* 扩展配置 如【字典属性、表格、上传】等
|
|
26
18
|
*/
|
|
27
19
|
extConfig: {
|
|
28
20
|
type: Object as PropType<ExtConfig>,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExtractPropTypes } from 'vue'
|
|
2
2
|
import componentProps from './props'
|
|
3
|
-
import type { DictProps } from '@/types'
|
|
3
|
+
import type { DictProps, UploadConfig } from '@/types'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* props类型
|
|
@@ -28,4 +28,8 @@ export interface ExtConfig {
|
|
|
28
28
|
pageBottomOffset?: number
|
|
29
29
|
modalBottomOffset?: number
|
|
30
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* 上传配置项
|
|
33
|
+
*/
|
|
34
|
+
upload?: UploadConfig
|
|
31
35
|
}
|
|
@@ -120,6 +120,7 @@ export interface SelectConfig {
|
|
|
120
120
|
useRender: boolean | RenderConfig
|
|
121
121
|
multiple?: boolean
|
|
122
122
|
clearable?: boolean
|
|
123
|
+
filterable?: boolean
|
|
123
124
|
placeholder?: string
|
|
124
125
|
options?: Array<{ label: string; value: string | number }>
|
|
125
126
|
props?: { value: string; label?: string }
|
|
@@ -8,8 +8,8 @@ import type { DictMap, DictProps } from '@/types'
|
|
|
8
8
|
export default {
|
|
9
9
|
/**
|
|
10
10
|
* 表格列 必传
|
|
11
|
-
* 注意:常规场景下列配置为静态值无需响应式;但本组件提供了 minWidth
|
|
12
|
-
* 因此 tableColumns 必须用 ref/reactive
|
|
11
|
+
* 注意:常规场景下列配置为静态值无需响应式;但本组件提供了 minWidth 自动计算能力并会修改列对象,
|
|
12
|
+
* 因此 tableColumns 必须用 ref/reactive 包裹,否则视图无法同步更新最小宽度。
|
|
13
13
|
*/
|
|
14
14
|
tableColumns: {
|
|
15
15
|
type: Array as PropType<TableColumn[]>,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PropType } from 'vue'
|
|
2
|
+
import type { UploadConfig } from '@/types'
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* 组件props
|
|
@@ -25,7 +26,7 @@ export default {
|
|
|
25
26
|
* data:上传时附带的额外参数,eg:{ referer: window.location.href }
|
|
26
27
|
*/
|
|
27
28
|
uploadConfig: {
|
|
28
|
-
type: Object as PropType<
|
|
29
|
+
type: Object as PropType<UploadConfig>,
|
|
29
30
|
default: () => ({
|
|
30
31
|
// action: '/api/file/upload',
|
|
31
32
|
// headers: { Authorization: `Bearer ${token}` },
|