@aplus-frontend/ui 0.0.1 → 0.0.3
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/ap-field/date/index.vue.d.ts +63 -5
- package/es/src/ap-field/date/index.vue.mjs +115 -46
- package/es/src/ap-field/date-range/index.vue.d.ts +68 -6
- package/es/src/ap-field/date-range/index.vue.mjs +135 -62
- package/es/src/ap-field/interface.d.ts +3 -7
- package/es/src/ap-field/select/index.vue.d.ts +45 -179
- package/es/src/ap-field/select/index.vue.mjs +137 -66
- package/es/src/ap-form/items/date/index.vue.mjs +27 -29
- package/es/src/ap-form/items/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/date-range/index.vue.mjs +27 -29
- package/es/src/ap-form/items/interface.d.ts +1 -1
- package/es/src/ap-form/items/select/index.vue.mjs +32 -32
- package/es/src/ap-table/ap-table.vue.d.ts +7 -7
- package/es/src/ap-table/ap-table.vue.mjs +141 -117
- package/es/src/ap-table/constants.d.ts +3092 -1827
- package/es/src/ap-table/hooks/use-table-paging.mjs +23 -23
- package/es/src/ap-table/interface.d.ts +21 -13
- package/es/src/ap-table/utils.d.ts +47 -0
- package/es/src/ap-table/utils.mjs +68 -20
- package/es/src/ap-tag/style/ap-tag-group.css +1 -0
- package/es/src/ap-tag/style/ap-tag.css +1 -0
- package/es/src/pro-form/components/form-action.vue2.mjs +37 -35
- package/es/src/pro-form/hooks/use-advanced.mjs +45 -45
- package/es/src/pro-table/style/pro-table.css +3 -0
- package/es/src/theme/antd-global-overwrite/admin/button.css +0 -11
- package/es/src/theme/antd-global-overwrite/admin/index.css +35 -31
- package/es/src/theme/antd-global-overwrite/admin/table.css +35 -20
- package/es/src/theme/antd-global-overwrite/aplus/button.css +0 -11
- package/es/src/theme/antd-global-overwrite/aplus/index.css +35 -31
- package/es/src/theme/antd-global-overwrite/aplus/table.css +35 -20
- package/es/src/theme/ap-tag/ap-tag-group.css +1 -0
- package/es/src/theme/ap-tag/ap-tag.css +1 -0
- package/es/src/theme/pro-table/pro-table.css +3 -0
- package/es/src/utils/index.d.ts +8 -0
- package/es/src/utils/index.mjs +40 -32
- package/es/src/work-order-modal/work-order-modal.vue.mjs +6 -8
- package/lib/src/ap-field/date/index.vue.d.ts +63 -5
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +68 -6
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +3 -7
- package/lib/src/ap-field/select/index.vue.d.ts +45 -179
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/interface.d.ts +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +7 -7
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +3092 -1827
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/ap-table/interface.d.ts +21 -13
- package/lib/src/ap-table/utils.d.ts +47 -0
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-tag/style/ap-tag-group.css +1 -0
- package/lib/src/ap-tag/style/ap-tag.css +1 -0
- package/lib/src/pro-form/components/form-action.vue2.js +1 -1
- package/lib/src/pro-form/hooks/use-advanced.js +1 -1
- package/lib/src/pro-table/style/pro-table.css +3 -0
- package/lib/src/theme/antd-global-overwrite/admin/button.css +0 -11
- package/lib/src/theme/antd-global-overwrite/admin/index.css +35 -31
- package/lib/src/theme/antd-global-overwrite/admin/table.css +35 -20
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +0 -11
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +35 -31
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +35 -20
- package/lib/src/theme/ap-tag/ap-tag-group.css +1 -0
- package/lib/src/theme/ap-tag/ap-tag.css +1 -0
- package/lib/src/theme/pro-table/pro-table.css +3 -0
- package/lib/src/utils/index.d.ts +8 -0
- package/lib/src/utils/index.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as c, ref as m, computed as b, openBlock as h, createBlock as v, normalizeProps as r, guardReactiveProps as a, unref as s, withCtx as n, createVNode as B, createSlots as _, renderList as x, renderSlot as y } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { omit as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
4
|
+
import { isUndefined as g, omit as S } from "lodash-unified";
|
|
5
|
+
import C from "../../ap-form-item.vue.mjs";
|
|
6
|
+
import F from "../../../ap-field/select/index.vue.mjs";
|
|
7
|
+
const q = /* @__PURE__ */ c({
|
|
8
8
|
name: "ApFormItemSelect",
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -48,42 +48,42 @@ const z = /* @__PURE__ */ b({
|
|
|
48
48
|
placeholder: {},
|
|
49
49
|
disabled: { type: Boolean, default: !1 }
|
|
50
50
|
},
|
|
51
|
-
setup(
|
|
52
|
-
const
|
|
53
|
-
|
|
51
|
+
setup(p, { expose: i }) {
|
|
52
|
+
const o = p, t = m();
|
|
53
|
+
i({
|
|
54
54
|
focus: () => {
|
|
55
55
|
var e;
|
|
56
|
-
(e =
|
|
56
|
+
(e = t.value) == null || e.focus();
|
|
57
57
|
},
|
|
58
58
|
blur: () => {
|
|
59
59
|
var e;
|
|
60
|
-
(e =
|
|
60
|
+
(e = t.value) == null || e.blur();
|
|
61
61
|
}
|
|
62
|
-
})
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
]
|
|
82
|
-
|
|
62
|
+
});
|
|
63
|
+
const f = b(() => {
|
|
64
|
+
var e, l;
|
|
65
|
+
return {
|
|
66
|
+
placeholder: o.placeholder,
|
|
67
|
+
disabled: o.disabled,
|
|
68
|
+
...o.field || {},
|
|
69
|
+
bordered: o.bordered ? !1 : g((e = o.field) == null ? void 0 : e.bordered) ? !0 : (l = o.field) == null ? void 0 : l.bordered
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
return (e, l) => (h(), v(C, r(a(s(S)(o, ["field", "placeholder", "disabled"]))), {
|
|
73
|
+
default: n(() => [
|
|
74
|
+
B(s(F), r(a(f.value)), _({ _: 2 }, [
|
|
75
|
+
x(e.$slots, ($, d) => ({
|
|
76
|
+
name: d,
|
|
77
|
+
fn: n((u) => [
|
|
78
|
+
y(e.$slots, d, r(a(u || {})))
|
|
79
|
+
])
|
|
80
|
+
}))
|
|
81
|
+
]), 1040)
|
|
82
|
+
]),
|
|
83
83
|
_: 3
|
|
84
84
|
}, 16));
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
export {
|
|
88
|
-
|
|
88
|
+
q as default
|
|
89
89
|
};
|
|
@@ -23,6 +23,11 @@ type ApTableSlots = {
|
|
|
23
23
|
customFilterIcon?: any;
|
|
24
24
|
customFilterDropdown?: any;
|
|
25
25
|
};
|
|
26
|
+
/**
|
|
27
|
+
* 设置查询表单值
|
|
28
|
+
* @param fields
|
|
29
|
+
*/
|
|
30
|
+
declare function setSearchFormValues(fields: any): void;
|
|
26
31
|
declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTableProps<any, any, "text">>, {
|
|
27
32
|
bordered: boolean;
|
|
28
33
|
childrenColumnName: string;
|
|
@@ -44,6 +49,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
44
49
|
}>, {
|
|
45
50
|
submit: () => void;
|
|
46
51
|
reset: () => void;
|
|
52
|
+
setSearchFormValues: typeof setSearchFormValues;
|
|
47
53
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApTableProps<any, any, "text">>, {
|
|
48
54
|
bordered: boolean;
|
|
49
55
|
childrenColumnName: string;
|
|
@@ -139,13 +145,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
139
145
|
builtinPlacements: {
|
|
140
146
|
type: PropType<BuildInPlacements>;
|
|
141
147
|
default: BuildInPlacements;
|
|
142
|
-
};
|
|
143
|
-
* 获取需要在查询表单中显示的字段
|
|
144
|
-
* 1. 在搜索表单中未隐藏
|
|
145
|
-
* 2. 有dataIndex(映射到value)
|
|
146
|
-
* 3. 有valueType 指定渲染的表单
|
|
147
|
-
* 4. 没有在非表单组件名单中
|
|
148
|
-
*/
|
|
148
|
+
};
|
|
149
149
|
children: ArrayConstructor;
|
|
150
150
|
onVisibleChange: PropType<(vis: boolean) => void>;
|
|
151
151
|
'onUpdate:visible': PropType<(vis: boolean) => void>;
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Typography as
|
|
3
|
-
import { ApForm as
|
|
4
|
-
import { apTableRenderItemMap as
|
|
1
|
+
import { defineComponent as U, computed as u, createVNode as d, mergeProps as f, unref as n, watch as J, openBlock as i, createElementBlock as m, normalizeClass as b, normalizeStyle as T, withCtx as y, Fragment as X, renderList as B, createBlock as Y, resolveDynamicComponent as Z, createCommentVNode as I, createElementVNode as v, renderSlot as P, createSlots as ee, toDisplayString as ae, normalizeProps as te, guardReactiveProps as oe } from "vue";
|
|
2
|
+
import { Typography as ne, Table as le, Tooltip as re } from "ant-design-vue";
|
|
3
|
+
import { ApForm as de } from "../ap-form/index.mjs";
|
|
4
|
+
import { apTableRenderItemMap as se, noRenderAsFormItemValueList as k, apTableFormItemMap as ue } from "./constants.mjs";
|
|
5
5
|
import "../config-provider/index.mjs";
|
|
6
|
-
import { useTablePaging as
|
|
7
|
-
import { omit as
|
|
6
|
+
import { useTablePaging as ie } from "./hooks/use-table-paging.mjs";
|
|
7
|
+
import { omit as O, isUndefined as pe } from "lodash-unified";
|
|
8
8
|
import "./style/ap-table.css";
|
|
9
|
-
import { QuestionCircleOutlined as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
|
|
9
|
+
import { QuestionCircleOutlined as ce } from "@ant-design/icons-vue";
|
|
10
|
+
import { getFieldProps as z, getColumnOrder as E, getPlaceholder as fe } from "./utils.mjs";
|
|
11
|
+
import { useLocale as me } from "../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useNamespace as ye } from "../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
import { useGlobalConfig as ge } from "../config-provider/hooks/use-global-config.mjs";
|
|
14
|
+
const he = {
|
|
13
15
|
key: 0
|
|
14
|
-
},
|
|
16
|
+
}, Oe = /* @__PURE__ */ U({
|
|
15
17
|
name: "ApTable",
|
|
16
18
|
__name: "ap-table",
|
|
17
19
|
props: {
|
|
@@ -120,148 +122,170 @@ const ie = {
|
|
|
120
122
|
default: "middle"
|
|
121
123
|
}
|
|
122
124
|
},
|
|
123
|
-
setup(
|
|
124
|
-
expose:
|
|
125
|
+
setup(L, {
|
|
126
|
+
expose: N
|
|
125
127
|
}) {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
128
|
+
const l = L, {
|
|
129
|
+
t: D
|
|
130
|
+
} = me(), {
|
|
131
|
+
e: C,
|
|
132
|
+
b: g
|
|
133
|
+
} = ye("ap-table"), V = ge("uiMode"), h = u(() => {
|
|
134
|
+
var o;
|
|
135
|
+
let e = ((o = l.columns) == null ? void 0 : o.filter((a) => !a.hideInTable)) || [];
|
|
136
|
+
return e = e.map((a) => ({
|
|
137
|
+
...a,
|
|
134
138
|
customRender({
|
|
135
|
-
value:
|
|
136
|
-
...
|
|
139
|
+
value: t,
|
|
140
|
+
...r
|
|
137
141
|
}) {
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
column: e
|
|
142
|
+
let s;
|
|
143
|
+
if (a.customRender)
|
|
144
|
+
s = a.customRender({
|
|
145
|
+
value: t,
|
|
146
|
+
...r,
|
|
147
|
+
column: a
|
|
145
148
|
});
|
|
146
149
|
else {
|
|
147
|
-
const
|
|
148
|
-
|
|
150
|
+
const R = se[a.valueType || "text"], c = z(a.fieldProps, {
|
|
151
|
+
value: t,
|
|
152
|
+
...r
|
|
153
|
+
}), $ = (c == null ? void 0 : c.field) || c || {}, H = a.valueType === "switch", G = a.valueType === "index", Q = H ? {
|
|
154
|
+
checked: t
|
|
149
155
|
} : {
|
|
150
|
-
value:
|
|
156
|
+
value: G ? r.index + 1 : t
|
|
151
157
|
};
|
|
152
|
-
|
|
158
|
+
s = d(R, f(O($, ["request"]), Q, {
|
|
153
159
|
mode: "read"
|
|
154
160
|
}), null);
|
|
155
161
|
}
|
|
156
|
-
return
|
|
162
|
+
return _(a, t, s);
|
|
157
163
|
}
|
|
158
|
-
})),
|
|
159
|
-
}),
|
|
160
|
-
var
|
|
161
|
-
return ((
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
164
|
+
})), e;
|
|
165
|
+
}), S = u(() => {
|
|
166
|
+
var e, o, a;
|
|
167
|
+
return ((a = (o = (e = l.columns) == null ? void 0 : e.filter((t) => !t.hideInSearch && t.dataIndex && (t.valueType || t.customRenderFormItem) && !k.includes(t.valueType))) == null ? void 0 : o.sort((t, r) => {
|
|
168
|
+
let s = E(t.order);
|
|
169
|
+
return E(r.order) - s;
|
|
170
|
+
})) == null ? void 0 : a.map((t) => {
|
|
171
|
+
const r = z(t.fieldProps);
|
|
172
|
+
return {
|
|
173
|
+
...t,
|
|
174
|
+
fieldProps: {
|
|
175
|
+
...r || {},
|
|
176
|
+
label: t.title,
|
|
177
|
+
name: t.dataIndex,
|
|
178
|
+
// 格式化placeholder
|
|
179
|
+
placeholder: fe(D, t.valueType, r == null ? void 0 : r.placeholder)
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
})) || [];
|
|
183
|
+
}), j = u(() => n(h).filter((e) => e.sorter === !0).map((e) => e.dataIndex)), W = u(() => n(h).filter((e) => e.filters && !e.onFilter).map((e) => e.dataIndex)), {
|
|
184
|
+
formRef: w,
|
|
185
|
+
submit: x,
|
|
186
|
+
reset: F,
|
|
187
|
+
tableProps: p,
|
|
188
|
+
handleTableChange: q,
|
|
189
|
+
data: A
|
|
190
|
+
} = ie({
|
|
191
|
+
async request(e) {
|
|
192
|
+
var a, t;
|
|
193
|
+
const o = await ((a = l.request) == null ? void 0 : a.call(l, e));
|
|
194
|
+
return (t = l.onLoad) == null || t.call(l, (o == null ? void 0 : o.data) || []), {
|
|
195
|
+
data: (o == null ? void 0 : o.data) || [],
|
|
196
|
+
total: (o == null ? void 0 : o.total) || 0
|
|
182
197
|
};
|
|
183
198
|
},
|
|
184
|
-
filterFields:
|
|
185
|
-
sortFields:
|
|
186
|
-
defaultParams:
|
|
187
|
-
defaultData:
|
|
188
|
-
manual:
|
|
189
|
-
defaultCurrent:
|
|
190
|
-
defaultPageSize:
|
|
191
|
-
formatParams:
|
|
192
|
-
}),
|
|
193
|
-
...
|
|
194
|
-
...
|
|
195
|
-
loading:
|
|
196
|
-
pagination:
|
|
199
|
+
filterFields: n(W),
|
|
200
|
+
sortFields: n(j),
|
|
201
|
+
defaultParams: l.params,
|
|
202
|
+
defaultData: l.defaultData,
|
|
203
|
+
manual: l.manual,
|
|
204
|
+
defaultCurrent: l.pagination ? l.pagination.defaultCurrent : void 0,
|
|
205
|
+
defaultPageSize: l.pagination ? l.pagination.defaultPageSize : void 0,
|
|
206
|
+
formatParams: l.beforeSearchSubmit
|
|
207
|
+
}), M = u(() => ({
|
|
208
|
+
...l,
|
|
209
|
+
...n(p),
|
|
210
|
+
loading: pe(l.loading) ? n(p).loading : l.loading,
|
|
211
|
+
pagination: l.pagination === !1 ? !1 : n(p).pagination
|
|
197
212
|
}));
|
|
198
|
-
function
|
|
199
|
-
return
|
|
200
|
-
copyable:
|
|
201
|
-
text:
|
|
213
|
+
function _(e, o, a) {
|
|
214
|
+
return k.includes(e.valueType) ? a : e.copyable || e.ellipsis ? d(ne.Text, {
|
|
215
|
+
copyable: e.copyable ? {
|
|
216
|
+
text: o,
|
|
202
217
|
tooltip: !1
|
|
203
218
|
} : !1,
|
|
204
|
-
ellipsis:
|
|
205
|
-
tooltip:
|
|
219
|
+
ellipsis: e.ellipsis ? {
|
|
220
|
+
tooltip: o
|
|
206
221
|
} : !1,
|
|
207
|
-
content:
|
|
208
|
-
}, null) :
|
|
222
|
+
content: a
|
|
223
|
+
}, null) : a;
|
|
224
|
+
}
|
|
225
|
+
J(() => n(A).loading, (e) => {
|
|
226
|
+
var o;
|
|
227
|
+
(o = l.onLoadingChange) == null || o.call(l, e);
|
|
228
|
+
});
|
|
229
|
+
function K(e) {
|
|
230
|
+
var o, a, t;
|
|
231
|
+
(t = (a = (o = w.value) == null ? void 0 : o.apForm) == null ? void 0 : a.setFieldsValue) == null || t.call(a, e);
|
|
209
232
|
}
|
|
210
|
-
return
|
|
211
|
-
submit: () =>
|
|
212
|
-
reset: () =>
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
233
|
+
return N({
|
|
234
|
+
submit: () => x(),
|
|
235
|
+
reset: () => F(),
|
|
236
|
+
setSearchFormValues: K
|
|
237
|
+
}), (e, o) => (i(), m("div", {
|
|
238
|
+
class: b(e.card ? null : n(g)("wrapper"))
|
|
239
|
+
}, [e.searchForm !== !1 && S.value.length > 0 ? (i(), m("div", {
|
|
216
240
|
key: 0,
|
|
217
|
-
class:
|
|
218
|
-
style:
|
|
219
|
-
}, [
|
|
241
|
+
class: b(e.card ? n(C)("search-wrapper") : null),
|
|
242
|
+
style: T(e.searchFormWrapperStyle)
|
|
243
|
+
}, [d(n(de).SearchForm, f(e.searchForm || {}, {
|
|
220
244
|
ref_key: "formRef",
|
|
221
|
-
ref:
|
|
245
|
+
ref: w,
|
|
222
246
|
"custom-reset": "",
|
|
223
|
-
onSubmit:
|
|
224
|
-
onReset:
|
|
225
|
-
"submit-loading":
|
|
247
|
+
onSubmit: n(x),
|
|
248
|
+
onReset: n(F),
|
|
249
|
+
"submit-loading": n(p).loading
|
|
226
250
|
}), {
|
|
227
|
-
default:
|
|
228
|
-
key:
|
|
251
|
+
default: y(() => [(i(!0), m(X, null, B(S.value, (a) => (i(), Y(Z(a.customRenderFormItem ? a.customRenderFormItem(a) : n(ue)[a.valueType || "text"]), f({
|
|
252
|
+
key: a.dataIndex,
|
|
229
253
|
ref_for: !0
|
|
230
|
-
},
|
|
231
|
-
span:
|
|
254
|
+
}, a.fieldProps || {}, {
|
|
255
|
+
span: a.span
|
|
232
256
|
}), null, 16, ["span"]))), 128))]),
|
|
233
257
|
_: 1
|
|
234
|
-
}, 16, ["onSubmit", "onReset", "submit-loading"])], 6)) :
|
|
235
|
-
class:
|
|
236
|
-
style:
|
|
237
|
-
}, [P(
|
|
238
|
-
class:
|
|
239
|
-
},
|
|
240
|
-
onChange:
|
|
241
|
-
columns:
|
|
242
|
-
}),
|
|
243
|
-
headerCell:
|
|
244
|
-
column:
|
|
245
|
-
title:
|
|
246
|
-
}) => [
|
|
247
|
-
title:
|
|
258
|
+
}, 16, ["onSubmit", "onReset", "submit-loading"])], 6)) : I("", !0), v("div", {
|
|
259
|
+
class: b(e.card ? n(C)("table-wrapper") : null),
|
|
260
|
+
style: T(e.tableWrapperStyle)
|
|
261
|
+
}, [P(e.$slots, "title"), d(n(le), f({
|
|
262
|
+
class: n(V) === "admin" ? n(g)("table-admin") : n(g)("table")
|
|
263
|
+
}, M.value, {
|
|
264
|
+
onChange: n(q),
|
|
265
|
+
columns: h.value
|
|
266
|
+
}), ee({
|
|
267
|
+
headerCell: y(({
|
|
268
|
+
column: a,
|
|
269
|
+
title: t
|
|
270
|
+
}) => [a.tooltip ? (i(), m("span", he, [v("span", null, ae(t), 1), d(n(re), {
|
|
271
|
+
title: a.tooltip,
|
|
248
272
|
placement: "bottom"
|
|
249
273
|
}, {
|
|
250
|
-
default:
|
|
274
|
+
default: y(() => [d(n(ce), {
|
|
251
275
|
style: {
|
|
252
276
|
color: "#0070ff",
|
|
253
277
|
"padding-left": "4px"
|
|
254
278
|
}
|
|
255
279
|
})]),
|
|
256
280
|
_: 2
|
|
257
|
-
}, 1032, ["title"])])) :
|
|
281
|
+
}, 1032, ["title"])])) : I("", !0)]),
|
|
258
282
|
_: 2
|
|
259
|
-
}, [
|
|
260
|
-
name:
|
|
261
|
-
fn:
|
|
283
|
+
}, [B(n(O)(e.$slots, "title"), (a, t) => ({
|
|
284
|
+
name: t,
|
|
285
|
+
fn: y((r) => [P(e.$slots, t, te(oe(r || {})))])
|
|
262
286
|
}))]), 1040, ["class", "onChange", "columns"])], 6)], 2));
|
|
263
287
|
}
|
|
264
288
|
});
|
|
265
289
|
export {
|
|
266
|
-
|
|
290
|
+
Oe as default
|
|
267
291
|
};
|