vben
2020-10-20 e3cbc9326ecedf386919f344df5dbdef8eb3d78c
fix: fix the problem of folding display name of the first level menu
3个文件已修改
23 ■■■■■ 已修改文件
package.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Menu/src/index.less 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/demo/table/FixedColumn.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
package.json
@@ -120,6 +120,6 @@
    }
  },
  "engines": {
    "node": ">=12.0.0"
    "node": ">=10.16.1"
  }
}
src/components/Menu/src/index.less
@@ -21,6 +21,19 @@
      font-size: 12px;
      flex-direction: column;
    }
    & > li[role='menuitem']:not(.ant-menu-submenu) {
      display: flex;
      margin-top: 12px;
      font-size: 12px;
      line-height: 2;
      align-items: center;
      flex-direction: column;
      span {
        margin-top: 6px;
      }
    }
  }
  &__wrap {
src/views/demo/table/FixedColumn.vue
@@ -6,17 +6,13 @@
          :actions="[
            {
              label: '删除',
              props: {
                onClick: handleDelete,
              },
              onClick: handleDelete,
            },
          ]"
          :dropDownActions="[
            {
              label: '启用',
              props: {
                onClick: handleOpen,
              },
              onClick: handleOpen,
            },
          ]"
        />