@aplus-frontend/ui 0.0.1-beta.5 → 0.0.1-beta.7
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 +114 -83
- package/es/src/ap-action/constant.d.ts +0 -0
- package/es/src/ap-action/group/index.vue.d.ts +38 -0
- package/es/src/ap-action/group/index.vue.mjs +64 -0
- package/es/src/ap-action/group/index.vue2.mjs +4 -0
- package/es/src/ap-action/index.d.ts +14 -0
- package/es/src/ap-action/index.mjs +17 -0
- package/es/src/ap-action/interface.d.ts +81 -0
- package/es/src/ap-action/item/index.vue.d.ts +44 -0
- package/es/src/ap-action/item/index.vue.mjs +49 -0
- package/es/src/ap-action/item/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/es/src/ap-action/item-dropdown/index.vue.mjs +92 -0
- package/es/src/ap-action/item-dropdown/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/es/src/ap-action/item-modal/index.vue.mjs +34 -0
- package/es/src/ap-action/item-modal/index.vue2.mjs +4 -0
- package/es/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/es/src/ap-action/item-popconfirm/index.vue.mjs +37 -0
- package/es/src/ap-action/item-popconfirm/index.vue2.mjs +4 -0
- package/es/src/ap-action/style/item-dropdown.css +11 -0
- package/es/src/ap-action/style/item.css +28 -0
- package/es/src/ap-field/checkbox/helper.mjs +5 -0
- package/es/src/ap-field/checkbox/index.vue.d.ts +39 -0
- package/es/src/ap-field/checkbox/index.vue.mjs +56 -0
- package/es/src/ap-field/checkbox/index.vue2.mjs +4 -0
- package/es/src/ap-field/date/constant.mjs +50 -0
- package/es/src/ap-field/date/helper.d.ts +2 -0
- package/es/src/ap-field/date/helper.mjs +10 -0
- package/es/src/ap-field/date/index.vue.d.ts +57 -0
- package/es/src/ap-field/date/index.vue.mjs +75 -0
- package/es/src/ap-field/date/index.vue2.mjs +4 -0
- package/es/src/ap-field/date-range/index.vue.d.ts +59 -0
- package/es/src/ap-field/date-range/index.vue.mjs +87 -0
- package/es/src/ap-field/date-range/index.vue2.mjs +4 -0
- package/es/src/ap-field/index.d.ts +9 -3
- package/es/src/ap-field/interface.d.ts +65 -5
- package/es/src/ap-field/number/helper.d.ts +1 -0
- package/es/src/ap-field/number/helper.mjs +14 -0
- package/es/src/ap-field/number/index.vue.d.ts +72 -0
- package/es/src/ap-field/number/index.vue.mjs +108 -0
- package/es/src/ap-field/number/index.vue2.mjs +4 -0
- package/es/src/ap-field/number/style.css +6 -0
- package/es/src/ap-field/radio/helper.d.ts +4 -0
- package/es/src/ap-field/radio/helper.mjs +5 -0
- package/es/src/ap-field/radio/index.vue.d.ts +40 -0
- package/es/src/ap-field/radio/index.vue.mjs +68 -0
- package/es/src/ap-field/radio/index.vue2.mjs +4 -0
- package/es/src/ap-field/select/index.vue.d.ts +235 -0
- package/es/src/ap-field/select/index.vue.mjs +114 -0
- package/es/src/ap-field/select/index.vue2.mjs +4 -0
- package/es/src/ap-field/switch/index.vue.d.ts +54 -0
- package/es/src/ap-field/switch/index.vue.mjs +122 -0
- package/es/src/ap-field/switch/index.vue2.mjs +4 -0
- package/es/src/ap-field/text/index.vue.d.ts +63 -0
- package/es/src/ap-field/text/index.vue.mjs +132 -0
- package/es/src/ap-field/text/index.vue2.mjs +4 -0
- package/es/src/ap-field/text-area/index.vue.d.ts +49 -0
- package/es/src/ap-field/text-area/index.vue.mjs +86 -0
- package/es/src/ap-field/text-area/index.vue2.mjs +4 -0
- package/es/src/ap-field/text-area/style.css +5 -0
- package/es/src/ap-form/index.d.ts +64 -64
- package/es/src/base-button/index.d.ts +28 -28
- package/es/src/basic/help.vue.d.ts +1 -1
- package/es/src/basic/index.d.ts +3 -3
- package/es/src/config-provider/config-provider.d.ts +2 -2
- package/es/src/config-provider/index.d.ts +6 -6
- package/es/src/count-down/index.d.ts +12 -12
- package/es/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/es/src/cropper/cropper-image.vue.d.ts +1 -1
- package/es/src/cropper/index.d.ts +42 -42
- package/es/src/description/description.vue.d.ts +1 -1
- package/es/src/description/index.d.ts +3 -3
- package/es/src/design-token/index.d.ts +4 -0
- package/es/src/design-token/index.mjs +59 -0
- package/es/src/dropdown/dropdown.vue.d.ts +1 -1
- package/es/src/dropdown/index.d.ts +7 -7
- package/es/src/icon/index.d.ts +41 -41
- package/es/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/es/src/icon-picker/index.d.ts +45 -45
- package/es/src/index.d.ts +3 -0
- package/es/src/index.mjs +121 -90
- package/es/src/modal/basic.vue.d.ts +3 -2
- package/es/src/modal/basic.vue.mjs +53 -49
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/components/modal.d.ts +1 -1
- package/es/src/modal/index.d.ts +7 -8
- package/es/src/modal/index.mjs +2 -3
- package/es/src/modal/props.mjs +1 -1
- package/es/src/modal/style/index.css +29 -30
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-form-events.mjs +22 -22
- package/es/src/pro-form/hooks/use-form-values.mjs +12 -12
- package/es/src/pro-form/hooks/use-label-width.d.ts +5 -5
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/pro-form/pro-form.vue.mjs +23 -23
- package/es/src/pro-table/hooks/use-columns.mjs +24 -24
- package/es/src/strength-meter/index.d.ts +12 -12
- package/es/src/theme/ap-action/item-dropdown.css +11 -0
- package/es/src/theme/ap-action/item.css +28 -0
- package/es/src/theme/ap-field/number.css +6 -0
- package/es/src/theme/ap-field/text-area.css +5 -0
- package/es/src/theme/modal/index.css +29 -30
- package/es/src/type.d.ts +3 -1
- package/es/src/utils/index.d.ts +7 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-action/constant.d.ts +0 -0
- package/lib/src/ap-action/group/index.vue.d.ts +38 -0
- package/lib/src/ap-action/group/index.vue.js +1 -0
- package/lib/src/ap-action/group/index.vue2.js +1 -0
- package/lib/src/ap-action/index.d.ts +14 -0
- package/lib/src/ap-action/index.js +1 -0
- package/lib/src/ap-action/interface.d.ts +81 -0
- package/lib/src/ap-action/item/index.vue.d.ts +44 -0
- package/lib/src/ap-action/item/index.vue.js +1 -0
- package/lib/src/ap-action/item/index.vue2.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +57 -0
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -0
- package/lib/src/ap-action/item-dropdown/index.vue2.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue.d.ts +41 -0
- package/lib/src/ap-action/item-modal/index.vue.js +1 -0
- package/lib/src/ap-action/item-modal/index.vue2.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.d.ts +343 -0
- package/lib/src/ap-action/item-popconfirm/index.vue.js +1 -0
- package/lib/src/ap-action/item-popconfirm/index.vue2.js +1 -0
- package/lib/src/ap-action/style/item-dropdown.css +11 -0
- package/lib/src/ap-action/style/item.css +28 -0
- package/lib/src/ap-field/checkbox/helper.js +1 -0
- package/lib/src/ap-field/checkbox/index.vue.d.ts +39 -0
- package/lib/src/ap-field/checkbox/index.vue.js +1 -0
- package/lib/src/ap-field/checkbox/index.vue2.js +1 -0
- package/lib/src/ap-field/date/constant.js +1 -0
- package/lib/src/ap-field/date/helper.d.ts +2 -0
- package/lib/src/ap-field/date/helper.js +1 -0
- package/lib/src/ap-field/date/index.vue.d.ts +57 -0
- package/lib/src/ap-field/date/index.vue.js +1 -0
- package/lib/src/ap-field/date/index.vue2.js +1 -0
- package/lib/src/ap-field/date-range/index.vue.d.ts +59 -0
- package/lib/src/ap-field/date-range/index.vue.js +1 -0
- package/lib/src/ap-field/date-range/index.vue2.js +1 -0
- package/lib/src/ap-field/index.d.ts +9 -3
- package/lib/src/ap-field/interface.d.ts +65 -5
- package/lib/src/ap-field/number/helper.d.ts +1 -0
- package/lib/src/ap-field/number/helper.js +1 -0
- package/lib/src/ap-field/number/index.vue.d.ts +72 -0
- package/lib/src/ap-field/number/index.vue.js +1 -0
- package/lib/src/ap-field/number/index.vue2.js +1 -0
- package/lib/src/ap-field/number/style.css +6 -0
- package/lib/src/ap-field/radio/helper.d.ts +4 -0
- package/lib/src/ap-field/radio/helper.js +1 -0
- package/lib/src/ap-field/radio/index.vue.d.ts +40 -0
- package/lib/src/ap-field/radio/index.vue.js +1 -0
- package/lib/src/ap-field/radio/index.vue2.js +1 -0
- package/lib/src/ap-field/select/index.vue.d.ts +235 -0
- package/lib/src/ap-field/select/index.vue.js +1 -0
- package/lib/src/ap-field/select/index.vue2.js +1 -0
- package/lib/src/ap-field/switch/index.vue.d.ts +54 -0
- package/lib/src/ap-field/switch/index.vue.js +1 -0
- package/lib/src/ap-field/switch/index.vue2.js +1 -0
- package/lib/src/ap-field/text/index.vue.d.ts +63 -0
- package/lib/src/ap-field/text/index.vue.js +1 -0
- package/lib/src/ap-field/text/index.vue2.js +1 -0
- package/lib/src/ap-field/text-area/index.vue.d.ts +49 -0
- package/lib/src/ap-field/text-area/index.vue.js +1 -0
- package/lib/src/ap-field/text-area/index.vue2.js +1 -0
- package/lib/src/ap-field/text-area/style.css +5 -0
- package/lib/src/ap-form/index.d.ts +64 -64
- package/lib/src/base-button/index.d.ts +28 -28
- package/lib/src/basic/help.vue.d.ts +1 -1
- package/lib/src/basic/index.d.ts +3 -3
- package/lib/src/config-provider/config-provider.d.ts +2 -2
- package/lib/src/config-provider/index.d.ts +6 -6
- package/lib/src/count-down/index.d.ts +12 -12
- package/lib/src/cropper/cropper-avatar.vue.d.ts +1 -1
- package/lib/src/cropper/cropper-image.vue.d.ts +1 -1
- package/lib/src/cropper/index.d.ts +42 -42
- package/lib/src/description/description.vue.d.ts +1 -1
- package/lib/src/description/index.d.ts +3 -3
- package/lib/src/design-token/index.d.ts +4 -0
- package/lib/src/design-token/index.js +1 -0
- package/lib/src/dropdown/dropdown.vue.d.ts +1 -1
- package/lib/src/dropdown/index.d.ts +7 -7
- package/lib/src/icon/index.d.ts +41 -41
- package/lib/src/icon-picker/icon-picker.vue.d.ts +3 -3
- package/lib/src/icon-picker/index.d.ts +45 -45
- package/lib/src/index.d.ts +3 -0
- package/lib/src/index.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +3 -2
- package/lib/src/modal/basic.vue.js +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/components/modal.d.ts +1 -1
- package/lib/src/modal/index.d.ts +7 -8
- package/lib/src/modal/index.js +1 -1
- package/lib/src/modal/props.js +1 -1
- package/lib/src/modal/style/index.css +29 -30
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-form-events.js +1 -1
- package/lib/src/pro-form/hooks/use-form-values.js +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +5 -5
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/pro-form/pro-form.vue.js +1 -1
- package/lib/src/pro-table/hooks/use-columns.js +1 -1
- package/lib/src/strength-meter/index.d.ts +12 -12
- package/lib/src/theme/ap-action/item-dropdown.css +11 -0
- package/lib/src/theme/ap-action/item.css +28 -0
- package/lib/src/theme/ap-field/number.css +6 -0
- package/lib/src/theme/ap-field/text-area.css +5 -0
- package/lib/src/theme/modal/index.css +29 -30
- package/lib/src/type.d.ts +3 -1
- package/lib/src/utils/index.d.ts +7 -0
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isObject as
|
|
2
|
-
import
|
|
3
|
-
import { unref as
|
|
1
|
+
import { isObject as l, isArray as D, isFunction as x, isString as F, set as T, get as V, unset as g, isNil as j, isEmpty as E, cloneDeep as K } from "lodash-unified";
|
|
2
|
+
import b from "dayjs";
|
|
3
|
+
import { unref as O } from "vue";
|
|
4
4
|
function S(y, o, m) {
|
|
5
5
|
const u = /^\[(.+)\]$/;
|
|
6
6
|
if (u.test(y)) {
|
|
@@ -19,7 +19,7 @@ function $(y, o, m) {
|
|
|
19
19
|
const f = y.match(u);
|
|
20
20
|
if (f && f[1]) {
|
|
21
21
|
const h = f[1].split(",");
|
|
22
|
-
return o =
|
|
22
|
+
return o = l(o) ? o : {}, h.forEach((p) => {
|
|
23
23
|
T(m, p.trim(), o[p.trim()]);
|
|
24
24
|
}), !0;
|
|
25
25
|
}
|
|
@@ -33,7 +33,7 @@ function R({
|
|
|
33
33
|
}) {
|
|
34
34
|
function f(i) {
|
|
35
35
|
var e, s;
|
|
36
|
-
if (!
|
|
36
|
+
if (!l(i))
|
|
37
37
|
return {};
|
|
38
38
|
const r = {};
|
|
39
39
|
for (const a of Object.entries(i)) {
|
|
@@ -41,13 +41,13 @@ function R({
|
|
|
41
41
|
const [n] = a;
|
|
42
42
|
if (!n || D(t) && t.length === 0 || x(t))
|
|
43
43
|
continue;
|
|
44
|
-
const c =
|
|
45
|
-
|
|
44
|
+
const c = O(u).transformDateFunc;
|
|
45
|
+
l(t) && (t = c == null ? void 0 : c(t)), D(t) && ((e = t[0]) != null && e.format) && ((s = t[1]) != null && s.format) && (t = t.map((A) => c == null ? void 0 : c(A))), F(t) && (t = t.trim()), !S(n, t, r) && !$(n, t, r) && T(r, n, t);
|
|
46
46
|
}
|
|
47
47
|
return h(r);
|
|
48
48
|
}
|
|
49
49
|
function h(i) {
|
|
50
|
-
const r =
|
|
50
|
+
const r = O(u).fieldMapToTime;
|
|
51
51
|
if (!r || !Array.isArray(r))
|
|
52
52
|
return i;
|
|
53
53
|
for (const [
|
|
@@ -62,20 +62,20 @@ function R({
|
|
|
62
62
|
continue;
|
|
63
63
|
}
|
|
64
64
|
const [n, c] = V(i, e), [A, Y] = Array.isArray(t) ? t : [t, t];
|
|
65
|
-
!
|
|
65
|
+
!j(n) && !E(n) && T(i, s, p(n, A)), !j(c) && !E(c) && T(i, a, p(c, Y)), g(i, e);
|
|
66
66
|
}
|
|
67
67
|
return i;
|
|
68
68
|
}
|
|
69
69
|
function p(i, r) {
|
|
70
|
-
return r === "timestamp" ?
|
|
70
|
+
return r === "timestamp" ? b(i).unix() : r === "timestampStartDay" ? b(i).startOf("day").unix() : b(i).format(r);
|
|
71
71
|
}
|
|
72
72
|
function d() {
|
|
73
|
-
const i =
|
|
73
|
+
const i = O(o), r = {};
|
|
74
74
|
i.forEach((e) => {
|
|
75
75
|
const { defaultValue: s, defaultValueObj: a } = e, t = Object.keys(a || {});
|
|
76
76
|
t.length && t.map((n) => {
|
|
77
77
|
r[n] = a[n], m[n] === void 0 && (m[n] = a[n]);
|
|
78
|
-
}),
|
|
78
|
+
}), j(s) || (r[e.field] = s, m[e.field] === void 0 && (m[e.field] = s));
|
|
79
79
|
}), y.value = K(r);
|
|
80
80
|
}
|
|
81
81
|
return { handleFormValues: f, initDefault: d };
|
|
@@ -110,7 +110,7 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
110
110
|
contextmenu?: string | undefined;
|
|
111
111
|
dir?: string | undefined;
|
|
112
112
|
draggable?: (boolean | "true" | "false") | undefined;
|
|
113
|
-
hidden?: "" |
|
|
113
|
+
hidden?: "" | (boolean | "true" | "false") | "hidden" | "until-found" | undefined;
|
|
114
114
|
id?: string | undefined;
|
|
115
115
|
inert?: (boolean | "true" | "false") | undefined;
|
|
116
116
|
lang?: string | undefined;
|
|
@@ -141,11 +141,11 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
141
141
|
results?: (string | number) | undefined;
|
|
142
142
|
security?: string | undefined;
|
|
143
143
|
unselectable?: "on" | "off" | undefined;
|
|
144
|
-
inputmode?: "text" | "search" | "
|
|
144
|
+
inputmode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
145
145
|
is?: string | undefined;
|
|
146
146
|
'aria-activedescendant'?: string | undefined;
|
|
147
147
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
148
|
-
'aria-autocomplete'?: "
|
|
148
|
+
'aria-autocomplete'?: "inline" | "none" | "both" | "list" | undefined;
|
|
149
149
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
150
150
|
'aria-checked'?: (boolean | "true" | "false") | "mixed" | undefined;
|
|
151
151
|
'aria-colcount'?: (string | number) | undefined;
|
|
@@ -156,12 +156,12 @@ export declare function useItemLabelWidth(schemaItemRef: Ref<FormSchema>, propsR
|
|
|
156
156
|
'aria-describedby'?: string | undefined;
|
|
157
157
|
'aria-details'?: string | undefined;
|
|
158
158
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
159
|
-
'aria-dropeffect'?: "
|
|
159
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
160
160
|
'aria-errormessage'?: string | undefined;
|
|
161
161
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
162
162
|
'aria-flowto'?: string | undefined;
|
|
163
163
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
164
|
-
'aria-haspopup'?: "
|
|
164
|
+
'aria-haspopup'?: "menu" | "dialog" | (boolean | "true" | "false") | "grid" | "listbox" | "tree" | undefined;
|
|
165
165
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
166
166
|
'aria-invalid'?: (boolean | "true" | "false") | "grammar" | "spelling" | undefined;
|
|
167
167
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -66,7 +66,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
66
66
|
"onAdvanced-change"?: ((...args: any[]) => any) | undefined;
|
|
67
67
|
"onField-value-change"?: ((...args: any[]) => any) | undefined;
|
|
68
68
|
}, {
|
|
69
|
-
size: "
|
|
69
|
+
size: "default" | "small" | "large";
|
|
70
70
|
layout: "inline" | "horizontal" | "vertical";
|
|
71
71
|
labelWidth: string | number;
|
|
72
72
|
rulesMessageJoinLabel: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as pe, useAttrs as ve, reactive as $, ref as f, computed as c, unref as a, watch as b, nextTick as ye, onMounted as ge, openBlock as V, createBlock as N, mergeProps as C, withKeys as Be, withCtx as h, createVNode as Y, normalizeProps as z, guardReactiveProps as
|
|
1
|
+
import { defineComponent as pe, useAttrs as ve, reactive as $, ref as f, computed as c, unref as a, watch as b, nextTick as ye, onMounted as ge, openBlock as V, createBlock as N, mergeProps as C, withKeys as Be, withCtx as h, createVNode as Y, normalizeProps as z, guardReactiveProps as j, renderSlot as A, createElementBlock as be, Fragment as he, renderList as M, createSlots as K } from "vue";
|
|
2
2
|
import { Form as Ae, Row as Fe } from "ant-design-vue";
|
|
3
3
|
import Se from "./components/form-item.vue.mjs";
|
|
4
4
|
import we from "./components/form-action.vue.mjs";
|
|
@@ -70,8 +70,8 @@ const ot = /* @__PURE__ */ pe({
|
|
|
70
70
|
"register",
|
|
71
71
|
"field-value-change"
|
|
72
72
|
],
|
|
73
|
-
setup(r, { expose: d, emit:
|
|
74
|
-
const p = r, v =
|
|
73
|
+
setup(r, { expose: d, emit: U }) {
|
|
74
|
+
const p = r, v = U, x = ve(), s = $({}), m = ke(), R = $({
|
|
75
75
|
isAdvanced: !0,
|
|
76
76
|
hideAdvanceBtn: !1,
|
|
77
77
|
isLoad: !1,
|
|
@@ -96,15 +96,15 @@ const ot = /* @__PURE__ */ pe({
|
|
|
96
96
|
for (const o of e) {
|
|
97
97
|
const {
|
|
98
98
|
defaultValue: t,
|
|
99
|
-
component:
|
|
99
|
+
component: l,
|
|
100
100
|
componentProps: i = {},
|
|
101
101
|
isHandleDateDefaultValue: fe = !0
|
|
102
102
|
} = o;
|
|
103
|
-
if (fe && t &&
|
|
103
|
+
if (fe && t && l && Pe.includes(l)) {
|
|
104
104
|
const de = {
|
|
105
105
|
schema: o,
|
|
106
106
|
tableAction: p.tableAction ?? {},
|
|
107
|
-
formModel:
|
|
107
|
+
formModel: s,
|
|
108
108
|
formActionType: {}
|
|
109
109
|
}, B = i ? typeof i == "function" ? i(de).valueFormat : i.valueFormat : null;
|
|
110
110
|
if (!Array.isArray(t))
|
|
@@ -127,13 +127,13 @@ const ot = /* @__PURE__ */ pe({
|
|
|
127
127
|
emit: v,
|
|
128
128
|
getProps: n,
|
|
129
129
|
getSchema: u,
|
|
130
|
-
formModel:
|
|
130
|
+
formModel: s,
|
|
131
131
|
defaultValueRef: y
|
|
132
132
|
}), { handleFormValues: ee, initDefault: _ } = Ce({
|
|
133
133
|
getProps: n,
|
|
134
134
|
defaultValueRef: y,
|
|
135
135
|
getSchema: u,
|
|
136
|
-
formModel:
|
|
136
|
+
formModel: s
|
|
137
137
|
});
|
|
138
138
|
_e({
|
|
139
139
|
getSchema: u,
|
|
@@ -151,13 +151,13 @@ const ot = /* @__PURE__ */ pe({
|
|
|
151
151
|
updateSchema: ne,
|
|
152
152
|
resetSchema: k,
|
|
153
153
|
appendSchemaByField: re,
|
|
154
|
-
removeSchemaByField:
|
|
154
|
+
removeSchemaByField: se,
|
|
155
155
|
resetFields: H,
|
|
156
|
-
scrollToField:
|
|
156
|
+
scrollToField: le
|
|
157
157
|
} = Re({
|
|
158
158
|
emit: v,
|
|
159
159
|
getProps: n,
|
|
160
|
-
formModel:
|
|
160
|
+
formModel: s,
|
|
161
161
|
getSchema: u,
|
|
162
162
|
defaultValueRef: y,
|
|
163
163
|
formElRef: P,
|
|
@@ -190,7 +190,7 @@ const ot = /* @__PURE__ */ pe({
|
|
|
190
190
|
}), !a(S) && e != null && e.length && (_(), S.value = !0);
|
|
191
191
|
}
|
|
192
192
|
), b(
|
|
193
|
-
() =>
|
|
193
|
+
() => s,
|
|
194
194
|
Ee(() => {
|
|
195
195
|
a(n).submitOnChange && g();
|
|
196
196
|
}, 300),
|
|
@@ -200,7 +200,7 @@ const ot = /* @__PURE__ */ pe({
|
|
|
200
200
|
w.value = Ve(a(w) || {}, e);
|
|
201
201
|
}
|
|
202
202
|
function ie(e, o, t) {
|
|
203
|
-
|
|
203
|
+
s[e] = o, v("field-value-change", e, o), t && t.itemProps && !t.itemProps.autoLink && O([e]).catch((l) => {
|
|
204
204
|
});
|
|
205
205
|
}
|
|
206
206
|
function ce(e) {
|
|
@@ -217,13 +217,13 @@ const ot = /* @__PURE__ */ pe({
|
|
|
217
217
|
updateSchema: ne,
|
|
218
218
|
resetSchema: k,
|
|
219
219
|
setProps: ue,
|
|
220
|
-
removeSchemaByField:
|
|
220
|
+
removeSchemaByField: se,
|
|
221
221
|
appendSchemaByField: re,
|
|
222
222
|
clearValidate: te,
|
|
223
223
|
validateFields: O,
|
|
224
224
|
validate: oe,
|
|
225
225
|
submit: g,
|
|
226
|
-
scrollToField:
|
|
226
|
+
scrollToField: le
|
|
227
227
|
}, me = c(
|
|
228
228
|
() => ({ ...n.value, ...R })
|
|
229
229
|
);
|
|
@@ -235,11 +235,11 @@ const ot = /* @__PURE__ */ pe({
|
|
|
235
235
|
class: W.value,
|
|
236
236
|
ref_key: "formElRef",
|
|
237
237
|
ref: P,
|
|
238
|
-
model:
|
|
238
|
+
model: s,
|
|
239
239
|
onKeypress: Be(ce, ["enter"])
|
|
240
240
|
}), {
|
|
241
241
|
default: h(() => [
|
|
242
|
-
Y(a(Fe), z(
|
|
242
|
+
Y(a(Fe), z(j(q.value)), {
|
|
243
243
|
default: h(() => [
|
|
244
244
|
A(e.$slots, "formHeader"),
|
|
245
245
|
(V(!0), be(he, null, M(u.value, (t) => (V(), N(Se, {
|
|
@@ -250,13 +250,13 @@ const ot = /* @__PURE__ */ pe({
|
|
|
250
250
|
schema: t,
|
|
251
251
|
formProps: n.value,
|
|
252
252
|
allDefaultValues: y.value,
|
|
253
|
-
formModel:
|
|
253
|
+
formModel: s,
|
|
254
254
|
setFormModel: ie
|
|
255
255
|
}, K({ _: 2 }, [
|
|
256
|
-
M(Object.keys(e.$slots), (
|
|
257
|
-
name:
|
|
256
|
+
M(Object.keys(e.$slots), (l) => ({
|
|
257
|
+
name: l,
|
|
258
258
|
fn: h((i) => [
|
|
259
|
-
A(e.$slots,
|
|
259
|
+
A(e.$slots, l, C({ ref_for: !0 }, i || {}))
|
|
260
260
|
])
|
|
261
261
|
}))
|
|
262
262
|
]), 1032, ["isAdvanced", "tableAction", "schema", "formProps", "allDefaultValues", "formModel"]))), 128)),
|
|
@@ -268,8 +268,8 @@ const ot = /* @__PURE__ */ pe({
|
|
|
268
268
|
"advanceAfter"
|
|
269
269
|
], (t) => ({
|
|
270
270
|
name: t,
|
|
271
|
-
fn: h((
|
|
272
|
-
A(e.$slots, t, z(
|
|
271
|
+
fn: h((l) => [
|
|
272
|
+
A(e.$slots, t, z(j(l || {})))
|
|
273
273
|
])
|
|
274
274
|
}))
|
|
275
275
|
]), 1040, ["onToggleAdvanced"]),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as K, unref as C, computed as v, watch as V, reactive as W, toRaw as X } from "vue";
|
|
2
2
|
import { renderEditCell as q } from "../components/editable/index.mjs";
|
|
3
|
-
import { cloneDeep as
|
|
3
|
+
import { cloneDeep as F, isBoolean as b, isFunction as O, isArray as S, isString as R, isEqual as Z, isMap as $ } from "lodash-unified";
|
|
4
4
|
import { INDEX_COLUMN_FLAG as w, DEFAULT_ALIGN as J, ACTION_COLUMN_FLAG as A } from "../const.mjs";
|
|
5
5
|
import Q from "dayjs";
|
|
6
6
|
import "../../config-provider/index.mjs";
|
|
@@ -36,8 +36,8 @@ function dn(t, r) {
|
|
|
36
36
|
const l = Y(), { t: c } = nn(), u = l.value.table.defaultPageSize, I = l.value.table.permissionValidator, h = K(C(t).columns);
|
|
37
37
|
let f = C(t).columns;
|
|
38
38
|
const E = v(() => {
|
|
39
|
-
const n =
|
|
40
|
-
if (
|
|
39
|
+
const n = F(C(h));
|
|
40
|
+
if (G(t, r, n), en(t, n), !n)
|
|
41
41
|
return [];
|
|
42
42
|
const { ellipsis: e } = C(t);
|
|
43
43
|
return n.forEach((s) => {
|
|
@@ -48,12 +48,12 @@ function dn(t, r) {
|
|
|
48
48
|
);
|
|
49
49
|
}), n;
|
|
50
50
|
});
|
|
51
|
-
function
|
|
51
|
+
function j(n) {
|
|
52
52
|
const e = n.ifShow;
|
|
53
53
|
let s = !0;
|
|
54
54
|
return b(e) && (s = e), O(e) && (s = e(n)), s;
|
|
55
55
|
}
|
|
56
|
-
const
|
|
56
|
+
const D = v(() => {
|
|
57
57
|
const n = L(C(E)), e = (o) => {
|
|
58
58
|
const { slots: i, customRender: g, format: a, edit: m, editRow: d, flag: p } = o;
|
|
59
59
|
(!i || !(i != null && i.title)) && (o.customTitle = o.title);
|
|
@@ -61,12 +61,12 @@ function dn(t, r) {
|
|
|
61
61
|
p
|
|
62
62
|
);
|
|
63
63
|
return !g && a && !m && !x && (o.customRender = ({
|
|
64
|
-
text:
|
|
64
|
+
text: y,
|
|
65
65
|
record: B,
|
|
66
66
|
index: H
|
|
67
|
-
}) => tn(
|
|
67
|
+
}) => tn(y, a, B, H)), (m || d) && !x && (o.customRender = q(o)), W(o);
|
|
68
68
|
};
|
|
69
|
-
return
|
|
69
|
+
return F(n).filter((o) => I(o.auth) && j(o)).map((o) => {
|
|
70
70
|
var i;
|
|
71
71
|
return (i = o.children) != null && i.length && (o.children = o.children.map(e)), e(o);
|
|
72
72
|
});
|
|
@@ -77,7 +77,7 @@ function dn(t, r) {
|
|
|
77
77
|
h.value = n, f = (n == null ? void 0 : n.filter((e) => !e.flag)) ?? [];
|
|
78
78
|
}
|
|
79
79
|
);
|
|
80
|
-
function
|
|
80
|
+
function G(n, e, s) {
|
|
81
81
|
const { showIndexColumn: o, indexColumnProps: i, isTreeTable: g } = C(n);
|
|
82
82
|
let a = !1;
|
|
83
83
|
if (C(g) || (s.forEach(() => {
|
|
@@ -97,8 +97,8 @@ function dn(t, r) {
|
|
|
97
97
|
const p = C(e);
|
|
98
98
|
if (b(p))
|
|
99
99
|
return `${d + 1}`;
|
|
100
|
-
const { current: x = 1, pageSize:
|
|
101
|
-
return ((x < 1 ? 1 : x) - 1) *
|
|
100
|
+
const { current: x = 1, pageSize: y = u } = p;
|
|
101
|
+
return ((x < 1 ? 1 : x) - 1) * y + d + 1;
|
|
102
102
|
},
|
|
103
103
|
...m ? {
|
|
104
104
|
fixed: "left"
|
|
@@ -106,7 +106,7 @@ function dn(t, r) {
|
|
|
106
106
|
...i
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
|
-
function
|
|
109
|
+
function N(n, e) {
|
|
110
110
|
!n || !e || f.forEach((s) => {
|
|
111
111
|
if (s.dataIndex === n) {
|
|
112
112
|
Object.assign(s, e);
|
|
@@ -114,16 +114,16 @@ function dn(t, r) {
|
|
|
114
114
|
}
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
const e =
|
|
119
|
-
if (!
|
|
117
|
+
function P(n) {
|
|
118
|
+
const e = F(n);
|
|
119
|
+
if (!S(e))
|
|
120
120
|
return;
|
|
121
121
|
if (e.length <= 0) {
|
|
122
122
|
h.value = [];
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
125
|
const s = e[0], o = f.map((i) => i.dataIndex);
|
|
126
|
-
if (!R(s) && !
|
|
126
|
+
if (!R(s) && !S(s))
|
|
127
127
|
h.value = e;
|
|
128
128
|
else {
|
|
129
129
|
const i = e.map(
|
|
@@ -148,24 +148,24 @@ function dn(t, r) {
|
|
|
148
148
|
let i = X(C(E));
|
|
149
149
|
return e && (i = i.filter((g) => g.flag !== w)), s && (i = i.filter((g) => g.flag !== A)), o && (i = L(i)), i;
|
|
150
150
|
}
|
|
151
|
-
function
|
|
151
|
+
function k() {
|
|
152
152
|
return f;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
154
|
+
function U(n) {
|
|
155
|
+
S(n) && (f = n.filter((e) => !e.flag));
|
|
156
156
|
}
|
|
157
157
|
function z(n, e) {
|
|
158
158
|
e.width = n;
|
|
159
159
|
}
|
|
160
160
|
return {
|
|
161
161
|
getColumnsRef: E,
|
|
162
|
-
getCacheColumns:
|
|
162
|
+
getCacheColumns: k,
|
|
163
163
|
getColumns: M,
|
|
164
|
-
setColumns:
|
|
164
|
+
setColumns: P,
|
|
165
165
|
setColumnWidth: z,
|
|
166
|
-
getViewColumns:
|
|
167
|
-
setCacheColumnsByField:
|
|
168
|
-
setCacheColumns:
|
|
166
|
+
getViewColumns: D,
|
|
167
|
+
setCacheColumnsByField: N,
|
|
168
|
+
setCacheColumns: U
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
171
|
function L(t) {
|
|
@@ -2,12 +2,12 @@ import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOpt
|
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const StrengthMeter: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
5
|
-
value: {
|
|
6
|
-
type: PropType<string>;
|
|
7
|
-
};
|
|
8
5
|
disabled: {
|
|
9
6
|
type: PropType<boolean>;
|
|
10
7
|
};
|
|
8
|
+
value: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
};
|
|
11
11
|
showInput: {
|
|
12
12
|
type: PropType<boolean>;
|
|
13
13
|
default: boolean;
|
|
@@ -19,12 +19,12 @@ export declare const StrengthMeter: {
|
|
|
19
19
|
change: (...args: any[]) => void;
|
|
20
20
|
"score-change": (...args: any[]) => void;
|
|
21
21
|
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
22
|
-
value: {
|
|
23
|
-
type: PropType<string>;
|
|
24
|
-
};
|
|
25
22
|
disabled: {
|
|
26
23
|
type: PropType<boolean>;
|
|
27
24
|
};
|
|
25
|
+
value: {
|
|
26
|
+
type: PropType<string>;
|
|
27
|
+
};
|
|
28
28
|
showInput: {
|
|
29
29
|
type: PropType<boolean>;
|
|
30
30
|
default: boolean;
|
|
@@ -42,12 +42,12 @@ export declare const StrengthMeter: {
|
|
|
42
42
|
M: {};
|
|
43
43
|
Defaults: {};
|
|
44
44
|
}, Readonly< ExtractPropTypes<{
|
|
45
|
-
value: {
|
|
46
|
-
type: PropType<string>;
|
|
47
|
-
};
|
|
48
45
|
disabled: {
|
|
49
46
|
type: PropType<boolean>;
|
|
50
47
|
};
|
|
48
|
+
value: {
|
|
49
|
+
type: PropType<string>;
|
|
50
|
+
};
|
|
51
51
|
showInput: {
|
|
52
52
|
type: PropType<boolean>;
|
|
53
53
|
default: boolean;
|
|
@@ -62,12 +62,12 @@ export declare const StrengthMeter: {
|
|
|
62
62
|
__isTeleport?: undefined;
|
|
63
63
|
__isSuspense?: undefined;
|
|
64
64
|
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
65
|
-
value: {
|
|
66
|
-
type: PropType<string>;
|
|
67
|
-
};
|
|
68
65
|
disabled: {
|
|
69
66
|
type: PropType<boolean>;
|
|
70
67
|
};
|
|
68
|
+
value: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
};
|
|
71
71
|
showInput: {
|
|
72
72
|
type: PropType<boolean>;
|
|
73
73
|
default: boolean;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.aplus-action-item {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
font-size: 14px;
|
|
4
|
+
line-height: 22px;
|
|
5
|
+
cursor: pointer;
|
|
6
|
+
}
|
|
7
|
+
.aplus-action-item--primary {
|
|
8
|
+
color: #0070ff;
|
|
9
|
+
}
|
|
10
|
+
.aplus-action-item--success {
|
|
11
|
+
color: #2ed1a3;
|
|
12
|
+
}
|
|
13
|
+
.aplus-action-item--error {
|
|
14
|
+
color: #FF4D4F;
|
|
15
|
+
}
|
|
16
|
+
.aplus-action-item--warn {
|
|
17
|
+
color: #FFA940;
|
|
18
|
+
}
|
|
19
|
+
.aplus-action-item--loading {
|
|
20
|
+
opacity: 0.35;
|
|
21
|
+
transition: opacity 0.2s;
|
|
22
|
+
}
|
|
23
|
+
.aplus-action-item--loading .btn-loading-icon {
|
|
24
|
+
margin-right: 4px;
|
|
25
|
+
}
|
|
26
|
+
.aplus-action-item--disabled {
|
|
27
|
+
color: #ABB7CC;
|
|
28
|
+
}
|
|
@@ -14,48 +14,50 @@
|
|
|
14
14
|
.fullscreen-modal .ant-modal-footer {
|
|
15
15
|
margin-top: 0;
|
|
16
16
|
}
|
|
17
|
-
.
|
|
17
|
+
.aplus-basic-modal {
|
|
18
18
|
width: 520px;
|
|
19
19
|
padding-bottom: 0;
|
|
20
20
|
}
|
|
21
|
-
.
|
|
22
|
-
padding:
|
|
21
|
+
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar {
|
|
22
|
+
padding: 20px;
|
|
23
|
+
padding-bottom: 0;
|
|
23
24
|
}
|
|
24
|
-
.ant-modal-title {
|
|
25
|
+
.aplus-basic-modal .ant-modal-title {
|
|
25
26
|
font-size: 16px;
|
|
26
27
|
font-weight: bold;
|
|
27
28
|
}
|
|
28
|
-
.ant-modal-title .
|
|
29
|
+
.aplus-basic-modal .ant-modal-title .aplus-basic-title {
|
|
29
30
|
cursor: move !important;
|
|
31
|
+
padding-left: 0;
|
|
30
32
|
}
|
|
31
|
-
.
|
|
33
|
+
.aplus-basic-modal .ant-modal-body {
|
|
32
34
|
padding: 0;
|
|
33
35
|
}
|
|
34
|
-
.
|
|
36
|
+
.aplus-basic-modal .ant-modal-body > .aplus-scrollbar > .aplus-scrollbar__bar.is-horizontal {
|
|
35
37
|
display: none;
|
|
36
38
|
}
|
|
37
|
-
.ant-modal-large {
|
|
39
|
+
.aplus-basic-modal .ant-modal-large {
|
|
38
40
|
top: 60px;
|
|
39
41
|
}
|
|
40
|
-
.ant-modal-large--mini {
|
|
42
|
+
.aplus-basic-modal .ant-modal-large .ant-modal--mini {
|
|
41
43
|
top: 16px;
|
|
42
44
|
}
|
|
43
|
-
.ant-modal-header {
|
|
44
|
-
padding:
|
|
45
|
+
.aplus-basic-modal .ant-modal-header {
|
|
46
|
+
padding: 15px 20px;
|
|
47
|
+
margin-bottom: 0;
|
|
45
48
|
border-bottom: 1px solid #eee;
|
|
46
49
|
}
|
|
47
|
-
.ant-modal-content {
|
|
50
|
+
.aplus-basic-modal .ant-modal-content {
|
|
48
51
|
padding: 0 !important;
|
|
49
|
-
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 #000000;
|
|
50
52
|
}
|
|
51
|
-
.ant-modal-footer {
|
|
52
|
-
padding:
|
|
53
|
-
|
|
53
|
+
.aplus-basic-modal .ant-modal-footer {
|
|
54
|
+
padding: 20px;
|
|
55
|
+
margin-top: 0;
|
|
54
56
|
}
|
|
55
|
-
.ant-modal-footer button + button {
|
|
57
|
+
.aplus-basic-modal .ant-modal-footer button + button {
|
|
56
58
|
margin-left: 10px;
|
|
57
59
|
}
|
|
58
|
-
.ant-modal-close {
|
|
60
|
+
.aplus-basic-modal .ant-modal-close {
|
|
59
61
|
top: 0 !important;
|
|
60
62
|
right: 0 !important;
|
|
61
63
|
width: auto !important;
|
|
@@ -63,41 +65,38 @@
|
|
|
63
65
|
background: transparent !important;
|
|
64
66
|
font-weight: normal;
|
|
65
67
|
}
|
|
66
|
-
.ant-modal-close-x {
|
|
68
|
+
.aplus-basic-modal .ant-modal-close-x {
|
|
67
69
|
display: inline-block;
|
|
68
70
|
width: 96px;
|
|
69
71
|
height: 56px;
|
|
70
72
|
line-height: 56px !important;
|
|
71
73
|
}
|
|
72
|
-
.ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
74
|
+
.aplus-basic-modal .ant-modal-confirm-body .ant-modal-confirm-content > * {
|
|
73
75
|
color: #909399;
|
|
74
76
|
}
|
|
75
|
-
.ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
77
|
+
.aplus-basic-modal .ant-modal-confirm-confirm.error .ant-modal-confirm-body > .anticon {
|
|
76
78
|
color: #ed6f6f;
|
|
77
79
|
}
|
|
78
|
-
.ant-modal-confirm-btns .ant-btn:last-child {
|
|
80
|
+
.aplus-basic-modal .ant-modal-confirm-btns .ant-btn:last-child {
|
|
79
81
|
margin-right: 0;
|
|
80
82
|
}
|
|
81
|
-
.ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
83
|
+
.aplus-basic-modal .ant-modal-confirm-info .ant-modal-confirm-body > .anticon {
|
|
82
84
|
color: #efbd47;
|
|
83
85
|
}
|
|
84
|
-
.ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
86
|
+
.aplus-basic-modal .ant-modal-confirm-confirm.success .ant-modal-confirm-body > .anticon {
|
|
85
87
|
color: #34b77c;
|
|
86
88
|
}
|
|
87
|
-
|
|
88
|
-
padding: 24px !important;
|
|
89
|
-
}
|
|
90
|
-
@media screen and (max-height: 600px) {
|
|
89
|
+
@media screen and (height <= 600px) {
|
|
91
90
|
.ant-modal {
|
|
92
91
|
top: 60px;
|
|
93
92
|
}
|
|
94
93
|
}
|
|
95
|
-
@media screen and (
|
|
94
|
+
@media screen and (height <= 540px) {
|
|
96
95
|
.ant-modal {
|
|
97
96
|
top: 30px;
|
|
98
97
|
}
|
|
99
98
|
}
|
|
100
|
-
@media screen and (
|
|
99
|
+
@media screen and (height <= 480px) {
|
|
101
100
|
.ant-modal {
|
|
102
101
|
top: 10px;
|
|
103
102
|
}
|
package/es/src/type.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CSSProperties } from 'vue';
|
|
1
|
+
import { CSSProperties, VNode } from 'vue';
|
|
2
2
|
|
|
3
3
|
export type StyleValue = string | CSSProperties | Array<StyleValue>;
|
|
4
4
|
export type Nullable<T> = T | null;
|
|
@@ -24,4 +24,6 @@ export interface ComponentElRef<T extends HTMLElement = HTMLDivElement> {
|
|
|
24
24
|
}
|
|
25
25
|
export type ComponentRef<T extends HTMLElement = HTMLDivElement> = ComponentElRef<T> | null;
|
|
26
26
|
export type EmitType = ReturnType<typeof defineEmits>;
|
|
27
|
+
type VNodeChildAtom = VNode | string | number | boolean | null | undefined | void;
|
|
28
|
+
export type VueNode = VNodeChildAtom | VNodeChildAtom[] | VNode;
|
|
27
29
|
export {};
|
package/es/src/utils/index.d.ts
CHANGED
|
@@ -4,3 +4,10 @@
|
|
|
4
4
|
export declare function getPopupContainer(node?: HTMLElement): HTMLElement;
|
|
5
5
|
export declare function isDef<T = unknown>(val?: T): val is T;
|
|
6
6
|
export declare function getDynamicProps<T extends Record<string, unknown>, U>(props: T): Partial<U>;
|
|
7
|
+
/**
|
|
8
|
+
* 按条件移除
|
|
9
|
+
* @param obj
|
|
10
|
+
* @param when
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function omitWhen<T extends object, K extends keyof T>(obj: T, fieldList?: K[], when?: (field: string, fieldValue: T[K]) => boolean): Omit<T, K>;
|