@vtj/ui 0.8.79 → 0.8.80

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/dist/index.mjs CHANGED
@@ -8,10 +8,10 @@ import { useRouter as gd, RouterView as Sb, useRoute as Th, routeLocationKey as
8
8
  * Copyright (c) 2024, VTJ.PRO All rights reserved.
9
9
  * @name @vtj/ui
10
10
  * @author CHC chenhuachun1549@dingtalk.com
11
- * @version 0.8.79
11
+ * @version 0.8.80
12
12
  * @license <a href="https://vtj.pro/license.html">MIT License</a>
13
13
  */
14
- const AI = "0.8.79", Ob = {
14
+ const AI = "0.8.80", Ob = {
15
15
  default: 14,
16
16
  small: 12,
17
17
  large: 18
@@ -23025,22 +23025,22 @@ function m7(e = []) {
23025
23025
  return Object.keys(t).filter((n) => !e.includes(n));
23026
23026
  }
23027
23027
  function Vs(e, t) {
23028
- const { row: n, column: o } = t, r = Z({
23028
+ const { row: n, column: o } = t, { props: r = {}, events: l = {} } = e, { parser: i, stringify: a } = r, s = Z({
23029
23029
  get() {
23030
- return n[o.field];
23030
+ return i ? i(n[o.field]) : n[o.field];
23031
23031
  },
23032
- set(c) {
23033
- n[o.field] = c;
23032
+ set(m) {
23033
+ n[o.field] = a ? a(m) : m;
23034
23034
  }
23035
- }), { props: l = {}, events: i = {} } = e;
23035
+ });
23036
23036
  return {
23037
- renderProps: Lu(l) ? l({ row: n, column: o, cellValue: r }) : l,
23038
- renderEvents: i,
23039
- cellValue: r,
23037
+ renderProps: Lu(r) ? r({ row: n, column: o, cellValue: s }) : r,
23038
+ renderEvents: l,
23039
+ cellValue: s,
23040
23040
  row: n,
23041
23041
  column: o,
23042
23042
  onChange: () => {
23043
- t.$grid?.updateStatus(t, r.value);
23043
+ t.$grid?.updateStatus(t, s.value);
23044
23044
  }
23045
23045
  };
23046
23046
  }