cosey 0.4.38 → 0.4.40

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.
@@ -161,6 +161,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
161
161
  node.style.setProperty("position", "fixed");
162
162
  node.style.setProperty("top", rect.top + "px");
163
163
  node.style.setProperty("left", rect.left + "px");
164
+ node.style.setProperty("opacity", "0");
164
165
  };
165
166
  return (_ctx, _cache) => {
166
167
  return openBlock(), createBlock(TransitionGroup, mergeProps(mergedProps.value, {
@@ -74,9 +74,9 @@ function useUpsert(options) {
74
74
  edit: async (_row, ...args) => {
75
75
  editParams = args;
76
76
  type.value = "edit";
77
- row.value = _row;
77
+ row.value = cloneDeep(_row);
78
78
  deepAssign(unref(model), initialModel);
79
- unref(onEdit)?.(_row, ...editParams);
79
+ unref(onEdit)?.(row.value, ...editParams);
80
80
  visible.value = true;
81
81
  unref(onShow)?.();
82
82
  nextTick(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.4.38",
3
+ "version": "0.4.40",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",