@aplus-frontend/ui 0.2.0-beta.2 → 0.2.0-beta.4
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 +59 -52
- package/es/src/ap-field/interface.d.ts +6 -0
- package/es/src/ap-field/select/index.vue.mjs +14 -13
- package/es/src/ap-form/item/index.vue.mjs +58 -58
- package/es/src/ap-form/item-text/style/css.d.ts +0 -1
- package/es/src/ap-form/item-text/style/css.js +1 -1
- package/es/src/ap-form/item-text/style/index.d.ts +0 -1
- package/es/src/ap-form/item-text/style/index.js +1 -1
- package/es/src/ap-form/item-text-group/style/css.d.ts +0 -0
- package/es/src/ap-form/item-text-group/style/css.js +1 -0
- package/es/src/ap-form/item-text-group/style/index.d.ts +0 -0
- package/es/src/ap-form/item-text-group/style/index.js +1 -0
- package/es/src/ap-form/items/interface.d.ts +11 -0
- package/es/src/ap-form/items/text/group.vue.d.ts +42 -0
- package/es/src/ap-form/items/text/group.vue.mjs +4 -0
- package/es/src/ap-form/items/text/group.vue2.mjs +26 -0
- package/es/src/ap-form/items/text/index.d.ts +3 -1
- package/es/src/ap-form/items/text/index.mjs +10 -6
- package/es/src/ap-table/ap-table.vue.d.ts +2 -0
- package/es/src/ap-table/ap-table.vue.mjs +28 -27
- package/es/src/ap-table/constants.d.ts +20 -30
- package/es/src/ap-table/utils.d.ts +35 -3
- package/es/src/ap-table/utils.mjs +69 -69
- package/es/src/ap-upload/apUpload.vue.d.ts +17 -1
- package/es/src/ap-upload/apUpload.vue.mjs +54 -42
- package/es/src/ap-upload/apUploadTypes.d.ts +6 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +4 -1
- package/es/src/ap-upload/components/MultipleFile.vue2.mjs +98 -90
- package/es/src/ap-upload/components/Picture.vue.d.ts +4 -1
- package/es/src/ap-upload/components/Picture.vue2.mjs +146 -138
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +4 -1
- package/es/src/ap-upload/components/SingleFile.vue2.mjs +84 -86
- package/es/src/business/ap-label/constans.d.ts +1 -1
- package/es/src/business/ap-label/interface.d.ts +2 -2
- package/es/src/business/ap-summary/ap-summary.vue.d.ts +30 -0
- package/es/src/business/ap-summary/ap-summary.vue.mjs +4 -0
- package/es/src/business/ap-summary/ap-summary.vue2.mjs +68 -0
- package/es/src/business/ap-summary/index.d.ts +95 -0
- package/es/src/business/ap-summary/index.mjs +13 -0
- package/es/src/business/ap-summary/interface.d.ts +41 -0
- package/es/src/business/ap-summary/interface.mjs +1 -0
- package/es/src/business/ap-summary/style/css.d.ts +0 -0
- package/es/src/business/ap-summary/style/css.js +1 -0
- package/es/src/business/ap-summary/style/index.d.ts +0 -0
- package/es/src/business/ap-summary/style/index.js +1 -0
- package/es/src/business/ap-summary/utils.d.ts +12 -0
- package/es/src/business/ap-summary/utils.mjs +36 -0
- package/es/src/business/index.d.ts +1 -0
- package/es/src/business/index.mjs +16 -14
- package/es/src/editable-table/utils.mjs +51 -51
- package/es/src/hooks/useControllableValue.d.ts +8 -3
- package/es/src/hooks/useControllableValue.mjs +18 -13
- package/es/src/index.mjs +59 -52
- package/es/src/path-map.mjs +3 -1
- package/es/src/utils/slot.d.ts +9 -1
- package/es/src/utils/slot.mjs +10 -6
- package/lib/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +6 -0
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/item-text/style/css.d.ts +0 -1
- package/lib/src/ap-form/item-text/style/css.js +1 -1
- package/lib/src/ap-form/item-text/style/index.d.ts +0 -1
- package/lib/src/ap-form/item-text/style/index.js +1 -1
- package/lib/src/ap-form/item-text-group/style/css.d.ts +0 -0
- package/lib/src/ap-form/item-text-group/style/css.js +1 -0
- package/lib/src/ap-form/item-text-group/style/index.d.ts +0 -0
- package/lib/src/ap-form/item-text-group/style/index.js +1 -0
- package/lib/src/ap-form/items/interface.d.ts +11 -0
- package/lib/src/ap-form/items/text/group.vue.d.ts +42 -0
- package/lib/src/ap-form/items/text/group.vue.js +1 -0
- package/lib/src/ap-form/items/text/group.vue2.js +1 -0
- package/lib/src/ap-form/items/text/index.d.ts +3 -1
- package/lib/src/ap-form/items/text/index.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +20 -30
- package/lib/src/ap-table/utils.d.ts +35 -3
- package/lib/src/ap-table/utils.js +1 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +17 -1
- package/lib/src/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/ap-upload/apUploadTypes.d.ts +6 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +4 -1
- package/lib/src/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/ap-upload/components/Picture.vue.d.ts +4 -1
- package/lib/src/ap-upload/components/Picture.vue2.js +1 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +4 -1
- package/lib/src/ap-upload/components/SingleFile.vue2.js +1 -1
- package/lib/src/business/ap-label/constans.d.ts +1 -1
- package/lib/src/business/ap-label/interface.d.ts +2 -2
- package/lib/src/business/ap-summary/ap-summary.vue.d.ts +30 -0
- package/lib/src/business/ap-summary/ap-summary.vue.js +1 -0
- package/lib/src/business/ap-summary/ap-summary.vue2.js +1 -0
- package/lib/src/business/ap-summary/index.d.ts +95 -0
- package/lib/src/business/ap-summary/index.js +1 -0
- package/lib/src/business/ap-summary/interface.d.ts +41 -0
- package/lib/src/business/ap-summary/interface.js +1 -0
- package/lib/src/business/ap-summary/style/css.d.ts +0 -0
- package/lib/src/business/ap-summary/style/css.js +1 -0
- package/lib/src/business/ap-summary/style/index.d.ts +0 -0
- package/lib/src/business/ap-summary/style/index.js +1 -0
- package/lib/src/business/ap-summary/utils.d.ts +12 -0
- package/lib/src/business/ap-summary/utils.js +1 -0
- package/lib/src/business/index.d.ts +1 -0
- package/lib/src/business/index.js +1 -1
- package/lib/src/editable-table/utils.js +1 -1
- package/lib/src/hooks/useControllableValue.d.ts +8 -3
- package/lib/src/hooks/useControllableValue.js +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/utils/slot.d.ts +9 -1
- package/lib/src/utils/slot.js +1 -1
- package/package.json +4 -4
|
@@ -1,37 +1,39 @@
|
|
|
1
1
|
import { default as t } from "./ap-table-modal/index.mjs";
|
|
2
|
-
import { ApAttachment as
|
|
3
|
-
import { ApBatchAction as
|
|
2
|
+
import { ApAttachment as m } from "./ap-attachment/index.mjs";
|
|
3
|
+
import { ApBatchAction as a } from "./ap-batch-action/index.mjs";
|
|
4
4
|
import { ApBatchActionGroup as x } from "./ap-batch-action-group/index.mjs";
|
|
5
5
|
import { ApButtonGroup as l } from "./ap-button-group/index.mjs";
|
|
6
6
|
import { ApCard as n } from "./ap-card/index.mjs";
|
|
7
7
|
import { ApExpandAlert as i } from "./ap-expand-alert/index.mjs";
|
|
8
8
|
import { ApExportGroup as s } from "./ap-export-group/index.mjs";
|
|
9
|
-
import { ApImage as
|
|
10
|
-
import { ApInputRadio as
|
|
11
|
-
import { ApLabel as T, ApLabelGroup as
|
|
12
|
-
import { ApLadder as
|
|
9
|
+
import { ApImage as S } from "./ap-image/index.mjs";
|
|
10
|
+
import { ApInputRadio as h } from "./ap-input-radio/index.mjs";
|
|
11
|
+
import { ApLabel as T, ApLabelGroup as y } from "./ap-label/index.mjs";
|
|
12
|
+
import { ApLadder as I } from "./ap-ladder/index.mjs";
|
|
13
13
|
import { ApSelectLayout as C } from "./ap-select-layout/index.mjs";
|
|
14
14
|
import { ApStatus as H, ApStatusGroup as M } from "./ap-status/index.mjs";
|
|
15
15
|
import { ApTitle as j } from "./ap-title/index.mjs";
|
|
16
16
|
import "./hooks/index.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { ApSummary as q } from "./ap-summary/index.mjs";
|
|
18
|
+
import { ApTransformDataHelper as w } from "../utils/ap-trans-data/index.mjs";
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
m as ApAttachment,
|
|
21
|
+
a as ApBatchAction,
|
|
21
22
|
x as ApBatchActionGroup,
|
|
22
23
|
l as ApButtonGroup,
|
|
23
24
|
n as ApCard,
|
|
24
25
|
i as ApExpandAlert,
|
|
25
26
|
s as ApExportGroup,
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
S as ApImage,
|
|
28
|
+
h as ApInputRadio,
|
|
28
29
|
T as ApLabel,
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
y as ApLabelGroup,
|
|
31
|
+
I as ApLadder,
|
|
31
32
|
C as ApSelectLayout,
|
|
32
33
|
H as ApStatus,
|
|
33
34
|
M as ApStatusGroup,
|
|
35
|
+
q as ApSummary,
|
|
34
36
|
t as ApTableModal,
|
|
35
37
|
j as ApTitle,
|
|
36
|
-
|
|
38
|
+
w as ApTransformDataHelper
|
|
37
39
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { isFunction as m, isArray as g, isBoolean as
|
|
3
|
-
import { apTableFormItemMap as
|
|
1
|
+
import { isVNode as I, createVNode as r, mergeProps as S, createTextVNode as F, Fragment as w } from "vue";
|
|
2
|
+
import { isFunction as m, isArray as g, isBoolean as P, omit as V, isString as q } from "lodash-unified";
|
|
3
|
+
import { apTableFormItemMap as v, noRenderAsFormItemValueList as C, apTableRenderItemMap as N } from "../ap-table/constants.mjs";
|
|
4
4
|
import { isDef as j } from "../utils/index.mjs";
|
|
5
5
|
import { getValueStr as A } from "../ap-field/number/helper.mjs";
|
|
6
|
-
import
|
|
7
|
-
import { Typography as
|
|
6
|
+
import O from "scroll-into-view-if-needed";
|
|
7
|
+
import { Typography as W, Tooltip as _ } from "ant-design-vue";
|
|
8
8
|
import "../ap-form/index.mjs";
|
|
9
|
-
import { objectToString as
|
|
10
|
-
import { QuestionCircleOutlined as
|
|
9
|
+
import { objectToString as D } from "../ap-table/utils.mjs";
|
|
10
|
+
import { QuestionCircleOutlined as E } from "@ant-design/icons-vue";
|
|
11
11
|
import T from "../ap-form/item/index.vue.mjs";
|
|
12
12
|
function b(t) {
|
|
13
|
-
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !
|
|
13
|
+
return typeof t == "function" || Object.prototype.toString.call(t) === "[object Object]" && !I(t);
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
return
|
|
15
|
+
function R(t) {
|
|
16
|
+
return v[t];
|
|
17
17
|
}
|
|
18
18
|
function k(t) {
|
|
19
19
|
if (!t.fieldProps)
|
|
@@ -28,9 +28,9 @@ function B(t, e) {
|
|
|
28
28
|
const i = t.fieldProps ? m(t.fieldProps) ? t.fieldProps({}) : t.fieldProps : {};
|
|
29
29
|
return A(e, i) || "--";
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return D(e);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function H(t, e) {
|
|
34
34
|
const i = [t];
|
|
35
35
|
if (e) {
|
|
36
36
|
const o = g(e) ? e : [e];
|
|
@@ -38,22 +38,22 @@ function Z(t, e) {
|
|
|
38
38
|
}
|
|
39
39
|
return i.join(" ");
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function M(t, e = document.body, i = {}) {
|
|
42
42
|
const o = e.querySelectorAll("tr.ant-table-row")[t];
|
|
43
|
-
o &&
|
|
43
|
+
o && O(o, {
|
|
44
44
|
scrollMode: "if-needed",
|
|
45
45
|
block: "nearest",
|
|
46
46
|
behavior: "smooth",
|
|
47
47
|
...i
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
|
-
function
|
|
51
|
-
return
|
|
50
|
+
function L(t, e, i) {
|
|
51
|
+
return C.includes(t.valueType) ? i : t.copyable || t.ellipsis ? r(W.Paragraph, {
|
|
52
52
|
copyable: t.copyable ? {
|
|
53
53
|
text: e,
|
|
54
54
|
tooltip: !1
|
|
55
55
|
} : !1,
|
|
56
|
-
ellipsis: t.ellipsis ?
|
|
56
|
+
ellipsis: t.ellipsis ? P(t.ellipsis) ? {
|
|
57
57
|
tooltip: e
|
|
58
58
|
} : {
|
|
59
59
|
...t.ellipsis,
|
|
@@ -62,73 +62,73 @@ function H(t, e, i) {
|
|
|
62
62
|
content: t.ellipsis ? B(t, e) : i
|
|
63
63
|
}, null) : i;
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
var
|
|
65
|
+
function tt(t, e, i, o, d, l) {
|
|
66
|
+
var u, y;
|
|
67
67
|
if (e) {
|
|
68
68
|
if (t.customRenderFormItem) {
|
|
69
|
-
const
|
|
70
|
-
return
|
|
71
|
-
default: () => [
|
|
69
|
+
const a = t.customRenderFormItem(t, i.field, e, d);
|
|
70
|
+
return r(T, V(i, ["field"]), b(a) ? a : {
|
|
71
|
+
default: () => [a]
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
if (
|
|
76
|
-
return s
|
|
77
|
-
const n = l == null ? void 0 : l[t.valueType],
|
|
78
|
-
return
|
|
79
|
-
default: () => [
|
|
74
|
+
const s = R(t.valueType);
|
|
75
|
+
if (s)
|
|
76
|
+
return r(s, i, null);
|
|
77
|
+
const n = l == null ? void 0 : l[t.valueType], p = (u = n == null ? void 0 : n.renderFormItem) == null ? void 0 : u.call(n, i.field);
|
|
78
|
+
return p ? r(T, i, b(p) ? p : {
|
|
79
|
+
default: () => [p]
|
|
80
80
|
}) : null;
|
|
81
81
|
}
|
|
82
|
-
let
|
|
83
|
-
const
|
|
84
|
-
if (
|
|
85
|
-
|
|
82
|
+
let f;
|
|
83
|
+
const c = N[t.valueType];
|
|
84
|
+
if (c)
|
|
85
|
+
f = r(c, S(i.field, {
|
|
86
86
|
mode: "read"
|
|
87
87
|
}), null);
|
|
88
88
|
else {
|
|
89
|
-
const
|
|
90
|
-
|
|
89
|
+
const s = l == null ? void 0 : l[t.valueType];
|
|
90
|
+
f = (y = s == null ? void 0 : s.render) == null ? void 0 : y.call(s, o, d, i.field);
|
|
91
91
|
}
|
|
92
|
-
return
|
|
92
|
+
return f ? L(t, o, f) : null;
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function et(t, e, i, o, d) {
|
|
95
95
|
const l = o == null ? void 0 : o({
|
|
96
96
|
title: t.title,
|
|
97
97
|
column: t
|
|
98
|
-
});
|
|
99
|
-
if (l &&
|
|
98
|
+
}), f = (l == null ? void 0 : l.filter((h) => h.type !== Symbol.for("v-cmt"))) || [];
|
|
99
|
+
if (l && f.length > 0)
|
|
100
100
|
return l;
|
|
101
|
-
const u = k(t),
|
|
101
|
+
const u = k(t), s = q(t.title) ? {
|
|
102
102
|
class: e,
|
|
103
103
|
title: t.title
|
|
104
|
-
} : {},
|
|
104
|
+
} : {}, n = r("div", s, [u ? r("span", {
|
|
105
105
|
class: i
|
|
106
|
-
}, [F("*")]) : null, t.title]),
|
|
107
|
-
return
|
|
106
|
+
}, [F("*")]) : null, t.title]), p = t.tooltip ? m(t.tooltip) ? t.tooltip(t) : r(w, null, [t.tooltip]) : null;
|
|
107
|
+
return p ? r("span", {
|
|
108
108
|
style: {
|
|
109
109
|
display: "inline-flex",
|
|
110
110
|
alignItems: "center",
|
|
111
111
|
maxWidth: "100%"
|
|
112
112
|
}
|
|
113
|
-
}, [
|
|
114
|
-
title:
|
|
113
|
+
}, [n, r(_, {
|
|
114
|
+
title: p,
|
|
115
115
|
placement: "bottom"
|
|
116
116
|
}, {
|
|
117
|
-
default: () => [
|
|
117
|
+
default: () => [r(E, {
|
|
118
118
|
style: {
|
|
119
119
|
padding: "4px",
|
|
120
120
|
color: d,
|
|
121
121
|
verticalAlign: "middle"
|
|
122
122
|
}
|
|
123
123
|
}, null)]
|
|
124
|
-
})]) :
|
|
124
|
+
})]) : n;
|
|
125
125
|
}
|
|
126
126
|
export {
|
|
127
127
|
k as getColumnIsRequired,
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
R as getEditableComponent,
|
|
129
|
+
et as getEditableTableTitle,
|
|
130
|
+
tt as getFinalNode,
|
|
131
131
|
B as getRawDisplayValue,
|
|
132
|
-
|
|
133
|
-
|
|
132
|
+
H as mergeClass,
|
|
133
|
+
M as scrollToRowIndex
|
|
134
134
|
};
|
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
import { Ref } from 'vue';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
|
-
type Options = {
|
|
4
|
-
defaultValue?:
|
|
3
|
+
type Options<ValueType = any> = {
|
|
4
|
+
defaultValue?: ValueType;
|
|
5
5
|
defaultValuePropName?: string;
|
|
6
6
|
valuePropName?: string;
|
|
7
|
+
/**
|
|
8
|
+
* 在更新值之前执行,返回false将不更新值,支持异步
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
beforeUpdateValue?: (nextVal: ValueType) => boolean | Promise<boolean>;
|
|
7
12
|
};
|
|
8
13
|
export declare function useControllableValue<ValueType = any>(props: Recordable, emit: (event: any, ...args: any[]) => void, options?: Options): {
|
|
9
14
|
value: Ref<ValueType>;
|
|
10
|
-
updateValue: (newValue: any) => void
|
|
15
|
+
updateValue: (newValue: any) => Promise<void>;
|
|
11
16
|
};
|
|
12
17
|
export {};
|
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as V, nextTick as n, watch as N } from "vue";
|
|
2
2
|
import { isUndefined as d } from "lodash-unified";
|
|
3
|
-
function
|
|
4
|
-
const f = (e == null ? void 0 : e.defaultValuePropName) || "defaultValue",
|
|
5
|
-
function
|
|
6
|
-
|
|
3
|
+
function g(a, t, e) {
|
|
4
|
+
const f = (e == null ? void 0 : e.defaultValuePropName) || "defaultValue", l = (e == null ? void 0 : e.valuePropName) || "value", u = V(m());
|
|
5
|
+
async function v(r) {
|
|
6
|
+
e != null && e.beforeUpdateValue && (c(), !await e.beforeUpdateValue(r)) || (a[l] === void 0 && (u.value = r), t(`update:${l}`, r));
|
|
7
7
|
}
|
|
8
8
|
function c() {
|
|
9
|
-
|
|
9
|
+
u.value === void 0 && (u.value = "", n(() => {
|
|
10
|
+
u.value = void 0;
|
|
11
|
+
}));
|
|
10
12
|
}
|
|
11
|
-
|
|
12
|
-
()
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
function m() {
|
|
14
|
+
return d(a[l]) ? d(a[f]) ? e == null ? void 0 : e.defaultValue : a[f] : a[l];
|
|
15
|
+
}
|
|
16
|
+
return N(
|
|
17
|
+
() => a[l],
|
|
18
|
+
(r) => {
|
|
19
|
+
u.value = r;
|
|
15
20
|
},
|
|
16
21
|
{
|
|
17
22
|
deep: !0
|
|
18
23
|
}
|
|
19
24
|
), {
|
|
20
|
-
value:
|
|
21
|
-
updateValue:
|
|
25
|
+
value: u,
|
|
26
|
+
updateValue: v
|
|
22
27
|
};
|
|
23
28
|
}
|
|
24
29
|
export {
|
|
25
|
-
|
|
30
|
+
g as useControllableValue
|
|
26
31
|
};
|
package/es/src/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { APConfigProvider as s } from "./config-provider/index.mjs";
|
|
|
2
2
|
import { ApForm as n } from "./ap-form/index.mjs";
|
|
3
3
|
import { ApField as F } from "./ap-field/index.mjs";
|
|
4
4
|
import { adminToken as T, aplusToken as I } from "./design-token/index.mjs";
|
|
5
|
-
import { ApActionItem as
|
|
5
|
+
import { ApActionItem as g } from "./ap-action/index.mjs";
|
|
6
6
|
import "./work-order-modal/index.mjs";
|
|
7
7
|
import "./ap-tag/index.mjs";
|
|
8
8
|
import "./ap-info-layout/index.mjs";
|
|
@@ -16,9 +16,9 @@ import "./business/index.mjs";
|
|
|
16
16
|
import "./ap-table/index.mjs";
|
|
17
17
|
import "./editable-table/index.mjs";
|
|
18
18
|
import "./ap-descriptions/index.mjs";
|
|
19
|
-
import { configProviderProps as
|
|
20
|
-
import { configProviderContextKey as
|
|
21
|
-
import { keysOf as
|
|
19
|
+
import { configProviderProps as L } from "./config-provider/config-provider-props.mjs";
|
|
20
|
+
import { configProviderContextKey as N } from "./config-provider/constants.mjs";
|
|
21
|
+
import { keysOf as w, provideGlobalConfig as M, useGlobalConfig as R } from "./config-provider/hooks/use-global-config.mjs";
|
|
22
22
|
import { buildLocaleContext as E, buildTranslator as B, localeContextKey as K, translate as O, useLocale as W } from "./config-provider/hooks/use-locale.mjs";
|
|
23
23
|
import { defaultNamespace as U, namespaceContextKey as j, useGetDerivedNamespace as q, useNamespace as z } from "./config-provider/hooks/use-namespace.mjs";
|
|
24
24
|
import { ConfigProvider as Q, globalConfigCached as V } from "./config-provider/config-provider.mjs";
|
|
@@ -29,18 +29,18 @@ import { default as ro } from "./ap-form/items/date/index.vue.mjs";
|
|
|
29
29
|
import { default as po } from "./ap-form/items/date-range/index.vue.mjs";
|
|
30
30
|
import { default as mo } from "./ap-form/items/radio/index.vue.mjs";
|
|
31
31
|
import { default as lo } from "./ap-form/items/select/index.vue.mjs";
|
|
32
|
-
import { default as
|
|
32
|
+
import { default as uo } from "./ap-form/items/switch/index.vue.mjs";
|
|
33
33
|
import { default as so } from "./ap-form/items/checkbox/index.vue.mjs";
|
|
34
34
|
import { default as no } from "./ap-form/items/text/password.vue.mjs";
|
|
35
35
|
import { default as Fo } from "./ap-form/item/index.vue.mjs";
|
|
36
36
|
import { default as To } from "./ap-form/item-group/index.vue.mjs";
|
|
37
|
-
import { default as
|
|
37
|
+
import { default as Co } from "./ap-form/list/index.vue.mjs";
|
|
38
38
|
import { default as Do } from "./ap-form/search-form/index.vue.mjs";
|
|
39
39
|
import { default as Go } from "./ap-form/modal-form/index.vue.mjs";
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import { ApFieldText as
|
|
40
|
+
import { default as yo } from "./ap-form/dependency/index.vue.mjs";
|
|
41
|
+
import { default as Po } from "./ap-form/set/index.vue.mjs";
|
|
42
|
+
import { default as ko } from "./ap-form/drawer-form/index.vue.mjs";
|
|
43
|
+
import { ApFieldText as Mo } from "./ap-field/text/index.mjs";
|
|
44
44
|
import { default as vo } from "./ap-field/checkbox/index.vue.mjs";
|
|
45
45
|
import { default as Bo } from "./ap-field/date/index.vue.mjs";
|
|
46
46
|
import { default as Oo } from "./ap-field/number/index.vue.mjs";
|
|
@@ -56,17 +56,17 @@ import { default as te } from "./ap-field/rate/index.vue.mjs";
|
|
|
56
56
|
import { default as ae } from "./ap-action/item-modal/index.vue.mjs";
|
|
57
57
|
import { default as fe } from "./ap-action/item-popconfirm/index.vue.mjs";
|
|
58
58
|
import { default as de } from "./ap-action/item-dropdown/index.vue.mjs";
|
|
59
|
-
import { default as
|
|
59
|
+
import { default as ue } from "./ap-action/group/index.vue.mjs";
|
|
60
60
|
import { DictCode as se, langMap as ie } from "./work-order-modal/interfaces.mjs";
|
|
61
61
|
import { createWorkOrderModal as ce } from "./work-order-modal/createWorkOrder.mjs";
|
|
62
62
|
import { default as be } from "./work-order-modal/work-order-modal.vue.mjs";
|
|
63
63
|
import { default as Ie } from "./ap-tag/ap-tag.vue.mjs";
|
|
64
|
-
import { default as
|
|
64
|
+
import { default as ge } from "./ap-tag/ap-tag-group.vue.mjs";
|
|
65
65
|
import { default as he } from "./ap-info-layout/ApInfoLayout.vue.mjs";
|
|
66
66
|
import { NeedNameKeyDefault as Se } from "./ap-upload/apUploadTypes.mjs";
|
|
67
|
-
import { default as
|
|
68
|
-
import { ApDownLoadNeedNameKeyDefault as
|
|
69
|
-
import { default as
|
|
67
|
+
import { default as Le } from "./ap-upload/apUpload.vue.mjs";
|
|
68
|
+
import { ApDownLoadNeedNameKeyDefault as Ne } from "./ap-download/interface.mjs";
|
|
69
|
+
import { default as we } from "./ap-download/ap-download.vue.mjs";
|
|
70
70
|
import { default as Re } from "./check-card/group.vue.mjs";
|
|
71
71
|
import { default as Ee } from "./ap-list/index.vue.mjs";
|
|
72
72
|
import { default as Ke } from "./ap-button/ap-button.vue.mjs";
|
|
@@ -83,27 +83,29 @@ import { ApCard as pr } from "./business/ap-card/index.mjs";
|
|
|
83
83
|
import { ApExpandAlert as mr } from "./business/ap-expand-alert/index.mjs";
|
|
84
84
|
import { ApExportGroupActionType as lr } from "./business/ap-export-group/interface.mjs";
|
|
85
85
|
import { ApExportGroup as xr } from "./business/ap-export-group/index.mjs";
|
|
86
|
-
import { handleExportDownload as
|
|
86
|
+
import { handleExportDownload as Ar } from "./business/ap-export-group/handleExportDownload.mjs";
|
|
87
87
|
import { ApImage as ir } from "./business/ap-image/index.mjs";
|
|
88
88
|
import { ApInputRadio as cr } from "./business/ap-input-radio/index.mjs";
|
|
89
89
|
import { ApLabel as br, ApLabelGroup as Tr } from "./business/ap-label/index.mjs";
|
|
90
|
-
import { locales as
|
|
90
|
+
import { locales as Cr } from "./business/ap-ladder/interface.mjs";
|
|
91
91
|
import { ApLadder as Dr } from "./business/ap-ladder/index.mjs";
|
|
92
92
|
import { ApSelectLayout as Gr } from "./business/ap-select-layout/index.mjs";
|
|
93
|
-
import { ApStatus as
|
|
94
|
-
import { ApTitle as
|
|
95
|
-
import { usePageListApTable as
|
|
93
|
+
import { ApStatus as yr, ApStatusGroup as Lr } from "./business/ap-status/index.mjs";
|
|
94
|
+
import { ApTitle as Nr } from "./business/ap-title/index.mjs";
|
|
95
|
+
import { usePageListApTable as wr } from "./business/hooks/usePageListApTable.mjs";
|
|
96
96
|
import { useTableRefresh as Rr } from "./business/hooks/useTableRefresh.mjs";
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import { default as
|
|
101
|
-
import { default as
|
|
97
|
+
import { computedRecords as Er, flattenColumns as Br, formatDataIndex as Kr, formatNumber as Or } from "./business/ap-summary/utils.mjs";
|
|
98
|
+
import { ApSummary as Hr } from "./business/ap-summary/index.mjs";
|
|
99
|
+
import { useTablePaging as jr } from "./ap-table/hooks/use-table-paging.mjs";
|
|
100
|
+
import { default as zr } from "./ap-table/ap-table.vue.mjs";
|
|
101
|
+
import { default as Qr } from "./editable-table/index.vue.mjs";
|
|
102
|
+
import { default as Xr } from "./editable-table/form-item.vue.mjs";
|
|
103
|
+
import { default as Zr } from "./ap-descriptions/ap-descriptions.vue.mjs";
|
|
102
104
|
export {
|
|
103
105
|
s as APConfigProvider,
|
|
104
106
|
We as ApActionButton,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
ue as ApActionGroup,
|
|
108
|
+
g as ApActionItem,
|
|
107
109
|
de as ApActionItemDropdown,
|
|
108
110
|
ae as ApActionItemModal,
|
|
109
111
|
fe as ApActionItemPopconfirm,
|
|
@@ -113,9 +115,9 @@ export {
|
|
|
113
115
|
Ke as ApButton,
|
|
114
116
|
rr as ApButtonGroup,
|
|
115
117
|
pr as ApCard,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
118
|
+
Zr as ApDescriptions,
|
|
119
|
+
Ne as ApDownLoadNeedNameKeyDefault,
|
|
120
|
+
we as ApDownload,
|
|
119
121
|
mr as ApExpandAlert,
|
|
120
122
|
xr as ApExportGroup,
|
|
121
123
|
lr as ApExportGroupActionType,
|
|
@@ -131,11 +133,11 @@ export {
|
|
|
131
133
|
Xo as ApFieldSelect,
|
|
132
134
|
$o as ApFieldSlider,
|
|
133
135
|
jo as ApFieldSwitch,
|
|
134
|
-
|
|
136
|
+
Mo as ApFieldText,
|
|
135
137
|
zo as ApFieldTextArea,
|
|
136
138
|
n as ApForm,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
yo as ApFormDependency,
|
|
140
|
+
ko as ApFormDrawerForm,
|
|
139
141
|
Fo as ApFormItem,
|
|
140
142
|
so as ApFormItemCheckbox,
|
|
141
143
|
ro as ApFormItemDate,
|
|
@@ -144,14 +146,14 @@ export {
|
|
|
144
146
|
oo as ApFormItemNumber,
|
|
145
147
|
mo as ApFormItemRadio,
|
|
146
148
|
lo as ApFormItemSelect,
|
|
147
|
-
|
|
149
|
+
uo as ApFormItemSwitch,
|
|
148
150
|
Y as ApFormItemText,
|
|
149
151
|
_ as ApFormItemTextArea,
|
|
150
152
|
no as ApFormItemTextPassword,
|
|
151
|
-
|
|
153
|
+
Co as ApFormList,
|
|
152
154
|
Go as ApFormModalForm,
|
|
153
155
|
Do as ApFormSearchForm,
|
|
154
|
-
|
|
156
|
+
Po as ApFormSet,
|
|
155
157
|
ir as ApImage,
|
|
156
158
|
he as ApInfoLayout,
|
|
157
159
|
cr as ApInputRadio,
|
|
@@ -161,47 +163,52 @@ export {
|
|
|
161
163
|
Ee as ApList,
|
|
162
164
|
S as ApModal,
|
|
163
165
|
Gr as ApSelectLayout,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
yr as ApStatus,
|
|
167
|
+
Lr as ApStatusGroup,
|
|
168
|
+
Hr as ApSummary,
|
|
169
|
+
zr as ApTable,
|
|
167
170
|
qe as ApTableModal,
|
|
168
171
|
Ie as ApTag,
|
|
169
|
-
|
|
170
|
-
|
|
172
|
+
ge as ApTagGroup,
|
|
173
|
+
Nr as ApTitle,
|
|
171
174
|
Ue as ApTransformDataHelper,
|
|
172
|
-
|
|
175
|
+
Le as ApUpload,
|
|
173
176
|
h as CheckCard,
|
|
174
177
|
Re as CheckCardGroup,
|
|
175
178
|
Q as ConfigProvider,
|
|
176
179
|
se as DictCode,
|
|
177
|
-
|
|
178
|
-
|
|
180
|
+
Qr as EditableTable,
|
|
181
|
+
Xr as EditableTableFormItem,
|
|
179
182
|
Se as NeedNameKeyDefault,
|
|
180
183
|
be as WorkOrderModal,
|
|
181
184
|
T as adminToken,
|
|
182
185
|
I as aplusToken,
|
|
183
186
|
E as buildLocaleContext,
|
|
184
187
|
B as buildTranslator,
|
|
185
|
-
|
|
186
|
-
|
|
188
|
+
Er as computedRecords,
|
|
189
|
+
N as configProviderContextKey,
|
|
190
|
+
L as configProviderProps,
|
|
187
191
|
ce as createWorkOrderModal,
|
|
188
192
|
U as defaultNamespace,
|
|
193
|
+
Br as flattenColumns,
|
|
194
|
+
Kr as formatDataIndex,
|
|
195
|
+
Or as formatNumber,
|
|
189
196
|
V as globalConfigCached,
|
|
190
|
-
|
|
191
|
-
|
|
197
|
+
Ar as handleExportDownload,
|
|
198
|
+
w as keysOf,
|
|
192
199
|
ie as langMap,
|
|
193
200
|
K as localeContextKey,
|
|
194
|
-
|
|
201
|
+
Cr as locales,
|
|
195
202
|
j as namespaceContextKey,
|
|
196
|
-
|
|
203
|
+
M as provideGlobalConfig,
|
|
197
204
|
O as translate,
|
|
198
205
|
q as useGetDerivedNamespace,
|
|
199
206
|
R as useGlobalConfig,
|
|
200
207
|
W as useLocale,
|
|
201
208
|
z as useNamespace,
|
|
202
|
-
|
|
209
|
+
wr as usePageListApTable,
|
|
203
210
|
Je as useTableModal,
|
|
204
|
-
|
|
211
|
+
jr as useTablePaging,
|
|
205
212
|
Rr as useTableRefresh,
|
|
206
213
|
Ve as useTableSelectModal
|
|
207
214
|
};
|
package/es/src/path-map.mjs
CHANGED
|
@@ -41,6 +41,7 @@ const e = {
|
|
|
41
41
|
ApFormItemSwitch: ["ap-form", "item-switch"],
|
|
42
42
|
ApFormItemCheckbox: ["ap-form", "item-checkbox"],
|
|
43
43
|
ApFormItemTextPassword: ["ap-form", "item-text-password"],
|
|
44
|
+
ApFormItemTextGroup: ["ap-form", "item-text-group"],
|
|
44
45
|
ApInfoLayout: ["ap-info-layout"],
|
|
45
46
|
ApList: ["ap-list"],
|
|
46
47
|
ApModal: ["ap-modal"],
|
|
@@ -70,7 +71,8 @@ const e = {
|
|
|
70
71
|
ApStatus: ["business", "ap-status"],
|
|
71
72
|
ApStatusGroup: ["business", "ap-status", "group"],
|
|
72
73
|
ApTableModal: ["business", "ap-table-modal"],
|
|
73
|
-
ApTitle: ["business", "ap-title"]
|
|
74
|
+
ApTitle: ["business", "ap-title"],
|
|
75
|
+
ApSummary: ["business", "ap-summary"]
|
|
74
76
|
};
|
|
75
77
|
export {
|
|
76
78
|
e as default
|
package/es/src/utils/slot.d.ts
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
import { VNode } from 'vue';
|
|
1
|
+
import { VNode, RendererNode, RendererElement } from 'vue';
|
|
2
2
|
/**
|
|
3
3
|
* 获取某个插槽下的唯一VNode
|
|
4
4
|
* @param slot
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export declare function getSingleVNode(slot: any): VNode | undefined;
|
|
8
|
+
/**
|
|
9
|
+
* 获取正常渲染的节点(排出注释节点)
|
|
10
|
+
* @param nodeList
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function getValidVNodeList(nodeList: VNode[]): VNode< RendererNode, RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>[];
|
package/es/src/utils/slot.mjs
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { isFunction as
|
|
2
|
-
import { isArray as
|
|
1
|
+
import { isFunction as n } from "@fruits-chain/utils";
|
|
2
|
+
import { isArray as e } from "lodash-unified";
|
|
3
3
|
function u(r) {
|
|
4
|
-
if (!r || !
|
|
4
|
+
if (!r || !n(r)) {
|
|
5
5
|
console.error(`${r} is not a function!`);
|
|
6
6
|
return;
|
|
7
7
|
}
|
|
8
|
-
const
|
|
9
|
-
return
|
|
8
|
+
const t = r();
|
|
9
|
+
return e(t) ? i(t)[0] : t;
|
|
10
|
+
}
|
|
11
|
+
function i(r) {
|
|
12
|
+
return (r || []).filter((t) => t.type !== Symbol.for("v-cmt"));
|
|
10
13
|
}
|
|
11
14
|
export {
|
|
12
|
-
u as getSingleVNode
|
|
15
|
+
u as getSingleVNode,
|
|
16
|
+
i as getValidVNodeList
|
|
13
17
|
};
|