@aplus-frontend/ui 0.6.0-beta.3 → 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/editable/form-item.vue.mjs +91 -83
- package/es/src/ap-grid/editable/index.vue.mjs +86 -78
- package/es/src/ap-grid/index.vue.mjs +39 -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 +22 -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-status/interface.d.ts +1 -1
- 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/es/src/editable-table/form-item.vue.d.ts +2 -14
- package/es/src/editable-table/form-item.vue.mjs +84 -76
- package/es/src/editable-table/index.vue.d.ts +2 -16
- package/es/src/editable-table/index.vue.mjs +91 -83
- package/es/src/editable-table/interface.d.ts +7 -0
- 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/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +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-status/interface.d.ts +1 -1
- 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/lib/src/editable-table/form-item.vue.d.ts +2 -14
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.d.ts +2 -16
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/editable-table/interface.d.ts +7 -0
- 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 +18 -1
- package/theme/ap-tag/ap-tag.less +1 -1
- 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 +149 -3
- 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,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as I, computed as
|
|
1
|
+
import { defineComponent as I, computed as x, ref as w, createVNode as N, watch as S, createBlock as Y, openBlock as j, unref as y, mergeProps as z, withCtx as M, createElementVNode as W, normalizeClass as q } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import
|
|
4
|
-
import { ApBatchActionGroup as
|
|
3
|
+
import H from "./icons/line-down.vue.mjs";
|
|
4
|
+
import { ApBatchActionGroup as J } from "../ap-batch-action-group/index.mjs";
|
|
5
5
|
import "./components/main-button-content.vue.mjs";
|
|
6
6
|
import "./components/menu-list-content.vue.mjs";
|
|
7
|
-
import { useViewProvide as
|
|
8
|
-
import { useInjectApTable as
|
|
9
|
-
import { SYSTEM_VIEW_KEY as
|
|
10
|
-
import { isValid as
|
|
11
|
-
import { useGlobalConfig as
|
|
12
|
-
import { useNamespace as
|
|
13
|
-
import { useLocale as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
7
|
+
import { useViewProvide as Q } from "./hooks/use-view-provide.mjs";
|
|
8
|
+
import { useInjectApTable as X } from "../../ap-table/context.mjs";
|
|
9
|
+
import { SYSTEM_VIEW_KEY as V } from "./utils/enum.mjs";
|
|
10
|
+
import { isValid as Z } from "@aplus-frontend/utils";
|
|
11
|
+
import { useGlobalConfig as h } from "../../config-provider/hooks/use-global-config.mjs";
|
|
12
|
+
import { useNamespace as U } from "../../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
import { useLocale as R } from "../../config-provider/hooks/use-locale.mjs";
|
|
14
|
+
import C from "./components/main-button-content.vue2.mjs";
|
|
15
|
+
import O from "./components/menu-list-content.vue2.mjs";
|
|
16
|
+
const we = /* @__PURE__ */ I({
|
|
17
17
|
name: "ApView",
|
|
18
18
|
__name: "ap-view",
|
|
19
19
|
props: {
|
|
@@ -25,26 +25,26 @@ const pe = /* @__PURE__ */ I({
|
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
setup(A) {
|
|
28
|
-
const f = A, E =
|
|
29
|
-
b:
|
|
30
|
-
} =
|
|
28
|
+
const f = A, E = h("viewCacheOption"), {
|
|
29
|
+
b: d
|
|
30
|
+
} = U("ap-view"), {
|
|
31
31
|
t: F
|
|
32
|
-
} =
|
|
33
|
-
viewKey:
|
|
32
|
+
} = R(), K = x(() => ({
|
|
33
|
+
viewKey: V,
|
|
34
34
|
viewName: F("ap.apView.systemView")
|
|
35
35
|
})), {
|
|
36
36
|
getSearchFormValues: L,
|
|
37
37
|
setSearchFormValues: P,
|
|
38
38
|
submit: T,
|
|
39
39
|
reset: k
|
|
40
|
-
} =
|
|
40
|
+
} = X(), B = w(!1), b = w(!1), p = w(""), G = {
|
|
41
41
|
dropdownType: "dropdown",
|
|
42
|
-
content:
|
|
42
|
+
content: N(C, {
|
|
43
43
|
maxViewNum: f.maxViewNum
|
|
44
44
|
}, null)
|
|
45
|
-
}, s =
|
|
45
|
+
}, s = w([K.value]), $ = x(() => s.value.map((e) => ({
|
|
46
46
|
id: e.viewKey,
|
|
47
|
-
content:
|
|
47
|
+
content: N(O, {
|
|
48
48
|
view: e
|
|
49
49
|
}, null)
|
|
50
50
|
}))), n = {
|
|
@@ -56,9 +56,16 @@ const pe = /* @__PURE__ */ I({
|
|
|
56
56
|
}, t = {
|
|
57
57
|
...E.value,
|
|
58
58
|
...f.viewCacheOption
|
|
59
|
-
},
|
|
59
|
+
}, _ = () => {
|
|
60
60
|
const e = s.value.find((a) => a.isDefault);
|
|
61
|
-
return (e == null ? void 0 : e.viewKey) ??
|
|
61
|
+
return (e == null ? void 0 : e.viewKey) ?? V;
|
|
62
|
+
}, u = (e) => {
|
|
63
|
+
p.value = e;
|
|
64
|
+
const a = s.value.find((o) => o.viewKey === p.value);
|
|
65
|
+
a && setTimeout(() => {
|
|
66
|
+
var o, i, l, r;
|
|
67
|
+
a.viewKey === V ? (o = n.reset) == null || o.call(n) : ((l = n.setSearchFormValues) == null || l.call(n, ((i = a.viewConfig) == null ? void 0 : i.searchForm) ?? {}), (r = n.submit) == null || r.call(n));
|
|
68
|
+
});
|
|
62
69
|
}, c = {
|
|
63
70
|
getViewList: async (e) => {
|
|
64
71
|
var a;
|
|
@@ -68,26 +75,26 @@ const pe = /* @__PURE__ */ I({
|
|
|
68
75
|
} = e, i = await ((a = t == null ? void 0 : t.getViewList) == null ? void 0 : a.call(t, {
|
|
69
76
|
tableKey: o
|
|
70
77
|
}));
|
|
71
|
-
return s.value = [
|
|
78
|
+
return s.value = [K.value, ...i ?? []], u(_()), s.value;
|
|
72
79
|
} catch {
|
|
73
|
-
return s.value = [
|
|
80
|
+
return s.value = [K.value], u(V), s.value;
|
|
74
81
|
}
|
|
75
82
|
},
|
|
76
83
|
addView: async (e) => {
|
|
77
|
-
var
|
|
84
|
+
var m;
|
|
78
85
|
const {
|
|
79
86
|
tableKey: a,
|
|
80
87
|
viewKey: o,
|
|
81
88
|
viewName: i,
|
|
82
89
|
isDefault: l,
|
|
83
|
-
viewConfig:
|
|
90
|
+
viewConfig: r
|
|
84
91
|
} = e;
|
|
85
|
-
await ((
|
|
92
|
+
await ((m = t == null ? void 0 : t.addView) == null ? void 0 : m.call(t, {
|
|
86
93
|
tableKey: a,
|
|
87
94
|
viewKey: o,
|
|
88
95
|
viewName: i,
|
|
89
96
|
isDefault: l,
|
|
90
|
-
viewConfig:
|
|
97
|
+
viewConfig: r
|
|
91
98
|
})), l && (s.value = s.value.map((v) => ({
|
|
92
99
|
...v,
|
|
93
100
|
isDefault: !1
|
|
@@ -95,8 +102,8 @@ const pe = /* @__PURE__ */ I({
|
|
|
95
102
|
viewKey: o,
|
|
96
103
|
viewName: i,
|
|
97
104
|
isDefault: l,
|
|
98
|
-
viewConfig:
|
|
99
|
-
}],
|
|
105
|
+
viewConfig: r
|
|
106
|
+
}], u(o);
|
|
100
107
|
},
|
|
101
108
|
changeView: async (e) => {
|
|
102
109
|
var v;
|
|
@@ -105,20 +112,20 @@ const pe = /* @__PURE__ */ I({
|
|
|
105
112
|
viewKey: o,
|
|
106
113
|
viewName: i,
|
|
107
114
|
isDefault: l,
|
|
108
|
-
viewConfig:
|
|
115
|
+
viewConfig: r
|
|
109
116
|
} = e;
|
|
110
117
|
await ((v = t == null ? void 0 : t.changeView) == null ? void 0 : v.call(t, {
|
|
111
118
|
tableKey: a,
|
|
112
119
|
viewKey: o,
|
|
113
120
|
viewName: i,
|
|
114
121
|
isDefault: l,
|
|
115
|
-
viewConfig:
|
|
116
|
-
})), l && (s.value = s.value.map((
|
|
117
|
-
...
|
|
122
|
+
viewConfig: r
|
|
123
|
+
})), l && (s.value = s.value.map((g) => ({
|
|
124
|
+
...g,
|
|
118
125
|
isDefault: !1
|
|
119
126
|
})));
|
|
120
|
-
const
|
|
121
|
-
|
|
127
|
+
const m = s.value.find((g) => g.viewKey === o);
|
|
128
|
+
m && (m.viewName = i, m.isDefault = l, m.viewConfig = r), u(o);
|
|
122
129
|
},
|
|
123
130
|
removeView: async (e) => {
|
|
124
131
|
var i;
|
|
@@ -129,49 +136,44 @@ const pe = /* @__PURE__ */ I({
|
|
|
129
136
|
await ((i = t == null ? void 0 : t.removeView) == null ? void 0 : i.call(t, {
|
|
130
137
|
tableKey: a,
|
|
131
138
|
viewKey: o
|
|
132
|
-
})), s.value = s.value.filter((l) => l.viewKey !== o), o ===
|
|
139
|
+
})), s.value = s.value.filter((l) => l.viewKey !== o), o === p.value && u(_());
|
|
133
140
|
}
|
|
134
141
|
}, D = {
|
|
135
142
|
tableKey: f.tableKey,
|
|
136
|
-
currentViewKey:
|
|
143
|
+
currentViewKey: p,
|
|
144
|
+
changeCurrentViewKey: u,
|
|
137
145
|
popoverOpen: B,
|
|
138
|
-
menuOpen:
|
|
146
|
+
menuOpen: b,
|
|
139
147
|
viewList: s,
|
|
140
148
|
viewListCRUD: c,
|
|
141
149
|
saveDataSource: n
|
|
142
150
|
};
|
|
143
|
-
return
|
|
144
|
-
const a = s.value.find((o) => o.viewKey === e);
|
|
145
|
-
a && setTimeout(() => {
|
|
146
|
-
var o, i, l, m;
|
|
147
|
-
a.viewKey === y ? (o = n.reset) == null || o.call(n) : ((l = n.setSearchFormValues) == null || l.call(n, ((i = a.viewConfig) == null ? void 0 : i.searchForm) ?? {}), (m = n.submit) == null || m.call(n));
|
|
148
|
-
});
|
|
149
|
-
}), J(D), x(() => f.tableKey, (e) => {
|
|
151
|
+
return Q(D), S(() => f.tableKey, (e) => {
|
|
150
152
|
var a;
|
|
151
|
-
|
|
153
|
+
Z(e) && ((a = c == null ? void 0 : c.getViewList) == null || a.call(c, {
|
|
152
154
|
tableKey: e
|
|
153
155
|
}));
|
|
154
156
|
}, {
|
|
155
157
|
immediate: !0
|
|
156
|
-
}), (e, a) => (
|
|
158
|
+
}), (e, a) => (j(), Y(y(J), z({
|
|
157
159
|
...e.$attrs
|
|
158
160
|
}, {
|
|
159
|
-
open:
|
|
160
|
-
"onUpdate:open": a[0] || (a[0] = (o) =>
|
|
161
|
-
class: [
|
|
161
|
+
open: b.value,
|
|
162
|
+
"onUpdate:open": a[0] || (a[0] = (o) => b.value = o),
|
|
163
|
+
class: [y(d)()],
|
|
162
164
|
"button-props": G,
|
|
163
165
|
"menu-list": $.value,
|
|
164
|
-
"overlay-class-name": [
|
|
166
|
+
"overlay-class-name": [y(d)("overlay")],
|
|
165
167
|
trigger: "click",
|
|
166
168
|
placement: "bottom"
|
|
167
169
|
}), {
|
|
168
|
-
icon:
|
|
169
|
-
class:
|
|
170
|
-
}, [
|
|
170
|
+
icon: M(() => [W("div", {
|
|
171
|
+
class: q([y(d)("icon")])
|
|
172
|
+
}, [N(H)], 2)]),
|
|
171
173
|
_: 1
|
|
172
174
|
}, 16, ["open", "class", "menu-list", "overlay-class-name"]));
|
|
173
175
|
}
|
|
174
176
|
});
|
|
175
177
|
export {
|
|
176
|
-
|
|
178
|
+
we as default
|
|
177
179
|
};
|
|
@@ -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;
|