Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问资产包配置中的ignoreComponents字段的结构是什么样的 #2316

Closed
jeffery-zhang opened this issue Jul 25, 2023 · 1 comment
Labels
insufficient information Further information is requested / 信息不足,请补充信息

Comments

@jeffery-zhang
Copy link

jeffery-zhang commented Jul 25, 2023


Describe the bug (required) / 详细描述 bug(必填)

请问我在项目中使用了https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/meta.js这一套组件库, 搭配我自己写的一份组件库, 由于自定义的组件库中有一部分和alifd那一套的组件有功能上的重合, 请问要如何隐藏这一部分组件, 能否直接隐藏一个group或者category中的所有组件

To Reproduce (required) / 如何复现 bug?(必填,非常重要)

以下是我的资产包结构定义:

// assets.ts
import { basePath } from '@/services/basePath'

const assets = {
  packages: [
    {
      package: 'moment',
      version: '2.24.0',
      urls: ['https://g.alicdn.com/mylib/moment/2.24.0/min/moment.min.js'],
      library: 'moment',
    },
    {
      package: 'lodash',
      library: '_',
      urls: ['https://g.alicdn.com/platform/c/lodash/4.6.1/lodash.min.js'],
    },
    {
      title: 'fusion组件库',
      package: '@alifd/next',
      version: '1.26.4',
      urls: [
        'https://g.alicdn.com/code/lib/alifd__next/1.26.4/next.min.css',
        'https://g.alicdn.com/code/lib/alifd__next/1.26.4/next-with-locales.min.js',
      ],
      library: 'Next',
    },
    {
      package: '@alilc/lowcode-materials',
      version: '1.1.0',
      library: 'AlilcLowcodeMaterials',
      urls: [
        'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/render/default/view.js',
        'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/render/default/view.css',
      ],
      editUrls: [
        'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/view.js',
        'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/view.css',
      ],
      advancedUrls: {
        default: [
          'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/render/default/view.js',
          'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/render/default/view.css',
        ],
      },
      advancedEditUrls: {},
    },
    {
      package: '@builder/assets',
      version: '1.0.0',
      library: 'BuilderAssets',
      urls: [`${basePath}/assets/view.js`, `${basePath}/assets/view.css`],
      editUrls: [`${basePath}/assets/view.js`, `${basePath}/assets/view.css`],
      advancedUrls: {
        default: [`${basePath}/assets/view.js`, `${basePath}/assets/view.css`],
      },
      advancedEditUrls: {},
    },
  ],
  components: [
    {
      exportName: 'AlilcLowcodeMaterialsMeta',
      npm: {
        package: '@alilc/lowcode-materials',
        version: '1.1.0',
      },
      url: 'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/meta.js',
      urls: {
        default:
          'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/meta.js',
        design:
          'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/meta.design.js',
      },
      advancedUrls: {
        default: [
          'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/meta.js',
        ],
        design: [
          'https://alifd.alicdn.com/npm/@alilc/[email protected]/build/lowcode/meta.design.js',
        ],
      },
    },
    {
      exportName: 'BuilderAssetsMeta',
      npm: {
        package: '@builder/assets',
        version: '1.0.0',
      },
      url: `${basePath}/assets/meta.js`,
      urls: {
        default: `${basePath}/assets/meta.js`,
      },
      advancedUrls: {
        default: [`${basePath}/assets/meta.js`],
      },
    },
  ],
  sort: {
    groupList: ['精选组件', '原子组件'],
    categoryList: [
      '布局容器',
      '基础元素',
      '布局容器类',
      '通用',
      '信息展示',
      '信息反馈',
      '引导',
      '信息输入',
      '其他',
    ],
  },
}

export default assets
@JackLian JackLian added the insufficient information Further information is requested / 信息不足,请补充信息 label Jul 26, 2023
@github-actions
Copy link

你好 @jeffery-zhang,由于缺乏必要的信息(如 bug 重现步骤、引擎版本信息 等),无法定位问题,请按照 issue bug 模板 补全信息,也可以通过阅读 引擎的 issue 说明 了解什么类型的 issue 可以获得更好、更快的支持。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
insufficient information Further information is requested / 信息不足,请补充信息
Projects
None yet
Development

No branches or pull requests

2 participants