@aplus-frontend/ui 0.2.14 → 0.2.15
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-table/hooks/use-table-paging.mjs +25 -24
- package/es/src/business/batch-input-group/index.vue.mjs +73 -57
- package/es/src/business/batch-input-group/interface.d.ts +2 -2
- package/es/src/locale/lang/en.mjs +1 -1
- package/lib/src/ap-table/hooks/use-table-paging.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +2 -2
- package/lib/src/locale/lang/en.js +1 -1
- package/package.json +1 -1
|
@@ -19,8 +19,8 @@ const ue = ({
|
|
|
19
19
|
showLessItems: b = !1,
|
|
20
20
|
showTotal: L = !0
|
|
21
21
|
}) => {
|
|
22
|
-
let z = 0,
|
|
23
|
-
const Q = (e) => y ? y(e) : e,
|
|
22
|
+
let z = 0, l = {};
|
|
23
|
+
const Q = (e) => y ? y(e) : e, u = x(), c = x(M), p = x(w), {
|
|
24
24
|
t: F
|
|
25
25
|
} = ae(), {
|
|
26
26
|
b: S
|
|
@@ -52,44 +52,45 @@ const ue = ({
|
|
|
52
52
|
}
|
|
53
53
|
}), a;
|
|
54
54
|
}, G = async (e) => {
|
|
55
|
-
var r, s, g, d, m,
|
|
56
|
-
const a = ((s = (r =
|
|
55
|
+
var r, s, g, d, m, f, h;
|
|
56
|
+
const a = ((s = (r = u.value) == null ? void 0 : r.apForm) == null ? void 0 : s.getFieldsValue()) || {}, t = {};
|
|
57
57
|
Object.entries(a).forEach(([v, i]) => {
|
|
58
58
|
D && D.indexOf(v) > -1 && (t[v] = i);
|
|
59
|
-
}), await ((d = (g =
|
|
59
|
+
}), await ((d = (g = u.value) == null ? void 0 : g.apForm) == null ? void 0 : d.resetFields()), (h = (f = (m = u.value) == null ? void 0 : m.apForm) == null ? void 0 : f.setFieldsValue) == null || h.call(f, t), I(() => {
|
|
60
60
|
e == null || e();
|
|
61
61
|
});
|
|
62
62
|
}, T = (e) => {
|
|
63
|
-
|
|
63
|
+
l = e;
|
|
64
64
|
const a = R(e);
|
|
65
65
|
O(a);
|
|
66
66
|
}, H = (e) => {
|
|
67
67
|
T({
|
|
68
|
-
...
|
|
68
|
+
...l,
|
|
69
69
|
...e
|
|
70
70
|
});
|
|
71
71
|
}, j = () => {
|
|
72
72
|
var a, t;
|
|
73
|
-
const e = ((t = (a =
|
|
74
|
-
|
|
73
|
+
const e = ((t = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValue(!0)) || {};
|
|
74
|
+
c.value = 1, T({
|
|
75
75
|
...e,
|
|
76
|
+
filter: l.filter,
|
|
77
|
+
sort: l.sort,
|
|
76
78
|
current: 1,
|
|
77
|
-
pageSize:
|
|
79
|
+
pageSize: l.pageSize || w
|
|
78
80
|
});
|
|
79
81
|
}, U = () => {
|
|
80
82
|
G(j);
|
|
81
83
|
}, W = () => {
|
|
82
|
-
T(
|
|
84
|
+
T(l);
|
|
83
85
|
}, X = (e) => {
|
|
84
|
-
const a = o(n).total - e, t = Math.ceil(a / o(p)), r = o(
|
|
86
|
+
const a = o(n).total - e, t = Math.ceil(a / o(p)), r = o(c) > t ? t : o(c);
|
|
85
87
|
H({
|
|
86
88
|
current: r > 0 ? r : 1
|
|
87
89
|
});
|
|
88
90
|
}, A = (e, a, t) => {
|
|
89
|
-
var m,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
l.value = e.current, p.value = e.pageSize;
|
|
91
|
+
var m, f, h, v;
|
|
92
|
+
const r = ((f = (m = u.value) == null ? void 0 : m.apForm) == null ? void 0 : f.getFieldsValue(!0)) || {};
|
|
93
|
+
c.value = e.current, p.value = e.pageSize;
|
|
93
94
|
const s = B(t) ? [...t] : [t], g = {};
|
|
94
95
|
for (const i of s)
|
|
95
96
|
(h = o(K)) != null && h.includes(i.columnKey || i.field) && (g[te(i.field)] = i.order);
|
|
@@ -106,24 +107,24 @@ const ue = ({
|
|
|
106
107
|
};
|
|
107
108
|
k(() => {
|
|
108
109
|
var a, t;
|
|
109
|
-
const e = ((t = (a =
|
|
110
|
-
if (
|
|
111
|
-
current: o(
|
|
110
|
+
const e = ((t = (a = u.value) == null ? void 0 : a.apForm) == null ? void 0 : t.getFieldsValue(!0)) || {};
|
|
111
|
+
if (l = {
|
|
112
|
+
current: o(c),
|
|
112
113
|
pageSize: o(p),
|
|
113
114
|
...e
|
|
114
115
|
}, !E) {
|
|
115
|
-
const r = R(
|
|
116
|
+
const r = R(l);
|
|
116
117
|
O(r);
|
|
117
118
|
}
|
|
118
119
|
});
|
|
119
|
-
const Y = V(() => o(n).total === 0 ? "-" : `${o(
|
|
120
|
+
const Y = V(() => o(n).total === 0 ? "-" : `${o(c.value)}/${Math.ceil(o(n).total / o(p))}`);
|
|
120
121
|
function Z(e) {
|
|
121
122
|
B(e) && (n.value.records = e, n.value.total = e.length);
|
|
122
123
|
}
|
|
123
124
|
const _ = V(() => ({
|
|
124
125
|
loading: o(n).loading,
|
|
125
126
|
pagination: {
|
|
126
|
-
current: o(
|
|
127
|
+
current: o(c),
|
|
127
128
|
pageSize: o(p),
|
|
128
129
|
total: o(n).total,
|
|
129
130
|
showSizeChanger: !b,
|
|
@@ -144,13 +145,13 @@ const ue = ({
|
|
|
144
145
|
dataSource: o(n).records
|
|
145
146
|
}));
|
|
146
147
|
return {
|
|
147
|
-
formRef:
|
|
148
|
+
formRef: u,
|
|
148
149
|
submit: j,
|
|
149
150
|
reset: U,
|
|
150
151
|
refresh: W,
|
|
151
152
|
refreshByDelete: X,
|
|
152
153
|
data: n,
|
|
153
|
-
current:
|
|
154
|
+
current: c,
|
|
154
155
|
pageSize: p,
|
|
155
156
|
handleTableChange: A,
|
|
156
157
|
tableProps: _,
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, ref as k, computed as i, unref as l, openBlock as f, createElementBlock as I, createVNode as p, withCtx as d, createBlock as E, normalizeStyle as L, createCommentVNode as O, mergeProps as j } from "vue";
|
|
2
2
|
import "../../ap-field/index.mjs";
|
|
3
|
-
import { Space as
|
|
3
|
+
import { Space as w } from "@aplus-frontend/antdv";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { omit as
|
|
5
|
+
import { omit as R } from "lodash-unified";
|
|
6
6
|
import "./popover-input/index.vue.mjs";
|
|
7
7
|
import "../../hooks/index.mjs";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
|
|
8
|
+
import { isDef as z } from "../../utils/index.mjs";
|
|
9
|
+
import { useControllableValue as T } from "../../hooks/useControllableValue.mjs";
|
|
10
|
+
import { useLocale as F } from "../../config-provider/hooks/use-locale.mjs";
|
|
11
|
+
import K from "../../ap-field/select/index.vue.mjs";
|
|
12
|
+
import { ApFieldText as P } from "../../ap-field/text/index.mjs";
|
|
13
|
+
import G from "./popover-input/index.vue2.mjs";
|
|
14
|
+
const m = "GROUP_SEARCH_ALL", te = /* @__PURE__ */ b({
|
|
14
15
|
__name: "index",
|
|
15
16
|
props: {
|
|
16
17
|
style: { type: [Boolean, null, String, Object, Array] },
|
|
@@ -63,81 +64,96 @@ const F = "GROUP_SEARCH_ALL", Q = /* @__PURE__ */ S({
|
|
|
63
64
|
emptyText: { default: "--" }
|
|
64
65
|
},
|
|
65
66
|
emits: ["update:value"],
|
|
66
|
-
setup(
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
), s =
|
|
71
|
-
{ value:
|
|
72
|
-
...
|
|
73
|
-
] :
|
|
67
|
+
setup(y, { emit: v }) {
|
|
68
|
+
const n = y, h = v, { value: a, updateValue: u } = T(
|
|
69
|
+
n,
|
|
70
|
+
h
|
|
71
|
+
), s = k(), { t: B } = F(), A = i(() => n.options ? n.hasAll ? [
|
|
72
|
+
{ value: m, label: B("ap.apGroupSearch.all") },
|
|
73
|
+
...n.options
|
|
74
|
+
] : n.options : []), _ = i(() => n.options ? n.options.map((e) => e.value) : []), g = i(() => {
|
|
74
75
|
var e, t;
|
|
75
|
-
return (t = (e =
|
|
76
|
-
}),
|
|
76
|
+
return (t = (e = l(a)) == null ? void 0 : e.value) != null && t.length ? l(a).value.join(",") : "";
|
|
77
|
+
}), C = i(() => {
|
|
77
78
|
var e, t;
|
|
78
|
-
return (t = (e =
|
|
79
|
+
return (t = (e = l(a)) == null ? void 0 : e.value) != null && t.length ? l(a).value.join(`
|
|
79
80
|
`) : "";
|
|
80
81
|
});
|
|
81
|
-
function
|
|
82
|
-
const t =
|
|
82
|
+
function x(e) {
|
|
83
|
+
const t = l(a) || {}, o = e === m ? l(_) : z(e) ? [e] : [];
|
|
83
84
|
u({
|
|
84
85
|
...t,
|
|
85
|
-
key:
|
|
86
|
+
key: o
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
const t =
|
|
90
|
-
let
|
|
91
|
-
for (;
|
|
92
|
-
|
|
93
|
-
let
|
|
94
|
-
|
|
89
|
+
function S(e) {
|
|
90
|
+
const t = l(a) || {};
|
|
91
|
+
let o = e;
|
|
92
|
+
for (; o.startsWith(","); )
|
|
93
|
+
o = o.slice(1);
|
|
94
|
+
let r = o.replaceAll(",,", ",").split(",");
|
|
95
|
+
r.length === 1 && r[0] === "" && (r = []), u({
|
|
95
96
|
...t,
|
|
96
|
-
value:
|
|
97
|
+
value: r
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
-
const t =
|
|
101
|
-
let
|
|
100
|
+
function V(e) {
|
|
101
|
+
const t = l(a) || {};
|
|
102
|
+
let o = e.split(/,|\n/);
|
|
102
103
|
u({
|
|
103
104
|
...t,
|
|
104
|
-
value:
|
|
105
|
+
value: o
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
108
|
function c() {
|
|
108
|
-
var
|
|
109
|
-
const e =
|
|
109
|
+
var o;
|
|
110
|
+
const e = l(a) || {}, t = (o = e.value) == null ? void 0 : o.filter(Boolean);
|
|
110
111
|
u({
|
|
111
112
|
...e,
|
|
112
113
|
value: t
|
|
113
114
|
});
|
|
114
115
|
}
|
|
115
|
-
|
|
116
|
+
function U(e) {
|
|
117
|
+
var t;
|
|
118
|
+
c(), (t = n.onBlur) == null || t.call(n, e);
|
|
119
|
+
}
|
|
120
|
+
return (e, t) => (f(), I("div", {
|
|
116
121
|
ref_key: "containerRef",
|
|
117
122
|
ref: s,
|
|
118
123
|
style: { position: "relative" }
|
|
119
124
|
}, [
|
|
120
|
-
|
|
121
|
-
default:
|
|
122
|
-
var
|
|
125
|
+
p(l(w).Compact, { block: "" }, {
|
|
126
|
+
default: d(() => {
|
|
127
|
+
var o, r;
|
|
123
128
|
return [
|
|
124
|
-
(
|
|
129
|
+
(o = e.options) != null && o.length ? (f(), E(l(K), {
|
|
125
130
|
key: 0,
|
|
126
|
-
style:
|
|
127
|
-
options:
|
|
128
|
-
value: (
|
|
129
|
-
"onUpdate:value":
|
|
130
|
-
}, null, 8, ["style", "options", "value"])) :
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
131
|
+
style: L(e.style),
|
|
132
|
+
options: A.value,
|
|
133
|
+
value: (r = l(a)) == null ? void 0 : r.key,
|
|
134
|
+
"onUpdate:value": x
|
|
135
|
+
}, null, 8, ["style", "options", "value"])) : O("", !0),
|
|
136
|
+
p(l(P), j(
|
|
137
|
+
{ style: e.inputStyle },
|
|
138
|
+
l(R)(n, [
|
|
139
|
+
"style",
|
|
140
|
+
"value",
|
|
141
|
+
"onUpdate:value",
|
|
142
|
+
"inputStyle",
|
|
143
|
+
"hasAll",
|
|
144
|
+
"options"
|
|
145
|
+
]),
|
|
146
|
+
{
|
|
147
|
+
value: g.value,
|
|
148
|
+
"onUpdate:value": S,
|
|
149
|
+
onBlur: U
|
|
150
|
+
}
|
|
151
|
+
), {
|
|
152
|
+
suffix: d(() => [
|
|
153
|
+
p(G, {
|
|
138
154
|
_parent: s.value,
|
|
139
|
-
value:
|
|
140
|
-
"onUpdate:value":
|
|
155
|
+
value: C.value,
|
|
156
|
+
"onUpdate:value": V,
|
|
141
157
|
onClose: c
|
|
142
158
|
}, null, 8, ["_parent", "value"])
|
|
143
159
|
]),
|
|
@@ -151,5 +167,5 @@ const F = "GROUP_SEARCH_ALL", Q = /* @__PURE__ */ S({
|
|
|
151
167
|
}
|
|
152
168
|
});
|
|
153
169
|
export {
|
|
154
|
-
|
|
170
|
+
te as default
|
|
155
171
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ApFieldTextAreaProps, ApFieldTextProps } from '../../ap-field';
|
|
2
|
-
import { DefaultOptionType
|
|
2
|
+
import { DefaultOptionType } from '@aplus-frontend/antdv/es/select';
|
|
3
3
|
import { StyleValue } from 'vue';
|
|
4
4
|
export type BatchInputGroupValueType = {
|
|
5
|
-
key:
|
|
5
|
+
key: any[];
|
|
6
6
|
value: string[];
|
|
7
7
|
};
|
|
8
8
|
export interface BatchInputGroupProps extends Omit<ApFieldTextProps, 'value' | 'onUpdate:value' | 'style'> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),O=require("../utils.js"),j=require("lodash-unified");require("../../config-provider/index.js");const Z=require("../../config-provider/hooks/use-locale.js"),_=require("../../config-provider/hooks/use-namespace.js"),I=({manual:D=!1,defaultCurrent:R=1,defaultPageSize:V=10,request:A,defaultParams:M={},defaultData:B=[],formatParams:x,paramsValueTypeMap:z,resetFieldsIgnores:y,filterFields:E,sortFields:L,showLessItems:b=!1,showTotal:$=!0})=>{let P=0,
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),O=require("../utils.js"),j=require("lodash-unified");require("../../config-provider/index.js");const Z=require("../../config-provider/hooks/use-locale.js"),_=require("../../config-provider/hooks/use-namespace.js"),I=({manual:D=!1,defaultCurrent:R=1,defaultPageSize:V=10,request:A,defaultParams:M={},defaultData:B=[],formatParams:x,paramsValueTypeMap:z,resetFieldsIgnores:y,filterFields:E,sortFields:L,showLessItems:b=!1,showTotal:$=!0})=>{let P=0,i={};const J=e=>x?x(e):e,l=t.ref(),c=t.ref(R),g=t.ref(V),{t:S}=Z.useLocale(),{b:T}=_.useNamespace("ap-table"),r=t.ref({total:0,records:B,loading:!1}),q=async e=>{var o;const n=J(e),a=Date.now();P=a,r.value.loading=!0;try{const s=await A({...M,...n});P===a&&(r.value.total=s.total||((o=s.data)==null?void 0:o.length)||0,r.value.records=[...s.data||[]])}catch{P===a&&(r.value.records=[],r.value.total=0)}finally{r.value.loading=!1}},N=e=>{const n={};return Object.entries(e).forEach(([a,o])=>{if(n[a]=o,z&&o){const s=z[a];s&&(n[a]=O.parseFieldValue(s,o))}}),n},K=async e=>{var o,s,d,p,v,f,h;const n=((s=(o=l.value)==null?void 0:o.apForm)==null?void 0:s.getFieldsValue())||{},a={};Object.entries(n).forEach(([m,u])=>{y&&y.indexOf(m)>-1&&(a[m]=u)}),await((p=(d=l.value)==null?void 0:d.apForm)==null?void 0:p.resetFields()),(h=(f=(v=l.value)==null?void 0:v.apForm)==null?void 0:f.setFieldsValue)==null||h.call(f,a),t.nextTick(()=>{e==null||e()})},F=e=>{i=e;const n=N(e);q(n)},Q=e=>{F({...i,...e})},w=()=>{var n,a;const e=((a=(n=l.value)==null?void 0:n.apForm)==null?void 0:a.getFieldsValue(!0))||{};c.value=1,F({...e,filter:i.filter,sort:i.sort,current:1,pageSize:i.pageSize||V})},U=()=>{K(w)},G=()=>{F(i)},H=e=>{const n=t.unref(r).total-e,a=Math.ceil(n/t.unref(g)),o=t.unref(c)>a?a:t.unref(c);Q({current:o>0?o:1})},C=(e,n,a)=>{var v,f,h,m;const o=((f=(v=l.value)==null?void 0:v.apForm)==null?void 0:f.getFieldsValue(!0))||{};c.value=e.current,g.value=e.pageSize;const s=j.isArray(a)?[...a]:[a],d={};for(const u of s)(h=t.unref(L))!=null&&h.includes(u.columnKey||u.field)&&(d[O.dataIndexToStr(u.field)]=u.order);const p={};for(const u of Object.keys(n))(m=t.unref(E))!=null&&m.includes(u)&&(p[u]=n[u]);F({...o,filter:p,sort:d,current:e.current,pageSize:e.pageSize})};t.onMounted(()=>{var n,a;const e=((a=(n=l.value)==null?void 0:n.apForm)==null?void 0:a.getFieldsValue(!0))||{};if(i={current:t.unref(c),pageSize:t.unref(g),...e},!D){const o=N(i);q(o)}});const W=t.computed(()=>t.unref(r).total===0?"-":`${t.unref(c.value)}/${Math.ceil(t.unref(r).total/t.unref(g))}`);function X(e){j.isArray(e)&&(r.value.records=e,r.value.total=e.length)}const Y=t.computed(()=>({loading:t.unref(r).loading,pagination:{current:t.unref(c),pageSize:t.unref(g),total:t.unref(r).total,showSizeChanger:!b,showQuickJumper:!b,showLessItems:b,size:"default",showTotal:$?e=>t.createVNode("span",{class:T("pagination-total-wrapper")},[S("ap.apTable.pagination.totalLeftPrefix")," ",t.createVNode("span",{class:T("pagination-count-text")},[e])," ",S("ap.apTable.pagination.totalLeftSuffix"),t.createVNode("span",{class:T("pagination--total-right")},[S("ap.apTable.pagination.totalRightPrefix")," ",t.createVNode("span",{class:T("pagination-count-text")},[t.unref(W)])," ",S("ap.apTable.pagination.totalRightSuffix")])]):void 0},onChange:C,dataSource:t.unref(r).records}));return{formRef:l,submit:w,reset:U,refresh:G,refreshByDelete:H,data:r,current:c,pageSize:g,handleTableChange:C,tableProps:Y,dataSource:t.computed(()=>t.unref(r).records),setDataSource:X}};exports.useTablePaging=I;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-field/index.js");const
|
|
2
|
-
`):""});function
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../ap-field/index.js");const C=require("@aplus-frontend/antdv");require("../../config-provider/index.js");const V=require("lodash-unified");require("./popover-input/index.vue.js");require("../../hooks/index.js");const S=require("../../utils/index.js"),q=require("../../hooks/useControllableValue.js"),b=require("../../config-provider/hooks/use-locale.js"),U=require("../../ap-field/select/index.vue.js"),k=require("../../ap-field/text/index.js"),I=require("./popover-input/index.vue2.js"),p="GROUP_SEARCH_ALL",L=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(c,{emit:d}){const o=c,f=d,{value:u,updateValue:r}=q.useControllableValue(o,f),i=e.ref(),{t:v}=b.useLocale(),y=e.computed(()=>o.options?o.hasAll?[{value:p,label:v("ap.apGroupSearch.all")},...o.options]:o.options:[]),m=e.computed(()=>o.options?o.options.map(t=>t.value):[]),_=e.computed(()=>{var t,n;return(n=(t=e.unref(u))==null?void 0:t.value)!=null&&n.length?e.unref(u).value.join(","):""}),h=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
|
+
`):""});function B(t){const n=e.unref(u)||{},l=t===p?e.unref(m):S.isDef(t)?[t]:[];r({...n,key:l})}function g(t){const n=e.unref(u)||{};let l=t;for(;l.startsWith(",");)l=l.slice(1);let a=l.replaceAll(",,",",").split(",");a.length===1&&a[0]===""&&(a=[]),r({...n,value:a})}function A(t){const n=e.unref(u)||{};let l=t.split(/,|\n/);r({...n,value:l})}function s(){var l;const t=e.unref(u)||{},n=(l=t.value)==null?void 0:l.filter(Boolean);r({...t,value:n})}function x(t){var n;s(),(n=o.onBlur)==null||n.call(o,t)}return(t,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"containerRef",ref:i,style:{position:"relative"}},[e.createVNode(e.unref(C.Space).Compact,{block:""},{default:e.withCtx(()=>{var l,a;return[(l=t.options)!=null&&l.length?(e.openBlock(),e.createBlock(e.unref(U.default),{key:0,style:e.normalizeStyle(t.style),options:y.value,value:(a=e.unref(u))==null?void 0:a.key,"onUpdate:value":B},null,8,["style","options","value"])):e.createCommentVNode("",!0),e.createVNode(e.unref(k.ApFieldText),e.mergeProps({style:t.inputStyle},e.unref(V.omit)(o,["style","value","onUpdate:value","inputStyle","hasAll","options"]),{value:_.value,"onUpdate:value":g,onBlur:x}),{suffix:e.withCtx(()=>[e.createVNode(I.default,{_parent:i.value,value:h.value,"onUpdate:value":A,onClose:s},null,8,["_parent","value"])]),_:1},16,["style","value"])]}),_:1})],512))}});exports.default=L;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ApFieldTextAreaProps, ApFieldTextProps } from '../../ap-field';
|
|
2
|
-
import { DefaultOptionType
|
|
2
|
+
import { DefaultOptionType } from '@aplus-frontend/antdv/es/select';
|
|
3
3
|
import { StyleValue } from 'vue';
|
|
4
4
|
export type BatchInputGroupValueType = {
|
|
5
|
-
key:
|
|
5
|
+
key: any[];
|
|
6
6
|
value: string[];
|
|
7
7
|
};
|
|
8
8
|
export interface BatchInputGroupProps extends Omit<ApFieldTextProps, 'value' | 'onUpdate:value' | 'style'> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},field:{startDateText:"Start date",endDateText:"End date"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:""},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export Excel"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",all:"All",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"A maximum of 200 entries can be entered in batches, separated by commas and newlines"}}};exports.default=e;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"en",ap:{common:{okText:"OK",cancelText:"Cancel",resetText:"Reset",queryText:"Search",expandText:"Unfold",closeText:"Put away",inputText:"Please enter",chooseText:"Please choose",redo:"Refresh",back:"Back",more:"More"},field:{startDateText:"Start date",endDateText:"End date"},apForm:{search:{search:"Search",reset:"Reset"}},apTable:{pagination:{totalLeftPrefix:"Total",totalLeftSuffix:"items",totalRightPrefix:"Page",totalRightSuffix:" "},setting:{title:"Custom Table",selectAll:"Select All",unSelectAll:"Deselect All",selectAllTip:"Please select the columns to display in the table.",sizeSmall:"Small",sizeNormal:"Normal",selectCount:"Selected fields ({count})",reset:"Reset",fixToLeft:"Fixed on the left",fixToRight:"Fixed on the right",unFixed:"Not fixed",delete:"Delete"},paragraphEllipsis:{copy:"Copy",copySuccess:"Copied successfully"}},apUpload:{update:"Upload",pictureType:"Image type",videoType:"Video type",audioType:"Audio type",documentType:"Document type",allTypes:"All types",networkAnomaly:"Network abnormality",FailedToObtainOssTemporaryPermissions:"Failed to obtain temporary OSS permissions",pleasePass:"Please pass in",supportExtension:"Support extensions",uploadFile:"Upload files",fileInitializationException:"If the initial number of initialized files exceeds {maxCount}, subsequent uploaded files will be out of sync with the data",maxUploadFiles:"Upload a maximum of {maxCount} files",maxUploadPicture:"Upload a maximum of {maxCount} images",maxUploadFileSize:"The file size does not exceed {maxSize}MB",maxWarnUploadFileSize:"The file size is smaller than {maxSize}MB",maxUploadPictureSize:"The image size is smaller than {maxSize}MB",fileFormatNotSupported:"Files in this format are not supported",pictureFormatNotSupported:"Images in this format are not supported",imageParsingFailed:"Image parsing failed",clickOrDragUpload:"Click or drag the file",foldersNotSupported:"Do not support uploading folders"},apExportGroup:{exportError:"Export error",exportSelected:"Export selected",exportAll:"Export all",export:"Export Excel"},apBatchAction:{selected:"Selected",piecesOfData:"Pieces of data",empty:"Empty"},apApBatchActionGroup:{batchOperation:"Batch operation"},workOrderModal:{createTickets:"Create ticket",submit:"Confirm",cancel:"Cancel",ticketsTitle:"Ticket Title",noEmpty:"No empty",pleaseEntry:"please enter",ticketsType:"Ticket Type",ticketsDetail:"Ticket Detail",ticketsLevel:"Priority",operationSuccess:"operate successfully",fileSizeMax:"Single file size limit",fileCountMax:"Limit the number to {x} at a time"},apTableModal:{titleSuffixOne:"You can add up to {maxCount},",titleSuffixTwo:"Added",titleSuffixThree:"",messageMaxCount:"You can select up to {maxCount} data entries",clear:"Clear",selected:"Selected"},apAttachment:{downloadall:"Download All",more:"More"},apExpandAlert:{expand:"Expand",collapse:"Collapse"},apAppendix:{downloadAll:"Download All",downloadFile:"Download file",appendix:"Appendix"},apGroupSearch:{defaultPlaceholder:"Please input",all:"All",close:"Close",clear:"Clear",confirm:"Confirm",tokenSeparatorsPlaceholder:"A maximum of 200 entries can be entered in batches, separated by commas and newlines"}}};exports.default=e;
|