@finema/core 1.4.28 → 1.4.30
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/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/components/Form/InputUploadFileClassicAuto/index.vue +2 -2
- package/dist/runtime/components/Form/InputUploadFileClassicAuto/types.d.ts +1 -1
- package/dist/runtime/composables/useUpload.d.ts +1 -1
- package/dist/runtime/composables/useUpload.mjs +1 -1
- package/dist/runtime/types/config.d.ts +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -61,7 +61,7 @@ import i18next from 'i18next'
|
|
|
61
61
|
|
|
62
62
|
const config = useUiConfig<typeof uploadFileInputClassicAuto>(
|
|
63
63
|
uploadFileInputClassicAuto,
|
|
64
|
-
'
|
|
64
|
+
'uploadFileInputClassicAuto'
|
|
65
65
|
)
|
|
66
66
|
|
|
67
67
|
const props = withDefaults(defineProps<IUploadFileProps>(), {})
|
|
@@ -86,7 +86,7 @@ const acceptFile = computed(() =>
|
|
|
86
86
|
typeof props.accept === 'string' ? props.accept : props.accept?.join(',')
|
|
87
87
|
)
|
|
88
88
|
|
|
89
|
-
const { ui } = useUI('
|
|
89
|
+
const { ui } = useUI('uploadFileInputClassicAuto', toRef(props, 'ui'), config)
|
|
90
90
|
|
|
91
91
|
const handleOpenFile = () => {
|
|
92
92
|
fileInput.value?.click()
|
|
@@ -4,7 +4,7 @@ export interface IUploadFileProps extends IFieldProps {
|
|
|
4
4
|
requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
|
|
5
5
|
baseURL: string;
|
|
6
6
|
};
|
|
7
|
-
uploadPathURL
|
|
7
|
+
uploadPathURL?: string;
|
|
8
8
|
selectFileLabel?: string;
|
|
9
9
|
accept?: string[] | string;
|
|
10
10
|
maxSize?: number;
|
|
@@ -10,6 +10,6 @@ export interface IUploadRequest {
|
|
|
10
10
|
requestOptions: Omit<AxiosRequestConfig, 'baseURL'> & {
|
|
11
11
|
baseURL: string;
|
|
12
12
|
};
|
|
13
|
-
pathURL
|
|
13
|
+
pathURL?: string;
|
|
14
14
|
}
|
|
15
15
|
export declare const useUploadLoader: (request: IUploadRequest) => import("../helpers/apiObjectHelper").IUseObjectLoader<IUploadData, any, Record<string, any>>;
|
|
@@ -2,7 +2,7 @@ import { useObjectLoader } from "./loaderObject.mjs";
|
|
|
2
2
|
export const useUploadLoader = (request) => {
|
|
3
3
|
return useObjectLoader({
|
|
4
4
|
method: "post",
|
|
5
|
-
url: request.pathURL,
|
|
5
|
+
url: request.pathURL || "",
|
|
6
6
|
getRequestOptions: (_data, opts) => ({
|
|
7
7
|
...request.requestOptions,
|
|
8
8
|
headers: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type UIComponentList = 'modal' | 'slideover' | 'dropdown' | 'icon' | 'button' | 'buttonGroup' | 'tabs' | 'card' | 'breadcrumb' | 'badge' | 'input' | 'pagination' | 'notification' | '
|
|
1
|
+
export type UIComponentList = 'modal' | 'slideover' | 'dropdown' | 'icon' | 'button' | 'buttonGroup' | 'tabs' | 'card' | 'breadcrumb' | 'badge' | 'input' | 'pagination' | 'notification' | 'uploadFileInputClassicAuto';
|