@aplus-frontend/ui 0.4.1 → 0.4.3
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-field/date/helper.d.ts +1 -1
- package/es/src/ap-field/date/helper.mjs +9 -9
- package/es/src/ap-field/date/index.vue.mjs +33 -25
- package/es/src/ap-field/date-range/index.vue.mjs +44 -43
- package/es/src/ap-field/interface.d.ts +0 -6
- package/es/src/ap-field/number/index.vue.d.ts +322 -1
- package/es/src/ap-field/radio/index.vue.d.ts +98 -2
- package/es/src/ap-field/rate/index.vue.d.ts +82 -1
- package/es/src/ap-field/select/index.vue.d.ts +407 -1
- package/es/src/ap-field/select/index.vue.mjs +14 -13
- package/es/src/ap-field/slider/index.vue.d.ts +257 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/es/src/ap-form/ap-form.vue.d.ts +636 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/es/src/ap-form/item/index.vue.d.ts +777 -1
- package/es/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/es/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/es/src/ap-form/items/text/index.vue.d.ts +139 -2
- package/es/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/es/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/es/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/es/src/ap-form/modal-form/index.vue.mjs +64 -66
- package/es/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/es/src/ap-list/index.vue.d.ts +1 -1
- package/es/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/es/src/ap-scroll-bar/index.d.ts +3 -1
- package/es/src/ap-table/ap-table.vue.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue2.mjs +98 -97
- package/es/src/ap-table/constants.d.ts +2263 -13
- package/es/src/ap-table/context.d.ts +1 -0
- package/es/src/ap-table/context.mjs +11 -10
- package/es/src/ap-table/utils.d.ts +1180 -8
- package/es/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/es/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/es/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/es/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/es/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/es/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/es/src/business/ap-batch-action/ApBatchAction.vue2.mjs +45 -55
- package/es/src/business/ap-batch-action/index.d.ts +5 -3
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +66 -61
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +9 -8
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +8 -7
- package/es/src/business/ap-group-search/index.d.ts +418 -4
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +15 -14
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/es/src/business/ap-table-modal/index.d.ts +22 -2
- package/es/src/business/ap-table-modal/interface.d.ts +2 -2
- package/es/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/es/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/es/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/es/src/business/hooks/usePageListApTable.mjs +20 -18
- package/es/src/editable-table/form-item.vue.d.ts +1 -1
- package/es/src/editable-table/index.vue.d.ts +1 -1
- package/es/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/lib/src/ap-field/date/helper.d.ts +1 -1
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +0 -6
- package/lib/src/ap-field/number/index.vue.d.ts +322 -1
- package/lib/src/ap-field/radio/index.vue.d.ts +98 -2
- package/lib/src/ap-field/rate/index.vue.d.ts +82 -1
- package/lib/src/ap-field/select/index.vue.d.ts +407 -1
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/slider/index.vue.d.ts +257 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +267 -2
- package/lib/src/ap-form/ap-form.vue.d.ts +636 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +1454 -4
- package/lib/src/ap-form/item/index.vue.d.ts +777 -1
- package/lib/src/ap-form/items/number/index.vue.d.ts +783 -2
- package/lib/src/ap-form/items/radio/index.vue.d.ts +221 -3
- package/lib/src/ap-form/items/text/index.vue.d.ts +139 -2
- package/lib/src/ap-form/items/text/password.vue.d.ts +148 -1
- package/lib/src/ap-form/items/text-area/index.vue.d.ts +566 -3
- package/lib/src/ap-form/modal-form/index.vue.d.ts +1454 -5
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/index.vue.d.ts +1454 -3
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +4 -1
- package/lib/src/ap-list/index.vue.d.ts +1 -1
- package/lib/src/ap-scroll-bar/ap-scroll-bar.vue.d.ts +3 -1
- package/lib/src/ap-scroll-bar/index.d.ts +3 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2263 -13
- package/lib/src/ap-table/context.d.ts +1 -0
- package/lib/src/ap-table/context.js +1 -1
- package/lib/src/ap-table/utils.d.ts +1180 -8
- package/lib/src/ap-tag/ap-tag-group.vue.d.ts +3 -1
- package/lib/src/ap-upload/apUpload.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/MultipleFile.vue.d.ts +453 -2
- package/lib/src/ap-upload/components/Picture.vue.d.ts +3 -1
- package/lib/src/ap-upload/components/SingleFile.vue.d.ts +3 -1
- package/lib/src/business/ap-batch-action/ApBatchAction.vue.d.ts +8 -4
- package/lib/src/business/ap-batch-action/ApBatchAction.vue2.js +1 -1
- package/lib/src/business/ap-batch-action/index.d.ts +5 -3
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +1 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +3 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +1 -1
- package/lib/src/business/ap-group-search/index.d.ts +418 -4
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +413 -3
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +2 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +1 -1
- package/lib/src/business/ap-table-modal/index.d.ts +22 -2
- package/lib/src/business/ap-table-modal/interface.d.ts +2 -2
- package/lib/src/business/ap-table-modal/table-modal.vue.d.ts +22 -2
- package/lib/src/business/batch-input-group/index.vue.d.ts +146 -3
- package/lib/src/business/batch-input-group/popover-input/index.vue.d.ts +267 -2
- package/lib/src/business/hooks/usePageListApTable.js +1 -1
- package/lib/src/editable-table/form-item.vue.d.ts +1 -1
- package/lib/src/editable-table/index.vue.d.ts +1 -1
- package/lib/src/work-order-modal/work-order-modal.vue.d.ts +827 -2
- package/package.json +5 -5
- package/theme/ap-form/index.css +3 -4
- package/theme/ap-form/modal-form.css +3 -4
- package/theme/ap-form/modal-form.less +3 -4
- package/theme/ap-table/ap-table.css +3 -4
- package/theme/ap-table-modal/index.css +3 -4
- package/theme/editable-table/index.css +3 -4
- package/theme/index.css +3 -4
|
@@ -2,7 +2,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
|
|
|
2
2
|
import { ApBatchActionProps } from './interface';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApBatchAction: {
|
|
5
|
-
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
|
6
|
+
headerRef: HTMLDivElement;
|
|
7
|
+
}, HTMLDivElement, ComponentProvideOptions, {
|
|
6
8
|
P: {};
|
|
7
9
|
B: {};
|
|
8
10
|
D: {};
|
|
@@ -15,11 +17,11 @@ declare const ApBatchAction: {
|
|
|
15
17
|
__isSuspense?: never;
|
|
16
18
|
} & ComponentOptionsBase<Readonly< ApBatchActionProps> & Readonly<{}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
17
19
|
$slots: Readonly<{
|
|
18
|
-
header: () =>
|
|
20
|
+
header: () => any[];
|
|
19
21
|
prefix: () => void;
|
|
20
22
|
suffix: () => void;
|
|
21
23
|
}> & {
|
|
22
|
-
header: () =>
|
|
24
|
+
header: () => any[];
|
|
23
25
|
prefix: () => void;
|
|
24
26
|
suffix: () => void;
|
|
25
27
|
};
|
|
@@ -4,7 +4,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
5
5
|
readonly onExpand?: ((...args: any[]) => any) | undefined;
|
|
6
6
|
readonly onChoose?: ((...args: any[]) => any) | undefined;
|
|
7
|
-
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> &
|
|
7
|
+
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, "onExpand" | "onChoose"> & ApExpandAlertProps<T> & Partial<{}>> & PublicProps;
|
|
8
8
|
expose(exposed: ShallowUnwrapRef<{
|
|
9
9
|
setExpand: (state?: boolean) => void;
|
|
10
10
|
}>): void;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DownOutlined as
|
|
3
|
-
import { message as
|
|
1
|
+
import { defineComponent as j, computed as s, ref as I, openBlock as v, createBlock as x, unref as a, normalizeClass as N, withCtx as r, createVNode as g, createTextVNode as b, toDisplayString as p, mergeProps as O, createCommentVNode as V } from "vue";
|
|
2
|
+
import { DownOutlined as q } from "@ant-design/icons-vue";
|
|
3
|
+
import { message as z, Dropdown as $, Menu as H, MenuItem as C, Button as J } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { ApExportGroupActionType as
|
|
6
|
-
import { usePermission as
|
|
7
|
-
import { handleExportDownload as
|
|
8
|
-
import { useInjectApTable as
|
|
9
|
-
import { convertExportField as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
import { useGlobalConfig as
|
|
13
|
-
const
|
|
5
|
+
import { ApExportGroupActionType as f } from "./interface.mjs";
|
|
6
|
+
import { usePermission as Q } from "@aplus-frontend/hooks";
|
|
7
|
+
import { handleExportDownload as U } from "./handleExportDownload.mjs";
|
|
8
|
+
import { useInjectApTable as W } from "../../ap-table/context.mjs";
|
|
9
|
+
import { convertExportField as X } from "./convertExportField.mjs";
|
|
10
|
+
import { useNamespace as Y } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
import { useLocale as Z } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import { useGlobalConfig as _ } from "../../config-provider/hooks/use-global-config.mjs";
|
|
13
|
+
const fe = /* @__PURE__ */ j({
|
|
14
14
|
__name: "ApExportGroup",
|
|
15
15
|
props: {
|
|
16
16
|
selectedRowKeys: {},
|
|
@@ -26,79 +26,84 @@ const de = /* @__PURE__ */ T({
|
|
|
26
26
|
successMessage: { type: [Boolean, String], default: !1 },
|
|
27
27
|
exportField: { type: [Boolean, Object], default: void 0 }
|
|
28
28
|
},
|
|
29
|
-
setup(
|
|
30
|
-
const { hasPermission:
|
|
29
|
+
setup(L) {
|
|
30
|
+
const { hasPermission: S } = Q(), e = L, { columns: n, dataSource: u } = W(), { b: A } = Y("ap-export-group"), { t: i } = Z(), B = _("uiMode"), w = _("exportField"), G = s(() => {
|
|
31
31
|
const t = {
|
|
32
32
|
aplus: "#0070FF",
|
|
33
33
|
admin: "#34b77c"
|
|
34
34
|
};
|
|
35
|
-
return
|
|
36
|
-
}),
|
|
37
|
-
|
|
35
|
+
return h.value ? "" : t[B.value] || t.aplus;
|
|
36
|
+
}), h = s(
|
|
37
|
+
() => {
|
|
38
|
+
var t;
|
|
39
|
+
return !!(e != null && e.disabled) || (u !== void 0 ? !((t = u == null ? void 0 : u.value) != null && t.length) : !1) || c.value;
|
|
40
|
+
}
|
|
41
|
+
), P = s(() => (e == null ? void 0 : e.successMessage) === !0 ? i("ap.apExportGroup.exportSuccess") : e != null && e.successMessage ? e.successMessage : ""), m = s(() => {
|
|
42
|
+
const t = "exportFieldList", o = (e == null ? void 0 : e.exportField) ?? (w.value === "" ? !0 : w.value) ?? !1;
|
|
38
43
|
return o === !0 ? {
|
|
39
44
|
key: t
|
|
40
45
|
} : typeof o == "object" ? {
|
|
41
46
|
...o,
|
|
42
47
|
key: o.key ?? t
|
|
43
48
|
} : o;
|
|
44
|
-
}),
|
|
49
|
+
}), K = {
|
|
45
50
|
textAlign: "center"
|
|
46
|
-
},
|
|
51
|
+
}, c = I(!1), E = s(() => (e == null ? void 0 : e.selectedRowKeys) || []), D = s(() => {
|
|
47
52
|
let t = e == null ? void 0 : e.ifShow;
|
|
48
|
-
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () =>
|
|
53
|
+
return !(e != null && e.ifShow) && (e != null && e.auth) && (t = () => S(e.auth)), (t == null ? void 0 : t()) ?? !0;
|
|
49
54
|
});
|
|
50
|
-
async function
|
|
51
|
-
var
|
|
55
|
+
async function R({ key: t }) {
|
|
56
|
+
var F, M, k;
|
|
52
57
|
const { getRequestParams: o, request: l } = e || {};
|
|
53
|
-
let
|
|
54
|
-
t ===
|
|
55
|
-
[(e == null ? void 0 : e.idKey) || "ids"]:
|
|
56
|
-
} : t ===
|
|
57
|
-
const
|
|
58
|
+
let y = {};
|
|
59
|
+
t === f.SELECT ? y = {
|
|
60
|
+
[(e == null ? void 0 : e.idKey) || "ids"]: E.value
|
|
61
|
+
} : t === f.ALL && (y = (o == null ? void 0 : o()) || {});
|
|
62
|
+
const T = ((F = e == null ? void 0 : e.getInitialParams) == null ? void 0 : F.call(e)) || {};
|
|
58
63
|
try {
|
|
59
|
-
|
|
60
|
-
let
|
|
64
|
+
c.value = !0;
|
|
65
|
+
let d = Object.assign(
|
|
61
66
|
{
|
|
62
|
-
...
|
|
63
|
-
...
|
|
67
|
+
...y,
|
|
68
|
+
...T
|
|
64
69
|
},
|
|
65
|
-
|
|
66
|
-
[
|
|
70
|
+
m.value && (n != null && n.value) ? {
|
|
71
|
+
[m.value.key]: X(
|
|
67
72
|
n.value,
|
|
68
|
-
(
|
|
73
|
+
(M = m.value) == null ? void 0 : M.convertField
|
|
69
74
|
)
|
|
70
75
|
} : {}
|
|
71
76
|
);
|
|
72
|
-
|
|
77
|
+
d = ((k = e == null ? void 0 : e.beforeRequest) == null ? void 0 : k.call(e, d)) || d, await U(async () => await (l == null ? void 0 : l(d))), e != null && e.successMessage && z.success(P.value);
|
|
73
78
|
} finally {
|
|
74
|
-
|
|
79
|
+
c.value = !1;
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
|
-
return (t, o) =>
|
|
82
|
+
return (t, o) => D.value ? (v(), x(a($), {
|
|
78
83
|
key: 0,
|
|
79
|
-
class:
|
|
80
|
-
"overlay-style":
|
|
81
|
-
disabled:
|
|
84
|
+
class: N([a(A)()]),
|
|
85
|
+
"overlay-style": K,
|
|
86
|
+
disabled: h.value
|
|
82
87
|
}, {
|
|
83
|
-
overlay:
|
|
84
|
-
|
|
85
|
-
default:
|
|
88
|
+
overlay: r(() => [
|
|
89
|
+
g(a(H), { onClick: R }, {
|
|
90
|
+
default: r(() => {
|
|
86
91
|
var l;
|
|
87
92
|
return [
|
|
88
|
-
(
|
|
89
|
-
key: a(
|
|
90
|
-
disabled: ((l =
|
|
93
|
+
(v(), x(a(C), {
|
|
94
|
+
key: a(f).SELECT,
|
|
95
|
+
disabled: ((l = E.value) == null ? void 0 : l.length) === 0
|
|
91
96
|
}, {
|
|
92
|
-
default:
|
|
93
|
-
|
|
97
|
+
default: r(() => [
|
|
98
|
+
b(p(a(i)("ap.apExportGroup.exportSelected")), 1)
|
|
94
99
|
]),
|
|
95
100
|
_: 1
|
|
96
101
|
}, 8, ["disabled"])),
|
|
97
|
-
(
|
|
98
|
-
key: a(
|
|
102
|
+
(v(), x(a(C), {
|
|
103
|
+
key: a(f).ALL
|
|
99
104
|
}, {
|
|
100
|
-
default:
|
|
101
|
-
|
|
105
|
+
default: r(() => [
|
|
106
|
+
b(p(a(i)("ap.apExportGroup.exportAll")), 1)
|
|
102
107
|
]),
|
|
103
108
|
_: 1
|
|
104
109
|
}))
|
|
@@ -107,26 +112,26 @@ const de = /* @__PURE__ */ T({
|
|
|
107
112
|
_: 1
|
|
108
113
|
})
|
|
109
114
|
]),
|
|
110
|
-
default:
|
|
111
|
-
|
|
115
|
+
default: r(() => [
|
|
116
|
+
g(a(J), O({
|
|
112
117
|
...t.$attrs
|
|
113
118
|
}, {
|
|
114
119
|
style: {
|
|
115
|
-
color:
|
|
120
|
+
color: G.value
|
|
116
121
|
},
|
|
117
|
-
loading:
|
|
122
|
+
loading: c.value
|
|
118
123
|
}), {
|
|
119
|
-
default:
|
|
120
|
-
|
|
121
|
-
|
|
124
|
+
default: r(() => [
|
|
125
|
+
b(p((e == null ? void 0 : e.text) ?? a(i)("ap.apExportGroup.export")) + " ", 1),
|
|
126
|
+
g(a(q))
|
|
122
127
|
]),
|
|
123
128
|
_: 1
|
|
124
129
|
}, 16, ["style", "loading"])
|
|
125
130
|
]),
|
|
126
131
|
_: 1
|
|
127
|
-
}, 8, ["class", "disabled"])) :
|
|
132
|
+
}, 8, ["class", "disabled"])) : V("", !0);
|
|
128
133
|
}
|
|
129
134
|
});
|
|
130
135
|
export {
|
|
131
|
-
|
|
136
|
+
fe as default
|
|
132
137
|
};
|
|
@@ -23,7 +23,9 @@ declare const __VLS_component: DefineComponent<GroupSearchProps, {}, {}, {}, {},
|
|
|
23
23
|
}>, {
|
|
24
24
|
dropdownMatchSelectWidth: number | boolean;
|
|
25
25
|
hasAll: boolean;
|
|
26
|
-
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
26
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
27
|
+
containerRef: HTMLDivElement;
|
|
28
|
+
}, HTMLDivElement>;
|
|
27
29
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
30
|
export default _default;
|
|
29
31
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as
|
|
1
|
+
import { defineComponent as P, ref as M, computed as c, onMounted as N, watch as O, unref as t, resolveComponent as R, openBlock as C, createElementBlock as D, normalizeClass as d, createVNode as p, withCtx as w, normalizeStyle as K, createBlock as F, createCommentVNode as T, renderSlot as $ } from "vue";
|
|
2
2
|
import { Flex as j, Select as E } from "@aplus-frontend/antdv";
|
|
3
3
|
import G from "./images/icon-down.vue.mjs";
|
|
4
4
|
import "./extension-select/index.vue.mjs";
|
|
@@ -85,6 +85,7 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
|
|
|
85
85
|
optionFilterProp: {},
|
|
86
86
|
optionLabelProp: {},
|
|
87
87
|
defaultActiveFirstOption: { type: Boolean },
|
|
88
|
+
onClickOption: {},
|
|
88
89
|
labelInValue: { type: Boolean },
|
|
89
90
|
hasAll: { type: Boolean, default: !0 },
|
|
90
91
|
style: {}
|
|
@@ -111,7 +112,7 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
|
|
|
111
112
|
return !o || o.length === 1 ? n : ((i = l.options) == null ? void 0 : i.filter((r) => o.includes(r.value)).map((r) => r.label).join("/")) || n;
|
|
112
113
|
});
|
|
113
114
|
N(() => {
|
|
114
|
-
|
|
115
|
+
O(
|
|
115
116
|
() => {
|
|
116
117
|
var e;
|
|
117
118
|
return [l.hasAll, (e = t(a)) == null ? void 0 : e.key];
|
|
@@ -141,31 +142,31 @@ const m = "GROUP_SEARCH_ALL", ne = /* @__PURE__ */ P({
|
|
|
141
142
|
});
|
|
142
143
|
}, { b: I, e: g, em: L } = W("ap-group-search");
|
|
143
144
|
return (e, o) => {
|
|
144
|
-
const n =
|
|
145
|
-
return
|
|
145
|
+
const n = R("Divider");
|
|
146
|
+
return C(), D("div", {
|
|
146
147
|
ref_key: "containerRef",
|
|
147
148
|
ref: y,
|
|
148
149
|
class: d(t(I)())
|
|
149
150
|
}, [
|
|
150
151
|
p(t(j), null, {
|
|
151
|
-
default:
|
|
152
|
+
default: w(() => {
|
|
152
153
|
var s, i;
|
|
153
154
|
return [
|
|
154
155
|
p(t(E), {
|
|
155
156
|
value: V.value,
|
|
156
|
-
style:
|
|
157
|
+
style: K(B.value),
|
|
157
158
|
class: d(`${e.$attrs.class} ${t(f) === "admin" ? t(L)("search", "admin") : t(g)("search")}`),
|
|
158
159
|
options: k.value,
|
|
159
160
|
bordered: !1,
|
|
160
161
|
"dropdown-match-select-width": l.dropdownMatchSelectWidth,
|
|
161
162
|
onChange: A
|
|
162
163
|
}, {
|
|
163
|
-
suffixIcon:
|
|
164
|
+
suffixIcon: w(() => [
|
|
164
165
|
p(G)
|
|
165
166
|
]),
|
|
166
167
|
_: 1
|
|
167
168
|
}, 8, ["value", "style", "class", "options", "dropdown-match-select-width"]),
|
|
168
|
-
t(f) === "aplus" ? (
|
|
169
|
+
t(f) === "aplus" ? (C(), F(n, {
|
|
169
170
|
key: 0,
|
|
170
171
|
class: d(t(g)("divider")),
|
|
171
172
|
type: "vertical",
|
|
@@ -8,5 +8,7 @@ declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOp
|
|
|
8
8
|
change: (value: SelectValue) => any;
|
|
9
9
|
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
10
|
onChange?: ((value: SelectValue) => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
11
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
12
|
+
containerRef: HTMLDivElement;
|
|
13
|
+
}, HTMLDivElement>;
|
|
12
14
|
export default _default;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as C, ref as a, computed as y, watch as w, openBlock as B, createElementBlock as _, createVNode as s, unref as l, normalizeClass as x, normalizeStyle as b, withCtx as S } from "vue";
|
|
2
2
|
import { Select as I } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../popover-select/index.vue.mjs";
|
|
4
4
|
import "../../../config-provider/index.mjs";
|
|
5
5
|
import { useGlobalConfig as R } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
6
6
|
import { useNamespace as V } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
7
7
|
import N from "../popover-select/index.vue2.mjs";
|
|
8
|
-
const
|
|
8
|
+
const F = /* @__PURE__ */ C({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
11
11
|
value: {},
|
|
@@ -80,13 +80,14 @@ const O = /* @__PURE__ */ y({
|
|
|
80
80
|
optionFilterProp: {},
|
|
81
81
|
optionLabelProp: {},
|
|
82
82
|
defaultActiveFirstOption: { type: Boolean },
|
|
83
|
+
onClickOption: {},
|
|
83
84
|
labelInValue: { type: Boolean },
|
|
84
85
|
__parentRef: {}
|
|
85
86
|
},
|
|
86
87
|
emits: ["change"],
|
|
87
88
|
setup(u, { emit: c }) {
|
|
88
|
-
const d = R("uiMode", "aplus"), o = u, r =
|
|
89
|
-
e && (
|
|
89
|
+
const d = R("uiMode", "aplus"), o = u, r = a(), n = a(), t = a(!1), m = y(() => o.__parentRef || r.value), f = c, h = (e) => {
|
|
90
|
+
e && (t.value = !1);
|
|
90
91
|
};
|
|
91
92
|
w(
|
|
92
93
|
() => o.value,
|
|
@@ -110,10 +111,10 @@ const O = /* @__PURE__ */ y({
|
|
|
110
111
|
mode: "tags",
|
|
111
112
|
"show-arrow": !0,
|
|
112
113
|
"not-found-content": !0,
|
|
113
|
-
open:
|
|
114
|
+
open: t.value,
|
|
114
115
|
"max-tag-count": o.maxTagCount,
|
|
115
116
|
placeholder: o.placeholder,
|
|
116
|
-
onDropdownVisibleChange: i[0] || (i[0] = (v) =>
|
|
117
|
+
onDropdownVisibleChange: i[0] || (i[0] = (v) => t.value = v),
|
|
117
118
|
onChange: p
|
|
118
119
|
}, {
|
|
119
120
|
suffixIcon: S(() => [
|
|
@@ -130,5 +131,5 @@ const O = /* @__PURE__ */ y({
|
|
|
130
131
|
}
|
|
131
132
|
});
|
|
132
133
|
export {
|
|
133
|
-
|
|
134
|
+
F as default
|
|
134
135
|
};
|