@airpower/web 0.2.22 → 0.2.24
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.
|
@@ -32,13 +32,13 @@ declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<
|
|
|
32
32
|
readonly placeholder?: string | undefined;
|
|
33
33
|
readonly entity?: ITransformerConstructor<F> | undefined;
|
|
34
34
|
readonly src?: string | undefined;
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "data" | "placeholder" | "clearable" | "height" | "entity" | "src" | "upload" | "headers" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName">, "
|
|
35
|
+
readonly onRemoved?: (() => any) | undefined;
|
|
36
|
+
readonly onUploaded?: ((file: F) => any) | undefined;
|
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "data" | "placeholder" | "clearable" | "height" | "entity" | "src" | "upload" | "headers" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName">, "onRemoved" | "onUploaded" | ("width" | "data" | "placeholder" | "clearable" | "height" | "entity" | "src" | "upload" | "headers" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
38
38
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
39
39
|
attrs: any;
|
|
40
40
|
slots: {};
|
|
41
|
-
emit: ((evt: "
|
|
41
|
+
emit: ((evt: "removed") => void) & ((evt: "uploaded", file: F) => void);
|
|
42
42
|
}>) => import('vue').VNode & {
|
|
43
43
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
44
|
};
|
|
@@ -24,16 +24,15 @@ declare const _default: <T extends ITree & RootEntity>(__VLS_props: NonNullable<
|
|
|
24
24
|
readonly treeData: T[];
|
|
25
25
|
readonly isTreeLoading: boolean;
|
|
26
26
|
readonly defaultCollapse: boolean;
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "title" | "hideIcon" | "placeholder" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse">, "onChange" | "treeData" | "onOnChange" | ("width" | "title" | "hideIcon" | "placeholder" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
27
|
+
readonly onChanged?: ((data: T | undefined) => any) | undefined;
|
|
28
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "title" | "hideIcon" | "placeholder" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse">, "onChanged" | "treeData" | ("width" | "title" | "hideIcon" | "placeholder" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
30
29
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
31
30
|
attrs: any;
|
|
32
31
|
slots: {
|
|
33
32
|
icon?(_: {}): any;
|
|
34
33
|
default?(_: {}): any;
|
|
35
34
|
};
|
|
36
|
-
emit: (
|
|
35
|
+
emit: (evt: "changed", data: T | undefined) => void;
|
|
37
36
|
}>) => import('vue').VNode & {
|
|
38
37
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
39
38
|
};
|
package/dist/main.js
CHANGED
|
@@ -469,7 +469,7 @@ var zhCn = {
|
|
|
469
469
|
close: "关闭此对话框"
|
|
470
470
|
},
|
|
471
471
|
upload: {
|
|
472
|
-
deleteTip: "按
|
|
472
|
+
deleteTip: "按 delete 键可删除",
|
|
473
473
|
delete: "删除",
|
|
474
474
|
preview: "查看图片",
|
|
475
475
|
continue: "继续上传"
|
|
@@ -13508,7 +13508,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13508
13508
|
default: void 0
|
|
13509
13509
|
}
|
|
13510
13510
|
},
|
|
13511
|
-
emits: ["
|
|
13511
|
+
emits: ["uploaded", "removed"],
|
|
13512
13512
|
setup(__props, { emit: __emit }) {
|
|
13513
13513
|
const props = __props;
|
|
13514
13514
|
const emits = __emit;
|
|
@@ -13532,7 +13532,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13532
13532
|
uploadHeader.value[WebConfig.authorizationHeaderKey] = WebConfig.getAccessToken();
|
|
13533
13533
|
function imageRemoved() {
|
|
13534
13534
|
imageUrl.value = "";
|
|
13535
|
-
emits("
|
|
13535
|
+
emits("removed");
|
|
13536
13536
|
}
|
|
13537
13537
|
function showLocalFile(file) {
|
|
13538
13538
|
const reader = new FileReader();
|
|
@@ -13573,7 +13573,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13573
13573
|
}
|
|
13574
13574
|
const entityData = Transformer.parse(response.data, props.entity);
|
|
13575
13575
|
if (entityData && entityData.url) {
|
|
13576
|
-
emits("
|
|
13576
|
+
emits("uploaded", entityData);
|
|
13577
13577
|
isUploading.value = false;
|
|
13578
13578
|
return;
|
|
13579
13579
|
}
|
|
@@ -18424,7 +18424,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18424
18424
|
default: false
|
|
18425
18425
|
}
|
|
18426
18426
|
},
|
|
18427
|
-
emits: ["
|
|
18427
|
+
emits: ["changed"],
|
|
18428
18428
|
setup(__props, { emit: __emit }) {
|
|
18429
18429
|
const props = __props;
|
|
18430
18430
|
const emits = __emit;
|
|
@@ -18447,7 +18447,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18447
18447
|
} else {
|
|
18448
18448
|
currentData.value = row;
|
|
18449
18449
|
}
|
|
18450
|
-
emits("
|
|
18450
|
+
emits("changed", currentData.value);
|
|
18451
18451
|
}
|
|
18452
18452
|
function filterNode(value, node) {
|
|
18453
18453
|
var _a;
|
|
@@ -19518,7 +19518,7 @@ class AbstractService extends Transformer {
|
|
|
19518
19518
|
if (response.code === WebConfig.unAuthorizeCode) {
|
|
19519
19519
|
return;
|
|
19520
19520
|
}
|
|
19521
|
-
|
|
19521
|
+
FeedbackUtil.toastError(response.message);
|
|
19522
19522
|
}
|
|
19523
19523
|
});
|
|
19524
19524
|
}
|
package/dist/tests/main.d.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|