cosey 0.4.37 → 0.4.39
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.
|
@@ -36,7 +36,7 @@ export declare const defaultFormItemProps: {
|
|
|
36
36
|
};
|
|
37
37
|
export declare const exlucdeFieldSlotNames: readonly ["error", "label", "default", "tooltip", "extra"];
|
|
38
38
|
type ExlucdeFieldSlotNames = (typeof exlucdeFieldSlotNames)[number];
|
|
39
|
-
type OptionExlucdeFieldSlotNames = `
|
|
39
|
+
type OptionExlucdeFieldSlotNames = `field-${ExlucdeFieldSlotNames}`;
|
|
40
40
|
export type ElFormItemSlots = {
|
|
41
41
|
default?: (props: Record<string, any>) => any;
|
|
42
42
|
label?: (props: {
|
package/hooks/useUpsert.js
CHANGED
|
@@ -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)?.(
|
|
79
|
+
unref(onEdit)?.(row.value, ...editParams);
|
|
80
80
|
visible.value = true;
|
|
81
81
|
unref(onShow)?.();
|
|
82
82
|
nextTick(() => {
|