@aplus-frontend/ui 0.0.7 → 0.0.8
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 +102 -98
- package/es/src/ap-field/date/index.vue.d.ts +2 -2
- package/es/src/ap-field/date/index.vue.mjs +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +2 -2
- package/es/src/ap-field/date-range/index.vue.mjs +1 -1
- package/es/src/ap-field/index.d.ts +3 -1
- package/es/src/ap-field/index.mjs +7 -3
- package/es/src/ap-field/interface.d.ts +8 -1
- package/es/src/ap-field/rate/index.vue.d.ts +64 -0
- package/es/src/ap-field/rate/index.vue.mjs +64 -0
- package/es/src/ap-field/rate/index.vue2.mjs +4 -0
- package/es/src/ap-field/segmented/index.vue.d.ts +27 -4
- package/es/src/ap-field/segmented/index.vue.mjs +29 -25
- package/es/src/ap-field/select/index.vue.d.ts +2 -2
- package/es/src/ap-field/select/index.vue.mjs +1 -1
- package/es/src/ap-field/text/index.vue.d.ts +2 -2
- package/es/src/ap-field/text/index.vue2.mjs +1 -1
- package/es/src/ap-field/text/password.vue.d.ts +2 -2
- package/es/src/ap-field/text/password.vue.mjs +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +3 -0
- package/es/src/ap-field/text-area/index.vue.mjs +1 -1
- package/es/src/ap-form/items/index.d.ts +2 -2
- package/es/src/ap-form/items/index.mjs +4 -1
- package/es/src/ap-form/items/interface.d.ts +6 -1
- package/es/src/ap-form/items/text/index.d.ts +8 -0
- package/es/src/ap-form/items/text/index.mjs +10 -0
- package/es/src/ap-form/items/text/index.vue.mjs +2 -93
- package/es/src/ap-form/items/text/index.vue2.mjs +93 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +63 -0
- package/es/src/ap-form/items/text/password.vue.mjs +83 -0
- package/es/src/ap-form/items/text/password.vue2.mjs +4 -0
- package/es/src/ap-form/search-form/index.vue.mjs +53 -53
- package/es/src/ap-table/ap-table.vue.d.ts +2 -1
- package/es/src/ap-table/ap-table.vue.mjs +71 -70
- package/es/src/ap-table/constants.d.ts +3245 -903
- package/es/src/ap-table/constants.mjs +33 -30
- package/es/src/ap-table/interface.d.ts +11 -3
- package/es/src/ap-table/utils.d.ts +1 -1
- package/es/src/index.mjs +94 -90
- package/lib/index.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +2 -2
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +2 -2
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/index.d.ts +3 -1
- package/lib/src/ap-field/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +8 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +64 -0
- package/lib/src/ap-field/rate/index.vue.js +1 -0
- package/lib/src/ap-field/rate/index.vue2.js +1 -0
- package/lib/src/ap-field/segmented/index.vue.d.ts +27 -4
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +2 -2
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +2 -2
- package/lib/src/ap-field/text/index.vue2.js +1 -1
- package/lib/src/ap-field/text/password.vue.d.ts +2 -2
- package/lib/src/ap-field/text/password.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +3 -0
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/items/index.d.ts +2 -2
- package/lib/src/ap-form/items/index.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +6 -1
- package/lib/src/ap-form/items/text/index.d.ts +8 -0
- package/lib/src/ap-form/items/text/index.js +1 -0
- package/lib/src/ap-form/items/text/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.d.ts +63 -0
- package/lib/src/ap-form/items/text/password.vue.js +1 -0
- package/lib/src/ap-form/items/text/password.vue2.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +3245 -903
- package/lib/src/ap-table/constants.js +1 -1
- package/lib/src/ap-table/interface.d.ts +11 -3
- package/lib/src/ap-table/utils.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { isVNode as J, defineComponent as K, useSlots as Q, ref as X, unref as o, shallowRef as
|
|
2
|
-
import { Flex as
|
|
1
|
+
import { isVNode as J, defineComponent as K, useSlots as Q, ref as X, unref as o, shallowRef as P, computed as C, watch as k, cloneVNode as Y, createVNode as a, Fragment as Z, openBlock as A, createBlock as E, mergeProps as ee, withCtx as N, resolveDynamicComponent as te } from "vue";
|
|
2
|
+
import { Flex as T, Space as oe, Button as y } from "ant-design-vue";
|
|
3
3
|
import "../ap-form.vue.mjs";
|
|
4
4
|
import "../ap-form-item-group/index.vue2.mjs";
|
|
5
5
|
import "../ap-form-item.vue2.mjs";
|
|
6
6
|
import "../../hooks/index.mjs";
|
|
7
|
-
import { genRealChildren as
|
|
7
|
+
import { genRealChildren as V } from "../ap-form-item-group/helper.mjs";
|
|
8
8
|
import { DoubleRightOutlined as ae } from "@ant-design/icons-vue";
|
|
9
9
|
import "../../config-provider/index.mjs";
|
|
10
10
|
import "../style/search-form.css";
|
|
@@ -12,13 +12,13 @@ import { omit as le } from "lodash-unified";
|
|
|
12
12
|
import { useControllableValue as ne } from "../../hooks/useControllableValue.mjs";
|
|
13
13
|
import { useNamespace as re } from "../../config-provider/hooks/use-namespace.mjs";
|
|
14
14
|
import { useLocale as se } from "../../config-provider/hooks/use-locale.mjs";
|
|
15
|
-
import
|
|
15
|
+
import I from "../ap-form-item.vue.mjs";
|
|
16
16
|
import pe from "../ap-form.vue2.mjs";
|
|
17
17
|
import ce from "../ap-form-item-group/index.vue.mjs";
|
|
18
18
|
function ie(i) {
|
|
19
19
|
return typeof i == "function" || Object.prototype.toString.call(i) === "[object Object]" && !J(i);
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const s = 24, Pe = /* @__PURE__ */ K({
|
|
22
22
|
name: "ApFormSearchForm",
|
|
23
23
|
__name: "index",
|
|
24
24
|
props: {
|
|
@@ -98,106 +98,106 @@ const c = 24, Pe = /* @__PURE__ */ K({
|
|
|
98
98
|
},
|
|
99
99
|
emits: ["update:collapse"],
|
|
100
100
|
setup(i, {
|
|
101
|
-
expose:
|
|
102
|
-
emit:
|
|
101
|
+
expose: j,
|
|
102
|
+
emit: M
|
|
103
103
|
}) {
|
|
104
104
|
var S;
|
|
105
|
-
const l = Q(), t = i,
|
|
106
|
-
value:
|
|
107
|
-
updateValue:
|
|
108
|
-
} = ne(t,
|
|
105
|
+
const l = Q(), t = i, O = M, {
|
|
106
|
+
value: u,
|
|
107
|
+
updateValue: $
|
|
108
|
+
} = ne(t, O, {
|
|
109
109
|
valuePropName: "collapse",
|
|
110
110
|
defaultValuePropName: "defaultCollapse"
|
|
111
111
|
}), {
|
|
112
|
-
b:
|
|
112
|
+
b: D
|
|
113
113
|
} = re("ap-form-search-form"), {
|
|
114
114
|
t: g
|
|
115
115
|
} = se(), m = X();
|
|
116
|
-
function D() {
|
|
117
|
-
O(!o(f));
|
|
118
|
-
}
|
|
119
116
|
function L() {
|
|
117
|
+
$(!o(u));
|
|
118
|
+
}
|
|
119
|
+
function q() {
|
|
120
120
|
var e, n;
|
|
121
121
|
(n = (e = m.value) == null ? void 0 : e.validateFields()) == null || n.then(t.onSubmit);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
124
|
-
var e, n,
|
|
125
|
-
t.customReset || (n = (e = m.value) == null ? void 0 : e.resetFields) == null || n.call(e), (
|
|
123
|
+
function z() {
|
|
124
|
+
var e, n, f;
|
|
125
|
+
t.customReset || (n = (e = m.value) == null ? void 0 : e.resetFields) == null || n.call(e), (f = t.onReset) == null || f.call(t);
|
|
126
126
|
}
|
|
127
|
-
const R =
|
|
128
|
-
|
|
129
|
-
R.value =
|
|
130
|
-
}),
|
|
127
|
+
const R = P(V(l.default())), d = P((S = l.extra) == null ? void 0 : S.call(l)), F = C(() => Math.floor(s / t.countPerRow));
|
|
128
|
+
k(() => l.default(), (e) => {
|
|
129
|
+
R.value = V(e);
|
|
130
|
+
}), k(() => {
|
|
131
131
|
var e;
|
|
132
132
|
return (e = l.extra) == null ? void 0 : e.call(l);
|
|
133
133
|
}, (e) => {
|
|
134
|
-
|
|
134
|
+
d.value = e;
|
|
135
135
|
});
|
|
136
|
-
const
|
|
136
|
+
const U = C(() => {
|
|
137
137
|
let e;
|
|
138
|
-
const n = [...o(R)],
|
|
138
|
+
const n = [...o(R)], f = [], b = [], r = o(F);
|
|
139
139
|
let h = 0;
|
|
140
|
-
n.forEach((
|
|
141
|
-
const
|
|
142
|
-
|
|
140
|
+
n.forEach((p) => {
|
|
141
|
+
const c = p.props;
|
|
142
|
+
c != null && c.hidden ? f.push(p) : (h += c.span || r, b.push(p));
|
|
143
143
|
});
|
|
144
|
-
const B =
|
|
144
|
+
const B = s - (h + r) % s, w = B < r ? s : B, x = s - r * (o(d) && !t.extraInAction ? 2 : 1), W = !t.forceExpand && h > x;
|
|
145
145
|
let _ = 0;
|
|
146
|
-
const G = b.map((
|
|
147
|
-
const
|
|
148
|
-
return _ +=
|
|
149
|
-
span:
|
|
150
|
-
key: `ApFormSearchFormItem-${
|
|
151
|
-
hidden: !t.forceExpand && o(
|
|
146
|
+
const G = b.map((p, c) => {
|
|
147
|
+
const v = p.props;
|
|
148
|
+
return _ += v.span || r, Y(p, {
|
|
149
|
+
span: v.span || r,
|
|
150
|
+
key: `ApFormSearchFormItem-${c}`,
|
|
151
|
+
hidden: !t.forceExpand && o(u) && _ > x
|
|
152
152
|
});
|
|
153
|
-
}), H =
|
|
154
|
-
return a(Z, null, [G,
|
|
153
|
+
}), H = s - Math.min(x, _) - r;
|
|
154
|
+
return a(Z, null, [G, f, a(I, {
|
|
155
155
|
span: o(F)
|
|
156
156
|
}, {
|
|
157
|
-
default: () => [a(
|
|
157
|
+
default: () => [a(T, {
|
|
158
158
|
justify: "space-between"
|
|
159
159
|
}, {
|
|
160
160
|
default: () => [a(oe, null, {
|
|
161
161
|
default: () => [a(y, {
|
|
162
162
|
type: "primary",
|
|
163
|
-
onClick:
|
|
163
|
+
onClick: q,
|
|
164
164
|
loading: t.submitLoading
|
|
165
165
|
}, {
|
|
166
166
|
default: () => [t.searchText || g("ap.apForm.search.search")]
|
|
167
167
|
}), a(y, {
|
|
168
|
-
onClick:
|
|
168
|
+
onClick: z
|
|
169
169
|
}, {
|
|
170
170
|
default: () => [t.resetText || g("ap.apForm.search.reset")]
|
|
171
171
|
}), W ? a(y, {
|
|
172
|
-
onClick:
|
|
172
|
+
onClick: L,
|
|
173
173
|
icon: a(ae, {
|
|
174
174
|
style: "color:#B8C3D1",
|
|
175
|
-
rotate: o(
|
|
175
|
+
rotate: o(u) ? 90 : -90
|
|
176
176
|
}, null)
|
|
177
177
|
}, null) : null]
|
|
178
|
-
}), t.extraInAction ? o(
|
|
178
|
+
}), t.extraInAction ? o(d) : null]
|
|
179
179
|
})]
|
|
180
|
-
}), !t.extraInAction && o(
|
|
181
|
-
span: o(
|
|
180
|
+
}), !t.extraInAction && o(d) ? a(I, {
|
|
181
|
+
span: o(u) ? H : w
|
|
182
182
|
}, {
|
|
183
|
-
default: () => [a(
|
|
184
|
-
justify: "end"
|
|
185
|
-
}, ie(e = o(
|
|
183
|
+
default: () => [a(T, {
|
|
184
|
+
justify: !o(u) && w === s ? "start" : "end"
|
|
185
|
+
}, ie(e = o(d)) ? e : {
|
|
186
186
|
default: () => [e]
|
|
187
187
|
})]
|
|
188
188
|
}) : null]);
|
|
189
189
|
});
|
|
190
|
-
return
|
|
190
|
+
return j({
|
|
191
191
|
apForm: C(() => o(m))
|
|
192
|
-
}), (e, n) => (
|
|
193
|
-
class: o(
|
|
192
|
+
}), (e, n) => (A(), E(pe, ee({
|
|
193
|
+
class: o(D)(),
|
|
194
194
|
ref_key: "apForm",
|
|
195
195
|
ref: m
|
|
196
196
|
}, o(le)(t, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
197
|
-
default:
|
|
197
|
+
default: N(() => [a(ce, {
|
|
198
198
|
"count-per-row": t.countPerRow
|
|
199
199
|
}, {
|
|
200
|
-
default:
|
|
200
|
+
default: N(() => [(A(), E(te(U.value)))]),
|
|
201
201
|
_: 1
|
|
202
202
|
}, 8, ["count-per-row"])]),
|
|
203
203
|
_: 1
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApTableProps } from './interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
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';
|
|
5
5
|
import { GetRowKey } from 'ant-design-vue/es/vc-table/interface';
|
|
@@ -52,6 +52,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
52
52
|
reset: () => void;
|
|
53
53
|
setSearchFormValues: typeof setSearchFormValues;
|
|
54
54
|
getSearchFormValues: typeof getSearchFormValues;
|
|
55
|
+
dataSource: ComputedRef<any[]>;
|
|
55
56
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTableProps<any, any, "text">>, {
|
|
56
57
|
bordered: boolean;
|
|
57
58
|
childrenColumnName: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as $, computed as
|
|
1
|
+
import { defineComponent as $, computed as d, createVNode as s, mergeProps as c, unref as r, watch as H, openBlock as p, createElementBlock as m, normalizeClass as h, normalizeStyle as x, withCtx as f, Fragment as G, renderList as B, createBlock as Q, resolveDynamicComponent as U, createCommentVNode as P, createElementVNode as I, renderSlot as v, createSlots as J, toDisplayString as X, normalizeProps as Y, guardReactiveProps as Z } from "vue";
|
|
2
2
|
import { Typography as ee, Table as ae, Tooltip as te } from "ant-design-vue";
|
|
3
3
|
import { ApForm as oe } from "../ap-form/index.mjs";
|
|
4
|
-
import { apTableRenderItemMap as
|
|
4
|
+
import { apTableRenderItemMap as re, noRenderAsFormItemValueList as k, apTableFormItemMap as le } from "./constants.mjs";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
|
-
import { useTablePaging as
|
|
6
|
+
import { useTablePaging as ne } from "./hooks/use-table-paging.mjs";
|
|
7
7
|
import { isUndefined as de, omit as se } from "lodash-unified";
|
|
8
8
|
import "./style/ap-table.css";
|
|
9
9
|
import { QuestionCircleOutlined as ue } from "@ant-design/icons-vue";
|
|
10
|
-
import { apColumnToColumn as pe, getTableRenderType as ie, getTableRenderProps as
|
|
10
|
+
import { apColumnToColumn as pe, getTableRenderType as ie, getTableRenderProps as ce, getColumnOrder as O, updateFormProps as me, getFieldProps as fe, getPlaceholder as ge } from "./utils.mjs";
|
|
11
11
|
import { useLocale as ye } from "../config-provider/hooks/use-locale.mjs";
|
|
12
12
|
import { useNamespace as be } from "../config-provider/hooks/use-namespace.mjs";
|
|
13
13
|
import { useGlobalConfig as he } from "../config-provider/hooks/use-global-config.mjs";
|
|
@@ -122,92 +122,92 @@ const Ce = {
|
|
|
122
122
|
default: "middle"
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
|
-
setup(
|
|
126
|
-
expose:
|
|
125
|
+
setup(z, {
|
|
126
|
+
expose: E
|
|
127
127
|
}) {
|
|
128
|
-
const
|
|
129
|
-
t:
|
|
128
|
+
const l = z, {
|
|
129
|
+
t: L
|
|
130
130
|
} = ye(), {
|
|
131
131
|
e: C,
|
|
132
132
|
b: g
|
|
133
|
-
} = be("ap-table"),
|
|
133
|
+
} = be("ap-table"), V = he("uiMode"), y = d(() => {
|
|
134
134
|
var t;
|
|
135
|
-
let e = ((t =
|
|
135
|
+
let e = ((t = l.columns) == null ? void 0 : t.filter((a) => !a.hideInTable)) || [];
|
|
136
136
|
return e = e.map((a) => ({
|
|
137
137
|
...pe(a),
|
|
138
138
|
customRender({
|
|
139
139
|
value: o,
|
|
140
|
-
...
|
|
140
|
+
...n
|
|
141
141
|
}) {
|
|
142
|
-
let
|
|
142
|
+
let u;
|
|
143
143
|
if (a.customRender)
|
|
144
|
-
|
|
144
|
+
u = a.customRender({
|
|
145
145
|
value: o,
|
|
146
|
-
...
|
|
146
|
+
...n,
|
|
147
147
|
column: a
|
|
148
148
|
});
|
|
149
149
|
else {
|
|
150
|
-
const
|
|
150
|
+
const T = ie(a), q = re[T], K = ce(a, {
|
|
151
151
|
value: o,
|
|
152
|
-
...
|
|
152
|
+
...n
|
|
153
153
|
});
|
|
154
|
-
|
|
154
|
+
u = s(q, c(K, {
|
|
155
155
|
mode: "read"
|
|
156
156
|
}), null);
|
|
157
157
|
}
|
|
158
|
-
return A(a, o,
|
|
158
|
+
return A(a, o, u);
|
|
159
159
|
}
|
|
160
160
|
})), e;
|
|
161
|
-
}), F =
|
|
161
|
+
}), F = d(() => {
|
|
162
162
|
var e, t, a;
|
|
163
|
-
return ((a = (t = (e =
|
|
164
|
-
let
|
|
165
|
-
return
|
|
163
|
+
return ((a = (t = (e = l.columns) == null ? void 0 : e.filter((o) => !o.hideInSearch && o.dataIndex && (o.valueType || o.customRenderFormItem) && !k.includes(o.valueType))) == null ? void 0 : t.sort((o, n) => {
|
|
164
|
+
let u = O(o.order);
|
|
165
|
+
return O(n.order) - u;
|
|
166
166
|
})) == null ? void 0 : a.map((o) => {
|
|
167
|
-
const
|
|
167
|
+
const n = me(o, fe(o.fieldProps));
|
|
168
168
|
return {
|
|
169
169
|
...o,
|
|
170
170
|
fieldProps: {
|
|
171
171
|
label: o.title,
|
|
172
172
|
name: o.dataIndex,
|
|
173
|
-
...
|
|
173
|
+
...n || {},
|
|
174
174
|
// 格式化placeholder
|
|
175
|
-
placeholder: ge(
|
|
175
|
+
placeholder: ge(L, o.valueType, n == null ? void 0 : n.placeholder)
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
})) || [];
|
|
179
|
-
}),
|
|
179
|
+
}), N = d(() => r(y).filter((e) => e.sorter === !0).map((e) => e.dataIndex)), D = d(() => r(y).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex)), {
|
|
180
180
|
formRef: b,
|
|
181
181
|
submit: S,
|
|
182
182
|
reset: R,
|
|
183
183
|
tableProps: i,
|
|
184
|
-
handleTableChange:
|
|
185
|
-
data:
|
|
186
|
-
} =
|
|
184
|
+
handleTableChange: j,
|
|
185
|
+
data: w
|
|
186
|
+
} = ne({
|
|
187
187
|
async request(e) {
|
|
188
188
|
var a, o;
|
|
189
|
-
const t = await ((a =
|
|
190
|
-
return (o =
|
|
189
|
+
const t = await ((a = l.request) == null ? void 0 : a.call(l, e));
|
|
190
|
+
return (o = l.onLoad) == null || o.call(l, (t == null ? void 0 : t.data) || []), {
|
|
191
191
|
data: (t == null ? void 0 : t.data) || [],
|
|
192
192
|
total: (t == null ? void 0 : t.total) || 0
|
|
193
193
|
};
|
|
194
194
|
},
|
|
195
|
-
filterFields:
|
|
196
|
-
sortFields:
|
|
197
|
-
defaultParams:
|
|
198
|
-
defaultData:
|
|
199
|
-
manual:
|
|
200
|
-
defaultCurrent:
|
|
201
|
-
defaultPageSize:
|
|
202
|
-
formatParams:
|
|
203
|
-
}), W =
|
|
204
|
-
...
|
|
205
|
-
...
|
|
206
|
-
loading: de(
|
|
207
|
-
pagination:
|
|
195
|
+
filterFields: r(D),
|
|
196
|
+
sortFields: r(N),
|
|
197
|
+
defaultParams: l.params,
|
|
198
|
+
defaultData: l.defaultData,
|
|
199
|
+
manual: l.manual,
|
|
200
|
+
defaultCurrent: l.pagination ? l.pagination.defaultCurrent : void 0,
|
|
201
|
+
defaultPageSize: l.pagination ? l.pagination.defaultPageSize : void 0,
|
|
202
|
+
formatParams: l.beforeSearchSubmit
|
|
203
|
+
}), W = d(() => ({
|
|
204
|
+
...l,
|
|
205
|
+
...r(i),
|
|
206
|
+
loading: de(l.loading) ? r(i).loading : l.loading,
|
|
207
|
+
pagination: l.pagination === !1 ? !1 : r(i).pagination
|
|
208
208
|
}));
|
|
209
209
|
function A(e, t, a) {
|
|
210
|
-
return
|
|
210
|
+
return k.includes(e.valueType) ? a : e.copyable || e.ellipsis ? s(ee.Text, {
|
|
211
211
|
copyable: e.copyable ? {
|
|
212
212
|
text: t,
|
|
213
213
|
tooltip: !1
|
|
@@ -218,9 +218,9 @@ const Ce = {
|
|
|
218
218
|
content: a
|
|
219
219
|
}, null) : a;
|
|
220
220
|
}
|
|
221
|
-
H(() =>
|
|
221
|
+
H(() => r(w).loading, (e) => {
|
|
222
222
|
var t;
|
|
223
|
-
(t =
|
|
223
|
+
(t = l.onLoadingChange) == null || t.call(l, e);
|
|
224
224
|
});
|
|
225
225
|
function M(e) {
|
|
226
226
|
var t, a, o;
|
|
@@ -230,60 +230,61 @@ const Ce = {
|
|
|
230
230
|
var e, t, a;
|
|
231
231
|
return (a = (t = (e = b.value) == null ? void 0 : e.apForm) == null ? void 0 : t.getFieldsValue) == null ? void 0 : a.call(t, !0);
|
|
232
232
|
}
|
|
233
|
-
return
|
|
233
|
+
return E({
|
|
234
234
|
submit: () => S(),
|
|
235
235
|
reset: () => R(),
|
|
236
236
|
setSearchFormValues: M,
|
|
237
|
-
getSearchFormValues: _
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
237
|
+
getSearchFormValues: _,
|
|
238
|
+
dataSource: d(() => r(w).records)
|
|
239
|
+
}), (e, t) => (p(), m("div", {
|
|
240
|
+
class: h(e.card ? null : r(g)("wrapper"))
|
|
241
|
+
}, [e.searchForm !== !1 && F.value.length > 0 ? (p(), m("div", {
|
|
241
242
|
key: 0,
|
|
242
|
-
class: h(e.card ?
|
|
243
|
-
style:
|
|
244
|
-
}, [
|
|
243
|
+
class: h(e.card ? r(C)("search-wrapper") : null),
|
|
244
|
+
style: x(e.searchFormWrapperStyle)
|
|
245
|
+
}, [s(r(oe).SearchForm, c(e.searchForm || {}, {
|
|
245
246
|
ref_key: "formRef",
|
|
246
247
|
ref: b,
|
|
247
248
|
"custom-reset": "",
|
|
248
|
-
onSubmit:
|
|
249
|
-
onReset:
|
|
250
|
-
"submit-loading":
|
|
249
|
+
onSubmit: r(S),
|
|
250
|
+
onReset: r(R),
|
|
251
|
+
"submit-loading": r(i).loading
|
|
251
252
|
}), {
|
|
252
|
-
default: f(() => [(p(!0),
|
|
253
|
+
default: f(() => [(p(!0), m(G, null, B(F.value, (a) => (p(), Q(U(a.customRenderFormItem ? a.customRenderFormItem(a) : r(le)[a.valueType || "text"]), c({
|
|
253
254
|
key: a.dataIndex,
|
|
254
255
|
ref_for: !0
|
|
255
256
|
}, a.fieldProps || {}, {
|
|
256
257
|
span: a.span
|
|
257
258
|
}), null, 16, ["span"]))), 128))]),
|
|
258
259
|
_: 1
|
|
259
|
-
}, 16, ["onSubmit", "onReset", "submit-loading"])], 6)) :
|
|
260
|
-
class: h(e.card ?
|
|
261
|
-
style:
|
|
262
|
-
}, [
|
|
263
|
-
class:
|
|
260
|
+
}, 16, ["onSubmit", "onReset", "submit-loading"])], 6)) : P("", !0), I("div", {
|
|
261
|
+
class: h(e.card ? r(C)("table-wrapper") : null),
|
|
262
|
+
style: x(e.tableWrapperStyle)
|
|
263
|
+
}, [v(e.$slots, "title"), s(r(ae), c({
|
|
264
|
+
class: r(V) === "admin" ? r(g)("table-admin") : r(g)("table")
|
|
264
265
|
}, W.value, {
|
|
265
|
-
onChange:
|
|
266
|
+
onChange: r(j),
|
|
266
267
|
columns: y.value
|
|
267
268
|
}), J({
|
|
268
269
|
headerCell: f(({
|
|
269
270
|
column: a,
|
|
270
271
|
title: o
|
|
271
|
-
}) => [a.tooltip ? (p(),
|
|
272
|
+
}) => [a.tooltip ? (p(), m("span", Ce, [I("span", null, X(o), 1), s(r(te), {
|
|
272
273
|
title: a.tooltip,
|
|
273
274
|
placement: "bottom"
|
|
274
275
|
}, {
|
|
275
|
-
default: f(() => [
|
|
276
|
+
default: f(() => [s(r(ue), {
|
|
276
277
|
style: {
|
|
277
278
|
color: "#0070ff",
|
|
278
279
|
"padding-left": "4px"
|
|
279
280
|
}
|
|
280
281
|
})]),
|
|
281
282
|
_: 2
|
|
282
|
-
}, 1032, ["title"])])) :
|
|
283
|
+
}, 1032, ["title"])])) : P("", !0)]),
|
|
283
284
|
_: 2
|
|
284
|
-
}, [
|
|
285
|
+
}, [B(r(se)(e.$slots, "title"), (a, o) => ({
|
|
285
286
|
name: o,
|
|
286
|
-
fn: f((
|
|
287
|
+
fn: f((n) => [v(e.$slots, o, Y(Z(n || {})))])
|
|
287
288
|
}))]), 1040, ["class", "onChange", "columns"])], 6)], 2));
|
|
288
289
|
}
|
|
289
290
|
});
|