@aplus-frontend/ui 0.3.0 → 0.3.2
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-action/item/index.vue2.mjs +11 -11
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +2 -2
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +24 -24
- package/es/src/ap-drawer/utils/createDrawer.mjs +10 -10
- package/es/src/ap-field/checkbox/index.vue.mjs +3 -3
- package/es/src/ap-field/date/index.vue.mjs +2 -2
- package/es/src/ap-field/date-range/index.vue.mjs +2 -2
- package/es/src/ap-field/number/index.vue.mjs +3 -3
- package/es/src/ap-field/radio/index.vue.mjs +5 -5
- package/es/src/ap-field/rate/index.vue.mjs +4 -4
- package/es/src/ap-field/segmented/index.vue.mjs +3 -3
- package/es/src/ap-field/select/index.vue.mjs +4 -4
- package/es/src/ap-field/slider/index.vue.mjs +3 -3
- package/es/src/ap-field/switch/index.vue.mjs +4 -4
- package/es/src/ap-field/text-area/index.vue.mjs +3 -3
- package/es/src/ap-form/ap-form.vue.d.ts +5 -6
- package/es/src/ap-form/ap-form.vue2.mjs +5 -5
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/drawer-form/index.vue.mjs +2 -2
- package/es/src/ap-form/interface.d.ts +12 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -4
- package/es/src/ap-form/modal-form/index.vue.mjs +3 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +5 -5
- package/es/src/ap-form/search-form/index.vue.mjs +2 -2
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +6 -6
- package/es/src/ap-list/index.vue.mjs +27 -27
- package/es/src/ap-modal/utils/createModal.mjs +10 -10
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue2.mjs +3 -3
- package/es/src/ap-table/ap-table.vue2.mjs +3 -3
- package/es/src/ap-table/components/index/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +4 -4
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +2 -2
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +3 -3
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +8 -8
- package/es/src/ap-table/components/setting/sorter/index.vue2.mjs +6 -6
- package/es/src/ap-table/components/status/index.vue2.mjs +4 -4
- package/es/src/ap-table/hooks/use-table-content-height.mjs +13 -11
- package/es/src/ap-tag/ap-tag-group.vue.mjs +1 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +57 -8
- package/es/src/ap-upload/apUpload.vue.mjs +56 -37
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +10 -10
- package/es/src/ap-upload/components/Picture.vue2.mjs +26 -26
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +27 -27
- package/es/src/business/ap-appendix/ap-appendix.vue2.mjs +49 -49
- package/es/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.mjs +10 -10
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +5 -5
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +11 -11
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +26 -26
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-group-search/index.d.ts +1 -1
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -15
- package/es/src/business/ap-image/ApImage.vue2.mjs +28 -28
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +1 -1
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +8 -9
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
- package/es/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.mjs +74 -70
- package/es/src/business/ap-upload-file/hook/useProps.mjs +8 -8
- package/es/src/business/ap-upload-file/icon/file-icon.vue.mjs +1 -1
- package/es/src/business/ap-upload-file/interface.d.ts +2 -0
- package/es/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/es/src/business/ap-upload-file/utils/fileList.mjs +12 -12
- package/es/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/es/src/business/ap-upload-file/utils/upload.mjs +23 -23
- package/es/src/business/batch-input-group/index.vue.mjs +5 -5
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +15 -15
- package/es/src/editable-table/form-item.vue.mjs +3 -3
- package/es/src/editable-table/index.vue.mjs +6 -6
- package/es/src/work-order-modal/work-order-modal.vue.mjs +28 -28
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -1
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-drawer/utils/createDrawer.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/rate/index.vue.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +5 -6
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/interface.d.ts +12 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -4
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +5 -5
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-modal/utils/createModal.js +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue2.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sorter/index.vue2.js +1 -1
- package/lib/src/ap-table/components/status/index.vue2.js +1 -1
- package/lib/src/ap-table/hooks/use-table-content-height.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +57 -8
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-appendix/ap-appendix.vue2.js +1 -1
- package/lib/src/business/ap-batch-action-group/ApBatchActionGroup.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +1 -1
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-image/ApImage.vue2.js +1 -1
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.d.ts +5 -2
- package/lib/src/business/ap-upload-file/ap-upload-single/ap-upload-single.vue.js +1 -1
- package/lib/src/business/ap-upload-file/hook/useProps.js +1 -1
- package/lib/src/business/ap-upload-file/icon/file-icon.vue.js +1 -1
- package/lib/src/business/ap-upload-file/interface.d.ts +2 -0
- package/lib/src/business/ap-upload-file/utils/fileList.d.ts +2 -2
- package/lib/src/business/ap-upload-file/utils/fileList.js +1 -1
- package/lib/src/business/ap-upload-file/utils/upload.d.ts +3 -0
- package/lib/src/business/ap-upload-file/utils/upload.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.js +1 -1
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, ComputedRef, PublicProps } from 'vue';
|
|
3
3
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
4
|
-
import { ValidateMessages, FormLabelAlign, FieldData, ValidateErrorEntity,
|
|
4
|
+
import { ValidateMessages, FormLabelAlign, NamePath, FieldData, ValidateErrorEntity, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
7
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
@@ -107,7 +107,7 @@ declare function __VLS_template(): {
|
|
|
107
107
|
readonly hideRequiredMark?: boolean | undefined;
|
|
108
108
|
readonly validateOnRuleChange?: boolean | undefined;
|
|
109
109
|
readonly scrollToFirstError?: boolean | Options<any> | undefined;
|
|
110
|
-
readonly onValuesChange?: (((changedValues: any, values: any) => void) & ((changedValues: Recordable, allValues: Recordable) => void)) | undefined;
|
|
110
|
+
readonly onValuesChange?: (((changedValues: any, values: any) => void) & ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void)) | undefined;
|
|
111
111
|
readonly onFieldsChange?: ((changedFields: FieldData[], allFields: FieldData[]) => void) | undefined;
|
|
112
112
|
readonly onFinish?: ((values: any) => void) | undefined;
|
|
113
113
|
readonly onFinishFailed?: ((errorInfo: ValidateErrorEntity<any>) => void) | undefined;
|
|
@@ -144,7 +144,7 @@ declare function __VLS_template(): {
|
|
|
144
144
|
}> | undefined;
|
|
145
145
|
scrollToField: (name: NamePath, options?: {}) => void;
|
|
146
146
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
147
|
-
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
147
|
+
setFieldValue: (name: NamePath, newValue: any, triggerChange?: boolean) => void;
|
|
148
148
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
149
149
|
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
150
150
|
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
@@ -188,7 +188,7 @@ declare function __VLS_template(): {
|
|
|
188
188
|
hideRequiredMark: boolean;
|
|
189
189
|
validateOnRuleChange: boolean;
|
|
190
190
|
syncToUrl: boolean | ((values: Recordable, type: "get" | "set") => Recordable);
|
|
191
|
-
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "
|
|
191
|
+
}> & Omit<Readonly< ApFormProps> & Readonly<{}>, "validate" | "resetFields" | "clearValidate" | "validateFields" | "getFieldsValue" | "scrollToField" | "registerWatch" | "setFieldValue" | "setFieldsValue" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "getInternalInstance" | ("layout" | "colon" | "labelAlign" | "validateTrigger" | "hideRequiredMark" | "validateOnRuleChange" | "syncToUrl")> & ShallowUnwrapRef<{
|
|
192
192
|
resetFields: () => Promise<void>;
|
|
193
193
|
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
194
194
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
@@ -202,7 +202,7 @@ declare function __VLS_template(): {
|
|
|
202
202
|
}> | undefined;
|
|
203
203
|
scrollToField: (name: NamePath, options?: {}) => void;
|
|
204
204
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
205
|
-
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
205
|
+
setFieldValue: (name: NamePath, newValue: any, triggerChange?: boolean) => void;
|
|
206
206
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
207
207
|
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
208
208
|
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
@@ -223,9 +223,9 @@ const i = 24, qe = /* @__PURE__ */ re({
|
|
|
223
223
|
return W({
|
|
224
224
|
apForm: g(() => o(C))
|
|
225
225
|
}), (e, t) => (m(), y(Se, ce({
|
|
226
|
-
class: o(G)(),
|
|
227
226
|
ref_key: "apForm",
|
|
228
|
-
ref: C
|
|
227
|
+
ref: C,
|
|
228
|
+
class: o(G)()
|
|
229
229
|
}, o(Ce)(n, ["collapse", "defaultCollapse", "onUpdate:collapse", "searchText", "resetText", "onSubmit", "onReset", "extraInAction", "forceExpand", "countPerRow"])), {
|
|
230
230
|
default: S(() => [(m(), y(A(R.value.hideNode))), a(o(me), {
|
|
231
231
|
gutter: 16
|
|
@@ -13,18 +13,18 @@ const L = /* @__PURE__ */ u({
|
|
|
13
13
|
l.value && a.value && (l.value.scrollTop > 0 ? a.value.classList.add(o("header-shadow")) : a.value.classList.remove(o("header-shadow")));
|
|
14
14
|
}, { b: i, e: o, m: c } = v("ap-info-layout-admin"), m = _("uiMode", "admin");
|
|
15
15
|
return (r, k) => (p(), y("div", {
|
|
16
|
-
class: s([e(i)(), `${e(c)(e(m))}`]),
|
|
17
|
-
onScroll: f,
|
|
18
16
|
ref_key: "containerRef",
|
|
19
|
-
ref: l
|
|
17
|
+
ref: l,
|
|
18
|
+
class: s([e(i)(), `${e(c)(e(m))}`]),
|
|
19
|
+
onScroll: f
|
|
20
20
|
}, [
|
|
21
21
|
n("div", {
|
|
22
|
+
ref_key: "headerRef",
|
|
23
|
+
ref: a,
|
|
22
24
|
class: s([e(o)("sticky_box"), r.bordered ? e(o)("sticky_box-bordered") : ""]),
|
|
23
25
|
style: h({
|
|
24
26
|
...r.headerStyle
|
|
25
|
-
})
|
|
26
|
-
ref_key: "headerRef",
|
|
27
|
-
ref: a
|
|
27
|
+
})
|
|
28
28
|
}, [
|
|
29
29
|
d(r.$slots, "header")
|
|
30
30
|
], 6),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as H, ref as J, unref as t, computed as c, watch as Q, openBlock as i, createBlock as
|
|
1
|
+
import { defineComponent as H, ref as J, unref as t, computed as c, watch as Q, openBlock as i, createBlock as S, normalizeClass as u, withCtx as f, createElementVNode as X, normalizeStyle as v, renderSlot as l, createVNode as h, createElementBlock as p, Fragment as I, renderList as Y, mergeProps as Z, createCommentVNode as _ } from "vue";
|
|
2
2
|
import { Empty as E, Spin as x, Pagination as ee } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../ap-table/index.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
@@ -30,13 +30,13 @@ const he = /* @__PURE__ */ H({
|
|
|
30
30
|
setup(V, { expose: F }) {
|
|
31
31
|
const L = E.PRESENTED_IMAGE_SIMPLE, n = V, { b: d, e: N } = le("ap-list"), b = J(), {
|
|
32
32
|
formRef: k,
|
|
33
|
-
submit:
|
|
34
|
-
reset:
|
|
33
|
+
submit: z,
|
|
34
|
+
reset: C,
|
|
35
35
|
handleTableChange: R,
|
|
36
36
|
data: g,
|
|
37
37
|
refresh: T,
|
|
38
38
|
refreshByDelete: $,
|
|
39
|
-
tableProps:
|
|
39
|
+
tableProps: P
|
|
40
40
|
} = se({
|
|
41
41
|
async request(e) {
|
|
42
42
|
var r;
|
|
@@ -53,7 +53,7 @@ const he = /* @__PURE__ */ H({
|
|
|
53
53
|
defaultPageSize: n.pagination ? n.pagination.defaultPageSize : void 0,
|
|
54
54
|
formatParams: n.beforeSearchSubmit
|
|
55
55
|
}), j = { form: k }, {
|
|
56
|
-
pagination:
|
|
56
|
+
pagination: D,
|
|
57
57
|
dataSource: q,
|
|
58
58
|
onChange: A
|
|
59
59
|
} = ne(n);
|
|
@@ -69,12 +69,12 @@ const he = /* @__PURE__ */ H({
|
|
|
69
69
|
{ currentDataSource: [], action: "paginate" }
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
|
-
const s = c(() => t(m) ? t(q) : t(g).records),
|
|
72
|
+
const s = c(() => t(m) ? t(q) : t(g).records), y = c(() => O(n.loading) ? t(g).loading : n.loading), M = c(() => {
|
|
73
73
|
var e, a;
|
|
74
|
-
return n.pagination === !1 || n.virtual ? !1 : ((e = n.pagination) == null ? void 0 : e.hideOnSinglePage) !== !0 ? !0 : t(m) ? (((a = n.dataSource) == null ? void 0 : a.length) || 0) > t(
|
|
74
|
+
return n.pagination === !1 || n.virtual ? !1 : ((e = n.pagination) == null ? void 0 : e.hideOnSinglePage) !== !0 ? !0 : t(m) ? (((a = n.dataSource) == null ? void 0 : a.length) || 0) > t(D).pageSize : t(g).total > t(P).pagination.pageSize;
|
|
75
75
|
}), m = c(() => !O(n.dataSource));
|
|
76
76
|
Q(
|
|
77
|
-
() => t(
|
|
77
|
+
() => t(y),
|
|
78
78
|
(e) => {
|
|
79
79
|
var a;
|
|
80
80
|
(a = n.onLoadingChange) == null || a.call(n, e);
|
|
@@ -90,14 +90,14 @@ const he = /* @__PURE__ */ H({
|
|
|
90
90
|
return (r == null ? void 0 : r()) || {};
|
|
91
91
|
}
|
|
92
92
|
return F({
|
|
93
|
-
submit: () =>
|
|
94
|
-
reset: () =>
|
|
93
|
+
submit: () => z(),
|
|
94
|
+
reset: () => C(),
|
|
95
95
|
refresh: () => T(),
|
|
96
96
|
refreshByDelete: (e) => $(e),
|
|
97
97
|
scrollToFirstRow: W,
|
|
98
98
|
getSearchFormValuesIfSetted: G
|
|
99
|
-
}), (e, a) => (i(),
|
|
100
|
-
spinning:
|
|
99
|
+
}), (e, a) => (i(), S(t(x), {
|
|
100
|
+
spinning: y.value,
|
|
101
101
|
class: u(t(d)("spin"))
|
|
102
102
|
}, {
|
|
103
103
|
default: f(() => [
|
|
@@ -107,12 +107,12 @@ const he = /* @__PURE__ */ H({
|
|
|
107
107
|
}, [
|
|
108
108
|
l(e.$slots, "header", {
|
|
109
109
|
formIns: j,
|
|
110
|
-
submit: t(
|
|
111
|
-
reset: t(
|
|
110
|
+
submit: t(z),
|
|
111
|
+
reset: t(C)
|
|
112
112
|
}),
|
|
113
113
|
s.value.length === 0 ? l(e.$slots, "empty", {
|
|
114
114
|
key: 0,
|
|
115
|
-
loading:
|
|
115
|
+
loading: y.value
|
|
116
116
|
}, () => [
|
|
117
117
|
h(t(E), { image: t(L) }, null, 8, ["image"])
|
|
118
118
|
]) : (i(), p("div", {
|
|
@@ -121,12 +121,12 @@ const he = /* @__PURE__ */ H({
|
|
|
121
121
|
ref: b,
|
|
122
122
|
style: v(e.contentStyle)
|
|
123
123
|
}, [
|
|
124
|
-
e.virtual ? (i(), p(
|
|
125
|
-
t(te)(e.virtual) ? (i(),
|
|
124
|
+
e.virtual ? (i(), p(I, { key: 0 }, [
|
|
125
|
+
t(te)(e.virtual) ? (i(), S(t(re), {
|
|
126
126
|
key: 0,
|
|
127
127
|
class: u(t(d)("scroll-wrapper")),
|
|
128
128
|
items: s.value,
|
|
129
|
-
|
|
129
|
+
"item-size": e.virtual,
|
|
130
130
|
"key-field": n.rowKey || "id"
|
|
131
131
|
}, {
|
|
132
132
|
default: f(({ item: r, index: o }) => [
|
|
@@ -136,20 +136,20 @@ const he = /* @__PURE__ */ H({
|
|
|
136
136
|
})
|
|
137
137
|
]),
|
|
138
138
|
_: 3
|
|
139
|
-
}, 8, ["class", "items", "
|
|
139
|
+
}, 8, ["class", "items", "item-size", "key-field"])) : (i(), S(t(oe), {
|
|
140
140
|
key: 1,
|
|
141
141
|
items: s.value,
|
|
142
|
-
|
|
142
|
+
"min-item-size": e.virtual.minItemSize,
|
|
143
143
|
class: u(t(d)("scroll-wrapper"))
|
|
144
144
|
}, {
|
|
145
145
|
default: f(({ item: r, index: o, active: U }) => {
|
|
146
|
-
var
|
|
146
|
+
var w, B;
|
|
147
147
|
return [
|
|
148
148
|
h(t(ie), {
|
|
149
149
|
item: r,
|
|
150
150
|
active: U,
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
"data-index": o,
|
|
152
|
+
"size-dependencies": (B = (w = e.virtual).sizeDependencies) == null ? void 0 : B.call(w, r)
|
|
153
153
|
}, {
|
|
154
154
|
default: f(() => [
|
|
155
155
|
l(e.$slots, "renderItem", {
|
|
@@ -158,16 +158,16 @@ const he = /* @__PURE__ */ H({
|
|
|
158
158
|
})
|
|
159
159
|
]),
|
|
160
160
|
_: 2
|
|
161
|
-
}, 1032, ["item", "active", "
|
|
161
|
+
}, 1032, ["item", "active", "data-index", "size-dependencies"])
|
|
162
162
|
];
|
|
163
163
|
}),
|
|
164
164
|
_: 3
|
|
165
|
-
}, 8, ["items", "
|
|
165
|
+
}, 8, ["items", "min-item-size", "class"]))
|
|
166
166
|
], 64)) : l(e.$slots, "renderContent", {
|
|
167
167
|
key: 1,
|
|
168
168
|
dataSource: s.value
|
|
169
169
|
}, () => [
|
|
170
|
-
(i(!0), p(
|
|
170
|
+
(i(!0), p(I, null, Y(s.value, (r, o) => l(e.$slots, "renderItem", {
|
|
171
171
|
item: r,
|
|
172
172
|
index: o
|
|
173
173
|
})), 256))
|
|
@@ -179,7 +179,7 @@ const he = /* @__PURE__ */ H({
|
|
|
179
179
|
style: v(e.footerWarpperStyle)
|
|
180
180
|
}, [
|
|
181
181
|
h(t(ee), Z(
|
|
182
|
-
m.value ? t(
|
|
182
|
+
m.value ? t(D) : t(ae)(t(P).pagination, ["showTotal"]),
|
|
183
183
|
{ onChange: K }
|
|
184
184
|
), null, 16)
|
|
185
185
|
], 6)) : _("", !0)
|
|
@@ -31,6 +31,16 @@ const V = (d) => {
|
|
|
31
31
|
props: d
|
|
32
32
|
};
|
|
33
33
|
},
|
|
34
|
+
created() {
|
|
35
|
+
n = (e) => {
|
|
36
|
+
this.open = e;
|
|
37
|
+
}, t = (e) => {
|
|
38
|
+
this.props = {
|
|
39
|
+
...this.props,
|
|
40
|
+
...e
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
},
|
|
34
44
|
methods: {
|
|
35
45
|
async handleCancel() {
|
|
36
46
|
var e, o, s, i, p;
|
|
@@ -59,16 +69,6 @@ const V = (d) => {
|
|
|
59
69
|
}
|
|
60
70
|
}
|
|
61
71
|
},
|
|
62
|
-
created() {
|
|
63
|
-
n = (e) => {
|
|
64
|
-
this.open = e;
|
|
65
|
-
}, t = (e) => {
|
|
66
|
-
this.props = {
|
|
67
|
-
...this.props,
|
|
68
|
-
...e
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
72
|
render() {
|
|
73
73
|
const e = L(this.props, ["onCancel", "onOk", "open", "onUpdate:open", "getContainer", "icon"]);
|
|
74
74
|
return f(P, b.value, {
|
|
@@ -92,12 +92,12 @@ const ve = /* @__PURE__ */ O({
|
|
|
92
92
|
em: I
|
|
93
93
|
} = ce("ap-scroll-bar");
|
|
94
94
|
return (e, l) => (te(), le("div", {
|
|
95
|
+
ref_key: "containerRef",
|
|
96
|
+
ref: r,
|
|
95
97
|
class: N(`${u(V)()} ${o.type === "horizontal" ? u(D)("horizontal") : u(D)("vertical")}`),
|
|
96
98
|
style: U({
|
|
97
99
|
display: w.value ? "none" : "block"
|
|
98
|
-
})
|
|
99
|
-
ref_key: "containerRef",
|
|
100
|
-
ref: r
|
|
100
|
+
})
|
|
101
101
|
}, [oe("div", {
|
|
102
102
|
id: "bar",
|
|
103
103
|
class: N(`${u(G)("bar")} ${o.type === "horizontal" ? u(I)("bar", "horizontal") : u(I)("bar", "vertical")}`),
|
|
@@ -362,9 +362,9 @@ const wa = /* @__PURE__ */ Te({
|
|
|
362
362
|
ref_key: "formRef",
|
|
363
363
|
ref: k,
|
|
364
364
|
"custom-reset": "",
|
|
365
|
+
"submit-loading": r(V).loading,
|
|
365
366
|
onSubmit: r(A),
|
|
366
|
-
onReset: r(D)
|
|
367
|
-
"submit-loading": r(V).loading
|
|
367
|
+
onReset: r(D)
|
|
368
368
|
}), _({
|
|
369
369
|
default: F(() => [(p(!0), T(U, null, J(O.value, (t) => (p(), Q(Be(t.renderNode), w({
|
|
370
370
|
key: t.dataIndex,
|
|
@@ -377,7 +377,7 @@ const wa = /* @__PURE__ */ Te({
|
|
|
377
377
|
name: "extra",
|
|
378
378
|
fn: F(() => [h(e.$slots, "searchFormExtra")]),
|
|
379
379
|
key: "0"
|
|
380
|
-
} : void 0]), 1040, ["
|
|
380
|
+
} : void 0]), 1040, ["submit-loading", "onSubmit", "onReset"])], 6)) : X("", !0), I("div", {
|
|
381
381
|
ref_key: "contentRef",
|
|
382
382
|
ref: ne,
|
|
383
383
|
class: f([r(x)("table-wrapper"), e.card ? r(x)("table-wrapper-card") : null]),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as n, computed as l, openBlock as s, createElementBlock as p, normalizeClass as d, toDisplayString as m } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import { useNamespace as c } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
4
|
-
const
|
|
5
|
-
name: "
|
|
4
|
+
const _ = /* @__PURE__ */ n({
|
|
5
|
+
name: "ApTableIndex",
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
8
8
|
bordered: { type: Boolean, default: !1 },
|
|
@@ -16,5 +16,5 @@ const b = /* @__PURE__ */ n({
|
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
export {
|
|
19
|
-
|
|
19
|
+
_ as default
|
|
20
20
|
};
|
|
@@ -65,15 +65,15 @@ const ie = {
|
|
|
65
65
|
return (p, t) => (y(), M(q, null, [e(k) ? (y(), J(K(e(k)), {
|
|
66
66
|
key: 0
|
|
67
67
|
})) : P("", !0), l(e(W), {
|
|
68
|
-
title: e(a)("ap.apTable.setting.title"),
|
|
69
68
|
open: u.value,
|
|
70
69
|
"onUpdate:open": t[2] || (t[2] = (o) => u.value = o),
|
|
70
|
+
title: e(a)("ap.apTable.setting.title"),
|
|
71
71
|
width: 900,
|
|
72
|
-
onOk: F,
|
|
73
72
|
"body-style": {
|
|
74
73
|
padding: "0px !important",
|
|
75
74
|
height: "450px"
|
|
76
|
-
}
|
|
75
|
+
},
|
|
76
|
+
onOk: F
|
|
77
77
|
}, {
|
|
78
78
|
default: s(() => [i("div", {
|
|
79
79
|
class: r(e(g)("wrapper"))
|
|
@@ -126,7 +126,7 @@ const ie = {
|
|
|
126
126
|
onReset: j
|
|
127
127
|
}, null, 8, ["value"])], 2)], 2)]),
|
|
128
128
|
_: 1
|
|
129
|
-
}, 8, ["
|
|
129
|
+
}, 8, ["open", "title"])], 64));
|
|
130
130
|
}
|
|
131
131
|
});
|
|
132
132
|
export {
|
|
@@ -58,8 +58,8 @@ const K = /* @__PURE__ */ E({
|
|
|
58
58
|
u(r(w), {
|
|
59
59
|
indeterminate: c.value,
|
|
60
60
|
checked: (n = o.value) == null ? void 0 : n.show,
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
disabled: B.value,
|
|
62
|
+
"onUpdate:checked": g
|
|
63
63
|
}, {
|
|
64
64
|
default: i(() => [
|
|
65
65
|
(s(), h(k(r(b)(m.value.title))))
|
|
@@ -18,10 +18,10 @@ const w = /* @__PURE__ */ f({
|
|
|
18
18
|
class: m(r(d)())
|
|
19
19
|
}, [
|
|
20
20
|
i(s, {
|
|
21
|
-
value: l.value,
|
|
22
21
|
open: a.value,
|
|
23
|
-
"onUpdate:open": o[0] || (o[0] = (e) => a.value = e)
|
|
24
|
-
|
|
22
|
+
"onUpdate:open": o[0] || (o[0] = (e) => a.value = e),
|
|
23
|
+
value: l.value
|
|
24
|
+
}, null, 8, ["open", "value"]),
|
|
25
25
|
(t = l.value.children) != null && t.length ? (n(), u("div", {
|
|
26
26
|
key: 0,
|
|
27
27
|
class: m(r(v)("hidden", a.value))
|
|
@@ -83,8 +83,8 @@ const G = ["src"], le = /* @__PURE__ */ E({
|
|
|
83
83
|
default: d(() => [
|
|
84
84
|
c(e(k), {
|
|
85
85
|
rotate: 270,
|
|
86
|
-
|
|
87
|
-
|
|
86
|
+
class: t(e(a)("action-icon")),
|
|
87
|
+
onClick: _
|
|
88
88
|
}, null, 8, ["class"])
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
@@ -95,8 +95,8 @@ const G = ["src"], le = /* @__PURE__ */ E({
|
|
|
95
95
|
}, {
|
|
96
96
|
default: d(() => [
|
|
97
97
|
c(e(z), {
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
class: t(e(a)("action-icon")),
|
|
99
|
+
onClick: L
|
|
100
100
|
}, null, 8, ["class"])
|
|
101
101
|
]),
|
|
102
102
|
_: 1
|
|
@@ -108,8 +108,8 @@ const G = ["src"], le = /* @__PURE__ */ E({
|
|
|
108
108
|
default: d(() => [
|
|
109
109
|
c(e(k), {
|
|
110
110
|
rotate: 90,
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
class: t(e(a)("action-icon")),
|
|
112
|
+
onClick: F
|
|
113
113
|
}, null, 8, ["class"])
|
|
114
114
|
]),
|
|
115
115
|
_: 1
|
|
@@ -120,8 +120,8 @@ const G = ["src"], le = /* @__PURE__ */ E({
|
|
|
120
120
|
}, {
|
|
121
121
|
default: d(() => [
|
|
122
122
|
c(e(A), {
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
class: t(e(a)("action-icon")),
|
|
124
|
+
onClick: R
|
|
125
125
|
}, null, 8, ["class"])
|
|
126
126
|
]),
|
|
127
127
|
_: 1
|
|
@@ -140,8 +140,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
140
140
|
}, k(n(h)("ap.apTable.setting.fixToLeft")), 3),
|
|
141
141
|
m(n(N), {
|
|
142
142
|
"model-value": i.value,
|
|
143
|
-
"
|
|
144
|
-
"
|
|
143
|
+
"item-key": "key",
|
|
144
|
+
"onUpdate:modelValue": D
|
|
145
145
|
}, {
|
|
146
146
|
item: v(({ element: o }) => [
|
|
147
147
|
C(o) ? (c(), b(R, {
|
|
@@ -158,8 +158,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
158
158
|
}, k(n(h)("ap.apTable.setting.unFixed")), 3),
|
|
159
159
|
m(n(N), {
|
|
160
160
|
"model-value": s.value,
|
|
161
|
-
"
|
|
162
|
-
"
|
|
161
|
+
"item-key": "key",
|
|
162
|
+
"onUpdate:modelValue": E
|
|
163
163
|
}, {
|
|
164
164
|
item: v(({ element: o }) => [
|
|
165
165
|
C(o) ? (c(), b(R, {
|
|
@@ -176,8 +176,8 @@ const W = { key: 0 }, X = { key: 1 }, Y = { key: 2 }, re = /* @__PURE__ */ A({
|
|
|
176
176
|
}, k(n(h)("ap.apTable.setting.fixToRight")), 3),
|
|
177
177
|
m(n(N), {
|
|
178
178
|
"model-value": u.value,
|
|
179
|
-
"
|
|
180
|
-
"
|
|
179
|
+
"item-key": "key",
|
|
180
|
+
"onUpdate:modelValue": j
|
|
181
181
|
}, {
|
|
182
182
|
item: v(({ element: o }) => [
|
|
183
183
|
C(o) ? (c(), b(R, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as n, computed as o, openBlock as u, createBlock as a, unref as m, normalizeProps as p, mergeProps as l, createCommentVNode as c } from "vue";
|
|
2
2
|
import { Badge as s } from "@aplus-frontend/antdv";
|
|
3
|
-
const
|
|
4
|
-
name: "
|
|
3
|
+
const _ = /* @__PURE__ */ n({
|
|
4
|
+
name: "ApTableStatus",
|
|
5
5
|
__name: "index",
|
|
6
6
|
props: {
|
|
7
7
|
valueEnum: {},
|
|
@@ -9,9 +9,9 @@ const v = /* @__PURE__ */ n({
|
|
|
9
9
|
},
|
|
10
10
|
setup(t) {
|
|
11
11
|
const e = t, r = o(() => e.valueEnum[e.value]);
|
|
12
|
-
return (
|
|
12
|
+
return (d, f) => r.value ? (u(), a(m(s), p(l({ key: 0 }, r.value)), null, 16)) : c("", !0);
|
|
13
13
|
}
|
|
14
14
|
});
|
|
15
15
|
export {
|
|
16
|
-
|
|
16
|
+
_ as default
|
|
17
17
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import "../../config-provider/index.mjs";
|
|
2
|
+
import { useElementSize as y } from "@vueuse/core";
|
|
3
|
+
import { ref as f, computed as v, unref as h, onUpdated as q } from "vue";
|
|
4
|
+
import { useGlobalConfig as N } from "../../config-provider/hooks/use-global-config.mjs";
|
|
3
5
|
function p(t) {
|
|
4
6
|
if (!t)
|
|
5
7
|
return 0;
|
|
@@ -12,17 +14,17 @@ function m(t) {
|
|
|
12
14
|
const e = getComputedStyle(t);
|
|
13
15
|
return t.clientHeight + p(e.marginTop) + p(e.marginBottom);
|
|
14
16
|
}
|
|
15
|
-
const
|
|
16
|
-
const e =
|
|
17
|
+
const _ = (t) => {
|
|
18
|
+
const e = f(), { height: d } = y(e), H = N("namespace"), a = f();
|
|
17
19
|
let i = !1;
|
|
18
|
-
const
|
|
19
|
-
var u, c, l, g,
|
|
20
|
-
const n = ((c = (u = e.value) == null ? void 0 : u.querySelector(
|
|
20
|
+
const S = v(() => {
|
|
21
|
+
var u, c, l, g, s;
|
|
22
|
+
const n = ((c = (u = e.value) == null ? void 0 : u.querySelector(`.${H}-ap-table-header-wrapper`)) == null ? void 0 : c.clientHeight) || 0, r = ((g = (l = e.value) == null ? void 0 : l.querySelector(".ant-table-header")) == null ? void 0 : g.clientHeight) || 47, o = (s = e.value) == null ? void 0 : s.querySelector(".ant-pagination"), b = o ? m(o) : h(a);
|
|
21
23
|
return o && (i = !0), Math.ceil(
|
|
22
|
-
|
|
24
|
+
h(d) - r - n - (b || 0) - ((t == null ? void 0 : t.offset) || 0)
|
|
23
25
|
);
|
|
24
26
|
});
|
|
25
|
-
return
|
|
27
|
+
return q(() => {
|
|
26
28
|
var r;
|
|
27
29
|
if (i)
|
|
28
30
|
return;
|
|
@@ -32,8 +34,8 @@ const T = (t) => {
|
|
|
32
34
|
return;
|
|
33
35
|
}
|
|
34
36
|
a.value = m(n), i = !0;
|
|
35
|
-
}), { contentRef: e, height:
|
|
37
|
+
}), { contentRef: e, height: S };
|
|
36
38
|
};
|
|
37
39
|
export {
|
|
38
|
-
|
|
40
|
+
_ as default
|
|
39
41
|
};
|