cosey 0.4.17 → 0.4.18
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/hooks/useUpsert.js +2 -2
- package/layout/layout-sidebar/layout-sidebar.vue.js +9 -2
- package/locale/lang/ar.d.ts +1 -0
- package/locale/lang/ar.js +1 -0
- package/locale/lang/en.d.ts +1 -0
- package/locale/lang/en.js +1 -0
- package/locale/lang/zh-cn.d.ts +1 -0
- package/locale/lang/zh-cn.js +1 -0
- package/package.json +1 -1
package/hooks/useUpsert.js
CHANGED
|
@@ -49,10 +49,10 @@ function useUpsert(options) {
|
|
|
49
49
|
let res;
|
|
50
50
|
if (type.value === "add") {
|
|
51
51
|
res = await unref(addFetch)?.();
|
|
52
|
-
ElMessage.success(unref(addSuccessText) || t("co.common.
|
|
52
|
+
ElMessage.success(unref(addSuccessText) || t("co.common.operateSuccess"));
|
|
53
53
|
} else {
|
|
54
54
|
res = await unref(editFetch)?.();
|
|
55
|
-
ElMessage.success(unref(editSuccessText) || t("co.common.
|
|
55
|
+
ElMessage.success(unref(editSuccessText) || t("co.common.operateSuccess"));
|
|
56
56
|
}
|
|
57
57
|
unref(success)?.(res);
|
|
58
58
|
exposeOptions?.success?.();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, useTemplateRef, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot } from 'vue';
|
|
1
|
+
import { defineComponent, useTemplateRef, ref, onMounted, nextTick, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot } from 'vue';
|
|
2
2
|
import { useLayoutStore } from '../../store/layout.js';
|
|
3
3
|
import stdin_default$1 from './style/index.js';
|
|
4
4
|
import { useDir } from '../../hooks/useDir.js';
|
|
@@ -19,12 +19,19 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
19
19
|
const layoutStore = useLayoutStore();
|
|
20
20
|
const sidebarRef = useTemplateRef("sidebar");
|
|
21
21
|
const dir = useDir(sidebarRef);
|
|
22
|
+
const isMounted = ref(false);
|
|
23
|
+
onMounted(() => {
|
|
24
|
+
nextTick(() => {
|
|
25
|
+
isMounted.value = true;
|
|
26
|
+
});
|
|
27
|
+
});
|
|
22
28
|
const sidebarStyle = computed(() => {
|
|
23
29
|
const marginBlockStart = layoutStore.isMobile || !layoutStore.includeHorizontal ? 0 : layoutStore.topbarHeight;
|
|
24
30
|
return {
|
|
25
31
|
marginBlockStart: marginBlockStart + "px",
|
|
26
32
|
height: `calc(100vh - ${marginBlockStart}px)`,
|
|
27
|
-
transform: !layoutStore.sidebarVisible ? `translateX(${dir.value === "ltr" ? "-100%" : "100%"})` : void 0
|
|
33
|
+
transform: !layoutStore.sidebarVisible ? `translateX(${dir.value === "ltr" ? "-100%" : "100%"})` : void 0,
|
|
34
|
+
transition: isMounted.value ? void 0 : "none"
|
|
28
35
|
};
|
|
29
36
|
});
|
|
30
37
|
return (_ctx, _cache) => {
|
package/locale/lang/ar.d.ts
CHANGED
package/locale/lang/ar.js
CHANGED
|
@@ -13,6 +13,7 @@ var stdin_default = {
|
|
|
13
13
|
reload: "\u062A\u062D\u062F\u064A\u062B",
|
|
14
14
|
addSuccess: "\u062A\u0645\u062A \u0627\u0644\u0625\u0636\u0627\u0641\u0629 \u0628\u0646\u062C\u0627\u062D",
|
|
15
15
|
editSuccess: "\u062A\u0645 \u0627\u0644\u062A\u0639\u062F\u064A\u0644 \u0628\u0646\u062C\u0627\u062D",
|
|
16
|
+
operateSuccess: "\u062A\u0645\u062A \u0627\u0644\u0639\u0645\u0644\u064A\u0629 \u0628\u0646\u062C\u0627\u062D",
|
|
16
17
|
exportSuccess: "\u062A\u0645 \u0627\u0644\u062A\u0635\u062F\u064A\u0631 \u0628\u0646\u062C\u0627\u062D",
|
|
17
18
|
add: "\u0625\u0636\u0627\u0641\u0629",
|
|
18
19
|
edit: "\u062A\u0639\u062F\u064A\u0644",
|
package/locale/lang/en.d.ts
CHANGED
package/locale/lang/en.js
CHANGED
package/locale/lang/zh-cn.d.ts
CHANGED
package/locale/lang/zh-cn.js
CHANGED
|
@@ -13,6 +13,7 @@ var stdin_default = {
|
|
|
13
13
|
reload: "\u5237\u65B0",
|
|
14
14
|
addSuccess: "\u65B0\u589E\u6210\u529F",
|
|
15
15
|
editSuccess: "\u7F16\u8F91\u6210\u529F",
|
|
16
|
+
operateSuccess: "\u64CD\u4F5C\u6210\u529F",
|
|
16
17
|
exportSuccess: "\u5BFC\u51FA\u6210\u529F",
|
|
17
18
|
add: "\u65B0\u589E",
|
|
18
19
|
edit: "\u7F16\u8F91",
|