@airpower/web 1.2.4 → 1.3.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/components/image/Image.vue.d.ts +2 -2
- package/dist/components/input/Input.vue.d.ts +2 -2
- package/dist/components/select/Select.vue.d.ts +3 -3
- package/dist/components/tree/TreeBox.vue.d.ts +3 -3
- package/dist/decorator/@Table/ITableColumn.d.ts +12 -0
- package/dist/main.js +19 -13
- package/dist/web.css +11 -11
- package/package.json +13 -13
|
@@ -4,9 +4,9 @@ import { RootEntity } from '../../model/RootEntity';
|
|
|
4
4
|
declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
6
6
|
width: number;
|
|
7
|
+
placeholder: string;
|
|
7
8
|
data: IJson<any>;
|
|
8
9
|
headers: IJson<any>;
|
|
9
|
-
placeholder: string;
|
|
10
10
|
clearable: boolean;
|
|
11
11
|
height: number;
|
|
12
12
|
entity: ITransformerConstructor<F>;
|
|
@@ -34,7 +34,7 @@ declare const _default: <F extends IFile & RootEntity>(__VLS_props: NonNullable<
|
|
|
34
34
|
readonly src?: string | undefined;
|
|
35
35
|
readonly onRemoved?: (() => any) | undefined;
|
|
36
36
|
readonly onUploaded?: ((file: F) => any) | undefined;
|
|
37
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "
|
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "placeholder" | "data" | "headers" | "clearable" | "height" | "entity" | "src" | "upload" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName">, "onRemoved" | "onUploaded" | ("width" | "placeholder" | "data" | "headers" | "clearable" | "height" | "entity" | "src" | "upload" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
38
38
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
39
39
|
attrs: any;
|
|
40
40
|
slots: {};
|
|
@@ -5,8 +5,8 @@ import { RootEntity } from '../../model/RootEntity';
|
|
|
5
5
|
declare const _default: <E extends RootEntity, T extends ITree, EM extends IEnum>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
7
7
|
disabled: boolean;
|
|
8
|
-
list: EM[];
|
|
9
8
|
placeholder: string;
|
|
9
|
+
list: EM[];
|
|
10
10
|
dateShowFormatter: string;
|
|
11
11
|
entity: ITransformerConstructor<E>;
|
|
12
12
|
modelValue: string | number | boolean | unknown[] | Record<string, any>;
|
|
@@ -36,7 +36,7 @@ declare const _default: <E extends RootEntity, T extends ITree, EM extends IEnum
|
|
|
36
36
|
readonly onChanged?: ((...args: any[]) => any) | undefined;
|
|
37
37
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
38
38
|
readonly onFocus?: ((...args: any[]) => any) | undefined;
|
|
39
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "
|
|
39
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "placeholder" | "list" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree" | "modelModifiers" | "modifier" | "showClear" | "onSearch">, "onFocus" | "onBlur" | "onClear" | "onChanged" | "onUpdate:modelValue" | ("disabled" | "placeholder" | "list" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree" | "modelModifiers" | "modifier" | "showClear" | "onSearch")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
40
40
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
41
41
|
attrs: any;
|
|
42
42
|
slots: Partial<Record<NonNullable<string | number | symbol>, (_: {}) => any>>;
|
|
@@ -4,6 +4,7 @@ declare const _default: <T extends IPayload>(__VLS_props: NonNullable<Awaited<ty
|
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
5
5
|
disabled: boolean;
|
|
6
6
|
default: string;
|
|
7
|
+
placeholder: string;
|
|
7
8
|
param: [{
|
|
8
9
|
type: PropType<T>;
|
|
9
10
|
default: () => null;
|
|
@@ -11,12 +12,12 @@ declare const _default: <T extends IPayload>(__VLS_props: NonNullable<Awaited<ty
|
|
|
11
12
|
type: PropType<T>;
|
|
12
13
|
default: () => null;
|
|
13
14
|
};
|
|
14
|
-
placeholder: string;
|
|
15
15
|
selectLabel: string;
|
|
16
16
|
clearLabel: string;
|
|
17
17
|
}> & Omit<{
|
|
18
18
|
readonly disabled: boolean;
|
|
19
19
|
readonly default: string;
|
|
20
|
+
readonly placeholder: string;
|
|
20
21
|
readonly param: Exclude<[{
|
|
21
22
|
type: PropType<T>;
|
|
22
23
|
default: () => null;
|
|
@@ -24,14 +25,13 @@ declare const _default: <T extends IPayload>(__VLS_props: NonNullable<Awaited<ty
|
|
|
24
25
|
type: PropType<T>;
|
|
25
26
|
default: () => null;
|
|
26
27
|
}, undefined>;
|
|
27
|
-
readonly placeholder: string;
|
|
28
28
|
readonly selectLabel: string;
|
|
29
29
|
readonly clearLabel: string;
|
|
30
30
|
readonly selector: Component;
|
|
31
31
|
readonly onClear?: (() => any) | undefined;
|
|
32
32
|
readonly onChanged?: ((data: T | undefined) => any) | undefined;
|
|
33
33
|
readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
|
|
34
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "default" | "
|
|
34
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "default" | "placeholder" | "param" | "selectLabel" | "clearLabel">, "onClear" | "onChanged" | "onUpdate:modelValue" | "selector" | ("disabled" | "default" | "placeholder" | "param" | "selectLabel" | "clearLabel")> & {
|
|
35
35
|
modelValue?: T;
|
|
36
36
|
} & Partial<{}>> & import('vue').PublicProps;
|
|
37
37
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
@@ -3,9 +3,9 @@ import { RootEntity } from '../../model/RootEntity';
|
|
|
3
3
|
declare const _default: <T extends ITree & RootEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
5
5
|
width: number;
|
|
6
|
+
placeholder: string;
|
|
6
7
|
title: string;
|
|
7
8
|
hideIcon: boolean;
|
|
8
|
-
placeholder: string;
|
|
9
9
|
collapse: boolean;
|
|
10
10
|
defaultExpandAll: boolean;
|
|
11
11
|
hideTree: boolean;
|
|
@@ -14,9 +14,9 @@ declare const _default: <T extends ITree & RootEntity>(__VLS_props: NonNullable<
|
|
|
14
14
|
defaultCollapse: boolean;
|
|
15
15
|
}> & Omit<{
|
|
16
16
|
readonly width: number;
|
|
17
|
+
readonly placeholder: string;
|
|
17
18
|
readonly title: string;
|
|
18
19
|
readonly hideIcon: boolean;
|
|
19
|
-
readonly placeholder: string;
|
|
20
20
|
readonly collapse: boolean;
|
|
21
21
|
readonly defaultExpandAll: boolean;
|
|
22
22
|
readonly hideTree: boolean;
|
|
@@ -25,7 +25,7 @@ declare const _default: <T extends ITree & RootEntity>(__VLS_props: NonNullable<
|
|
|
25
25
|
readonly isTreeLoading: boolean;
|
|
26
26
|
readonly defaultCollapse: boolean;
|
|
27
27
|
readonly onChanged?: ((data: T | undefined) => any) | undefined;
|
|
28
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "
|
|
28
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "placeholder" | "title" | "hideIcon" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse">, "onChanged" | "treeData" | ("width" | "placeholder" | "title" | "hideIcon" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
29
29
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
30
30
|
attrs: any;
|
|
31
31
|
slots: {
|
|
@@ -61,6 +61,18 @@ export interface ITableColumn extends IBaseField, IElementTableColumn {
|
|
|
61
61
|
* ### 前缀文本
|
|
62
62
|
*/
|
|
63
63
|
prefixText?: string;
|
|
64
|
+
/**
|
|
65
|
+
* ### 是否是图片列
|
|
66
|
+
*/
|
|
67
|
+
image?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* ### 图片宽度
|
|
70
|
+
*/
|
|
71
|
+
imageWidth?: number;
|
|
72
|
+
/**
|
|
73
|
+
* ### 图片高度
|
|
74
|
+
*/
|
|
75
|
+
imageHeight?: number;
|
|
64
76
|
/**
|
|
65
77
|
* ### 是否显示颜色状态灯
|
|
66
78
|
*/
|
package/dist/main.js
CHANGED
|
@@ -2115,7 +2115,8 @@ class I18n {
|
|
|
2115
2115
|
*/
|
|
2116
2116
|
static addLanguage(...languages) {
|
|
2117
2117
|
if (languages.length === 0) {
|
|
2118
|
-
|
|
2118
|
+
console.error("请传入语言包");
|
|
2119
|
+
return;
|
|
2119
2120
|
}
|
|
2120
2121
|
I18n.update(new this());
|
|
2121
2122
|
languages.forEach((item) => {
|
|
@@ -14479,7 +14480,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
14479
14480
|
};
|
|
14480
14481
|
}
|
|
14481
14482
|
});
|
|
14482
|
-
const AMoney = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-
|
|
14483
|
+
const AMoney = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-f221d0de"]]);
|
|
14483
14484
|
class QueryPage extends Transformer {
|
|
14484
14485
|
/**
|
|
14485
14486
|
* ### 分页页数
|
|
@@ -15667,7 +15668,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
15667
15668
|
};
|
|
15668
15669
|
}
|
|
15669
15670
|
});
|
|
15670
|
-
const APayload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-
|
|
15671
|
+
const APayload = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-039eac97"]]);
|
|
15671
15672
|
const _hoisted_1$6 = { class: "a-phone-call__content" };
|
|
15672
15673
|
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
15673
15674
|
__name: "Call",
|
|
@@ -17263,7 +17264,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
17263
17264
|
onClick: ($event) => props.props.onConfirm(data)
|
|
17264
17265
|
}, {
|
|
17265
17266
|
default: withCtx(() => _cache[2] || (_cache[2] = [
|
|
17266
|
-
createTextVNode(" 选择 ")
|
|
17267
|
+
createTextVNode(" 选择 ", -1)
|
|
17267
17268
|
])),
|
|
17268
17269
|
_: 2,
|
|
17269
17270
|
__: [2]
|
|
@@ -17398,7 +17399,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
17398
17399
|
};
|
|
17399
17400
|
}
|
|
17400
17401
|
});
|
|
17401
|
-
const ColumnSelector = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
17402
|
+
const ColumnSelector = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-520a2ab9"]]);
|
|
17402
17403
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
17403
17404
|
__name: "CopyColumn",
|
|
17404
17405
|
props: {
|
|
@@ -17573,7 +17574,7 @@ const _hoisted_5$1 = {
|
|
|
17573
17574
|
style: { "color": "#aaa", "margin-right": "3px" }
|
|
17574
17575
|
};
|
|
17575
17576
|
const _hoisted_6 = {
|
|
17576
|
-
key:
|
|
17577
|
+
key: 10,
|
|
17577
17578
|
style: { "color": "#aaa" }
|
|
17578
17579
|
};
|
|
17579
17580
|
const _hoisted_7 = { class: "ctrlRow" };
|
|
@@ -18538,18 +18539,23 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18538
18539
|
column: item,
|
|
18539
18540
|
data: scope.row,
|
|
18540
18541
|
dictionary: unref(getDictionary)(unref(EntityClass), item.key)
|
|
18541
|
-
}, null, 8, ["column", "data", "dictionary"])) : item.
|
|
18542
|
+
}, null, 8, ["column", "data", "dictionary"])) : item.image ? (openBlock(), createBlock(unref(_sfc_main$k), {
|
|
18542
18543
|
key: 2,
|
|
18544
|
+
src: getValue(scope, item.key),
|
|
18545
|
+
width: item.imageWidth,
|
|
18546
|
+
height: item.imageHeight
|
|
18547
|
+
}, null, 8, ["src", "width", "height"])) : item.phone ? (openBlock(), createBlock(unref(APhone), {
|
|
18548
|
+
key: 3,
|
|
18543
18549
|
desensitize: item.desensitize,
|
|
18544
18550
|
phone: getValue(scope, item.key)
|
|
18545
18551
|
}, null, 8, ["desensitize", "phone"])) : item.datetime ? (openBlock(), createBlock(unref(ADateTime), {
|
|
18546
|
-
key:
|
|
18552
|
+
key: 4,
|
|
18547
18553
|
formatter: item.datetime === true ? unref(DateTimeFormatter).FULL_DATE_TIME : item.datetime,
|
|
18548
18554
|
"milli-second": getValue(scope, item.key)
|
|
18549
18555
|
}, null, 8, ["formatter", "milli-second"])) : item.money ? (openBlock(), createBlock(unref(AMoney), {
|
|
18550
|
-
key:
|
|
18556
|
+
key: 5,
|
|
18551
18557
|
money: getValue(scope, item.key)
|
|
18552
|
-
}, null, 8, ["money"])) : item.payload ? (openBlock(), createElementBlock(Fragment, { key:
|
|
18558
|
+
}, null, 8, ["money"])) : item.payload ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
18553
18559
|
item.array ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
18554
18560
|
createTextVNode(toDisplayString(getPayloadArray(scope, item.key).map((payload) => payload.getPayloadLabel()).join(",")), 1)
|
|
18555
18561
|
], 64)) : (openBlock(), createBlock(unref(APayload), {
|
|
@@ -18557,15 +18563,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18557
18563
|
payload: getValue(scope, item.key)
|
|
18558
18564
|
}, null, 8, ["payload"]))
|
|
18559
18565
|
], 64)) : item.desensitize ? (openBlock(), createBlock(unref(ADesensitize), {
|
|
18560
|
-
key:
|
|
18566
|
+
key: 7,
|
|
18561
18567
|
content: getValue(scope, item.key),
|
|
18562
18568
|
type: item.desensitize
|
|
18563
18569
|
}, null, 8, ["content", "type"])) : item.copy ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
18564
|
-
key:
|
|
18570
|
+
key: 8,
|
|
18565
18571
|
column: item,
|
|
18566
18572
|
data: scope.row
|
|
18567
18573
|
}, null, 8, ["column", "data"])) : (openBlock(), createElementBlock("div", {
|
|
18568
|
-
key:
|
|
18574
|
+
key: 9,
|
|
18569
18575
|
class: normalizeClass([item.wrap ? "" : "nowrap", "a-table-column"])
|
|
18570
18576
|
}, toDisplayString(getStringValue(getValue(scope, item.key)) ?? item.emptyValue), 3)),
|
|
18571
18577
|
item.suffixText ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(item.suffixText), 1)) : createCommentVNode("", true)
|