@aplus-frontend/ui 0.0.18 → 0.0.19
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 +26 -23
- package/es/src/ap-field/date/index.vue.d.ts +3 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +3 -3
- package/es/src/ap-field/date-range/index.vue.mjs +1 -1
- package/es/src/ap-field/interface.d.ts +1 -1
- package/es/src/ap-form/ap-form-item.vue.mjs +61 -57
- package/es/src/ap-form/search-form/index.vue.mjs +1 -1
- package/es/src/ap-form/style/ap-form-item.css +11 -0
- package/es/src/ap-modal/index.d.ts +9 -0
- package/es/src/ap-modal/index.mjs +10 -0
- package/es/src/ap-modal/type.d.ts +13 -0
- package/es/src/ap-modal/type.mjs +1 -0
- package/es/src/ap-modal/utils/createModal.d.ts +3 -0
- package/es/src/ap-modal/utils/createModal.mjs +74 -0
- package/es/src/ap-modal/utils/index.d.ts +1 -0
- package/es/src/ap-modal/utils/index.mjs +4 -0
- package/es/src/ap-table/ap-table.vue.mjs +133 -120
- package/es/src/ap-table/constants.d.ts +25 -23
- package/es/src/ap-table/interface.d.ts +4 -0
- package/es/src/ap-table/style/ap-table.css +1 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue.mjs +4 -0
- package/es/src/business/expandAlert/ApExpandAlert.vue2.mjs +113 -0
- package/es/src/business/expandAlert/interface.d.ts +26 -0
- package/es/src/business/expandAlert/style.css +42 -0
- package/es/src/business/index.d.ts +161 -1
- package/es/src/business/index.mjs +7 -4
- package/es/src/index.d.ts +1 -0
- package/es/src/index.mjs +194 -191
- package/es/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
- package/es/src/theme/ap-form/ap-form-item.css +11 -0
- package/es/src/theme/ap-table/ap-table.css +1 -0
- package/es/src/type.d.ts +3 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +3 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +3 -3
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/ap-form-item.css +11 -0
- package/lib/src/ap-modal/index.d.ts +9 -0
- package/lib/src/ap-modal/index.js +1 -0
- package/lib/src/ap-modal/type.d.ts +13 -0
- package/lib/src/ap-modal/type.js +1 -0
- package/lib/src/ap-modal/utils/createModal.d.ts +3 -0
- package/lib/src/ap-modal/utils/createModal.js +1 -0
- package/lib/src/ap-modal/utils/index.d.ts +1 -0
- package/lib/src/ap-modal/utils/index.js +1 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +25 -23
- package/lib/src/ap-table/interface.d.ts +4 -0
- package/lib/src/ap-table/style/ap-table.css +1 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue.d.ts +81 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue.js +1 -0
- package/lib/src/business/expandAlert/ApExpandAlert.vue2.js +1 -0
- package/lib/src/business/expandAlert/interface.d.ts +26 -0
- package/lib/src/business/expandAlert/style.css +42 -0
- package/lib/src/business/index.d.ts +161 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +42 -0
- package/lib/src/theme/ap-form/ap-form-item.css +11 -0
- package/lib/src/theme/ap-table/ap-table.css +1 -0
- package/lib/src/type.d.ts +3 -1
- package/package.json +3 -3
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { useToken as
|
|
4
|
-
import { ApForm as
|
|
5
|
-
import { apTableRenderItemMap as
|
|
1
|
+
import { defineComponent as Z, useSlots as ee, computed as d, createVNode as s, mergeProps as m, unref as r, watch as ae, openBlock as i, createElementBlock as f, normalizeClass as F, normalizeStyle as x, createSlots as E, withCtx as p, Fragment as te, renderList as O, createBlock as oe, resolveDynamicComponent as re, renderSlot as R, createCommentVNode as L, createElementVNode as z, toDisplayString as ne, normalizeProps as le, guardReactiveProps as de } from "vue";
|
|
2
|
+
import { Typography as se, Table as ue, Tooltip as ie } from "ant-design-vue";
|
|
3
|
+
import { useToken as pe } from "ant-design-vue/es/theme/internal";
|
|
4
|
+
import { ApForm as ce } from "../ap-form/index.mjs";
|
|
5
|
+
import { apTableRenderItemMap as me, noRenderAsFormItemValueList as N, apTableFormItemMap as fe } from "./constants.mjs";
|
|
6
6
|
import "../config-provider/index.mjs";
|
|
7
|
-
import { useTablePaging as
|
|
8
|
-
import { isUndefined as
|
|
7
|
+
import { useTablePaging as ge } from "./hooks/use-table-paging.mjs";
|
|
8
|
+
import { isUndefined as T, omit as ye } from "lodash-unified";
|
|
9
9
|
import "./style/ap-table.css";
|
|
10
10
|
import { QuestionCircleOutlined as he } from "@ant-design/icons-vue";
|
|
11
|
-
import { apColumnToColumn as be, getTableRenderType as Ce, getTableRenderProps as
|
|
12
|
-
import
|
|
13
|
-
import { useLocale as
|
|
11
|
+
import { apColumnToColumn as be, getTableRenderType as Ce, getTableRenderProps as Se, getColumnOrder as V, updateFormProps as Fe, getFieldProps as xe, getPlaceholder as Re } from "./utils.mjs";
|
|
12
|
+
import Te from "./hooks/use-table-content-height.mjs";
|
|
13
|
+
import { useLocale as we } from "../config-provider/hooks/use-locale.mjs";
|
|
14
14
|
import { useNamespace as Be } from "../config-provider/hooks/use-namespace.mjs";
|
|
15
|
-
import { useGlobalConfig as
|
|
16
|
-
const
|
|
15
|
+
import { useGlobalConfig as Pe } from "../config-provider/hooks/use-global-config.mjs";
|
|
16
|
+
const ve = {
|
|
17
17
|
key: 0
|
|
18
|
-
}, He = /* @__PURE__ */
|
|
18
|
+
}, He = /* @__PURE__ */ Z({
|
|
19
19
|
name: "ApTable",
|
|
20
20
|
__name: "ap-table",
|
|
21
21
|
props: {
|
|
@@ -104,6 +104,7 @@ const Pe = {
|
|
|
104
104
|
request: {},
|
|
105
105
|
onLoad: {},
|
|
106
106
|
defaultData: {},
|
|
107
|
+
dataSource: {},
|
|
107
108
|
onLoadingChange: {},
|
|
108
109
|
searchForm: {
|
|
109
110
|
type: [Boolean, Object],
|
|
@@ -128,140 +129,152 @@ const Pe = {
|
|
|
128
129
|
default: !1
|
|
129
130
|
}
|
|
130
131
|
},
|
|
131
|
-
setup(
|
|
132
|
-
expose:
|
|
132
|
+
setup(D, {
|
|
133
|
+
expose: W
|
|
133
134
|
}) {
|
|
134
|
-
const
|
|
135
|
-
t:
|
|
136
|
-
} =
|
|
135
|
+
const t = D, w = ee(), [, j] = pe(), {
|
|
136
|
+
t: _
|
|
137
|
+
} = we(), {
|
|
137
138
|
e: g,
|
|
138
139
|
b: u
|
|
139
|
-
} = Be("ap-table"),
|
|
140
|
-
height:
|
|
141
|
-
contentRef:
|
|
142
|
-
} =
|
|
143
|
-
var
|
|
144
|
-
let e = ((
|
|
140
|
+
} = Be("ap-table"), A = Pe("uiMode", "aplus"), {
|
|
141
|
+
height: M,
|
|
142
|
+
contentRef: q
|
|
143
|
+
} = Te(), y = d(() => {
|
|
144
|
+
var o;
|
|
145
|
+
let e = ((o = t.columns) == null ? void 0 : o.filter((a) => !a.hideInTable)) || [];
|
|
145
146
|
return e = e.map((a) => ({
|
|
146
147
|
...be(a),
|
|
147
148
|
customRender({
|
|
148
|
-
value:
|
|
149
|
-
...
|
|
149
|
+
value: n,
|
|
150
|
+
...l
|
|
150
151
|
}) {
|
|
151
|
-
const C = Ce(a),
|
|
152
|
-
value:
|
|
153
|
-
...
|
|
152
|
+
const C = Ce(a), k = me[C], Y = Se(a, {
|
|
153
|
+
value: n,
|
|
154
|
+
...l
|
|
154
155
|
});
|
|
155
|
-
let
|
|
156
|
+
let S = U(a, n, s(k, m(Y, {
|
|
156
157
|
mode: "read"
|
|
157
158
|
}), null));
|
|
158
|
-
return a.customRender && (
|
|
159
|
-
value:
|
|
160
|
-
...
|
|
159
|
+
return a.customRender && (S = a.customRender({
|
|
160
|
+
value: n,
|
|
161
|
+
...l,
|
|
161
162
|
column: a,
|
|
162
|
-
originalNode:
|
|
163
|
-
})),
|
|
163
|
+
originalNode: S
|
|
164
|
+
})), S;
|
|
164
165
|
}
|
|
165
166
|
})), e;
|
|
166
|
-
}),
|
|
167
|
-
var e,
|
|
168
|
-
return ((a = (
|
|
169
|
-
let C =
|
|
170
|
-
return
|
|
171
|
-
})) == null ? void 0 : a.map((
|
|
172
|
-
const
|
|
167
|
+
}), B = d(() => {
|
|
168
|
+
var e, o, a;
|
|
169
|
+
return ((a = (o = (e = t.columns) == null ? void 0 : e.filter((n) => !n.hideInSearch && n.dataIndex && (n.valueType || n.customRenderFormItem) && !N.includes(n.valueType))) == null ? void 0 : o.sort((n, l) => {
|
|
170
|
+
let C = V(n.order);
|
|
171
|
+
return V(l.order) - C;
|
|
172
|
+
})) == null ? void 0 : a.map((n) => {
|
|
173
|
+
const l = Fe(n, xe(n.fieldProps, {}));
|
|
173
174
|
return {
|
|
174
|
-
...
|
|
175
|
+
...n,
|
|
175
176
|
fieldProps: {
|
|
176
|
-
label:
|
|
177
|
-
name:
|
|
178
|
-
...
|
|
177
|
+
label: n.title,
|
|
178
|
+
name: n.dataIndex,
|
|
179
|
+
...l || {},
|
|
179
180
|
// 格式化placeholder
|
|
180
|
-
placeholder: Re(
|
|
181
|
+
placeholder: Re(_, n.valueType, l == null ? void 0 : l.placeholder)
|
|
181
182
|
}
|
|
182
183
|
};
|
|
183
184
|
})) || [];
|
|
184
|
-
}),
|
|
185
|
+
}), H = d(() => r(y).filter((e) => e.sorter === !0).map((e) => e.dataIndex)), K = d(() => r(y).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex)), {
|
|
185
186
|
formRef: h,
|
|
186
|
-
submit:
|
|
187
|
+
submit: P,
|
|
187
188
|
reset: v,
|
|
188
189
|
tableProps: c,
|
|
189
|
-
handleTableChange:
|
|
190
|
+
handleTableChange: $,
|
|
190
191
|
data: b
|
|
191
|
-
} =
|
|
192
|
+
} = ge({
|
|
192
193
|
async request(e) {
|
|
193
|
-
var a,
|
|
194
|
-
const
|
|
195
|
-
return (
|
|
196
|
-
data: (
|
|
197
|
-
total: (
|
|
194
|
+
var a, n;
|
|
195
|
+
const o = await ((a = t.request) == null ? void 0 : a.call(t, e));
|
|
196
|
+
return (n = t.onLoad) == null || n.call(t, (o == null ? void 0 : o.data) || []), {
|
|
197
|
+
data: (o == null ? void 0 : o.data) || [],
|
|
198
|
+
total: (o == null ? void 0 : o.total) || 0
|
|
198
199
|
};
|
|
199
200
|
},
|
|
200
|
-
filterFields:
|
|
201
|
-
sortFields:
|
|
202
|
-
defaultParams:
|
|
203
|
-
defaultData:
|
|
204
|
-
manual:
|
|
205
|
-
defaultCurrent:
|
|
206
|
-
defaultPageSize:
|
|
207
|
-
formatParams:
|
|
208
|
-
}),
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
201
|
+
filterFields: r(K),
|
|
202
|
+
sortFields: r(H),
|
|
203
|
+
defaultParams: t.params,
|
|
204
|
+
defaultData: t.defaultData,
|
|
205
|
+
manual: t.manual,
|
|
206
|
+
defaultCurrent: t.pagination ? t.pagination.defaultCurrent : void 0,
|
|
207
|
+
defaultPageSize: t.pagination ? t.pagination.defaultPageSize : void 0,
|
|
208
|
+
formatParams: t.beforeSearchSubmit
|
|
209
|
+
}), I = d(() => {
|
|
210
|
+
var e;
|
|
211
|
+
return t.scroll ? t.scroll : t.adaptive && (b.value.total > 0 || (e = t.dataSource) != null && e.length) ? {
|
|
212
|
+
y: r(M),
|
|
213
|
+
x: "100%"
|
|
214
|
+
} : {
|
|
215
|
+
x: !0
|
|
216
|
+
};
|
|
217
|
+
}), G = d(() => {
|
|
218
|
+
const e = r(c);
|
|
219
|
+
console.log("xxx", r(I));
|
|
220
|
+
const o = T(t.dataSource) ? e : {
|
|
221
|
+
...e,
|
|
222
|
+
dataSource: t.dataSource,
|
|
223
|
+
onChange: t.onChange
|
|
224
|
+
};
|
|
225
|
+
return {
|
|
226
|
+
...t,
|
|
227
|
+
...o,
|
|
228
|
+
loading: T(t.loading) ? r(c).loading : t.loading,
|
|
229
|
+
pagination: t.pagination === !1 ? !1 : r(c).pagination,
|
|
230
|
+
scroll: r(I)
|
|
231
|
+
};
|
|
232
|
+
}), Q = d(() => [u(), t.card ? null : u("wrapper"), t.adaptive ? u("adaptive") : null].filter(Boolean));
|
|
233
|
+
function U(e, o, a) {
|
|
234
|
+
return N.includes(e.valueType) ? a : e.copyable || e.ellipsis ? s(se.Text, {
|
|
222
235
|
copyable: e.copyable ? {
|
|
223
|
-
text:
|
|
236
|
+
text: o,
|
|
224
237
|
tooltip: !1
|
|
225
238
|
} : !1,
|
|
226
239
|
ellipsis: e.ellipsis ? {
|
|
227
|
-
tooltip:
|
|
240
|
+
tooltip: o
|
|
228
241
|
} : !1,
|
|
229
242
|
content: a
|
|
230
243
|
}, null) : a;
|
|
231
244
|
}
|
|
232
|
-
|
|
233
|
-
var
|
|
234
|
-
(
|
|
245
|
+
ae(() => r(b).loading, (e) => {
|
|
246
|
+
var o;
|
|
247
|
+
(o = t.onLoadingChange) == null || o.call(t, e);
|
|
235
248
|
});
|
|
236
|
-
function
|
|
237
|
-
var
|
|
238
|
-
(
|
|
249
|
+
function J(e) {
|
|
250
|
+
var o, a, n;
|
|
251
|
+
(n = (a = (o = h.value) == null ? void 0 : o.apForm) == null ? void 0 : a.setFieldsValue) == null || n.call(a, e);
|
|
239
252
|
}
|
|
240
|
-
function
|
|
241
|
-
var e,
|
|
242
|
-
return (a = (
|
|
253
|
+
function X() {
|
|
254
|
+
var e, o, a;
|
|
255
|
+
return (a = (o = (e = h.value) == null ? void 0 : e.apForm) == null ? void 0 : o.getFieldsValue) == null ? void 0 : a.call(o, !0);
|
|
243
256
|
}
|
|
244
|
-
return
|
|
245
|
-
submit: () =>
|
|
257
|
+
return W({
|
|
258
|
+
submit: () => P(),
|
|
246
259
|
reset: () => v(),
|
|
247
|
-
setSearchFormValues:
|
|
248
|
-
getSearchFormValues:
|
|
249
|
-
dataSource: d(() =>
|
|
250
|
-
}), (e,
|
|
251
|
-
class:
|
|
252
|
-
}, [e.searchForm !== !1 &&
|
|
260
|
+
setSearchFormValues: J,
|
|
261
|
+
getSearchFormValues: X,
|
|
262
|
+
dataSource: d(() => r(b).records)
|
|
263
|
+
}), (e, o) => (i(), f("div", {
|
|
264
|
+
class: F(Q.value)
|
|
265
|
+
}, [r(T)(e.dataSource) && e.searchForm !== !1 && B.value.length > 0 ? (i(), f("div", {
|
|
253
266
|
key: 0,
|
|
254
|
-
class:
|
|
267
|
+
class: F(e.card ? r(g)("search-wrapper") : null),
|
|
255
268
|
style: x(e.searchFormWrapperStyle)
|
|
256
|
-
}, [s(
|
|
269
|
+
}, [s(r(ce).SearchForm, m(e.searchForm || {}, {
|
|
257
270
|
ref_key: "formRef",
|
|
258
271
|
ref: h,
|
|
259
272
|
"custom-reset": "",
|
|
260
|
-
onSubmit:
|
|
261
|
-
onReset:
|
|
262
|
-
"submit-loading":
|
|
263
|
-
}),
|
|
264
|
-
default: p(() => [(i(!0), f(
|
|
273
|
+
onSubmit: r(P),
|
|
274
|
+
onReset: r(v),
|
|
275
|
+
"submit-loading": r(c).loading
|
|
276
|
+
}), E({
|
|
277
|
+
default: p(() => [(i(!0), f(te, null, O(B.value, (a) => (i(), oe(re(a.customRenderFormItem ? a.customRenderFormItem(a) : r(fe)[a.valueType || "text"]), m({
|
|
265
278
|
key: a.dataIndex,
|
|
266
279
|
ref_for: !0
|
|
267
280
|
}, a.fieldProps || {}, {
|
|
@@ -272,36 +285,36 @@ const Pe = {
|
|
|
272
285
|
name: "extra",
|
|
273
286
|
fn: p(() => [R(e.$slots, "searchFormExtra")]),
|
|
274
287
|
key: "0"
|
|
275
|
-
} : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) :
|
|
288
|
+
} : void 0]), 1040, ["onSubmit", "onReset", "submit-loading"])], 6)) : L("", !0), z("div", {
|
|
276
289
|
ref_key: "contentRef",
|
|
277
|
-
ref:
|
|
278
|
-
class:
|
|
290
|
+
ref: q,
|
|
291
|
+
class: F([r(g)("table-wrapper"), e.card ? r(g)("table-wrapper-card") : null]),
|
|
279
292
|
style: x(e.tableWrapperStyle)
|
|
280
|
-
}, [R(e.$slots, "title"), s(
|
|
281
|
-
class:
|
|
282
|
-
},
|
|
283
|
-
onChange:
|
|
293
|
+
}, [R(e.$slots, "title"), s(r(ue), m({
|
|
294
|
+
class: r(A) === "admin" ? r(u)("table-admin") : r(u)("table")
|
|
295
|
+
}, G.value, {
|
|
296
|
+
onChange: r($),
|
|
284
297
|
columns: y.value
|
|
285
|
-
}),
|
|
298
|
+
}), E({
|
|
286
299
|
headerCell: p(({
|
|
287
300
|
column: a,
|
|
288
|
-
title:
|
|
289
|
-
}) => [a.tooltip ? (i(), f("span",
|
|
301
|
+
title: n
|
|
302
|
+
}) => [a.tooltip ? (i(), f("span", ve, [z("span", null, ne(n), 1), s(r(ie), {
|
|
290
303
|
title: a.tooltip,
|
|
291
304
|
placement: "bottom"
|
|
292
305
|
}, {
|
|
293
|
-
default: p(() => [s(
|
|
306
|
+
default: p(() => [s(r(he), {
|
|
294
307
|
style: x({
|
|
295
308
|
paddingLeft: "4px",
|
|
296
|
-
color:
|
|
309
|
+
color: r(j).colorPrimary
|
|
297
310
|
})
|
|
298
311
|
}, null, 8, ["style"])]),
|
|
299
312
|
_: 2
|
|
300
|
-
}, 1032, ["title"])])) :
|
|
313
|
+
}, 1032, ["title"])])) : L("", !0)]),
|
|
301
314
|
_: 2
|
|
302
|
-
}, [
|
|
303
|
-
name:
|
|
304
|
-
fn: p((
|
|
315
|
+
}, [O(r(ye)(w, ["title", "searchFormExtra"]), (a, n) => ({
|
|
316
|
+
name: n,
|
|
317
|
+
fn: p((l) => [R(e.$slots, n, le(de(l || {})))])
|
|
305
318
|
}))]), 1040, ["class", "onChange", "columns"])], 6)], 2));
|
|
306
319
|
}
|
|
307
320
|
});
|
|
@@ -9,7 +9,9 @@ import { MouseEventHandler, FocusEventHandler, KeyboardEventHandler, Composition
|
|
|
9
9
|
import { Dayjs } from 'dayjs';
|
|
10
10
|
import { PickerLocale } from 'ant-design-vue/es/date-picker/generatePicker';
|
|
11
11
|
import { AlignType } from 'ant-design-vue/es/vc-align/interface';
|
|
12
|
-
import {
|
|
12
|
+
import { LiteralUnion } from '../type';
|
|
13
|
+
import { ApFormatPresetType } from '../ap-field/date/interface';
|
|
14
|
+
import { PresetDate, PanelMode, RangeValue, OnPanelChange, EventValue, DisabledTimes } from 'ant-design-vue/es/vc-picker/interface';
|
|
13
15
|
import { VueNode, LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
14
16
|
import { MonthCellRender } from 'ant-design-vue/es/vc-picker/panels/MonthPanel/MonthBody';
|
|
15
17
|
import { SharedTimeProps } from 'ant-design-vue/es/vc-picker/panels/TimePanel';
|
|
@@ -7861,7 +7863,7 @@ export declare const apTableRenderItemMap: {
|
|
|
7861
7863
|
type: PropType<string>;
|
|
7862
7864
|
};
|
|
7863
7865
|
format: {
|
|
7864
|
-
type: PropType<string
|
|
7866
|
+
type: PropType<LiteralUnion<ApFormatPresetType, string>>;
|
|
7865
7867
|
default: string;
|
|
7866
7868
|
};
|
|
7867
7869
|
popupStyle: {
|
|
@@ -7914,7 +7916,7 @@ export declare const apTableRenderItemMap: {
|
|
|
7914
7916
|
default: string;
|
|
7915
7917
|
};
|
|
7916
7918
|
timezone: {
|
|
7917
|
-
type: PropType<"
|
|
7919
|
+
type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
|
|
7918
7920
|
};
|
|
7919
7921
|
}>> & {
|
|
7920
7922
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -8066,7 +8068,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8066
8068
|
type: PropType<string>;
|
|
8067
8069
|
};
|
|
8068
8070
|
format: {
|
|
8069
|
-
type: PropType<string
|
|
8071
|
+
type: PropType<LiteralUnion<ApFormatPresetType, string>>;
|
|
8070
8072
|
default: string;
|
|
8071
8073
|
};
|
|
8072
8074
|
popupStyle: {
|
|
@@ -8119,7 +8121,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8119
8121
|
default: string;
|
|
8120
8122
|
};
|
|
8121
8123
|
timezone: {
|
|
8122
|
-
type: PropType<"
|
|
8124
|
+
type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
|
|
8123
8125
|
};
|
|
8124
8126
|
}>> & {
|
|
8125
8127
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -8145,7 +8147,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8145
8147
|
}> | null;
|
|
8146
8148
|
allowClear: boolean;
|
|
8147
8149
|
defaultOpen: boolean;
|
|
8148
|
-
format: string
|
|
8150
|
+
format: LiteralUnion<ApFormatPresetType, string>;
|
|
8149
8151
|
inputReadOnly: boolean;
|
|
8150
8152
|
showToday: boolean;
|
|
8151
8153
|
showTime: boolean | SharedTimeProps<Dayjs>;
|
|
@@ -8303,7 +8305,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8303
8305
|
type: PropType<string>;
|
|
8304
8306
|
};
|
|
8305
8307
|
format: {
|
|
8306
|
-
type: PropType<string
|
|
8308
|
+
type: PropType<LiteralUnion<ApFormatPresetType, string>>;
|
|
8307
8309
|
default: string;
|
|
8308
8310
|
};
|
|
8309
8311
|
popupStyle: {
|
|
@@ -8356,7 +8358,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8356
8358
|
default: string;
|
|
8357
8359
|
};
|
|
8358
8360
|
timezone: {
|
|
8359
|
-
type: PropType<"
|
|
8361
|
+
type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
|
|
8360
8362
|
};
|
|
8361
8363
|
}>> & {
|
|
8362
8364
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -8382,7 +8384,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8382
8384
|
}> | null;
|
|
8383
8385
|
allowClear: boolean;
|
|
8384
8386
|
defaultOpen: boolean;
|
|
8385
|
-
format: string
|
|
8387
|
+
format: LiteralUnion<ApFormatPresetType, string>;
|
|
8386
8388
|
inputReadOnly: boolean;
|
|
8387
8389
|
showToday: boolean;
|
|
8388
8390
|
showTime: boolean | SharedTimeProps<Dayjs>;
|
|
@@ -8537,7 +8539,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8537
8539
|
type: PropType<string>;
|
|
8538
8540
|
};
|
|
8539
8541
|
format: {
|
|
8540
|
-
type: PropType<string
|
|
8542
|
+
type: PropType<LiteralUnion<ApFormatPresetType, string>>;
|
|
8541
8543
|
default: string;
|
|
8542
8544
|
};
|
|
8543
8545
|
popupStyle: {
|
|
@@ -8590,7 +8592,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8590
8592
|
default: string;
|
|
8591
8593
|
};
|
|
8592
8594
|
timezone: {
|
|
8593
|
-
type: PropType<"
|
|
8595
|
+
type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
|
|
8594
8596
|
};
|
|
8595
8597
|
}>> & {
|
|
8596
8598
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -8618,7 +8620,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8618
8620
|
}> | null;
|
|
8619
8621
|
allowClear: boolean;
|
|
8620
8622
|
defaultOpen: boolean;
|
|
8621
|
-
format: string
|
|
8623
|
+
format: LiteralUnion<ApFormatPresetType, string>;
|
|
8622
8624
|
inputReadOnly: boolean;
|
|
8623
8625
|
showToday: boolean;
|
|
8624
8626
|
showTime: boolean | SharedTimeProps<Dayjs>;
|
|
@@ -8804,7 +8806,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8804
8806
|
type: PropType<string>;
|
|
8805
8807
|
};
|
|
8806
8808
|
format: {
|
|
8807
|
-
type: PropType<
|
|
8809
|
+
type: PropType<LiteralUnion<ApFormatPresetType, string>>;
|
|
8808
8810
|
default: string;
|
|
8809
8811
|
};
|
|
8810
8812
|
popupStyle: {
|
|
@@ -8858,7 +8860,7 @@ export declare const apTableRenderItemMap: {
|
|
|
8858
8860
|
default: string;
|
|
8859
8861
|
};
|
|
8860
8862
|
timezone: {
|
|
8861
|
-
type: PropType<"
|
|
8863
|
+
type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
|
|
8862
8864
|
};
|
|
8863
8865
|
}>> & {
|
|
8864
8866
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9017,7 +9019,7 @@ export declare const apTableRenderItemMap: {
|
|
|
9017
9019
|
type: PropType<string>;
|
|
9018
9020
|
};
|
|
9019
9021
|
format: {
|
|
9020
|
-
type: PropType<
|
|
9022
|
+
type: PropType<LiteralUnion<ApFormatPresetType, string>>;
|
|
9021
9023
|
default: string;
|
|
9022
9024
|
};
|
|
9023
9025
|
popupStyle: {
|
|
@@ -9071,7 +9073,7 @@ export declare const apTableRenderItemMap: {
|
|
|
9071
9073
|
default: string;
|
|
9072
9074
|
};
|
|
9073
9075
|
timezone: {
|
|
9074
|
-
type: PropType<"
|
|
9076
|
+
type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
|
|
9075
9077
|
};
|
|
9076
9078
|
}>> & {
|
|
9077
9079
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9104,7 +9106,7 @@ export declare const apTableRenderItemMap: {
|
|
|
9104
9106
|
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
9105
9107
|
[key: string]: any;
|
|
9106
9108
|
}> | null;
|
|
9107
|
-
format:
|
|
9109
|
+
format: LiteralUnion<ApFormatPresetType, string>;
|
|
9108
9110
|
inputReadOnly: boolean;
|
|
9109
9111
|
emptyText: string;
|
|
9110
9112
|
}, true, {}, {}, {
|
|
@@ -9267,7 +9269,7 @@ export declare const apTableRenderItemMap: {
|
|
|
9267
9269
|
type: PropType<string>;
|
|
9268
9270
|
};
|
|
9269
9271
|
format: {
|
|
9270
|
-
type: PropType<
|
|
9272
|
+
type: PropType<LiteralUnion<ApFormatPresetType, string>>;
|
|
9271
9273
|
default: string;
|
|
9272
9274
|
};
|
|
9273
9275
|
popupStyle: {
|
|
@@ -9321,7 +9323,7 @@ export declare const apTableRenderItemMap: {
|
|
|
9321
9323
|
default: string;
|
|
9322
9324
|
};
|
|
9323
9325
|
timezone: {
|
|
9324
|
-
type: PropType<"
|
|
9326
|
+
type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
|
|
9325
9327
|
};
|
|
9326
9328
|
}>> & {
|
|
9327
9329
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9354,7 +9356,7 @@ export declare const apTableRenderItemMap: {
|
|
|
9354
9356
|
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
9355
9357
|
[key: string]: any;
|
|
9356
9358
|
}> | null;
|
|
9357
|
-
format:
|
|
9359
|
+
format: LiteralUnion<ApFormatPresetType, string>;
|
|
9358
9360
|
inputReadOnly: boolean;
|
|
9359
9361
|
emptyText: string;
|
|
9360
9362
|
}>;
|
|
@@ -9514,7 +9516,7 @@ export declare const apTableRenderItemMap: {
|
|
|
9514
9516
|
type: PropType<string>;
|
|
9515
9517
|
};
|
|
9516
9518
|
format: {
|
|
9517
|
-
type: PropType<
|
|
9519
|
+
type: PropType<LiteralUnion<ApFormatPresetType, string>>;
|
|
9518
9520
|
default: string;
|
|
9519
9521
|
};
|
|
9520
9522
|
popupStyle: {
|
|
@@ -9568,7 +9570,7 @@ export declare const apTableRenderItemMap: {
|
|
|
9568
9570
|
default: string;
|
|
9569
9571
|
};
|
|
9570
9572
|
timezone: {
|
|
9571
|
-
type: PropType<"
|
|
9573
|
+
type: PropType<"LD" | "PR" | "MS" | "DB" | "SH" | "SU" | "LA" | "NY">;
|
|
9572
9574
|
};
|
|
9573
9575
|
}>> & {
|
|
9574
9576
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9603,7 +9605,7 @@ export declare const apTableRenderItemMap: {
|
|
|
9603
9605
|
}> | null | undefined)[] | VNode<RendererNode, RendererElement, {
|
|
9604
9606
|
[key: string]: any;
|
|
9605
9607
|
}> | null;
|
|
9606
|
-
format:
|
|
9608
|
+
format: LiteralUnion<ApFormatPresetType, string>;
|
|
9607
9609
|
inputReadOnly: boolean;
|
|
9608
9610
|
emptyText: string;
|
|
9609
9611
|
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
@@ -175,6 +175,10 @@ export type ApTableProps<RecordType = any, ParamsType = any> = Omit<TableProps<R
|
|
|
175
175
|
* 表格的默认数据源,这些数据源将会在第一次请求后被替换
|
|
176
176
|
*/
|
|
177
177
|
defaultData?: RecordType[];
|
|
178
|
+
/**
|
|
179
|
+
* 表格的最终数据源(设置后request和defaultData都不会生效),离线表格的效果
|
|
180
|
+
*/
|
|
181
|
+
dataSource?: RecordType[];
|
|
178
182
|
/**
|
|
179
183
|
* 表格loading状态变更后触发
|
|
180
184
|
* @param loading
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ApExpandAlertProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApExpandAlertProps>, {
|
|
5
|
+
/**
|
|
6
|
+
* Alert类型
|
|
7
|
+
*/
|
|
8
|
+
type: string;
|
|
9
|
+
/**
|
|
10
|
+
* 数据
|
|
11
|
+
*/
|
|
12
|
+
data: () => never[];
|
|
13
|
+
/**
|
|
14
|
+
* 前缀
|
|
15
|
+
*/
|
|
16
|
+
prefix: string;
|
|
17
|
+
/**
|
|
18
|
+
* Tooltip 提示标题
|
|
19
|
+
*/
|
|
20
|
+
tipTitle: string;
|
|
21
|
+
/**
|
|
22
|
+
* 分隔符
|
|
23
|
+
*/
|
|
24
|
+
separator: string;
|
|
25
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
26
|
+
choose: (...args: any[]) => void;
|
|
27
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApExpandAlertProps>, {
|
|
28
|
+
/**
|
|
29
|
+
* Alert类型
|
|
30
|
+
*/
|
|
31
|
+
type: string;
|
|
32
|
+
/**
|
|
33
|
+
* 数据
|
|
34
|
+
*/
|
|
35
|
+
data: () => never[];
|
|
36
|
+
/**
|
|
37
|
+
* 前缀
|
|
38
|
+
*/
|
|
39
|
+
prefix: string;
|
|
40
|
+
/**
|
|
41
|
+
* Tooltip 提示标题
|
|
42
|
+
*/
|
|
43
|
+
tipTitle: string;
|
|
44
|
+
/**
|
|
45
|
+
* 分隔符
|
|
46
|
+
*/
|
|
47
|
+
separator: string;
|
|
48
|
+
}>>> & {
|
|
49
|
+
onChoose?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
type: "success" | "error" | "info" | "warning" | undefined;
|
|
52
|
+
data: string | any[];
|
|
53
|
+
prefix: string;
|
|
54
|
+
separator: string;
|
|
55
|
+
tipTitle: string;
|
|
56
|
+
}, {}>, {
|
|
57
|
+
default?(_: {}): any;
|
|
58
|
+
}>;
|
|
59
|
+
export default _default;
|
|
60
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
61
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
62
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
63
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
64
|
+
} : {
|
|
65
|
+
type: PropType<T[K]>;
|
|
66
|
+
required: true;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
type __VLS_WithDefaults<P, D> = {
|
|
70
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
71
|
+
default: D[K];
|
|
72
|
+
}> : P[K];
|
|
73
|
+
};
|
|
74
|
+
type __VLS_Prettify<T> = {
|
|
75
|
+
[K in keyof T]: T[K];
|
|
76
|
+
} & {};
|
|
77
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
78
|
+
new (): {
|
|
79
|
+
$slots: S;
|
|
80
|
+
};
|
|
81
|
+
};
|