cosey 0.4.22 → 0.4.24
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.
|
@@ -118,6 +118,9 @@ var stdin_default = getOverrideStyleHook("OverrideElementPlus", (token) => {
|
|
|
118
118
|
".el-radio": {
|
|
119
119
|
"--el-radio-font-weight": "normal"
|
|
120
120
|
},
|
|
121
|
+
".el-radio-button__inner": {
|
|
122
|
+
fontWeight: "normal"
|
|
123
|
+
},
|
|
121
124
|
".el-radio__input.is-checked+.el-radio__label": {
|
|
122
125
|
color: token.colorText
|
|
123
126
|
},
|
package/hooks/useUpsert.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface UseUpsertOptions<Model, Row = Model> {
|
|
|
19
19
|
detailsFetch?: (row: Row) => any;
|
|
20
20
|
beforeFill?: (row: Row) => any;
|
|
21
21
|
addFetch?: () => any;
|
|
22
|
-
editFetch?: () => any;
|
|
22
|
+
editFetch?: (row: Row) => any;
|
|
23
23
|
success?: (res: any) => any;
|
|
24
24
|
addSuccessText?: string;
|
|
25
25
|
editSuccessText?: string;
|
package/hooks/useUpsert.js
CHANGED
|
@@ -51,7 +51,7 @@ function useUpsert(options) {
|
|
|
51
51
|
res = await unref(addFetch)?.();
|
|
52
52
|
ElMessage.success(unref(addSuccessText) || t("co.common.operateSuccess"));
|
|
53
53
|
} else {
|
|
54
|
-
res = await unref(editFetch)?.();
|
|
54
|
+
res = await unref(editFetch)?.(row.value);
|
|
55
55
|
ElMessage.success(unref(editSuccessText) || t("co.common.operateSuccess"));
|
|
56
56
|
}
|
|
57
57
|
unref(success)?.(res);
|