@airpower/web 1.6.1 → 1.7.1
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/form/FormField.vue.d.ts +3 -3
- package/dist/components/image/Image.vue.d.ts +4 -4
- package/dist/components/input/Input.vue.d.ts +3 -3
- package/dist/components/page/Page.vue.d.ts +3 -3
- package/dist/components/select/Select.vue.d.ts +3 -3
- package/dist/components/table/component/ColumnSelector.vue.d.ts +3 -3
- package/dist/components/tree/TreeBox.vue.d.ts +3 -3
- package/dist/main.js +49 -48
- package/dist/web.css +5 -5
- package/package.json +1 -1
|
@@ -35,16 +35,16 @@ declare const _default: <E extends RootEntity>(__VLS_props: NonNullable<Awaited<
|
|
|
35
35
|
readonly tree?: (ITree & E)[] | undefined;
|
|
36
36
|
readonly onClear?: (() => any) | undefined;
|
|
37
37
|
readonly onBlur?: (() => any) | undefined;
|
|
38
|
-
readonly
|
|
38
|
+
readonly onChange?: ((value: E) => any) | undefined;
|
|
39
39
|
readonly "onUpdate:modelValue"?: ((value: E) => any) | undefined;
|
|
40
40
|
readonly onFocus?: (() => any) | undefined;
|
|
41
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "list" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree">, "onFocus" | "onBlur" | "
|
|
41
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "list" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree">, "onFocus" | "onBlur" | "onChange" | "field" | "onClear" | "onUpdate:modelValue" | ("disabled" | "list" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree")> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
42
42
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
43
43
|
attrs: any;
|
|
44
44
|
slots: {
|
|
45
45
|
default?(_: {}): any;
|
|
46
46
|
};
|
|
47
|
-
emit: ((evt: "clear") => void) & ((evt: "blur") => void) & ((evt: "
|
|
47
|
+
emit: ((evt: "clear") => void) & ((evt: "blur") => void) & ((evt: "change", value: E) => void) & ((evt: "update:modelValue", value: E) => void) & ((evt: "focus") => void);
|
|
48
48
|
}>) => import('vue').VNode & {
|
|
49
49
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
50
50
|
};
|
|
@@ -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" | "placeholder" | "data" | "headers" | "clearable" | "height" | "entity" | "src" | "upload" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName">, "
|
|
35
|
+
readonly onUpload?: ((file: F) => any) | undefined;
|
|
36
|
+
readonly onRemove?: (() => any) | undefined;
|
|
37
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "placeholder" | "data" | "headers" | "clearable" | "height" | "entity" | "src" | "upload" | "showTips" | "limit" | "extensions" | "uploadUrl" | "uploadFileName">, "onUpload" | "onRemove" | ("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: {};
|
|
41
|
-
emit: ((evt: "
|
|
41
|
+
emit: ((evt: "upload", file: F) => void) & ((evt: "remove") => void);
|
|
42
42
|
}>) => import('vue').VNode & {
|
|
43
43
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
44
|
};
|
|
@@ -33,14 +33,14 @@ declare const _default: <E extends RootEntity, T extends ITree & E, EM extends I
|
|
|
33
33
|
readonly modifier?: string | undefined;
|
|
34
34
|
readonly onClear?: ((...args: any[]) => any) | undefined;
|
|
35
35
|
readonly onBlur?: ((...args: any[]) => any) | undefined;
|
|
36
|
-
readonly
|
|
36
|
+
readonly onChange?: ((...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" | "placeholder" | "list" | "dateShowFormatter" | "entity" | "modelValue" | "readonly" | "disabledValue" | "tree" | "modelModifiers" | "modifier" | "showClear" | "onSearch">, "onFocus" | "onBlur" | "
|
|
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" | "onChange" | "onClear" | "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>>;
|
|
43
|
-
emit: (event: "clear" | "blur" | "
|
|
43
|
+
emit: (event: "clear" | "blur" | "change" | "update:modelValue" | "focus", ...args: any[]) => void;
|
|
44
44
|
}>) => import('vue').VNode & {
|
|
45
45
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
46
46
|
};
|
|
@@ -4,12 +4,12 @@ import { QueryResponsePage } from '../../model/query/QueryResponsePage';
|
|
|
4
4
|
declare const _default: <E extends 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<{}> & Omit<{
|
|
6
6
|
readonly response: QueryResponsePage<E>;
|
|
7
|
-
readonly
|
|
8
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "
|
|
7
|
+
readonly onChange?: ((page: QueryPage) => any) | undefined;
|
|
8
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange" | "response"> & {} & Partial<{}>> & import('vue').PublicProps;
|
|
9
9
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
10
10
|
attrs: any;
|
|
11
11
|
slots: {};
|
|
12
|
-
emit: (evt: "
|
|
12
|
+
emit: (evt: "change", page: QueryPage) => void;
|
|
13
13
|
}>) => import('vue').VNode & {
|
|
14
14
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
15
15
|
};
|
|
@@ -29,15 +29,15 @@ declare const _default: <T extends IPayload>(__VLS_props: NonNullable<Awaited<ty
|
|
|
29
29
|
readonly clearLabel: string;
|
|
30
30
|
readonly selector: Component;
|
|
31
31
|
readonly onClear?: (() => any) | undefined;
|
|
32
|
-
readonly
|
|
32
|
+
readonly onChange?: ((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" | "placeholder" | "param" | "selectLabel" | "clearLabel">, "
|
|
34
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "default" | "placeholder" | "param" | "selectLabel" | "clearLabel">, "onChange" | "onClear" | "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;
|
|
38
38
|
attrs: any;
|
|
39
39
|
slots: {};
|
|
40
|
-
emit: (((evt: "clear") => void) & ((evt: "
|
|
40
|
+
emit: (((evt: "clear") => void) & ((evt: "change", data: T | undefined) => void)) & ((evt: "update:modelValue", value: T) => void);
|
|
41
41
|
}>) => import('vue').VNode & {
|
|
42
42
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
43
43
|
};
|
|
@@ -3,15 +3,15 @@ import { ITableColumn } from '../../../decorator/@Table/ITableColumn';
|
|
|
3
3
|
import { RootEntity } from '../../../model/RootEntity';
|
|
4
4
|
declare const _default: <E extends 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<{}> & Omit<{
|
|
6
|
-
readonly
|
|
7
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "
|
|
6
|
+
readonly onChange?: ((args_0: string[]) => any) | undefined;
|
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onChange"> & {
|
|
8
8
|
columnList: Array<ITableColumn<E>>;
|
|
9
9
|
entityClass: ITransformerConstructor<E>;
|
|
10
10
|
} & Partial<{}>> & import('vue').PublicProps;
|
|
11
11
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
12
12
|
attrs: any;
|
|
13
13
|
slots: {};
|
|
14
|
-
emit: (evt: "
|
|
14
|
+
emit: (evt: "change", args_0: string[]) => void;
|
|
15
15
|
}>) => import('vue').VNode & {
|
|
16
16
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
17
17
|
};
|
|
@@ -24,15 +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
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "placeholder" | "title" | "hideIcon" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse">, "
|
|
27
|
+
readonly onChange?: ((data: T | undefined) => any) | undefined;
|
|
28
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "width" | "placeholder" | "title" | "hideIcon" | "collapse" | "defaultExpandAll" | "hideTree" | "searchable" | "isTreeLoading" | "defaultCollapse">, "onChange" | "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: {
|
|
32
32
|
icon?(_: {}): any;
|
|
33
33
|
default?(_: {}): any;
|
|
34
34
|
};
|
|
35
|
-
emit: (evt: "
|
|
35
|
+
emit: (evt: "change", data: T | undefined) => void;
|
|
36
36
|
}>) => import('vue').VNode & {
|
|
37
37
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
38
38
|
};
|
package/dist/main.js
CHANGED
|
@@ -10509,7 +10509,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10509
10509
|
default: void 0
|
|
10510
10510
|
}
|
|
10511
10511
|
},
|
|
10512
|
-
emits: ["
|
|
10512
|
+
emits: ["change", "update:modelValue", "blur", "focus", "clear"],
|
|
10513
10513
|
setup(__props, { emit: __emit }) {
|
|
10514
10514
|
const props = __props;
|
|
10515
10515
|
const emits = __emit;
|
|
@@ -10531,7 +10531,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10531
10531
|
injectFormData.value[props.field] = val;
|
|
10532
10532
|
}
|
|
10533
10533
|
emits("update:modelValue", formData.value);
|
|
10534
|
-
emits("
|
|
10534
|
+
emits("change", val);
|
|
10535
10535
|
}
|
|
10536
10536
|
return (_ctx, _cache) => {
|
|
10537
10537
|
return openBlock(), createBlock(unref(ElFormItem), {
|
|
@@ -10552,7 +10552,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
10552
10552
|
readonly: __props.readonly,
|
|
10553
10553
|
tree: __props.tree,
|
|
10554
10554
|
onBlur: _cache[1] || (_cache[1] = ($event) => emits("blur")),
|
|
10555
|
-
|
|
10555
|
+
onChange,
|
|
10556
10556
|
onClear: _cache[2] || (_cache[2] = ($event) => emits("clear")),
|
|
10557
10557
|
onFocus: _cache[3] || (_cache[3] = ($event) => emits("focus"))
|
|
10558
10558
|
}, null, 8, ["modelValue", "disabled", "disabled-value", "entity", "list", "model-modifiers", "modifier", "readonly", "tree"])
|
|
@@ -13747,7 +13747,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13747
13747
|
default: void 0
|
|
13748
13748
|
}
|
|
13749
13749
|
},
|
|
13750
|
-
emits: ["
|
|
13750
|
+
emits: ["upload", "remove"],
|
|
13751
13751
|
setup(__props, { emit: __emit }) {
|
|
13752
13752
|
const props = __props;
|
|
13753
13753
|
const emits = __emit;
|
|
@@ -13771,7 +13771,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13771
13771
|
uploadHeader.value[WebConfig.authorizationHeaderKey] = WebConfig.getAccessToken();
|
|
13772
13772
|
function imageRemoved() {
|
|
13773
13773
|
imageUrl.value = "";
|
|
13774
|
-
emits("
|
|
13774
|
+
emits("remove");
|
|
13775
13775
|
}
|
|
13776
13776
|
function showLocalFile(file) {
|
|
13777
13777
|
const reader = new FileReader();
|
|
@@ -13812,7 +13812,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
13812
13812
|
}
|
|
13813
13813
|
const entityData = Transformer.parse(response.data, props.entity);
|
|
13814
13814
|
if (entityData && entityData.url) {
|
|
13815
|
-
emits("
|
|
13815
|
+
emits("upload", entityData);
|
|
13816
13816
|
isUploading.value = false;
|
|
13817
13817
|
return;
|
|
13818
13818
|
}
|
|
@@ -14016,7 +14016,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14016
14016
|
emits: [
|
|
14017
14017
|
"blur",
|
|
14018
14018
|
"focus",
|
|
14019
|
-
"
|
|
14019
|
+
"change",
|
|
14020
14020
|
"update:modelValue",
|
|
14021
14021
|
"clear"
|
|
14022
14022
|
],
|
|
@@ -14025,7 +14025,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
|
14025
14025
|
const emits = __emit;
|
|
14026
14026
|
const value = ref(props.modelValue);
|
|
14027
14027
|
function emitChange() {
|
|
14028
|
-
emits("
|
|
14028
|
+
emits("change", value.value);
|
|
14029
14029
|
}
|
|
14030
14030
|
function emitBlur() {
|
|
14031
14031
|
emits("blur");
|
|
@@ -14572,7 +14572,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14572
14572
|
required: true
|
|
14573
14573
|
}
|
|
14574
14574
|
},
|
|
14575
|
-
emits: ["
|
|
14575
|
+
emits: ["change"],
|
|
14576
14576
|
setup(__props, { emit: __emit }) {
|
|
14577
14577
|
const props = __props;
|
|
14578
14578
|
const emits = __emit;
|
|
@@ -14580,7 +14580,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
14580
14580
|
const currentPage = ref(page.value.pageNum);
|
|
14581
14581
|
function emitChange() {
|
|
14582
14582
|
currentPage.value = page.value.pageNum;
|
|
14583
|
-
emits("
|
|
14583
|
+
emits("change", page.value);
|
|
14584
14584
|
}
|
|
14585
14585
|
function pageChanged(num) {
|
|
14586
14586
|
page.value.pageNum = Number.parseInt(num.toString(), 10);
|
|
@@ -16909,7 +16909,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
16909
16909
|
"modelValue": {},
|
|
16910
16910
|
"modelModifiers": {}
|
|
16911
16911
|
}),
|
|
16912
|
-
emits: /* @__PURE__ */ mergeModels(["
|
|
16912
|
+
emits: /* @__PURE__ */ mergeModels(["change", "clear"], ["update:modelValue"]),
|
|
16913
16913
|
setup(__props, { emit: __emit }) {
|
|
16914
16914
|
const props = __props;
|
|
16915
16915
|
const emits = __emit;
|
|
@@ -16917,11 +16917,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
16917
16917
|
const label = computed(() => result.value?.getPayloadLabel() || props.default);
|
|
16918
16918
|
async function onSelect() {
|
|
16919
16919
|
result.value = await DialogUtil.show(props.selector, props.param);
|
|
16920
|
-
emits("
|
|
16920
|
+
emits("change", result.value);
|
|
16921
16921
|
}
|
|
16922
16922
|
async function onClear() {
|
|
16923
16923
|
result.value = void 0;
|
|
16924
|
-
emits("
|
|
16924
|
+
emits("change", result.value);
|
|
16925
16925
|
emits("clear");
|
|
16926
16926
|
}
|
|
16927
16927
|
return (_ctx, _cache) => {
|
|
@@ -17241,8 +17241,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
17241
17241
|
status: withCtx(() => [
|
|
17242
17242
|
createVNode(unref(_sfc_main$h), {
|
|
17243
17243
|
response: unref(response),
|
|
17244
|
-
|
|
17245
|
-
}, null, 8, ["response", "
|
|
17244
|
+
onChange: unref(onPageChanged)
|
|
17245
|
+
}, null, 8, ["response", "onChange"])
|
|
17246
17246
|
]),
|
|
17247
17247
|
default: withCtx(() => [
|
|
17248
17248
|
createVNode(unref(_sfc_main$2), {
|
|
@@ -17350,7 +17350,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
17350
17350
|
columnList: {},
|
|
17351
17351
|
entityClass: { type: Function }
|
|
17352
17352
|
},
|
|
17353
|
-
emits: ["
|
|
17353
|
+
emits: ["change"],
|
|
17354
17354
|
setup(__props, { emit: __emit }) {
|
|
17355
17355
|
const props = __props;
|
|
17356
17356
|
const emits = __emit;
|
|
@@ -17370,12 +17370,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
17370
17370
|
config.hide = false;
|
|
17371
17371
|
list.value.push(config.key);
|
|
17372
17372
|
}
|
|
17373
|
-
emits("
|
|
17373
|
+
emits("change", list.value);
|
|
17374
17374
|
}
|
|
17375
17375
|
if (list.value.length === 0) {
|
|
17376
17376
|
list.value = props.columnList.filter((i) => !i.hide).map((i) => i.key);
|
|
17377
17377
|
}
|
|
17378
|
-
emits("
|
|
17378
|
+
emits("change", list.value);
|
|
17379
17379
|
return (_ctx, _cache) => {
|
|
17380
17380
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
17381
17381
|
createVNode(unref(_sfc_main$v), {
|
|
@@ -17419,7 +17419,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
17419
17419
|
};
|
|
17420
17420
|
}
|
|
17421
17421
|
});
|
|
17422
|
-
const ColumnSelector = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-
|
|
17422
|
+
const ColumnSelector = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-8e70d137"]]);
|
|
17423
17423
|
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
17424
17424
|
__name: "CopyColumn",
|
|
17425
17425
|
props: {
|
|
@@ -17594,7 +17594,7 @@ const _hoisted_5$1 = {
|
|
|
17594
17594
|
style: { "color": "#aaa", "margin-right": "3px" }
|
|
17595
17595
|
};
|
|
17596
17596
|
const _hoisted_6 = {
|
|
17597
|
-
key:
|
|
17597
|
+
key: 10,
|
|
17598
17598
|
style: { "color": "#aaa" }
|
|
17599
17599
|
};
|
|
17600
17600
|
const _hoisted_7 = { class: "ctrlRow" };
|
|
@@ -18231,11 +18231,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18231
18231
|
function getRowEntity(scope) {
|
|
18232
18232
|
return scope.row;
|
|
18233
18233
|
}
|
|
18234
|
-
function getValue(scope,
|
|
18234
|
+
function getValue(scope, config) {
|
|
18235
|
+
const key = config.key;
|
|
18236
|
+
if (config.formatter) {
|
|
18237
|
+
return config.formatter(getRowEntity(scope));
|
|
18238
|
+
}
|
|
18235
18239
|
return getRowEntity(scope)[key];
|
|
18236
18240
|
}
|
|
18237
|
-
function getPayloadArray(scope,
|
|
18238
|
-
const value = getValue(scope,
|
|
18241
|
+
function getPayloadArray(scope, config) {
|
|
18242
|
+
const value = getValue(scope, config);
|
|
18239
18243
|
return value;
|
|
18240
18244
|
}
|
|
18241
18245
|
function tableRowClassName({ row }) {
|
|
@@ -18506,7 +18510,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18506
18510
|
key: 1,
|
|
18507
18511
|
"column-list": unref(allColumnList),
|
|
18508
18512
|
"entity-class": unref(EntityClass),
|
|
18509
|
-
|
|
18513
|
+
onChange: _cache[5] || (_cache[5] = ($event) => unref(updateSelectKeys)($event))
|
|
18510
18514
|
}, null, 8, ["column-list", "entity-class"])) : createCommentVNode("", true)
|
|
18511
18515
|
])
|
|
18512
18516
|
]),
|
|
@@ -18560,49 +18564,46 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18560
18564
|
data: getRowEntity(scope),
|
|
18561
18565
|
index: scope.$index
|
|
18562
18566
|
}, () => [
|
|
18563
|
-
item.prefixText ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(item.prefixText), 1)) :
|
|
18564
|
-
|
|
18565
|
-
createTextVNode(toDisplayString(item.formatter(getRowEntity(scope))), 1)
|
|
18566
|
-
], 64)) : unref(getDictionary)(unref(EntityClass), item.key) ? (openBlock(), createBlock(unref(EnumColumn), {
|
|
18567
|
-
key: 2,
|
|
18567
|
+
item.prefixText ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(item.prefixText), 1)) : unref(getDictionary)(unref(EntityClass), item.key) ? (openBlock(), createBlock(unref(EnumColumn), {
|
|
18568
|
+
key: 1,
|
|
18568
18569
|
column: item,
|
|
18569
18570
|
data: scope.row,
|
|
18570
18571
|
dictionary: unref(getDictionary)(unref(EntityClass), item.key)
|
|
18571
18572
|
}, null, 8, ["column", "data", "dictionary"])) : item.image ? (openBlock(), createBlock(unref(_sfc_main$k), {
|
|
18572
|
-
key:
|
|
18573
|
+
key: 2,
|
|
18573
18574
|
height: item.imageHeight || 40,
|
|
18574
|
-
src: getValue(scope, item
|
|
18575
|
+
src: getValue(scope, item),
|
|
18575
18576
|
width: item.imageWidth || 40
|
|
18576
18577
|
}, null, 8, ["height", "src", "width"])) : item.phone ? (openBlock(), createBlock(unref(APhone), {
|
|
18577
|
-
key:
|
|
18578
|
+
key: 3,
|
|
18578
18579
|
desensitize: item.desensitize,
|
|
18579
|
-
phone: getValue(scope, item
|
|
18580
|
+
phone: getValue(scope, item)
|
|
18580
18581
|
}, null, 8, ["desensitize", "phone"])) : item.datetime ? (openBlock(), createBlock(unref(ADateTime), {
|
|
18581
|
-
key:
|
|
18582
|
+
key: 4,
|
|
18582
18583
|
formatter: item.datetime === true ? unref(DateTimeFormatter).FULL_DATE_TIME : item.datetime,
|
|
18583
|
-
"milli-second": getValue(scope, item
|
|
18584
|
+
"milli-second": getValue(scope, item)
|
|
18584
18585
|
}, null, 8, ["formatter", "milli-second"])) : item.money ? (openBlock(), createBlock(unref(AMoney), {
|
|
18585
|
-
key:
|
|
18586
|
-
money: getValue(scope, item
|
|
18587
|
-
}, null, 8, ["money"])) : item.payload ? (openBlock(), createElementBlock(Fragment, { key:
|
|
18586
|
+
key: 5,
|
|
18587
|
+
money: getValue(scope, item)
|
|
18588
|
+
}, null, 8, ["money"])) : item.payload ? (openBlock(), createElementBlock(Fragment, { key: 6 }, [
|
|
18588
18589
|
item.array ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
18589
|
-
createTextVNode(toDisplayString(getPayloadArray(scope, item
|
|
18590
|
+
createTextVNode(toDisplayString(getPayloadArray(scope, item).map((payload) => payload.getPayloadLabel()).join(",")), 1)
|
|
18590
18591
|
], 64)) : (openBlock(), createBlock(unref(APayload), {
|
|
18591
18592
|
key: 1,
|
|
18592
|
-
payload: getValue(scope, item
|
|
18593
|
+
payload: getValue(scope, item)
|
|
18593
18594
|
}, null, 8, ["payload"]))
|
|
18594
18595
|
], 64)) : item.desensitize ? (openBlock(), createBlock(unref(ADesensitize), {
|
|
18595
|
-
key:
|
|
18596
|
-
content: getValue(scope, item
|
|
18596
|
+
key: 7,
|
|
18597
|
+
content: getValue(scope, item),
|
|
18597
18598
|
type: item.desensitize
|
|
18598
18599
|
}, null, 8, ["content", "type"])) : item.copy ? (openBlock(), createBlock(unref(_sfc_main$4), {
|
|
18599
|
-
key:
|
|
18600
|
+
key: 8,
|
|
18600
18601
|
column: item,
|
|
18601
18602
|
data: scope.row
|
|
18602
18603
|
}, null, 8, ["column", "data"])) : (openBlock(), createElementBlock("div", {
|
|
18603
|
-
key:
|
|
18604
|
+
key: 9,
|
|
18604
18605
|
class: normalizeClass([item.wrap ? "" : "nowrap", "a-table-column"])
|
|
18605
|
-
}, toDisplayString(getStringValue(getValue(scope, item
|
|
18606
|
+
}, toDisplayString(getStringValue(getValue(scope, item)) ?? item.emptyValue), 3)),
|
|
18606
18607
|
item.suffixText ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(item.suffixText), 1)) : createCommentVNode("", true)
|
|
18607
18608
|
]) : createCommentVNode("", true)
|
|
18608
18609
|
]),
|
|
@@ -18729,7 +18730,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
18729
18730
|
key: 0,
|
|
18730
18731
|
response: unref(hook).response.value,
|
|
18731
18732
|
class: "a-table-page",
|
|
18732
|
-
|
|
18733
|
+
onChange: _cache[6] || (_cache[6] = ($event) => unref(hook).onPageChanged($event))
|
|
18733
18734
|
}, null, 8, ["response"])) : createCommentVNode("", true),
|
|
18734
18735
|
renderSlot(_ctx.$slots, "afterPage")
|
|
18735
18736
|
]),
|
|
@@ -18828,7 +18829,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18828
18829
|
default: false
|
|
18829
18830
|
}
|
|
18830
18831
|
},
|
|
18831
|
-
emits: ["
|
|
18832
|
+
emits: ["change"],
|
|
18832
18833
|
setup(__props, { emit: __emit }) {
|
|
18833
18834
|
const props = __props;
|
|
18834
18835
|
const emits = __emit;
|
|
@@ -18851,7 +18852,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
18851
18852
|
} else {
|
|
18852
18853
|
currentData.value = row;
|
|
18853
18854
|
}
|
|
18854
|
-
emits("
|
|
18855
|
+
emits("change", currentData.value);
|
|
18855
18856
|
}
|
|
18856
18857
|
function filterNode(value, node) {
|
|
18857
18858
|
if (!value)
|
package/dist/web.css
CHANGED
|
@@ -1220,7 +1220,7 @@ textarea {
|
|
|
1220
1220
|
height: 0;
|
|
1221
1221
|
overflow: hidden;
|
|
1222
1222
|
overflow-y: auto;
|
|
1223
|
-
}.el-check-tag[data-v-
|
|
1223
|
+
}.el-check-tag[data-v-8e70d137] {
|
|
1224
1224
|
font-weight: normal !important;
|
|
1225
1225
|
user-select: none;
|
|
1226
1226
|
font-size: 13px;
|
|
@@ -1228,7 +1228,7 @@ textarea {
|
|
|
1228
1228
|
margin-bottom: 5px;
|
|
1229
1229
|
padding: 4px 10px;
|
|
1230
1230
|
}
|
|
1231
|
-
.a-field-selector-bg[data-v-
|
|
1231
|
+
.a-field-selector-bg[data-v-8e70d137] {
|
|
1232
1232
|
position: fixed;
|
|
1233
1233
|
left: 0;
|
|
1234
1234
|
right: 0;
|
|
@@ -1237,7 +1237,7 @@ textarea {
|
|
|
1237
1237
|
background-color: rgba(0, 0, 0, 0.1);
|
|
1238
1238
|
z-index: 9999999;
|
|
1239
1239
|
}
|
|
1240
|
-
.a-field-selector-dialog[data-v-
|
|
1240
|
+
.a-field-selector-dialog[data-v-8e70d137] {
|
|
1241
1241
|
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
|
|
1242
1242
|
position: absolute;
|
|
1243
1243
|
right: 0;
|
|
@@ -1250,13 +1250,13 @@ textarea {
|
|
|
1250
1250
|
overflow: hidden;
|
|
1251
1251
|
z-index: 99999991;
|
|
1252
1252
|
}
|
|
1253
|
-
.a-field-selector-dialog .a-field-selector-title[data-v-
|
|
1253
|
+
.a-field-selector-dialog .a-field-selector-title[data-v-8e70d137] {
|
|
1254
1254
|
margin-bottom: 10px;
|
|
1255
1255
|
border-bottom: 1px solid var(--el-color-primary-light-9);
|
|
1256
1256
|
padding: 8px 16px;
|
|
1257
1257
|
font-size: 15px;
|
|
1258
1258
|
}
|
|
1259
|
-
.a-field-selector-dialog .a-field-selector-list[data-v-
|
|
1259
|
+
.a-field-selector-dialog .a-field-selector-list[data-v-8e70d137] {
|
|
1260
1260
|
padding: 5px 15px 10px 15px;
|
|
1261
1261
|
display: flex;
|
|
1262
1262
|
flex-wrap: wrap;
|