@aplus-frontend/ui 7.11.1 → 7.11.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/ag-grid/editable/utils.mjs +28 -22
- package/es/src/business/ap-copy/constans.mjs +1 -1
- package/es/src/business/ap-copy/style/index.mjs +1 -1
- package/es/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/es/src/business/ap-product-info/ApProductInfo.mjs +5 -5
- package/es/src/business/ap-product-info/constans.d.ts +4 -0
- package/es/src/business/ap-product-info/constans.mjs +4 -0
- package/es/src/business/ap-product-info/index.d.ts +15 -0
- package/es/src/business/ap-product-info/interface.d.ts +1 -0
- package/es/src/business/ap-product-info/style/index.mjs +2 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +36 -33
- package/es/src/business/ap-view/interface.d.ts +4 -0
- package/es/src/business/batch-input-group/form-item.vue.mjs +24 -22
- package/es/src/business/batch-input-group/index.vue.mjs +1 -1
- package/es/src/splitter/SplitBar.vue2.mjs +152 -112
- package/es/src/splitter/Splitter.vue2.mjs +67 -61
- package/es/src/splitter/hooks/useItems.d.ts +1 -0
- package/es/src/splitter/hooks/useItems.mjs +20 -16
- package/es/src/splitter/hooks/useResizable.d.ts +3 -0
- package/es/src/splitter/hooks/useResizable.mjs +50 -27
- package/es/src/splitter/interface.d.ts +12 -1
- package/es/src/splitter/style/index.mjs +51 -15
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/utils.js +1 -1
- package/lib/src/business/ap-copy/constans.js +1 -1
- package/lib/src/business/ap-copy/style/index.js +1 -1
- package/lib/src/business/ap-product-info/ApProductInfo.d.ts +9 -0
- package/lib/src/business/ap-product-info/ApProductInfo.js +1 -1
- package/lib/src/business/ap-product-info/constans.d.ts +4 -0
- package/lib/src/business/ap-product-info/constans.js +1 -1
- package/lib/src/business/ap-product-info/index.d.ts +15 -0
- package/lib/src/business/ap-product-info/interface.d.ts +1 -0
- package/lib/src/business/ap-product-info/style/index.js +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/interface.d.ts +4 -0
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +1 -1
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/splitter/hooks/useItems.d.ts +1 -0
- package/lib/src/splitter/hooks/useItems.js +1 -1
- package/lib/src/splitter/hooks/useResizable.d.ts +3 -0
- package/lib/src/splitter/hooks/useResizable.js +1 -1
- package/lib/src/splitter/interface.d.ts +12 -1
- package/lib/src/splitter/style/index.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -5
|
@@ -1,38 +1,44 @@
|
|
|
1
|
-
import { isString as
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { isString as s } from "lodash-unified";
|
|
2
|
+
import u from "../../ap-form/utils/set.mjs";
|
|
3
|
+
import { getFieldProps as c } from "../../ap-table/utils.mjs";
|
|
4
|
+
function i(n, t, r) {
|
|
4
5
|
if (r)
|
|
5
|
-
return
|
|
6
|
+
return s(r) ? n[r] : r(n, t);
|
|
6
7
|
}
|
|
7
|
-
function
|
|
8
|
+
function d(n, t) {
|
|
8
9
|
const r = {};
|
|
9
|
-
return
|
|
10
|
-
const f = i(e,
|
|
10
|
+
return n.forEach((e, o) => {
|
|
11
|
+
const f = i(e, o, t);
|
|
11
12
|
r[f] = e;
|
|
12
13
|
}), r;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
return
|
|
16
|
-
const f = i(e,
|
|
15
|
+
function g(n, t, r) {
|
|
16
|
+
return n.map((e, o) => {
|
|
17
|
+
const f = i(e, o, t);
|
|
17
18
|
return r[f] ?? e;
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
|
-
function
|
|
21
|
+
function h(n) {
|
|
21
22
|
let t = {};
|
|
22
23
|
function r(e) {
|
|
23
|
-
for (const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
24
|
+
for (const o of e)
|
|
25
|
+
if (o.children?.length)
|
|
26
|
+
r(o.children);
|
|
27
|
+
else {
|
|
28
|
+
const f = c(o.fieldProps, {});
|
|
29
|
+
f?.transform && (t = u(
|
|
30
|
+
t,
|
|
31
|
+
[o.dataIndex].flat(1),
|
|
32
|
+
f.transform,
|
|
33
|
+
!0
|
|
34
|
+
));
|
|
35
|
+
}
|
|
30
36
|
}
|
|
31
|
-
return r(
|
|
37
|
+
return r(n), t;
|
|
32
38
|
}
|
|
33
39
|
export {
|
|
34
|
-
|
|
35
|
-
|
|
40
|
+
d as arrayToObject,
|
|
41
|
+
h as getColumnTransformOptions,
|
|
36
42
|
i as getRowKey,
|
|
37
|
-
|
|
43
|
+
g as updateArrItem
|
|
38
44
|
};
|
|
@@ -21,6 +21,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
21
21
|
type: BooleanConstructor;
|
|
22
22
|
default: boolean;
|
|
23
23
|
};
|
|
24
|
+
showImg: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
24
28
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
25
29
|
title: {
|
|
26
30
|
type: StringConstructor;
|
|
@@ -42,11 +46,16 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
42
46
|
type: BooleanConstructor;
|
|
43
47
|
default: boolean;
|
|
44
48
|
};
|
|
49
|
+
showImg: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
45
53
|
}>> & Readonly<{}>, {
|
|
46
54
|
values: ApProductInfoValue[];
|
|
47
55
|
title: string;
|
|
48
56
|
preview: boolean;
|
|
49
57
|
disableCopy: boolean;
|
|
50
58
|
imgSrc: string;
|
|
59
|
+
showImg: boolean;
|
|
51
60
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
52
61
|
export default _default;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as f, h as t, createVNode as e, createTextVNode as v } from "vue";
|
|
2
|
-
import { Space as
|
|
2
|
+
import { Space as h, Tooltip as y } from "@aplus-frontend/antdv";
|
|
3
3
|
import { IconApAdFillWarn as g } from "@aplus-frontend/icon";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
5
|
import { ApCopy as s } from "../ap-copy/index.mjs";
|
|
6
6
|
import { ApImage as m } from "../ap-image/index.mjs";
|
|
7
7
|
import { ApProductInfoProps as k } from "./constans.mjs";
|
|
8
8
|
import b from "./style/index.mjs";
|
|
9
|
-
import { useNamespace as
|
|
9
|
+
import { useNamespace as w } from "../../config-provider/hooks/use-namespace.mjs";
|
|
10
10
|
const T = /* @__PURE__ */ f({
|
|
11
11
|
name: "ApProductInfo",
|
|
12
12
|
props: k(),
|
|
@@ -15,11 +15,11 @@ const T = /* @__PURE__ */ f({
|
|
|
15
15
|
b: i,
|
|
16
16
|
e: o,
|
|
17
17
|
m: a
|
|
18
|
-
} =
|
|
18
|
+
} = w("ap-product-info"), c = b("ap-product-info"), p = (l) => typeof l.value == "function" ? l.value() : l.helpMessage ? t(h.Compact, {}, [t(s, {
|
|
19
19
|
text: l.value,
|
|
20
20
|
link: l.link,
|
|
21
21
|
textStyle: l.link ? "link" : "minor"
|
|
22
|
-
}), t(
|
|
22
|
+
}), t(y, {
|
|
23
23
|
placement: "top",
|
|
24
24
|
color: l.toolTipBgColor,
|
|
25
25
|
title: typeof l.helpMessage == "string" ? l.helpMessage : t(l.helpMessage)
|
|
@@ -36,7 +36,7 @@ const T = /* @__PURE__ */ f({
|
|
|
36
36
|
}, l.value);
|
|
37
37
|
return () => e("div", {
|
|
38
38
|
class: [i(), c.value]
|
|
39
|
-
}, [e("div", {
|
|
39
|
+
}, [r.showImg && e("div", {
|
|
40
40
|
class: o("img")
|
|
41
41
|
}, [e(m, {
|
|
42
42
|
src: r.imgSrc,
|
|
@@ -23,12 +23,17 @@ declare const ApProductInfo: {
|
|
|
23
23
|
type: BooleanConstructor;
|
|
24
24
|
default: boolean;
|
|
25
25
|
};
|
|
26
|
+
showImg: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
26
30
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
27
31
|
values: ApProductInfoValue[];
|
|
28
32
|
title: string;
|
|
29
33
|
preview: boolean;
|
|
30
34
|
disableCopy: boolean;
|
|
31
35
|
imgSrc: string;
|
|
36
|
+
showImg: boolean;
|
|
32
37
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
33
38
|
P: {};
|
|
34
39
|
B: {};
|
|
@@ -57,12 +62,17 @@ declare const ApProductInfo: {
|
|
|
57
62
|
type: BooleanConstructor;
|
|
58
63
|
default: boolean;
|
|
59
64
|
};
|
|
65
|
+
showImg: {
|
|
66
|
+
type: BooleanConstructor;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
60
69
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
61
70
|
values: ApProductInfoValue[];
|
|
62
71
|
title: string;
|
|
63
72
|
preview: boolean;
|
|
64
73
|
disableCopy: boolean;
|
|
65
74
|
imgSrc: string;
|
|
75
|
+
showImg: boolean;
|
|
66
76
|
}>;
|
|
67
77
|
__isFragment?: never;
|
|
68
78
|
__isTeleport?: never;
|
|
@@ -88,12 +98,17 @@ declare const ApProductInfo: {
|
|
|
88
98
|
type: BooleanConstructor;
|
|
89
99
|
default: boolean;
|
|
90
100
|
};
|
|
101
|
+
showImg: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
91
105
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
92
106
|
values: ApProductInfoValue[];
|
|
93
107
|
title: string;
|
|
94
108
|
preview: boolean;
|
|
95
109
|
disableCopy: boolean;
|
|
96
110
|
imgSrc: string;
|
|
111
|
+
showImg: boolean;
|
|
97
112
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
98
113
|
$props: {
|
|
99
114
|
onClick?: () => void;
|
|
@@ -36,7 +36,8 @@ const De = /* @__PURE__ */ U({
|
|
|
36
36
|
type: Boolean,
|
|
37
37
|
default: !1
|
|
38
38
|
},
|
|
39
|
-
emptyData: {}
|
|
39
|
+
emptyData: {},
|
|
40
|
+
extraParams: {}
|
|
40
41
|
},
|
|
41
42
|
setup(I, {
|
|
42
43
|
expose: N
|
|
@@ -49,15 +50,15 @@ const De = /* @__PURE__ */ U({
|
|
|
49
50
|
viewKey: c,
|
|
50
51
|
viewName: O("ap.apView.systemView")
|
|
51
52
|
})), {
|
|
52
|
-
getSearchFormValues:
|
|
53
|
-
setSearchFormValues:
|
|
53
|
+
getSearchFormValues: x,
|
|
54
|
+
setSearchFormValues: L,
|
|
54
55
|
submit: B,
|
|
55
|
-
reset:
|
|
56
|
-
submitWith:
|
|
57
|
-
getSearchFormSorterItems:
|
|
58
|
-
setSearchFormSorterItems:
|
|
56
|
+
reset: P,
|
|
57
|
+
submitWith: E,
|
|
58
|
+
getSearchFormSorterItems: k,
|
|
59
|
+
setSearchFormSorterItems: A,
|
|
59
60
|
resetSearchFormSorterItems: T
|
|
60
|
-
} = X(), W = y(!1), S = y(!1),
|
|
61
|
+
} = X(), W = y(!1), S = y(!1), p = y("");
|
|
61
62
|
let f = !1, g = !1;
|
|
62
63
|
const j = {
|
|
63
64
|
dropdownType: "dropdown",
|
|
@@ -70,26 +71,28 @@ const De = /* @__PURE__ */ U({
|
|
|
70
71
|
view: t
|
|
71
72
|
}, null)
|
|
72
73
|
}))), r = {
|
|
73
|
-
getSearchFormValues:
|
|
74
|
-
setSearchFormValues:
|
|
74
|
+
getSearchFormValues: x,
|
|
75
|
+
setSearchFormValues: L,
|
|
75
76
|
submit: B,
|
|
76
|
-
reset:
|
|
77
|
-
submitWith:
|
|
78
|
-
getSearchFormSorterItems:
|
|
79
|
-
setSearchFormSorterItems:
|
|
77
|
+
reset: P,
|
|
78
|
+
submitWith: E,
|
|
79
|
+
getSearchFormSorterItems: k,
|
|
80
|
+
setSearchFormSorterItems: A,
|
|
80
81
|
resetSearchFormSorterItems: T,
|
|
81
82
|
...s.saveDataSource
|
|
82
|
-
},
|
|
83
|
+
}, v = {
|
|
83
84
|
..._.value,
|
|
84
85
|
...s.viewCacheOption
|
|
85
|
-
}, D = () => s.isDefaultSystemView ? c : (s.isFirstDefaultSystemView || g) && f ? c : i.value.find((a) => a.isDefault)?.viewKey ?? c,
|
|
86
|
-
|
|
87
|
-
const a = i.value.find((e) => e.viewKey ===
|
|
86
|
+
}, D = () => s.isDefaultSystemView ? c : (s.isFirstDefaultSystemView || g) && f ? c : i.value.find((a) => a.isDefault)?.viewKey ?? c, m = (t) => {
|
|
87
|
+
p.value = t;
|
|
88
|
+
const a = i.value.find((e) => e.viewKey === p.value);
|
|
88
89
|
a && setTimeout(() => {
|
|
89
90
|
a.viewKey === c ? f ? s.manual || r?.submitWith?.() : s.manual || (r?.resetSearchFormSorterItems?.(), r?.reset?.()) : (r?.setSearchFormValues?.({
|
|
90
91
|
...Object.fromEntries(Object.keys(r?.getSearchFormValues?.() ?? {}).map((e) => [e, void 0])) ?? {},
|
|
91
92
|
...s?.emptyData ?? {},
|
|
92
|
-
...r?.getSearchFormSorterItems?.()
|
|
93
|
+
...[...r?.getSearchFormSorterItems?.() ?? [], ...s?.extraParams?.map((e) => ({
|
|
94
|
+
name: e
|
|
95
|
+
})) ?? []].reduce((e, o) => (a.viewConfig?.searchForm?.[o.name] && (e[o.name] = a.viewConfig?.searchForm?.[o.name]), e), {}) ?? {}
|
|
93
96
|
}), r?.setSearchFormSorterItems?.(a.viewConfig?.sorterItems ?? []), f ? s.manual || r?.submitWith?.() : r?.submit?.()), f = !1;
|
|
94
97
|
});
|
|
95
98
|
}, C = {
|
|
@@ -97,12 +100,12 @@ const De = /* @__PURE__ */ U({
|
|
|
97
100
|
try {
|
|
98
101
|
const {
|
|
99
102
|
tableKey: a
|
|
100
|
-
} = t, e = await
|
|
103
|
+
} = t, e = await v?.getViewList?.({
|
|
101
104
|
tableKey: a
|
|
102
105
|
});
|
|
103
|
-
return i.value = [V.value, ...e ?? []],
|
|
106
|
+
return i.value = [V.value, ...e ?? []], m(D()), i.value;
|
|
104
107
|
} catch {
|
|
105
|
-
return i.value = [V.value],
|
|
108
|
+
return i.value = [V.value], m(c), i.value;
|
|
106
109
|
}
|
|
107
110
|
},
|
|
108
111
|
addView: async (t) => {
|
|
@@ -113,21 +116,21 @@ const De = /* @__PURE__ */ U({
|
|
|
113
116
|
isDefault: n,
|
|
114
117
|
viewConfig: w
|
|
115
118
|
} = t;
|
|
116
|
-
await
|
|
119
|
+
await v?.addView?.({
|
|
117
120
|
tableKey: a,
|
|
118
121
|
viewKey: e,
|
|
119
122
|
viewName: o,
|
|
120
123
|
isDefault: n,
|
|
121
124
|
viewConfig: w
|
|
122
|
-
}), n && (i.value = i.value.map((
|
|
123
|
-
...
|
|
125
|
+
}), n && (i.value = i.value.map((l) => ({
|
|
126
|
+
...l,
|
|
124
127
|
isDefault: !1
|
|
125
128
|
}))), i.value = [...i.value, {
|
|
126
129
|
viewKey: e,
|
|
127
130
|
viewName: o,
|
|
128
131
|
isDefault: n,
|
|
129
132
|
viewConfig: w
|
|
130
|
-
}],
|
|
133
|
+
}], m(e);
|
|
131
134
|
},
|
|
132
135
|
changeView: async (t) => {
|
|
133
136
|
const {
|
|
@@ -137,7 +140,7 @@ const De = /* @__PURE__ */ U({
|
|
|
137
140
|
isDefault: n,
|
|
138
141
|
viewConfig: w
|
|
139
142
|
} = t;
|
|
140
|
-
await
|
|
143
|
+
await v?.changeView?.({
|
|
141
144
|
tableKey: a,
|
|
142
145
|
viewKey: e,
|
|
143
146
|
viewName: o,
|
|
@@ -147,23 +150,23 @@ const De = /* @__PURE__ */ U({
|
|
|
147
150
|
...h,
|
|
148
151
|
isDefault: !1
|
|
149
152
|
})));
|
|
150
|
-
const
|
|
151
|
-
|
|
153
|
+
const l = i.value.find((h) => h.viewKey === e);
|
|
154
|
+
l && (l.viewName = o, l.isDefault = n, l.viewConfig = w), m(e);
|
|
152
155
|
},
|
|
153
156
|
removeView: async (t) => {
|
|
154
157
|
const {
|
|
155
158
|
tableKey: a,
|
|
156
159
|
viewKey: e
|
|
157
160
|
} = t;
|
|
158
|
-
await
|
|
161
|
+
await v?.removeView?.({
|
|
159
162
|
tableKey: a,
|
|
160
163
|
viewKey: e
|
|
161
|
-
}), i.value = i.value.filter((o) => o.viewKey !== e), e ===
|
|
164
|
+
}), i.value = i.value.filter((o) => o.viewKey !== e), e === p.value && m(D());
|
|
162
165
|
}
|
|
163
166
|
}, $ = {
|
|
164
167
|
tableKey: s.tableKey,
|
|
165
|
-
currentViewKey:
|
|
166
|
-
changeCurrentViewKey:
|
|
168
|
+
currentViewKey: p,
|
|
169
|
+
changeCurrentViewKey: m,
|
|
167
170
|
popoverOpen: W,
|
|
168
171
|
menuOpen: S,
|
|
169
172
|
viewList: i,
|
|
@@ -86,6 +86,10 @@ export interface ApViewProps {
|
|
|
86
86
|
* 表单项为空时的状态数据,适用于为空时其值不为undefined的情况
|
|
87
87
|
*/
|
|
88
88
|
emptyData?: Recordable;
|
|
89
|
+
/**
|
|
90
|
+
* 视图额外需要被设置的参数Key
|
|
91
|
+
*/
|
|
92
|
+
extraParams?: string[];
|
|
89
93
|
}
|
|
90
94
|
export interface ApViewExpose {
|
|
91
95
|
setFirstDefaultSystemView: (value: boolean) => void;
|
|
@@ -59,26 +59,28 @@ const P = /* @__PURE__ */ m({
|
|
|
59
59
|
defaultSelectedAllKey: { type: Boolean }
|
|
60
60
|
},
|
|
61
61
|
setup(d) {
|
|
62
|
-
const
|
|
62
|
+
const e = d, { internalInstance: s } = b(), u = a(() => e?.transform || {
|
|
63
63
|
flat: !1,
|
|
64
|
-
transformer: (
|
|
65
|
-
if (
|
|
66
|
-
return !
|
|
67
|
-
...
|
|
68
|
-
value:
|
|
69
|
-
} :
|
|
64
|
+
transformer: (l) => {
|
|
65
|
+
if (l)
|
|
66
|
+
return !l?.value || l?.value?.length < 1 ? void 0 : e?.field?.options ? {
|
|
67
|
+
...l,
|
|
68
|
+
value: l?.value?.filter((t) => i(t?.trim()))?.map((t) => e.trim ? t?.trim() : t)
|
|
69
|
+
} : l?.value?.filter((t) => i(t?.trim()))?.map((t) => e.trim ? t?.trim() : t);
|
|
70
70
|
}
|
|
71
|
-
}),
|
|
72
|
-
if (
|
|
73
|
-
return
|
|
74
|
-
const
|
|
75
|
-
if (!B(
|
|
76
|
-
return {
|
|
77
|
-
key:
|
|
71
|
+
}), f = a(() => e.field?.style || "width:auto"), p = a(() => {
|
|
72
|
+
if (e.initialValue)
|
|
73
|
+
return e.initialValue;
|
|
74
|
+
const l = s?.getInitialValues();
|
|
75
|
+
if (!B(l, e.name))
|
|
76
|
+
return e.field.hasAll === !1 ? {
|
|
77
|
+
key: [e?.field?.options?.[0]?.value]
|
|
78
|
+
} : {
|
|
79
|
+
key: e?.field?.options?.map((t) => t.value)
|
|
78
80
|
};
|
|
79
81
|
});
|
|
80
|
-
return (
|
|
81
|
-
r(n)(
|
|
82
|
+
return (l, t) => (v(), c(g, o(
|
|
83
|
+
r(n)(e, [
|
|
82
84
|
"field",
|
|
83
85
|
"initialValue",
|
|
84
86
|
"transform",
|
|
@@ -86,16 +88,16 @@ const P = /* @__PURE__ */ m({
|
|
|
86
88
|
"disabled"
|
|
87
89
|
]),
|
|
88
90
|
{
|
|
89
|
-
"initial-value":
|
|
91
|
+
"initial-value": p.value,
|
|
90
92
|
transform: u.value,
|
|
91
|
-
bordered:
|
|
93
|
+
bordered: l.field?.options?.length ? !1 : l.bordered
|
|
92
94
|
}
|
|
93
95
|
), {
|
|
94
96
|
default: y(() => [
|
|
95
|
-
h(V, o(r(n)(
|
|
96
|
-
style:
|
|
97
|
-
disabled:
|
|
98
|
-
placeholer:
|
|
97
|
+
h(V, o(r(n)(e.field, ["style"]), {
|
|
98
|
+
style: f.value,
|
|
99
|
+
disabled: l.disabled,
|
|
100
|
+
placeholer: l.placeholer
|
|
99
101
|
}), null, 16, ["style", "disabled", "placeholer"])
|
|
100
102
|
]),
|
|
101
103
|
_: 1
|
|
@@ -97,7 +97,7 @@ const d = "GROUP_SEARCH_ALL", Ve = /* @__PURE__ */ $({
|
|
|
97
97
|
return e.length === 1 || !o.hasAll ? e[0] : d;
|
|
98
98
|
}), L = r(() => {
|
|
99
99
|
const e = t(a)?.key;
|
|
100
|
-
return !e || e?.length <= 1 ? t(I) : (o.options || []).filter((n) => e.includes(n.value)).map((n) => n.label).join("/");
|
|
100
|
+
return !e || e?.length <= 1 || o.hasAll === !1 ? t(I) : (o.options || []).filter((n) => e.includes(n.value)).map((n) => n.label).join("/");
|
|
101
101
|
});
|
|
102
102
|
function O(e) {
|
|
103
103
|
const l = t(a) || {}, n = e === d ? t(R) : oe(e) ? [e] : [];
|