cosey 0.4.6 → 0.4.8

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.
@@ -183,7 +183,9 @@ var stdin_default = /* @__PURE__ */defineComponent({
183
183
  res = props.transformResponse?.(res) || res;
184
184
  tableData.value = (tableKeys.list ? get(res, tableKeys.list) : res) || [];
185
185
  total.value = +get(res, tableKeys.total) || 0;
186
- elTableRef.value?.setScrollTop(0);
186
+ if (!reloading.value) {
187
+ elTableRef.value?.setScrollTop(0);
188
+ }
187
189
  },
188
190
  onFinally() {
189
191
  reloading.value = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.4.6",
3
+ "version": "0.4.8",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -11,6 +11,13 @@ function warningConfirm(message, options) {
11
11
  type: "warning",
12
12
  message,
13
13
  showCancelButton: true,
14
+ customStyle: {
15
+ position: "absolute",
16
+ left: "50%",
17
+ top: "30vh",
18
+ transform: "translateX(-50%)",
19
+ ...options?.customStyle
20
+ },
14
21
  async beforeClose(action, instance, done) {
15
22
  if (action === "confirm") {
16
23
  instance.confirmButtonLoading = true;