@airpower/web 1.2.3 → 1.3.0
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/table/Table.vue.d.ts +1 -3
- package/dist/components/tree/TreeBox.vue.d.ts +3 -3
- package/dist/main.js +10 -17
- package/dist/web.css +1 -1
- 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;
|
|
@@ -44,7 +44,6 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
44
44
|
selectable: (row: E) => boolean;
|
|
45
45
|
showSelect: boolean;
|
|
46
46
|
showEnableAndDisable: boolean;
|
|
47
|
-
hideIndex: boolean;
|
|
48
47
|
fieldCacheKey: string;
|
|
49
48
|
hideColumnSelector: boolean;
|
|
50
49
|
ctrlWidth: string;
|
|
@@ -97,7 +96,6 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
97
96
|
readonly selectable: (row: E) => boolean;
|
|
98
97
|
readonly showSelect: boolean;
|
|
99
98
|
readonly showEnableAndDisable: boolean;
|
|
100
|
-
readonly hideIndex: boolean;
|
|
101
99
|
readonly hideColumnSelector: boolean;
|
|
102
100
|
readonly ctrlWidth: string;
|
|
103
101
|
readonly hideCtrl: boolean;
|
|
@@ -146,7 +144,7 @@ declare const _default: <E extends RootEntity, S extends AbstractCurdService<E>>
|
|
|
146
144
|
readonly onSortChange?: ((sort?: QuerySort) => void) | undefined;
|
|
147
145
|
readonly onDisable?: ((row: E) => void) | undefined;
|
|
148
146
|
readonly onEnable?: ((row: E) => void) | undefined;
|
|
149
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "entity" | "onSearch" | "autoHeight" | "selectList" | "emptyText" | "addPermission" | "columnList" | "searchParams" | "useHook" | "disablePage" | "hideAdd" | "editPermission" | "disablePermission" | "enablePermission" | "detailPermission" | "deletePermission" | "addRowPermission" | "exportPermission" | "importPermission" | "dataList" | "hideEdit" | "disableEdit" | "disableAddRow" | "disableChangeStatus" | "disableDetail" | "disableDelete" | "disableRow" | "hideDelete" | "selectable" | "showSelect" | "showEnableAndDisable" | "
|
|
147
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "loading" | "entity" | "onSearch" | "autoHeight" | "selectList" | "emptyText" | "addPermission" | "columnList" | "searchParams" | "useHook" | "disablePage" | "hideAdd" | "editPermission" | "disablePermission" | "enablePermission" | "detailPermission" | "deletePermission" | "addRowPermission" | "exportPermission" | "importPermission" | "dataList" | "hideEdit" | "disableEdit" | "disableAddRow" | "disableChangeStatus" | "disableDetail" | "disableDelete" | "disableRow" | "hideDelete" | "selectable" | "showSelect" | "showEnableAndDisable" | "fieldCacheKey" | "hideColumnSelector" | "ctrlWidth" | "hideCtrl" | "showDetail" | "showAddRow" | "customDelete" | "deleteTitle" | "deleteContent" | "showImport" | "importTitle" | "exportParam" | "showExport" | "defaultFilter" | "importUrl" | "importTemplateUrl" | "fileEntity" | "onAdd" | "onDetail" | "onDelete" | "onEdit" | "onSelected" | "onAddRow" | "onSortChange" | "onDisable" | "onEnable" | "isTree">, "service" | ("loading" | "entity" | "onSearch" | "autoHeight" | "selectList" | "emptyText" | "addPermission" | "columnList" | "searchParams" | "useHook" | "disablePage" | "hideAdd" | "editPermission" | "disablePermission" | "enablePermission" | "detailPermission" | "deletePermission" | "addRowPermission" | "exportPermission" | "importPermission" | "dataList" | "hideEdit" | "disableEdit" | "disableAddRow" | "disableChangeStatus" | "disableDetail" | "disableDelete" | "disableRow" | "hideDelete" | "selectable" | "showSelect" | "showEnableAndDisable" | "fieldCacheKey" | "hideColumnSelector" | "ctrlWidth" | "hideCtrl" | "showDetail" | "showAddRow" | "customDelete" | "deleteTitle" | "deleteContent" | "showImport" | "importTitle" | "exportParam" | "showExport" | "defaultFilter" | "importUrl" | "importTemplateUrl" | "fileEntity" | "onAdd" | "onDetail" | "onDelete" | "onEdit" | "onSelected" | "onAddRow" | "onSortChange" | "onDisable" | "onEnable" | "isTree")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
150
148
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
151
149
|
resetSearch: () => void;
|
|
152
150
|
search: () => 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: {
|
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) => {
|
|
@@ -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]
|
|
@@ -17783,13 +17784,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
17783
17784
|
type: Boolean,
|
|
17784
17785
|
default: false
|
|
17785
17786
|
},
|
|
17786
|
-
/**
|
|
17787
|
-
* ### 是否隐藏序号
|
|
17788
|
-
*/
|
|
17789
|
-
hideIndex: {
|
|
17790
|
-
type: Boolean,
|
|
17791
|
-
default: false
|
|
17792
|
-
},
|
|
17793
17787
|
/**
|
|
17794
17788
|
* ### 表格字段缓存Key
|
|
17795
17789
|
*/
|
|
@@ -18522,13 +18516,6 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18522
18516
|
type: "selection",
|
|
18523
18517
|
width: "40"
|
|
18524
18518
|
}, null, 8, ["selectable"])) : createCommentVNode("", true),
|
|
18525
|
-
!__props.hideIndex ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
18526
|
-
key: 1,
|
|
18527
|
-
label: unref(WebI18n).get().ID || "序号",
|
|
18528
|
-
fixed: "left",
|
|
18529
|
-
type: "index",
|
|
18530
|
-
width: "60"
|
|
18531
|
-
}, null, 8, ["label"])) : createCommentVNode("", true),
|
|
18532
18519
|
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(showColumnList), (item) => {
|
|
18533
18520
|
return openBlock(), createBlock(unref(ElTableColumn), {
|
|
18534
18521
|
key: item.key,
|
|
@@ -18589,7 +18576,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18589
18576
|
}, 1032, ["align", "fixed", "label", "min-width", "prop", "sortable", "width"]);
|
|
18590
18577
|
}), 128)),
|
|
18591
18578
|
!__props.hideCtrl ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
18592
|
-
key:
|
|
18579
|
+
key: 1,
|
|
18593
18580
|
width: __props.ctrlWidth || "90px",
|
|
18594
18581
|
align: "right",
|
|
18595
18582
|
fixed: "right"
|
|
@@ -19720,6 +19707,12 @@ class RootEntity extends RootModel {
|
|
|
19720
19707
|
__decorateClass([
|
|
19721
19708
|
Field({
|
|
19722
19709
|
label: "ID"
|
|
19710
|
+
}),
|
|
19711
|
+
Table({
|
|
19712
|
+
width: 80,
|
|
19713
|
+
order: 9999,
|
|
19714
|
+
force: true,
|
|
19715
|
+
copy: true
|
|
19723
19716
|
})
|
|
19724
19717
|
], RootEntity.prototype, "id");
|
|
19725
19718
|
__decorateClass([
|