@aplus-frontend/ui 0.6.0-beta.8 → 0.6.0-beta.9
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-form/interface.d.ts +4 -0
- package/es/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +40 -36
- package/es/src/ap-form/search-form/components/popover-sorter/index.vue2.mjs +79 -71
- package/es/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/es/src/ap-form/search-form/index.vue.mjs +76 -75
- package/es/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +1 -1
- package/es/src/ap-tag/ap-tag-group.vue.mjs +32 -28
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue2.mjs +89 -70
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +18 -17
- package/es/src/business/ap-input-radio/ApInputRadio.vue2.mjs +27 -25
- package/es/src/business/ap-label/constans.mjs +1 -1
- package/es/src/business/ap-view/components/main-button-content.vue2.mjs +55 -51
- package/es/src/business/hooks/usePageListApGrid.mjs +1 -1
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/search-form/components/popover-filter.vue.d.ts +131 -2
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/index.vue2.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +6 -2
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.d.ts +1 -1
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue2.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-input-radio/ApInputRadio.vue2.js +1 -1
- package/lib/src/business/ap-label/constans.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue2.js +1 -1
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/package.json +1 -1
- package/theme/ap-action/item-dropdown.css +1 -1
- package/theme/ap-action/item.css +2 -2
- package/theme/ap-appendix/ap-appendix.css +3 -3
- package/theme/ap-appendix/ap-appendix.less +2 -2
- package/theme/ap-attachment/ap-attachment.css +3 -2
- package/theme/ap-attachment/ap-attachment.less +2 -2
- package/theme/ap-batch-action/ap-batch-action.css +1 -1
- package/theme/ap-button/ap-button.css +1 -1
- package/theme/ap-card/ap-card.css +1 -1
- package/theme/ap-descriptions/ap-descriptions.css +1 -1
- package/theme/ap-download/ap-download.css +1 -1
- package/theme/ap-expand-alert/ap-expand-alert.css +2 -2
- package/theme/ap-expand-alert/ap-expand-alert.less +2 -1
- package/theme/ap-field/checkbox.css +1 -1
- package/theme/ap-field/index.css +1 -1
- package/theme/ap-field/number.css +1 -1
- package/theme/ap-field/radio.css +1 -1
- package/theme/ap-field/text-area.css +1 -1
- package/theme/ap-form/ap-form-item-group.css +1 -1
- package/theme/ap-form/ap-form-item.css +1 -1
- package/theme/ap-form/drawer-form.css +1 -1
- package/theme/ap-form/index.css +14 -5
- package/theme/ap-form/item-text-group.css +1 -1
- package/theme/ap-form/item-text.css +1 -1
- package/theme/ap-form/modal-form.css +1 -1
- package/theme/ap-form/search-form-sorter.css +6 -5
- package/theme/ap-form/search-form-sorter.less +1 -0
- package/theme/ap-form/search-form.css +14 -5
- package/theme/ap-form/search-form.less +8 -0
- package/theme/ap-grid/editable.css +1 -1
- package/theme/ap-grid/index.css +15 -7
- package/theme/ap-grid/index.less +0 -1
- package/theme/ap-group-search/ap-extension-select.css +1 -1
- package/theme/ap-group-search/ap-group-search.css +1 -1
- package/theme/ap-group-search/ap-popover-select.css +1 -1
- package/theme/ap-image/ap-image.css +1 -1
- package/theme/ap-input-radio/ap-input-radio.css +1 -1
- package/theme/ap-label/ap-label.css +1 -1
- package/theme/ap-ladder/ap-ladder.css +2 -1
- package/theme/ap-ladder/ap-ladder.less +1 -0
- package/theme/ap-layout/ap-info-layout.css +1 -1
- package/theme/ap-list/index.css +1 -1
- package/theme/ap-product-info/ap-product-info.css +1 -1
- package/theme/ap-select-layout/ap-select-layout.css +1 -1
- package/theme/ap-size-input/ap-size-input.css +1 -1
- package/theme/ap-status/ap-status.css +2 -2
- package/theme/ap-status/ap-status.less +1 -1
- package/theme/ap-summary/index.css +1 -1
- package/theme/ap-table/ap-table-index.css +1 -1
- package/theme/ap-table/ap-table-paragraph-ellipsis.css +1 -1
- package/theme/ap-table/ap-table.css +16 -8
- package/theme/ap-table/setting/index.css +2 -3
- package/theme/ap-table/setting/modal.css +2 -2
- package/theme/ap-table/setting/select-group.css +1 -1
- package/theme/ap-table/setting/sortable-item-meta.css +1 -1
- package/theme/ap-table/setting/sortable-item.css +1 -1
- package/theme/ap-table/setting/sorter.css +1 -2
- package/theme/ap-table-modal/index.css +16 -8
- package/theme/ap-tag/ap-tag-group.css +3 -3
- package/theme/ap-tag/ap-tag-group.less +2 -3
- package/theme/ap-tag/ap-tag.css +4 -4
- package/theme/ap-tag/ap-tag.less +3 -3
- package/theme/ap-title/ap-title.css +6 -4
- package/theme/ap-title/ap-title.less +5 -3
- package/theme/ap-upload/index.css +6 -6
- package/theme/ap-upload/multiple-file.css +2 -2
- package/theme/ap-upload/multiple-file.less +1 -1
- package/theme/ap-upload/picture.css +3 -3
- package/theme/ap-upload/picture.less +2 -2
- package/theme/ap-upload/single-file.css +3 -3
- package/theme/ap-upload/single-file.less +2 -2
- package/theme/ap-upload/upload.css +1 -1
- package/theme/ap-upload-single/index.css +1 -1
- package/theme/ap-view/ap-view.css +1 -1
- package/theme/batch-input-group/index.css +2 -1
- package/theme/batch-input-group/popover-input.css +2 -1
- package/theme/batch-input-group/popover-input.less +1 -0
- package/theme/check-card/index.css +4 -4
- package/theme/editable-table/index.css +15 -6
- package/theme/full-screen/index.css +1 -1
- package/theme/index.css +45 -33
- package/theme/mask/index.css +1 -1
- package/theme/mixins/config.less +1 -1
- package/theme/mixins/mixins.css +1 -1
- package/theme/scroll-bar/index.css +1 -1
- package/theme/scroll-view/index.css +1 -1
- package/theme/splitter/index.css +3 -3
- package/theme/text/group.css +1 -1
- package/theme/text/index.css +2 -2
- package/theme/work-order-modal/index.css +1 -1
|
@@ -2,7 +2,7 @@ import { defineComponent as O, ref as A, computed as s, watch as V, createElemen
|
|
|
2
2
|
import { DownOutlined as U } from "@ant-design/icons-vue";
|
|
3
3
|
import { message as H, Dropdown as J, Menu as Q, MenuItem as G } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { ApExportGroupActionType as
|
|
5
|
+
import { ApExportGroupActionType as i } from "./interface.mjs";
|
|
6
6
|
import { usePermission as W } from "@aplus-frontend/hooks";
|
|
7
7
|
import { handleExportDownload as X } from "./handleExportDownload.mjs";
|
|
8
8
|
import { useInjectApTable as Y } from "../../ap-table/context.mjs";
|
|
@@ -30,10 +30,10 @@ const ge = /* @__PURE__ */ O({
|
|
|
30
30
|
exportField: { type: [Boolean, Object], default: void 0 }
|
|
31
31
|
},
|
|
32
32
|
setup(K) {
|
|
33
|
-
const { hasPermission: T } = W(), e = K, { columns: c, dataSource: f } = Y(), { b: D } = ee("ap-export-group"), { t:
|
|
33
|
+
const { hasPermission: T } = W(), e = K, { columns: c, dataSource: f } = Y(), { b: D } = ee("ap-export-group"), { t: r } = te(), C = ae("exportField"), u = A(!1), p = A(!1), m = s(
|
|
34
34
|
() => {
|
|
35
35
|
var t;
|
|
36
|
-
return !!(e != null && e.disabled) || (f !== void 0 ? !((t = f == null ? void 0 : f.value) != null && t.length) : !1) ||
|
|
36
|
+
return !!(e != null && e.disabled) || (f !== void 0 ? !((t = f == null ? void 0 : f.value) != null && t.length) : !1) || u.value;
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
V(
|
|
@@ -45,7 +45,7 @@ const ge = /* @__PURE__ */ O({
|
|
|
45
45
|
immediate: !0
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
|
-
const R = s(() => (e == null ? void 0 : e.successMessage) === !0 ?
|
|
48
|
+
const R = s(() => (e == null ? void 0 : e.successMessage) === !0 ? r("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), b = s(() => {
|
|
49
49
|
const t = "exportFieldList", l = (e == null ? void 0 : e.exportField) ?? (C.value === "" ? !0 : C.value) ?? !1;
|
|
50
50
|
return l === !0 ? {
|
|
51
51
|
key: t
|
|
@@ -60,18 +60,18 @@ const ge = /* @__PURE__ */ O({
|
|
|
60
60
|
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => T(e.auth)), (t == null ? void 0 : t()) ?? !0;
|
|
61
61
|
});
|
|
62
62
|
async function I() {
|
|
63
|
-
k.value.length > 0 ? w({ key:
|
|
63
|
+
k.value.length > 0 ? w({ key: i.SELECT }) : w({ key: i.ALL });
|
|
64
64
|
}
|
|
65
65
|
async function w({ key: t }) {
|
|
66
66
|
var F, S, _;
|
|
67
67
|
const { getRequestParams: l, request: o } = e || {};
|
|
68
68
|
let E = {};
|
|
69
|
-
t ===
|
|
69
|
+
t === i.SELECT ? E = {
|
|
70
70
|
[(e == null ? void 0 : e.idKey) || "ids"]: k.value
|
|
71
|
-
} : t ===
|
|
71
|
+
} : t === i.ALL && (E = (l == null ? void 0 : l()) || {});
|
|
72
72
|
const N = ((F = e == null ? void 0 : e.getInitialParams) == null ? void 0 : F.call(e)) || {};
|
|
73
73
|
try {
|
|
74
|
-
|
|
74
|
+
u.value = !0;
|
|
75
75
|
let v = Object.assign(
|
|
76
76
|
{
|
|
77
77
|
...E,
|
|
@@ -86,7 +86,7 @@ const ge = /* @__PURE__ */ O({
|
|
|
86
86
|
);
|
|
87
87
|
v = ((_ = e == null ? void 0 : e.beforeRequest) == null ? void 0 : _.call(e, v)) || v, await X(async () => await (o == null ? void 0 : o(v))), e != null && e.successMessage && H.success(R.value);
|
|
88
88
|
} finally {
|
|
89
|
-
|
|
89
|
+
u.value = !1;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
return (t, l) => (d(), $(q, null, [
|
|
@@ -94,11 +94,12 @@ const ge = /* @__PURE__ */ O({
|
|
|
94
94
|
...t.$attrs
|
|
95
95
|
}, {
|
|
96
96
|
disabled: m.value,
|
|
97
|
-
loading:
|
|
97
|
+
loading: u.value,
|
|
98
|
+
"min-width": "",
|
|
98
99
|
onClick: I
|
|
99
100
|
}), {
|
|
100
101
|
default: n(() => [
|
|
101
|
-
x(g((e == null ? void 0 : e.text) ?? a(
|
|
102
|
+
x(g((e == null ? void 0 : e.text) ?? a(r)("ap.apExportGroup.export")), 1)
|
|
102
103
|
]),
|
|
103
104
|
_: 1
|
|
104
105
|
}, 16, ["disabled", "loading"])) : M("", !0),
|
|
@@ -116,19 +117,19 @@ const ge = /* @__PURE__ */ O({
|
|
|
116
117
|
var o;
|
|
117
118
|
return [
|
|
118
119
|
(d(), y(a(G), {
|
|
119
|
-
key: a(
|
|
120
|
+
key: a(i).SELECT,
|
|
120
121
|
disabled: ((o = k.value) == null ? void 0 : o.length) === 0
|
|
121
122
|
}, {
|
|
122
123
|
default: n(() => [
|
|
123
|
-
x(g(a(
|
|
124
|
+
x(g(a(r)("ap.apExportGroup.exportSelected")), 1)
|
|
124
125
|
]),
|
|
125
126
|
_: 1
|
|
126
127
|
}, 8, ["disabled"])),
|
|
127
128
|
(d(), y(a(G), {
|
|
128
|
-
key: a(
|
|
129
|
+
key: a(i).ALL
|
|
129
130
|
}, {
|
|
130
131
|
default: n(() => [
|
|
131
|
-
x(g(a(
|
|
132
|
+
x(g(a(r)("ap.apExportGroup.exportAll")), 1)
|
|
132
133
|
]),
|
|
133
134
|
_: 1
|
|
134
135
|
}))
|
|
@@ -140,9 +141,9 @@ const ge = /* @__PURE__ */ O({
|
|
|
140
141
|
default: n(() => [
|
|
141
142
|
h(a(P), B({
|
|
142
143
|
...t.$attrs
|
|
143
|
-
}, { loading:
|
|
144
|
+
}, { loading: u.value }), {
|
|
144
145
|
default: n(() => [
|
|
145
|
-
x(g((e == null ? void 0 : e.text) ?? a(
|
|
146
|
+
x(g((e == null ? void 0 : e.text) ?? a(r)("ap.apExportGroup.export")) + " ", 1),
|
|
146
147
|
h(a(U))
|
|
147
148
|
]),
|
|
148
149
|
_: 1
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as g, onMounted as R, createElementBlock as V, openBlock as h, normalizeClass as b, unref as t, createVNode as i, mergeProps as I } from "vue";
|
|
2
2
|
import "../../config-provider/index.mjs";
|
|
3
|
-
import { Form as
|
|
3
|
+
import { Form as B, InputNumber as k, RadioGroup as x } from "@aplus-frontend/antdv";
|
|
4
4
|
import { omit as _ } from "lodash-unified";
|
|
5
|
-
import {
|
|
6
|
-
|
|
5
|
+
import { useLocale as y } from "../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { useNamespace as F } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
const S = /* @__PURE__ */ g({
|
|
7
8
|
name: "ApInputRadio",
|
|
8
9
|
__name: "ApInputRadio",
|
|
9
10
|
props: {
|
|
@@ -31,36 +32,37 @@ const G = /* @__PURE__ */ f({
|
|
|
31
32
|
},
|
|
32
33
|
emits: ["update:value", "InputRadioChange"],
|
|
33
34
|
setup(p, { emit: s }) {
|
|
34
|
-
const
|
|
35
|
-
let
|
|
36
|
-
u("update:value",
|
|
37
|
-
},
|
|
38
|
-
n({ inputVal:
|
|
39
|
-
}, v = (
|
|
40
|
-
const
|
|
35
|
+
const c = B.useInjectFormItemContext(), e = p, { t: d } = y(), { b: m, e: C } = F("ap-input-radio"), u = s, n = (o) => {
|
|
36
|
+
let a = { ...e.value, ...o };
|
|
37
|
+
u("update:value", a), u("InputRadioChange", a), c.onFieldChange();
|
|
38
|
+
}, f = (o) => {
|
|
39
|
+
n({ inputVal: o });
|
|
40
|
+
}, v = (o) => {
|
|
41
|
+
const a = o.target.value;
|
|
41
42
|
if (e.setRadioValCallback) {
|
|
42
|
-
let l = e.setRadioValCallback(
|
|
43
|
-
n({ inputVal: l, radioVal:
|
|
43
|
+
let l = e.setRadioValCallback(a);
|
|
44
|
+
n({ inputVal: l, radioVal: a });
|
|
44
45
|
} else
|
|
45
|
-
n({ radioVal:
|
|
46
|
+
n({ radioVal: a });
|
|
46
47
|
};
|
|
47
|
-
return
|
|
48
|
+
return R(() => {
|
|
48
49
|
if (e.setRadioValCallback) {
|
|
49
|
-
let
|
|
50
|
-
n({ inputVal:
|
|
50
|
+
let o = e.setRadioValCallback(e.value.radioVal);
|
|
51
|
+
n({ inputVal: o });
|
|
51
52
|
}
|
|
52
|
-
}), (
|
|
53
|
+
}), (o, a) => {
|
|
53
54
|
var l, r;
|
|
54
|
-
return
|
|
55
|
+
return h(), V("div", {
|
|
55
56
|
class: b([t(m)()])
|
|
56
57
|
}, [
|
|
57
|
-
i(t(
|
|
58
|
-
class: t(
|
|
58
|
+
i(t(k), I({
|
|
59
|
+
class: t(C)("input-number")
|
|
59
60
|
}, t(_)(e, ["value", "options"]), {
|
|
60
61
|
value: e.value ? (l = e.value) == null ? void 0 : l.inputVal : "",
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
placeholder: t(d)("ap.common.inputText"),
|
|
63
|
+
onChange: f
|
|
64
|
+
}), null, 16, ["class", "value", "placeholder"]),
|
|
65
|
+
i(t(x), {
|
|
64
66
|
value: e.value ? (r = e.value) == null ? void 0 : r.radioVal : "",
|
|
65
67
|
options: e.options,
|
|
66
68
|
onChange: v
|
|
@@ -70,5 +72,5 @@ const G = /* @__PURE__ */ f({
|
|
|
70
72
|
}
|
|
71
73
|
});
|
|
72
74
|
export {
|
|
73
|
-
|
|
75
|
+
S as default
|
|
74
76
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Popover as
|
|
1
|
+
import { defineComponent as z, ref as $, computed as I, watch as Y, createBlock as D, openBlock as E, unref as e, withCtx as t, createElementVNode as f, normalizeClass as r, createVNode as a, createSlots as K, toDisplayString as s, createTextVNode as v } from "vue";
|
|
2
|
+
import { Popover as j, Tooltip as q, Space as N, Checkbox as B } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../../config-provider/index.mjs";
|
|
4
4
|
import L from "../icons/line-eye.vue.mjs";
|
|
5
5
|
import "../../../ap-form/ap-form.vue.mjs";
|
|
@@ -11,45 +11,50 @@ import { generateUniqueKey as P } from "../utils/uuid.mjs";
|
|
|
11
11
|
import { cloneDeep as R } from "lodash-unified";
|
|
12
12
|
import { useLocale as U } from "../../../config-provider/hooks/use-locale.mjs";
|
|
13
13
|
import { useNamespace as G } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
const
|
|
14
|
+
import w from "../../../ap-form/ap-form.vue2.mjs";
|
|
15
|
+
import F from "../../../ap-button/ap-button.vue.mjs";
|
|
16
|
+
const re = /* @__PURE__ */ z({
|
|
17
17
|
__name: "main-button-content",
|
|
18
18
|
props: {
|
|
19
19
|
maxViewNum: {}
|
|
20
20
|
},
|
|
21
21
|
setup(b) {
|
|
22
|
-
const
|
|
23
|
-
get: () =>
|
|
24
|
-
set: (
|
|
25
|
-
|
|
22
|
+
const d = b, { t: o } = U(), { b: l } = G("ap-view"), V = $(), { tableKey: k, popoverOpen: c, viewList: u, saveDataSource: n, viewListCRUD: _ } = A(), y = I({
|
|
23
|
+
get: () => c.value && u.value.length < d.maxViewNum + 1,
|
|
24
|
+
set: (p) => {
|
|
25
|
+
u.value.length < d.maxViewNum + 1 && (c.value = p);
|
|
26
26
|
}
|
|
27
27
|
});
|
|
28
|
-
Y(
|
|
28
|
+
Y(c, (p) => {
|
|
29
29
|
var i;
|
|
30
|
-
|
|
30
|
+
p && ((i = V.value) == null || i.resetFields(), setTimeout(() => {
|
|
31
|
+
var m;
|
|
32
|
+
(m = V.value) == null || m.setFieldsValue({
|
|
33
|
+
isDefault: !u.value.some((h) => h.isDefault)
|
|
34
|
+
});
|
|
35
|
+
}));
|
|
31
36
|
});
|
|
32
|
-
const
|
|
33
|
-
var
|
|
34
|
-
const { viewName: i, isDefault:
|
|
37
|
+
const C = async (p) => {
|
|
38
|
+
var g, x;
|
|
39
|
+
const { viewName: i, isDefault: m } = p, h = P(), T = {
|
|
35
40
|
searchForm: R(
|
|
36
|
-
(
|
|
41
|
+
(g = n == null ? void 0 : n.getSearchFormValues) == null ? void 0 : g.call(
|
|
37
42
|
n,
|
|
38
43
|
!!(n != null && n.searchFormTransform)
|
|
39
44
|
)
|
|
40
45
|
)
|
|
41
46
|
};
|
|
42
|
-
await ((
|
|
43
|
-
tableKey:
|
|
44
|
-
viewKey:
|
|
47
|
+
await ((x = _.addView) == null ? void 0 : x.call(_, {
|
|
48
|
+
tableKey: k,
|
|
49
|
+
viewKey: h,
|
|
45
50
|
viewName: i,
|
|
46
|
-
isDefault:
|
|
47
|
-
viewConfig:
|
|
48
|
-
})),
|
|
51
|
+
isDefault: m,
|
|
52
|
+
viewConfig: T
|
|
53
|
+
})), c.value = !1;
|
|
49
54
|
};
|
|
50
|
-
return (
|
|
51
|
-
open:
|
|
52
|
-
"onUpdate:open": i[1] || (i[1] = (
|
|
55
|
+
return (p, i) => (E(), D(e(j), {
|
|
56
|
+
open: y.value,
|
|
57
|
+
"onUpdate:open": i[1] || (i[1] = (m) => y.value = m),
|
|
53
58
|
placement: "bottom",
|
|
54
59
|
trigger: "click",
|
|
55
60
|
arrow: !1,
|
|
@@ -58,34 +63,33 @@ const pe = /* @__PURE__ */ T({
|
|
|
58
63
|
}
|
|
59
64
|
}, {
|
|
60
65
|
content: t(() => [
|
|
61
|
-
|
|
66
|
+
f("div", {
|
|
62
67
|
class: r([e(l)("main-content-popover")])
|
|
63
68
|
}, [
|
|
64
|
-
a(
|
|
69
|
+
a(w, {
|
|
65
70
|
ref_key: "formRef",
|
|
66
|
-
ref:
|
|
71
|
+
ref: V,
|
|
67
72
|
layout: "vertical",
|
|
68
73
|
"initial-values": {
|
|
69
|
-
isDefault: !0,
|
|
70
74
|
viewName: `${e(o)("ap.apView.newView")} ${e(O)().format("YYYY-MM-DD").toString()}`
|
|
71
75
|
},
|
|
72
|
-
onFinish:
|
|
76
|
+
onFinish: C
|
|
73
77
|
}, {
|
|
74
78
|
default: t(() => [
|
|
75
|
-
|
|
79
|
+
f("div", {
|
|
76
80
|
class: r([e(l)("main-content-popover-title-content")])
|
|
77
81
|
}, [
|
|
78
|
-
|
|
82
|
+
f("div", {
|
|
79
83
|
class: r([e(l)("main-content-popover-title-content-title")])
|
|
80
|
-
},
|
|
81
|
-
a(
|
|
84
|
+
}, s(e(o)("ap.apView.saveNewView")), 3),
|
|
85
|
+
a(w.FormItem, {
|
|
82
86
|
name: "isDefault",
|
|
83
87
|
"value-prop-name": "checked"
|
|
84
88
|
}, {
|
|
85
89
|
default: t(() => [
|
|
86
|
-
a(e(
|
|
90
|
+
a(e(B), null, {
|
|
87
91
|
default: t(() => [
|
|
88
|
-
|
|
92
|
+
v(s(e(o)("ap.apView.setDefault")), 1)
|
|
89
93
|
]),
|
|
90
94
|
_: 1
|
|
91
95
|
})
|
|
@@ -93,7 +97,7 @@ const pe = /* @__PURE__ */ T({
|
|
|
93
97
|
_: 1
|
|
94
98
|
})
|
|
95
99
|
], 2),
|
|
96
|
-
a(
|
|
100
|
+
a(w.FormItem, {
|
|
97
101
|
label: e(o)("ap.apView.viewName"),
|
|
98
102
|
name: "viewName",
|
|
99
103
|
rules: [{ required: !0, message: e(o)("ap.apView.notEmpty") }]
|
|
@@ -107,28 +111,28 @@ const pe = /* @__PURE__ */ T({
|
|
|
107
111
|
]),
|
|
108
112
|
_: 1
|
|
109
113
|
}, 8, ["label", "rules"]),
|
|
110
|
-
a(
|
|
114
|
+
a(w.FormItem, {
|
|
111
115
|
class: r([e(l)("main-content-popover-btn")])
|
|
112
116
|
}, {
|
|
113
117
|
default: t(() => [
|
|
114
|
-
a(e(
|
|
118
|
+
a(e(N), { size: 8 }, {
|
|
115
119
|
default: t(() => [
|
|
116
|
-
a(e(
|
|
120
|
+
a(e(F), {
|
|
117
121
|
size: "small",
|
|
118
|
-
onClick: i[0] || (i[0] = (
|
|
122
|
+
onClick: i[0] || (i[0] = (m) => c.value = !1)
|
|
119
123
|
}, {
|
|
120
124
|
default: t(() => [
|
|
121
|
-
|
|
125
|
+
v(s(e(o)("ap.apView.cancel")), 1)
|
|
122
126
|
]),
|
|
123
127
|
_: 1
|
|
124
128
|
}),
|
|
125
|
-
a(e(
|
|
129
|
+
a(e(F), {
|
|
126
130
|
type: "primary",
|
|
127
131
|
size: "small",
|
|
128
132
|
"html-type": "submit"
|
|
129
133
|
}, {
|
|
130
134
|
default: t(() => [
|
|
131
|
-
|
|
135
|
+
v(s(e(o)("ap.apView.save")), 1)
|
|
132
136
|
]),
|
|
133
137
|
_: 1
|
|
134
138
|
})
|
|
@@ -144,30 +148,30 @@ const pe = /* @__PURE__ */ T({
|
|
|
144
148
|
], 2)
|
|
145
149
|
]),
|
|
146
150
|
default: t(() => [
|
|
147
|
-
|
|
151
|
+
f("div", {
|
|
148
152
|
class: r({
|
|
149
153
|
[e(l)("main-content")]: !0,
|
|
150
|
-
[e(l)("main-content-disabled")]: e(
|
|
154
|
+
[e(l)("main-content-disabled")]: e(u).length >= d.maxViewNum + 1
|
|
151
155
|
})
|
|
152
156
|
}, [
|
|
153
|
-
a(e(
|
|
157
|
+
a(e(q), { placement: "bottom" }, K({
|
|
154
158
|
default: t(() => [
|
|
155
|
-
a(e(
|
|
159
|
+
a(e(N), { size: 4 }, {
|
|
156
160
|
default: t(() => [
|
|
157
161
|
a(L, {
|
|
158
162
|
class: r([e(l)("icon")])
|
|
159
163
|
}, null, 8, ["class"]),
|
|
160
|
-
|
|
164
|
+
f("div", null, s(e(o)("ap.apView.saveView")), 1)
|
|
161
165
|
]),
|
|
162
166
|
_: 1
|
|
163
167
|
})
|
|
164
168
|
]),
|
|
165
169
|
_: 2
|
|
166
170
|
}, [
|
|
167
|
-
e(
|
|
171
|
+
e(u).length >= d.maxViewNum + 1 ? {
|
|
168
172
|
name: "title",
|
|
169
173
|
fn: t(() => [
|
|
170
|
-
|
|
174
|
+
v(s(e(o)("ap.apView.maxTip")), 1)
|
|
171
175
|
]),
|
|
172
176
|
key: "0"
|
|
173
177
|
} : void 0
|
|
@@ -179,5 +183,5 @@ const pe = /* @__PURE__ */ T({
|
|
|
179
183
|
}
|
|
180
184
|
});
|
|
181
185
|
export {
|
|
182
|
-
|
|
186
|
+
re as default
|
|
183
187
|
};
|
|
@@ -183,6 +183,10 @@ export type ApFormSearchFormPopoverSorterProps = {
|
|
|
183
183
|
* @returns
|
|
184
184
|
*/
|
|
185
185
|
onClickConfirm: (sortedChildren: VNode[]) => void;
|
|
186
|
+
/**
|
|
187
|
+
* 当前的children是否已经排序过了
|
|
188
|
+
*/
|
|
189
|
+
sorted?: boolean;
|
|
186
190
|
};
|
|
187
191
|
export type ApFormSearchFormExpose = {
|
|
188
192
|
apForm: ApFormExpose;
|
|
@@ -1,4 +1,133 @@
|
|
|
1
1
|
import { ApFormSearchFormPopoverFilterProps } from '../../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
3
|
-
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
+
import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
4
|
+
import { ButtonHTMLType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
5
|
+
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
6
|
+
import { MouseEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
+
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
8
|
+
declare const _default: DefineComponent<ApFormSearchFormPopoverFilterProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ApFormSearchFormPopoverFilterProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
9
|
+
triggerBtnRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
10
|
+
prefixCls: StringConstructor;
|
|
11
|
+
type: PropType<ButtonType>;
|
|
12
|
+
htmlType: {
|
|
13
|
+
type: PropType<ButtonHTMLType>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
shape: {
|
|
17
|
+
type: PropType<ButtonShape>;
|
|
18
|
+
};
|
|
19
|
+
size: {
|
|
20
|
+
type: PropType<ButtonSize>;
|
|
21
|
+
};
|
|
22
|
+
loading: {
|
|
23
|
+
type: PropType<boolean | {
|
|
24
|
+
delay?: number;
|
|
25
|
+
}>;
|
|
26
|
+
default: () => boolean | {
|
|
27
|
+
delay?: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
disabled: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
ghost: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: any;
|
|
37
|
+
};
|
|
38
|
+
block: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: any;
|
|
41
|
+
};
|
|
42
|
+
danger: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: any;
|
|
45
|
+
};
|
|
46
|
+
icon: VueTypeValidableDef<any>;
|
|
47
|
+
href: StringConstructor;
|
|
48
|
+
target: StringConstructor;
|
|
49
|
+
title: StringConstructor;
|
|
50
|
+
onClick: {
|
|
51
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
52
|
+
};
|
|
53
|
+
onMousedown: {
|
|
54
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
55
|
+
};
|
|
56
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
57
|
+
block: boolean;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
danger: boolean;
|
|
60
|
+
ghost: boolean;
|
|
61
|
+
htmlType: ButtonHTMLType;
|
|
62
|
+
loading: boolean | {
|
|
63
|
+
delay?: number;
|
|
64
|
+
};
|
|
65
|
+
}, true, {}, CustomSlotsType<{
|
|
66
|
+
icon: any;
|
|
67
|
+
default: any;
|
|
68
|
+
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
69
|
+
P: {};
|
|
70
|
+
B: {};
|
|
71
|
+
D: {};
|
|
72
|
+
C: {};
|
|
73
|
+
M: {};
|
|
74
|
+
Defaults: {};
|
|
75
|
+
}, Readonly< ExtractPropTypes<{
|
|
76
|
+
prefixCls: StringConstructor;
|
|
77
|
+
type: PropType<ButtonType>;
|
|
78
|
+
htmlType: {
|
|
79
|
+
type: PropType<ButtonHTMLType>;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
shape: {
|
|
83
|
+
type: PropType<ButtonShape>;
|
|
84
|
+
};
|
|
85
|
+
size: {
|
|
86
|
+
type: PropType<ButtonSize>;
|
|
87
|
+
};
|
|
88
|
+
loading: {
|
|
89
|
+
type: PropType<boolean | {
|
|
90
|
+
delay?: number;
|
|
91
|
+
}>;
|
|
92
|
+
default: () => boolean | {
|
|
93
|
+
delay?: number;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
disabled: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: any;
|
|
99
|
+
};
|
|
100
|
+
ghost: {
|
|
101
|
+
type: BooleanConstructor;
|
|
102
|
+
default: any;
|
|
103
|
+
};
|
|
104
|
+
block: {
|
|
105
|
+
type: BooleanConstructor;
|
|
106
|
+
default: any;
|
|
107
|
+
};
|
|
108
|
+
danger: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
default: any;
|
|
111
|
+
};
|
|
112
|
+
icon: VueTypeValidableDef<any>;
|
|
113
|
+
href: StringConstructor;
|
|
114
|
+
target: StringConstructor;
|
|
115
|
+
title: StringConstructor;
|
|
116
|
+
onClick: {
|
|
117
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
118
|
+
};
|
|
119
|
+
onMousedown: {
|
|
120
|
+
type: PropType< MouseEventHandler | MouseEventHandler[]>;
|
|
121
|
+
};
|
|
122
|
+
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
123
|
+
block: boolean;
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
danger: boolean;
|
|
126
|
+
ghost: boolean;
|
|
127
|
+
htmlType: ButtonHTMLType;
|
|
128
|
+
loading: boolean | {
|
|
129
|
+
delay?: number;
|
|
130
|
+
};
|
|
131
|
+
}> | null;
|
|
132
|
+
}, any>;
|
|
4
133
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@aplus-frontend/antdv"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@aplus-frontend/antdv"),p=require("@aplus-frontend/icon");require("../../../config-provider/index.js");const f=require("../../../config-provider/hooks/use-namespace.js"),d=require("../../../config-provider/hooks/use-locale.js"),m=e.defineComponent({name:"ApFormSearchFormPopoverFilter",__name:"popover-filter",props:{config:{},onSubmit:{type:Function},submitLoading:{type:Boolean}},setup(g){const u=e.ref(),{e:n,b:c}=f.useNamespace("ap-form-search-form"),{t:i}=d.useLocale(),a=e.ref(!1);function s(o){return o.closest(".ant-form")||document.body}return(o,l)=>(e.openBlock(),e.createBlock(e.unref(t.Popover),{open:a.value,"onUpdate:open":l[1]||(l[1]=r=>a.value=r),"overlay-class-name":e.unref(n)("popover"),trigger:"click",placement:"bottom",mask:"","mask-style":{backgroundColor:"transparent"},"get-popup-container":s},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(n)("popover-content")]),style:{paddingBottom:"4px",width:"825px"}},[e.createVNode(e.unref(t.Row),{gutter:8},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.config,r=>(e.openBlock(),e.createBlock(e.unref(t.Col),{key:r.key,span:8},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.node)))]),_:2},1024))),128))]),_:1})],2),e.createVNode(e.unref(t.Divider),{style:{margin:"0"}}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n)("popover-footer"))},[e.createVNode(e.unref(t.Flex),{justify:"end"},{default:e.withCtx(()=>[e.createVNode(e.unref(t.Button),{onClick:l[0]||(l[0]=r=>a.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("ap.common.cancelText")),1)]),_:1}),e.createVNode(e.unref(t.Button),{class:e.normalizeClass(e.unref(n)("popover-footer-confirm-btn")),type:"primary",loading:o.submitLoading,onClick:o.onSubmit},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("ap.apForm.search.search")),1)]),_:1},8,["class","loading","onClick"])]),_:1})],2)]),default:e.withCtx(()=>[e.createVNode(e.unref(t.Tooltip),{title:e.unref(i)("ap.apForm.search.moreFilter"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(t.Button),{ref_key:"triggerBtnRef",ref:u,class:e.normalizeClass([e.unref(c)("trigger-btn"),{[e.unref(c)("trigger-btn-active")]:a.value}])},{icon:e.withCtx(()=>[e.createVNode(e.unref(p.IconApFilterOutlined),{size:14})]),_:1},8,["class"])]),_:1},8,["title"])]),_:1},8,["open","overlay-class-name"]))}});exports.default=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@aplus-frontend/antdv"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("@aplus-frontend/antdv"),y=require("@aplus-frontend/icon");require("../../../../config-provider/index.js");const V=require("vuedraggable");require("./sortable-item.vue.js");const _=require("../../../item-group/helper.js"),m=require("../../../../config-provider/hooks/use-namespace.js"),b=require("../../../../config-provider/hooks/use-locale.js"),w=require("./sortable-item.vue2.js"),x=e.defineComponent({name:"ApFormSearchFormPopoverSorter",__name:"index",props:{children:{},onClickConfirm:{type:Function},sorted:{type:Boolean}},setup(v){const a=v,o=e.ref(a.children);let p=[...a.children],f=[...a.children];e.watch(()=>a.children,r=>{a.sorted||(o.value=r,f=r,p=r)});const{e:c,b:d}=m.useNamespace("ap-form-search-form"),{b:n}=m.useNamespace("search-form-sorter"),{t:s}=b.useLocale(),l=e.ref(!1);function C(r){return r.closest(".ant-form")||document.body}function h(){l.value=!1,p=[...e.unref(o)],a.onClickConfirm(e.unref(o))}function g(){o.value=[...f]}function N(r){return _.getStringName(r.props.name)}return e.watch(()=>l.value,r=>{r&&(o.value=[...p])}),(r,i)=>(e.openBlock(),e.createBlock(e.unref(t.Popover),{open:l.value,"onUpdate:open":i[1]||(i[1]=u=>l.value=u),"overlay-class-name":e.unref(c)("popover"),trigger:"click",placement:"bottom",mask:"","mask-style":{backgroundColor:"transparent"},"get-popup-container":C},{content:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n)("header"))},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("header-title"))},e.toDisplayString(e.unref(s)("ap.apForm.search.sorterTitle")),3),e.createVNode(e.unref(t.Flex),{justify:"space-between"},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("header-desc"))},e.toDisplayString(e.unref(s)("ap.apForm.search.sorterDesc")),3),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n)("header-action-wrapper")),onClick:g},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(n)("header-reset-btn"))},e.toDisplayString(e.unref(s)("ap.apForm.search.sorterReset")),3)],2)]),_:1})],2),e.createElementVNode("div",{class:e.normalizeClass([e.unref(c)("popover-content"),e.unref(n)("content")])},[e.createVNode(e.unref(V),{list:o.value,class:e.normalizeClass(e.unref(n)("sorter-wrapper")),"item-key":N},{item:e.withCtx(({element:u})=>[e.createVNode(w.default,{item:u},null,8,["item"])]),_:1},8,["list","class"])],2),e.createVNode(e.unref(t.Divider),{style:{margin:"0"}}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("popover-footer"))},[e.createVNode(e.unref(t.Flex),{justify:"end"},{default:e.withCtx(()=>[e.createVNode(e.unref(t.Button),{onClick:i[0]||(i[0]=u=>l.value=!1)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("ap.common.cancelText")),1)]),_:1}),e.createVNode(e.unref(t.Button),{class:e.normalizeClass(e.unref(c)("popover-footer-confirm-btn")),type:"primary",onClick:h},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("ap.apForm.search.sorterConfirmBtn")),1)]),_:1},8,["class"])]),_:1})],2)]),default:e.withCtx(()=>[e.createVNode(e.unref(t.Tooltip),{title:e.unref(s)("ap.apForm.search.sorterTitle"),placement:"top"},{default:e.withCtx(()=>[e.createVNode(e.unref(t.Button),{class:e.normalizeClass([e.unref(d)("trigger-btn"),{[e.unref(d)("trigger-btn-active")]:l.value}])},{icon:e.withCtx(()=>[e.createVNode(e.unref(y.IconApLayoutOutlined),{size:14})]),_:1},8,["class"])]),_:1},8,["title"])]),_:1},8,["open","overlay-class-name"]))}});exports.default=x;
|
|
@@ -383,7 +383,9 @@ declare function __VLS_template(): {
|
|
|
383
383
|
default: string | number | ColSize;
|
|
384
384
|
};
|
|
385
385
|
xxl: {
|
|
386
|
-
type: PropType<string | number |
|
|
386
|
+
type: PropType<string | number | **
|
|
387
|
+
* extra区域展开占据的span数(占据剩余所有空间)
|
|
388
|
+
*/).ColSize>;
|
|
387
389
|
default: string | number | ColSize;
|
|
388
390
|
};
|
|
389
391
|
prefixCls: StringConstructor;
|
|
@@ -1218,7 +1220,9 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1218
1220
|
default: string | number | ColSize;
|
|
1219
1221
|
};
|
|
1220
1222
|
xxl: {
|
|
1221
|
-
type: PropType<string | number |
|
|
1223
|
+
type: PropType<string | number | **
|
|
1224
|
+
* extra区域展开占据的span数(占据剩余所有空间)
|
|
1225
|
+
*/).ColSize>;
|
|
1222
1226
|
default: string | number | ColSize;
|
|
1223
1227
|
};
|
|
1224
1228
|
prefixCls: StringConstructor;
|