@aplus-frontend/ui 0.1.31 → 0.1.33
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 +77 -72
- package/es/src/ap-button/ap-action-button.vue.d.ts +43 -0
- package/es/src/ap-button/ap-action-button.vue.mjs +43 -0
- package/es/src/ap-button/ap-action-button.vue2.mjs +4 -0
- package/es/src/ap-button/ap-button.vue.mjs +52 -50
- package/es/src/ap-button/index.d.ts +2 -1
- package/es/src/ap-button/index.mjs +1 -0
- package/es/src/ap-button/interface.d.ts +1 -0
- package/es/src/ap-descriptions/ap-descriptions.vue.mjs +43 -45
- package/es/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/es/src/ap-descriptions/helper.d.ts +19 -1
- package/es/src/ap-descriptions/helper.mjs +22 -12
- package/es/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/es/src/ap-download/ap-download.vue.mjs +51 -40
- package/es/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/es/src/ap-download/utils/getFileInfo.mjs +51 -26
- package/es/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/es/src/ap-form/ap-form-item.vue.mjs +68 -62
- package/es/src/ap-form/ap-form-list.vue.mjs +23 -21
- package/es/src/ap-form/ap-form.vue.d.ts +3 -1
- package/es/src/ap-form/ap-form.vue2.mjs +130 -80
- package/es/src/ap-form/interface.d.ts +51 -1
- package/es/src/ap-form/items/checkbox/index.vue.mjs +6 -5
- package/es/src/ap-form/items/date/index.vue.mjs +10 -9
- package/es/src/ap-form/items/date-range/index.vue.mjs +8 -7
- package/es/src/ap-form/items/number/index.vue.mjs +12 -11
- package/es/src/ap-form/items/radio/index.vue.mjs +5 -4
- package/es/src/ap-form/items/select/index.vue.mjs +1 -0
- package/es/src/ap-form/items/switch/index.vue.mjs +10 -9
- package/es/src/ap-form/items/text/index.vue2.mjs +1 -0
- package/es/src/ap-form/items/text/password.vue.mjs +1 -0
- package/es/src/ap-form/items/text-area/index.vue.mjs +7 -6
- package/es/src/ap-form/modal-form/index.vue.d.ts +7 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +7 -3
- package/es/src/ap-form/utils/get.d.ts +1 -0
- package/es/src/ap-form/utils/get.mjs +12 -0
- package/es/src/ap-form/utils/set.d.ts +6 -0
- package/es/src/ap-form/utils/set.mjs +41 -0
- package/es/src/ap-list/index.vue.d.ts +3 -0
- package/es/src/ap-list/index.vue.mjs +51 -49
- package/es/src/ap-table/ap-table.vue.d.ts +4 -1
- package/es/src/ap-table/ap-table.vue.mjs +65 -59
- package/es/src/ap-table/constants.d.ts +121 -1
- package/es/src/ap-table/interface.d.ts +6 -1
- package/es/src/ap-table/utils.d.ts +121 -1
- package/es/src/business/ap-attachment/ApAttachment.mjs +76 -68
- package/es/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/es/src/business/ap-card/ApCard.vue.mjs +4 -0
- package/es/src/business/ap-card/ApCard.vue2.mjs +65 -0
- package/es/src/business/ap-card/index.css +10 -0
- package/es/src/business/ap-card/interface.d.ts +9 -0
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +104 -64
- package/es/src/business/ap-expand-alert/interface.d.ts +24 -6
- package/es/src/business/ap-expand-alert/style.css +9 -0
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +59 -70
- package/es/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/es/src/business/ap-export-group/handleExportDownload.mjs +14 -0
- package/es/src/business/{title → ap-title}/style.css +4 -4
- package/es/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/es/src/business/index.d.ts +105 -188
- package/es/src/business/index.mjs +28 -23
- package/es/src/check-card/group.vue.d.ts +7 -1
- package/es/src/check-card/group.vue.mjs +26 -22
- package/es/src/check-card/index.vue.d.ts +5 -2
- package/es/src/check-card/index.vue2.mjs +69 -60
- package/es/src/check-card/interface.d.ts +12 -0
- package/es/src/check-card/style/index.css +8 -5
- package/es/src/config-provider/config-provider-props.d.ts +5 -1
- package/es/src/config-provider/config-provider-props.mjs +6 -2
- package/es/src/config-provider/config-provider.d.ts +10 -1
- package/es/src/config-provider/config-provider.mjs +20 -19
- package/es/src/config-provider/constants.d.ts +9 -0
- package/es/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/es/src/config-provider/index.d.ts +20 -1
- package/es/src/editable-table/interface.d.ts +3 -2
- package/es/src/index.mjs +215 -210
- package/es/src/locale/lang/en.mjs +4 -0
- package/es/src/locale/lang/zh-cn.mjs +4 -0
- package/es/src/theme/ap-card/ap-card.css +10 -0
- package/es/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/es/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
- package/es/src/theme/ap-title/ap-title.css +4 -4
- package/es/src/theme/check-card/index.css +8 -5
- package/es/src/theme/css-var/index.mjs +33 -15
- package/lib/index.js +1 -1
- package/lib/src/ap-button/ap-action-button.vue.d.ts +43 -0
- package/lib/src/ap-button/ap-action-button.vue.js +1 -0
- package/lib/src/ap-button/ap-action-button.vue2.js +1 -0
- package/lib/src/ap-button/ap-button.vue.js +1 -1
- package/lib/src/ap-button/index.d.ts +2 -1
- package/lib/src/ap-button/index.js +1 -1
- package/lib/src/ap-button/interface.d.ts +1 -0
- package/lib/src/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/ap-descriptions/formatter/index.d.ts +2 -2
- package/lib/src/ap-descriptions/helper.d.ts +19 -1
- package/lib/src/ap-descriptions/helper.js +1 -1
- package/lib/src/ap-descriptions/style/ap-descriptions.css +1 -5
- package/lib/src/ap-download/ap-download.vue.js +1 -1
- package/lib/src/ap-download/utils/getFileInfo.d.ts +4 -1
- package/lib/src/ap-download/utils/getFileInfo.js +1 -1
- package/lib/src/ap-form/ap-form-item.vue.d.ts +1 -1
- package/lib/src/ap-form/ap-form-item.vue.js +1 -1
- package/lib/src/ap-form/ap-form-list.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue.d.ts +3 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/interface.d.ts +51 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/date/index.vue.js +1 -1
- package/lib/src/ap-form/items/date-range/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.js +1 -1
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.d.ts +7 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +7 -3
- package/lib/src/ap-form/utils/get.d.ts +1 -0
- package/lib/src/ap-form/utils/get.js +1 -0
- package/lib/src/ap-form/utils/set.d.ts +6 -0
- package/lib/src/ap-form/utils/set.js +1 -0
- package/lib/src/ap-list/index.vue.d.ts +3 -0
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -1
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +121 -1
- package/lib/src/ap-table/interface.d.ts +6 -1
- package/lib/src/ap-table/utils.d.ts +121 -1
- package/lib/src/business/ap-attachment/ApAttachment.js +1 -1
- package/lib/src/business/ap-card/ApCard.vue.d.ts +27 -0
- package/lib/src/business/ap-card/ApCard.vue.js +1 -0
- package/lib/src/business/ap-card/ApCard.vue2.js +1 -0
- package/lib/src/business/ap-card/index.css +10 -0
- package/lib/src/business/ap-card/interface.d.ts +9 -0
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +30 -100
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/interface.d.ts +24 -6
- package/lib/src/business/ap-expand-alert/style.css +9 -0
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/handleExportDownload.d.ts +1 -0
- package/lib/src/business/ap-export-group/handleExportDownload.js +1 -0
- package/lib/src/business/{title → ap-title}/style.css +4 -4
- package/lib/src/business/hooks/usePageListApTable.d.ts +2 -0
- package/lib/src/business/index.d.ts +105 -188
- package/lib/src/business/index.js +1 -1
- package/lib/src/check-card/group.vue.d.ts +7 -1
- package/lib/src/check-card/group.vue.js +1 -1
- package/lib/src/check-card/index.vue.d.ts +5 -2
- package/lib/src/check-card/index.vue2.js +1 -1
- package/lib/src/check-card/interface.d.ts +12 -0
- package/lib/src/check-card/style/index.css +8 -5
- package/lib/src/config-provider/config-provider-props.d.ts +5 -1
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +10 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/constants.d.ts +9 -0
- package/lib/src/config-provider/hooks/use-global-config.d.ts +5 -1
- package/lib/src/config-provider/index.d.ts +20 -1
- package/lib/src/editable-table/interface.d.ts +3 -2
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/theme/ap-card/ap-card.css +10 -0
- package/lib/src/theme/ap-descriptions/ap-descriptions.css +1 -5
- package/lib/src/theme/ap-expand-alert/ap-expand-alert.css +9 -0
- package/lib/src/theme/ap-title/ap-title.css +4 -4
- package/lib/src/theme/check-card/index.css +8 -5
- package/lib/src/theme/css-var/index.js +1 -1
- package/package.json +1 -1
- /package/es/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue.mjs +0 -0
- /package/es/src/business/{title → ap-title}/ApTitle.vue2.mjs +0 -0
- /package/es/src/business/{title → ap-title}/interface.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.d.ts +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue.js +0 -0
- /package/lib/src/business/{title → ap-title}/ApTitle.vue2.js +0 -0
- /package/lib/src/business/{title → ap-title}/interface.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as f, useSlots as m, openBlock as u, createBlock as c, normalizeProps as a, guardReactiveProps as t, unref as l, createSlots as b, withCtx as r, createVNode as B, mergeProps as _, renderList as x, renderSlot as y } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
|
-
import { omit as
|
|
4
|
+
import { omit as s } from "lodash-unified";
|
|
5
5
|
import g from "../../ap-form-item.vue.mjs";
|
|
6
6
|
import h from "../../../ap-field/checkbox/index.vue.mjs";
|
|
7
7
|
const w = /* @__PURE__ */ f({
|
|
@@ -45,18 +45,19 @@ const w = /* @__PURE__ */ f({
|
|
|
45
45
|
valuePropName: {},
|
|
46
46
|
initialValue: {},
|
|
47
47
|
_signal: {},
|
|
48
|
+
transform: {},
|
|
48
49
|
field: { default: () => ({}) },
|
|
49
50
|
disabled: { type: Boolean, default: !1 }
|
|
50
51
|
},
|
|
51
|
-
setup(
|
|
52
|
-
const d =
|
|
53
|
-
return (e, v) => (u(), c(g, a(t(l(
|
|
52
|
+
setup(i) {
|
|
53
|
+
const d = i, n = m();
|
|
54
|
+
return (e, v) => (u(), c(g, a(t(l(s)(d, ["field", "disabled"]))), b({
|
|
54
55
|
default: r(() => [
|
|
55
56
|
B(l(h), _({ disabled: e.disabled }, e.field), null, 16, ["disabled"])
|
|
56
57
|
]),
|
|
57
58
|
_: 2
|
|
58
59
|
}, [
|
|
59
|
-
x(l(
|
|
60
|
+
x(l(s)(n, "default"), (C, o) => ({
|
|
60
61
|
name: o,
|
|
61
62
|
fn: r((p) => [
|
|
62
63
|
y(e.$slots, o, a(t(p || {})))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as
|
|
1
|
+
import { defineComponent as h, useSlots as B, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as a, createSlots as i, withCtx as n, createVNode as g, renderList as p, renderSlot as f } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/date/index.vue2.mjs";
|
|
4
4
|
import { isUndefined as F, omit as m, pick as S } from "lodash-unified";
|
|
@@ -47,12 +47,13 @@ const L = /* @__PURE__ */ h({
|
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
49
|
_signal: {},
|
|
50
|
+
transform: {},
|
|
50
51
|
field: { default: () => ({}) },
|
|
51
52
|
placeholder: {},
|
|
52
53
|
disabled: { type: Boolean, default: !1 }
|
|
53
54
|
},
|
|
54
55
|
setup(c) {
|
|
55
|
-
const e = c,
|
|
56
|
+
const e = c, s = B(), b = y(() => {
|
|
56
57
|
var o;
|
|
57
58
|
return {
|
|
58
59
|
placeholder: e.placeholder,
|
|
@@ -61,12 +62,12 @@ const L = /* @__PURE__ */ h({
|
|
|
61
62
|
bordered: e.bordered ? !1 : F((o = e.field) == null ? void 0 : o.bordered) ? !0 : e.field.bordered
|
|
62
63
|
};
|
|
63
64
|
});
|
|
64
|
-
return (o, P) => (v(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))),
|
|
65
|
-
default:
|
|
66
|
-
g(C, r(t(b.value)),
|
|
67
|
-
p(a(m)(
|
|
65
|
+
return (o, P) => (v(), x(k, r(t(a(m)(e, ["field", "placeholder", "disabled"]))), i({
|
|
66
|
+
default: n(() => [
|
|
67
|
+
g(C, r(t(b.value)), i({ _: 2 }, [
|
|
68
|
+
p(a(m)(s, a(u)), (_, l) => ({
|
|
68
69
|
name: l,
|
|
69
|
-
fn:
|
|
70
|
+
fn: n((d) => [
|
|
70
71
|
f(o.$slots, l, r(t(d || {})))
|
|
71
72
|
])
|
|
72
73
|
}))
|
|
@@ -74,9 +75,9 @@ const L = /* @__PURE__ */ h({
|
|
|
74
75
|
]),
|
|
75
76
|
_: 2
|
|
76
77
|
}, [
|
|
77
|
-
p(a(S)(
|
|
78
|
+
p(a(S)(s, a(u)), (_, l) => ({
|
|
78
79
|
name: l,
|
|
79
|
-
fn:
|
|
80
|
+
fn: n((d) => [
|
|
80
81
|
f(o.$slots, l, r(t(d || {})))
|
|
81
82
|
])
|
|
82
83
|
}))
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as g, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as
|
|
1
|
+
import { defineComponent as B, useSlots as g, computed as y, openBlock as v, createBlock as x, normalizeProps as r, guardReactiveProps as t, unref as o, createSlots as p, withCtx as s, createVNode as F, renderList as f, renderSlot as m } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/index.mjs";
|
|
4
4
|
import { isUndefined as S, omit as u, pick as k } from "lodash-unified";
|
|
@@ -47,12 +47,13 @@ const I = /* @__PURE__ */ B({
|
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
49
|
_signal: {},
|
|
50
|
+
transform: {},
|
|
50
51
|
field: { default: () => ({}) },
|
|
51
52
|
placeholder: {},
|
|
52
53
|
disabled: { type: Boolean, default: !1 }
|
|
53
54
|
},
|
|
54
55
|
setup(b) {
|
|
55
|
-
const e = b,
|
|
56
|
+
const e = b, i = g(), _ = y(() => {
|
|
56
57
|
var l, d;
|
|
57
58
|
return {
|
|
58
59
|
placeholder: e.placeholder,
|
|
@@ -62,11 +63,11 @@ const I = /* @__PURE__ */ B({
|
|
|
62
63
|
};
|
|
63
64
|
});
|
|
64
65
|
return (l, d) => (v(), x(C, r(t(o(u)(e, ["field", "placeholder", "disabled"]))), p({
|
|
65
|
-
default:
|
|
66
|
+
default: s(() => [
|
|
66
67
|
F(o(P), r(t(_.value)), p({ _: 2 }, [
|
|
67
|
-
f(o(u)(
|
|
68
|
+
f(o(u)(i, o(c)), (h, a) => ({
|
|
68
69
|
name: a,
|
|
69
|
-
fn:
|
|
70
|
+
fn: s((n) => [
|
|
70
71
|
m(l.$slots, a, r(t(n || {})))
|
|
71
72
|
])
|
|
72
73
|
}))
|
|
@@ -74,9 +75,9 @@ const I = /* @__PURE__ */ B({
|
|
|
74
75
|
]),
|
|
75
76
|
_: 2
|
|
76
77
|
}, [
|
|
77
|
-
f(o(k)(
|
|
78
|
+
f(o(k)(i, o(c)), (h, a) => ({
|
|
78
79
|
name: a,
|
|
79
|
-
fn:
|
|
80
|
+
fn: s((n) => [
|
|
80
81
|
m(l.$slots, a, r(t(n || {})))
|
|
81
82
|
])
|
|
82
83
|
}))
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as B, useSlots as _, ref as v, openBlock as g, createBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as
|
|
1
|
+
import { defineComponent as B, useSlots as _, ref as v, openBlock as g, createBlock as x, normalizeProps as t, guardReactiveProps as s, unref as l, createSlots as d, withCtx as n, createVNode as k, mergeProps as N, renderList as i, renderSlot as f } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/number/index.vue2.mjs";
|
|
4
|
-
import { omit as
|
|
4
|
+
import { omit as u, pick as S } from "lodash-unified";
|
|
5
5
|
import { apFormItemSlotNames as m } from "../../constant.mjs";
|
|
6
6
|
import C from "../../ap-form-item.vue.mjs";
|
|
7
7
|
import F from "../../../ap-field/number/index.vue.mjs";
|
|
@@ -47,12 +47,13 @@ const T = /* @__PURE__ */ B({
|
|
|
47
47
|
valuePropName: {},
|
|
48
48
|
initialValue: {},
|
|
49
49
|
_signal: {},
|
|
50
|
+
transform: {},
|
|
50
51
|
field: { default: () => ({}) },
|
|
51
52
|
placeholder: {},
|
|
52
53
|
disabled: { type: Boolean, default: !1 }
|
|
53
54
|
},
|
|
54
55
|
setup(c, { expose: b }) {
|
|
55
|
-
const h = c,
|
|
56
|
+
const h = c, p = _(), a = v();
|
|
56
57
|
return b({
|
|
57
58
|
focus: () => {
|
|
58
59
|
var e;
|
|
@@ -62,28 +63,28 @@ const T = /* @__PURE__ */ B({
|
|
|
62
63
|
var e;
|
|
63
64
|
(e = a.value) == null || e.blur();
|
|
64
65
|
}
|
|
65
|
-
}), (e, R) => (g(), x(C, t(s(l(
|
|
66
|
-
default:
|
|
66
|
+
}), (e, R) => (g(), x(C, t(s(l(u)(h, ["field", "placeholder", "disabled"]))), d({
|
|
67
|
+
default: n(() => [
|
|
67
68
|
k(F, N({
|
|
68
69
|
ref_key: "inputNumberRef",
|
|
69
70
|
ref: a,
|
|
70
71
|
placeholder: e.placeholder,
|
|
71
72
|
disabled: e.disabled
|
|
72
73
|
}, e.field), d({ _: 2 }, [
|
|
73
|
-
i(l(
|
|
74
|
+
i(l(u)(p, l(m)), (y, o) => ({
|
|
74
75
|
name: o,
|
|
75
|
-
fn:
|
|
76
|
-
|
|
76
|
+
fn: n((r) => [
|
|
77
|
+
f(e.$slots, o, t(s(r || {})))
|
|
77
78
|
])
|
|
78
79
|
}))
|
|
79
80
|
]), 1040, ["placeholder", "disabled"])
|
|
80
81
|
]),
|
|
81
82
|
_: 2
|
|
82
83
|
}, [
|
|
83
|
-
i(l(S)(
|
|
84
|
+
i(l(S)(p, l(m)), (y, o) => ({
|
|
84
85
|
name: o,
|
|
85
|
-
fn:
|
|
86
|
-
|
|
86
|
+
fn: n((r) => [
|
|
87
|
+
f(e.$slots, o, t(s(r || {})))
|
|
87
88
|
])
|
|
88
89
|
}))
|
|
89
90
|
]), 1040));
|
|
@@ -45,12 +45,13 @@ const q = /* @__PURE__ */ u({
|
|
|
45
45
|
valuePropName: {},
|
|
46
46
|
initialValue: {},
|
|
47
47
|
_signal: {},
|
|
48
|
+
transform: {},
|
|
48
49
|
field: { default: () => ({}) },
|
|
49
50
|
disabled: { type: Boolean, default: !1 }
|
|
50
51
|
},
|
|
51
|
-
setup(i, { expose:
|
|
52
|
-
const
|
|
53
|
-
return
|
|
52
|
+
setup(i, { expose: n }) {
|
|
53
|
+
const d = i, p = m(), o = c();
|
|
54
|
+
return n({
|
|
54
55
|
focus: () => {
|
|
55
56
|
var e;
|
|
56
57
|
(e = o.value) == null || e.focus();
|
|
@@ -59,7 +60,7 @@ const q = /* @__PURE__ */ u({
|
|
|
59
60
|
var e;
|
|
60
61
|
(e = o.value) == null || e.blur();
|
|
61
62
|
}
|
|
62
|
-
}), (e, P) => (b(), _(k, a(t(r(h)(
|
|
63
|
+
}), (e, P) => (b(), _(k, a(t(r(h)(d, ["field", "disabled"]))), v({
|
|
63
64
|
default: s(() => [
|
|
64
65
|
y(r(C), B({
|
|
65
66
|
ref_key: "radioRef",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, useSlots as B, openBlock as h, createBlock as y, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as
|
|
1
|
+
import { defineComponent as b, useSlots as B, openBlock as h, createBlock as y, normalizeProps as t, guardReactiveProps as r, unref as o, createSlots as n, withCtx as s, createVNode as g, mergeProps as v, renderList as d, renderSlot as p } from "vue";
|
|
2
2
|
import "../../ap-form-item.vue2.mjs";
|
|
3
3
|
import "../../../ap-field/switch/index.vue2.mjs";
|
|
4
4
|
import { omit as m, pick as x } from "lodash-unified";
|
|
@@ -46,28 +46,29 @@ const I = /* @__PURE__ */ b({
|
|
|
46
46
|
valuePropName: { default: "checked" },
|
|
47
47
|
initialValue: {},
|
|
48
48
|
_signal: {},
|
|
49
|
+
transform: {},
|
|
49
50
|
field: { default: () => ({}) },
|
|
50
51
|
disabled: { type: Boolean, default: !1 }
|
|
51
52
|
},
|
|
52
53
|
setup(u) {
|
|
53
54
|
const c = u, i = B();
|
|
54
|
-
return (
|
|
55
|
+
return (a, C) => (h(), y(S, t(r(o(m)(c, ["field", "disabled"]))), n({
|
|
55
56
|
default: s(() => [
|
|
56
|
-
g(k, v({ disabled:
|
|
57
|
-
|
|
57
|
+
g(k, v({ disabled: a.disabled }, a.field), n({ _: 2 }, [
|
|
58
|
+
d(o(m)(i, o(f)), (_, e) => ({
|
|
58
59
|
name: e,
|
|
59
|
-
fn: s((
|
|
60
|
-
p(
|
|
60
|
+
fn: s((l) => [
|
|
61
|
+
p(a.$slots, e, t(r(l || {})))
|
|
61
62
|
])
|
|
62
63
|
}))
|
|
63
64
|
]), 1040, ["disabled"])
|
|
64
65
|
]),
|
|
65
66
|
_: 2
|
|
66
67
|
}, [
|
|
67
|
-
|
|
68
|
+
d(o(x)(i, o(f)), (_, e) => ({
|
|
68
69
|
name: e,
|
|
69
|
-
fn: s((
|
|
70
|
-
p(
|
|
70
|
+
fn: s((l) => [
|
|
71
|
+
p(a.$slots, e, t(r(l || {})))
|
|
71
72
|
])
|
|
72
73
|
}))
|
|
73
74
|
]), 1040));
|
|
@@ -44,13 +44,14 @@ const $ = /* @__PURE__ */ c({
|
|
|
44
44
|
valuePropName: {},
|
|
45
45
|
initialValue: {},
|
|
46
46
|
_signal: {},
|
|
47
|
+
transform: {},
|
|
47
48
|
field: { default: () => ({}) },
|
|
48
49
|
placeholder: {},
|
|
49
50
|
disabled: { type: Boolean, default: !1 }
|
|
50
51
|
},
|
|
51
|
-
setup(
|
|
52
|
-
const { TextArea:
|
|
53
|
-
return
|
|
52
|
+
setup(n, { expose: p }) {
|
|
53
|
+
const { TextArea: i } = C, f = b(), u = n, l = x();
|
|
54
|
+
return p({
|
|
54
55
|
focus: (e) => {
|
|
55
56
|
var a;
|
|
56
57
|
(a = l.value) == null || a.focus(e);
|
|
@@ -63,9 +64,9 @@ const $ = /* @__PURE__ */ c({
|
|
|
63
64
|
var e;
|
|
64
65
|
return (e = l.value) == null ? void 0 : e.resizableTextArea;
|
|
65
66
|
})
|
|
66
|
-
}), (e, a) => (v(), y(S, r(t(s(F)(
|
|
67
|
+
}), (e, a) => (v(), y(S, r(t(s(F)(u, ["field", "disabled", "placeholder"]))), B({
|
|
67
68
|
default: d(() => [
|
|
68
|
-
A(s(
|
|
69
|
+
A(s(i), g({
|
|
69
70
|
ref_key: "textAreaRef",
|
|
70
71
|
ref: l,
|
|
71
72
|
disabled: e.disabled,
|
|
@@ -74,7 +75,7 @@ const $ = /* @__PURE__ */ c({
|
|
|
74
75
|
]),
|
|
75
76
|
_: 2
|
|
76
77
|
}, [
|
|
77
|
-
_(
|
|
78
|
+
_(f, (z, o) => ({
|
|
78
79
|
name: o,
|
|
79
80
|
fn: d((m) => [
|
|
80
81
|
k(e.$slots, o, r(t(m || {})))
|
|
@@ -442,8 +442,10 @@ declare function __VLS_template(): {
|
|
|
442
442
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
443
443
|
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
444
444
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
445
|
+
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
446
|
+
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
445
447
|
getInternalInstance: (mark: string) => {
|
|
446
|
-
registerField: ({ initialValue, name }: RegistedFieldType) => void;
|
|
448
|
+
registerField: ({ initialValue, name, transform }: RegistedFieldType) => void;
|
|
447
449
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
448
450
|
} | undefined;
|
|
449
451
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
@@ -618,7 +620,7 @@ declare function __VLS_template(): {
|
|
|
618
620
|
initialValues: {
|
|
619
621
|
type: PropType<Recordable>;
|
|
620
622
|
};
|
|
621
|
-
}>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "registerWatch"> & ShallowUnwrapRef<{
|
|
623
|
+
}>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch"> & ShallowUnwrapRef<{
|
|
622
624
|
resetFields: () => Promise<void>;
|
|
623
625
|
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
624
626
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
@@ -634,8 +636,10 @@ declare function __VLS_template(): {
|
|
|
634
636
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
635
637
|
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
636
638
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
639
|
+
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
640
|
+
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
637
641
|
getInternalInstance: (mark: string) => {
|
|
638
|
-
registerField: ({ initialValue, name }: RegistedFieldType) => void;
|
|
642
|
+
registerField: ({ initialValue, name, transform }: RegistedFieldType) => void;
|
|
639
643
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
640
644
|
} | undefined;
|
|
641
645
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -437,8 +437,10 @@ declare function __VLS_template(): {
|
|
|
437
437
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
438
438
|
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
439
439
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
440
|
+
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
441
|
+
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
440
442
|
getInternalInstance: (mark: string) => {
|
|
441
|
-
registerField: ({ initialValue, name }: RegistedFieldType) => void;
|
|
443
|
+
registerField: ({ initialValue, name, transform }: RegistedFieldType) => void;
|
|
442
444
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
443
445
|
} | undefined;
|
|
444
446
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
@@ -613,7 +615,7 @@ declare function __VLS_template(): {
|
|
|
613
615
|
initialValues: {
|
|
614
616
|
type: PropType<Recordable>;
|
|
615
617
|
};
|
|
616
|
-
}>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "registerWatch"> & ShallowUnwrapRef<{
|
|
618
|
+
}>>, "validate" | "setFieldsValue" | "resetFields" | "getFieldsValue" | "clearValidate" | "validateFields" | "scrollToField" | "setFieldValue" | "getInternalInstance" | "validateFieldsReturnTransformed" | "getFieldsValueTransformed" | "registerWatch"> & ShallowUnwrapRef<{
|
|
617
619
|
resetFields: () => Promise<void>;
|
|
618
620
|
clearValidate: (name?: NamePath | NamePath[]) => void;
|
|
619
621
|
validateFields: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<{
|
|
@@ -629,8 +631,10 @@ declare function __VLS_template(): {
|
|
|
629
631
|
setFieldsValue: (values: Record<string, any>) => void;
|
|
630
632
|
setFieldValue: (name: NamePath, newValue: any) => void;
|
|
631
633
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
634
|
+
validateFieldsReturnTransformed: (nameList?: NamePath[] | string, options?: ValidateOptions) => Promise<any>;
|
|
635
|
+
getFieldsValueTransformed: (nameList?: InternalNamePath[] | true) => any;
|
|
632
636
|
getInternalInstance: (mark: string) => {
|
|
633
|
-
registerField: ({ initialValue, name }: RegistedFieldType) => void;
|
|
637
|
+
registerField: ({ initialValue, name, transform }: RegistedFieldType) => void;
|
|
634
638
|
registerWatch: (callback: WatchFunc, inner: boolean) => () => void;
|
|
635
639
|
} | undefined;
|
|
636
640
|
}> & {} & ComponentCustomProperties & {} & {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function get(entity: any, path: (string | number | symbol)[] | readonly (string | number | symbol)[]): any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type Path = (string | number | symbol)[];
|
|
2
|
+
export default function set<Entity = any, Output = Entity, Value = any>(entity: Entity, paths: Path, value: Value, removeIfUndefined?: boolean): Output;
|
|
3
|
+
/**
|
|
4
|
+
* Merge objects which will create
|
|
5
|
+
*/
|
|
6
|
+
export declare function merge<T extends object>(...sources: T[]): T;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import s from "./get.mjs";
|
|
2
|
+
function g(e, r, o, c) {
|
|
3
|
+
if (!r.length)
|
|
4
|
+
return o;
|
|
5
|
+
const [t, ...i] = r;
|
|
6
|
+
let n;
|
|
7
|
+
return !e && typeof t == "number" ? n = [] : Array.isArray(e) ? n = [...e] : n = { ...e }, c && o === void 0 && i.length === 1 ? delete n[t][i[0]] : n[t] = g(n[t], i, o, c), n;
|
|
8
|
+
}
|
|
9
|
+
function l(e, r, o, c = !1) {
|
|
10
|
+
return r.length && c && o === void 0 && !s(e, r.slice(0, -1)) ? e : g(e, r, o, c);
|
|
11
|
+
}
|
|
12
|
+
function b(e) {
|
|
13
|
+
return typeof e == "object" && e !== null && Object.getPrototypeOf(e) === Object.prototype;
|
|
14
|
+
}
|
|
15
|
+
function a(e) {
|
|
16
|
+
return Array.isArray(e) ? [] : {};
|
|
17
|
+
}
|
|
18
|
+
const O = typeof Reflect > "u" ? Object.keys : Reflect.ownKeys;
|
|
19
|
+
function j(...e) {
|
|
20
|
+
let r = a(e[0]);
|
|
21
|
+
return e.forEach((o) => {
|
|
22
|
+
function c(t, i) {
|
|
23
|
+
const n = new Set(i), f = s(o, t), u = Array.isArray(f);
|
|
24
|
+
if (u || b(f)) {
|
|
25
|
+
if (!n.has(f)) {
|
|
26
|
+
n.add(f);
|
|
27
|
+
const y = s(r, t);
|
|
28
|
+
u ? r = l(r, t, []) : (!y || typeof y != "object") && (r = l(r, t, a(f))), O(f).forEach((A) => {
|
|
29
|
+
c([...t, A], n);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
} else
|
|
33
|
+
r = l(r, t, f);
|
|
34
|
+
}
|
|
35
|
+
c([]);
|
|
36
|
+
}), r;
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
l as default,
|
|
40
|
+
j as merge
|
|
41
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as F, ref as M, unref as e, computed as
|
|
2
|
-
import { Empty as D, Spin as
|
|
1
|
+
import { defineComponent as F, ref as M, unref as e, computed as i, watch as W, openBlock as l, createBlock as j, normalizeClass as s, withCtx as A, createElementVNode as G, normalizeStyle as C, renderSlot as u, createVNode as P, createElementBlock as d, Fragment as U, renderList as H, mergeProps as J, createCommentVNode as K } from "vue";
|
|
2
|
+
import { Empty as D, Spin as Q, Pagination as X } from "ant-design-vue";
|
|
3
3
|
import "../ap-table/index.mjs";
|
|
4
4
|
import "../config-provider/index.mjs";
|
|
5
|
-
import { isUndefined as k, omit as
|
|
6
|
-
import { useOfflineList as
|
|
5
|
+
import { isUndefined as k, omit as Y } from "lodash-unified";
|
|
6
|
+
import { useOfflineList as Z } from "./hooks/use-offline-list.mjs";
|
|
7
7
|
import "./style/index.css";
|
|
8
|
-
import { useNamespace as
|
|
8
|
+
import { useNamespace as x } from "../config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { useTablePaging as ee } from "../ap-table/hooks/use-table-paging.mjs";
|
|
10
10
|
const fe = /* @__PURE__ */ F({
|
|
11
11
|
__name: "index",
|
|
@@ -24,15 +24,15 @@ const fe = /* @__PURE__ */ F({
|
|
|
24
24
|
footerWarpperStyle: {}
|
|
25
25
|
},
|
|
26
26
|
setup(B, { expose: E }) {
|
|
27
|
-
const w = D.PRESENTED_IMAGE_SIMPLE, t = B, { b:
|
|
27
|
+
const w = D.PRESENTED_IMAGE_SIMPLE, t = B, { b: g, e: p } = x("ap-list"), S = M(), {
|
|
28
28
|
formRef: I,
|
|
29
|
-
submit:
|
|
30
|
-
reset:
|
|
29
|
+
submit: h,
|
|
30
|
+
reset: y,
|
|
31
31
|
handleTableChange: L,
|
|
32
|
-
data:
|
|
32
|
+
data: f,
|
|
33
33
|
refresh: z,
|
|
34
34
|
refreshByDelete: N,
|
|
35
|
-
tableProps:
|
|
35
|
+
tableProps: v
|
|
36
36
|
} = ee({
|
|
37
37
|
async request(a) {
|
|
38
38
|
var o;
|
|
@@ -49,13 +49,13 @@ const fe = /* @__PURE__ */ F({
|
|
|
49
49
|
defaultPageSize: t.pagination ? t.pagination.defaultPageSize : void 0,
|
|
50
50
|
formatParams: t.beforeSearchSubmit
|
|
51
51
|
}), R = { form: I }, {
|
|
52
|
-
pagination:
|
|
52
|
+
pagination: b,
|
|
53
53
|
dataSource: T,
|
|
54
|
-
onChange:
|
|
55
|
-
} =
|
|
56
|
-
function
|
|
57
|
-
if (e(
|
|
58
|
-
|
|
54
|
+
onChange: q
|
|
55
|
+
} = Z(t);
|
|
56
|
+
function O(a, n) {
|
|
57
|
+
if (e(r)) {
|
|
58
|
+
q(a, n);
|
|
59
59
|
return;
|
|
60
60
|
}
|
|
61
61
|
L(
|
|
@@ -65,67 +65,69 @@ const fe = /* @__PURE__ */ F({
|
|
|
65
65
|
{ currentDataSource: [], action: "paginate" }
|
|
66
66
|
);
|
|
67
67
|
}
|
|
68
|
-
const
|
|
68
|
+
const c = i(() => e(r) ? e(T) : e(f).records), m = i(() => k(t.loading) ? e(f).loading : t.loading), V = i(() => {
|
|
69
69
|
var a, n;
|
|
70
|
-
return t.pagination === !1 ? !1 : ((a = t.pagination) == null ? void 0 : a.hideOnSinglePage) !== !0 ? !0 : e(
|
|
71
|
-
}),
|
|
70
|
+
return t.pagination === !1 ? !1 : ((a = t.pagination) == null ? void 0 : a.hideOnSinglePage) !== !0 ? !0 : e(r) ? (((n = t.dataSource) == null ? void 0 : n.length) || 0) > e(b).pageSize : e(f).total > e(v).pagination.pageSize;
|
|
71
|
+
}), r = i(() => !k(t.dataSource));
|
|
72
72
|
W(
|
|
73
|
-
() => e(
|
|
73
|
+
() => e(m),
|
|
74
74
|
(a) => {
|
|
75
75
|
var n;
|
|
76
76
|
(n = t.onLoadingChange) == null || n.call(t, a);
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
|
-
function
|
|
79
|
+
function _(a) {
|
|
80
80
|
var n, o;
|
|
81
|
-
(o = (n =
|
|
81
|
+
(o = (n = S.value) == null ? void 0 : n.querySelector(a || ":first-child")) == null || o.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
82
82
|
}
|
|
83
83
|
return E({
|
|
84
|
-
submit: () =>
|
|
85
|
-
reset: () =>
|
|
84
|
+
submit: () => h(),
|
|
85
|
+
reset: () => y(),
|
|
86
86
|
refresh: () => z(),
|
|
87
87
|
refreshByDelete: (a) => N(a),
|
|
88
|
-
scrollToFirstRow:
|
|
89
|
-
}), (a, n) => (
|
|
90
|
-
spinning:
|
|
91
|
-
class: s(e(
|
|
88
|
+
scrollToFirstRow: _
|
|
89
|
+
}), (a, n) => (l(), j(e(Q), {
|
|
90
|
+
spinning: m.value,
|
|
91
|
+
class: s(e(g)("spin"))
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
|
|
95
|
-
class: s(e(
|
|
96
|
-
style:
|
|
93
|
+
default: A(() => [
|
|
94
|
+
G("div", {
|
|
95
|
+
class: s(e(g)()),
|
|
96
|
+
style: C(a.containerStyle)
|
|
97
97
|
}, [
|
|
98
|
-
|
|
98
|
+
u(a.$slots, "header", {
|
|
99
99
|
formIns: R,
|
|
100
|
-
submit: e(
|
|
101
|
-
reset: e(
|
|
100
|
+
submit: e(h),
|
|
101
|
+
reset: e(y)
|
|
102
102
|
}),
|
|
103
|
-
|
|
103
|
+
c.value.length === 0 ? u(a.$slots, "empty", {
|
|
104
104
|
key: 0,
|
|
105
|
-
|
|
106
|
-
},
|
|
105
|
+
loading: m.value
|
|
106
|
+
}, () => [
|
|
107
|
+
P(e(D), { image: e(w) }, null, 8, ["image"])
|
|
108
|
+
]) : (l(), d("div", {
|
|
107
109
|
key: 1,
|
|
108
110
|
ref_key: "contentRef",
|
|
109
|
-
ref:
|
|
110
|
-
class: s(e(
|
|
111
|
+
ref: S,
|
|
112
|
+
class: s(e(p)("content"))
|
|
111
113
|
}, [
|
|
112
|
-
|
|
113
|
-
(
|
|
114
|
+
u(a.$slots, "renderContent", { dataSource: c.value }, () => [
|
|
115
|
+
(l(!0), d(U, null, H(c.value, (o, $) => u(a.$slots, "renderItem", {
|
|
114
116
|
item: o,
|
|
115
117
|
index: $
|
|
116
118
|
})), 256))
|
|
117
119
|
])
|
|
118
120
|
], 2)),
|
|
119
|
-
|
|
121
|
+
V.value ? (l(), d("div", {
|
|
120
122
|
key: 2,
|
|
121
|
-
class: s(e(
|
|
122
|
-
style:
|
|
123
|
+
class: s(e(p)("footer")),
|
|
124
|
+
style: C(a.footerWarpperStyle)
|
|
123
125
|
}, [
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
{ onChange:
|
|
126
|
+
P(e(X), J(
|
|
127
|
+
r.value ? e(b) : e(Y)(e(v).pagination, ["showTotal"]),
|
|
128
|
+
{ onChange: O }
|
|
127
129
|
), null, 16)
|
|
128
|
-
], 6)) :
|
|
130
|
+
], 6)) : K("", !0)
|
|
129
131
|
], 6)
|
|
130
132
|
]),
|
|
131
133
|
_: 3
|