@aplus-frontend/ui 6.26.3 → 6.26.5
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-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 +225 -206
- package/es/src/ag-grid/interface.d.ts +22 -1
- package/es/src/ag-grid/theme.mjs +4 -3
- 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 +28 -2
- package/es/src/ap-form/ap-form.vue2.mjs +8 -7
- 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/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-modal/interface.d.ts +10 -3
- package/es/src/ap-modal/utils/createModalStream.mjs +67 -58
- package/es/src/ap-table/constants.d.ts +52 -28
- package/es/src/business/ap-value-select-card/index.vue2.mjs +81 -90
- 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/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-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 +22 -1
- package/lib/src/ag-grid/theme.js +1 -1
- 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 +28 -2
- 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/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-modal/interface.d.ts +10 -3
- package/lib/src/ap-modal/utils/createModalStream.js +1 -1
- package/lib/src/ap-table/constants.d.ts +52 -28
- 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/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/ag-grid/index.css +5 -0
- package/theme/ag-grid/index.less +12 -0
- 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 +1 -1
- package/theme/ap-value-select-card/index.less +2 -1
- package/theme/index.css +11 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popover as
|
|
3
|
-
import { PlusOutlined as
|
|
4
|
-
import { IconApAdLinePoor as
|
|
1
|
+
import { defineComponent as L, ref as T, computed as A, resolveComponent as _, createElementBlock as c, openBlock as a, normalizeStyle as V, normalizeClass as d, unref as s, createVNode as b, withCtx as F, createElementVNode as u, createCommentVNode as y, Fragment as N, renderList as R, withModifiers as f, renderSlot as h, createTextVNode as p, toDisplayString as g, createBlock as j } from "vue";
|
|
2
|
+
import { Popover as G } from "@aplus-frontend/antdv";
|
|
3
|
+
import { PlusOutlined as q } from "@ant-design/icons-vue";
|
|
4
|
+
import { IconApAdLinePoor as J } from "@aplus-frontend/icon";
|
|
5
5
|
import "../../config-provider/index.mjs";
|
|
6
|
-
import { useNamespace as
|
|
7
|
-
import { useGlobalConfig as
|
|
8
|
-
const
|
|
6
|
+
import { useNamespace as Q } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { useGlobalConfig as U } from "../../config-provider/hooks/use-global-config.mjs";
|
|
8
|
+
const W = ["onClick"], X = { class: "label" }, Y = { class: "value" }, Z = ["onClick"], x = ["onClick"], ee = { class: "label" }, te = { class: "value" }, le = { class: "text" }, ce = /* @__PURE__ */ L({
|
|
9
9
|
name: "ApValueSelectCard",
|
|
10
10
|
__name: "index",
|
|
11
11
|
props: {
|
|
@@ -19,171 +19,162 @@ const Y = ["onClick"], Z = { class: "label" }, x = { class: "value" }, ee = ["on
|
|
|
19
19
|
showCloseIcon: { type: Boolean, default: !0 },
|
|
20
20
|
showAddButton: { type: Boolean, default: !0 },
|
|
21
21
|
addButtonText: { default: "" },
|
|
22
|
-
getContainer: { type: Function, default: (
|
|
22
|
+
getContainer: { type: Function, default: (v) => v.parentElement || document.body },
|
|
23
23
|
getCardStyle: { type: Function, default: () => ({}) },
|
|
24
24
|
wrapperStyle: { type: [Boolean, null, String, Object, Array] }
|
|
25
25
|
},
|
|
26
26
|
emits: ["update:selectedKeys", "update:highlightedKeys", "change", "select", "remove", "highlight"],
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
27
|
+
setup(v, { expose: H, emit: D }) {
|
|
28
|
+
const i = D, l = v, { b: n, m: E } = Q("ap-value-select-card"), M = U("uiMode", "aplus"), P = T(null), m = T(!1), K = A(() => l.options), C = A(() => K.value.filter(
|
|
29
29
|
(e) => l.selectedKeys.includes(e.key)
|
|
30
|
-
)),
|
|
31
|
-
l.selectedKeys.includes(e) ? k(e) :
|
|
32
|
-
},
|
|
30
|
+
)), B = (e) => l.selectedKeys.includes(e), S = (e) => l.highlightedKeys.includes(e), $ = (e) => {
|
|
31
|
+
l.selectedKeys.includes(e) ? k(e) : I(e);
|
|
32
|
+
}, I = (e) => {
|
|
33
33
|
if (l.maxSelected && l.selectedKeys.length >= l.maxSelected)
|
|
34
34
|
return;
|
|
35
|
-
const
|
|
36
|
-
|
|
35
|
+
const o = [...l.selectedKeys, e];
|
|
36
|
+
i("update:selectedKeys", o), i("change", o), i("select", e), l.highlightedKeys.includes(e) || w(e);
|
|
37
37
|
}, k = (e) => {
|
|
38
38
|
if (l.selectedKeys.length <= 1 || l.highlightedKeys.length <= 1 && l.highlightedKeys.includes(e))
|
|
39
39
|
return;
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
40
|
+
const o = l.selectedKeys.filter((r) => r !== e);
|
|
41
|
+
if (i("update:selectedKeys", o), i("change", o), i("remove", e), l.highlightedKeys.includes(e)) {
|
|
42
42
|
const r = l.highlightedKeys.filter((t) => t !== e);
|
|
43
|
-
|
|
43
|
+
i("update:highlightedKeys", r), i("highlight", r);
|
|
44
44
|
}
|
|
45
|
-
},
|
|
46
|
-
let
|
|
45
|
+
}, w = (e) => {
|
|
46
|
+
let o;
|
|
47
47
|
if (l.highlightedKeys.includes(e))
|
|
48
48
|
if (l.highlightedKeys.length > 1)
|
|
49
|
-
|
|
49
|
+
o = l.highlightedKeys.filter((r) => r !== e);
|
|
50
50
|
else
|
|
51
51
|
return;
|
|
52
52
|
else
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
e || (
|
|
53
|
+
o = [...l.highlightedKeys, e];
|
|
54
|
+
i("update:highlightedKeys", o), i("highlight", o);
|
|
55
|
+
}, z = (e) => {
|
|
56
|
+
e || (m.value = e);
|
|
57
57
|
};
|
|
58
|
-
return
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
allOptions: f,
|
|
67
|
-
selectedOptions: S,
|
|
68
|
-
isSelected: T,
|
|
69
|
-
isHighlighted: w,
|
|
70
|
-
toggleOption: H,
|
|
71
|
-
addOption: A,
|
|
58
|
+
return H({
|
|
59
|
+
popoverVisible: m,
|
|
60
|
+
allOptions: K,
|
|
61
|
+
selectedOptions: C,
|
|
62
|
+
isSelected: B,
|
|
63
|
+
isHighlighted: S,
|
|
64
|
+
toggleOption: $,
|
|
65
|
+
addOption: I,
|
|
72
66
|
removeOption: k,
|
|
73
|
-
highlightOption:
|
|
74
|
-
}), (e,
|
|
75
|
-
const r =
|
|
76
|
-
return
|
|
77
|
-
class:
|
|
78
|
-
style:
|
|
67
|
+
highlightOption: w
|
|
68
|
+
}), (e, o) => {
|
|
69
|
+
const r = _("InfoCircleFilled");
|
|
70
|
+
return a(), c("div", {
|
|
71
|
+
class: d([s(n)(), `${s(E)(s(M))}`]),
|
|
72
|
+
style: V({
|
|
79
73
|
...e.wrapperStyle,
|
|
80
74
|
"--ap-value-select-card-column-count": e.maxRowDisplay
|
|
81
75
|
})
|
|
82
76
|
}, [
|
|
83
|
-
|
|
84
|
-
open:
|
|
77
|
+
b(s(G), {
|
|
78
|
+
open: m.value,
|
|
85
79
|
trigger: "click",
|
|
86
80
|
placement: "bottomRight",
|
|
87
81
|
arrow: !1,
|
|
88
82
|
"get-popup-container": e.getContainer,
|
|
89
|
-
onOpenChange:
|
|
83
|
+
onOpenChange: z
|
|
90
84
|
}, {
|
|
91
|
-
content:
|
|
85
|
+
content: F(() => [
|
|
92
86
|
u("div", {
|
|
93
|
-
class:
|
|
87
|
+
class: d(s(n)("popover"))
|
|
94
88
|
}, [
|
|
95
|
-
e.popoverTitle ? (
|
|
89
|
+
e.popoverTitle ? (a(), c("div", {
|
|
96
90
|
key: 0,
|
|
97
|
-
class:
|
|
91
|
+
class: d(s(n)("title"))
|
|
98
92
|
}, [
|
|
99
|
-
e.showTitleIcon ? (
|
|
93
|
+
e.showTitleIcon ? (a(), j(r, {
|
|
100
94
|
key: 0,
|
|
101
|
-
class:
|
|
102
|
-
}, null, 8, ["class"])) :
|
|
95
|
+
class: d(s(n)("title-icon"))
|
|
96
|
+
}, null, 8, ["class"])) : y("", !0),
|
|
103
97
|
p(" " + g(e.popoverTitle), 1)
|
|
104
|
-
], 2)) :
|
|
98
|
+
], 2)) : y("", !0),
|
|
105
99
|
u("div", {
|
|
106
|
-
class:
|
|
100
|
+
class: d(s(n)("list"))
|
|
107
101
|
}, [
|
|
108
|
-
(
|
|
102
|
+
(a(!0), c(N, null, R(K.value, (t) => (a(), c("div", {
|
|
109
103
|
key: t.key,
|
|
110
|
-
class:
|
|
104
|
+
class: d([
|
|
111
105
|
s(n)("list-item"),
|
|
112
106
|
"all",
|
|
113
107
|
{
|
|
114
|
-
select:
|
|
108
|
+
select: B(t.key),
|
|
115
109
|
disabled: e.maxSelected && e.selectedKeys.length >= e.maxSelected
|
|
116
110
|
}
|
|
117
111
|
]),
|
|
118
|
-
onClick:
|
|
112
|
+
onClick: f((O) => $(t.key), ["stop"])
|
|
119
113
|
}, [
|
|
120
|
-
u("div",
|
|
114
|
+
u("div", X, [
|
|
121
115
|
h(e.$slots, "popover-label", { option: t }, () => [
|
|
122
116
|
p(g(t.label), 1)
|
|
123
117
|
])
|
|
124
118
|
]),
|
|
125
|
-
u("div",
|
|
119
|
+
u("div", Y, [
|
|
126
120
|
h(e.$slots, "popover-value", { option: t }, () => [
|
|
127
121
|
p(g(t.value), 1)
|
|
128
122
|
])
|
|
129
123
|
])
|
|
130
|
-
], 10,
|
|
124
|
+
], 10, W))), 128))
|
|
131
125
|
], 2)
|
|
132
126
|
], 2)
|
|
133
127
|
]),
|
|
134
|
-
default:
|
|
128
|
+
default: F(() => [
|
|
135
129
|
u("div", {
|
|
136
|
-
class:
|
|
130
|
+
class: d(s(n)("list"))
|
|
137
131
|
}, [
|
|
138
|
-
(
|
|
132
|
+
(a(!0), c(N, null, R(C.value, (t) => (a(), c("div", {
|
|
139
133
|
key: t.key,
|
|
140
134
|
ref_for: !0,
|
|
141
135
|
ref_key: "listItemRef",
|
|
142
|
-
ref:
|
|
143
|
-
class:
|
|
136
|
+
ref: P,
|
|
137
|
+
class: d([
|
|
144
138
|
s(n)("list-item"),
|
|
145
139
|
{
|
|
146
|
-
select:
|
|
140
|
+
select: S(t.key),
|
|
147
141
|
custom: t.customClass
|
|
148
142
|
},
|
|
149
143
|
t.customClass
|
|
150
144
|
]),
|
|
151
|
-
style:
|
|
152
|
-
onClick:
|
|
145
|
+
style: V(e.getCardStyle(t.key)),
|
|
146
|
+
onClick: f((O) => w(t.key), ["stop"])
|
|
153
147
|
}, [
|
|
154
|
-
e.showCloseIcon && (!(e.highlightedKeys.length === 1 &&
|
|
148
|
+
e.showCloseIcon && (!(e.highlightedKeys.length === 1 && S(t.key)) && C.value.length > 1) ? (a(), c("div", {
|
|
155
149
|
key: 0,
|
|
156
|
-
class:
|
|
157
|
-
onClick:
|
|
150
|
+
class: d(s(n)("list-item-close")),
|
|
151
|
+
onClick: f((O) => k(t.key), ["stop"])
|
|
158
152
|
}, [
|
|
159
153
|
h(e.$slots, "close-icon", {}, () => [
|
|
160
|
-
|
|
154
|
+
b(s(J))
|
|
161
155
|
])
|
|
162
|
-
], 10,
|
|
163
|
-
u("div",
|
|
156
|
+
], 10, x)) : y("", !0),
|
|
157
|
+
u("div", ee, [
|
|
164
158
|
h(e.$slots, "label", { option: t }, () => [
|
|
165
159
|
p(g(t.label), 1)
|
|
166
160
|
])
|
|
167
161
|
]),
|
|
168
|
-
u("div",
|
|
162
|
+
u("div", te, [
|
|
169
163
|
h(e.$slots, "value", { option: t }, () => [
|
|
170
164
|
p(g(t.value), 1)
|
|
171
165
|
])
|
|
172
166
|
])
|
|
173
|
-
], 14,
|
|
174
|
-
e.showAddButton && (!e.maxSelected || e.selectedKeys.length < e.maxSelected) ? (
|
|
167
|
+
], 14, Z))), 128)),
|
|
168
|
+
e.showAddButton && (!e.maxSelected || e.selectedKeys.length < e.maxSelected) ? (a(), c("div", {
|
|
175
169
|
key: 0,
|
|
176
|
-
class:
|
|
177
|
-
|
|
178
|
-
minHeight: `${O.value}px`
|
|
179
|
-
}),
|
|
180
|
-
onClick: i[0] || (i[0] = K((t) => y.value = !0, ["stop"]))
|
|
170
|
+
class: d([s(n)("list-item"), "choose"]),
|
|
171
|
+
onClick: o[0] || (o[0] = f((t) => m.value = !0, ["stop"]))
|
|
181
172
|
}, [
|
|
182
173
|
h(e.$slots, "add-button", {}, () => [
|
|
183
|
-
|
|
184
|
-
u("span",
|
|
174
|
+
b(s(q)),
|
|
175
|
+
u("span", le, g(e.addButtonText), 1)
|
|
185
176
|
])
|
|
186
|
-
],
|
|
177
|
+
], 2)) : y("", !0)
|
|
187
178
|
], 2)
|
|
188
179
|
]),
|
|
189
180
|
_: 3
|
|
@@ -193,5 +184,5 @@ const Y = ["onClick"], Z = { class: "label" }, x = { class: "value" }, ee = ["on
|
|
|
193
184
|
}
|
|
194
185
|
});
|
|
195
186
|
export {
|
|
196
|
-
|
|
187
|
+
ce as default
|
|
197
188
|
};
|
|
@@ -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;
|
|
@@ -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;
|