@aplus-frontend/ui 0.6.0-beta.4 → 0.6.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/src/ap-action/group/index.vue.d.ts +1 -1
- package/es/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/es/src/ap-field/date/index.vue.d.ts +1 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/es/src/ap-field/number/index.vue.d.ts +1 -1
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/es/src/ap-form/item/index.vue.d.ts +1 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/es/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/es/src/ap-form/render/item.vue.d.ts +1 -1
- package/es/src/ap-grid/index.vue.mjs +37 -35
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +20 -18
- package/es/src/ap-table/constants.d.ts +30 -30
- package/es/src/ap-table/utils.d.ts +14 -14
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +25 -25
- package/es/src/business/ap-expand-alert/index.d.ts +4 -4
- package/es/src/business/ap-label/ApLabel.d.ts +1 -1
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/es/src/business/ap-ladder/index.d.ts +3 -3
- package/es/src/business/ap-view/ap-view.vue2.mjs +60 -58
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +79 -73
- package/es/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/es/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/es/src/check-card/group.vue.d.ts +1 -1
- package/es/src/config-provider/config-provider-props.d.ts +0 -5
- package/es/src/config-provider/config-provider-props.mjs +0 -4
- package/es/src/config-provider/config-provider.d.ts +0 -138
- package/es/src/config-provider/config-provider.mjs +21 -26
- package/es/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/es/src/config-provider/index.d.ts +0 -652
- package/lib/src/ap-action/group/index.vue.d.ts +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date/index.vue.d.ts +1 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +1 -1
- package/lib/src/ap-field/number/index.vue.d.ts +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- package/lib/src/ap-field/tree-select/index.vue.d.ts +1 -1
- package/lib/src/ap-form/item/index.vue.d.ts +1 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/items/text/index.vue.d.ts +2 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +2 -2
- package/lib/src/ap-form/items/tree-select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/render/item.vue.d.ts +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +30 -30
- package/lib/src/ap-table/utils.d.ts +14 -14
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +3 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-expand-alert/index.d.ts +4 -4
- package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-ladder/ApLadder.d.ts +1 -1
- package/lib/src/business/ap-ladder/index.d.ts +3 -3
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/hooks/use-view-provide.d.ts +1 -0
- package/lib/src/business/batch-input-group/form-item.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/index.vue.d.ts +1 -1
- package/lib/src/check-card/group.vue.d.ts +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +0 -5
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +0 -138
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +0 -5
- package/lib/src/config-provider/index.d.ts +0 -652
- package/package.json +1 -1
- package/theme/antd-global-overwrite/admin/index.css +3 -0
- package/theme/antd-global-overwrite/admin/index.less +1 -0
- package/theme/antd-global-overwrite/admin/tooltip.css +3 -0
- package/theme/antd-global-overwrite/admin/tooltip.less +3 -0
- package/theme/antd-global-overwrite/aplus/index.css +3 -0
- package/theme/antd-global-overwrite/aplus/index.less +1 -0
- package/theme/antd-global-overwrite/aplus/tooltip.css +3 -0
- package/theme/antd-global-overwrite/aplus/tooltip.less +3 -0
- package/theme/ap-action/item-dropdown.css +17 -0
- package/theme/ap-action/item.css +17 -0
- package/theme/ap-appendix/ap-appendix.css +17 -0
- package/theme/ap-attachment/ap-attachment.css +17 -0
- package/theme/ap-batch-action/ap-batch-action.css +17 -0
- package/theme/ap-button/ap-button.css +17 -0
- package/theme/ap-card/ap-card.css +17 -0
- package/theme/ap-descriptions/ap-descriptions.css +17 -0
- package/theme/ap-download/ap-download.css +17 -0
- package/theme/ap-expand-alert/ap-expand-alert.css +17 -0
- package/theme/ap-field/checkbox.css +17 -0
- package/theme/ap-field/index.css +17 -0
- package/theme/ap-field/number.css +17 -0
- package/theme/ap-field/radio.css +17 -0
- package/theme/ap-field/text-area.css +17 -0
- package/theme/ap-form/ap-form-item-group.css +17 -0
- package/theme/ap-form/ap-form-item.css +22 -2
- package/theme/ap-form/ap-form-item.less +9 -3
- package/theme/ap-form/drawer-form.css +17 -0
- package/theme/ap-form/index.css +22 -2
- package/theme/ap-form/item-text-group.css +17 -0
- package/theme/ap-form/item-text.css +17 -0
- package/theme/ap-form/modal-form.css +17 -0
- package/theme/ap-form/search-form-sorter.css +17 -0
- package/theme/ap-form/search-form.css +22 -2
- package/theme/ap-grid/editable.css +17 -0
- package/theme/ap-grid/index.css +39 -2
- package/theme/ap-grid/index.less +1 -0
- package/theme/ap-group-search/ap-extension-select.css +17 -0
- package/theme/ap-group-search/ap-group-search.css +17 -0
- package/theme/ap-group-search/ap-popover-select.css +17 -0
- package/theme/ap-image/ap-image.css +17 -0
- package/theme/ap-input-radio/ap-input-radio.css +17 -0
- package/theme/ap-label/ap-label.css +17 -0
- package/theme/ap-ladder/ap-ladder.css +17 -0
- package/theme/ap-layout/ap-info-layout.css +17 -0
- package/theme/ap-list/index.css +17 -0
- package/theme/ap-product-info/ap-product-info.css +17 -0
- package/theme/ap-select-layout/ap-select-layout.css +17 -0
- package/theme/ap-size-input/ap-size-input.css +17 -0
- package/theme/ap-status/ap-status.css +17 -0
- package/theme/ap-summary/index.css +17 -0
- package/theme/ap-table/ap-table-index.css +17 -0
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +17 -0
- package/theme/ap-table/ap-table.css +39 -2
- package/theme/ap-table/ap-table.less +1 -0
- package/theme/ap-table/setting/index.css +17 -0
- package/theme/ap-table/setting/modal.css +17 -0
- package/theme/ap-table/setting/select-group.css +17 -0
- package/theme/ap-table/setting/sortable-item-meta.css +17 -0
- package/theme/ap-table/setting/sortable-item.css +17 -0
- package/theme/ap-table/setting/sorter.css +17 -0
- package/theme/ap-table-modal/index.css +39 -2
- package/theme/ap-tag/ap-tag-group.css +17 -0
- package/theme/ap-tag/ap-tag.css +17 -0
- package/theme/ap-title/ap-title.css +17 -0
- package/theme/ap-upload/index.css +17 -0
- package/theme/ap-upload/multiple-file.css +17 -0
- package/theme/ap-upload/picture.css +17 -0
- package/theme/ap-upload/single-file.css +17 -0
- package/theme/ap-upload/upload.css +17 -0
- package/theme/ap-upload-single/index.css +17 -0
- package/theme/ap-view/ap-view.css +17 -0
- package/theme/batch-input-group/index.css +17 -0
- package/theme/batch-input-group/popover-input.css +17 -0
- package/theme/check-card/index.css +17 -0
- package/theme/editable-table/index.css +22 -2
- package/theme/full-screen/index.css +17 -0
- package/theme/index.css +148 -2
- package/theme/index.less +1 -0
- package/theme/mask/index.css +17 -0
- package/theme/mixins/mixins.css +17 -0
- package/theme/mixins/mixins.less +28 -0
- package/theme/scroll-bar/index.css +17 -0
- package/theme/scroll-view/index.css +17 -0
- package/theme/splitter/index.css +17 -0
- package/theme/text/group.css +17 -0
- package/theme/text/index.css +17 -0
- package/theme/ui-mode.css +92 -0
- package/theme/ui-mode.less +93 -0
- package/theme/work-order-modal/index.css +17 -0
- package/es/src/config-provider/css-var.d.ts +0 -139
- package/es/src/config-provider/css-var.mjs +0 -278
- package/lib/src/config-provider/css-var.d.ts +0 -139
- package/lib/src/config-provider/css-var.js +0 -1
|
@@ -1,107 +1,113 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as G, ref as S, watch as O, createElementBlock as u, openBlock as p, normalizeClass as C, unref as e, createElementVNode as s, createCommentVNode as k, toDisplayString as f, createVNode as a, withModifiers as P, withCtx as v } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
|
-
import { useViewInject as
|
|
4
|
-
import { SYSTEM_VIEW_KEY as
|
|
5
|
-
import { Space as
|
|
6
|
-
import
|
|
3
|
+
import { useViewInject as W } from "../hooks/use-view-provide.mjs";
|
|
4
|
+
import { SYSTEM_VIEW_KEY as E } from "../utils/enum.mjs";
|
|
5
|
+
import { Space as M, Popconfirm as q } from "@aplus-frontend/antdv";
|
|
6
|
+
import H from "../icons/line-delete.vue.mjs";
|
|
7
7
|
import "../../../ap-tag/index.mjs";
|
|
8
8
|
import "../../../ap-form/ap-form.vue.mjs";
|
|
9
|
-
import { ApField as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
import { useGlobalConfig as
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
const
|
|
9
|
+
import { ApField as J } from "../../../ap-field/index.mjs";
|
|
10
|
+
import { useNamespace as Q } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useLocale as X } from "../../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useGlobalConfig as Z } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
import D from "../../../ap-tag/ap-tag.vue.mjs";
|
|
14
|
+
import b from "../../../ap-form/ap-form.vue2.mjs";
|
|
15
|
+
const R = { class: "menu-list-content-name" }, L = ["title"], U = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "menu-list-content-default"
|
|
18
|
-
},
|
|
18
|
+
}, ee = { class: "menu-list-content-action-delete" }, te = { class: "menu-list-content-edit" }, _e = /* @__PURE__ */ G({
|
|
19
19
|
__name: "menu-list-content",
|
|
20
20
|
props: {
|
|
21
21
|
view: {}
|
|
22
22
|
},
|
|
23
|
-
setup(
|
|
24
|
-
const { b: d } =
|
|
23
|
+
setup(z) {
|
|
24
|
+
const { b: d } = Q("ap-view"), { t: l } = X(), n = z, $ = {
|
|
25
25
|
aplus: "#2ed1a3",
|
|
26
26
|
admin: "#34b77c"
|
|
27
|
-
},
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
}, I = Z("uiMode"), {
|
|
28
|
+
currentViewKey: T,
|
|
29
|
+
changeCurrentViewKey: B,
|
|
30
|
+
viewListCRUD: t,
|
|
31
|
+
tableKey: w,
|
|
32
|
+
menuOpen: y
|
|
33
|
+
} = W(), c = S(!1), V = S(), F = () => {
|
|
34
|
+
B(n.view.viewKey), y.value = !1;
|
|
35
|
+
}, Y = () => {
|
|
36
|
+
var i;
|
|
37
|
+
(i = t == null ? void 0 : t.changeView) == null || i.call(t, {
|
|
38
|
+
...n.view,
|
|
33
39
|
tableKey: w,
|
|
34
40
|
isDefault: !0
|
|
35
41
|
});
|
|
36
|
-
},
|
|
37
|
-
var
|
|
38
|
-
(
|
|
42
|
+
}, j = () => {
|
|
43
|
+
var i;
|
|
44
|
+
(i = t == null ? void 0 : t.removeView) == null || i.call(t, {
|
|
39
45
|
tableKey: w,
|
|
40
|
-
viewKey:
|
|
46
|
+
viewKey: n.view.viewKey
|
|
41
47
|
});
|
|
42
|
-
},
|
|
48
|
+
}, A = async () => {
|
|
43
49
|
var o, m, r;
|
|
44
|
-
const
|
|
50
|
+
const i = await ((m = (o = V.value) == null ? void 0 : o.validate) == null ? void 0 : m.call(o));
|
|
45
51
|
(r = t == null ? void 0 : t.changeView) == null || r.call(t, {
|
|
46
|
-
...
|
|
52
|
+
...n.view,
|
|
47
53
|
tableKey: w,
|
|
48
|
-
viewName: (
|
|
54
|
+
viewName: (i == null ? void 0 : i.viewName) || n.view.viewName
|
|
49
55
|
}), c.value = !1;
|
|
50
56
|
};
|
|
51
|
-
return
|
|
52
|
-
() =>
|
|
53
|
-
(
|
|
54
|
-
|
|
57
|
+
return O(
|
|
58
|
+
() => y.value,
|
|
59
|
+
(i) => {
|
|
60
|
+
i && (c.value = !1);
|
|
55
61
|
}
|
|
56
|
-
), (
|
|
57
|
-
var m, r, N, h, K,
|
|
62
|
+
), (i, o) => {
|
|
63
|
+
var m, r, x, N, h, K, g;
|
|
58
64
|
return c.value === !1 ? (p(), u("div", {
|
|
59
65
|
key: 0,
|
|
60
|
-
class:
|
|
66
|
+
class: C({
|
|
61
67
|
[e(d)("menu-list-content")]: !0,
|
|
62
|
-
[e(d)("menu-list-content-active")]: ((m =
|
|
68
|
+
[e(d)("menu-list-content-active")]: ((m = n.view) == null ? void 0 : m.viewKey) === e(T)
|
|
63
69
|
}),
|
|
64
|
-
onClick:
|
|
70
|
+
onClick: F
|
|
65
71
|
}, [
|
|
66
|
-
s("div",
|
|
72
|
+
s("div", R, [
|
|
67
73
|
s("span", {
|
|
68
|
-
title: (r =
|
|
69
|
-
},
|
|
74
|
+
title: (r = n.view) == null ? void 0 : r.viewName
|
|
75
|
+
}, f((x = n.view) == null ? void 0 : x.viewName), 9, L)
|
|
70
76
|
]),
|
|
71
|
-
((
|
|
72
|
-
a(e(
|
|
77
|
+
((N = n.view) == null ? void 0 : N.viewKey) !== e(E) && ((h = n.view) != null && h.isDefault) ? (p(), u("div", U, [
|
|
78
|
+
a(e(D), {
|
|
73
79
|
text: e(l)("ap.apView.default"),
|
|
74
80
|
size: "small",
|
|
75
|
-
color:
|
|
81
|
+
color: $[e(I) ?? "aplus"]
|
|
76
82
|
}, null, 8, ["text", "color"])
|
|
77
83
|
])) : k("", !0),
|
|
78
|
-
((
|
|
84
|
+
((K = n.view) == null ? void 0 : K.viewKey) !== e(E) ? (p(), u("div", {
|
|
79
85
|
key: 1,
|
|
80
86
|
class: "menu-list-content-action",
|
|
81
|
-
onClick: o[1] || (o[1] =
|
|
87
|
+
onClick: o[1] || (o[1] = P(() => {
|
|
82
88
|
}, ["stop"]))
|
|
83
89
|
}, [
|
|
84
|
-
a(e(
|
|
85
|
-
default:
|
|
90
|
+
a(e(M), { size: 8 }, {
|
|
91
|
+
default: v(() => {
|
|
86
92
|
var _;
|
|
87
93
|
return [
|
|
88
94
|
s("div", {
|
|
89
95
|
class: "menu-list-content-action-text",
|
|
90
|
-
onClick: o[0] || (o[0] = (
|
|
91
|
-
},
|
|
92
|
-
(_ =
|
|
96
|
+
onClick: o[0] || (o[0] = (ne) => c.value = !0)
|
|
97
|
+
}, f(e(l)("ap.apView.rename")), 1),
|
|
98
|
+
(_ = n.view) != null && _.isDefault ? k("", !0) : (p(), u("div", {
|
|
93
99
|
key: 0,
|
|
94
100
|
class: "menu-list-content-action-text",
|
|
95
|
-
onClick:
|
|
96
|
-
},
|
|
97
|
-
s("div",
|
|
98
|
-
a(e(
|
|
101
|
+
onClick: Y
|
|
102
|
+
}, f(e(l)("ap.apView.setDefault")), 1)),
|
|
103
|
+
s("div", ee, [
|
|
104
|
+
a(e(q), {
|
|
99
105
|
title: e(l)("ap.apView.deleteTip"),
|
|
100
106
|
"ok-text": e(l)("ap.apView.ok"),
|
|
101
|
-
onConfirm:
|
|
107
|
+
onConfirm: j
|
|
102
108
|
}, {
|
|
103
|
-
default:
|
|
104
|
-
a(
|
|
109
|
+
default: v(() => [
|
|
110
|
+
a(H)
|
|
105
111
|
]),
|
|
106
112
|
_: 1
|
|
107
113
|
}, 8, ["title", "ok-text"])
|
|
@@ -113,33 +119,33 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
|
|
|
113
119
|
])) : k("", !0)
|
|
114
120
|
], 2)) : (p(), u("div", {
|
|
115
121
|
key: 1,
|
|
116
|
-
class:
|
|
122
|
+
class: C([e(d)("menu-list-content"), e(d)("menu-list-content-edit")])
|
|
117
123
|
}, [
|
|
118
|
-
a(
|
|
124
|
+
a(b, {
|
|
119
125
|
ref_key: "formRef",
|
|
120
|
-
ref:
|
|
126
|
+
ref: V,
|
|
121
127
|
"initial-values": {
|
|
122
|
-
viewName: (g =
|
|
128
|
+
viewName: (g = n.view) == null ? void 0 : g.viewName
|
|
123
129
|
}
|
|
124
130
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
s("div",
|
|
127
|
-
a(e(
|
|
128
|
-
default:
|
|
129
|
-
a(
|
|
130
|
-
default:
|
|
131
|
-
a(e(
|
|
131
|
+
default: v(() => [
|
|
132
|
+
s("div", te, [
|
|
133
|
+
a(e(M), { size: 8 }, {
|
|
134
|
+
default: v(() => [
|
|
135
|
+
a(b.FormItem, { name: "viewName" }, {
|
|
136
|
+
default: v(() => [
|
|
137
|
+
a(e(J).Text, { maxlength: 20 })
|
|
132
138
|
]),
|
|
133
139
|
_: 1
|
|
134
140
|
}),
|
|
135
141
|
s("div", {
|
|
136
142
|
class: "menu-list-content-action-text",
|
|
137
|
-
onClick:
|
|
138
|
-
},
|
|
143
|
+
onClick: A
|
|
144
|
+
}, f(e(l)("ap.apView.save")), 1),
|
|
139
145
|
s("div", {
|
|
140
146
|
class: "menu-list-content-action-text",
|
|
141
147
|
onClick: o[2] || (o[2] = (_) => c.value = !1)
|
|
142
|
-
},
|
|
148
|
+
}, f(e(l)("ap.apView.cancel")), 1)
|
|
143
149
|
]),
|
|
144
150
|
_: 1
|
|
145
151
|
})
|
|
@@ -152,5 +158,5 @@ const D = { class: "menu-list-content-name" }, R = ["title"], L = {
|
|
|
152
158
|
}
|
|
153
159
|
});
|
|
154
160
|
export {
|
|
155
|
-
|
|
161
|
+
_e as default
|
|
156
162
|
};
|
|
@@ -3,6 +3,7 @@ import { SaveDataSource, ViewCacheOption, ViewListModel } from '../interface';
|
|
|
3
3
|
type DataModel = {
|
|
4
4
|
tableKey: string;
|
|
5
5
|
currentViewKey: Ref<string>;
|
|
6
|
+
changeCurrentViewKey: (key: string) => void;
|
|
6
7
|
popoverOpen: Ref<boolean>;
|
|
7
8
|
menuOpen: Ref<boolean>;
|
|
8
9
|
viewList: Ref<ViewListModel[]>;
|
|
@@ -3,12 +3,12 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
|
|
|
3
3
|
declare const _default: DefineComponent<ApFormItemBatchInputProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormItemBatchInputProps> & Readonly<{}>, {
|
|
4
4
|
trim: boolean;
|
|
5
5
|
disabled: boolean;
|
|
6
|
-
bordered: boolean;
|
|
7
6
|
hasFeedback: boolean;
|
|
8
7
|
colon: boolean;
|
|
9
8
|
autoLink: boolean;
|
|
10
9
|
required: boolean;
|
|
11
10
|
validateFirst: boolean;
|
|
11
|
+
bordered: boolean;
|
|
12
12
|
field: Omit< BatchInputGroupProps, "value" | "onUpdate:value">;
|
|
13
13
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -43,12 +43,12 @@ declare const _default: DefineComponent<BatchInputGroupProps, {}, {}, {}, {}, Co
|
|
|
43
43
|
readonly onMousedown?: MouseEventHandler | undefined;
|
|
44
44
|
readonly value?: string | number | undefined;
|
|
45
45
|
readonly disabled?: boolean | undefined;
|
|
46
|
-
readonly bordered?: boolean | undefined;
|
|
47
46
|
readonly prefixCls?: string | undefined;
|
|
48
47
|
readonly name?: string | undefined;
|
|
49
48
|
readonly loading?: boolean | undefined;
|
|
50
49
|
readonly autofocus?: boolean | undefined;
|
|
51
50
|
readonly 'onUpdate:value'?: (((val: string) => void) & ((...args: any[]) => any)) | undefined;
|
|
51
|
+
readonly bordered?: boolean | undefined;
|
|
52
52
|
readonly suffix?: any;
|
|
53
53
|
readonly focused?: boolean | undefined;
|
|
54
54
|
readonly placeholder?: string | number | undefined;
|
|
@@ -19,8 +19,8 @@ declare const __VLS_component: DefineComponent<CheckCardGroupProps, {}, {}, {},
|
|
|
19
19
|
value: CheckCardValueType | CheckCardValueType[];
|
|
20
20
|
multiple: boolean;
|
|
21
21
|
disabled: boolean;
|
|
22
|
-
bordered: boolean;
|
|
23
22
|
loading: boolean;
|
|
23
|
+
bordered: boolean;
|
|
24
24
|
defaultValue: CheckCardValueType | CheckCardValueType[];
|
|
25
25
|
stopPropagation: boolean | ((event: MouseEvent) => boolean);
|
|
26
26
|
indicatorSize: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
import { LocaleType } from '../locale/interface';
|
|
3
3
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
|
|
4
|
-
import { CssVarType } from './css-var';
|
|
5
4
|
import { ViewCacheOption } from '../business';
|
|
6
5
|
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
7
6
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
@@ -156,10 +155,6 @@ export declare const configProviderProps: () => {
|
|
|
156
155
|
type: PropType<downloadCenterTriggerConfig>;
|
|
157
156
|
default: () => {};
|
|
158
157
|
};
|
|
159
|
-
cssVar: {
|
|
160
|
-
type: PropType<CssVarType>;
|
|
161
|
-
default: () => {};
|
|
162
|
-
};
|
|
163
158
|
exportField: {
|
|
164
159
|
type: PropType<ExportField>;
|
|
165
160
|
default: boolean;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Ref, DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
import { ConfigProviderProps } from './config-provider-props';
|
|
3
|
-
import { CssVarType } from './css-var';
|
|
4
3
|
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
5
4
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
6
5
|
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
@@ -12,7 +11,6 @@ import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
|
12
11
|
import { LocaleType } from '../locale';
|
|
13
12
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from './constants';
|
|
14
13
|
import { ViewCacheOption } from '..';
|
|
15
|
-
import { RecursivePartial } from '../type';
|
|
16
14
|
export declare const globalConfigCached: Ref<ConfigProviderProps>;
|
|
17
15
|
export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
18
16
|
iconPrefixCls: StringConstructor;
|
|
@@ -156,10 +154,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
156
154
|
type: PropType<downloadCenterTriggerConfig>;
|
|
157
155
|
default: () => {};
|
|
158
156
|
};
|
|
159
|
-
cssVar: {
|
|
160
|
-
type: PropType<CssVarType>;
|
|
161
|
-
default: () => {};
|
|
162
|
-
};
|
|
163
157
|
exportField: {
|
|
164
158
|
type: PropType<ExportField>;
|
|
165
159
|
default: boolean;
|
|
@@ -313,10 +307,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
313
307
|
type: PropType<downloadCenterTriggerConfig>;
|
|
314
308
|
default: () => {};
|
|
315
309
|
};
|
|
316
|
-
cssVar: {
|
|
317
|
-
type: PropType<CssVarType>;
|
|
318
|
-
default: () => {};
|
|
319
|
-
};
|
|
320
310
|
exportField: {
|
|
321
311
|
type: PropType<ExportField>;
|
|
322
312
|
default: boolean;
|
|
@@ -365,134 +355,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
365
355
|
apDescriptions: ApDescriptionsConfig;
|
|
366
356
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
367
357
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
368
|
-
cssVar: RecursivePartial<{
|
|
369
|
-
'ap-form': {
|
|
370
|
-
bordered: {
|
|
371
|
-
'border-color': {
|
|
372
|
-
base: string;
|
|
373
|
-
hover: string;
|
|
374
|
-
active: string;
|
|
375
|
-
};
|
|
376
|
-
'shadow-color': string;
|
|
377
|
-
};
|
|
378
|
-
};
|
|
379
|
-
'ap-action': {
|
|
380
|
-
color: {
|
|
381
|
-
primary: {
|
|
382
|
-
base: string;
|
|
383
|
-
hover: string;
|
|
384
|
-
};
|
|
385
|
-
success: string;
|
|
386
|
-
error: string;
|
|
387
|
-
warn: string;
|
|
388
|
-
};
|
|
389
|
-
};
|
|
390
|
-
'check-card': {
|
|
391
|
-
outline: {
|
|
392
|
-
color: string;
|
|
393
|
-
};
|
|
394
|
-
hover: {
|
|
395
|
-
outline: {
|
|
396
|
-
color: string;
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
checked: {
|
|
400
|
-
outline: {
|
|
401
|
-
color: string;
|
|
402
|
-
};
|
|
403
|
-
bg: string;
|
|
404
|
-
};
|
|
405
|
-
};
|
|
406
|
-
'ap-table': {
|
|
407
|
-
header: {
|
|
408
|
-
bg: string;
|
|
409
|
-
};
|
|
410
|
-
pagination: {
|
|
411
|
-
total: {
|
|
412
|
-
color: string;
|
|
413
|
-
count: {
|
|
414
|
-
color: string;
|
|
415
|
-
};
|
|
416
|
-
};
|
|
417
|
-
};
|
|
418
|
-
setting: {
|
|
419
|
-
button: {
|
|
420
|
-
color: string;
|
|
421
|
-
};
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
'ap-batch-action': {
|
|
425
|
-
color: {
|
|
426
|
-
font: string;
|
|
427
|
-
active: string;
|
|
428
|
-
border: string;
|
|
429
|
-
};
|
|
430
|
-
};
|
|
431
|
-
basic: {
|
|
432
|
-
color: {
|
|
433
|
-
primary: string;
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
'ap-descriptions': {
|
|
437
|
-
item: {
|
|
438
|
-
'padding-bottom': string;
|
|
439
|
-
'label-width': string;
|
|
440
|
-
};
|
|
441
|
-
'last-row-item': {
|
|
442
|
-
'padding-bottom': string;
|
|
443
|
-
};
|
|
444
|
-
};
|
|
445
|
-
'ap-appendix': {
|
|
446
|
-
area: {
|
|
447
|
-
color: {
|
|
448
|
-
border: string;
|
|
449
|
-
font: string;
|
|
450
|
-
'font-hover': string;
|
|
451
|
-
'font-disabled': string;
|
|
452
|
-
icon: string;
|
|
453
|
-
};
|
|
454
|
-
};
|
|
455
|
-
};
|
|
456
|
-
'ap-upload-single': {
|
|
457
|
-
color: {
|
|
458
|
-
main: string;
|
|
459
|
-
sub: string;
|
|
460
|
-
border: string;
|
|
461
|
-
primary: string;
|
|
462
|
-
};
|
|
463
|
-
};
|
|
464
|
-
'batch-input-group': {
|
|
465
|
-
trigger: {
|
|
466
|
-
color: string;
|
|
467
|
-
'color-disabled': string;
|
|
468
|
-
};
|
|
469
|
-
};
|
|
470
|
-
'ap-text': {
|
|
471
|
-
label: {
|
|
472
|
-
color: string;
|
|
473
|
-
};
|
|
474
|
-
content: {
|
|
475
|
-
color: {
|
|
476
|
-
major: string;
|
|
477
|
-
minor: string;
|
|
478
|
-
};
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
'ap-view': {
|
|
482
|
-
icon: {
|
|
483
|
-
color: string;
|
|
484
|
-
};
|
|
485
|
-
bg: {
|
|
486
|
-
color: string;
|
|
487
|
-
};
|
|
488
|
-
message: {
|
|
489
|
-
color: string;
|
|
490
|
-
};
|
|
491
|
-
border: {
|
|
492
|
-
color: string;
|
|
493
|
-
};
|
|
494
|
-
};
|
|
495
|
-
}>;
|
|
496
358
|
exportField: ExportField;
|
|
497
359
|
viewCacheOption: ViewCacheOption;
|
|
498
360
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,24 +1,23 @@
|
|
|
1
|
-
import { isVNode as
|
|
2
|
-
import { ConfigProvider as
|
|
3
|
-
import { useGlobalConfig as
|
|
4
|
-
import { configProviderProps as
|
|
5
|
-
import { mergeAntdProviderConfigWithCache as
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
function
|
|
9
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !v(e);
|
|
1
|
+
import { isVNode as p, ref as C, defineComponent as s, computed as i, unref as t, watch as c, createVNode as v, renderSlot as M } from "vue";
|
|
2
|
+
import { ConfigProvider as P } from "@aplus-frontend/antdv";
|
|
3
|
+
import { useGlobalConfig as l, provideGlobalConfig as U } from "./hooks/use-global-config.mjs";
|
|
4
|
+
import { configProviderProps as w } from "./config-provider-props.mjs";
|
|
5
|
+
import { mergeAntdProviderConfigWithCache as A, mergeAntdProvideConfig as D } from "../utils/config-provider-preset.mjs";
|
|
6
|
+
import { DEFAULT_NAMESPACE as N, DEFAULT_UIMODE as b } from "./constants.mjs";
|
|
7
|
+
function h(e) {
|
|
8
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !p(e);
|
|
10
9
|
}
|
|
11
|
-
const n =
|
|
10
|
+
const n = C({}), S = /* @__PURE__ */ s({
|
|
12
11
|
name: "AplusConfigProvider",
|
|
13
|
-
props:
|
|
12
|
+
props: w(),
|
|
14
13
|
setup(e, {
|
|
15
14
|
slots: f
|
|
16
15
|
}) {
|
|
17
|
-
const a =
|
|
18
|
-
namespace:
|
|
16
|
+
const a = l("namespace"), d = l("uiMode"), m = i(() => e.namespace ? e.namespace : t(a) ? t(a) : N), u = i(() => e.uiMode ? e.uiMode : t(d) ? t(d) : b), g = i(() => ({
|
|
17
|
+
namespace: t(m),
|
|
19
18
|
aplusLocale: e.aplusLocale,
|
|
20
19
|
api: e.api,
|
|
21
|
-
uiMode:
|
|
20
|
+
uiMode: t(u),
|
|
22
21
|
apUpload: e.apUpload,
|
|
23
22
|
apDescriptions: e.apDescriptions,
|
|
24
23
|
valueTypeMap: e.valueTypeMap,
|
|
@@ -26,24 +25,20 @@ const n = P({}), W = /* @__PURE__ */ V({
|
|
|
26
25
|
exportField: e.exportField,
|
|
27
26
|
scrollYDomName: e.scrollYDomName,
|
|
28
27
|
viewCacheOption: e.viewCacheOption
|
|
29
|
-
})),
|
|
30
|
-
return
|
|
31
|
-
n.value =
|
|
28
|
+
})), r = U(g);
|
|
29
|
+
return c(() => e, (o) => {
|
|
30
|
+
n.value = A(D(o), n.value);
|
|
32
31
|
}, {
|
|
33
32
|
deep: !0,
|
|
34
33
|
immediate: !0
|
|
35
|
-
}), typeof window < "u" &&
|
|
36
|
-
|
|
37
|
-
...o === "aplus" ? S : T,
|
|
38
|
-
...g
|
|
39
|
-
};
|
|
40
|
-
y(p);
|
|
34
|
+
}), typeof window < "u" && c(() => t(u), (o) => {
|
|
35
|
+
document.documentElement.dataset.aplusUiMode = o;
|
|
41
36
|
}, {
|
|
42
37
|
immediate: !0
|
|
43
38
|
}), () => {
|
|
44
39
|
let o;
|
|
45
|
-
return
|
|
46
|
-
config:
|
|
40
|
+
return v(P, n.value, h(o = M(f, "default", {
|
|
41
|
+
config: r == null ? void 0 : r.value
|
|
47
42
|
})) ? o : {
|
|
48
43
|
default: () => [o]
|
|
49
44
|
});
|
|
@@ -51,6 +46,6 @@ const n = P({}), W = /* @__PURE__ */ V({
|
|
|
51
46
|
}
|
|
52
47
|
});
|
|
53
48
|
export {
|
|
54
|
-
|
|
49
|
+
S as ConfigProvider,
|
|
55
50
|
n as globalConfigCached
|
|
56
51
|
};
|
|
@@ -11,7 +11,6 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
|
11
11
|
import { ThemeConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
12
12
|
import { LocaleType } from '../../locale';
|
|
13
13
|
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, ExportField } from '..';
|
|
14
|
-
import { CssVarType } from '../css-var';
|
|
15
14
|
import { ViewCacheOption } from '../..';
|
|
16
15
|
export declare const keysOf: <T extends Record<string, any>>(arr: T) => Array<keyof T>;
|
|
17
16
|
export declare function useGlobalConfig<K extends keyof ConfigProviderContext, D extends ConfigProviderContext[K]>(key: K, defaultValue?: D): Ref<Exclude<ConfigProviderContext[K], undefined> | D>;
|
|
@@ -158,10 +157,6 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
158
157
|
type: PropType<downloadCenterTriggerConfig>;
|
|
159
158
|
default: () => {};
|
|
160
159
|
};
|
|
161
|
-
cssVar: {
|
|
162
|
-
type: PropType<CssVarType>;
|
|
163
|
-
default: () => {};
|
|
164
|
-
};
|
|
165
160
|
exportField: {
|
|
166
161
|
type: PropType<ExportField>;
|
|
167
162
|
default: boolean;
|