@farris/ui-vue 1.6.5-beta.8 → 1.6.6
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/components/avatar/index.esm.js +335 -335
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +6 -6
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +139 -134
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/common/index.esm.js +1 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +300 -300
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +7 -6
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +295 -295
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3407 -3338
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +833 -832
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +5 -5
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dynamic-form/index.esm.js +173 -172
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +637 -637
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +737 -732
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/filter-bar/index.esm.js +728 -706
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +670 -665
- package/components/filter-condition-editor/index.umd.cjs +2 -2
- package/components/flow-canvas/index.esm.js +205 -205
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +77 -76
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +4 -2
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +42 -40
- package/components/list-view/index.umd.cjs +2 -2
- package/components/lookup/index.esm.js +118 -118
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +482 -483
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +424 -424
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +276 -276
- package/components/modal/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +161 -161
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +322 -316
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +541 -534
- package/components/order/index.umd.cjs +2 -2
- package/components/page-header/index.esm.js +1 -1
- package/components/page-header/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +58 -56
- package/components/popover/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +216 -216
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +489 -467
- package/components/query-solution/index.umd.cjs +3 -3
- package/components/radio-group/index.esm.js +30 -30
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +282 -282
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +875 -873
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +504 -496
- package/components/schema-selector/index.umd.cjs +6 -6
- package/components/search-box/index.esm.js +76 -72
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +212 -212
- package/components/section/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +382 -377
- package/components/sort-condition-editor/index.umd.cjs +2 -2
- package/components/tabs/index.esm.js +584 -582
- package/components/tabs/index.umd.cjs +2 -2
- package/components/textarea/index.esm.js +362 -362
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +9799 -0
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/time-picker/package.json +8 -0
- package/components/time-picker/style.js +6 -0
- package/components/transfer/index.esm.js +81 -79
- package/components/transfer/index.umd.cjs +2 -2
- package/components/tree-grid/index.esm.js +100 -100
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2361 -2279
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/video/index.esm.js +220 -220
- package/components/video/index.umd.cjs +1 -1
- package/designer/button-edit/index.css +1 -0
- package/designer/button-edit/index.esm.js +4856 -0
- package/designer/button-edit/index.umd.cjs +1 -0
- package/designer/checkbox/index.esm.js +254 -0
- package/designer/checkbox/index.umd.cjs +1 -0
- package/designer/checkbox-group/index.esm.js +381 -0
- package/designer/checkbox-group/index.umd.cjs +1 -0
- package/designer/data-grid/index.css +1 -0
- package/designer/data-grid/index.esm.js +15445 -0
- package/designer/data-grid/index.umd.cjs +23 -0
- package/designer/data-view/index.esm.js +854 -0
- package/designer/data-view/index.umd.cjs +38 -0
- package/designer/drawer/index.css +1 -0
- package/designer/drawer/index.esm.js +525 -0
- package/designer/drawer/index.umd.cjs +1 -0
- package/designer/farris-designer.all.esm.js +22331 -0
- package/designer/farris-designer.all.umd.cjs +34 -0
- package/designer/index.css +1 -0
- package/designer/input-group/index.esm.js +1099 -0
- package/designer/input-group/index.umd.cjs +1 -0
- package/designer/list-view/index.css +1 -0
- package/designer/list-view/index.esm.js +4685 -0
- package/designer/list-view/index.umd.cjs +40 -0
- package/designer/radio-group/index.css +1 -0
- package/designer/radio-group/index.esm.js +6989 -0
- package/designer/radio-group/index.umd.cjs +1 -0
- package/designer/tree-grid/index.esm.js +1099 -0
- package/designer/tree-grid/index.umd.cjs +1 -0
- package/farris.all.esm.js +13299 -13177
- package/farris.all.umd.cjs +25 -25
- package/locales/data-grid/ui/en.json +4 -3
- package/locales/data-grid/ui/zh-CHS.json +2 -1
- package/locales/data-grid/ui/zh-CHT.json +2 -1
- package/locales/designer/en.json +9 -7
- package/locales/designer/zh-CHS.json +4 -2
- package/locales/designer/zh-CHT.json +4 -2
- package/locales/ui/en.json +9 -7
- package/locales/ui/zh-CHS.json +4 -2
- package/locales/ui/zh-CHT.json +4 -2
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
|
@@ -0,0 +1,854 @@
|
|
|
1
|
+
import { computed as R, watch as T, ref as V, createVNode as F, Fragment as z, createTextVNode as G } from "vue";
|
|
2
|
+
function K(i, a, u, r, d) {
|
|
3
|
+
const { getGridHeaderCells: h } = d, f = 120, _ = 50, O = R(() => {
|
|
4
|
+
var e;
|
|
5
|
+
return ((e = i.rowNumber) == null ? void 0 : e.enable) || !1;
|
|
6
|
+
}), A = R(() => {
|
|
7
|
+
var e, t;
|
|
8
|
+
return ((e = i.selection) == null ? void 0 : e.multiSelect) || ((t = i.selection) == null ? void 0 : t.showCheckbox) || !1;
|
|
9
|
+
}), D = R(
|
|
10
|
+
() => {
|
|
11
|
+
var e;
|
|
12
|
+
return 0 + (O.value ? ((e = i.rowNumber) == null ? void 0 : e.width) || 32 : 0) + (A.value ? _ : 0);
|
|
13
|
+
}
|
|
14
|
+
), S = R(() => {
|
|
15
|
+
var e;
|
|
16
|
+
return (e = i.columnOption) == null ? void 0 : e.fitColumns;
|
|
17
|
+
}), M = R(() => {
|
|
18
|
+
var e;
|
|
19
|
+
return S.value && ((e = i.columnOption) == null ? void 0 : e.fitMode) || "none";
|
|
20
|
+
});
|
|
21
|
+
function I(e, t, o) {
|
|
22
|
+
const c = parseInt(e.width, 10) / 100;
|
|
23
|
+
return o * c;
|
|
24
|
+
}
|
|
25
|
+
function W(e, t, o) {
|
|
26
|
+
return typeof e.width == "string" ? I(e, t, o) : e.width || f;
|
|
27
|
+
}
|
|
28
|
+
function N(e, t) {
|
|
29
|
+
const o = [], c = [];
|
|
30
|
+
let m = 0;
|
|
31
|
+
e.value.primaryColumns.forEach((p) => {
|
|
32
|
+
typeof p.width == "string" ? c.push(p) : (p.width = p.width || f, m += p.width, o.push(p));
|
|
33
|
+
});
|
|
34
|
+
const y = t * (o.length / e.value.primaryColumns.length);
|
|
35
|
+
o.forEach((p) => {
|
|
36
|
+
const s = y * (p.width / m);
|
|
37
|
+
p.actualWidth = s, e.value.primaryColumnsWidth += p.actualWidth;
|
|
38
|
+
});
|
|
39
|
+
const w = t - y;
|
|
40
|
+
c.forEach((p) => {
|
|
41
|
+
const s = I(p, e.value, w);
|
|
42
|
+
p.actualWidth = s, e.value.primaryColumnsWidth += p.actualWidth;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function C(e, t) {
|
|
46
|
+
const o = [], c = [], m = /* @__PURE__ */ new WeakMap();
|
|
47
|
+
let y = 0, w = 0;
|
|
48
|
+
if (e.value.primaryColumns.forEach((s) => {
|
|
49
|
+
if (typeof s.width == "string") {
|
|
50
|
+
const v = I(s, e.value, t);
|
|
51
|
+
m.set(s, v), y += v, c.push(s);
|
|
52
|
+
} else
|
|
53
|
+
s.width = s.width || f, w += s.width, o.push(s);
|
|
54
|
+
}), t - y > w) {
|
|
55
|
+
const s = t - y;
|
|
56
|
+
c.forEach((v) => {
|
|
57
|
+
v.actualWidth = m.get(v) || f, e.value.primaryColumnsWidth += v.actualWidth;
|
|
58
|
+
}), o.forEach((v) => {
|
|
59
|
+
v.actualWidth = s * (v.width / w), e.value.primaryColumnsWidth += v.actualWidth;
|
|
60
|
+
});
|
|
61
|
+
} else
|
|
62
|
+
N(e, t);
|
|
63
|
+
}
|
|
64
|
+
function g(e, t) {
|
|
65
|
+
e.value.primaryColumns.forEach((o) => {
|
|
66
|
+
o.actualWidth = W(o, e.value, t), e.value.primaryColumnsWidth += o.actualWidth;
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
const P = {
|
|
70
|
+
expand: C,
|
|
71
|
+
none: g,
|
|
72
|
+
percentage: N
|
|
73
|
+
};
|
|
74
|
+
function E(e) {
|
|
75
|
+
e.value.leftHeaderColumns = Array.from(h(e.value.leftColumns).values()), e.value.primaryHeaderColumns = Array.from(h(e.value.primaryColumns).values()), e.value.rightHeaderColumns = Array.from(h(e.value.rightColumns).values());
|
|
76
|
+
}
|
|
77
|
+
function b(e) {
|
|
78
|
+
e.value.leftColumnsWidth = 0, e.value.primaryColumnsWidth = 0, e.value.rightColumnsWidth = 0, e.value.leftColumns.forEach((t) => {
|
|
79
|
+
e.value.leftColumnsWidth += t.actualWidth || 0;
|
|
80
|
+
}), e.value.primaryColumns.forEach((t) => {
|
|
81
|
+
e.value.primaryColumnsWidth += t.actualWidth || 0;
|
|
82
|
+
}), e.value.rightColumns.forEach((t) => {
|
|
83
|
+
e.value.rightColumnsWidth += t.actualWidth || 0;
|
|
84
|
+
}), e.value = Object.assign({}, e.value);
|
|
85
|
+
}
|
|
86
|
+
function n(e, t, o) {
|
|
87
|
+
var v;
|
|
88
|
+
let c = 0;
|
|
89
|
+
const m = e.value.primaryColumns, y = e.value.rightColumns;
|
|
90
|
+
e.value.rightColumns.forEach((k) => {
|
|
91
|
+
k.actualWidth = W(k, e.value, t), c += k.actualWidth;
|
|
92
|
+
});
|
|
93
|
+
const w = o - c, p = P[M.value];
|
|
94
|
+
if (p && p(e, w), e.value.primaryColumnsWidth + c <= o)
|
|
95
|
+
return e.value.primaryColumns = [...m, ...y], e.value.primaryColumnsWidth += c, e.value.rightColumns = [], e.value.rightColumnsWidth = 0, !0;
|
|
96
|
+
const s = /* @__PURE__ */ new Map();
|
|
97
|
+
return s.set("primary", []), s.set("right", []), e.value.primaryColumns.reduce((k, $) => {
|
|
98
|
+
var H, B;
|
|
99
|
+
return $.fixed === "right" ? (H = k.get("right")) == null || H.push($) : (B = k.get("primary")) == null || B.push($), k;
|
|
100
|
+
}, s), (v = s.get("right")) != null && v.length && (e.value.primaryColumns = [...s.get("primary") || []], e.value.rightColumns = [...s.get("right") || []]), e.value.primaryColumnsWidth = 0, e.value.rightColumnsWidth = 0, !1;
|
|
101
|
+
}
|
|
102
|
+
function l() {
|
|
103
|
+
if (u.value) {
|
|
104
|
+
a.value.leftColumnsWidth = 0, a.value.primaryColumnsWidth = 0, a.value.rightColumnsWidth = 0;
|
|
105
|
+
const e = u.value.clientWidth - D.value;
|
|
106
|
+
a.value.leftColumns.forEach((o) => {
|
|
107
|
+
o.actualWidth = W(o, a.value, e), a.value.leftColumnsWidth += o.actualWidth;
|
|
108
|
+
});
|
|
109
|
+
const t = e - a.value.leftColumnsWidth;
|
|
110
|
+
if (n(a, e, t))
|
|
111
|
+
r.value = t;
|
|
112
|
+
else {
|
|
113
|
+
a.value.rightColumns.forEach((m) => {
|
|
114
|
+
m.actualWidth = W(m, a.value, e), a.value.rightColumnsWidth += m.actualWidth;
|
|
115
|
+
});
|
|
116
|
+
const o = e - a.value.leftColumnsWidth - a.value.rightColumnsWidth, c = P[M.value];
|
|
117
|
+
c && c(a, o), r.value = o;
|
|
118
|
+
}
|
|
119
|
+
E(a), a.value = Object.assign({}, a.value);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return T(() => {
|
|
123
|
+
var e;
|
|
124
|
+
return (e = i.columnOption) == null ? void 0 : e.fitColumns;
|
|
125
|
+
}, (e, t) => {
|
|
126
|
+
e !== t && e && l();
|
|
127
|
+
}), T(M, (e, t) => {
|
|
128
|
+
e !== t && S.value && l();
|
|
129
|
+
}), { calculateColumnHeaders: E, calculateColumnsSize: l, calculateColumnsWidth: b };
|
|
130
|
+
}
|
|
131
|
+
const L = "";
|
|
132
|
+
function Y(i) {
|
|
133
|
+
const r = V({
|
|
134
|
+
defaultColumnWidth: 120,
|
|
135
|
+
headerDepth: 1,
|
|
136
|
+
leftColumns: [],
|
|
137
|
+
leftColumnsMap: /* @__PURE__ */ new Map(),
|
|
138
|
+
leftColumnsWidth: 0,
|
|
139
|
+
leftHeaderColumns: [],
|
|
140
|
+
primaryColumns: [],
|
|
141
|
+
primaryColumnsMap: /* @__PURE__ */ new Map(),
|
|
142
|
+
primaryColumnsWidth: 0,
|
|
143
|
+
primaryHeaderColumns: [],
|
|
144
|
+
rightColumns: [],
|
|
145
|
+
rightColumnsMap: /* @__PURE__ */ new Map(),
|
|
146
|
+
rightColumnsWidth: 0,
|
|
147
|
+
rightHeaderColumns: [],
|
|
148
|
+
summaryColumns: []
|
|
149
|
+
});
|
|
150
|
+
function d() {
|
|
151
|
+
r.value = {
|
|
152
|
+
defaultColumnWidth: 120,
|
|
153
|
+
headerDepth: 1,
|
|
154
|
+
leftColumns: [],
|
|
155
|
+
leftColumnsMap: /* @__PURE__ */ new Map(),
|
|
156
|
+
leftColumnsWidth: 0,
|
|
157
|
+
leftHeaderColumns: [],
|
|
158
|
+
primaryColumns: [],
|
|
159
|
+
primaryColumnsMap: /* @__PURE__ */ new Map(),
|
|
160
|
+
primaryColumnsWidth: 0,
|
|
161
|
+
primaryHeaderColumns: [],
|
|
162
|
+
rightColumns: [],
|
|
163
|
+
rightColumnsMap: /* @__PURE__ */ new Map(),
|
|
164
|
+
rightColumnsWidth: 0,
|
|
165
|
+
rightHeaderColumns: [],
|
|
166
|
+
summaryColumns: []
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
const h = V(i.summary), f = R(() => {
|
|
170
|
+
const n = h.value;
|
|
171
|
+
return (n == null ? void 0 : n.groupFields) || [];
|
|
172
|
+
});
|
|
173
|
+
function _() {
|
|
174
|
+
r.value.rightColumns.forEach((e) => {
|
|
175
|
+
e.showSetting = !1;
|
|
176
|
+
}), r.value.primaryColumns.forEach((e) => {
|
|
177
|
+
e.showSetting = !1;
|
|
178
|
+
});
|
|
179
|
+
const n = r.value.rightColumns, l = r.value.primaryColumns;
|
|
180
|
+
n.length > 0 ? n[n.length - 1].showSetting = !0 : l.length > 0 && (l[l.length - 1].showSetting = !0);
|
|
181
|
+
}
|
|
182
|
+
function O(n) {
|
|
183
|
+
d();
|
|
184
|
+
const l = /* @__PURE__ */ new Map();
|
|
185
|
+
return f.value && f.value.reduce((e, t) => (e.set(t, !0), e), l), n.reduce((e, t) => (t.filter = t.filter || L, t.fixed === "left" ? (r.value.leftColumns.push(t), r.value.leftColumnsMap.set(t.field, t), r.value.leftColumnsWidth += t.actualWidth) : t.fixed === "right" ? (r.value.rightColumns.push(t), r.value.rightColumnsMap.set(t.field, t), r.value.rightColumnsWidth += t.actualWidth) : (r.value.primaryColumns.push(t), r.value.primaryColumnsMap.set(t.field, t), r.value.primaryColumnsWidth += t.actualWidth), l.has(t.field) && r.value.summaryColumns.push(t), e), r), _(), r;
|
|
186
|
+
}
|
|
187
|
+
O(i.columns);
|
|
188
|
+
const A = R(() => r.value.leftColumns.length > 0), D = R(() => r.value.rightColumns.length > 0);
|
|
189
|
+
function S(n, l) {
|
|
190
|
+
return l.sortable && l.sort && l.sort !== "none" && n.push(l), n;
|
|
191
|
+
}
|
|
192
|
+
function M(n, l) {
|
|
193
|
+
return n.sortOrder = n.sortOrder || 0, l.sortOrder = l.sortOrder || 0, n.sortOrder === l.sortOrder ? 0 : n.sortOrder < l.sortOrder ? -1 : 1;
|
|
194
|
+
}
|
|
195
|
+
function I(n, l) {
|
|
196
|
+
return n.sortOrder = n.sortOrder || 0, l.sortOrder = l.sortOrder || 0, n.sortOrder === l.sortOrder ? 0 : n.sortOrder < l.sortOrder ? 1 : -1;
|
|
197
|
+
}
|
|
198
|
+
function W(n, l) {
|
|
199
|
+
return l.filterable && n.push(l), n;
|
|
200
|
+
}
|
|
201
|
+
function N() {
|
|
202
|
+
const n = [];
|
|
203
|
+
return r.value.leftColumns.reduce(W, n), r.value.primaryColumns.reduce(W, n), r.value.rightColumns.reduce(W, n), n;
|
|
204
|
+
}
|
|
205
|
+
function C() {
|
|
206
|
+
const n = [];
|
|
207
|
+
r.value.leftColumns.reduce(S, n), r.value.primaryColumns.reduce(S, n), r.value.rightColumns.reduce(S, n);
|
|
208
|
+
const l = Math.max(...n.map((e) => e.sortOrder || 0));
|
|
209
|
+
return n.sort(I).map((e) => {
|
|
210
|
+
const t = e.sortOrder || l + 1;
|
|
211
|
+
return e.sortOrder = t, e;
|
|
212
|
+
}).sort(M).map((e, t) => {
|
|
213
|
+
const o = t + 1;
|
|
214
|
+
return e.sortOrder = o, e;
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
function g(n, l, e) {
|
|
218
|
+
const t = n.map((o) => {
|
|
219
|
+
const c = e.getSorterByColumn(o), m = o.sort === "asc", y = o.sort === "desc", w = m ? c.ascend : y ? c.decend : void 0;
|
|
220
|
+
return { field: o.field, compare: w };
|
|
221
|
+
});
|
|
222
|
+
l.setSorters(t);
|
|
223
|
+
}
|
|
224
|
+
function P(n, l) {
|
|
225
|
+
const e = C();
|
|
226
|
+
g(e, n, l);
|
|
227
|
+
}
|
|
228
|
+
function E(n) {
|
|
229
|
+
}
|
|
230
|
+
function b(n) {
|
|
231
|
+
}
|
|
232
|
+
return {
|
|
233
|
+
applyColumnSorter: P,
|
|
234
|
+
collectionFilterableColumns: N,
|
|
235
|
+
applySortableColumns: g,
|
|
236
|
+
collectionSortableColumns: C,
|
|
237
|
+
columnContext: r,
|
|
238
|
+
hasLeftFixedColumn: A,
|
|
239
|
+
hasRightFixedColumn: D,
|
|
240
|
+
updateColumnRenderContext: O,
|
|
241
|
+
updateColumnSettingIcon: _,
|
|
242
|
+
sortFromServer: E,
|
|
243
|
+
createSortConditions: b
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
function q(i, a, u, r, d, h, f, _) {
|
|
247
|
+
const O = V(r.value - 1 + d), A = V(0), { renderDataRow: D } = h, S = f ? f.renderGroupRow : D, M = _ ? _.renderSummaryRow : D;
|
|
248
|
+
function I(C) {
|
|
249
|
+
let g = D;
|
|
250
|
+
return C.__fv_data_grid_group_row__ && (g = S), C.__fv_data_grid_group_summary__ && (g = M), g;
|
|
251
|
+
}
|
|
252
|
+
function W(C, g, P, E) {
|
|
253
|
+
const { dataView: b } = u, n = [];
|
|
254
|
+
if (b.value.length > 0) {
|
|
255
|
+
const l = E ? Date.now().toString() : "";
|
|
256
|
+
let e = C, t = 0;
|
|
257
|
+
const o = g - C + 1;
|
|
258
|
+
for (; n.length < o && e < b.value.length; ) {
|
|
259
|
+
const c = b.value[e], m = b.value[e - 1] || P, y = n[t - 1], w = m ? (m.__fv_data_position__ || 0) + (m.__fv_data_height__ || 0) : 0, s = I(c)(c, m, y, e, w, a.value, n);
|
|
260
|
+
s.refreshKey = l, n.push(s), t++, e++;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return A.value = n.length > 0 ? n[0].index : 0, O.value = n.length > 0 ? n[n.length - 1].index : 0, n;
|
|
264
|
+
}
|
|
265
|
+
function N(C, g, P) {
|
|
266
|
+
const E = g.groupField || "", { groupValue: b, raw: n } = g;
|
|
267
|
+
u[C](E, b, n.groupParents || []);
|
|
268
|
+
const { dataView: l } = u, e = P[0].index, t = Math.min(e + r.value + d + 1, l.value.length - 1);
|
|
269
|
+
return W(e, t);
|
|
270
|
+
}
|
|
271
|
+
return { getVisualData: W, maxVisibleRowIndex: O, minVisibleRowIndex: A, toggleGroupRow: N };
|
|
272
|
+
}
|
|
273
|
+
function J() {
|
|
274
|
+
function i(a) {
|
|
275
|
+
return {
|
|
276
|
+
title: "行配置",
|
|
277
|
+
description: "",
|
|
278
|
+
properties: {
|
|
279
|
+
customRowStyle: {
|
|
280
|
+
title: "行样式",
|
|
281
|
+
type: "string",
|
|
282
|
+
description: "自定义行样式",
|
|
283
|
+
$converter: "/converter/row-option.converter",
|
|
284
|
+
editor: {
|
|
285
|
+
type: "code-editor",
|
|
286
|
+
language: "javascript",
|
|
287
|
+
leftTemplate: () => F(z, null, [F("h5", null, [G("示例代码")]), F("pre", null, [`
|
|
288
|
+
(dataItem) => {
|
|
289
|
+
if(dataItem.code === '0001') {
|
|
290
|
+
return {
|
|
291
|
+
class: {
|
|
292
|
+
'text-align': true,
|
|
293
|
+
'text-red': true
|
|
294
|
+
},
|
|
295
|
+
style: {
|
|
296
|
+
'background-color': '#000',
|
|
297
|
+
'font-size': '1rem'
|
|
298
|
+
}
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
return {};
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
注: dataItem 行数据
|
|
305
|
+
`])])
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
customCellStyle: {
|
|
309
|
+
title: "单元格样式",
|
|
310
|
+
type: "string",
|
|
311
|
+
description: "自定义单元格样式",
|
|
312
|
+
$converter: "/converter/row-option.converter",
|
|
313
|
+
editor: {
|
|
314
|
+
type: "code-editor",
|
|
315
|
+
language: "javascript",
|
|
316
|
+
leftTemplate: () => F(z, null, [F("h5", null, [G("示例代码")]), F("pre", null, [`
|
|
317
|
+
(cell, row) => {
|
|
318
|
+
if(cell.data === '0002') {
|
|
319
|
+
return {
|
|
320
|
+
class: {
|
|
321
|
+
'text-align': true,
|
|
322
|
+
'text-red': true
|
|
323
|
+
},
|
|
324
|
+
style: {
|
|
325
|
+
'background-color': '#000',
|
|
326
|
+
'font-size': '1rem'
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
}
|
|
330
|
+
return {};
|
|
331
|
+
}
|
|
332
|
+
注: cell.data 单元格数据
|
|
333
|
+
cell.column 列数据
|
|
334
|
+
row.raw 行数据
|
|
335
|
+
`])])
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
}
|
|
341
|
+
return {
|
|
342
|
+
getRowOptionProperties: i
|
|
343
|
+
};
|
|
344
|
+
}
|
|
345
|
+
function Q() {
|
|
346
|
+
function i(a) {
|
|
347
|
+
return {
|
|
348
|
+
title: "填充列宽",
|
|
349
|
+
description: "",
|
|
350
|
+
properties: {
|
|
351
|
+
fitColumns: {
|
|
352
|
+
title: "启用",
|
|
353
|
+
type: "boolean",
|
|
354
|
+
description: "启用填充列宽",
|
|
355
|
+
$converter: "/converter/column-option.converter",
|
|
356
|
+
refreshPanelAfterChanged: !0
|
|
357
|
+
}
|
|
358
|
+
// fitMode: {
|
|
359
|
+
// description: '',
|
|
360
|
+
// title: '填充模式',
|
|
361
|
+
// type: 'enum',
|
|
362
|
+
// visible: !!propertyData.column?.fitColumns,
|
|
363
|
+
// $converter: '/converter/column-option.converter',
|
|
364
|
+
// editor: {
|
|
365
|
+
// data: [
|
|
366
|
+
// { id: 'average', name: '平分' },
|
|
367
|
+
// { id: 'expand', name: '等比' }
|
|
368
|
+
// ]
|
|
369
|
+
// }
|
|
370
|
+
// },
|
|
371
|
+
},
|
|
372
|
+
setPropertyRelates(u, r) {
|
|
373
|
+
switch (u && u.propertyID) {
|
|
374
|
+
case "fitColumns": {
|
|
375
|
+
r.fit = u.propertyValue, r.columns && (u.propertyValue ? r.columns.forEach((d) => {
|
|
376
|
+
d.resizable = !1;
|
|
377
|
+
}) : r.columns.forEach((d) => {
|
|
378
|
+
d.resizable = !0;
|
|
379
|
+
}));
|
|
380
|
+
break;
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
return { getColumnOptionProperties: i };
|
|
387
|
+
}
|
|
388
|
+
function X() {
|
|
389
|
+
function i(a) {
|
|
390
|
+
return {
|
|
391
|
+
title: "操作列",
|
|
392
|
+
description: "",
|
|
393
|
+
properties: {
|
|
394
|
+
enable: {
|
|
395
|
+
title: "启用",
|
|
396
|
+
type: "boolean",
|
|
397
|
+
$converter: "/converter/column-command.converter",
|
|
398
|
+
description: "启用操作列",
|
|
399
|
+
refreshPanelAfterChanged: !0
|
|
400
|
+
}
|
|
401
|
+
// commands: {
|
|
402
|
+
// description: '',
|
|
403
|
+
// title: '命令',
|
|
404
|
+
// type: 'enum',
|
|
405
|
+
// editor: {
|
|
406
|
+
// data: [
|
|
407
|
+
// { id: 'edit', name: '编辑' },
|
|
408
|
+
// { id: 'remove', name: '删除' }
|
|
409
|
+
// ]
|
|
410
|
+
// }
|
|
411
|
+
// },
|
|
412
|
+
// formatter: {
|
|
413
|
+
// title: '操作列模板',
|
|
414
|
+
// type: 'string',
|
|
415
|
+
// visible: false,
|
|
416
|
+
// description: '自定义操作列模板',
|
|
417
|
+
// refreshPanelAfterChanged: true,
|
|
418
|
+
// editor: {
|
|
419
|
+
// type: "code-editor",
|
|
420
|
+
// language: "html",
|
|
421
|
+
// }
|
|
422
|
+
// }
|
|
423
|
+
}
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
return { getCommandColumnProperties: i };
|
|
427
|
+
}
|
|
428
|
+
function Z() {
|
|
429
|
+
function i(a) {
|
|
430
|
+
return {
|
|
431
|
+
title: "合计行",
|
|
432
|
+
description: "",
|
|
433
|
+
properties: {
|
|
434
|
+
enable: {
|
|
435
|
+
title: "启用",
|
|
436
|
+
type: "boolean",
|
|
437
|
+
description: "启用合计行",
|
|
438
|
+
$converter: "/converter/summary.converter",
|
|
439
|
+
refreshPanelAfterChanged: !0
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
};
|
|
443
|
+
}
|
|
444
|
+
return { getSummaryProperties: i };
|
|
445
|
+
}
|
|
446
|
+
function j() {
|
|
447
|
+
function i(a) {
|
|
448
|
+
var u;
|
|
449
|
+
return {
|
|
450
|
+
title: "分组",
|
|
451
|
+
description: "",
|
|
452
|
+
properties: {
|
|
453
|
+
enable: {
|
|
454
|
+
title: "启用",
|
|
455
|
+
type: "boolean",
|
|
456
|
+
description: "启用分组",
|
|
457
|
+
$converter: "/converter/group.converter",
|
|
458
|
+
refreshPanelAfterChanged: !0
|
|
459
|
+
},
|
|
460
|
+
showSummary: {
|
|
461
|
+
title: "显示分组合计行",
|
|
462
|
+
type: "boolean",
|
|
463
|
+
visible: !!((u = a.group) != null && u.enable),
|
|
464
|
+
$converter: "/converter/group.converter",
|
|
465
|
+
description: "显示分组合计行"
|
|
466
|
+
}
|
|
467
|
+
// groupFields: {
|
|
468
|
+
// title: '启用',
|
|
469
|
+
// type: 'boolean',
|
|
470
|
+
// description: '启用分组',
|
|
471
|
+
// refreshPanelAfterChanged: true
|
|
472
|
+
// }
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
}
|
|
476
|
+
return { getGroupProperties: i };
|
|
477
|
+
}
|
|
478
|
+
function x() {
|
|
479
|
+
function i(a) {
|
|
480
|
+
var r, d;
|
|
481
|
+
const u = [
|
|
482
|
+
{
|
|
483
|
+
label: "onClickRow",
|
|
484
|
+
name: "行点击事件"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
label: "onSelectionChange",
|
|
488
|
+
name: "行切换事件"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
label: "onDoubleClickRow",
|
|
492
|
+
name: "行双击事件"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
label: "onFilterChanged",
|
|
496
|
+
name: "过滤事件"
|
|
497
|
+
}
|
|
498
|
+
];
|
|
499
|
+
return a.type !== "tree-grid" && u.push(
|
|
500
|
+
{
|
|
501
|
+
label: "onSortChanged",
|
|
502
|
+
name: "排序事件"
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
label: "onSelectItem",
|
|
506
|
+
name: "选中行事件"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
label: "onUnSelectItem",
|
|
510
|
+
name: "取消选中行事件"
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
label: "onSelectAll",
|
|
514
|
+
name: "全选事件"
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
label: "onUnSelectAll",
|
|
518
|
+
name: "取消全选事件"
|
|
519
|
+
}
|
|
520
|
+
), ((r = a.pagination) == null ? void 0 : r.enable) !== !1 && a.type !== "tree-grid" && u.push(
|
|
521
|
+
{
|
|
522
|
+
label: "onPageIndexChanged",
|
|
523
|
+
name: "切换页码事件"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
label: "onPageSizeChanged",
|
|
527
|
+
name: "分页条数变化事件"
|
|
528
|
+
}
|
|
529
|
+
), (d = a.command) != null && d.enable && u.push(
|
|
530
|
+
{
|
|
531
|
+
label: "onClickEditCommand",
|
|
532
|
+
name: "操作列编辑事件"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
label: "onClickDeleteCommand",
|
|
536
|
+
name: "操作列删除事件"
|
|
537
|
+
}
|
|
538
|
+
), u;
|
|
539
|
+
}
|
|
540
|
+
return { initEvent: i };
|
|
541
|
+
}
|
|
542
|
+
function ee() {
|
|
543
|
+
function i(a) {
|
|
544
|
+
var u, r, d;
|
|
545
|
+
return {
|
|
546
|
+
title: "多选配置",
|
|
547
|
+
$converter: "/converter/grid-selection.converter",
|
|
548
|
+
parentPropertyID: "editor",
|
|
549
|
+
properties: {
|
|
550
|
+
multiSelect: {
|
|
551
|
+
title: "启用多选",
|
|
552
|
+
type: "boolean",
|
|
553
|
+
refreshPanelAfterChanged: !0
|
|
554
|
+
},
|
|
555
|
+
showCheckbox: {
|
|
556
|
+
visible: !!((u = a.selection) != null && u.multiSelect),
|
|
557
|
+
$converter: "/converter/grid-selection.converter",
|
|
558
|
+
title: "显示复选框",
|
|
559
|
+
type: "boolean",
|
|
560
|
+
readonly: !0,
|
|
561
|
+
refreshPanelAfterChanged: !0
|
|
562
|
+
},
|
|
563
|
+
showSelectAll: {
|
|
564
|
+
visible: !!((r = a.selection) != null && r.multiSelect) && !!((d = a.selection) != null && d.showCheckbox),
|
|
565
|
+
title: "显示全选",
|
|
566
|
+
type: "boolean"
|
|
567
|
+
}
|
|
568
|
+
// keepSelectingOnPaging: {
|
|
569
|
+
// visible: !!propertyData.selection?.multiSelect && propertyData.type !== 'tree-grid',
|
|
570
|
+
// title: '启用跨页多选',
|
|
571
|
+
// type: 'boolean'
|
|
572
|
+
// },
|
|
573
|
+
// showSelection: {
|
|
574
|
+
// title: '显示已选数据数量',
|
|
575
|
+
// type: 'boolean'
|
|
576
|
+
// }
|
|
577
|
+
},
|
|
578
|
+
setPropertyRelates(h, f) {
|
|
579
|
+
switch (h && h.propertyID) {
|
|
580
|
+
case "multiSelect":
|
|
581
|
+
a.selection.showCheckbox = h.propertyValue;
|
|
582
|
+
break;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
};
|
|
586
|
+
}
|
|
587
|
+
return { getSelection: i };
|
|
588
|
+
}
|
|
589
|
+
function te() {
|
|
590
|
+
function i(a) {
|
|
591
|
+
var u, r;
|
|
592
|
+
return {
|
|
593
|
+
title: "行号配置",
|
|
594
|
+
$converter: "/converter/row-number.converter",
|
|
595
|
+
parentPropertyID: "rowNumber",
|
|
596
|
+
properties: {
|
|
597
|
+
enable: {
|
|
598
|
+
title: "显示行号",
|
|
599
|
+
type: "boolean",
|
|
600
|
+
refreshPanelAfterChanged: !0
|
|
601
|
+
},
|
|
602
|
+
width: {
|
|
603
|
+
visible: !!((u = a.rowNumber) != null && u.enable),
|
|
604
|
+
title: "宽度",
|
|
605
|
+
type: "number"
|
|
606
|
+
},
|
|
607
|
+
heading: {
|
|
608
|
+
visible: !!((r = a.rowNumber) != null && r.enable),
|
|
609
|
+
title: "标题",
|
|
610
|
+
type: "string"
|
|
611
|
+
}
|
|
612
|
+
}
|
|
613
|
+
};
|
|
614
|
+
}
|
|
615
|
+
return { getRowNumber: i };
|
|
616
|
+
}
|
|
617
|
+
function re() {
|
|
618
|
+
function i(a, u) {
|
|
619
|
+
var r, d;
|
|
620
|
+
return {
|
|
621
|
+
title: "分页",
|
|
622
|
+
$converter: "/converter/pagination.converter",
|
|
623
|
+
parentPropertyID: "pagination",
|
|
624
|
+
properties: {
|
|
625
|
+
enable: {
|
|
626
|
+
title: "启用分页",
|
|
627
|
+
type: "boolean",
|
|
628
|
+
refreshPanelAfterChanged: !0,
|
|
629
|
+
editor: {
|
|
630
|
+
readonly: u
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
// mode: {
|
|
634
|
+
// visible: propertyData.pagination?.enable || false,
|
|
635
|
+
// title: '分页交互模式',
|
|
636
|
+
// type: "enum",
|
|
637
|
+
// editor: {
|
|
638
|
+
// type: "combo-list",
|
|
639
|
+
// textField: "value",
|
|
640
|
+
// valueField: "key",
|
|
641
|
+
// data: [{ "key": "client", "value": "客户端" }, { "key": "server", "value": "服务器端" }]
|
|
642
|
+
// }
|
|
643
|
+
// },
|
|
644
|
+
showIndex: {
|
|
645
|
+
visible: ((r = a.pagination) == null ? void 0 : r.enable) || !1,
|
|
646
|
+
title: "显示页码",
|
|
647
|
+
type: "boolean"
|
|
648
|
+
},
|
|
649
|
+
showLimits: {
|
|
650
|
+
visible: ((d = a.pagination) == null ? void 0 : d.enable) || !1,
|
|
651
|
+
title: "显示分页条数",
|
|
652
|
+
type: "boolean"
|
|
653
|
+
}
|
|
654
|
+
}
|
|
655
|
+
};
|
|
656
|
+
}
|
|
657
|
+
return { getPagination: i };
|
|
658
|
+
}
|
|
659
|
+
function ne() {
|
|
660
|
+
function i() {
|
|
661
|
+
return {
|
|
662
|
+
showStripe: {
|
|
663
|
+
title: "显示条纹",
|
|
664
|
+
type: "boolean",
|
|
665
|
+
description: "是否显示条纹"
|
|
666
|
+
},
|
|
667
|
+
showBorder: {
|
|
668
|
+
title: "显示边框",
|
|
669
|
+
type: "boolean",
|
|
670
|
+
description: "是否显示边框"
|
|
671
|
+
},
|
|
672
|
+
showSetting: {
|
|
673
|
+
title: "显示设置按钮",
|
|
674
|
+
type: "boolean",
|
|
675
|
+
description: "是否显示设置按钮"
|
|
676
|
+
},
|
|
677
|
+
emptyTemplate: {
|
|
678
|
+
title: "空模板",
|
|
679
|
+
type: "string",
|
|
680
|
+
description: "空模板",
|
|
681
|
+
editor: {
|
|
682
|
+
type: "code-editor",
|
|
683
|
+
language: "html"
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
};
|
|
687
|
+
}
|
|
688
|
+
function a(r, d) {
|
|
689
|
+
return {
|
|
690
|
+
title: "外观",
|
|
691
|
+
properties: {
|
|
692
|
+
class: {
|
|
693
|
+
title: "class样式",
|
|
694
|
+
type: "string",
|
|
695
|
+
description: "组件的class样式"
|
|
696
|
+
},
|
|
697
|
+
columns: {
|
|
698
|
+
title: "列设置",
|
|
699
|
+
description: "列设置",
|
|
700
|
+
type: "array",
|
|
701
|
+
editor: {
|
|
702
|
+
type: "grid-field-editor",
|
|
703
|
+
viewModelId: d,
|
|
704
|
+
gridData: r,
|
|
705
|
+
getLatestGridData: (h) => r
|
|
706
|
+
},
|
|
707
|
+
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
708
|
+
refreshPanelAfterChanged: !0
|
|
709
|
+
},
|
|
710
|
+
...i()
|
|
711
|
+
// useBlankWhenDataIsEmpty: {
|
|
712
|
+
// title: '空数据表格显示空白行',
|
|
713
|
+
// description: '表格没有数据时是否显示空白行',
|
|
714
|
+
// type: 'boolean',
|
|
715
|
+
// refreshPanelAfterChanged: true
|
|
716
|
+
// },
|
|
717
|
+
// emptyDataHeight: {
|
|
718
|
+
// title: '空数据高度',
|
|
719
|
+
// type: 'number',
|
|
720
|
+
// description: '空数据行高度设置',
|
|
721
|
+
// min: 1,
|
|
722
|
+
// max: 1000
|
|
723
|
+
// },
|
|
724
|
+
},
|
|
725
|
+
setPropertyRelates(h, f) {
|
|
726
|
+
switch (h && h.propertyID) {
|
|
727
|
+
case "useBlankWhenDataIsEmpty":
|
|
728
|
+
r.emptyDataHeight = r.useBlankWhenDataIsEmpty ? 36 : 240;
|
|
729
|
+
break;
|
|
730
|
+
case "columns":
|
|
731
|
+
r.columns = h.propertyValue || [];
|
|
732
|
+
break;
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
function u(r, d) {
|
|
738
|
+
return {
|
|
739
|
+
title: "外观",
|
|
740
|
+
properties: {
|
|
741
|
+
class: {
|
|
742
|
+
title: "class样式",
|
|
743
|
+
type: "string",
|
|
744
|
+
description: "组件的CSS样式"
|
|
745
|
+
},
|
|
746
|
+
columns: {
|
|
747
|
+
title: "列设置",
|
|
748
|
+
description: "列设置",
|
|
749
|
+
$converter: "/converter/items-count.converter",
|
|
750
|
+
editor: {
|
|
751
|
+
type: "grid-field-editor",
|
|
752
|
+
viewModelId: d,
|
|
753
|
+
gridData: r,
|
|
754
|
+
gridType: "tree-grid-column"
|
|
755
|
+
},
|
|
756
|
+
// 这个属性,标记当属性变更得时候触发重新更新属性
|
|
757
|
+
refreshPanelAfterChanged: !0
|
|
758
|
+
},
|
|
759
|
+
...i()
|
|
760
|
+
// showTreeNodeIcons: {
|
|
761
|
+
// title: '显示图标',
|
|
762
|
+
// type: "boolean",
|
|
763
|
+
// description: '是否显示图标'
|
|
764
|
+
// },
|
|
765
|
+
// showSetting: {
|
|
766
|
+
// title: '显示设置按钮',
|
|
767
|
+
// type: "boolean",
|
|
768
|
+
// description: '是否显示设置按钮',
|
|
769
|
+
// visible:false
|
|
770
|
+
// }
|
|
771
|
+
},
|
|
772
|
+
setPropertyRelates(h, f) {
|
|
773
|
+
switch (h && h.propertyID) {
|
|
774
|
+
case "useBlankWhenDataIsEmpty":
|
|
775
|
+
r.emptyDataHeight = r.useBlankWhenDataIsEmpty ? 36 : 240;
|
|
776
|
+
break;
|
|
777
|
+
case "fields":
|
|
778
|
+
r.fields = h.propertyValue || [];
|
|
779
|
+
break;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
return { getDataGrid: a, getTreeGrid: u };
|
|
785
|
+
}
|
|
786
|
+
function ae() {
|
|
787
|
+
function i(a) {
|
|
788
|
+
return {
|
|
789
|
+
title: "排序",
|
|
790
|
+
description: "",
|
|
791
|
+
properties: {
|
|
792
|
+
mode: {
|
|
793
|
+
title: "类型",
|
|
794
|
+
type: "enum",
|
|
795
|
+
description: "排序类型",
|
|
796
|
+
$converter: "/converter/grid-sort.converter",
|
|
797
|
+
editor: {
|
|
798
|
+
data: [
|
|
799
|
+
{ id: "client", name: "客户端" },
|
|
800
|
+
{ id: "server", name: "服务端" }
|
|
801
|
+
]
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
// multiSort: {
|
|
805
|
+
// title: '启用多列排序',
|
|
806
|
+
// type: 'boolean',
|
|
807
|
+
// description: '启用多列排序',
|
|
808
|
+
// $converter: '/converter/grid-sort.converter'
|
|
809
|
+
// }
|
|
810
|
+
}
|
|
811
|
+
};
|
|
812
|
+
}
|
|
813
|
+
return { getSort: i };
|
|
814
|
+
}
|
|
815
|
+
function le() {
|
|
816
|
+
function i(a) {
|
|
817
|
+
return {
|
|
818
|
+
title: "过滤",
|
|
819
|
+
description: "",
|
|
820
|
+
properties: {
|
|
821
|
+
mode: {
|
|
822
|
+
title: "类型",
|
|
823
|
+
type: "enum",
|
|
824
|
+
description: "过滤类型",
|
|
825
|
+
$converter: "/converter/grid-filter.converter",
|
|
826
|
+
editor: {
|
|
827
|
+
data: [
|
|
828
|
+
{ id: "client", name: "客户端" },
|
|
829
|
+
{ id: "server", name: "服务端" }
|
|
830
|
+
]
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
};
|
|
835
|
+
}
|
|
836
|
+
return { getFilter: i };
|
|
837
|
+
}
|
|
838
|
+
export {
|
|
839
|
+
ne as useAppearance,
|
|
840
|
+
Q as useColumnOption,
|
|
841
|
+
X as useCommandOption,
|
|
842
|
+
x as useDataGridEvent,
|
|
843
|
+
Y as useDesignerColumn,
|
|
844
|
+
K as useDesignerFitColumn,
|
|
845
|
+
q as useDesignerVisualData,
|
|
846
|
+
le as useFilter,
|
|
847
|
+
j as useGroup,
|
|
848
|
+
re as usePagination,
|
|
849
|
+
te as useRowNumber,
|
|
850
|
+
J as useRowOption,
|
|
851
|
+
ee as useSelection,
|
|
852
|
+
ae as useSort,
|
|
853
|
+
Z as useSummary
|
|
854
|
+
};
|