arvinxx / dumi-theme-antd-style

dumi-theme for antd-style site
https://dumi-theme-antd-style.arvinx.com
MIT License
75 stars 37 forks source link

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

Open huangjihua opened 10 months ago

huangjihua commented 10 months ago

💻 变更类型 | Change Type

🔀 变更说明 | 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
vercel[bot] commented 10 months ago

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

@arvinxx first needs to authorize it.

arvinxx commented 9 months ago

@huangjihua rebase 一下?