@aplus-frontend/ui 0.2.0-beta.3 → 0.2.0-beta.4
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/es/src/ap-form/item-text/style/css.d.ts +0 -1
- package/es/src/ap-form/item-text/style/css.js +1 -1
- package/es/src/ap-form/item-text/style/index.d.ts +0 -1
- package/es/src/ap-form/item-text/style/index.js +1 -1
- package/es/src/ap-form/item-text-group/style/css.d.ts +0 -0
- package/es/src/ap-form/item-text-group/style/css.js +1 -0
- package/es/src/ap-form/item-text-group/style/index.d.ts +0 -0
- package/es/src/ap-form/item-text-group/style/index.js +1 -0
- package/es/src/ap-form/items/interface.d.ts +11 -0
- package/es/src/ap-form/items/text/group.vue.d.ts +42 -0
- package/es/src/ap-form/items/text/group.vue.mjs +4 -0
- package/es/src/ap-form/items/text/group.vue2.mjs +26 -0
- package/es/src/ap-form/items/text/index.d.ts +3 -1
- package/es/src/ap-form/items/text/index.mjs +10 -6
- package/es/src/ap-table/constants.d.ts +2 -0
- package/es/src/ap-table/utils.d.ts +2 -0
- package/es/src/ap-upload/apUpload.vue.d.ts +17 -1
- package/es/src/ap-upload/apUpload.vue.mjs +54 -42
- package/es/src/ap-upload/apUploadTypes.d.ts +6 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +4 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +98 -90
- package/es/src/ap-upload/components/Picture.vue.d.ts +4 -1
- package/es/src/ap-upload/components/Picture.vue2.mjs +146 -138
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +4 -1
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +84 -86
- package/es/src/business/ap-label/constans.d.ts +1 -1
- package/es/src/business/ap-label/interface.d.ts +2 -2
- package/es/src/path-map.mjs +3 -1
- package/lib/src/ap-form/item-text/style/css.d.ts +0 -1
- package/lib/src/ap-form/item-text/style/css.js +1 -1
- package/lib/src/ap-form/item-text/style/index.d.ts +0 -1
- package/lib/src/ap-form/item-text/style/index.js +1 -1
- package/lib/src/ap-form/item-text-group/style/css.d.ts +0 -0
- package/lib/src/ap-form/item-text-group/style/css.js +1 -0
- package/lib/src/ap-form/item-text-group/style/index.d.ts +0 -0
- package/lib/src/ap-form/item-text-group/style/index.js +1 -0
- package/lib/src/ap-form/items/interface.d.ts +11 -0
- package/lib/src/ap-form/items/text/group.vue.d.ts +42 -0
- package/lib/src/ap-form/items/text/group.vue.js +1 -0
- package/lib/src/ap-form/items/text/group.vue2.js +1 -0
- package/lib/src/ap-form/items/text/index.d.ts +3 -1
- package/lib/src/ap-form/items/text/index.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2 -0
- package/lib/src/ap-table/utils.d.ts +2 -0
- package/lib/src/ap-upload/apUpload.vue.d.ts +17 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/apUploadTypes.d.ts +6 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +4 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +4 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +4 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +1 -1
- package/lib/src/business/ap-label/interface.d.ts +2 -2
- package/lib/src/path-map.js +1 -1
- package/package.json +2 -2
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import '@aplus-frontend/ui-theme/dist/ap-form/item-text.css';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-form/item-text.less';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/dist/ap-form/item-text-group.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui-theme/src/ap-form/item-text-group.less';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SizeType } from 'ant-design-vue/es/config-provider';
|
|
1
2
|
import { ApFieldCheckboxProps, ApFieldDateProps, ApFieldDateRangeProps, ApFieldNumberProps, ApFieldRadioProps, ApFieldSelectProps, ApFieldSwitchProps, ApFieldTextAreaProps, ApFieldTextPasswordProps, ApFieldTextProps } from '../../ap-field';
|
|
2
3
|
import { ApFormItemProps } from '../interface';
|
|
3
4
|
export type ApFormItemTextProps = ApFormItemProps & {
|
|
@@ -47,3 +48,13 @@ export type ApFormItemCheckboxProps = Omit<ApFormItemProps, 'bordered'> & {
|
|
|
47
48
|
field?: Omit<ApFieldCheckboxProps, 'value' | 'onUpdate:value'>;
|
|
48
49
|
disabled?: boolean;
|
|
49
50
|
};
|
|
51
|
+
export type ApFormItemTextGroupProps = {
|
|
52
|
+
/**
|
|
53
|
+
* ApFormItem 控件所有支持的
|
|
54
|
+
*/
|
|
55
|
+
size?: SizeType;
|
|
56
|
+
/**
|
|
57
|
+
* 是否启用紧凑模式
|
|
58
|
+
*/
|
|
59
|
+
compact?: boolean;
|
|
60
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ApFormItemTextGroupProps } from '../interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
type ApFormItemTextSlots = {
|
|
4
|
+
default: any;
|
|
5
|
+
};
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
slots: Readonly<ApFormItemTextSlots> & ApFormItemTextSlots;
|
|
8
|
+
refs: {};
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
};
|
|
11
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
+
declare const __VLS_component: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormItemTextGroupProps>, {
|
|
13
|
+
compact: boolean;
|
|
14
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<ApFormItemTextGroupProps>, {
|
|
15
|
+
compact: boolean;
|
|
16
|
+
}>>>, {
|
|
17
|
+
compact: boolean;
|
|
18
|
+
}, {}>;
|
|
19
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithDefaults<P, D> = {
|
|
22
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
23
|
+
default: D[K];
|
|
24
|
+
}> : P[K];
|
|
25
|
+
};
|
|
26
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
27
|
+
type __VLS_TypePropsToOption<T> = {
|
|
28
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
29
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
30
|
+
} : {
|
|
31
|
+
type: PropType<T[K]>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
type __VLS_PrettifyLocal<T> = {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} & {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent as a, openBlock as m, createBlock as s, unref as o, mergeProps as c, withCtx as n, renderSlot as u } from "vue";
|
|
2
|
+
import { Input as l } from "ant-design-vue";
|
|
3
|
+
import "../../../config-provider/index.mjs";
|
|
4
|
+
import { useNamespace as f } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
5
|
+
const B = /* @__PURE__ */ a({
|
|
6
|
+
name: "ApFormItemTextGroup",
|
|
7
|
+
__name: "group",
|
|
8
|
+
props: {
|
|
9
|
+
size: {},
|
|
10
|
+
compact: { type: Boolean, default: !1 }
|
|
11
|
+
},
|
|
12
|
+
setup(t) {
|
|
13
|
+
const { b: p } = f("ap-form-item-text-group"), r = t;
|
|
14
|
+
return (e, i) => (m(), s(o(l).Group, c({
|
|
15
|
+
class: e.$props.compact ? o(p)("compact") : null
|
|
16
|
+
}, r), {
|
|
17
|
+
default: n(() => [
|
|
18
|
+
u(e.$slots, "default")
|
|
19
|
+
]),
|
|
20
|
+
_: 3
|
|
21
|
+
}, 16, ["class"]));
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
B as default
|
|
26
|
+
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { default as _ApFormItemText } from './index.vue';
|
|
2
2
|
import { default as ApFormItemTextPassword } from './password.vue';
|
|
3
|
+
import { default as ApFormItemTextGroup } from './group.vue';
|
|
3
4
|
type ApFormItemTextType = typeof _ApFormItemText & {
|
|
4
5
|
Password: typeof ApFormItemTextPassword;
|
|
6
|
+
Group: typeof ApFormItemTextGroup;
|
|
5
7
|
};
|
|
6
8
|
declare const ApFormItemText: ApFormItemTextType;
|
|
7
|
-
export { ApFormItemText, ApFormItemTextPassword };
|
|
9
|
+
export { ApFormItemText, ApFormItemTextPassword, ApFormItemTextGroup };
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import "./index.vue.mjs";
|
|
2
2
|
import "./password.vue2.mjs";
|
|
3
|
-
import
|
|
4
|
-
import o from "./
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import "./group.vue.mjs";
|
|
4
|
+
import o from "./index.vue2.mjs";
|
|
5
|
+
import r from "./password.vue.mjs";
|
|
6
|
+
import t from "./group.vue2.mjs";
|
|
7
|
+
const m = o;
|
|
8
|
+
m.Password = r;
|
|
9
|
+
m.Group = t;
|
|
7
10
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
m as ApFormItemText,
|
|
12
|
+
t as ApFormItemTextGroup,
|
|
13
|
+
r as ApFormItemTextPassword
|
|
10
14
|
};
|
|
@@ -6,6 +6,7 @@ import { ColSize } from 'ant-design-vue/es/grid';
|
|
|
6
6
|
import { FormLabelAlign } from 'ant-design-vue/es/form/interface';
|
|
7
7
|
import { RuleObject } from 'ant-design-vue/es/form';
|
|
8
8
|
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
9
|
+
import { ApFormItemTextGroup } from '../ap-form/items/text';
|
|
9
10
|
import { FocusEventHandler, MouseEventHandler, KeyboardEventHandler, ChangeEventHandler, CompositionEventHandler } from 'ant-design-vue/es/_util/EventInterface';
|
|
10
11
|
import { Dayjs } from 'dayjs';
|
|
11
12
|
import { PickerLocale } from 'ant-design-vue/es/date-picker/generatePicker';
|
|
@@ -5976,6 +5977,7 @@ export declare const apTableFormItemMap: {
|
|
|
5976
5977
|
} & Omit< ApFormItemSlots, "default">;
|
|
5977
5978
|
}) & {
|
|
5978
5979
|
Password: ApFormItemTextPassword;
|
|
5980
|
+
Group: ApFormItemTextGroup;
|
|
5979
5981
|
};
|
|
5980
5982
|
textArea: {
|
|
5981
5983
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -7,6 +7,7 @@ import { ColSize } from 'ant-design-vue/es/grid';
|
|
|
7
7
|
import { FormLabelAlign } from 'ant-design-vue/es/form/interface';
|
|
8
8
|
import { RuleObject } from 'ant-design-vue/es/form';
|
|
9
9
|
import { InputFocusOptions } from 'ant-design-vue/es/vc-input/utils/commonUtils';
|
|
10
|
+
import { ApFormItemTextGroup } from '../ap-form/items/text';
|
|
10
11
|
import { ColumnTitleProps } from 'ant-design-vue/es/table/interface';
|
|
11
12
|
import { VueNode } from 'ant-design-vue/es/_util/type';
|
|
12
13
|
export type FieldValueType = 'multiple' | 'multipleNumber' | 'dayjs' | 'dayjsRange' | 'dayjsDayRange' | 'number' | 'boolean' | 'object';
|
|
@@ -1824,6 +1825,7 @@ export declare function getSearchFormItemRenderNode(item: any, extraRenderMap?:
|
|
|
1824
1825
|
} & Omit< ApFormItemSlots, "default">;
|
|
1825
1826
|
}) & {
|
|
1826
1827
|
Password: ApFormItemTextPassword;
|
|
1828
|
+
Group: ApFormItemTextGroup;
|
|
1827
1829
|
}) | ({
|
|
1828
1830
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
1829
1831
|
label: {
|
|
@@ -2,7 +2,16 @@ import { PropType, VNode, DefineComponent, ComputedRef, ComponentOptionsMixin, P
|
|
|
2
2
|
import { FileUploadType, BeforeUpload, CustomRequest } from './apUploadTypes';
|
|
3
3
|
import { GetOssAccess } from './hooks/useOss';
|
|
4
4
|
declare function clear(): void;
|
|
5
|
-
declare
|
|
5
|
+
declare function setValue(val: any): void;
|
|
6
|
+
declare function __VLS_template(): {
|
|
7
|
+
slots: Partial<Record<string, (_: any) => any>>;
|
|
8
|
+
refs: {
|
|
9
|
+
uploadRef: unknown;
|
|
10
|
+
};
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: DefineComponent<{
|
|
6
15
|
dirName: {
|
|
7
16
|
type: StringConstructor;
|
|
8
17
|
};
|
|
@@ -47,6 +56,7 @@ declare const _default: DefineComponent<{
|
|
|
47
56
|
}, {
|
|
48
57
|
done: ComputedRef<boolean>;
|
|
49
58
|
clear: typeof clear;
|
|
59
|
+
setValue: typeof setValue;
|
|
50
60
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
51
61
|
"update:value": (...args: any[]) => void;
|
|
52
62
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -101,4 +111,10 @@ declare const _default: DefineComponent<{
|
|
|
101
111
|
[key: string]: any;
|
|
102
112
|
}>;
|
|
103
113
|
}, {}>;
|
|
114
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
104
115
|
export default _default;
|
|
116
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
117
|
+
new (): {
|
|
118
|
+
$slots: S;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as k, ref as g, computed as v, provide as t, openBlock as y, createElementBlock as z, normalizeClass as T, unref as B, createBlock as L, resolveDynamicComponent as R, mergeProps as q, createSlots as P, renderList as M, withCtx as V, renderSlot as w, normalizeProps as D, guardReactiveProps as E } from "vue";
|
|
2
2
|
import "../config-provider/index.mjs";
|
|
3
3
|
import "./components/SingleFile.vue.mjs";
|
|
4
4
|
import "./components/MultipleFile.vue.mjs";
|
|
5
5
|
import "./components/Picture.vue.mjs";
|
|
6
|
-
import { injectLocaleToAccept as
|
|
7
|
-
import { injectLocaleToOss as
|
|
8
|
-
import { Form as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { useGlobalConfig as
|
|
15
|
-
const
|
|
6
|
+
import { injectLocaleToAccept as G } from "./utils/accept.mjs";
|
|
7
|
+
import { injectLocaleToOss as I } from "./hooks/useOss.mjs";
|
|
8
|
+
import { Form as H } from "ant-design-vue";
|
|
9
|
+
import { useLocale as J } from "../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import { useNamespace as K } from "../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import Q from "./components/SingleFile.vue2.mjs";
|
|
12
|
+
import W from "./components/MultipleFile.vue2.mjs";
|
|
13
|
+
import X from "./components/Picture.vue2.mjs";
|
|
14
|
+
import { useGlobalConfig as b } from "../config-provider/hooks/use-global-config.mjs";
|
|
15
|
+
const ue = /* @__PURE__ */ k({
|
|
16
16
|
name: "AplusFileUpload",
|
|
17
17
|
__name: "apUpload",
|
|
18
18
|
props: {
|
|
@@ -59,48 +59,60 @@ const se = /* @__PURE__ */ U({
|
|
|
59
59
|
onChange: Function
|
|
60
60
|
},
|
|
61
61
|
emits: ["update:value"],
|
|
62
|
-
setup(
|
|
63
|
-
var
|
|
64
|
-
const { t:
|
|
65
|
-
|
|
66
|
-
const { b:
|
|
67
|
-
singleFile:
|
|
68
|
-
multipleFile:
|
|
69
|
-
picture:
|
|
70
|
-
},
|
|
62
|
+
setup(C, { expose: N, emit: _ }) {
|
|
63
|
+
var p, u, d, f;
|
|
64
|
+
const { t: c, lang: F } = J();
|
|
65
|
+
G(c), I(c, F);
|
|
66
|
+
const { b: S } = K("ap-upload"), s = g(null), e = C, O = _, h = {
|
|
67
|
+
singleFile: Q,
|
|
68
|
+
multipleFile: W,
|
|
69
|
+
picture: X
|
|
70
|
+
}, i = H.useInjectFormItemContext(), j = v({
|
|
71
71
|
get() {
|
|
72
72
|
return e.value;
|
|
73
73
|
},
|
|
74
|
-
set(
|
|
75
|
-
var
|
|
76
|
-
|
|
74
|
+
set(o) {
|
|
75
|
+
var a;
|
|
76
|
+
O("update:value", o), i == null || i.onFieldChange(), (a = e.onChange) == null || a.call(e, o);
|
|
77
77
|
}
|
|
78
|
-
}),
|
|
79
|
-
t("theme",
|
|
78
|
+
}), x = b("uiMode"), r = b("apUpload");
|
|
79
|
+
t("theme", x.value), t("value", j), t("dirName", e.dirName ?? ((p = r.value) == null ? void 0 : p.dirName)), t(
|
|
80
80
|
"needName",
|
|
81
|
-
e.needName ?? ((
|
|
82
|
-
), t("accept", e.accept ?? ((
|
|
81
|
+
e.needName ?? ((u = r.value) == null ? void 0 : u.needName) ?? !1
|
|
82
|
+
), t("accept", e.accept ?? ((d = r.value) == null ? void 0 : d.accept) ?? ""), t("maxSize", e.maxSize), t("title", e.title), t("subTitle", e.subTitle), t("maxCount", e.maxCount), t("beforeUpload", e.beforeUpload), t("customRequest", e.customRequest), t(
|
|
83
83
|
"getOssAccess",
|
|
84
|
-
e.getOssAccess ?? ((
|
|
84
|
+
e.getOssAccess ?? ((f = r.value) == null ? void 0 : f.getOssAccess)
|
|
85
85
|
);
|
|
86
|
-
const
|
|
87
|
-
t("uploadingCount",
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
s.value = !1, setTimeout(() => {
|
|
91
|
-
s.value = !0;
|
|
92
|
-
});
|
|
86
|
+
const A = v(() => l.value === 0), l = g(0);
|
|
87
|
+
t("uploadingCount", l);
|
|
88
|
+
function U() {
|
|
89
|
+
m(void 0);
|
|
93
90
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
91
|
+
function m(o) {
|
|
92
|
+
var a, n;
|
|
93
|
+
(n = (a = s == null ? void 0 : s.value) == null ? void 0 : a.setValue) == null || n.call(a, o);
|
|
94
|
+
}
|
|
95
|
+
return N({
|
|
96
|
+
done: A,
|
|
97
|
+
clear: U,
|
|
98
|
+
setValue: m
|
|
99
|
+
}), (o, a) => (y(), z("div", {
|
|
100
|
+
class: T(B(S)())
|
|
99
101
|
}, [
|
|
100
|
-
|
|
102
|
+
(y(), L(R(h[e.type]), q(o.$attrs, {
|
|
103
|
+
ref_key: "uploadRef",
|
|
104
|
+
ref: s
|
|
105
|
+
}), P({ _: 2 }, [
|
|
106
|
+
M(Object.keys(o.$slots), (n) => ({
|
|
107
|
+
name: n,
|
|
108
|
+
fn: V(($) => [
|
|
109
|
+
w(o.$slots, n, D(E($ || {})))
|
|
110
|
+
])
|
|
111
|
+
}))
|
|
112
|
+
]), 1040))
|
|
101
113
|
], 2));
|
|
102
114
|
}
|
|
103
115
|
});
|
|
104
116
|
export {
|
|
105
|
-
|
|
117
|
+
ue as default
|
|
106
118
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
1
|
+
import { ComputedRef, VNode } from 'vue';
|
|
2
2
|
export type FileUploadType = 'picture' | 'singleFile' | 'multipleFile';
|
|
3
3
|
/**
|
|
4
4
|
* 是否需要返回图片名称
|
|
@@ -87,3 +87,8 @@ export type CustomRequest = (cb: {
|
|
|
87
87
|
onSuccess: (saveUrl: string) => void;
|
|
88
88
|
file: File;
|
|
89
89
|
}) => void;
|
|
90
|
+
export interface ApUploadExpose<SetValueType = any> {
|
|
91
|
+
done?: ComputedRef<boolean>;
|
|
92
|
+
clear?: () => void;
|
|
93
|
+
setValue?: (value: SetValueType) => void;
|
|
94
|
+
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
|
-
declare
|
|
2
|
+
declare function setValue(val: (string | Record<string, any>)[]): void;
|
|
3
|
+
declare const _default: DefineComponent<{}, {
|
|
4
|
+
setValue: typeof setValue;
|
|
5
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{}>>, {}, {}>;
|
|
3
6
|
export default _default;
|