cosey 0.10.17 → 0.10.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.
@@ -58,13 +58,14 @@ var stdin_default = /* @__PURE__ */defineComponent({
58
58
  function renderMenu(menuItems) {
59
59
  function renderSubMenu(menuItems2) {
60
60
  return menuItems2.map(item => {
61
- const iconVNode = () => item.icon && createVNode(_Icon, {
62
- "name": item.icon,
61
+ const iconVNode = () => item.icon && createVNode("div", {
63
62
  "class": `${prefixCls.value}-icon`,
64
63
  "style": {
65
64
  margin: collapse.value ? 0 : void 0
66
65
  }
67
- }, null);
66
+ }, [createVNode(_Icon, {
67
+ "name": item.icon
68
+ }, null)]);
68
69
  const titleVNode = () => {
69
70
  const title = t(item.title ?? "");
70
71
  return createVNode("span", {
@@ -13,6 +13,9 @@ var stdin_default = getSimpleStyleHook("CoLayoutMenu", (token) => {
13
13
  }
14
14
  },
15
15
  [`${componentCls}-icon`]: {
16
+ display: "inline-flex",
17
+ justifyContent: "center",
18
+ alignItems: "center",
16
19
  marginInlineEnd: token.marginXXS,
17
20
  width: "var(--el-menu-icon-width)",
18
21
  flex: "none",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.10.17",
3
+ "version": "0.10.18",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -81,9 +81,16 @@
81
81
  "type": "git",
82
82
  "url": "git+https://github.com/sutras/cosey.git"
83
83
  },
84
+ "homepage": "https://docs.cosey.wzt.zone/",
84
85
  "author": "wuzhitao",
85
86
  "license": "MIT",
86
87
  "dependencies": {
87
88
  "@cosey/icons": "^0.1.8"
88
- }
89
+ },
90
+ "keywords": [
91
+ "admin",
92
+ "backstage management system",
93
+ "vue3",
94
+ "vite"
95
+ ]
89
96
  }