@aplus-frontend/ui 6.26.4 → 6.27.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/es/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
- package/es/src/ag-grid/hooks/use-columns-def.mjs +29 -29
- package/es/src/ag-grid/hooks/use-columns.d.ts +1 -1
- package/es/src/ag-grid/hooks/use-columns.mjs +8 -8
- package/es/src/ag-grid/hooks/use-pinned-row.d.ts +7 -0
- package/es/src/ag-grid/hooks/use-pinned-row.mjs +32 -0
- package/es/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
- package/es/src/ag-grid/hooks/use-virtual-config.mjs +25 -0
- package/es/src/ag-grid/index.vue.mjs +274 -232
- package/es/src/ag-grid/interface.d.ts +25 -2
- package/es/src/ap-field/select/index.vue.d.ts +51 -21
- package/es/src/ap-field/select/index.vue.mjs +51 -49
- package/es/src/ap-field/select/read.vue2.mjs +4 -1
- package/es/src/ap-field/tree-select/index.vue.d.ts +29 -21
- package/es/src/ap-field/tree-select/index.vue.mjs +11 -9
- package/es/src/ap-field/tree-select/read.vue2.mjs +7 -5
- package/es/src/ap-form/ap-form.vue.d.ts +20 -0
- package/es/src/ap-form/ap-form.vue2.mjs +11 -10
- package/es/src/ap-form/drawer-form/index.vue.d.ts +22 -0
- package/es/src/ap-form/drawer-form/index.vue.mjs +1 -0
- package/es/src/ap-form/hooks/use-watch.mjs +25 -28
- package/es/src/ap-form/interface.d.ts +1 -1
- package/es/src/ap-form/items/select/index.vue.d.ts +64 -28
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
- package/es/src/ap-form/modal-form/index.vue.d.ts +22 -0
- package/es/src/ap-form/modal-form/index.vue.mjs +31 -30
- package/es/src/ap-form/search-form/index.vue.d.ts +24 -2
- package/es/src/ap-form/search-form/index.vue.mjs +72 -68
- package/es/src/ap-table/constants.d.ts +52 -28
- package/es/src/ap-upload/apUpload.vue.d.ts +9 -0
- package/es/src/ap-upload/apUpload.vue.mjs +38 -34
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +59 -59
- package/es/src/ap-upload/components/Picture.vue2.mjs +74 -74
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +95 -95
- package/es/src/business/ap-value-select-card/index.vue2.mjs +120 -123
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
- package/es/src/business/hooks/usePageListAgGrid.d.ts +1 -1
- package/es/src/business/hooks/usePageListAgGrid.mjs +4 -4
- package/es/src/business/hooks/usePageListApGrid.mjs +14 -14
- package/es/src/config-provider/config-provider-props.d.ts +14 -1
- package/es/src/config-provider/config-provider.d.ts +31 -1
- package/es/src/config-provider/hooks/use-global-config.d.ts +14 -1
- package/es/src/config-provider/index.d.ts +52 -1
- package/es/src/utils/config-provider-preset.d.ts +11 -1
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
- package/lib/src/ag-grid/hooks/use-columns-def.d.ts +2 -2
- package/lib/src/ag-grid/hooks/use-columns-def.js +1 -1
- package/lib/src/ag-grid/hooks/use-columns.d.ts +1 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.d.ts +7 -0
- package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -0
- package/lib/src/ag-grid/hooks/use-virtual-config.d.ts +5 -0
- package/lib/src/ag-grid/hooks/use-virtual-config.js +1 -0
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +25 -2
- package/lib/src/ap-field/select/index.vue.d.ts +51 -21
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +29 -21
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-field/tree-select/read.vue2.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +20 -0
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +22 -0
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/hooks/use-watch.js +1 -1
- package/lib/src/ap-form/interface.d.ts +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +64 -28
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +40 -28
- package/lib/src/ap-form/modal-form/index.vue.d.ts +22 -0
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +24 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +52 -28
- package/lib/src/ap-upload/apUpload.vue.d.ts +9 -0
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +11 -0
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +11 -0
- package/lib/src/business/hooks/usePageListAgGrid.d.ts +1 -1
- package/lib/src/business/hooks/usePageListAgGrid.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +14 -1
- package/lib/src/config-provider/config-provider.d.ts +31 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +14 -1
- package/lib/src/config-provider/index.d.ts +52 -1
- package/lib/src/utils/config-provider-preset.d.ts +11 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +11 -0
- package/package.json +3 -3
- package/theme/ap-pro-card/index.css +5 -5
- package/theme/ap-pro-card/index.less +5 -5
- package/theme/ap-value-select-card/index.css +3 -4
- package/theme/ap-value-select-card/index.less +3 -4
- package/theme/index.css +8 -9
|
@@ -106,6 +106,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
106
106
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
107
107
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
108
108
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
109
|
+
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
109
110
|
readonly initialValues?: Recordable | undefined;
|
|
110
111
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
111
112
|
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
@@ -340,11 +341,16 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
340
341
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
341
342
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
342
343
|
};
|
|
344
|
+
variant: {
|
|
345
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
346
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
347
|
+
};
|
|
343
348
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
344
349
|
size: ButtonSize;
|
|
345
350
|
onSubmit: (e: Event) => void;
|
|
346
351
|
disabled: boolean;
|
|
347
352
|
validateTrigger: string | string[];
|
|
353
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
348
354
|
onFinish: (values: any) => void;
|
|
349
355
|
validateMessages: ValidateMessages;
|
|
350
356
|
requiredMark: "" | RequiredMark;
|
|
@@ -660,11 +666,16 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
660
666
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
661
667
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
662
668
|
};
|
|
669
|
+
variant: {
|
|
670
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
671
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
672
|
+
};
|
|
663
673
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
664
674
|
size: ButtonSize;
|
|
665
675
|
onSubmit: (e: Event) => void;
|
|
666
676
|
disabled: boolean;
|
|
667
677
|
validateTrigger: string | string[];
|
|
678
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
668
679
|
onFinish: (values: any) => void;
|
|
669
680
|
validateMessages: ValidateMessages;
|
|
670
681
|
requiredMark: "" | RequiredMark;
|
|
@@ -107,6 +107,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
107
107
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
108
108
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
109
109
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
110
|
+
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
110
111
|
readonly initialValues?: Recordable | undefined;
|
|
111
112
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
112
113
|
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
@@ -341,11 +342,16 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
341
342
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
342
343
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
343
344
|
};
|
|
345
|
+
variant: {
|
|
346
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
347
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
348
|
+
};
|
|
344
349
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
345
350
|
size: ButtonSize;
|
|
346
351
|
onSubmit: (e: Event) => void;
|
|
347
352
|
disabled: boolean;
|
|
348
353
|
validateTrigger: string | string[];
|
|
354
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
349
355
|
onFinish: (values: any) => void;
|
|
350
356
|
validateMessages: ValidateMessages;
|
|
351
357
|
requiredMark: "" | RequiredMark;
|
|
@@ -661,11 +667,16 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
661
667
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
662
668
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
663
669
|
};
|
|
670
|
+
variant: {
|
|
671
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
672
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
673
|
+
};
|
|
664
674
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
665
675
|
size: ButtonSize;
|
|
666
676
|
onSubmit: (e: Event) => void;
|
|
667
677
|
disabled: boolean;
|
|
668
678
|
validateTrigger: string | string[];
|
|
679
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
669
680
|
onFinish: (values: any) => void;
|
|
670
681
|
validateMessages: ValidateMessages;
|
|
671
682
|
requiredMark: "" | RequiredMark;
|
|
@@ -28,7 +28,7 @@ export interface UsePageListAgGrid extends AgGridProps {
|
|
|
28
28
|
* 集成了列表页面的AgGrid的默认配置
|
|
29
29
|
*/
|
|
30
30
|
export declare function usePageListAgGrid(props?: UsePageListAgGrid): [AgGridProps, {
|
|
31
|
-
reload: () => void;
|
|
31
|
+
reload: (resetCurrent?: boolean) => void;
|
|
32
32
|
reset: () => void;
|
|
33
33
|
getSearchFormValues: (transform?: boolean) => any;
|
|
34
34
|
getAgGridInstance: () => AgGridExpose | undefined;
|
|
@@ -3,7 +3,7 @@ import { merge as v, cloneDeep as A } from "lodash-unified";
|
|
|
3
3
|
import { ref as F } from "vue";
|
|
4
4
|
import { useKeepAliveFlag as R } from "./useKeepAliveFlag.mjs";
|
|
5
5
|
import { useTableRefresh as w } from "./useTableRefresh.mjs";
|
|
6
|
-
function
|
|
6
|
+
function y(a) {
|
|
7
7
|
const r = F(null), {
|
|
8
8
|
isShowRowSelection: c = !0,
|
|
9
9
|
clearSelectionOnRequest: i = !0,
|
|
@@ -21,8 +21,8 @@ function z(a) {
|
|
|
21
21
|
...V(f),
|
|
22
22
|
apTableRef: r
|
|
23
23
|
});
|
|
24
|
-
const u = () => {
|
|
25
|
-
r.value?.
|
|
24
|
+
const u = (e) => {
|
|
25
|
+
r.value?.submitWith(e);
|
|
26
26
|
}, p = () => {
|
|
27
27
|
r.value?.reset();
|
|
28
28
|
}, { isDeactivated: h } = R({
|
|
@@ -79,5 +79,5 @@ function V(a) {
|
|
|
79
79
|
} : a;
|
|
80
80
|
}
|
|
81
81
|
export {
|
|
82
|
-
|
|
82
|
+
y as usePageListAgGrid
|
|
83
83
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "../index.mjs";
|
|
2
|
-
import { merge as
|
|
2
|
+
import { merge as i, cloneDeep as F } from "lodash-unified";
|
|
3
3
|
import { ref as R } from "vue";
|
|
4
4
|
import { useKeepAliveFlag as w } from "./useKeepAliveFlag.mjs";
|
|
5
5
|
import { useTableRefresh as V } from "./useTableRefresh.mjs";
|
|
6
|
-
function
|
|
6
|
+
function W(a) {
|
|
7
7
|
const r = R(null), {
|
|
8
|
-
isShowRowSelection:
|
|
8
|
+
isShowRowSelection: c = !0,
|
|
9
9
|
clearSelectionOnRequest: f = !0,
|
|
10
10
|
transformSearchFormValues: o,
|
|
11
11
|
api: s,
|
|
12
12
|
tableRefresh: d = !0,
|
|
13
13
|
virtual: m,
|
|
14
14
|
clearDataOnDeactivated: p = !0,
|
|
15
|
-
...
|
|
15
|
+
...h
|
|
16
16
|
} = a || {};
|
|
17
17
|
let l = null;
|
|
18
18
|
const n = () => {
|
|
@@ -23,19 +23,19 @@ function E(a) {
|
|
|
23
23
|
apTableRef: r
|
|
24
24
|
});
|
|
25
25
|
const u = () => {
|
|
26
|
-
r.value?.
|
|
27
|
-
},
|
|
26
|
+
r.value?.submitWith(!0);
|
|
27
|
+
}, v = () => {
|
|
28
28
|
r.value?.reset();
|
|
29
|
-
}, { isDeactivated:
|
|
29
|
+
}, { isDeactivated: S } = w({
|
|
30
30
|
afterDeactivated: u
|
|
31
31
|
});
|
|
32
|
-
return [
|
|
32
|
+
return [i(
|
|
33
33
|
{
|
|
34
34
|
// scroll,tableLayout,columnResizable设置表格可拖动
|
|
35
35
|
scroll: { x: "100%", y: "100%" },
|
|
36
36
|
columnResizable: !0,
|
|
37
37
|
request: s ? async (e) => {
|
|
38
|
-
if (
|
|
38
|
+
if (S() && p)
|
|
39
39
|
return {
|
|
40
40
|
data: [],
|
|
41
41
|
total: 0
|
|
@@ -49,14 +49,14 @@ function E(a) {
|
|
|
49
49
|
total: A
|
|
50
50
|
};
|
|
51
51
|
} : void 0,
|
|
52
|
-
rowSelection:
|
|
52
|
+
rowSelection: c ? {
|
|
53
53
|
fixed: "left",
|
|
54
54
|
columnWidth: 38
|
|
55
55
|
} : void 0,
|
|
56
56
|
ref(e) {
|
|
57
57
|
r.value = e;
|
|
58
58
|
},
|
|
59
|
-
virtual:
|
|
59
|
+
virtual: i(
|
|
60
60
|
{
|
|
61
61
|
oSize: 20,
|
|
62
62
|
y: 20
|
|
@@ -66,10 +66,10 @@ function E(a) {
|
|
|
66
66
|
// 新UI规范,需要都添加分割线
|
|
67
67
|
card: !0
|
|
68
68
|
},
|
|
69
|
-
|
|
69
|
+
h
|
|
70
70
|
), {
|
|
71
71
|
reload: u,
|
|
72
|
-
reset:
|
|
72
|
+
reset: v,
|
|
73
73
|
getSearchFormValues: (e = !0) => {
|
|
74
74
|
const t = r.value?.getSearchFormValues(!!e) || {};
|
|
75
75
|
return o ? o(t) : t;
|
|
@@ -88,5 +88,5 @@ function b(a) {
|
|
|
88
88
|
} : a;
|
|
89
89
|
}
|
|
90
90
|
export {
|
|
91
|
-
|
|
91
|
+
W as usePageListApGrid
|
|
92
92
|
};
|
|
@@ -8,7 +8,7 @@ import { CSPConfig, SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
|
8
8
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
9
9
|
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
10
10
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
11
|
-
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
11
|
+
import { ThemeConfig, Variant } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
12
12
|
export declare const configProviderProps: () => {
|
|
13
13
|
iconPrefixCls: StringConstructor;
|
|
14
14
|
getTargetContainer: {
|
|
@@ -78,6 +78,9 @@ export declare const configProviderProps: () => {
|
|
|
78
78
|
type: BooleanConstructor;
|
|
79
79
|
default: any;
|
|
80
80
|
};
|
|
81
|
+
variant: {
|
|
82
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
83
|
+
};
|
|
81
84
|
dropdownMatchSelectWidth: {
|
|
82
85
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
83
86
|
default: boolean;
|
|
@@ -108,12 +111,22 @@ export declare const configProviderProps: () => {
|
|
|
108
111
|
};
|
|
109
112
|
select: {
|
|
110
113
|
type: PropType<{
|
|
114
|
+
variant?: Variant;
|
|
111
115
|
showSearch?: boolean;
|
|
112
116
|
}>;
|
|
113
117
|
default: {
|
|
118
|
+
variant?: Variant;
|
|
114
119
|
showSearch?: boolean;
|
|
115
120
|
};
|
|
116
121
|
};
|
|
122
|
+
cascader: {
|
|
123
|
+
type: PropType<{
|
|
124
|
+
variant?: Variant;
|
|
125
|
+
}>;
|
|
126
|
+
default: {
|
|
127
|
+
variant?: Variant;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
117
130
|
wave: {
|
|
118
131
|
type: PropType<{
|
|
119
132
|
disabled?: boolean;
|
|
@@ -6,7 +6,7 @@ import { CSPConfig, SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
|
6
6
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
7
7
|
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
8
8
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
9
|
-
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
9
|
+
import { ThemeConfig, Variant } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
10
10
|
import { LocaleType } from '../locale';
|
|
11
11
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
|
|
12
12
|
import { ViewCacheOption } from '..';
|
|
@@ -80,6 +80,9 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
80
80
|
type: BooleanConstructor;
|
|
81
81
|
default: any;
|
|
82
82
|
};
|
|
83
|
+
variant: {
|
|
84
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
85
|
+
};
|
|
83
86
|
dropdownMatchSelectWidth: {
|
|
84
87
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
85
88
|
default: boolean;
|
|
@@ -110,12 +113,22 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
110
113
|
};
|
|
111
114
|
select: {
|
|
112
115
|
type: PropType<{
|
|
116
|
+
variant?: Variant;
|
|
113
117
|
showSearch?: boolean;
|
|
114
118
|
}>;
|
|
115
119
|
default: {
|
|
120
|
+
variant?: Variant;
|
|
116
121
|
showSearch?: boolean;
|
|
117
122
|
};
|
|
118
123
|
};
|
|
124
|
+
cascader: {
|
|
125
|
+
type: PropType<{
|
|
126
|
+
variant?: Variant;
|
|
127
|
+
}>;
|
|
128
|
+
default: {
|
|
129
|
+
variant?: Variant;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
119
132
|
wave: {
|
|
120
133
|
type: PropType<{
|
|
121
134
|
disabled?: boolean;
|
|
@@ -237,6 +250,9 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
237
250
|
type: BooleanConstructor;
|
|
238
251
|
default: any;
|
|
239
252
|
};
|
|
253
|
+
variant: {
|
|
254
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
255
|
+
};
|
|
240
256
|
dropdownMatchSelectWidth: {
|
|
241
257
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
242
258
|
default: boolean;
|
|
@@ -267,12 +283,22 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
267
283
|
};
|
|
268
284
|
select: {
|
|
269
285
|
type: PropType<{
|
|
286
|
+
variant?: Variant;
|
|
270
287
|
showSearch?: boolean;
|
|
271
288
|
}>;
|
|
272
289
|
default: {
|
|
290
|
+
variant?: Variant;
|
|
273
291
|
showSearch?: boolean;
|
|
274
292
|
};
|
|
275
293
|
};
|
|
294
|
+
cascader: {
|
|
295
|
+
type: PropType<{
|
|
296
|
+
variant?: Variant;
|
|
297
|
+
}>;
|
|
298
|
+
default: {
|
|
299
|
+
variant?: Variant;
|
|
300
|
+
};
|
|
301
|
+
};
|
|
276
302
|
wave: {
|
|
277
303
|
type: PropType<{
|
|
278
304
|
disabled?: boolean;
|
|
@@ -330,6 +356,7 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
330
356
|
autocomplete?: string;
|
|
331
357
|
};
|
|
332
358
|
select: {
|
|
359
|
+
variant?: Variant;
|
|
333
360
|
showSearch?: boolean;
|
|
334
361
|
};
|
|
335
362
|
form: {
|
|
@@ -355,6 +382,9 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
355
382
|
showSizeChanger?: boolean;
|
|
356
383
|
};
|
|
357
384
|
theme: ThemeConfig;
|
|
385
|
+
cascader: {
|
|
386
|
+
variant?: Variant;
|
|
387
|
+
};
|
|
358
388
|
wave: {
|
|
359
389
|
disabled?: boolean;
|
|
360
390
|
};
|
|
@@ -7,7 +7,7 @@ import { CSPConfig, SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
|
7
7
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
8
8
|
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
9
9
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
10
|
-
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
10
|
+
import { ThemeConfig, Variant } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
11
11
|
import { LocaleType } from '../../locale';
|
|
12
12
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from '..';
|
|
13
13
|
import { ViewCacheOption } from '../..';
|
|
@@ -83,6 +83,9 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
83
83
|
type: BooleanConstructor;
|
|
84
84
|
default: any;
|
|
85
85
|
};
|
|
86
|
+
variant: {
|
|
87
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
88
|
+
};
|
|
86
89
|
dropdownMatchSelectWidth: {
|
|
87
90
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
88
91
|
default: boolean;
|
|
@@ -113,12 +116,22 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
113
116
|
};
|
|
114
117
|
select: {
|
|
115
118
|
type: PropType<{
|
|
119
|
+
variant?: Variant;
|
|
116
120
|
showSearch?: boolean;
|
|
117
121
|
}>;
|
|
118
122
|
default: {
|
|
123
|
+
variant?: Variant;
|
|
119
124
|
showSearch?: boolean;
|
|
120
125
|
};
|
|
121
126
|
};
|
|
127
|
+
cascader: {
|
|
128
|
+
type: PropType<{
|
|
129
|
+
variant?: Variant;
|
|
130
|
+
}>;
|
|
131
|
+
default: {
|
|
132
|
+
variant?: Variant;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
122
135
|
wave: {
|
|
123
136
|
type: PropType<{
|
|
124
137
|
disabled?: boolean;
|
|
@@ -5,7 +5,7 @@ import { CSPConfig, SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
|
5
5
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
6
6
|
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
|
-
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
8
|
+
import { ThemeConfig, Variant } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
9
9
|
import { LocaleType } from '../locale';
|
|
10
10
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField, SearchFormGlobalConfig } from './constants';
|
|
11
11
|
import { ViewCacheOption } from '..';
|
|
@@ -85,6 +85,9 @@ export declare const APConfigProvider: {
|
|
|
85
85
|
type: BooleanConstructor;
|
|
86
86
|
default: any;
|
|
87
87
|
};
|
|
88
|
+
variant: {
|
|
89
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
90
|
+
};
|
|
88
91
|
dropdownMatchSelectWidth: {
|
|
89
92
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
90
93
|
default: boolean;
|
|
@@ -115,12 +118,22 @@ export declare const APConfigProvider: {
|
|
|
115
118
|
};
|
|
116
119
|
select: {
|
|
117
120
|
type: PropType<{
|
|
121
|
+
variant?: Variant;
|
|
118
122
|
showSearch?: boolean;
|
|
119
123
|
}>;
|
|
120
124
|
default: {
|
|
125
|
+
variant?: Variant;
|
|
121
126
|
showSearch?: boolean;
|
|
122
127
|
};
|
|
123
128
|
};
|
|
129
|
+
cascader: {
|
|
130
|
+
type: PropType<{
|
|
131
|
+
variant?: Variant;
|
|
132
|
+
}>;
|
|
133
|
+
default: {
|
|
134
|
+
variant?: Variant;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
124
137
|
wave: {
|
|
125
138
|
type: PropType<{
|
|
126
139
|
disabled?: boolean;
|
|
@@ -178,6 +191,7 @@ export declare const APConfigProvider: {
|
|
|
178
191
|
autocomplete?: string;
|
|
179
192
|
};
|
|
180
193
|
select: {
|
|
194
|
+
variant?: Variant;
|
|
181
195
|
showSearch?: boolean;
|
|
182
196
|
};
|
|
183
197
|
form: {
|
|
@@ -203,6 +217,9 @@ export declare const APConfigProvider: {
|
|
|
203
217
|
showSizeChanger?: boolean;
|
|
204
218
|
};
|
|
205
219
|
theme: ThemeConfig;
|
|
220
|
+
cascader: {
|
|
221
|
+
variant?: Variant;
|
|
222
|
+
};
|
|
206
223
|
wave: {
|
|
207
224
|
disabled?: boolean;
|
|
208
225
|
};
|
|
@@ -289,6 +306,9 @@ export declare const APConfigProvider: {
|
|
|
289
306
|
type: BooleanConstructor;
|
|
290
307
|
default: any;
|
|
291
308
|
};
|
|
309
|
+
variant: {
|
|
310
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
311
|
+
};
|
|
292
312
|
dropdownMatchSelectWidth: {
|
|
293
313
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
294
314
|
default: boolean;
|
|
@@ -319,12 +339,22 @@ export declare const APConfigProvider: {
|
|
|
319
339
|
};
|
|
320
340
|
select: {
|
|
321
341
|
type: PropType<{
|
|
342
|
+
variant?: Variant;
|
|
322
343
|
showSearch?: boolean;
|
|
323
344
|
}>;
|
|
324
345
|
default: {
|
|
346
|
+
variant?: Variant;
|
|
325
347
|
showSearch?: boolean;
|
|
326
348
|
};
|
|
327
349
|
};
|
|
350
|
+
cascader: {
|
|
351
|
+
type: PropType<{
|
|
352
|
+
variant?: Variant;
|
|
353
|
+
}>;
|
|
354
|
+
default: {
|
|
355
|
+
variant?: Variant;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
328
358
|
wave: {
|
|
329
359
|
type: PropType<{
|
|
330
360
|
disabled?: boolean;
|
|
@@ -382,6 +412,7 @@ export declare const APConfigProvider: {
|
|
|
382
412
|
autocomplete?: string;
|
|
383
413
|
};
|
|
384
414
|
select: {
|
|
415
|
+
variant?: Variant;
|
|
385
416
|
showSearch?: boolean;
|
|
386
417
|
};
|
|
387
418
|
form: {
|
|
@@ -407,6 +438,9 @@ export declare const APConfigProvider: {
|
|
|
407
438
|
showSizeChanger?: boolean;
|
|
408
439
|
};
|
|
409
440
|
theme: ThemeConfig;
|
|
441
|
+
cascader: {
|
|
442
|
+
variant?: Variant;
|
|
443
|
+
};
|
|
410
444
|
wave: {
|
|
411
445
|
disabled?: boolean;
|
|
412
446
|
};
|
|
@@ -490,6 +524,9 @@ export declare const APConfigProvider: {
|
|
|
490
524
|
type: BooleanConstructor;
|
|
491
525
|
default: any;
|
|
492
526
|
};
|
|
527
|
+
variant: {
|
|
528
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
529
|
+
};
|
|
493
530
|
dropdownMatchSelectWidth: {
|
|
494
531
|
type: (BooleanConstructor | NumberConstructor)[];
|
|
495
532
|
default: boolean;
|
|
@@ -520,12 +557,22 @@ export declare const APConfigProvider: {
|
|
|
520
557
|
};
|
|
521
558
|
select: {
|
|
522
559
|
type: PropType<{
|
|
560
|
+
variant?: Variant;
|
|
523
561
|
showSearch?: boolean;
|
|
524
562
|
}>;
|
|
525
563
|
default: {
|
|
564
|
+
variant?: Variant;
|
|
526
565
|
showSearch?: boolean;
|
|
527
566
|
};
|
|
528
567
|
};
|
|
568
|
+
cascader: {
|
|
569
|
+
type: PropType<{
|
|
570
|
+
variant?: Variant;
|
|
571
|
+
}>;
|
|
572
|
+
default: {
|
|
573
|
+
variant?: Variant;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
529
576
|
wave: {
|
|
530
577
|
type: PropType<{
|
|
531
578
|
disabled?: boolean;
|
|
@@ -583,6 +630,7 @@ export declare const APConfigProvider: {
|
|
|
583
630
|
autocomplete?: string;
|
|
584
631
|
};
|
|
585
632
|
select: {
|
|
633
|
+
variant?: Variant;
|
|
586
634
|
showSearch?: boolean;
|
|
587
635
|
};
|
|
588
636
|
form: {
|
|
@@ -608,6 +656,9 @@ export declare const APConfigProvider: {
|
|
|
608
656
|
showSizeChanger?: boolean;
|
|
609
657
|
};
|
|
610
658
|
theme: ThemeConfig;
|
|
659
|
+
cascader: {
|
|
660
|
+
variant?: Variant;
|
|
661
|
+
};
|
|
611
662
|
wave: {
|
|
612
663
|
disabled?: boolean;
|
|
613
664
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/lib/table/interface';
|
|
2
2
|
import { ConfigProviderProps } from '@aplus-frontend/antdv';
|
|
3
|
+
import { Variant, ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
3
4
|
import { ValidateMessages } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
5
6
|
import { SizeType, CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
6
7
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
7
|
-
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
8
8
|
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
9
9
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
10
10
|
/**
|
|
@@ -39,6 +39,7 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
|
|
|
39
39
|
autocomplete?: string;
|
|
40
40
|
} | undefined;
|
|
41
41
|
select?: {
|
|
42
|
+
variant?: Variant;
|
|
42
43
|
showSearch?: boolean;
|
|
43
44
|
} | undefined;
|
|
44
45
|
form?: {
|
|
@@ -60,10 +61,14 @@ export declare function mergeAntdProvideConfig(config: ConfigProviderProps): {
|
|
|
60
61
|
showSizeChanger?: boolean;
|
|
61
62
|
} | undefined;
|
|
62
63
|
theme?: ThemeConfig | undefined;
|
|
64
|
+
cascader?: {
|
|
65
|
+
variant?: Variant;
|
|
66
|
+
} | undefined;
|
|
63
67
|
wave?: {
|
|
64
68
|
disabled?: boolean;
|
|
65
69
|
} | undefined;
|
|
66
70
|
prefixCls?: string | undefined;
|
|
71
|
+
variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
67
72
|
getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
|
|
68
73
|
iconPrefixCls?: string | undefined;
|
|
69
74
|
getTargetContainer?: (() => HTMLElement | Window) | undefined;
|
|
@@ -80,6 +85,7 @@ export declare function mergeAntdProviderConfigWithCache(newConfig: ConfigProvid
|
|
|
80
85
|
autocomplete?: string;
|
|
81
86
|
} | undefined;
|
|
82
87
|
select?: {
|
|
88
|
+
variant?: Variant;
|
|
83
89
|
showSearch?: boolean;
|
|
84
90
|
} | undefined;
|
|
85
91
|
form?: {
|
|
@@ -101,10 +107,14 @@ export declare function mergeAntdProviderConfigWithCache(newConfig: ConfigProvid
|
|
|
101
107
|
showSizeChanger?: boolean;
|
|
102
108
|
} | undefined;
|
|
103
109
|
theme?: ThemeConfig | undefined;
|
|
110
|
+
cascader?: {
|
|
111
|
+
variant?: Variant;
|
|
112
|
+
} | undefined;
|
|
104
113
|
wave?: {
|
|
105
114
|
disabled?: boolean;
|
|
106
115
|
} | undefined;
|
|
107
116
|
prefixCls?: string | undefined;
|
|
117
|
+
variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
108
118
|
getPopupContainer?: ((triggerNode?: HTMLElement) => HTMLElement) | undefined;
|
|
109
119
|
iconPrefixCls?: string | undefined;
|
|
110
120
|
getTargetContainer?: (() => HTMLElement | Window) | undefined;
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "6.
|
|
1
|
+
declare const _default: "6.27.0";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -110,6 +110,7 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
110
110
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
111
111
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
112
112
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
113
|
+
readonly variant?: "filled" | "outlined" | "borderless" | "underlined" | undefined;
|
|
113
114
|
readonly initialValues?: Recordable | undefined;
|
|
114
115
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
115
116
|
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
@@ -344,11 +345,16 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
344
345
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
345
346
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
346
347
|
};
|
|
348
|
+
variant: {
|
|
349
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
350
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
351
|
+
};
|
|
347
352
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
348
353
|
size: ButtonSize;
|
|
349
354
|
onSubmit: (e: Event) => void;
|
|
350
355
|
disabled: boolean;
|
|
351
356
|
validateTrigger: string | string[];
|
|
357
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
352
358
|
onFinish: (values: any) => void;
|
|
353
359
|
validateMessages: ValidateMessages;
|
|
354
360
|
requiredMark: "" | RequiredMark;
|
|
@@ -664,11 +670,16 @@ declare const _default: DefineComponent<WorkOrderModalProps, {}, {}, {}, {}, Com
|
|
|
664
670
|
type: PropType<(name: string | number | string[] | number[], status: boolean, errors: string[]) => void>;
|
|
665
671
|
default: (name: string | number | string[] | number[], status: boolean, errors: string[]) => void;
|
|
666
672
|
};
|
|
673
|
+
variant: {
|
|
674
|
+
type: PropType<"filled" | "outlined" | "borderless" | "underlined">;
|
|
675
|
+
default: "filled" | "outlined" | "borderless" | "underlined";
|
|
676
|
+
};
|
|
667
677
|
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
668
678
|
size: ButtonSize;
|
|
669
679
|
onSubmit: (e: Event) => void;
|
|
670
680
|
disabled: boolean;
|
|
671
681
|
validateTrigger: string | string[];
|
|
682
|
+
variant: "filled" | "outlined" | "borderless" | "underlined";
|
|
672
683
|
onFinish: (values: any) => void;
|
|
673
684
|
validateMessages: ValidateMessages;
|
|
674
685
|
requiredMark: "" | RequiredMark;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ColDef, ColGroupDef } from 'ag-grid-community';
|
|
1
|
+
import { CellClassFunc, ColDef, ColGroupDef } from 'ag-grid-community';
|
|
2
2
|
import { AgGridColumnType, AgGridProps } from '../interface';
|
|
3
3
|
import { Ref, ComputedRef } from 'vue';
|
|
4
4
|
/**
|
|
@@ -7,7 +7,7 @@ import { Ref, ComputedRef } from 'vue';
|
|
|
7
7
|
* @param props
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
export declare const useColumnsDef: <RecordType>(
|
|
10
|
+
export declare const useColumnsDef: <RecordType>(columns: Ref<AgGridColumnType<RecordType>[]>, props: AgGridProps<RecordType>, customCellClass: (callback: CellClassFunc) => CellClassFunc) => {
|
|
11
11
|
columnDefs: ComputedRef<(ColDef<any, any> | ColGroupDef<any>)[]>;
|
|
12
12
|
defaultColDef: ComputedRef<ColDef<any, any>>;
|
|
13
13
|
};
|