orion-design 1.0.1 → 1.0.2

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,19 +1,20 @@
1
- import { isString as q, isArray as ge, isFunction as he } from "lodash-es";
2
- import { defineComponent as N, ref as be, computed as J, createVNode as r, createTextVNode as fe, isVNode as Z } from "vue";
3
- import { withInstall as we } from "../_util/vue/install.js";
4
- import { ElTable as Se, ElTableColumn as v, ElButton as Ce } from "element-plus";
1
+ import { isString as z, isArray as me, isFunction as ge } from "lodash-es";
2
+ import { defineComponent as O, ref as he, computed as be, createVNode as r, createTextVNode as fe, isVNode as G } from "vue";
3
+ import { withInstall as Se } from "../_util/vue/install.js";
4
+ import { ElTable as we, ElTableColumn as v, ElButton as Ce } from "element-plus";
5
5
  import ye from "../_antd_util/classNames.js";
6
- import { number2string as xe, formatDate as K, getSingleCodeContent as Ae, getMultiCodeContent as Ee } from "./utils/index.js";
6
+ import { number2string as xe, formatDate as H, getSingleCodeContent as Ae, getMultiCodeContent as Ee } from "./utils/index.js";
7
7
  import Be from "dayjs";
8
8
  import { S as Oe } from "../../index-CvcZkdiG.js";
9
- import Ne from "../../error/OrionError.js";
10
- import ve from "./hooks/useColumns.js";
9
+ import ve from "../../error/OrionError.js";
10
+ import Ne from "./hooks/useColumns.js";
11
11
  import De from "../Pagetable/hooks/useCode.js";
12
- import { _ as _e, e as Re, c as Ve, f as Te, d as ke, a as Ie, b as Pe } from "../../LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js";
13
- function W(l) {
14
- return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !Z(l);
12
+ import { _ as Re, e as Ve, c as Te, f as ke, d as _e, a as Ie, b as Pe } from "../../LovInput.vue_vue_type_script_setup_true_lang-C__ELopU.js";
13
+ import { default as Rt } from "./hooks/useEdittable.js";
14
+ function Q(l) {
15
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !G(l);
15
16
  }
16
- const Me = () => ({
17
+ const je = () => ({
17
18
  data: Array,
18
19
  showRowNumber: {
19
20
  type: Boolean,
@@ -32,62 +33,44 @@ const Me = () => ({
32
33
  rowStyle: [Object, Function],
33
34
  cellClassName: [String, Function],
34
35
  cellStyle: [Object, Function]
35
- }), T = (l = !0, h, A) => l ? h ? h(A) : !0 : !1, X = (l, h) => q(l) || ge(l) ? De(l).value : he(l) ? l(h) : null, je = /* @__PURE__ */ N({
36
+ }), k = (l = !0, h, A) => l ? h ? h(A) : !0 : !1, q = (l, h) => z(l) || me(l) ? De(l).value : ge(l) ? l(h) : null, Me = /* @__PURE__ */ O({
36
37
  name: "OEdittable",
37
38
  inheritAttrs: !1,
38
- props: Me(),
39
+ props: je(),
39
40
  emits: ["selectionChange", "currentRowChange", "rowClick", "rowDblclick", "cellClick", "cellDblclick"],
40
41
  setup(l, {
41
42
  slots: h,
42
43
  attrs: A,
43
- emit: w,
44
+ emit: S,
44
45
  expose: B
45
46
  }) {
46
- const R = be(), I = J(() => ({})), k = ve(h), $ = J(() => {
47
- let O = [];
48
- l.showRowNumber && O.push({
49
- type: "__showRowNumber__"
50
- }), l.selectionMode && O.push({
51
- type: "__selectionMode__"
52
- });
53
- function F(P) {
54
- if (P)
55
- for (let M = 0; M < P.length; M++) {
56
- const j = P[M];
57
- j.type === "OPagetableColumngroup" ? F(j.children) : O.push({
58
- ...j
59
- });
60
- }
61
- }
62
- return F(k.value), O;
63
- });
47
+ const R = he(), _ = be(() => ({})), I = Ne(h);
64
48
  return B({
65
49
  clearSelection: () => {
66
50
  R.value.clearSelection();
67
51
  },
68
52
  getSelectionRows: () => R.value.getSelectionRows(),
69
- toggleRowSelection: (...O) => R.value.toggleRowSelection(...O),
53
+ toggleRowSelection: (...V) => R.value.toggleRowSelection(...V),
70
54
  toggleAllSelection: () => R.value.toggleAllSelection(),
71
- setCurrentRow: (...O) => R.value.setCurrentRow(...O),
72
- scrollTo: (...O) => R.value.scrollTo(...O),
73
- columns: $
55
+ setCurrentRow: (...V) => R.value.setCurrentRow(...V),
56
+ scrollTo: (...V) => R.value.scrollTo(...V)
74
57
  }), () => {
75
58
  const {
76
- data: O
59
+ data: V
77
60
  } = l, {
78
- selectionMode: F = !1
61
+ selectionMode: J = !1
79
62
  } = l, {
80
- showRowNumber: P = !0
63
+ showRowNumber: K = !0
81
64
  } = l, {
82
- currentRowMode: M = !1
65
+ currentRowMode: W = !1
83
66
  } = l, {
84
- size: j = "default"
67
+ size: X = "default"
85
68
  } = l, {
86
- rowClassName: U,
87
- rowStyle: L,
88
- cellClassName: z,
89
- cellStyle: Y
90
- } = l, ee = ye("orion-edittable"), te = () => r(v, {
69
+ rowClassName: P,
70
+ rowStyle: j,
71
+ cellClassName: M,
72
+ cellStyle: $
73
+ } = l, Z = ye("orion-edittable"), ee = () => r(v, {
91
74
  type: "index",
92
75
  label: "No",
93
76
  headerAlign: "center",
@@ -96,13 +79,13 @@ const Me = () => ({
96
79
  fixed: "left",
97
80
  showOverflowTooltip: !0,
98
81
  index: (e) => e + 1
99
- }, null), le = () => r(v, {
82
+ }, null), te = () => r(v, {
100
83
  type: "selection",
101
84
  headerAlign: "center",
102
85
  align: "center",
103
86
  width: 40,
104
87
  fixed: "left"
105
- }, null), ne = (e) => {
88
+ }, null), le = (e) => {
106
89
  const {
107
90
  name: t,
108
91
  head: i,
@@ -112,7 +95,7 @@ const Me = () => ({
112
95
  fixed: g,
113
96
  editable: s,
114
97
  cellEditable: d,
115
- maxlength: u,
98
+ maxlength: c,
116
99
  placeholder: b
117
100
  } = e;
118
101
  return r(v, {
@@ -125,27 +108,27 @@ const Me = () => ({
125
108
  showOverflowTooltip: !0
126
109
  }, {
127
110
  header: () => {
128
- var c, a;
129
- return (a = (c = e.children) == null ? void 0 : c.head) == null ? void 0 : a.call(c);
111
+ var u, a;
112
+ return (a = (u = e.children) == null ? void 0 : u.head) == null ? void 0 : a.call(u);
130
113
  },
131
- default: (c) => {
114
+ default: (u) => {
132
115
  const {
133
116
  row: a,
134
117
  column: n
135
- } = c, o = T(s, d, a), p = a[n.property];
136
- return o ? r(_e, {
118
+ } = u, o = k(s, d, a), p = a[n.property];
119
+ return o ? r(Re, {
137
120
  modelValue: p,
138
121
  "onUpdate:modelValue": (E) => {
139
122
  a[n.property] = E;
140
123
  },
141
- maxlength: u,
124
+ maxlength: c,
142
125
  placeholder: b
143
126
  }, null) : r("div", {
144
127
  class: "cell-stringinput"
145
128
  }, [p]);
146
129
  }
147
130
  });
148
- }, oe = (e) => {
131
+ }, ne = (e) => {
149
132
  const {
150
133
  name: t,
151
134
  head: i,
@@ -155,9 +138,9 @@ const Me = () => ({
155
138
  fixed: g,
156
139
  editable: s,
157
140
  cellEditable: d,
158
- maxlength: u,
141
+ maxlength: c,
159
142
  placeholder: b,
160
- fillMapping: c
143
+ fillMapping: u
161
144
  } = e;
162
145
  return r(v, {
163
146
  label: i,
@@ -173,49 +156,49 @@ const Me = () => ({
173
156
  return (n = (a = e.children) == null ? void 0 : a.head) == null ? void 0 : n.call(a);
174
157
  },
175
158
  default: (a) => {
176
- var f, S;
159
+ var f, w;
177
160
  const {
178
161
  row: n,
179
162
  column: o
180
- } = a, p = (S = (f = e.children) == null ? void 0 : f.default) == null ? void 0 : S.call(f, {
163
+ } = a, p = (w = (f = e.children) == null ? void 0 : f.default) == null ? void 0 : w.call(f, {
181
164
  rowData: n,
182
165
  column: o,
183
166
  rowIndex: a.$index
184
- }), E = T(s, d, n), D = n[o.property];
185
- return E ? r(Re, {
186
- modelValue: D,
167
+ }), E = k(s, d, n), N = n[o.property];
168
+ return E ? r(Ve, {
169
+ modelValue: N,
187
170
  "onUpdate:modelValue": (y) => {
188
171
  n[o.property] = y;
189
172
  },
190
- maxlength: u,
173
+ maxlength: c,
191
174
  placeholder: b,
192
175
  onClear: () => {
193
- if (q(c)) {
194
- const y = c.split(",");
195
- for (let _ = 0; _ < y.length; _++) {
196
- const V = y[_].split(":")[0].trim();
197
- n[V] = void 0;
176
+ if (z(u)) {
177
+ const y = u.split(",");
178
+ for (let D = 0; D < y.length; D++) {
179
+ const T = y[D].split(":")[0].trim();
180
+ n[T] = void 0;
198
181
  }
199
182
  }
200
183
  },
201
184
  onSelect: (y) => {
202
- if (q(c)) {
203
- const _ = c.split(",");
204
- for (let V = 0; V < _.length; V++) {
205
- const H = _[V].split(":")[0].trim(), Q = _[V].split(":")[1].trim(), me = y[Q];
206
- n[H] = me;
185
+ if (z(u)) {
186
+ const D = u.split(",");
187
+ for (let T = 0; T < D.length; T++) {
188
+ const F = D[T].split(":")[0].trim(), L = D[T].split(":")[1].trim(), pe = y[L];
189
+ n[F] = pe;
207
190
  }
208
191
  } else
209
- c && c(n, y);
192
+ u && u(n, y);
210
193
  }
211
- }, W(p) ? p : {
194
+ }, Q(p) ? p : {
212
195
  default: () => [p]
213
196
  }) : r("div", {
214
197
  class: "cell-lovinput"
215
- }, [D]);
198
+ }, [N]);
216
199
  }
217
200
  });
218
- }, re = (e) => {
201
+ }, oe = (e) => {
219
202
  const {
220
203
  name: t,
221
204
  head: i,
@@ -236,26 +219,26 @@ const Me = () => ({
236
219
  showOverflowTooltip: !0
237
220
  }, {
238
221
  header: () => {
239
- var u, b;
240
- return (b = (u = e.children) == null ? void 0 : u.head) == null ? void 0 : b.call(u);
222
+ var c, b;
223
+ return (b = (c = e.children) == null ? void 0 : c.head) == null ? void 0 : b.call(c);
241
224
  },
242
- default: (u) => {
225
+ default: (c) => {
243
226
  const {
244
227
  row: b,
245
- column: c
246
- } = u, a = T(s, d, b), n = b[c.property];
228
+ column: u
229
+ } = c, a = k(s, d, b), n = b[u.property];
247
230
  return r("div", {
248
231
  class: "cell-checkbox"
249
- }, [r(Ve, {
232
+ }, [r(Te, {
250
233
  modelValue: n,
251
234
  "onUpdate:modelValue": (o) => {
252
- b[c.property] = o;
235
+ b[u.property] = o;
253
236
  },
254
237
  disabled: !a
255
238
  }, null)]);
256
239
  }
257
240
  });
258
- }, ie = (e) => {
241
+ }, re = (e) => {
259
242
  const {
260
243
  name: t,
261
244
  head: i,
@@ -265,15 +248,15 @@ const Me = () => ({
265
248
  fixed: g,
266
249
  thousandsSeparator: s = !0,
267
250
  percentage: d = !1,
268
- editable: u,
251
+ editable: c,
269
252
  cellEditable: b,
270
- placeholder: c,
253
+ placeholder: u,
271
254
  min: a,
272
255
  max: n,
273
256
  step: o,
274
257
  stepStrictly: p,
275
258
  precision: E,
276
- controls: D = !1,
259
+ controls: N = !1,
277
260
  controlsPosition: f
278
261
  } = e;
279
262
  return r(v, {
@@ -286,33 +269,33 @@ const Me = () => ({
286
269
  showOverflowTooltip: !0
287
270
  }, {
288
271
  header: () => {
289
- var S, y;
290
- return (y = (S = e.children) == null ? void 0 : S.head) == null ? void 0 : y.call(S);
272
+ var w, y;
273
+ return (y = (w = e.children) == null ? void 0 : w.head) == null ? void 0 : y.call(w);
291
274
  },
292
- default: (S) => {
275
+ default: (w) => {
293
276
  const {
294
277
  row: y,
295
- column: _
296
- } = S, V = T(u, b, y), H = y[_.property];
297
- return V ? r(Te, {
298
- modelValue: H,
299
- "onUpdate:modelValue": (Q) => {
300
- y[_.property] = Q;
278
+ column: D
279
+ } = w, T = k(c, b, y), F = y[D.property];
280
+ return T ? r(ke, {
281
+ modelValue: F,
282
+ "onUpdate:modelValue": (L) => {
283
+ y[D.property] = L;
301
284
  },
302
- placeholder: c,
285
+ placeholder: u,
303
286
  min: a,
304
287
  max: n,
305
288
  step: o,
306
289
  stepStrictly: p,
307
290
  precision: E,
308
- controls: D,
291
+ controls: N,
309
292
  controlsPosition: f
310
293
  }, null) : r("div", {
311
294
  class: "cell-numberinput"
312
- }, [xe(H, s, E, d === !0 || d === "")]);
295
+ }, [xe(F, s, E, d === !0 || d === "")]);
313
296
  }
314
297
  });
315
- }, ae = (e) => {
298
+ }, ie = (e) => {
316
299
  const {
317
300
  name: t,
318
301
  head: i,
@@ -322,9 +305,9 @@ const Me = () => ({
322
305
  fixed: g,
323
306
  editable: s,
324
307
  cellEditable: d,
325
- maxlength: u,
308
+ maxlength: c,
326
309
  placeholder: b,
327
- clearable: c = !1,
310
+ clearable: u = !1,
328
311
  format: a = "YYYYMMDDHHmmss",
329
312
  sourceFormat: n
330
313
  } = e;
@@ -345,27 +328,27 @@ const Me = () => ({
345
328
  const {
346
329
  row: p,
347
330
  column: E
348
- } = o, D = T(s, d, p), f = p[E.property];
349
- return D ? r(ke, {
331
+ } = o, N = k(s, d, p), f = p[E.property];
332
+ return N ? r(_e, {
350
333
  modelValue: p[E.property],
351
- "onUpdate:modelValue": (S) => {
352
- p[E.property] = S;
334
+ "onUpdate:modelValue": (w) => {
335
+ p[E.property] = w;
353
336
  },
354
- maxlength: u,
337
+ maxlength: c,
355
338
  placeholder: b,
356
- clearable: c,
339
+ clearable: u,
357
340
  format: a,
358
341
  sourceFormat: n
359
342
  }, null) : f instanceof Date || Be.isDayjs(f) ? r("div", {
360
343
  class: "cell-dateinput"
361
- }, [K(f, a)]) : n && a ? r("div", {
344
+ }, [H(f, a)]) : n && a ? r("div", {
362
345
  class: "cell-dateinput"
363
- }, [K(f, n, a)]) : r("div", {
346
+ }, [H(f, n, a)]) : r("div", {
364
347
  class: "cell-dateinput"
365
348
  }, [f]);
366
349
  }
367
350
  });
368
- }, se = (e) => {
351
+ }, ae = (e) => {
369
352
  const {
370
353
  name: t,
371
354
  head: i,
@@ -375,9 +358,9 @@ const Me = () => ({
375
358
  fixed: g,
376
359
  editable: s,
377
360
  cellEditable: d,
378
- code: u,
361
+ code: c,
379
362
  placeholder: b,
380
- clearable: c,
363
+ clearable: u,
381
364
  filterable: a
382
365
  } = e;
383
366
  return r(v, {
@@ -397,24 +380,24 @@ const Me = () => ({
397
380
  const {
398
381
  row: o,
399
382
  column: p
400
- } = n, E = T(s, d, o), D = o[p.property];
383
+ } = n, E = k(s, d, o), N = o[p.property];
401
384
  let f;
402
- const S = X(u, o);
403
- return S ? f = Ae(S, D) : f = null, E ? r(Ie, {
385
+ const w = q(c, o);
386
+ return w ? f = Ae(w, N) : f = null, E ? r(Ie, {
404
387
  modelValue: o[p.property],
405
388
  "onUpdate:modelValue": (y) => {
406
389
  o[p.property] = y;
407
390
  },
408
- code: S,
391
+ code: w,
409
392
  placeholder: b,
410
- clearable: c,
393
+ clearable: u,
411
394
  filterable: a
412
395
  }, null) : r("div", {
413
396
  class: "cell-singleselect"
414
397
  }, [f]);
415
398
  }
416
399
  });
417
- }, de = (e) => {
400
+ }, se = (e) => {
418
401
  const {
419
402
  name: t,
420
403
  head: i,
@@ -424,9 +407,9 @@ const Me = () => ({
424
407
  fixed: g,
425
408
  editable: s,
426
409
  cellEditable: d,
427
- code: u,
410
+ code: c,
428
411
  placeholder: b,
429
- collapseTags: c = !0,
412
+ collapseTags: u = !0,
430
413
  collapseTagsTooltip: a
431
414
  } = e;
432
415
  return r(v, {
@@ -446,24 +429,24 @@ const Me = () => ({
446
429
  const {
447
430
  row: o,
448
431
  column: p
449
- } = n, E = T(s, d, o), D = o[p.property];
432
+ } = n, E = k(s, d, o), N = o[p.property];
450
433
  let f;
451
- const S = X(u, o);
452
- return S ? f = Ee(S, D) : f = null, E ? r(Pe, {
434
+ const w = q(c, o);
435
+ return w ? f = Ee(w, N) : f = null, E ? r(Pe, {
453
436
  modelValue: o[p.property],
454
437
  "onUpdate:modelValue": (y) => {
455
438
  o[p.property] = y;
456
439
  },
457
- code: S,
440
+ code: w,
458
441
  placeholder: b,
459
- collapseTags: c,
442
+ collapseTags: u,
460
443
  collapseTagsTooltip: a
461
444
  }, null) : r("div", {
462
445
  class: "cell-multiselect"
463
446
  }, [f]);
464
447
  }
465
448
  });
466
- }, ue = (e) => {
449
+ }, de = (e) => {
467
450
  const {
468
451
  name: t,
469
452
  head: i,
@@ -481,15 +464,15 @@ const Me = () => ({
481
464
  fixed: g
482
465
  }, {
483
466
  default: (s) => {
484
- var u, b;
485
- const d = (b = (u = e.children) == null ? void 0 : u.default) == null ? void 0 : b.call(u, {
467
+ var c, b;
468
+ const d = (b = (c = e.children) == null ? void 0 : c.default) == null ? void 0 : b.call(c, {
486
469
  rowData: s.row,
487
470
  column: e,
488
471
  rowIndex: s.$index
489
472
  });
490
473
  return r("div", {
491
474
  class: "cell-buttongroup"
492
- }, [r(Oe, null, W(d) ? d : {
475
+ }, [r(Oe, null, Q(d) ? d : {
493
476
  default: () => [d]
494
477
  })]);
495
478
  },
@@ -509,9 +492,9 @@ const Me = () => ({
509
492
  label: t,
510
493
  headerAlign: i
511
494
  }, {
512
- default: (C) => G(m)
495
+ default: (C) => Y(m)
513
496
  });
514
- }, pe = (e) => {
497
+ }, ue = (e) => {
515
498
  const {
516
499
  name: t,
517
500
  head: i,
@@ -527,8 +510,8 @@ const Me = () => ({
527
510
  fixed: x
528
511
  }, {
529
512
  default: (g) => {
530
- var d, u;
531
- const s = (u = (d = e.children) == null ? void 0 : d.default) == null ? void 0 : u.call(d, {
513
+ var d, c;
514
+ const s = (c = (d = e.children) == null ? void 0 : d.default) == null ? void 0 : c.call(d, {
532
515
  rowData: g.row,
533
516
  column: e,
534
517
  rowIndex: g.$index
@@ -542,69 +525,69 @@ const Me = () => ({
542
525
  return (s = (g = e.children) == null ? void 0 : g.head) == null ? void 0 : s.call(g);
543
526
  }
544
527
  });
545
- }, G = (e) => e == null ? void 0 : e.map((t) => {
528
+ }, Y = (e) => e == null ? void 0 : e.map((t) => {
546
529
  if (t.type === "OEdittableColumnString")
547
- return ne(t);
530
+ return le(t);
548
531
  if (t.type === "OEdittableColumnLov")
549
- return oe(t);
532
+ return ne(t);
550
533
  if (t.type === "OEdittableColumnCheckbox")
551
- return re(t);
534
+ return oe(t);
552
535
  if (t.type === "OEdittableColumnNumber")
553
- return ie(t);
536
+ return re(t);
554
537
  if (t.type === "OEdittableColumnDate")
555
- return ae(t);
538
+ return ie(t);
556
539
  if (t.type === "OEdittableColumnSingleselect")
557
- return se(t);
540
+ return ae(t);
558
541
  if (t.type === "OEdittableColumnMultiselect")
559
- return de(t);
542
+ return se(t);
560
543
  if (t.type === "OEdittableColumnButtongroup")
561
- return ue(t);
544
+ return de(t);
562
545
  if (t.type === "OEdittableColumngroup")
563
546
  return ce(t);
564
547
  if (t.type === "OEdittableColumnDiy")
565
- return pe(t);
566
- throw new Ne(`OEdittable不能正确渲染'${t.type}'子组件。`);
548
+ return ue(t);
549
+ throw new ve(`OEdittable不能正确渲染'${t.type}'子组件。`);
567
550
  });
568
551
  return r("div", {
569
- class: [ee, A.class],
570
- style: [I.value, A.style]
571
- }, [r(Se, {
552
+ class: [Z, A.class],
553
+ style: [_.value, A.style]
554
+ }, [r(we, {
572
555
  ref: R,
573
556
  border: !0,
574
- data: O,
557
+ data: V,
575
558
  height: "100%",
576
559
  style: {
577
560
  width: "100%"
578
561
  },
579
- "onSelection-change": (e) => w("selectionChange", e),
580
- "highlight-current-row": M,
581
- "onCurrent-change": (e, t) => w("currentRowChange", e, t),
582
- "onRow-click": (e, t, i) => w("rowClick", e, {
562
+ "onSelection-change": (e) => S("selectionChange", e),
563
+ "highlight-current-row": W,
564
+ "onCurrent-change": (e, t) => S("currentRowChange", e, t),
565
+ "onRow-click": (e, t, i) => S("rowClick", e, {
583
566
  name: t.property,
584
567
  head: t.label
585
568
  }, i),
586
- "onRow-dblclick": (e, t, i) => w("rowDblclick", e, {
569
+ "onRow-dblclick": (e, t, i) => S("rowDblclick", e, {
587
570
  name: t.property,
588
571
  head: t.label
589
572
  }, i),
590
- "onCell-click": (e, t, i, m) => w("cellClick", e, {
573
+ "onCell-click": (e, t, i, m) => S("cellClick", e, {
591
574
  name: t.property,
592
575
  head: t.label
593
576
  }, i, m),
594
- "onCell-dblclick": (e, t, i, m) => w("cellDblclick", e, {
577
+ "onCell-dblclick": (e, t, i, m) => S("cellDblclick", e, {
595
578
  name: t.property,
596
579
  head: t.label
597
580
  }, i, m),
598
- size: j,
599
- rowClassName: (e) => typeof U == "string" ? U : typeof U == "function" ? U({
581
+ size: X,
582
+ rowClassName: (e) => typeof P == "string" ? P : typeof P == "function" ? P({
600
583
  rowData: e.row,
601
584
  rowIndex: e.rowIndex
602
585
  }) : "row-class-name_not_valid",
603
- rowStyle: (e) => typeof L == "function" ? L({
586
+ rowStyle: (e) => typeof j == "function" ? j({
604
587
  rowData: e.row,
605
588
  rowIndex: e.rowIndex
606
- }) : typeof L == "object" ? L : {},
607
- cellClassName: (e) => typeof z == "string" ? z : typeof z == "function" ? z({
589
+ }) : typeof j == "object" ? j : {},
590
+ cellClassName: (e) => typeof M == "string" ? M : typeof M == "function" ? M({
608
591
  rowData: e.row,
609
592
  column: {
610
593
  name: e.column.property,
@@ -613,7 +596,7 @@ const Me = () => ({
613
596
  rowIndex: e.rowIndex,
614
597
  columnIndex: e.columnIndex
615
598
  }) : "cell-class-name_not_valid",
616
- cellStyle: (e) => typeof Y == "function" ? Y({
599
+ cellStyle: (e) => typeof $ == "function" ? $({
617
600
  rowData: e.row,
618
601
  column: {
619
602
  name: e.column.property,
@@ -621,20 +604,20 @@ const Me = () => ({
621
604
  },
622
605
  rowIndex: e.rowIndex,
623
606
  columnIndex: e.columnIndex
624
- }) : typeof Y == "object" ? Y : {}
607
+ }) : typeof $ == "object" ? $ : {}
625
608
  }, {
626
- default: () => [P && te(), F && le(), G(k.value)]
609
+ default: () => [K && ee(), J && te(), Y(I.value)]
627
610
  })]);
628
611
  };
629
612
  }
630
- }), $e = () => ({}), Fe = /* @__PURE__ */ N({
613
+ }), $e = () => ({}), Fe = /* @__PURE__ */ O({
631
614
  name: "OQuerytableColumnIndex",
632
615
  inheritAttrs: !1,
633
616
  props: $e(),
634
617
  setup(l, {
635
618
  slots: h,
636
619
  attrs: A,
637
- emit: w,
620
+ emit: S,
638
621
  expose: B
639
622
  }) {
640
623
  return () => null;
@@ -652,14 +635,14 @@ const Me = () => ({
652
635
  // input属性
653
636
  maxlength: [String, Number],
654
637
  placeholder: String
655
- }), Le = /* @__PURE__ */ N({
638
+ }), Le = /* @__PURE__ */ O({
656
639
  name: "OEdittableColumnString",
657
640
  inheritAttrs: !1,
658
641
  props: Ue(),
659
642
  setup(l, {
660
643
  slots: h,
661
644
  attrs: A,
662
- emit: w,
645
+ emit: S,
663
646
  expose: B
664
647
  }) {
665
648
  return () => null;
@@ -678,7 +661,7 @@ const Me = () => ({
678
661
  maxlength: [String, Number],
679
662
  placeholder: String,
680
663
  fillMapping: [String, Function]
681
- }), Ye = /* @__PURE__ */ N({
664
+ }), Ye = /* @__PURE__ */ O({
682
665
  name: "OEdittableColumnLov",
683
666
  inheritAttrs: !1,
684
667
  props: ze(),
@@ -686,7 +669,7 @@ const Me = () => ({
686
669
  setup(l, {
687
670
  slots: h,
688
671
  attrs: A,
689
- emit: w,
672
+ emit: S,
690
673
  expose: B
691
674
  }) {
692
675
  return () => null;
@@ -701,14 +684,14 @@ const Me = () => ({
701
684
  // 是否可编辑
702
685
  editable: Boolean,
703
686
  cellEditable: Boolean
704
- }), Qe = /* @__PURE__ */ N({
687
+ }), Qe = /* @__PURE__ */ O({
705
688
  name: "OEdittableColumnCheckbox",
706
689
  inheritAttrs: !1,
707
690
  props: He(),
708
691
  setup(l, {
709
692
  slots: h,
710
693
  attrs: A,
711
- emit: w,
694
+ emit: S,
712
695
  expose: B
713
696
  }) {
714
697
  return () => null;
@@ -742,14 +725,14 @@ const Me = () => ({
742
725
  precision: Number,
743
726
  controls: Boolean,
744
727
  controlsPosition: String
745
- }), Ge = /* @__PURE__ */ N({
728
+ }), Ge = /* @__PURE__ */ O({
746
729
  name: "OEdittableColumnNumber",
747
730
  inheritAttrs: !1,
748
731
  props: qe(),
749
732
  setup(l, {
750
733
  slots: h,
751
734
  attrs: A,
752
- emit: w,
735
+ emit: S,
753
736
  expose: B
754
737
  }) {
755
738
  return () => null;
@@ -770,14 +753,14 @@ const Me = () => ({
770
753
  clearable: Boolean,
771
754
  format: String,
772
755
  sourceFormat: String
773
- }), Ke = /* @__PURE__ */ N({
756
+ }), Ke = /* @__PURE__ */ O({
774
757
  name: "OEdittableColumnDate",
775
758
  inheritAttrs: !1,
776
759
  props: Je(),
777
760
  setup(l, {
778
761
  slots: h,
779
762
  attrs: A,
780
- emit: w,
763
+ emit: S,
781
764
  expose: B
782
765
  }) {
783
766
  return () => null;
@@ -798,14 +781,14 @@ const Me = () => ({
798
781
  placeholder: String,
799
782
  clearable: Boolean,
800
783
  filterable: Boolean
801
- }), Xe = /* @__PURE__ */ N({
784
+ }), Xe = /* @__PURE__ */ O({
802
785
  name: "OEdittableColumnSingleselect",
803
786
  inheritAttrs: !1,
804
787
  props: We(),
805
788
  setup(l, {
806
789
  slots: h,
807
790
  attrs: A,
808
- emit: w,
791
+ emit: S,
809
792
  expose: B
810
793
  }) {
811
794
  return () => null;
@@ -826,14 +809,14 @@ const Me = () => ({
826
809
  placeholder: String,
827
810
  collapseTags: Boolean,
828
811
  collapseTagsTooltip: Boolean
829
- }), et = /* @__PURE__ */ N({
812
+ }), et = /* @__PURE__ */ O({
830
813
  name: "OEdittableColumnMultiselect",
831
814
  inheritAttrs: !1,
832
815
  props: Ze(),
833
816
  setup(l, {
834
817
  slots: h,
835
818
  attrs: A,
836
- emit: w,
819
+ emit: S,
837
820
  expose: B
838
821
  }) {
839
822
  return () => null;
@@ -845,7 +828,7 @@ const Me = () => ({
845
828
  name: String,
846
829
  width: [String, Number],
847
830
  fixed: [Boolean, String]
848
- }), lt = /* @__PURE__ */ N({
831
+ }), lt = /* @__PURE__ */ O({
849
832
  name: "OEdittableColumnButtongroup",
850
833
  inheritAttrs: !1,
851
834
  props: tt(),
@@ -853,18 +836,18 @@ const Me = () => ({
853
836
  setup(l, {
854
837
  slots: h,
855
838
  attrs: A,
856
- emit: w,
839
+ emit: S,
857
840
  expose: B
858
841
  }) {
859
842
  return () => null;
860
843
  }
861
844
  });
862
845
  function nt(l) {
863
- return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !Z(l);
846
+ return typeof l == "function" || Object.prototype.toString.call(l) === "[object Object]" && !G(l);
864
847
  }
865
848
  const ot = () => ({
866
849
  type: String
867
- }), rt = /* @__PURE__ */ N({
850
+ }), rt = /* @__PURE__ */ O({
868
851
  name: "OEdittableCellButton",
869
852
  inheritAttrs: !1,
870
853
  props: ot(),
@@ -872,38 +855,38 @@ const ot = () => ({
872
855
  setup(l, {
873
856
  slots: h,
874
857
  attrs: A,
875
- emit: w,
858
+ emit: S,
876
859
  expose: B
877
860
  }) {
878
- const R = (I) => {
879
- w("click", I);
861
+ const R = (_) => {
862
+ S("click", _);
880
863
  };
881
864
  return () => {
882
- var $;
865
+ var U;
883
866
  const {
884
- type: I
885
- } = l, k = ($ = h.default) == null ? void 0 : $.call(h);
867
+ type: _
868
+ } = l, I = (U = h.default) == null ? void 0 : U.call(h);
886
869
  return r(Ce, {
887
870
  link: !0,
888
- type: I,
871
+ type: _,
889
872
  size: "small",
890
873
  onClick: R
891
- }, nt(k) ? k : {
892
- default: () => [k]
874
+ }, nt(I) ? I : {
875
+ default: () => [I]
893
876
  });
894
877
  };
895
878
  }
896
879
  }), it = () => ({
897
880
  head: String,
898
881
  headAlign: String
899
- }), at = /* @__PURE__ */ N({
882
+ }), at = /* @__PURE__ */ O({
900
883
  name: "OEdittableColumngroup",
901
884
  inheritAttrs: !1,
902
885
  props: it(),
903
886
  setup(l, {
904
887
  slots: h,
905
888
  attrs: A,
906
- emit: w,
889
+ emit: S,
907
890
  expose: B
908
891
  }) {
909
892
  return () => null;
@@ -914,7 +897,7 @@ const ot = () => ({
914
897
  name: String,
915
898
  width: [String, Number],
916
899
  fixed: [Boolean, String]
917
- }), dt = /* @__PURE__ */ N({
900
+ }), dt = /* @__PURE__ */ O({
918
901
  name: "OEdittableColumnDiy",
919
902
  inheritAttrs: !1,
920
903
  props: st(),
@@ -922,12 +905,12 @@ const ot = () => ({
922
905
  setup(l, {
923
906
  slots: h,
924
907
  attrs: A,
925
- emit: w,
908
+ emit: S,
926
909
  expose: B
927
910
  }) {
928
911
  return () => null;
929
912
  }
930
- }), vt = we(je, {
913
+ }), vt = Se(Me, {
931
914
  EdittableColumnIndex: Fe,
932
915
  EdittableColumnString: Le,
933
916
  EdittableColumnLov: Ye,
@@ -942,6 +925,8 @@ const ot = () => ({
942
925
  EdittableColumnDiy: dt
943
926
  });
944
927
  export {
945
- vt as default
928
+ vt as default,
929
+ je as edittableProps,
930
+ Rt as useEdittable
946
931
  };
947
932
  //# sourceMappingURL=index.js.map