@aplus-frontend/ui 0.2.17 → 0.2.18
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.
|
@@ -1,67 +1,83 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { Button as
|
|
1
|
+
import { defineComponent as k, useSlots as N, computed as V, ref as $, watch as x, openBlock as d, createElementBlock as C, normalizeClass as v, unref as c, renderSlot as A, createCommentVNode as P, createElementVNode as u, createTextVNode as S, toDisplayString as m, createVNode as D, withCtx as E } from "vue";
|
|
2
|
+
import { Button as K } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import { usePermission as L } from "@aplus-frontend/hooks";
|
|
5
|
+
import { useNamespace as R } from "../../config-provider/hooks/use-namespace.mjs";
|
|
6
|
+
import { useLocale as z } from "../../config-provider/hooks/use-locale.mjs";
|
|
7
|
+
const F = { class: "selected-desc" }, H = { class: "selected-desc-conut" }, O = { class: "selected-desc-clean" }, M = /* @__PURE__ */ k({
|
|
7
8
|
__name: "ApBatchAction",
|
|
8
9
|
props: {
|
|
9
10
|
selectedRowKeys: {},
|
|
10
11
|
clearAll: { type: Function }
|
|
11
12
|
},
|
|
12
|
-
setup(
|
|
13
|
-
const { b:
|
|
14
|
-
var
|
|
15
|
-
return ((
|
|
16
|
-
}),
|
|
17
|
-
return
|
|
18
|
-
() =>
|
|
13
|
+
setup(b) {
|
|
14
|
+
const { b: f } = R("ap-batch-action"), { t: h } = z(), y = b, { hasPermission: w } = L(), l = N(), g = V(() => {
|
|
15
|
+
var s;
|
|
16
|
+
return ((s = y.selectedRowKeys) == null ? void 0 : s.length) || 0;
|
|
17
|
+
}), B = $(!1);
|
|
18
|
+
return x(
|
|
19
|
+
() => l.header,
|
|
19
20
|
() => {
|
|
20
|
-
var
|
|
21
|
-
const
|
|
22
|
-
|
|
23
|
-
(
|
|
24
|
-
|
|
21
|
+
var p;
|
|
22
|
+
const s = (p = l == null ? void 0 : l.header) == null ? void 0 : p.call(l);
|
|
23
|
+
B.value = Array.isArray(s) && s.filter(Boolean).filter(
|
|
24
|
+
(t) => (
|
|
25
|
+
// 兼容 v-if 和 空标签
|
|
26
|
+
t.type !== Symbol.for("v-cmt") && t.type !== Symbol.for("v-fgt")
|
|
27
|
+
)
|
|
28
|
+
).filter((t) => {
|
|
29
|
+
var i, e, a, _;
|
|
30
|
+
const o = ((i = t == null ? void 0 : t.props) == null ? void 0 : i["if-show"]) ?? ((e = t == null ? void 0 : t.props) == null ? void 0 : e.ifShow), n = (a = t == null ? void 0 : t.props) == null ? void 0 : a.auth;
|
|
31
|
+
let r = o;
|
|
32
|
+
return !((_ = t == null ? void 0 : t.props) != null && _.ifShow) && n && (r = () => w(n)), (r == null ? void 0 : r()) ?? !0;
|
|
33
|
+
}).filter((t) => {
|
|
34
|
+
var r, i;
|
|
35
|
+
const o = ((r = t == null ? void 0 : t.props) == null ? void 0 : r["menu-list"]) ?? ((i = t == null ? void 0 : t.props) == null ? void 0 : i.menuList), n = (o == null ? void 0 : o.filter((e) => {
|
|
36
|
+
let a = e == null ? void 0 : e.ifShow;
|
|
37
|
+
return !(e != null && e.ifShow) && (e != null && e.auth) && (a = () => w(e.auth)), (a == null ? void 0 : a()) ?? !0;
|
|
38
|
+
})) || [];
|
|
39
|
+
return o === void 0 ? !0 : n.length > 0;
|
|
40
|
+
}).length > 0;
|
|
25
41
|
},
|
|
26
42
|
{
|
|
27
43
|
immediate: !0
|
|
28
44
|
}
|
|
29
|
-
), (
|
|
30
|
-
class:
|
|
45
|
+
), (s, p) => (d(), C("div", {
|
|
46
|
+
class: v([c(f)()])
|
|
31
47
|
}, [
|
|
32
|
-
|
|
48
|
+
B.value ? (d(), C("div", {
|
|
33
49
|
key: 0,
|
|
34
|
-
class:
|
|
50
|
+
class: v(c(f)("header"))
|
|
35
51
|
}, [
|
|
36
|
-
|
|
37
|
-
], 2)) :
|
|
38
|
-
|
|
39
|
-
class:
|
|
52
|
+
A(s.$slots, "header")
|
|
53
|
+
], 2)) : P("", !0),
|
|
54
|
+
u("div", {
|
|
55
|
+
class: v(c(f)("body"))
|
|
40
56
|
}, [
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
m(c(
|
|
45
|
-
|
|
46
|
-
|
|
57
|
+
A(s.$slots, "prefix"),
|
|
58
|
+
u("div", F, [
|
|
59
|
+
u("div", H, [
|
|
60
|
+
S(m(c(h)("ap.apBatchAction.selected")) + " ", 1),
|
|
61
|
+
u("span", null, m(g.value), 1),
|
|
62
|
+
S(" " + m(c(h)("ap.apBatchAction.piecesOfData")), 1)
|
|
47
63
|
]),
|
|
48
|
-
|
|
49
|
-
|
|
64
|
+
u("div", O, [
|
|
65
|
+
D(c(K), {
|
|
50
66
|
type: "link",
|
|
51
|
-
onClick:
|
|
67
|
+
onClick: p[0] || (p[0] = (t) => y.clearAll && y.clearAll())
|
|
52
68
|
}, {
|
|
53
|
-
default:
|
|
54
|
-
m(c(
|
|
69
|
+
default: E(() => [
|
|
70
|
+
S(m(c(h)("ap.apBatchAction.empty")), 1)
|
|
55
71
|
]),
|
|
56
72
|
_: 1
|
|
57
73
|
})
|
|
58
74
|
])
|
|
59
75
|
]),
|
|
60
|
-
|
|
76
|
+
A(s.$slots, "suffix")
|
|
61
77
|
], 2)
|
|
62
78
|
], 2));
|
|
63
79
|
}
|
|
64
80
|
});
|
|
65
81
|
export {
|
|
66
|
-
|
|
82
|
+
M as default
|
|
67
83
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as P, ref as g, computed as u, unref as o, openBlock as B, createElementBlock as T, createVNode as s, withCtx as A, createBlock as z, normalizeStyle as F, createCommentVNode as K, mergeProps as $ } from "vue";
|
|
2
2
|
import "../../ap-field/index.mjs";
|
|
3
|
-
import { Space as
|
|
3
|
+
import { Space as D } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { omit as
|
|
5
|
+
import { omit as G } from "lodash-unified";
|
|
6
6
|
import "./popover-input/index.vue.mjs";
|
|
7
7
|
import "../../hooks/index.mjs";
|
|
8
|
-
import { isDef as
|
|
9
|
-
import { useDefaultPlaceholder as
|
|
10
|
-
import { useControllableValue as
|
|
11
|
-
import { useLocale as
|
|
12
|
-
import
|
|
13
|
-
import { ApFieldText as
|
|
14
|
-
import
|
|
15
|
-
const
|
|
8
|
+
import { isDef as N } from "../../utils/index.mjs";
|
|
9
|
+
import { useDefaultPlaceholder as q } from "../../ap-field/hooks/use-default-placeholder.mjs";
|
|
10
|
+
import { useControllableValue as H } from "../../hooks/useControllableValue.mjs";
|
|
11
|
+
import { useLocale as M } from "../../config-provider/hooks/use-locale.mjs";
|
|
12
|
+
import Y from "../../ap-field/select/index.vue.mjs";
|
|
13
|
+
import { ApFieldText as J } from "../../ap-field/text/index.mjs";
|
|
14
|
+
import Q from "./popover-input/index.vue2.mjs";
|
|
15
|
+
const c = "GROUP_SEARCH_ALL", ce = /* @__PURE__ */ P({
|
|
16
16
|
__name: "index",
|
|
17
17
|
props: {
|
|
18
18
|
style: { type: [Boolean, null, String, Object, Array] },
|
|
@@ -65,89 +65,91 @@ const s = "GROUP_SEARCH_ALL", re = /* @__PURE__ */ k({
|
|
|
65
65
|
emptyText: { default: "--" }
|
|
66
66
|
},
|
|
67
67
|
emits: ["update:value"],
|
|
68
|
-
setup(
|
|
69
|
-
const n =
|
|
68
|
+
setup(_, { emit: V }) {
|
|
69
|
+
const n = _, x = q("Text", n), C = V, { value: a, updateValue: i } = H(
|
|
70
70
|
n,
|
|
71
|
-
|
|
72
|
-
),
|
|
73
|
-
{ value:
|
|
71
|
+
C
|
|
72
|
+
), f = g(), d = g(), { t: S } = M(), b = u(() => n.options ? n.options.length > 1 && n.hasAll ? [
|
|
73
|
+
{ value: c, label: S("ap.apGroupSearch.all") },
|
|
74
74
|
...n.options
|
|
75
|
-
] : n.options : []),
|
|
75
|
+
] : n.options : []), I = u(() => n.options ? n.options.map((e) => e.value) : []), U = u(() => {
|
|
76
76
|
var e, t;
|
|
77
|
-
return (t = (e =
|
|
78
|
-
}),
|
|
77
|
+
return (t = (e = o(a)) == null ? void 0 : e.value) != null && t.length ? o(a).value.join(",") : "";
|
|
78
|
+
}), k = u(() => {
|
|
79
79
|
var e, t;
|
|
80
|
-
return (t = (e =
|
|
80
|
+
return (t = (e = o(a)) == null ? void 0 : e.value) != null && t.length ? o(a).value.join(`
|
|
81
81
|
`) : "";
|
|
82
|
-
}),
|
|
82
|
+
}), w = u(() => {
|
|
83
83
|
var t;
|
|
84
|
-
const e = (t =
|
|
84
|
+
const e = (t = o(a)) == null ? void 0 : t.key;
|
|
85
85
|
if (e != null && e.length)
|
|
86
|
-
return e.length === 1 ? e[0] :
|
|
87
|
-
}),
|
|
88
|
-
var
|
|
89
|
-
const e = (
|
|
90
|
-
return !e || (e == null ? void 0 : e.length) <= 1 ?
|
|
86
|
+
return e.length === 1 ? e[0] : c;
|
|
87
|
+
}), R = u(() => {
|
|
88
|
+
var l;
|
|
89
|
+
const e = (l = o(a)) == null ? void 0 : l.key;
|
|
90
|
+
return !e || (e == null ? void 0 : e.length) <= 1 ? o(x) : (n.options || []).filter((r) => e.includes(r.value)).map((r) => r.label).join("/");
|
|
91
91
|
});
|
|
92
|
-
function
|
|
93
|
-
const t =
|
|
92
|
+
function j(e) {
|
|
93
|
+
const t = o(a) || {}, l = e === c ? o(I) : N(e) ? [e] : [];
|
|
94
94
|
i({
|
|
95
95
|
...t,
|
|
96
|
-
key:
|
|
96
|
+
key: l
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
99
|
+
function E(e) {
|
|
100
|
+
var v, y;
|
|
101
|
+
const t = o(a) || {}, l = e.target.value || "", r = l.replace(/[,]+/g, ",");
|
|
102
|
+
if (l !== r) {
|
|
103
|
+
const h = (y = (v = d.value) == null ? void 0 : v.$el) == null ? void 0 : y.querySelector("input");
|
|
104
|
+
h && (h.value = r);
|
|
105
|
+
}
|
|
106
|
+
let p = r.split(",");
|
|
107
|
+
p.length === 1 && p[0] === "" && (p = []), i({
|
|
106
108
|
...t,
|
|
107
|
-
value:
|
|
109
|
+
value: p
|
|
108
110
|
});
|
|
109
111
|
}
|
|
110
|
-
function
|
|
111
|
-
const t =
|
|
112
|
-
let
|
|
112
|
+
function L(e) {
|
|
113
|
+
const t = o(a) || {};
|
|
114
|
+
let l = e.split(/,|\n/);
|
|
113
115
|
i({
|
|
114
116
|
...t,
|
|
115
|
-
value:
|
|
117
|
+
value: l
|
|
116
118
|
});
|
|
117
119
|
}
|
|
118
|
-
function
|
|
119
|
-
var
|
|
120
|
-
const e =
|
|
120
|
+
function m() {
|
|
121
|
+
var l;
|
|
122
|
+
const e = o(a) || {}, t = (l = e.value) == null ? void 0 : l.filter(Boolean);
|
|
121
123
|
i({
|
|
122
124
|
...e,
|
|
123
125
|
value: t
|
|
124
126
|
});
|
|
125
127
|
}
|
|
126
|
-
function
|
|
128
|
+
function O(e) {
|
|
127
129
|
var t;
|
|
128
|
-
|
|
130
|
+
m(), (t = n.onBlur) == null || t.call(n, e);
|
|
129
131
|
}
|
|
130
|
-
return (e, t) => (
|
|
132
|
+
return (e, t) => (B(), T("div", {
|
|
131
133
|
ref_key: "containerRef",
|
|
132
|
-
ref:
|
|
134
|
+
ref: f,
|
|
133
135
|
style: { position: "relative" }
|
|
134
136
|
}, [
|
|
135
|
-
|
|
136
|
-
default:
|
|
137
|
-
var
|
|
137
|
+
s(o(D).Compact, { block: "" }, {
|
|
138
|
+
default: A(() => {
|
|
139
|
+
var l;
|
|
138
140
|
return [
|
|
139
|
-
(
|
|
141
|
+
(l = e.options) != null && l.length ? (B(), z(o(Y), {
|
|
140
142
|
key: 0,
|
|
141
|
-
style:
|
|
142
|
-
options:
|
|
143
|
-
value:
|
|
144
|
-
"onUpdate:value":
|
|
143
|
+
style: F(e.style),
|
|
144
|
+
options: b.value,
|
|
145
|
+
value: w.value,
|
|
146
|
+
"onUpdate:value": j,
|
|
145
147
|
"allow-clear": !1,
|
|
146
148
|
"dropdown-match-select-width": !1
|
|
147
|
-
}, null, 8, ["style", "options", "value"])) :
|
|
148
|
-
|
|
149
|
+
}, null, 8, ["style", "options", "value"])) : K("", !0),
|
|
150
|
+
s(o(J), $(
|
|
149
151
|
{ style: e.inputStyle },
|
|
150
|
-
|
|
152
|
+
o(G)(n, [
|
|
151
153
|
"style",
|
|
152
154
|
"value",
|
|
153
155
|
"onUpdate:value",
|
|
@@ -156,18 +158,20 @@ const s = "GROUP_SEARCH_ALL", re = /* @__PURE__ */ k({
|
|
|
156
158
|
"options"
|
|
157
159
|
]),
|
|
158
160
|
{
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
161
|
+
ref_key: "inputRef",
|
|
162
|
+
ref: d,
|
|
163
|
+
value: U.value,
|
|
164
|
+
onInput: E,
|
|
165
|
+
onBlur: O,
|
|
166
|
+
placeholder: R.value
|
|
163
167
|
}
|
|
164
168
|
), {
|
|
165
|
-
suffix:
|
|
166
|
-
|
|
167
|
-
_parent:
|
|
168
|
-
value:
|
|
169
|
-
"onUpdate:value":
|
|
170
|
-
onClose:
|
|
169
|
+
suffix: A(() => [
|
|
170
|
+
s(Q, {
|
|
171
|
+
_parent: f.value,
|
|
172
|
+
value: k.value,
|
|
173
|
+
"onUpdate:value": L,
|
|
174
|
+
onClose: m
|
|
171
175
|
}, null, 8, ["_parent", "value"])
|
|
172
176
|
]),
|
|
173
177
|
_: 1
|
|
@@ -180,5 +184,5 @@ const s = "GROUP_SEARCH_ALL", re = /* @__PURE__ */ k({
|
|
|
180
184
|
}
|
|
181
185
|
});
|
|
182
186
|
export {
|
|
183
|
-
|
|
187
|
+
ce as default
|
|
184
188
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),N=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const g=require("@aplus-frontend/hooks"),A=require("../../config-provider/hooks/use-namespace.js"),B=require("../../config-provider/hooks/use-locale.js"),V={class:"selected-desc"},_={class:"selected-desc-conut"},k={class:"selected-desc-clean"},w=e.defineComponent({__name:"ApBatchAction",props:{selectedRowKeys:{},clearAll:{type:Function}},setup(v){const{b:p}=A.useNamespace("ap-batch-action"),{t:f}=B.useLocale(),m=v,{hasPermission:h}=g.usePermission(),c=e.useSlots(),S=e.computed(()=>{var s;return((s=m.selectedRowKeys)==null?void 0:s.length)||0}),d=e.ref(!1);return e.watch(()=>c.header,()=>{var n;const s=(n=c==null?void 0:c.header)==null?void 0:n.call(c);d.value=Array.isArray(s)&&s.filter(Boolean).filter(t=>t.type!==Symbol.for("v-cmt")&&t.type!==Symbol.for("v-fgt")).filter(t=>{var u,r,l,y;const o=((u=t==null?void 0:t.props)==null?void 0:u["if-show"])??((r=t==null?void 0:t.props)==null?void 0:r.ifShow),i=(l=t==null?void 0:t.props)==null?void 0:l.auth;let a=o;return!((y=t==null?void 0:t.props)!=null&&y.ifShow)&&i&&(a=()=>h(i)),(a==null?void 0:a())??!0}).filter(t=>{var a,u;const o=((a=t==null?void 0:t.props)==null?void 0:a["menu-list"])??((u=t==null?void 0:t.props)==null?void 0:u.menuList),i=(o==null?void 0:o.filter(r=>{let l=r==null?void 0:r.ifShow;return!(r!=null&&r.ifShow)&&(r!=null&&r.auth)&&(l=()=>h(r.auth)),(l==null?void 0:l())??!0}))||[];return o===void 0?!0:i.length>0}).length>0},{immediate:!0}),(s,n)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([e.unref(p)()])},[d.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(p)("header"))},[e.renderSlot(s.$slots,"header")],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)("body"))},[e.renderSlot(s.$slots,"prefix"),e.createElementVNode("div",V,[e.createElementVNode("div",_,[e.createTextVNode(e.toDisplayString(e.unref(f)("ap.apBatchAction.selected"))+" ",1),e.createElementVNode("span",null,e.toDisplayString(S.value),1),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("ap.apBatchAction.piecesOfData")),1)]),e.createElementVNode("div",k,[e.createVNode(e.unref(N.Button),{type:"link",onClick:n[0]||(n[0]=t=>m.clearAll&&m.clearAll())},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("ap.apBatchAction.empty")),1)]),_:1})])]),e.renderSlot(s.$slots,"suffix")],2)],2))}});exports.default=w;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
2
|
-
`):""}),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-field/index.js");const w=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const j=require("lodash-unified");require("./popover-input/index.vue.js");require("../../hooks/index.js");const L=require("../../utils/index.js"),O=require("../../ap-field/hooks/use-default-placeholder.js"),P=require("../../hooks/useControllableValue.js"),R=require("../../config-provider/hooks/use-locale.js"),E=require("../../ap-field/select/index.vue.js"),T=require("../../ap-field/text/index.js"),z=require("./popover-input/index.vue2.js"),s="GROUP_SEARCH_ALL",N=e.defineComponent({__name:"index",props:{style:{type:[Boolean,null,String,Object,Array]},inputStyle:{type:[Boolean,null,String,Object,Array]},options:{},hasAll:{type:Boolean,default:!0},value:{},"onUpdate:value":{},mode:{default:"edit"},class:{},id:{},placeholder:{},autocomplete:{},type:{default:"text"},name:{},size:{},autofocus:{type:Boolean},lazy:{type:Boolean,default:!0},maxlength:{},loading:{type:Boolean},bordered:{type:Boolean,default:!0},showCount:{type:[Boolean,Object]},htmlSize:{},onPressEnter:{},onKeydown:{},onKeyup:{},onFocus:{},onBlur:{},onChange:{},onInput:{},onCompositionstart:{},onCompositionend:{},valueModifiers:{},hidden:{type:Boolean},status:{},defaultValue:{},inputElement:{},prefixCls:{},disabled:{type:Boolean},focused:{type:Boolean},triggerFocus:{},readonly:{type:Boolean},handleReset:{},addonBefore:{},addonAfter:{},prefix:{},suffix:{},clearIcon:{},allowClear:{type:Boolean,default:!0},emptyText:{default:"--"}},emits:["update:value"],setup(h,{emit:m}){const o=h,_=O.useDefaultPlaceholder("Text",o),g=m,{value:u,updateValue:r}=P.useControllableValue(o,g),p=e.ref(),c=e.ref(),{t:B}=R.useLocale(),x=e.computed(()=>o.options?o.options.length>1&&o.hasAll?[{value:s,label:B("ap.apGroupSearch.all")},...o.options]:o.options:[]),V=e.computed(()=>o.options?o.options.map(t=>t.value):[]),A=e.computed(()=>{var t,n;return(n=(t=e.unref(u))==null?void 0:t.value)!=null&&n.length?e.unref(u).value.join(","):""}),C=e.computed(()=>{var t,n;return(n=(t=e.unref(u))==null?void 0:t.value)!=null&&n.length?e.unref(u).value.join(`
|
|
2
|
+
`):""}),q=e.computed(()=>{var n;const t=(n=e.unref(u))==null?void 0:n.key;if(t!=null&&t.length)return t.length===1?t[0]:s}),S=e.computed(()=>{var l;const t=(l=e.unref(u))==null?void 0:l.key;return!t||(t==null?void 0:t.length)<=1?e.unref(_):(o.options||[]).filter(a=>t.includes(a.value)).map(a=>a.label).join("/")});function b(t){const n=e.unref(u)||{},l=t===s?e.unref(V):L.isDef(t)?[t]:[];r({...n,key:l})}function U(t){var f,v;const n=e.unref(u)||{},l=t.target.value||"",a=l.replace(/[,]+/g,",");if(l!==a){const y=(v=(f=c.value)==null?void 0:f.$el)==null?void 0:v.querySelector("input");y&&(y.value=a)}let i=a.split(",");i.length===1&&i[0]===""&&(i=[]),r({...n,value:i})}function k(t){const n=e.unref(u)||{};let l=t.split(/,|\n/);r({...n,value:l})}function d(){var l;const t=e.unref(u)||{},n=(l=t.value)==null?void 0:l.filter(Boolean);r({...t,value:n})}function I(t){var n;d(),(n=o.onBlur)==null||n.call(o,t)}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:p,style:{position:"relative"}},[e.createVNode(e.unref(w.Space).Compact,{block:""},{default:e.withCtx(()=>{var l;return[(l=t.options)!=null&&l.length?(e.openBlock(),e.createBlock(e.unref(E.default),{key:0,style:e.normalizeStyle(t.style),options:x.value,value:q.value,"onUpdate:value":b,"allow-clear":!1,"dropdown-match-select-width":!1},null,8,["style","options","value"])):e.createCommentVNode("",!0),e.createVNode(e.unref(T.ApFieldText),e.mergeProps({style:t.inputStyle},e.unref(j.omit)(o,["style","value","onUpdate:value","inputStyle","hasAll","options"]),{ref_key:"inputRef",ref:c,value:A.value,onInput:U,onBlur:I,placeholder:S.value}),{suffix:e.withCtx(()=>[e.createVNode(z.default,{_parent:p.value,value:C.value,"onUpdate:value":k,onClose:d},null,8,["_parent","value"])]),_:1},16,["style","value","placeholder"])]}),_:1})],512))}});exports.default=N;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -63,19 +63,19 @@
|
|
|
63
63
|
"scroll-into-view-if-needed": "^3.1.0",
|
|
64
64
|
"sortablejs": "^1.15.2",
|
|
65
65
|
"vuedraggable": "^4.1.0",
|
|
66
|
-
"@aplus-frontend/
|
|
67
|
-
"@aplus-frontend/
|
|
66
|
+
"@aplus-frontend/hooks": "1.0.7",
|
|
67
|
+
"@aplus-frontend/utils": "1.0.42"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@aplus-frontend/antdv": "^1.0.
|
|
71
|
-
"@aplus-frontend/icon": "^1.1.
|
|
70
|
+
"@aplus-frontend/antdv": "^1.0.5",
|
|
71
|
+
"@aplus-frontend/icon": "^1.1.3",
|
|
72
72
|
"@aplus-frontend/oss": "^1.1.2",
|
|
73
73
|
"vue": "3.4.38",
|
|
74
74
|
"@aplus-frontend/ui-theme": "1.0.15"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@aplus-frontend/antdv": "^1.0.
|
|
78
|
-
"@aplus-frontend/icon": "^1.1.
|
|
77
|
+
"@aplus-frontend/antdv": "^1.0.5",
|
|
78
|
+
"@aplus-frontend/icon": "^1.1.3",
|
|
79
79
|
"@aplus-frontend/oss": "^1.1.2",
|
|
80
80
|
"@types/sortablejs": "^1.15.8",
|
|
81
81
|
"@vue/test-utils": "^2.4.6",
|