cosey 0.6.33 → 0.6.34

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/config/index.d.ts CHANGED
@@ -41,8 +41,10 @@ export interface LayoutComponents {
41
41
  }
42
42
  export interface LayoutSlots {
43
43
  topbarRight?: () => VNodeChild;
44
+ topbarWidget?: () => VNodeChild;
44
45
  authWidget?: () => VNodeChild;
45
46
  userMenu?: () => VNodeChild;
47
+ afterToggle?: () => VNodeChild;
46
48
  }
47
49
  type FilterRouteHandler = (route: RouteRecordRaw) => RouteRecordRaw | void | boolean | undefined | null;
48
50
  export type CoseyOptions = {
@@ -37,6 +37,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
37
37
  const layoutStore = useLayoutStore();
38
38
  const slotsConfig = useGlobalConfig().slots;
39
39
  const TopbarRight = defineTemplate(() => slotsConfig.topbarRight?.());
40
+ const TopbarWidget = defineTemplate(() => slotsConfig.topbarWidget?.());
41
+ const AfterToggle = defineTemplate(() => slotsConfig.afterToggle?.());
40
42
  return (_ctx, _cache) => {
41
43
  return openBlock(), createElementBlock("div", {
42
44
  class: normalizeClass([unref(hashId), unref(prefixCls)])
@@ -60,7 +62,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
60
62
  "is-horizontal": ""
61
63
  })) : createCommentVNode("v-if", true), unref(layoutStore).isMobile || unref(layoutStore).isVertical || unref(layoutStore).isBiserial ? (openBlock(), createBlock(unref(stdin_default$d), {
62
64
  key: 1
63
- })) : createCommentVNode("v-if", true), !unref(layoutStore).isMobile && (unref(layoutStore).isVertical || unref(layoutStore).isBiserial) ? (openBlock(), createBlock(unref(stdin_default$e), {
65
+ })) : createCommentVNode("v-if", true), (openBlock(), createBlock(resolveDynamicComponent(unref(AfterToggle)))), !unref(layoutStore).isMobile && (unref(layoutStore).isVertical || unref(layoutStore).isBiserial) ? (openBlock(), createBlock(unref(stdin_default$e), {
64
66
  key: 2
65
67
  })) : createCommentVNode("v-if", true), !unref(layoutStore).isMobile && (unref(layoutStore).isHorizontalVertical || unref(layoutStore).isHorizontalBiserial) ? (openBlock(), createBlock(unref(stdin_default$f), {
66
68
  key: 3
@@ -71,7 +73,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
71
73
  "flex": "1"
72
74
  }
73
75
  })) : createCommentVNode("v-if", true)]),
74
- right: withCtx(() => [createVNode(unref(stdin_default$9)), (openBlock(), createBlock(resolveDynamicComponent(unref(TopbarRight)))), createVNode(unref(stdin_default$a)), createVNode(unref(stdin_default$b))]),
76
+ right: withCtx(() => [createVNode(unref(stdin_default$9)), (openBlock(), createBlock(resolveDynamicComponent(unref(TopbarWidget)))), createVNode(unref(stdin_default$a)), createVNode(unref(stdin_default$b)), (openBlock(), createBlock(resolveDynamicComponent(unref(TopbarRight))))]),
75
77
  _: 1
76
78
  /* STABLE */
77
79
  }), createVNode(unref(stdin_default$h))]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.6.33",
3
+ "version": "0.6.34",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",