@aplus-frontend/ui 0.6.0-beta.10 → 0.6.0-beta.11
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 +294 -289
- package/es/src/ap-form/item/index.vue.mjs +7 -7
- package/es/src/ap-table/ap-table.vue2.mjs +1 -1
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +17 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue.mjs +4 -0
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +60 -0
- package/es/src/business/ap-radio-group/index.d.ts +55 -0
- package/es/src/business/ap-radio-group/index.mjs +8 -0
- package/es/src/business/ap-radio-group/interface.d.ts +11 -0
- package/es/src/business/ap-radio-group/interface.mjs +1 -0
- package/es/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/css.js +1 -0
- package/es/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/es/src/business/ap-radio-group/style/index.js +1 -0
- package/es/src/business/hooks/usePageListApGrid.d.ts +2 -0
- package/es/src/business/hooks/usePageListApGrid.mjs +69 -44
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +15 -13
- package/es/src/index.mjs +166 -164
- package/es/src/path-map.mjs +2 -1
- package/es/src/version.d.ts +2 -0
- package/es/src/version.mjs +4 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +17 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.js +1 -0
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -0
- package/lib/src/business/ap-radio-group/index.d.ts +55 -0
- package/lib/src/business/ap-radio-group/index.js +1 -0
- package/lib/src/business/ap-radio-group/interface.d.ts +11 -0
- package/lib/src/business/ap-radio-group/interface.js +1 -0
- package/lib/src/business/ap-radio-group/style/css.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/css.d.ts +0 -0
- package/lib/src/business/ap-radio-group/style/index.cjs +1 -0
- package/lib/src/business/ap-radio-group/style/index.d.ts +0 -0
- package/lib/src/business/hooks/usePageListApGrid.d.ts +2 -0
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/version.d.ts +2 -0
- package/lib/src/version.js +1 -0
- package/package.json +4 -2
- package/theme/antd-global-overwrite/admin/alert.css +6 -19
- package/theme/antd-global-overwrite/admin/alert.less +25 -36
- package/theme/antd-global-overwrite/admin/button.css +13 -13
- package/theme/antd-global-overwrite/admin/button.less +24 -24
- package/theme/antd-global-overwrite/admin/field.css +27 -0
- package/theme/antd-global-overwrite/admin/field.less +23 -0
- package/theme/antd-global-overwrite/admin/index.css +70 -446
- package/theme/antd-global-overwrite/admin/index.less +1 -3
- package/theme/antd-global-overwrite/admin/message.css +2 -9
- package/theme/antd-global-overwrite/admin/message.less +2 -10
- package/theme/antd-global-overwrite/admin/modal.css +4 -27
- package/theme/antd-global-overwrite/admin/modal.less +4 -32
- package/theme/antd-global-overwrite/admin/table.css +18 -72
- package/theme/antd-global-overwrite/admin/table.less +1 -4
- package/theme/antd-global-overwrite/aplus/alert.css +9 -19
- package/theme/antd-global-overwrite/aplus/alert.less +27 -34
- package/theme/antd-global-overwrite/aplus/button.css +20 -20
- package/theme/antd-global-overwrite/aplus/button.less +24 -24
- package/theme/antd-global-overwrite/aplus/field.css +21 -0
- package/theme/antd-global-overwrite/aplus/field.less +16 -0
- package/theme/antd-global-overwrite/aplus/index.css +71 -504
- package/theme/antd-global-overwrite/aplus/index.less +0 -3
- package/theme/antd-global-overwrite/aplus/message.css +2 -9
- package/theme/antd-global-overwrite/aplus/message.less +2 -10
- package/theme/antd-global-overwrite/aplus/modal.css +5 -35
- package/theme/antd-global-overwrite/aplus/modal.less +6 -42
- package/theme/antd-global-overwrite/aplus/table.css +16 -64
- package/theme/antd-global-overwrite/aplus/table.less +1 -4
- package/theme/ap-form/ap-form-item.css +1 -1
- package/theme/ap-form/ap-form-item.less +1 -1
- package/theme/ap-form/index.css +1 -1
- package/theme/ap-form/search-form.css +1 -1
- package/theme/ap-grid/index.css +1 -1
- package/theme/ap-radio-group/ap-radio-group.css +64 -0
- package/theme/ap-radio-group/ap-radio-group.less +23 -0
- package/theme/ap-table/ap-table.css +1 -1
- package/theme/ap-table-modal/index.css +1 -1
- package/theme/editable-table/index.css +1 -1
- package/theme/index.css +27 -1
- package/theme/index.less +1 -0
- package/theme/ui-mode.css +8 -0
- package/theme/ui-mode.less +8 -0
|
@@ -55,7 +55,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
55
55
|
description: {}
|
|
56
56
|
},
|
|
57
57
|
setup(N, { expose: k }) {
|
|
58
|
-
const o = N, a = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: c, b:
|
|
58
|
+
const o = N, a = $(), { model: s, updateModel: u, internalInstance: m } = ie(), { m: c, b: x } = de("ap-form-item"), d = f(!1), n = f(), [, P] = le();
|
|
59
59
|
j(async () => {
|
|
60
60
|
let e = B(o.initialValue) ? o.initialValue() : o.initialValue;
|
|
61
61
|
se(e) && (e = await e), m == null || m.registerField({
|
|
@@ -80,7 +80,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
80
80
|
function S() {
|
|
81
81
|
d.value = !0;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function T() {
|
|
84
84
|
d.value = !1;
|
|
85
85
|
}
|
|
86
86
|
const V = F(() => {
|
|
@@ -93,10 +93,10 @@ const Ce = /* @__PURE__ */ D({
|
|
|
93
93
|
[`onUpdate:${o.valuePropName}`]: w,
|
|
94
94
|
bordered: o.bordered ? !1 : (r = e == null ? void 0 : e.props) == null ? void 0 : r.bordered,
|
|
95
95
|
onFocus: S,
|
|
96
|
-
onBlur:
|
|
96
|
+
onBlur: T
|
|
97
97
|
}) : null;
|
|
98
98
|
});
|
|
99
|
-
function
|
|
99
|
+
function I() {
|
|
100
100
|
var e;
|
|
101
101
|
(e = n.value) == null || e.onFieldBlur();
|
|
102
102
|
}
|
|
@@ -120,7 +120,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
120
120
|
return o.transform ? r(t) : t;
|
|
121
121
|
}
|
|
122
122
|
return k({
|
|
123
|
-
onFieldBlur:
|
|
123
|
+
onFieldBlur: I,
|
|
124
124
|
onFieldChange: z,
|
|
125
125
|
clearValidate: A,
|
|
126
126
|
resetField: L,
|
|
@@ -135,7 +135,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
135
135
|
class: {
|
|
136
136
|
[l(c)("bordered")]: e.bordered,
|
|
137
137
|
[l(c)("focused")]: e.bordered && d.value,
|
|
138
|
-
[l(
|
|
138
|
+
[l(x)()]: !0
|
|
139
139
|
},
|
|
140
140
|
colon: e.bordered ? !1 : o.colon
|
|
141
141
|
}
|
|
@@ -156,7 +156,7 @@ const Ce = /* @__PURE__ */ D({
|
|
|
156
156
|
}, {
|
|
157
157
|
default: i(() => [
|
|
158
158
|
p(l(ne), {
|
|
159
|
-
style: M({ color: l(
|
|
159
|
+
style: M({ color: l(P).colorTextTertiary })
|
|
160
160
|
}, null, 8, ["style"])
|
|
161
161
|
]),
|
|
162
162
|
_: 1
|
|
@@ -262,7 +262,7 @@ const Or = /* @__PURE__ */ Le({
|
|
|
262
262
|
// tips: 此函数内部依赖查询&筛选的相应式值
|
|
263
263
|
...M(n),
|
|
264
264
|
fixed: d ? d.fixed : n.fixed,
|
|
265
|
-
title: Qe(n, A("table-header", "title"), c.headerCell, l(pe).
|
|
265
|
+
title: Qe(n, A("table-header", "title"), c.headerCell, l(pe).colorTextTertiary),
|
|
266
266
|
customRender({
|
|
267
267
|
value: p,
|
|
268
268
|
...h
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RadioOptionType, RadioOptionStyleType } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
value: string | number;
|
|
5
|
+
options: RadioOptionType[];
|
|
6
|
+
optionStyle?: RadioOptionStyleType;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
9
|
+
"update:value": (value: string | number) => any;
|
|
10
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
12
|
+
}>, {
|
|
13
|
+
value: string | number;
|
|
14
|
+
options: RadioOptionType[];
|
|
15
|
+
optionStyle: RadioOptionStyleType;
|
|
16
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { defineComponent as k, isVNode as S, h as a, createElementBlock as l, openBlock as r, normalizeClass as m, unref as o, createVNode as b, withCtx as V, Fragment as _, renderList as w, normalizeStyle as B, createBlock as N, resolveDynamicComponent as z } from "vue";
|
|
2
|
+
import { Flex as F } from "@aplus-frontend/antdv";
|
|
3
|
+
import "../../config-provider/index.mjs";
|
|
4
|
+
import "../../hooks/index.mjs";
|
|
5
|
+
import { useNamespace as L } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useControllableValue as x } from "../../hooks/useControllableValue.mjs";
|
|
7
|
+
const D = ["onClick"], J = /* @__PURE__ */ k({
|
|
8
|
+
__name: "ap-radio-group",
|
|
9
|
+
props: {
|
|
10
|
+
value: { default: "" },
|
|
11
|
+
options: { default: () => [] },
|
|
12
|
+
optionStyle: { default: () => ({
|
|
13
|
+
height: 28,
|
|
14
|
+
gap: 8
|
|
15
|
+
}) }
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:value"],
|
|
18
|
+
setup(c, { emit: f }) {
|
|
19
|
+
const d = c, h = (e) => S(e) ? a(e) : typeof e == "function" ? a("span", e()) : a("span", e), g = f, { b: y, e: i } = L("ap-radio-group"), { value: v, updateValue: C } = x(
|
|
20
|
+
d,
|
|
21
|
+
g,
|
|
22
|
+
{
|
|
23
|
+
defaultValue: ""
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
return (e, E) => {
|
|
27
|
+
var n;
|
|
28
|
+
return r(), l("div", {
|
|
29
|
+
class: m([o(y)()])
|
|
30
|
+
}, [
|
|
31
|
+
b(o(F), {
|
|
32
|
+
gap: (n = e.optionStyle) == null ? void 0 : n.gap,
|
|
33
|
+
wrap: "wrap"
|
|
34
|
+
}, {
|
|
35
|
+
default: V(() => [
|
|
36
|
+
(r(!0), l(_, null, w(e.options.filter((t) => t.visible !== !1), (t) => {
|
|
37
|
+
var p, s, u;
|
|
38
|
+
return r(), l("div", {
|
|
39
|
+
key: t.value,
|
|
40
|
+
class: m([o(i)("item"), o(v) === t.value ? o(i)("item--active") : ""]),
|
|
41
|
+
style: B({
|
|
42
|
+
height: ((p = e.optionStyle) == null ? void 0 : p.height) + "px",
|
|
43
|
+
lineHeight: ((s = e.optionStyle) == null ? void 0 : s.height) + "px",
|
|
44
|
+
color: (u = e.optionStyle) == null ? void 0 : u.color
|
|
45
|
+
}),
|
|
46
|
+
onClick: (H) => o(C)(t.value)
|
|
47
|
+
}, [
|
|
48
|
+
(r(), N(z(h(t.label))))
|
|
49
|
+
], 14, D);
|
|
50
|
+
}), 128))
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
}, 8, ["gap"])
|
|
54
|
+
], 2);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
export {
|
|
59
|
+
J as default
|
|
60
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, ComponentOptionsBase, VNodeProps, AllowedComponentProps, ComponentCustomProps, Plugin } from 'vue';
|
|
2
|
+
import { RadioOptionType, RadioOptionStyleType } from './interface';
|
|
3
|
+
export * from './interface';
|
|
4
|
+
declare const ApRadioGroup: {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
6
|
+
value: string | number;
|
|
7
|
+
options: RadioOptionType[];
|
|
8
|
+
optionStyle?: RadioOptionStyleType;
|
|
9
|
+
}> & Readonly<{
|
|
10
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
12
|
+
"update:value": (value: string | number) => any;
|
|
13
|
+
}, PublicProps, {
|
|
14
|
+
value: string | number;
|
|
15
|
+
options: RadioOptionType[];
|
|
16
|
+
optionStyle: RadioOptionStyleType;
|
|
17
|
+
}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, HTMLDivElement, ComponentProvideOptions, {
|
|
18
|
+
P: {};
|
|
19
|
+
B: {};
|
|
20
|
+
D: {};
|
|
21
|
+
C: {};
|
|
22
|
+
M: {};
|
|
23
|
+
Defaults: {};
|
|
24
|
+
}, Readonly<{
|
|
25
|
+
value: string | number;
|
|
26
|
+
options: RadioOptionType[];
|
|
27
|
+
optionStyle?: RadioOptionStyleType;
|
|
28
|
+
}> & Readonly<{
|
|
29
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, {
|
|
31
|
+
value: string | number;
|
|
32
|
+
options: RadioOptionType[];
|
|
33
|
+
optionStyle: RadioOptionStyleType;
|
|
34
|
+
}>;
|
|
35
|
+
__isFragment?: never;
|
|
36
|
+
__isTeleport?: never;
|
|
37
|
+
__isSuspense?: never;
|
|
38
|
+
} & ComponentOptionsBase<Readonly<{
|
|
39
|
+
value: string | number;
|
|
40
|
+
options: RadioOptionType[];
|
|
41
|
+
optionStyle?: RadioOptionStyleType;
|
|
42
|
+
}> & Readonly<{
|
|
43
|
+
"onUpdate:value"?: ((value: string | number) => any) | undefined;
|
|
44
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
45
|
+
"update:value": (value: string | number) => any;
|
|
46
|
+
}, string, {
|
|
47
|
+
value: string | number;
|
|
48
|
+
options: RadioOptionType[];
|
|
49
|
+
optionStyle: RadioOptionStyleType;
|
|
50
|
+
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
51
|
+
$props: {
|
|
52
|
+
onClick?: () => void;
|
|
53
|
+
};
|
|
54
|
+
}));
|
|
55
|
+
export { ApRadioGroup };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
export interface RadioOptionType {
|
|
3
|
+
label: string | number | (() => any) | VNode;
|
|
4
|
+
value: string | number;
|
|
5
|
+
visible?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type RadioOptionStyleType = {
|
|
8
|
+
gap?: number;
|
|
9
|
+
height?: number;
|
|
10
|
+
color?: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-radio-group/ap-radio-group.css';
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import '@aplus-frontend/ui/theme/ap-radio-group/ap-radio-group.less';
|
|
@@ -19,6 +19,8 @@ export interface UsePageListApGrid extends ApGridProps {
|
|
|
19
19
|
* 表格刷新相关
|
|
20
20
|
*/
|
|
21
21
|
tableRefresh?: boolean | Omit<UseTableRefreshOption, 'apTableRef'>;
|
|
22
|
+
/** 是否在deactivated的时候清空数据, 需要在setup中使用才会生效 */
|
|
23
|
+
clearDataSourceOnDeactivated?: boolean;
|
|
22
24
|
}
|
|
23
25
|
/**
|
|
24
26
|
* 集成了列表页面的ApGrid的默认配置
|
|
@@ -1,61 +1,79 @@
|
|
|
1
1
|
import "../../config-provider/index.mjs";
|
|
2
2
|
import "../index.mjs";
|
|
3
|
-
import { merge as
|
|
4
|
-
import { ref as
|
|
5
|
-
import { useGlobalConfig as
|
|
6
|
-
import { useTableRefresh as
|
|
7
|
-
function
|
|
8
|
-
const o =
|
|
9
|
-
isShowRowSelection:
|
|
10
|
-
clearSelectionOnRequest:
|
|
3
|
+
import { merge as i, cloneDeep as F } from "lodash-unified";
|
|
4
|
+
import { ref as d, hasInjectionContext as V, onActivated as G, nextTick as x, onDeactivated as q, computed as y, unref as D } from "vue";
|
|
5
|
+
import { useGlobalConfig as I } from "../../config-provider/hooks/use-global-config.mjs";
|
|
6
|
+
import { useTableRefresh as T } from "./useTableRefresh.mjs";
|
|
7
|
+
function H(n) {
|
|
8
|
+
const o = d(null), {
|
|
9
|
+
isShowRowSelection: f = !0,
|
|
10
|
+
clearSelectionOnRequest: m = !0,
|
|
11
11
|
transformSearchFormValues: a,
|
|
12
|
-
api:
|
|
13
|
-
tableRefresh:
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
api: s,
|
|
13
|
+
tableRefresh: p = !0,
|
|
14
|
+
virtual: v,
|
|
15
|
+
clearDataSourceOnDeactivated: S = !0,
|
|
16
|
+
...h
|
|
17
|
+
} = n || {};
|
|
16
18
|
let l = null;
|
|
17
|
-
const
|
|
19
|
+
const g = I("uiMode", "aplus"), c = () => {
|
|
18
20
|
var e, r;
|
|
19
21
|
(r = (e = o.value) == null ? void 0 : e.rowSelection) == null || r.clearAll();
|
|
20
22
|
};
|
|
21
|
-
|
|
22
|
-
...
|
|
23
|
+
T({
|
|
24
|
+
...B(p),
|
|
23
25
|
apTableRef: o
|
|
24
|
-
})
|
|
26
|
+
});
|
|
27
|
+
const b = async (e) => {
|
|
28
|
+
l = e.sort;
|
|
29
|
+
const r = a ? a(e) : e;
|
|
30
|
+
try {
|
|
31
|
+
if (!s) throw new Error("api is not defined");
|
|
32
|
+
const { records: t, total: w } = await s(r);
|
|
33
|
+
return m && c(), {
|
|
34
|
+
data: t,
|
|
35
|
+
total: w
|
|
36
|
+
};
|
|
37
|
+
} catch (t) {
|
|
38
|
+
return console.error(t), {
|
|
39
|
+
data: [],
|
|
40
|
+
total: 0
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
}, u = d();
|
|
44
|
+
S && V() && (G(() => {
|
|
45
|
+
x(() => {
|
|
46
|
+
u.value = void 0;
|
|
47
|
+
});
|
|
48
|
+
}), q(() => {
|
|
49
|
+
u.value = [];
|
|
50
|
+
}));
|
|
51
|
+
const A = i(
|
|
25
52
|
{
|
|
26
53
|
// scroll,tableLayout,columnResizable设置表格可拖动
|
|
27
54
|
scroll: { x: "100%", y: "100%" },
|
|
28
55
|
columnResizable: !0,
|
|
29
|
-
request:
|
|
30
|
-
|
|
31
|
-
const r = a ? a(e) : e;
|
|
32
|
-
try {
|
|
33
|
-
if (!n) throw new Error("api is not defined");
|
|
34
|
-
const { records: t, total: p } = await n(r);
|
|
35
|
-
return i && u(), {
|
|
36
|
-
data: t,
|
|
37
|
-
total: p
|
|
38
|
-
};
|
|
39
|
-
} catch (t) {
|
|
40
|
-
return console.error(t), {
|
|
41
|
-
data: [],
|
|
42
|
-
total: 0
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
} : void 0,
|
|
46
|
-
rowSelection: c ? {
|
|
56
|
+
request: s ? b : void 0,
|
|
57
|
+
rowSelection: f ? {
|
|
47
58
|
fixed: "left",
|
|
48
59
|
columnWidth: 34
|
|
49
60
|
} : void 0,
|
|
50
61
|
ref(e) {
|
|
51
62
|
o.value = e;
|
|
52
63
|
},
|
|
64
|
+
virtual: i(
|
|
65
|
+
{
|
|
66
|
+
oSize: 20,
|
|
67
|
+
y: 20
|
|
68
|
+
},
|
|
69
|
+
v
|
|
70
|
+
),
|
|
53
71
|
// 新UI规范,需要都添加分割线
|
|
54
72
|
card: !0,
|
|
55
|
-
bordered:
|
|
73
|
+
bordered: g.value === "admin"
|
|
56
74
|
},
|
|
57
|
-
|
|
58
|
-
), {
|
|
75
|
+
h
|
|
76
|
+
), R = {
|
|
59
77
|
reload: () => {
|
|
60
78
|
var e;
|
|
61
79
|
(e = o.value) == null || e.submit();
|
|
@@ -73,16 +91,23 @@ function z(s) {
|
|
|
73
91
|
getSearchFormValuesAndSorted: (e = !0) => {
|
|
74
92
|
var t;
|
|
75
93
|
const r = ((t = o.value) == null ? void 0 : t.getSearchFormValues(!!e)) || {};
|
|
76
|
-
return r.sort = l &&
|
|
94
|
+
return r.sort = l && F(l), a ? a(r) : r;
|
|
77
95
|
},
|
|
78
|
-
clearSelection:
|
|
79
|
-
}
|
|
96
|
+
clearSelection: c
|
|
97
|
+
};
|
|
98
|
+
return [
|
|
99
|
+
y(() => ({
|
|
100
|
+
...A,
|
|
101
|
+
dataSource: D(u)
|
|
102
|
+
})),
|
|
103
|
+
R
|
|
104
|
+
];
|
|
80
105
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
106
|
+
function B(n) {
|
|
107
|
+
return n === !0 ? {} : n === !1 ? {
|
|
83
108
|
refreshBefore: () => !1
|
|
84
|
-
} :
|
|
109
|
+
} : n;
|
|
85
110
|
}
|
|
86
111
|
export {
|
|
87
|
-
|
|
112
|
+
H as usePageListApGrid
|
|
88
113
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as A } from "./ap-table-modal/index.mjs";
|
|
2
2
|
import { ApAttachment as x } from "./ap-attachment/index.mjs";
|
|
3
3
|
import { ApBatchAction as a } from "./ap-batch-action/index.mjs";
|
|
4
|
-
import { ApBatchActionGroup as
|
|
4
|
+
import { ApBatchActionGroup as i } from "./ap-batch-action-group/index.mjs";
|
|
5
5
|
import { ApButtonGroup as l } from "./ap-button-group/index.mjs";
|
|
6
6
|
import { ApCard as d } from "./ap-card/index.mjs";
|
|
7
7
|
import { ApExpandAlert as G } from "./ap-expand-alert/index.mjs";
|
|
@@ -9,10 +9,10 @@ import { ApExportGroup as h } from "./ap-export-group/index.mjs";
|
|
|
9
9
|
import { ApImage as L } from "./ap-image/index.mjs";
|
|
10
10
|
import { ApInputRadio as B } from "./ap-input-radio/index.mjs";
|
|
11
11
|
import { ApLabel as T, ApLabelGroup as y } from "./ap-label/index.mjs";
|
|
12
|
-
import { ApLadder as
|
|
13
|
-
import { ApSelectLayout as
|
|
14
|
-
import { ApStatus as
|
|
15
|
-
import { ApTitle as
|
|
12
|
+
import { ApLadder as R } from "./ap-ladder/index.mjs";
|
|
13
|
+
import { ApSelectLayout as v } from "./ap-select-layout/index.mjs";
|
|
14
|
+
import { ApStatus as z, ApStatusGroup as C } from "./ap-status/index.mjs";
|
|
15
|
+
import { ApTitle as H } from "./ap-title/index.mjs";
|
|
16
16
|
import "./hooks/index.mjs";
|
|
17
17
|
import { ApSummary as V } from "./ap-summary/index.mjs";
|
|
18
18
|
import { ApAppendix as k } from "./ap-appendix/index.mjs";
|
|
@@ -22,12 +22,13 @@ import "./batch-input-group/index.mjs";
|
|
|
22
22
|
import { ApSizeInput as O } from "./ap-size-input/index.mjs";
|
|
23
23
|
import { ApProductInfo as U } from "./ap-product-info/index.mjs";
|
|
24
24
|
import { ApView as X } from "./ap-view/index.mjs";
|
|
25
|
-
import {
|
|
25
|
+
import { ApRadioGroup as Z } from "./ap-radio-group/index.mjs";
|
|
26
|
+
import { ApTransformDataHelper as $ } from "../utils/ap-trans-data/index.mjs";
|
|
26
27
|
export {
|
|
27
28
|
k as ApAppendix,
|
|
28
29
|
x as ApAttachment,
|
|
29
30
|
a as ApBatchAction,
|
|
30
|
-
|
|
31
|
+
i as ApBatchActionGroup,
|
|
31
32
|
l as ApButtonGroup,
|
|
32
33
|
d as ApCard,
|
|
33
34
|
G as ApExpandAlert,
|
|
@@ -38,16 +39,17 @@ export {
|
|
|
38
39
|
B as ApInputRadio,
|
|
39
40
|
T as ApLabel,
|
|
40
41
|
y as ApLabelGroup,
|
|
41
|
-
|
|
42
|
+
R as ApLadder,
|
|
42
43
|
K as ApPopoverSelect,
|
|
43
44
|
U as ApProductInfo,
|
|
44
|
-
|
|
45
|
+
Z as ApRadioGroup,
|
|
46
|
+
v as ApSelectLayout,
|
|
45
47
|
O as ApSizeInput,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
+
z as ApStatus,
|
|
49
|
+
C as ApStatusGroup,
|
|
48
50
|
V as ApSummary,
|
|
49
51
|
A as ApTableModal,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
+
H as ApTitle,
|
|
53
|
+
$ as ApTransformDataHelper,
|
|
52
54
|
X as ApView
|
|
53
55
|
};
|