@aplus-frontend/ui 0.0.11 → 0.0.13
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/index.mjs +166 -158
- package/es/src/ap-action/item/index.vue2.mjs +21 -20
- package/es/src/ap-action/style/item.css +20 -5
- package/es/src/ap-form/ap-form.vue2.mjs +42 -42
- package/es/src/ap-form/modal-form/index.vue.mjs +104 -104
- package/es/src/ap-form/style/modal-form.css +5 -1
- package/es/src/ap-table/ap-table.vue.d.ts +5 -1
- package/es/src/business/index.d.ts +126 -0
- package/es/src/business/index.mjs +8 -0
- package/es/src/business/title/ApTitle.vue.d.ts +45 -0
- package/es/src/business/title/ApTitle.vue.mjs +50 -0
- package/es/src/business/title/ApTitle.vue2.mjs +4 -0
- package/es/src/business/title/interface.d.ts +21 -0
- package/es/src/business/title/style.css +39 -0
- package/es/src/components.d.ts +1 -0
- package/es/src/editable-table/form-item.vue.d.ts +304 -0
- package/es/src/editable-table/form-item.vue.mjs +189 -0
- package/es/src/editable-table/form-item.vue2.mjs +4 -0
- package/es/src/editable-table/hooks/use-get-columns.d.ts +5 -0
- package/es/src/editable-table/hooks/use-get-columns.mjs +76 -0
- package/es/src/editable-table/index.d.ts +5 -0
- package/es/src/editable-table/index.mjs +3 -0
- package/es/src/editable-table/index.vue.d.ts +196 -0
- package/es/src/editable-table/index.vue.mjs +209 -0
- package/es/src/editable-table/index.vue2.mjs +4 -0
- package/es/src/editable-table/interface.d.ts +72 -5
- package/es/src/editable-table/interface.mjs +1 -0
- package/es/src/editable-table/style/index.css +40 -1
- package/es/src/editable-table/utils.mjs +10 -0
- package/es/src/index.d.ts +2 -0
- package/es/src/index.mjs +229 -220
- package/es/src/pro-form/components/form-action.vue2.mjs +8 -8
- package/es/src/theme/antd-global-overwrite/admin/index.css +8 -0
- package/es/src/theme/antd-global-overwrite/admin/table.css +8 -0
- package/es/src/theme/ap-action/item.css +20 -5
- package/es/src/theme/ap-form/modal-form.css +5 -1
- package/es/src/theme/ap-title/ap-title.css +39 -0
- package/es/src/theme/editable-table/index.css +40 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/style/item.css +20 -5
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/modal-form.css +5 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +5 -1
- package/lib/src/business/index.d.ts +126 -0
- package/lib/src/business/index.js +1 -0
- package/lib/src/business/title/ApTitle.vue.d.ts +45 -0
- package/lib/src/business/title/ApTitle.vue.js +1 -0
- package/lib/src/business/title/ApTitle.vue2.js +1 -0
- package/lib/src/business/title/interface.d.ts +21 -0
- package/lib/src/business/title/style.css +39 -0
- package/lib/src/components.d.ts +1 -0
- package/lib/src/editable-table/form-item.vue.d.ts +304 -0
- package/lib/src/editable-table/form-item.vue.js +1 -0
- package/lib/src/editable-table/form-item.vue2.js +1 -0
- package/lib/src/editable-table/hooks/use-get-columns.d.ts +5 -0
- package/lib/src/editable-table/hooks/use-get-columns.js +1 -0
- package/lib/src/editable-table/index.d.ts +5 -0
- package/lib/src/editable-table/index.js +1 -0
- package/lib/src/editable-table/index.vue.d.ts +196 -0
- package/lib/src/editable-table/index.vue.js +1 -0
- package/lib/src/editable-table/index.vue2.js +1 -0
- package/lib/src/editable-table/interface.d.ts +72 -5
- package/lib/src/editable-table/interface.js +1 -0
- package/lib/src/editable-table/style/index.css +40 -1
- package/lib/src/editable-table/utils.js +1 -0
- package/lib/src/index.d.ts +2 -0
- package/lib/src/index.js +1 -1
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/index.css +8 -0
- package/lib/src/theme/antd-global-overwrite/admin/table.css +8 -0
- package/lib/src/theme/ap-action/item.css +20 -5
- package/lib/src/theme/ap-form/modal-form.css +5 -1
- package/lib/src/theme/ap-title/ap-title.css +39 -0
- package/lib/src/theme/editable-table/index.css +40 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Form as
|
|
3
|
-
import { useProvideForm as
|
|
4
|
-
import { isArray as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as R, ref as k, reactive as x, toRaw as M, computed as T, openBlock as w, createBlock as W, unref as y, mergeProps as q, withCtx as z, renderSlot as A } from "vue";
|
|
2
|
+
import { Form as E } from "ant-design-vue";
|
|
3
|
+
import { useProvideForm as O } from "./context.mjs";
|
|
4
|
+
import { isArray as C, omit as P } from "lodash-unified";
|
|
5
|
+
const N = /* @__PURE__ */ R({
|
|
6
6
|
__name: "ap-form",
|
|
7
7
|
props: {
|
|
8
8
|
layout: { default: "horizontal" },
|
|
@@ -30,32 +30,32 @@ const I = /* @__PURE__ */ b({
|
|
|
30
30
|
onValidate: {},
|
|
31
31
|
initialValues: {}
|
|
32
32
|
},
|
|
33
|
-
setup(
|
|
34
|
-
const r =
|
|
35
|
-
function
|
|
33
|
+
setup(B, { expose: _ }) {
|
|
34
|
+
const r = B;
|
|
35
|
+
function b(e, t) {
|
|
36
36
|
var V;
|
|
37
|
-
if (
|
|
38
|
-
let
|
|
39
|
-
for (let
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
if (C(e)) {
|
|
38
|
+
let n = o;
|
|
39
|
+
for (let u = 0; u < e.length - 1; u++)
|
|
40
|
+
n = n[e[u]];
|
|
41
|
+
n[e[e.length - 1]] = t;
|
|
42
42
|
} else
|
|
43
43
|
o[e] = t;
|
|
44
|
-
let l =
|
|
44
|
+
let l = C(e) ? e[0] : e;
|
|
45
45
|
(V = r.onValuesChange) == null || V.call(r, { [l]: o[l] }, o), s();
|
|
46
46
|
}
|
|
47
47
|
const a = k(), o = x(r.initialValues || {});
|
|
48
48
|
let i = [];
|
|
49
|
-
const
|
|
49
|
+
const d = (e) => {
|
|
50
50
|
var t;
|
|
51
51
|
(t = a.value) == null || t.resetFields(e), s();
|
|
52
|
-
},
|
|
52
|
+
}, f = (e) => {
|
|
53
53
|
var t;
|
|
54
54
|
(t = a.value) == null || t.clearValidate(e);
|
|
55
|
-
},
|
|
55
|
+
}, c = (e, t) => {
|
|
56
56
|
var l;
|
|
57
57
|
return (l = a.value) == null ? void 0 : l.validateFields(e, t);
|
|
58
|
-
},
|
|
58
|
+
}, p = (e) => {
|
|
59
59
|
var t;
|
|
60
60
|
return (t = a.value) == null ? void 0 : t.getFieldsValue(e);
|
|
61
61
|
}, h = (e, t) => {
|
|
@@ -64,9 +64,9 @@ const I = /* @__PURE__ */ b({
|
|
|
64
64
|
}, g = (e, t = {}) => {
|
|
65
65
|
var l;
|
|
66
66
|
(l = a.value) == null || l.scrollToField(e, t);
|
|
67
|
-
},
|
|
67
|
+
}, m = (e) => {
|
|
68
68
|
Object.assign(o, e), s();
|
|
69
|
-
},
|
|
69
|
+
}, F = (e, t) => {
|
|
70
70
|
o[e] = t, s();
|
|
71
71
|
};
|
|
72
72
|
function v(e) {
|
|
@@ -76,47 +76,47 @@ const I = /* @__PURE__ */ b({
|
|
|
76
76
|
}
|
|
77
77
|
function s() {
|
|
78
78
|
if (i.length) {
|
|
79
|
-
const e =
|
|
79
|
+
const e = M(o);
|
|
80
80
|
i.forEach((t) => {
|
|
81
81
|
t(e);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
return
|
|
86
|
-
model:
|
|
87
|
-
updateModel:
|
|
85
|
+
return O({
|
|
86
|
+
model: T(() => o),
|
|
87
|
+
updateModel: b,
|
|
88
88
|
formInstance: {
|
|
89
|
-
resetFields:
|
|
90
|
-
clearValidate:
|
|
91
|
-
validateFields:
|
|
92
|
-
getFieldsValue:
|
|
89
|
+
resetFields: d,
|
|
90
|
+
clearValidate: f,
|
|
91
|
+
validateFields: c,
|
|
92
|
+
getFieldsValue: p,
|
|
93
93
|
validate: h,
|
|
94
94
|
scrollToField: g,
|
|
95
|
-
setFieldsValue:
|
|
96
|
-
setFieldValue:
|
|
95
|
+
setFieldsValue: m,
|
|
96
|
+
setFieldValue: F,
|
|
97
97
|
registerWatch: v
|
|
98
98
|
}
|
|
99
|
-
}),
|
|
100
|
-
resetFields:
|
|
101
|
-
clearValidate:
|
|
102
|
-
validateFields:
|
|
103
|
-
getFieldsValue:
|
|
99
|
+
}), _({
|
|
100
|
+
resetFields: d,
|
|
101
|
+
clearValidate: f,
|
|
102
|
+
validateFields: c,
|
|
103
|
+
getFieldsValue: p,
|
|
104
104
|
validate: h,
|
|
105
105
|
scrollToField: g,
|
|
106
|
-
setFieldsValue:
|
|
107
|
-
setFieldValue:
|
|
106
|
+
setFieldsValue: m,
|
|
107
|
+
setFieldValue: F,
|
|
108
108
|
registerWatch: v
|
|
109
|
-
}), (e, t) => (
|
|
109
|
+
}), (e, t) => (w(), W(y(E), q({
|
|
110
110
|
ref_key: "formRef",
|
|
111
111
|
ref: a
|
|
112
|
-
}, r, { model: o }), {
|
|
113
|
-
default:
|
|
114
|
-
|
|
112
|
+
}, y(P)(r, ["initialValues"]), { model: o }), {
|
|
113
|
+
default: z(() => [
|
|
114
|
+
A(e.$slots, "default")
|
|
115
115
|
]),
|
|
116
116
|
_: 3
|
|
117
117
|
}, 16, ["model"]));
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
120
|
export {
|
|
121
|
-
|
|
121
|
+
N as default
|
|
122
122
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { isVNode as U, defineComponent as $, useSlots as q, ref as F, watch as D, cloneVNode as L, computed as A, createVNode as u, mergeProps as p, unref as i, openBlock as g, createElementBlock as G, Fragment as W, withCtx as y, renderSlot as w, createTextVNode as H, toDisplayString as J, createElementVNode as K, normalizeClass as Q, createBlock as x, resolveDynamicComponent as T } from "vue";
|
|
2
|
+
import { Button as V, Flex as X, Modal as Y } from "ant-design-vue";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import { getSingleVNode as
|
|
5
|
+
import { getSingleVNode as Z } from "../../utils/slot.mjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
7
|
-
import { omit as
|
|
7
|
+
import { omit as I } from "lodash-unified";
|
|
8
8
|
import "../style/modal-form.css";
|
|
9
|
-
import { convertReactiveToRaw as
|
|
10
|
-
import { useControllableValue as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
import { convertReactiveToRaw as ee } from "../../utils/index.mjs";
|
|
10
|
+
import { useControllableValue as te } from "../../hooks/useControllableValue.mjs";
|
|
11
|
+
import { useLocale as le } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useGlobalConfig as oe } from "../../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
import { useNamespace as ae } from "../../config-provider/hooks/use-namespace.mjs";
|
|
14
|
+
import ie from "../ap-form.vue2.mjs";
|
|
15
|
+
function se(d) {
|
|
16
|
+
return typeof d == "function" || Object.prototype.toString.call(d) === "[object Object]" && !U(d);
|
|
16
17
|
}
|
|
17
|
-
const
|
|
18
|
+
const Pe = /* @__PURE__ */ $({
|
|
18
19
|
__name: "index",
|
|
19
20
|
props: {
|
|
20
21
|
layout: {
|
|
@@ -85,155 +86,154 @@ const xe = /* @__PURE__ */ L({
|
|
|
85
86
|
},
|
|
86
87
|
emits: ["update:open"],
|
|
87
88
|
setup(d, {
|
|
88
|
-
expose:
|
|
89
|
-
emit:
|
|
89
|
+
expose: N,
|
|
90
|
+
emit: P
|
|
90
91
|
}) {
|
|
91
|
-
const
|
|
92
|
-
value:
|
|
93
|
-
updateValue:
|
|
94
|
-
} =
|
|
92
|
+
const o = d, b = q(), S = P, a = F(), c = F(), r = F(!1), {
|
|
93
|
+
value: _,
|
|
94
|
+
updateValue: m
|
|
95
|
+
} = te(o, S, {
|
|
95
96
|
valuePropName: "open",
|
|
96
97
|
defaultValue: !1
|
|
97
98
|
}), {
|
|
98
99
|
t: v
|
|
99
|
-
} =
|
|
100
|
-
b:
|
|
101
|
-
e:
|
|
102
|
-
} =
|
|
103
|
-
|
|
104
|
-
var
|
|
105
|
-
|
|
100
|
+
} = le(), h = oe("uiMode"), {
|
|
101
|
+
b: R,
|
|
102
|
+
e: C
|
|
103
|
+
} = ae("ap-form-modal-form");
|
|
104
|
+
D(() => a.value, (e) => {
|
|
105
|
+
var t;
|
|
106
|
+
e && c.value && ((t = e.setFieldsValue) == null || t.call(e, c.value), c.value = void 0);
|
|
106
107
|
});
|
|
107
|
-
const
|
|
108
|
+
const B = Z(b.trigger), M = B ? L(B, {
|
|
108
109
|
onClick: () => {
|
|
109
|
-
|
|
110
|
+
m(!0);
|
|
110
111
|
}
|
|
111
|
-
}) : null,
|
|
112
|
-
var
|
|
113
|
-
let t;
|
|
112
|
+
}) : null, j = A(() => {
|
|
113
|
+
var t, l, n, f;
|
|
114
114
|
const e = [];
|
|
115
|
-
if (
|
|
115
|
+
if (o.submitter === !1)
|
|
116
116
|
return null;
|
|
117
|
-
if (
|
|
117
|
+
if (o.showCancel) {
|
|
118
118
|
let s;
|
|
119
|
-
e.push(
|
|
120
|
-
onClick:
|
|
121
|
-
disabled:
|
|
122
|
-
},
|
|
119
|
+
e.push(u(V, {
|
|
120
|
+
onClick: k,
|
|
121
|
+
disabled: r.value
|
|
122
|
+
}, se(s = v("ap.common.cancelText")) ? s : {
|
|
123
123
|
default: () => [s]
|
|
124
124
|
}));
|
|
125
125
|
}
|
|
126
|
-
return ((
|
|
126
|
+
return ((t = o.submitter) == null ? void 0 : t.resetButtonProps) !== !1 && e.push(u(V, p(((l = o.submitter) == null ? void 0 : l.resetButtonProps) || {}, {
|
|
127
127
|
key: "submit",
|
|
128
|
-
disabled:
|
|
129
|
-
onClick:
|
|
128
|
+
disabled: r.value,
|
|
129
|
+
onClick: O
|
|
130
130
|
}), {
|
|
131
131
|
default: () => {
|
|
132
132
|
var s;
|
|
133
|
-
return [((s =
|
|
133
|
+
return [((s = o.submitter) == null ? void 0 : s.resetText) || v("ap.common.resetText")];
|
|
134
134
|
}
|
|
135
|
-
})), ((
|
|
135
|
+
})), ((n = o.submitter) == null ? void 0 : n.submitButtonProps) !== !1 && e.push(u(V, p({
|
|
136
136
|
type: "primary",
|
|
137
137
|
key: "submit"
|
|
138
|
-
}, ((
|
|
139
|
-
loading:
|
|
138
|
+
}, ((f = o.submitter) == null ? void 0 : f.submitButtonProps) || {}, {
|
|
139
|
+
loading: r.value,
|
|
140
140
|
onClick: z
|
|
141
141
|
}), {
|
|
142
142
|
default: () => {
|
|
143
143
|
var s;
|
|
144
|
-
return [((s =
|
|
144
|
+
return [((s = o.submitter) == null ? void 0 : s.submitText) || v("ap.common.okText")];
|
|
145
145
|
}
|
|
146
|
-
})),
|
|
146
|
+
})), u(X, {
|
|
147
147
|
justify: "flex-end",
|
|
148
|
-
class:
|
|
149
|
-
}, C(t = b.submitter(e)) ? t : {
|
|
150
|
-
default: () => [t]
|
|
151
|
-
}) : n(S, {
|
|
152
|
-
justify: "flex-end",
|
|
153
|
-
class: B("footer")
|
|
148
|
+
class: C(i(h) === "admin" ? "footer-admin" : "footer")
|
|
154
149
|
}, {
|
|
155
|
-
default: () => [
|
|
156
|
-
default: () => [e]
|
|
157
|
-
})]
|
|
150
|
+
default: () => [b.submitter ? b.submitter(e) : e]
|
|
158
151
|
});
|
|
159
152
|
});
|
|
160
|
-
function
|
|
161
|
-
var
|
|
162
|
-
|
|
153
|
+
function O() {
|
|
154
|
+
var e, t, l;
|
|
155
|
+
o.submitter !== !1 && ((e = a.value) == null || e.resetFields(), (l = (t = o.submitter) == null ? void 0 : t.onReset) == null || l.call(t));
|
|
163
156
|
}
|
|
164
157
|
async function z() {
|
|
165
|
-
var
|
|
166
|
-
if (
|
|
158
|
+
var e, t, l, n;
|
|
159
|
+
if (o.submitter !== !1)
|
|
167
160
|
try {
|
|
168
|
-
const
|
|
169
|
-
(l = (
|
|
161
|
+
const f = await ((e = a.value) == null ? void 0 : e.validateFields());
|
|
162
|
+
(l = (t = o.submitter) == null ? void 0 : t.onSubmit) == null || l.call(t), r.value = !0, await ((n = o.onFinish) == null ? void 0 : n.call(o, ee(f))) && m(!1);
|
|
170
163
|
} finally {
|
|
171
|
-
|
|
164
|
+
r.value = !1;
|
|
172
165
|
}
|
|
173
166
|
}
|
|
174
|
-
function
|
|
175
|
-
r
|
|
167
|
+
function k() {
|
|
168
|
+
i(r) || m(!1);
|
|
176
169
|
}
|
|
177
|
-
function
|
|
178
|
-
!
|
|
170
|
+
function E(e) {
|
|
171
|
+
!e && i(r) || m(e);
|
|
179
172
|
}
|
|
180
|
-
return
|
|
181
|
-
resetFields: (
|
|
182
|
-
var
|
|
183
|
-
(
|
|
173
|
+
return N({
|
|
174
|
+
resetFields: (e) => {
|
|
175
|
+
var t;
|
|
176
|
+
(t = a.value) == null || t.resetFields(e);
|
|
184
177
|
},
|
|
185
|
-
clearValidate: (
|
|
186
|
-
var
|
|
187
|
-
(
|
|
178
|
+
clearValidate: (e) => {
|
|
179
|
+
var t;
|
|
180
|
+
(t = a.value) == null || t.clearValidate(e);
|
|
188
181
|
},
|
|
189
|
-
validateFields: (
|
|
182
|
+
validateFields: (e, t) => {
|
|
190
183
|
var l;
|
|
191
|
-
return (l =
|
|
184
|
+
return (l = a.value) == null ? void 0 : l.validateFields(e, t);
|
|
192
185
|
},
|
|
193
|
-
getFieldsValue: (
|
|
194
|
-
var
|
|
195
|
-
return (
|
|
186
|
+
getFieldsValue: (e) => {
|
|
187
|
+
var t;
|
|
188
|
+
return (t = a.value) == null ? void 0 : t.getFieldsValue(e);
|
|
196
189
|
},
|
|
197
|
-
validate: (
|
|
190
|
+
validate: (e, t) => {
|
|
198
191
|
var l;
|
|
199
|
-
return (l =
|
|
192
|
+
return (l = a.value) == null ? void 0 : l.validate(e, t);
|
|
200
193
|
},
|
|
201
|
-
scrollToField: (
|
|
194
|
+
scrollToField: (e, t = {}) => {
|
|
202
195
|
var l;
|
|
203
|
-
(l =
|
|
196
|
+
(l = a.value) == null || l.scrollToField(e, t);
|
|
204
197
|
},
|
|
205
|
-
setFieldValue: (
|
|
206
|
-
var l,
|
|
207
|
-
(
|
|
198
|
+
setFieldValue: (e, t) => {
|
|
199
|
+
var l, n;
|
|
200
|
+
(n = (l = a.value) == null ? void 0 : l.setFieldValue) == null || n.call(l, e, t);
|
|
208
201
|
},
|
|
209
|
-
setFieldsValue: (
|
|
210
|
-
var
|
|
211
|
-
if (!
|
|
212
|
-
c.value =
|
|
202
|
+
setFieldsValue: (e) => {
|
|
203
|
+
var t, l;
|
|
204
|
+
if (!a.value) {
|
|
205
|
+
c.value = e;
|
|
213
206
|
return;
|
|
214
207
|
}
|
|
215
|
-
(l = (
|
|
208
|
+
(l = (t = a.value) == null ? void 0 : t.setFieldsValue) == null || l.call(t, e);
|
|
216
209
|
}
|
|
217
|
-
}), (
|
|
218
|
-
open:
|
|
219
|
-
"onUpdate:open":
|
|
220
|
-
onCancel:
|
|
210
|
+
}), (e, t) => (g(), G(W, null, [u(i(Y), p(e.modalProps, {
|
|
211
|
+
open: i(_),
|
|
212
|
+
"onUpdate:open": E,
|
|
213
|
+
onCancel: k,
|
|
221
214
|
footer: null,
|
|
222
|
-
width:
|
|
223
|
-
class:
|
|
215
|
+
width: e.width,
|
|
216
|
+
class: i(R)(),
|
|
217
|
+
"body-style": {
|
|
218
|
+
padding: i(h) === "admin" ? "0px !important" : "20px !important"
|
|
219
|
+
// 这里使用内联样式目的是为了使用最高优先级覆盖设置的全局样式
|
|
220
|
+
// 使用ModalForm你可能无法再自定义body的样式
|
|
221
|
+
}
|
|
224
222
|
}), {
|
|
225
|
-
title:
|
|
226
|
-
default:
|
|
223
|
+
title: y(() => [w(e.$slots, "title", {}, () => [H(J(o.title), 1)])]),
|
|
224
|
+
default: y(() => [K("div", {
|
|
225
|
+
class: Q(i(C)(i(h) === "admin" ? "content-admin" : "content"))
|
|
226
|
+
}, [u(ie, p({
|
|
227
227
|
ref_key: "formRef",
|
|
228
|
-
ref:
|
|
229
|
-
},
|
|
230
|
-
default:
|
|
228
|
+
ref: a
|
|
229
|
+
}, i(I)(o, ["modalProps", "open", "onUpdate:open", "title", "width", "onFinish", "submitter"])), {
|
|
230
|
+
default: y(() => [w(e.$slots, "default")]),
|
|
231
231
|
_: 3
|
|
232
|
-
}, 16), (g(),
|
|
232
|
+
}, 16)], 2), (g(), x(T(j.value)))]),
|
|
233
233
|
_: 3
|
|
234
|
-
}, 16, ["open", "width", "class"]), (g(),
|
|
234
|
+
}, 16, ["open", "width", "class", "body-style"]), (g(), x(T(i(M))))], 64));
|
|
235
235
|
}
|
|
236
236
|
});
|
|
237
237
|
export {
|
|
238
|
-
|
|
238
|
+
Pe as default
|
|
239
239
|
};
|
|
@@ -6,12 +6,16 @@
|
|
|
6
6
|
border-bottom: 1px solid #E9EDF3;
|
|
7
7
|
margin-bottom: 0;
|
|
8
8
|
}
|
|
9
|
-
.aplus-ap-form-modal-
|
|
9
|
+
.aplus-ap-form-modal-form__content-admin {
|
|
10
10
|
padding: 20px;
|
|
11
11
|
}
|
|
12
12
|
.aplus-ap-form-modal-form__footer {
|
|
13
13
|
padding-top: 20px;
|
|
14
14
|
}
|
|
15
|
+
.aplus-ap-form-modal-form__footer-admin {
|
|
16
|
+
border-top: 1px solid #E9EDF3;
|
|
17
|
+
padding: 12px 20px;
|
|
18
|
+
}
|
|
15
19
|
.aplus-ap-form-modal-form .ant-modal-close {
|
|
16
20
|
top: 16px;
|
|
17
21
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ApTableProps } from './interface';
|
|
1
|
+
import { ApColumnType, ApTableProps } from './interface';
|
|
2
2
|
import { ComputedRef, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
3
3
|
import { SpinSize } from 'ant-design-vue/es/spin/Spin';
|
|
4
4
|
import { VueTypeValidableDef } from '../../node_modules/vue-types';
|
|
@@ -23,6 +23,10 @@ type ApTableSlots = {
|
|
|
23
23
|
customFilterIcon?: any;
|
|
24
24
|
customFilterDropdown?: any;
|
|
25
25
|
searchFormExtra?: any;
|
|
26
|
+
headerCell?: (props: {
|
|
27
|
+
title: any;
|
|
28
|
+
column: ApColumnType;
|
|
29
|
+
}) => void;
|
|
26
30
|
};
|
|
27
31
|
/**
|
|
28
32
|
* 设置查询表单值
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { default as ApTitle } from './title/ApTitle.vue';
|
|
2
|
+
import { ApTitleProps } from './title/interface';
|
|
3
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
4
|
+
|
|
5
|
+
export declare const _ApTitle: {
|
|
6
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
7
|
+
trigger: {
|
|
8
|
+
type: PropType<"click" | "hover" | "contextmenu" | "focus">;
|
|
9
|
+
required: true;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
placement: {
|
|
13
|
+
type: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
14
|
+
required: true;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
title: {
|
|
18
|
+
type: PropType<string>;
|
|
19
|
+
required: true;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
helpMessage: {
|
|
23
|
+
type: PropType<string>;
|
|
24
|
+
required: true;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
28
|
+
trigger: {
|
|
29
|
+
type: PropType<"click" | "hover" | "contextmenu" | "focus">;
|
|
30
|
+
required: true;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
placement: {
|
|
34
|
+
type: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
35
|
+
required: true;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
title: {
|
|
39
|
+
type: PropType<string>;
|
|
40
|
+
required: true;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
helpMessage: {
|
|
44
|
+
type: PropType<string>;
|
|
45
|
+
required: true;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
}>>, {
|
|
49
|
+
trigger: "click" | "hover" | "contextmenu" | "focus";
|
|
50
|
+
placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
51
|
+
title: string;
|
|
52
|
+
helpMessage: string;
|
|
53
|
+
}, true, {}, {}, {
|
|
54
|
+
P: {};
|
|
55
|
+
B: {};
|
|
56
|
+
D: {};
|
|
57
|
+
C: {};
|
|
58
|
+
M: {};
|
|
59
|
+
Defaults: {};
|
|
60
|
+
}, Readonly< ExtractPropTypes<{
|
|
61
|
+
trigger: {
|
|
62
|
+
type: PropType<"click" | "hover" | "contextmenu" | "focus">;
|
|
63
|
+
required: true;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
placement: {
|
|
67
|
+
type: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
68
|
+
required: true;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
title: {
|
|
72
|
+
type: PropType<string>;
|
|
73
|
+
required: true;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
helpMessage: {
|
|
77
|
+
type: PropType<string>;
|
|
78
|
+
required: true;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
}>>, {}, {}, {}, {}, {
|
|
82
|
+
trigger: "click" | "hover" | "contextmenu" | "focus";
|
|
83
|
+
placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
84
|
+
title: string;
|
|
85
|
+
helpMessage: string;
|
|
86
|
+
}>;
|
|
87
|
+
__isFragment?: undefined;
|
|
88
|
+
__isTeleport?: undefined;
|
|
89
|
+
__isSuspense?: undefined;
|
|
90
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
91
|
+
trigger: {
|
|
92
|
+
type: PropType<"click" | "hover" | "contextmenu" | "focus">;
|
|
93
|
+
required: true;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
placement: {
|
|
97
|
+
type: PropType<"top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom">;
|
|
98
|
+
required: true;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
title: {
|
|
102
|
+
type: PropType<string>;
|
|
103
|
+
required: true;
|
|
104
|
+
default: string;
|
|
105
|
+
};
|
|
106
|
+
helpMessage: {
|
|
107
|
+
type: PropType<string>;
|
|
108
|
+
required: true;
|
|
109
|
+
default: string;
|
|
110
|
+
};
|
|
111
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
112
|
+
trigger: "click" | "hover" | "contextmenu" | "focus";
|
|
113
|
+
placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
114
|
+
title: string;
|
|
115
|
+
helpMessage: string;
|
|
116
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
117
|
+
$slots: {
|
|
118
|
+
prefix?(_: {}): any;
|
|
119
|
+
suffix?(_: {}): any;
|
|
120
|
+
};
|
|
121
|
+
}) & Plugin<any[]> & (new (...args: any[]) => {
|
|
122
|
+
$props: {
|
|
123
|
+
onClick?: (() => void) | undefined;
|
|
124
|
+
};
|
|
125
|
+
});
|
|
126
|
+
export { ApTitle, ApTitleProps };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ApTitleProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTitleProps>, {
|
|
5
|
+
title: string;
|
|
6
|
+
helpMessage: string;
|
|
7
|
+
placement: string;
|
|
8
|
+
trigger: string;
|
|
9
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTitleProps>, {
|
|
10
|
+
title: string;
|
|
11
|
+
helpMessage: string;
|
|
12
|
+
placement: string;
|
|
13
|
+
trigger: string;
|
|
14
|
+
}>>>, {
|
|
15
|
+
trigger: "click" | "hover" | "contextmenu" | "focus";
|
|
16
|
+
placement: "top" | "bottom" | "bottomLeft" | "bottomRight" | "topLeft" | "topRight" | "left" | "right" | "leftTop" | "leftBottom" | "rightTop" | "rightBottom";
|
|
17
|
+
title: string;
|
|
18
|
+
helpMessage: string;
|
|
19
|
+
}, {}>, {
|
|
20
|
+
prefix?(_: {}): any;
|
|
21
|
+
suffix?(_: {}): any;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
25
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
26
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
27
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
28
|
+
} : {
|
|
29
|
+
type: PropType<T[K]>;
|
|
30
|
+
required: true;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
type __VLS_WithDefaults<P, D> = {
|
|
34
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
35
|
+
default: D[K];
|
|
36
|
+
}> : P[K];
|
|
37
|
+
};
|
|
38
|
+
type __VLS_Prettify<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
41
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
42
|
+
new (): {
|
|
43
|
+
$slots: S;
|
|
44
|
+
};
|
|
45
|
+
};
|