dumi-theme-antd-style icon indicating copy to clipboard operation
dumi-theme-antd-style copied to clipboard

:sparkles: feat(slots-footer-index) : 通过配置 icon的值为图片URL来项显示图标

Open huangjihua opened this issue 1 year ago • 2 comments

💻 变更类型 | Change Type

  • [x] ✨ feat
  • [ ] 🐛 fix
  • [ ] 💄 style
  • [ ] 🔨 chore
  • [ ] 📝 docs

🔀 变更说明 | Description of Change

通过配置colunms数组对象中的icon字段,值为图片地址时,自动转为图片元素,正常显示图标。图标支持( png | jpeg | jpg | gif | svg | webp)扩展名。

📝 补充信息 | Additional Information

配置项数据:

  footerConfig: {
    columns: [
     // ......
      {
        icon: 'https://gw.alipayobjects.com/zos/rmsportal/nBVXkrFdWHxbZlmMbsaH.svg',
        title: '更多产品',
        items: [
          {
            icon: 'https://gw.alipayobjects.com/zos/rmsportal/XuVpGqBFxXplzvLjJBZB.svg',
            title: '语雀',
            url: 'https://yuque.com',
            description: '知识创作与分享工具',
            openExternal: true,
          }
        ]
      }
    ],
  }

测试结果: image

huangjihua avatar Aug 26 '23 01:08 huangjihua

Someone is attempting to deploy a commit to a Personal Account owned by @arvinxx on Vercel.

@arvinxx first needs to authorize it.

vercel[bot] avatar Aug 26 '23 01:08 vercel[bot]

@huangjihua rebase 一下?

arvinxx avatar Sep 17 '23 12:09 arvinxx