[go: up one dir, main page]

CN115268897A - Component library document access method, device, equipment and medium - Google Patents

Component library document access method, device, equipment and medium Download PDF

Info

Publication number
CN115268897A
CN115268897A CN202210909095.3A CN202210909095A CN115268897A CN 115268897 A CN115268897 A CN 115268897A CN 202210909095 A CN202210909095 A CN 202210909095A CN 115268897 A CN115268897 A CN 115268897A
Authority
CN
China
Prior art keywords
component
document
application
sub
component type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210909095.3A
Other languages
Chinese (zh)
Inventor
吴景城
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Telecom Cloud Technology Co Ltd
Original Assignee
China Telecom Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Telecom Cloud Technology Co Ltd filed Critical China Telecom Cloud Technology Co Ltd
Priority to CN202210909095.3A priority Critical patent/CN115268897A/en
Publication of CN115268897A publication Critical patent/CN115268897A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/73Program documentation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Stored Programmes (AREA)

Abstract

本申请实施例提供一种组件库文档访问方法、装置、设备及介质,实现了通过一套文档库生成系统访问不同类型的组件文档。该方法包括:接收组件库文档的访问指令,访问指令中包括目标组件文档的组件类型以及目标组件文档的文档标识;根据组件类型,从主应用中检索与组件类型对应的目标访问路径,并根据目标访问路径进入组件类型对应的子应用;基于文档标识,从子应用中获取目标组件文档,并按照预设格式在显示界面上显示。

Figure 202210909095

Embodiments of the present application provide a component library document access method, apparatus, device, and medium, which implements access to different types of component documents through a set of document library generation systems. The method includes: receiving an access instruction of a component library document, where the access instruction includes the component type of the target component document and the document identifier of the target component document; according to the component type, retrieve the target access path corresponding to the component type from the main application, and according to the component type The target access path enters the sub-application corresponding to the component type; based on the document identifier, the target component document is obtained from the sub-application, and displayed on the display interface according to the preset format.

Figure 202210909095

Description

一种组件库文档访问方法、装置、设备及介质A component library document access method, device, equipment and medium

技术领域technical field

本申请涉及互联网微前端技术领域,尤其涉及一种组件库文档访问方法、装置、设备及介质。The present application relates to the technical field of Internet micro-frontends, and in particular to a component library document access method, device, device and medium.

背景技术Background technique

目前日常开发中经常会对组件库进行开发,如在组件库中创建新组件等。为了方便对组件进行调用,组件库文档就尤为重要。At present, component libraries are often developed in daily development, such as creating new components in the component library. In order to facilitate the calling of components, the component library documentation is particularly important.

由于目前的文档库生成系统不支持用户通过一套系统访问不同类型的组件库文档,即对于主流的vue和react框架无法同时兼容,因此针对不同类型的组件库,需要搭建多个单一的文档库生成系统,每个单一的文档库生成系统生成一种类型的组件库文档。Since the current document library generation system does not support users to access different types of component library documents through one system, that is, it is not compatible with the mainstream Vue and React frameworks at the same time, so it is necessary to build multiple single document libraries for different types of component libraries Generating systems, each single document library generating system generates a type of component library documentation.

用户在使用这种单一的文档库生成系统进行组件库文档访问时,由于经常用到不同类型的组件库文档,因此需要在使用时频繁进行系统的切换,不利于组件库同构,也增大了维护成本。When users use this single document library generation system to access component library documents, because they often use different types of component library documents, they need to switch systems frequently during use, which is not conducive to the isomorphism of component libraries and increases maintenance cost.

发明内容Contents of the invention

本发明提供了一种组件库文档访问方法、装置、设备及介质,实现了通过一套文档库生成系统访问不同类型的组件文档。The invention provides a method, device, device and medium for accessing component library documents, and realizes accessing different types of component documents through a document library generation system.

本申请实施例的第一方面,提供一种组件库文档访问方法,包括:According to the first aspect of the embodiments of the present application, a method for accessing component library documents is provided, including:

接收组件库文档的访问指令,访问指令中包括目标组件文档的组件类型以及目标组件文档的文档标识;Receive an access instruction of the component library document, where the access instruction includes the component type of the target component document and the document identifier of the target component document;

根据组件类型,从主应用中检索与组件类型对应的目标访问路径,并根据目标访问路径进入组件类型对应的子应用;According to the component type, retrieve the target access path corresponding to the component type from the main application, and enter the sub-application corresponding to the component type according to the target access path;

基于文档标识,从子应用中获取目标组件文档,并按照预设格式在显示界面上显示。Based on the document identifier, the target component document is obtained from the sub-application, and displayed on the display interface according to a preset format.

上述方法,在收到访问指令时,根据预先在主应用中存储的与不同组件类型对应的访问路径,进入对应的子系统获取组件文档,通过在主应用中存储不同组件类型的访问路径,实现了通过同一个主应用访问对应不同组件类型的多个子应用,即通过一套文档库生成系统访问不同类型的组件文档。The above method, when receiving an access instruction, enters the corresponding subsystem to obtain component documents according to the access paths corresponding to different component types stored in the main application in advance, and realizes by storing the access paths of different component types in the main application. In order to access multiple sub-applications corresponding to different component types through the same main application, that is, to access different types of component documents through a document library generation system.

一种可选的实施方式为,方法还包括:An optional implementation manner is that the method also includes:

若显示界面上以覆盖方式显示多个组件类型的组件文档,则在接收切换指令后,利用与切换指令包含的切换标识对应的组件文档覆盖显示界面上当前显示的组件文档。If component documents of multiple component types are displayed on the display interface in an overlay manner, after receiving the switching instruction, the component document currently displayed on the display interface is overwritten with the component document corresponding to the switching identifier included in the switching instruction.

上述方法,各类型组件文档在第一次获取后,通过覆盖的方式显示在显示页面上,并且通过修改覆盖顺序的方式进行组件文档的切换,避免了频繁从子应用中获取同一组件文档。In the above method, after the first acquisition, various types of component documents are displayed on the display page by overlaying, and component documents are switched by modifying the overlay order, so as to avoid frequent acquisition of the same component document from sub-applications.

一种可选的实施方式为,接收组件库文档的访问指令之前,还包括:An optional implementation manner is, before receiving the access instruction of the component library document, further include:

针对任一组件类型,根据与任一组件类型相关的配置文件生成与任一组件类型对应的子应用;For any component type, generate a sub-application corresponding to any component type according to a configuration file related to any component type;

通过子应用中的文档生成器,基于任一组件类型的各组件对应的存储路径,获取各组件的注释信息;Obtain the comment information of each component based on the storage path corresponding to each component of any component type through the document generator in the sub-application;

通过子应用中的文档生成器,根据各组件的注释信息生成对应的组件文档,并存储到对应的子应用中。Through the document generator in the sub-application, the corresponding component document is generated according to the annotation information of each component, and stored in the corresponding sub-application.

上述方法,通过上述方法生成包含各类组件类型的组件库文档,便于后续用户通过该组件文档访问不同类型的组件文档。In the above method, a component library document containing various component types is generated through the above method, so that subsequent users can access different types of component documents through the component document.

一种可选的实施方式为,与任一组件类型相关的配置文件包括各组件类型共用的公共配置文件以及与任一组件类型对应的私有配置文件;An optional implementation manner is that the configuration files related to any component type include a public configuration file shared by each component type and a private configuration file corresponding to any component type;

根据与任一组件类型相关的配置文件生成与任一组件类型对应的子应用,包括:Generate sub-applications corresponding to any component type according to configuration files related to any component type, including:

根据公共配置文件以及与任一组件类型对应的私有配置文件,生成与任一组件类型对应的子应用。Generate a sub-application corresponding to any component type according to the public configuration file and the private configuration file corresponding to any component type.

上述方法,通过公共配置简化了配置文件的复杂性,也避免了同一配置文件进行重复存储造成的资源浪费。The above method simplifies the complexity of configuration files through public configuration, and also avoids waste of resources caused by repeated storage of the same configuration file.

一种可选的实施方式为,文档生成器通过以下方式生成:An optional implementation manner is that the document generator generates in the following manner:

根据任一组件类型对应的配置文件中与文档生成器对应的配置项,生成与任一组件类型对应的子应用中的文档生成器;According to the configuration item corresponding to the document generator in the configuration file corresponding to any component type, generate the document generator in the sub-application corresponding to any component type;

其中,配置项是在配置格式进行调整后利用新配置项覆盖默认配置项的方式生成的。Among them, the configuration item is generated by using the new configuration item to override the default configuration item after the configuration format is adjusted.

上述方法,通过对配置格式进行调整,即利用新配置项覆盖默认配置项的方式实现了文档生成器对应的配置项的生成。In the above method, the generation of configuration items corresponding to the document generator is realized by adjusting the configuration format, that is, using new configuration items to overwrite default configuration items.

一种可选的实施方式为,根据与任一组件类型相关的配置文件生成与任一组件类型对应的子应用之前,还包括:An optional implementation manner is, before generating a sub-application corresponding to any component type according to a configuration file related to any component type, further include:

通过主应用的接入入口接收与任一组件类型相关的配置文件,并将与任一组件类型相关的配置文件存储到预设存储区域。The configuration file related to any component type is received through the access entry of the main application, and the configuration file related to any component type is stored in a preset storage area.

上述方法,上述主应用的接入入口方便了配置文件的接收,同时也为之后新的子应用的拓展预留了入口,即通过该接入入口接收新子应用对应的配置文件即可实现创建新的子应用。In the above method, the access entry of the above main application facilitates the reception of the configuration file, and also reserves an entry for the expansion of the new sub-application in the future, that is, the configuration file corresponding to the new sub-application can be created through the access entry. new sub-application.

本申请实施例的第二方面,提供一种组件库文档访问装置,包括:The second aspect of the embodiments of the present application provides a device for accessing component library documents, including:

接收模块,用于接收组件库文档的访问指令,访问指令中包括目标组件文档的组件类型以及目标组件文档的文档标识;The receiving module is configured to receive an access instruction of the component library document, where the access instruction includes the component type of the target component document and the document identifier of the target component document;

访问模块,用于根据组件类型,从主应用中检索与组件类型对应的目标访问路径,并根据目标访问路径进入组件类型对应的子应用;An access module, configured to retrieve a target access path corresponding to the component type from the main application according to the component type, and enter a sub-application corresponding to the component type according to the target access path;

获取模块,用于基于文档标识,从子应用中获取目标组件文档,并按照预设格式在显示界面上显示。The obtaining module is configured to obtain the target component document from the sub-application based on the document identification, and display it on the display interface according to a preset format.

一种可选的实施方式为,上述装置还包括:An optional implementation manner is that the above-mentioned device also includes:

切换模块,用于若上述显示界面上以覆盖方式显示多个组件类型的组件文档,则在接收切换指令后,利用与上述切换指令包含的切换标识对应的组件文档覆盖上述显示界面上当前显示的组件文档。The switching module is used to cover the component documents currently displayed on the above-mentioned display interface with the component documents corresponding to the switching identifier contained in the above-mentioned switching instruction after receiving the switching instruction if the component documents of multiple component types are displayed in an overlay mode on the above-mentioned display interface. Component documentation.

一种可选的实施方式为,上述装置还包括文档生成模块,上述接收模块用于接收组件库文档的访问指令之前,文档生成模块用于:An optional implementation manner is that the above-mentioned device further includes a document generation module, and before the above-mentioned receiving module is used to receive the access instruction of the component library document, the document generation module is used to:

针对任一组件类型,根据与上述任一组件类型相关的配置文件生成与上述任一组件类型对应的子应用;For any component type, generate a sub-application corresponding to any of the above component types according to the configuration file related to any of the above component types;

通过上述子应用中的文档生成器,基于上述任一组件类型的各组件对应的存储路径,获取各上述组件的注释信息;Obtain the comment information of each of the above components based on the storage path corresponding to each component of any of the above component types through the document generator in the above sub-application;

通过上述子应用中的文档生成器,根据各上述组件的上述注释信息生成对应的组件文档,并存储到对应的子应用中。Through the document generator in the above sub-application, the corresponding component document is generated according to the above-mentioned annotation information of each of the above-mentioned components, and stored in the corresponding sub-application.

一种可选的实施方式为,上述与上述任一组件类型相关的配置文件包括各组件类型共用的公共配置文件以及与上述任一组件类型对应的私有配置文件;An optional implementation manner is that the above-mentioned configuration files related to any of the above-mentioned component types include a public configuration file shared by each component type and a private configuration file corresponding to any of the above-mentioned component types;

上述文档生成模块用于根据与上述任一组件类型相关的配置文件生成与上述任一组件类型对应的子应用,包括:The above-mentioned document generating module is used to generate a sub-application corresponding to any of the above-mentioned component types according to a configuration file related to any of the above-mentioned component types, including:

根据上述公共配置文件以及与上述任一组件类型对应的私有配置文件,生成与上述任一组件类型对应的子应用。A sub-application corresponding to any of the above component types is generated according to the above public configuration file and the private configuration file corresponding to any of the above component types.

一种可选的实施方式为,上述文档生成器通过以下方式生成:An optional implementation manner is that the above-mentioned document generator is generated in the following manner:

根据上述任一组件类型对应的配置文件中与文档生成器对应的配置项,生成与上述任一组件类型对应的子应用中的文档生成器;According to the configuration item corresponding to the document generator in the configuration file corresponding to any of the above component types, generate the document generator in the sub-application corresponding to any of the above component types;

其中,上述配置项是在配置格式进行调整后利用新配置项覆盖默认配置项的方式生成的。Wherein, the above-mentioned configuration items are generated by using new configuration items to overwrite default configuration items after the configuration format is adjusted.

一种可选的实施方式为,上述文档生成模块用于根据与上述任一组件类型相关的配置文件生成与上述任一组件类型对应的子应用之前,还包括:An optional implementation manner is that before the above-mentioned document generation module is used to generate the sub-application corresponding to any of the above-mentioned component types according to the configuration file related to any of the above-mentioned component types, it further includes:

通过主应用的接入入口接收与上述任一组件类型相关的配置文件,并将上述与上述任一组件类型相关的配置文件存储到预设存储区域。The configuration file related to any one of the above component types is received through the access portal of the main application, and the configuration file related to any one of the above component types is stored in a preset storage area.

本申请实施例的第三方面,提供一种组件库文档访问设备,包括:According to a third aspect of the embodiments of the present application, a device for accessing component library documents is provided, including:

处理器;processor;

用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions;

其中,处理器被配置为执行指令,以实现上述组件库文档访问方法中任一项方法的步骤。Wherein, the processor is configured to execute instructions, so as to realize the steps of any one of the methods for accessing the above-mentioned component library documents.

本申请实施例的第四方面,提供一种计算机可读存储介质,包括计算机可读指令,当计算机读取并执行计算机可读指令时,使得计算机执行上述组件库文档访问方法中任一项方法的步骤。The fourth aspect of the embodiments of the present application provides a computer-readable storage medium, including computer-readable instructions. When the computer reads and executes the computer-readable instructions, the computer executes any one of the above methods for accessing component library documents A step of.

本申请实施例的第五方面,提供一种计算机程序产品,包括计算机程序,计算机程序存储在计算机可读存储介质中;According to a fifth aspect of the embodiments of the present application, a computer program product is provided, including a computer program, and the computer program is stored in a computer-readable storage medium;

当组件库文档访问设备的处理器从计算机可读存储介质读取计算机程序时,处理器执行计算机程序,使得电子设备执行上述组件库文档访问方法中任一方法的步骤。When the processor of the component library document accessing device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes the steps of any one of the above component library document accessing methods.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without any creative effort.

图1为本申请实施例提供的一种组件库文档访问方法的流程示意图;FIG. 1 is a schematic flowchart of a method for accessing component library documents provided by an embodiment of the present application;

图2为本申请实施例提供的一种显示界面的示意图;FIG. 2 is a schematic diagram of a display interface provided by an embodiment of the present application;

图3为本申请实施例提供的一中文档切换界面的示意图;FIG. 3 is a schematic diagram of a document switching interface provided by an embodiment of the present application;

图4为本申请实施例提供的一种组件库文档生成方法的流程示意图;FIG. 4 is a schematic flowchart of a method for generating a component library document provided in an embodiment of the present application;

图5为本申请实施例提供的一种组件库文档生成系统创建过程的示意图;FIG. 5 is a schematic diagram of a creation process of a component library document generation system provided by an embodiment of the present application;

图6为本申请实施例提供的一种组件库文档访问装置的示意图;FIG. 6 is a schematic diagram of a device for accessing component library documents provided by an embodiment of the present application;

图7为本申请实施例提供的一种组件库文档访问设备的示意图。FIG. 7 is a schematic diagram of a device for accessing component library documents provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.

本申请实施例描述的应用场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The application scenarios described in the embodiments of this application are to illustrate the technical solutions of the embodiments of the application more clearly, and do not constitute limitations on the technical solutions provided by the embodiments of the application. Those of ordinary skill in the art know that with the development of new application scenarios It appears that the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序,这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。It should be noted that the terms "first" and "second" in the specification and claims of the present application and the above drawings are used to distinguish similar objects, but not necessarily to describe a specific order or sequence. The data so used are interchangeable under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein.

以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

目前,在组件库的日常开发中,经常会进行组件的修改和添加。为了方便各开发人员的进行调用,组件库文档的编写尤为重要。目前处理组件库文档的生成主要有以下两种方式:Currently, in the daily development of the component library, components are often modified and added. In order to facilitate the calling of developers, the writing of component library documents is particularly important. At present, there are two main ways to process the generation of component library documents:

一是手动编写markdown文档,再上传到服务器,该方式效率低且时间成本大,可行性较低,并且这种方式中组件库文档也是针对单一类型的组件生成,开发人员在进行访问时,需要对不同类型的组件库文档进行切换。One is to manually write the markdown document and upload it to the server. This method is inefficient and time-consuming, and the feasibility is low. In this method, the component library document is also generated for a single type of component. When accessing, developers need to Switch between different types of component library documents.

二是搭建单一的组件库文档生成系统,例如利用react-styleguidist文档生成器搭建一个可视化文档系统,该方式只针对于特定的react或者vue框架进行生成,对于主流的vue和react框架无法同时兼容,因此需要搭建两套系统,开发人员在开发时需要不断进行切换,以实现属于不同框架的不同类型组件库文档的访问,这种方式不利于开发人员对组件库文档的开发以及访问,也增大了维护成本。The second is to build a single component library document generation system. For example, use the react-styleguidist document generator to build a visual document system. This method is only for specific react or vue frameworks. It is not compatible with mainstream vue and react frameworks at the same time. Therefore, two systems need to be built, and developers need to constantly switch during development to realize access to different types of component library documents belonging to different frameworks. This method is not conducive to developers’ development and access to component library documents, and also increases maintenance cost.

本申请实施例为便于研发人员对组件库文档的访问,通过微前端改造,设计了一种能够支持研发人员通过一套文档库生成系统访问不同类型的组件文档的组件库文档访问方法。In order to facilitate developers to access component library documents, the embodiment of the present application designs a component library document access method that can support developers to access different types of component documents through a document library generation system through micro-frontend transformation.

图1为本申请实施例提供的一种组件库文档访问方法的流程示意图,如图1,本申请提供一种组件库文档访问方法,包括以下步骤:Fig. 1 is a schematic flow diagram of a method for accessing a component library document provided by an embodiment of the present application. As shown in Fig. 1, the present application provides a method for accessing a component library document, including the following steps:

步骤101,接收组件库文档的访问指令,所述访问指令中包括目标组件文档的组件类型以及所述目标组件文档的文档标识;Step 101: Receive an access instruction of the component library document, the access instruction includes the component type of the target component document and the document identifier of the target component document;

本申请实施例中的上述目标组件文档的组件类型包括但不限于vue组件和react组件。The component types of the above target component document in the embodiment of the present application include but not limited to vue component and react component.

步骤102,根据所述组件类型,从主应用中检索与所述组件类型对应的目标访问路径,并根据所述目标访问路径进入所述组件类型对应的子应用;Step 102, according to the component type, retrieve the target access path corresponding to the component type from the main application, and enter the sub-application corresponding to the component type according to the target access path;

本申请实施例中,上述主应用中预先存储了与不同组件类型对应的访问路径,根据该访问路径,可以建立主应用与不同组件类型对应的子应用的联系。In the embodiment of the present application, the above-mentioned main application pre-stores access paths corresponding to different component types, and according to the access paths, a relationship between the main application and sub-applications corresponding to different component types can be established.

在一些实施例中,在文档库生成系统进行创建时,首先创建主应用入口(index.html文件),然后在主应用中注册了不同组件类型对应的子应用,具体地,通过registerMicroApps方法在主应用中注册不同组件类型的多个子应用,并通过parcel-bundler(打包工具)打包并运行,例如在主应用中注册vue组件对应的子应用一以及react组件对应的子应用二。In some embodiments, when creating a document library, the main application entry (index.html file) is first created, and then sub-applications corresponding to different component types are registered in the main application. Multiple sub-applications of different component types are registered in the application, and packaged and run by parcel-bundler (packaging tool), for example, sub-application 1 corresponding to the vue component and sub-application 2 corresponding to the react component are registered in the main application.

在注册子应用后,通过将子应用对应的访问路径存储到主应用中建立了主应用与各子应用以及各子应用之间的联系。After the sub-applications are registered, the main application and each sub-application and the relationship between each sub-application are established by storing the access paths corresponding to the sub-applications in the main application.

具体地,通过新增的源码修改文件client.index.js建立主应用与各子应用以及各子应用之间的联系,client.index.js是子应用的入口文件,用于将微前端子应用所需要webpack_public_path路径赋值,以及暴露三个生命周期函数,上述client.index.js可通过patch-package生成补丁文件,在文档生成系统进行创建时,调用该补丁文件实现主应用与子应用以及各子应用之间的联系的建立。Specifically, modify the file client.index.js through the newly added source code to establish the relationship between the main application and each sub-application and each sub-application. client.index.js is the entry file of the sub-application, which is used to integrate the The required webpack_public_path path assignment and the exposure of three life cycle functions, the above client.index.js can generate a patch file through patch-package, when the document generation system is created, the patch file is called to realize the main application and sub-applications and each sub-application Establishment of links between applications.

在接收到访问请求时,根据访问请求对应的组件类型,在主应用预先存储的不同组件类型对应的访问路径中检索与该组件类型对应的目标访问路径,在检索到目标访问路径后,根据该目标访问路径进入该组件类型对应的子应用。When an access request is received, according to the component type corresponding to the access request, the target access path corresponding to the component type is retrieved from the access paths corresponding to different component types pre-stored in the main application. After the target access path is retrieved, according to the The target access path enters the sub-application corresponding to the component type.

步骤103,基于文档标识,从子应用中获取目标组件文档,并按照预设格式在显示界面上显示。Step 103, based on the document identification, obtain the target component document from the sub-application, and display it on the display interface according to a preset format.

在进入对应的子应用后,根据访问指示中携带的文档标识从子应用中进行查找,查找到与文档标识对应的组件文档时,将该组件文档通过显示界面向用户显示,显示界面如图2所示(vue组件类型对应的一种组件文档的显示界面)。After entering the corresponding sub-application, search from the sub-application according to the document ID carried in the access instruction, and when the component document corresponding to the document ID is found, display the component document to the user through the display interface, as shown in Figure 2 Shown (the display interface of a component document corresponding to the vue component type).

由于上述从子应用中查询与标识对应的组件文档的过程与现有技术中根据单一的文档库生成系统进行组件库文档访问的过程类似,此处不再赘述。Since the above-mentioned process of querying and identifying corresponding component documents from sub-applications is similar to the process of accessing component library documents based on a single document library generation system in the prior art, details are not repeated here.

上述方法,在收到访问指令时,根据预先在主应用中存储的与不同组件类型对应的访问路径,进入对应的子系统获取组件文档,通过在主应用中存储不同组件类型的访问路径,实现了通过同一个主应用访问对应不同组件类型的多个子应用,即通过一套文档库生成系统访问不同类型的组件文档。The above method, when receiving an access instruction, enters the corresponding subsystem to obtain component documents according to the access paths corresponding to different component types stored in the main application in advance, and realizes by storing the access paths of different component types in the main application. In order to access multiple sub-applications corresponding to different component types through the same main application, that is, to access different types of component documents through a document library generation system.

本申请实施例中,各组件文档仅在第一次被访问时需要根据上述方法从子应用中获取,获取后存储在指定区域,用户再一次访问直接以覆盖原显示内容的方式显示该组件文档,例如在第一次收到用户的访问指令后,根据上述方法获取与用户的访问指令对应的第一组件文档,并在显示界面上显示,在第二次收到用户对另一组件文档的访问指令后,根据上述方法获取指令对应的第二组件文档,在显示界面显示时,通过覆盖第一组件文档的方式在显示界面上进行显示,即在进行另一组件文档的显示时,之前显示的组件文档并不关闭,以便于用户再次访问时直接调用。In the embodiment of this application, each component document needs to be obtained from the sub-application according to the above method only when it is accessed for the first time, and stored in a designated area after the acquisition, and the user directly displays the component document by overwriting the original display content when accessing it again , for example, after receiving the user's access instruction for the first time, obtain the first component document corresponding to the user's access instruction according to the above method, and display it on the display interface; After accessing the command, obtain the second component document corresponding to the command according to the above method, and display it on the display interface by covering the first component document when displaying on the display interface, that is, when displaying another component document, the previously displayed The component document of is not closed, so that it can be called directly when the user visits again.

当显示界面上以覆盖方式显示多个组件类型的组件文档时,则在接收切换指令后并确定切换指令中切换标识对应的组件文档已在该显示界面上进行显示时,利用切换标识对应的组件文档覆盖所述显示界面上当前显示的组件文档。When the component documents of multiple component types are displayed on the display interface in an overlay mode, after receiving the switching instruction and determining that the component document corresponding to the switching identifier in the switching instruction has been displayed on the display interface, use the component corresponding to the switching identifier The document overwrites the component document currently displayed on the display interface.

上述切换指令可以通过用户对显示界面切换按钮的点击生成,其切换按钮如图3所述,用户可以通过对不同组件类型进行点击,触发对组件文档的切换,在一些实施例中,上述切换按钮可以设置在显示界面的任一位置,如右上角等。The above switching instruction can be generated by the user clicking on the switching button of the display interface. The switching button is as shown in Figure 3. The user can click on different component types to trigger the switching of the component document. It can be set anywhere on the display interface, such as the upper right corner.

本申请实施例中,在接收组件库文档的访问指令之前,需要进行组件库文档的生成,其具体的生成过程如图4所示,(该过程为针对任一组件类型的组件文档的创建方法,组件库中各种组件类型的组件对应的组件文档按照上述方法生成后,可集合形成组件库文档),具体包括以下步骤:In the embodiment of the present application, before receiving the access instruction of the component library document, the component library document needs to be generated, and its specific generation process is shown in Figure 4, (this process is a method for creating a component document of any component type , after the component documents corresponding to the components of various component types in the component library are generated according to the above method, they can be assembled to form a component library document), which specifically includes the following steps:

步骤401,根据与任一组件类型相关的配置文件生成与任一组件类型对应的子应用;Step 401, generating a sub-application corresponding to any component type according to a configuration file related to any component type;

其中,上述配置文件包括各组件类型共用的公共配置文件以及与上述任一组件类型对应的私有配置文件。Wherein, the above-mentioned configuration files include a public configuration file shared by each component type and a private configuration file corresponding to any one of the above-mentioned component types.

上述公共配置文件(styleguide.config)中包括版本号、组件下载量、样式以及标题等配置项,上述私有配置文件(如vue组件类型对应的私有配置文件styleguide.config.vue,react组件类型对应的私有配置文件styleguide.config.react等)中包括适配微前端后的webpack配置,组件路径,启动端口等配置项。The above-mentioned public configuration file (styleguide.config) includes configuration items such as version number, component download volume, style, and title. The above-mentioned private configuration file (such as the private configuration file styleguide.config.vue corresponding to the vue component type, and the corresponding to the react component type The private configuration file styleguide.config.react, etc.) includes configuration items such as webpack configuration after adapting the micro frontend, component path, startup port, etc.

在获取上述配置文件后,根据公共配置文件以及与任一组件类型对应的私有配置文件,生成与任一组件类型对应的子应用。After obtaining the above configuration file, generate a sub-application corresponding to any component type according to the public configuration file and the private configuration file corresponding to any component type.

上述子应用包括但不限于与vue组件类型对应的子应用一以及与react组件类型对应的子应用二。The above sub-applications include but are not limited to sub-application 1 corresponding to the vue component type and sub-application 2 corresponding to the react component type.

步骤402,通过子应用中的文档生成器,基于任一组件类型的各组件对应的存储路径,获取各组件的注释信息;Step 402, through the document generator in the sub-application, based on the storage path corresponding to each component of any component type, obtain the annotation information of each component;

上述注释信息包括组件的属性注释和方法注释,上述属性注释中包括组件自身的基础属性,例如字段数量等,上述方法注释包括组件能够调用的方法,上述注释信息包括了组件对应的组件文档的全部内容。The above annotation information includes the property annotation and method annotation of the component. The above attribute annotation includes the basic properties of the component itself, such as the number of fields, etc. The above method annotation includes the methods that the component can call. content.

在一些实施例中,子应用一使用的文档生成器为vue-styleguidist,通过该文档生成器中的vue-docgen-api插件提取vue组件类型的组件的注释信息,具体地,提取vue组件类型的组件对应的代码中的props、slots、methods、events的注释信息。In some embodiments, the document generator used by sub-application 1 is vue-styleguidist, and the vue-docgen-api plug-in in the document generator is used to extract the comment information of the component of the vue component type, specifically, extract the comment information of the vue component type Annotation information of props, slots, methods, and events in the code corresponding to the component.

子应用二使用的文档生成器为react-styleguidist,通过该文档生成器中的react-docgen插件提取react组件类型的组件的注释信息,具体地,提取react组件类型的组件对应的代码中的description、displayName字段、props和methods的注释信息。The document generator used by sub-application 2 is react-styleguidist. The react-docgen plug-in in the document generator is used to extract the comment information of the components of the react component type, specifically, the description, Annotation information for displayName field, props and methods.

在一些实施例中,用户通过在/src/components添加代码文件的方式在组件库中添加新的组件(如vue组件或react组件)后,该组件对应的信息会自动存储在所有组件文件夹中,组件库文档生成系统通过调用nodejs的fs模块读取src/components所有组件文件夹中package.json,获取各组件的组件类型,并以及各组件的路径数组(存储路径),并根据组件类型的不同将各存储路径分别配置在对应的子应用中,即将组件类型为vue的组件对应的存储路径存储在styleguide.config.vue(子应用一)文件中,将组件类型为react的组件对应的存储路径存储在styleguide.config.react(子应用二)文件中。In some embodiments, after the user adds a new component (such as a vue component or a react component) in the component library by adding a code file in /src/components, the corresponding information of the component will be automatically stored in all component folders , the component library document generation system reads package.json in all component folders of src/components by calling the fs module of nodejs, obtains the component type of each component, and the path array (storage path) of each component, and according to the component type Differently configure each storage path in the corresponding sub-application, that is, store the storage path corresponding to the component type of vue in the styleguide.config.vue (sub-application 1) file, and store the corresponding storage path of the component type of react The path is stored in the styleguide.config.react (sub-application two) file.

在进行组件库文档的生成时,组件库文档生成系统从对应的子应用中获取对应组件类型的各组件的存储路径,并根据该存储路径获取各组件的注释信息。When generating the component library document, the component library document generation system obtains the storage path of each component of the corresponding component type from the corresponding sub-application, and obtains the annotation information of each component according to the storage path.

步骤403,通过子应用中的文档生成器,根据各组件的注释信息生成对应的组件文档,并存储到对应的子应用中。In step 403, the document generator in the sub-application generates the corresponding component document according to the annotation information of each component, and stores it in the corresponding sub-application.

在一些实施例中,获取各组件的注释信息后,根据该注释信息生成组件文档的json数据格式,再通过remark插件将json数据格式的组件文档生成对应Markdown,最后生成各组件类型的组件文档,并存储在对应的子应用中。In some embodiments, after obtaining the comment information of each component, generate the json data format of the component document according to the comment information, then generate the corresponding Markdown for the component document in the json data format through the remark plug-in, and finally generate the component document of each component type, and stored in the corresponding sub-applications.

上述子应用中的文档生成器通过以下方式生成:The documentation generator in the above sub-app is generated by:

根据任一组件类型对应的配置文件中与文档生成器对应的配置项,生成与任一组件类型对应的子应用中的文档生成器;According to the configuration item corresponding to the document generator in the configuration file corresponding to any component type, generate the document generator in the sub-application corresponding to any component type;

其中,配置项是在配置格式进行调整后利用新配置项覆盖默认配置项的方式生成的。Among them, the configuration item is generated by using the new configuration item to override the default configuration item after the configuration format is adjusted.

具体实施中,上述配置格式默认为利用默认配置项覆盖新的配置项(即输入的配置项),通过修改scripts.make-webpack-config.js文件,对配置格式进行调整,将原来的配置格式修改为利用新配置项覆盖默认配置项,修改scripts.make-webpack-config.js文件后,通过patch-package生成补丁文件,在实际应用过程中,调用该补丁文件实现配置格式的调整。In the specific implementation, the above configuration format defaults to use the default configuration item to cover the new configuration item (that is, the input configuration item). By modifying the scripts.make-webpack-config.js file, the configuration format is adjusted, and the original configuration format Modify to use the new configuration item to override the default configuration item. After modifying the scripts.make-webpack-config.js file, generate a patch file through patch-package. In the actual application process, call the patch file to adjust the configuration format.

在组件库文档生成系统进行创建的过程中,进行项目初始化时安装的文档生成器为默认配置的文档生成器,在子应用生成过程中,通过调用上述补丁文件,对文档生成器中的配置项进行修改,生成与子应用对应的新的文档生成器。During the creation of the component library document generation system, the document generator installed during project initialization is the document generator with the default configuration. During the sub-application generation process, the configuration items in the document generator are modified by calling the above patch file Make modifications to generate a new document generator corresponding to the sub-application.

通过上述方法修复了源码私有webpack配置被覆盖问题,解决了微前端打包配置修改的问题。Through the above method, the problem of overwriting the private webpack configuration of the source code is fixed, and the problem of modifying the packaging configuration of the micro-frontend is solved.

上述步骤401中根据与任一组件类型相关的配置文件生成与任一组件类型对应的子应用之前,还通过主应用的接入入口接收与任一组件类型相关的配置文件,并将与任一组件类型相关的配置文件存储到预设存储区域。Before the sub-application corresponding to any component type is generated according to the configuration file related to any component type in the above step 401, the configuration file related to any component type is also received through the access entry of the main application, and any Configuration files related to component types are stored in the preset storage area.

在一些实施例中,用户可通过主应用的接入入口将任一组件类型相关的配置文件输入组件库文档生成系统中,系统将接收到的配置文件存储到对应位置,在系统进行初次运行时,根据该配置文件生成对应的子应用。In some embodiments, the user can input the configuration file related to any component type into the component library document generation system through the access portal of the main application, and the system will store the received configuration file in the corresponding location. When the system runs for the first time , generate the corresponding sub-application according to the configuration file.

由于该组件库文档生成系统配置了主应用接入入口,因此在需要创建新的组件类型对应的子应用时,仅需要通过该接入入口将子应用的配置文件配置在组件库文档生成系统中,并添加对应技术的文档生成器,即可实现在主应用中添加新的子应用,即本申请实施例提供的组件库文档生成系统支持通过添加新的配置文件以及新的文档生成器的方式,实现新的前端组件技术的兼容。Since the component library document generation system is configured with the main application access entry, when it is necessary to create a sub-application corresponding to a new component type, it is only necessary to configure the configuration file of the sub-application in the component library document generation system through this access entry , and add a document generator of the corresponding technology, you can add a new sub-application in the main application, that is, the component library document generation system provided by the embodiment of this application supports adding a new configuration file and a new document generator , to achieve compatibility with new front-end component technologies.

图5为本申请实施例提供的一种组件库文档生成系统创建过程的示意图,如图5所示,上述组件库文档生成系统创建过程具体包括以下五个步骤:Fig. 5 is a schematic diagram of the creation process of a component library document generation system provided by the embodiment of the present application. As shown in Fig. 5, the above-mentioned component library document generation system creation process specifically includes the following five steps:

步骤501、进行项目初始化。Step 501, perform project initialization.

具体地,通过npm安装文档生成器,如react-styleguidist和vue-styleguidlist(分别对应于react组件类型以及vue组件类型),打包工具如webpack,微前端插件如qiankun。Specifically, install document generators through npm, such as react-styleguidist and vue-styleguidlist (corresponding to react component types and vue component types, respectively), packaging tools such as webpack, and micro front-end plug-ins such as qiankun.

步骤502、创建主应用入口index.html文件,并在主应用中注册子应用。Step 502, create the main application entry index.html file, and register the sub-application in the main application.

具体地,通过registerMicroApps方法在主应用中注册不同组件类型对应的子应用,并通过parcel-bundler(打包文件)进行打包并运行。Specifically, sub-applications corresponding to different component types are registered in the main application through the registerMicroApps method, and are packaged and run through parcel-bundler (package file).

步骤503、进行微前端改造。Step 503 , performing micro-frontend modification.

具体地,新增两个源码修改文件,两个源码修改文件分别为client.index.js和scripts.make-webpack-config.js,并通过patch-package(打包文件)生成两个补丁文件。Specifically, add two source code modification files, the two source code modification files are client.index.js and scripts.make-webpack-config.js, and generate two patch files through patch-package (package file).

其中,client.index.js是子应用的入口文件,通过将微前端子应用所需要webpack_public_path路径赋值,以及暴露三个生命周期函数,建立主应用和子应用之间,以及各子应用之间的联系。Among them, client.index.js is the entry file of the sub-application. By assigning the webpack_public_path path required by the micro-front sub-application and exposing three lifecycle functions, the relationship between the main application and the sub-applications, and between the sub-applications is established. .

通过对scripts.make-webpack-config.js进行修改文件,对配置格式进行调整,将原来的配置格式修改为利用新配置项覆盖默认配置项,修复了源码私有webpack配置被覆盖问题。By modifying the scripts.make-webpack-config.js file, adjusting the configuration format, modifying the original configuration format to use the new configuration items to override the default configuration items, and repairing the problem that the source code private webpack configuration is overwritten.

步骤504、创建公用配置和私有配置。Step 504, creating a public configuration and a private configuration.

在根目录创建styleguide.config公共配置,并分别创建与各组件类型对应的子应用(如styleguide.config.vue和styleguide.config.react)的私有配置。Create a public configuration styleguide.config in the root directory, and create private configurations for sub-applications (such as styleguide.config.vue and styleguide.config.react) corresponding to each component type.

其中不同的子应用对应于不同的文档生成流程,例如若组件类型为vue则通过styleguide.config.vue配置执行vue组件类型对应的文档生成流程,若组件类型为react组件则通过styleguide.config.react配置执行react组件类型对应的文档生成流程。Different sub-applications correspond to different document generation processes. For example, if the component type is vue, configure and execute the document generation process corresponding to the vue component type through styleguide.config.vue; if the component type is a react component, use styleguide.config.react Configure and execute the document generation process corresponding to the react component type.

在配置文件创建过程中,文档生成器对应的配置项创建过程中使用上述步骤503中的打包文件进行配置格式的修改。During the creation of the configuration file, the package file in step 503 above is used to modify the configuration format during the creation of the configuration item corresponding to the document generator.

步骤505、各组件类型对应的文档生成器从组件代码中提取注释信息,并根据注释信息生成组件库文档,并通过可视化的界面进行显示。Step 505 , the document generator corresponding to each component type extracts comment information from the component code, generates a component library document according to the comment information, and displays it through a visual interface.

本申请实施例提供的文档生成器微前端构造使组件库文档基于主应用入口及公共配置管理文件对进行统一生成,实现了配置的统一管理,并且通过对现有的文档生成器进行微前端改造,生成补丁文件,解决了文档生成系统适配微前端的问题,实现了各子应用间的实时切换。The micro-frontend structure of the document generator provided by the embodiment of this application enables the unified generation of component library documents based on the main application entry and public configuration management files, realizing the unified management of configuration, and through the micro-frontend transformation of the existing document generator , generate a patch file, solve the problem of the document generation system adapting to the micro-front end, and realize real-time switching between sub-applications.

基于相同的公开构思,本申请实施例还提供一种组件库文档访问装置,由于该装置即是本申请实施例中的方法中的装置,并且该装置解决问题的原理与该方法相似,因此该装置的实施可以参见方法的实施,重复之处不再赘述。Based on the same disclosed concept, the embodiment of the present application also provides a device for accessing component library documents. Since the device is the device in the method in the embodiment of the present application, and the problem-solving principle of the device is similar to the method, the For the implementation of the device, reference may be made to the implementation of the method, and repeated descriptions will not be repeated.

图6为本申请实施例提供的一种组件库文档访问装置的示意图,请参考图6,本申请实施例提供一种组件库文档访问装置,该装置包括:Fig. 6 is a schematic diagram of a device for accessing component library documents provided by an embodiment of the present application. Please refer to Fig. 6. An embodiment of the present application provides a device for accessing component library documents, which includes:

接收模块601,用于接收组件库文档的访问指令,上述访问指令中包括目标组件文档的组件类型以及上述目标组件文档的文档标识;The receiving module 601 is configured to receive an access instruction of the component library document, where the access instruction includes the component type of the target component document and the document identifier of the target component document;

访问模块602,用于根据上述组件类型,从主应用中检索与上述组件类型对应的目标访问路径,并根据上述目标访问路径进入上述组件类型对应的子应用;The access module 602 is configured to retrieve a target access path corresponding to the above-mentioned component type from the main application according to the above-mentioned component type, and enter a sub-application corresponding to the above-mentioned component type according to the above-mentioned target access path;

获取模块603,用于基于上述文档标识,从上述子应用中获取上述目标组件文档,并按照预设格式在显示界面上显示。The obtaining module 603 is configured to obtain the above-mentioned target component document from the above-mentioned sub-application based on the above-mentioned document identification, and display it on a display interface according to a preset format.

可选的,上述装置还包括:Optionally, the above-mentioned device also includes:

切换模块,用于若上述显示界面上以覆盖方式显示多个组件类型的组件文档,则在接收切换指令后,利用与上述切换指令包含的切换标识对应的组件文档覆盖上述显示界面上当前显示的组件文档。The switching module is used to cover the component documents currently displayed on the above-mentioned display interface with the component documents corresponding to the switching identifier contained in the above-mentioned switching instruction after receiving the switching instruction if the component documents of multiple component types are displayed in an overlay mode on the above-mentioned display interface. Component documentation.

可选的,上述装置还包括文档生成模块,上述接收模块601用于接收组件库文档的访问指令之前,文档生成模块用于:Optionally, the above-mentioned device further includes a document generation module, and before the above-mentioned receiving module 601 is used to receive the access instruction of the component library document, the document generation module is used to:

针对任一组件类型,根据与上述任一组件类型相关的配置文件生成与上述任一组件类型对应的子应用;For any component type, generate a sub-application corresponding to any of the above component types according to the configuration file related to any of the above component types;

通过上述子应用中的文档生成器,基于上述任一组件类型的各组件对应的存储路径,获取各上述组件的注释信息;Obtain the comment information of each of the above components based on the storage path corresponding to each component of any of the above component types through the document generator in the above sub-application;

通过上述子应用中的文档生成器,根据各上述组件的上述注释信息生成对应的组件文档,并存储到对应的子应用中。Through the document generator in the above sub-application, the corresponding component document is generated according to the above-mentioned annotation information of each of the above-mentioned components, and stored in the corresponding sub-application.

可选的,上述与上述任一组件类型相关的配置文件包括各组件类型共用的公共配置文件以及与上述任一组件类型对应的私有配置文件;Optionally, the above-mentioned configuration files related to any of the above-mentioned component types include public configuration files shared by each component type and private configuration files corresponding to any of the above-mentioned component types;

上述文档生成模块用于根据与上述任一组件类型相关的配置文件生成与上述任一组件类型对应的子应用,包括:The above-mentioned document generating module is used to generate a sub-application corresponding to any of the above-mentioned component types according to a configuration file related to any of the above-mentioned component types, including:

根据上述公共配置文件以及与上述任一组件类型对应的私有配置文件,生成与上述任一组件类型对应的子应用。A sub-application corresponding to any of the above component types is generated according to the above public configuration file and the private configuration file corresponding to any of the above component types.

可选的,上述文档生成器通过以下方式生成:Optionally, the above document generator is generated by:

根据上述任一组件类型对应的配置文件中与文档生成器对应的配置项,生成与上述任一组件类型对应的子应用中的文档生成器;According to the configuration item corresponding to the document generator in the configuration file corresponding to any of the above component types, generate the document generator in the sub-application corresponding to any of the above component types;

其中,上述配置项是在配置格式进行调整后利用新配置项覆盖默认配置项的方式生成的。Wherein, the above-mentioned configuration items are generated by using new configuration items to overwrite default configuration items after the configuration format is adjusted.

可选的,上述文档生成模块用于根据与上述任一组件类型相关的配置文件生成与上述任一组件类型对应的子应用之前,还包括:Optionally, before the above-mentioned document generation module is used to generate the sub-application corresponding to any of the above-mentioned component types according to the configuration file related to any of the above-mentioned component types, it also includes:

通过主应用的接入入口接收与上述任一组件类型相关的配置文件,并将上述与上述任一组件类型相关的配置文件存储到预设存储区域。The configuration file related to any one of the above component types is received through the access portal of the main application, and the configuration file related to any one of the above component types is stored in a preset storage area.

基于相同的公开构思,本申请实施例中还提供了一种组件库文档问设备,由于该设备即是本申请实施例中的方法中的设备,并且该设备解决问题的原理与该方法相似,因此该设备的实施可以参见方法的实施,重复之处不再赘述。Based on the same disclosed concept, the embodiment of the present application also provides a component library document interrogation device, since this device is the device in the method in the embodiment of the present application, and the problem-solving principle of the device is similar to the method, Therefore, the implementation of the device can refer to the implementation of the method, and the repetition will not be repeated.

所属技术领域的技术人员能够理解,本申请的各个方面可以实现为系统、方法或程序产品。因此,本申请的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art can understand that various aspects of the present application can be implemented as a system, method or program product. Therefore, various aspects of the present application can be specifically implemented in the following forms, that is: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which can be collectively referred to herein as "circuit", "module" or "system".

在一些可能的实施方式中,根据本申请的设备可以至少包括至少一个处理器、以及至少一个存储器。其中,存储器存储有程序代码,当程序代码被处理器执行时,使得处理器执行本说明书上述描述的根据本申请各种示例性实施方式的组件库文档访问方法中的步骤。In some possible implementation manners, the device according to the present application may at least include at least one processor and at least one memory. Wherein, the memory stores program codes, and when the program codes are executed by the processor, the processor is made to execute the steps in the method for accessing the component library document described above in this specification according to various exemplary embodiments of the present application.

下面参照图7来描述根据本申请的这种实施方式的设备700。图7显示的设备700仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。A device 700 according to this embodiment of the present application is described below with reference to FIG. 7 . The device 700 shown in FIG. 7 is only an example, and should not limit the functions and scope of use of this embodiment of the present application.

如图7所示,设备700以通用设备的形式表现。设备700的组件可以包括但不限于:上述至少一个处理器701、上述至少一个存储器702、连接不同系统组件(包括存储器702和处理器701)的总线703,其中,存储器存储有程序代码,当程序代码被处理器执行时,使得处理器执行以下步骤:As shown in FIG. 7, device 700 is represented as a general-purpose device. Components of the device 700 may include, but are not limited to: the above-mentioned at least one processor 701, the above-mentioned at least one memory 702, and a bus 703 connecting different system components (including the memory 702 and the processor 701), wherein the memory stores program codes, when the program When the code is executed by the processor, it causes the processor to perform the following steps:

接收组件库文档的访问指令,上述访问指令中包括目标组件文档的组件类型以及上述目标组件文档的文档标识;Receive an access instruction of the component library document, where the above access instruction includes the component type of the target component document and the document identifier of the above target component document;

根据上述组件类型,从主应用中检索与上述组件类型对应的目标访问路径,并根据上述目标访问路径进入上述组件类型对应的子应用;According to the above-mentioned component type, retrieve the target access path corresponding to the above-mentioned component type from the main application, and enter the sub-application corresponding to the above-mentioned component type according to the above-mentioned target access path;

基于上述文档标识,从上述子应用中获取上述目标组件文档,并按照预设格式在显示界面上显示。Based on the above-mentioned document identification, the above-mentioned target component document is obtained from the above-mentioned sub-application, and displayed on a display interface according to a preset format.

总线703表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器、外围总线、处理器或者使用多种总线结构中的任意总线结构的局域总线。Bus 703 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus structures.

存储器702可以包括易失性存储器形式的可读介质,例如随机存取存储器(RAM)7021和/或高速缓存存储器7022,还可以进一步包括只读存储器(ROM)7023。The memory 702 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 7021 and/or a cache memory 7022 , and may further include a read only memory (ROM) 7023 .

存储器702还可以包括具有一组(至少一个)程序模块7024的程序/实用工具7025,这样的程序模块7024包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。Memory 702 may also include programs/utilities 7025 having a set (at least one) of program modules 7024 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, which Each or some combination of the examples may include the implementation of a network environment.

设备700也可以与一个或多个外部设备704(例如键盘、指向设备等)通信,还可与一个或者多个使得用户能与设备700交互的设备通信,和/或与使得该设备700能与一个或多个其它设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口705进行。并且,设备700还可以通过网络适配器706与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器706通过总线703与用于设备700的其它模块通信。应当理解,尽管图中未示出,可以结合设备700使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理器、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Device 700 may also communicate with one or more external devices 704 (e.g., keyboards, pointing devices, etc.), and may also communicate with one or more devices that enable a user to interact with device 700, and/or communicate with Any device (eg, router, modem, etc.) that communicates with one or more other devices. Such communication may occur through input/output (I/O) interface 705 . Also, device 700 can communicate with one or more networks (eg, local area network (LAN), wide area network (WAN), and/or public networks, such as the Internet) via network adapter 706 . As shown, network adapter 706 communicates with other modules for device 700 over bus 703 . It should be understood that although not shown, other hardware and/or software modules may be used in conjunction with device 700, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and Data backup storage system, etc.

可选的,上述处理器还用于:Optionally, the above processor is also used for:

若上述显示界面上以覆盖方式显示多个组件类型的组件文档,则在接收切换指令后,利用与上述切换指令包含的切换标识对应的组件文档覆盖上述显示界面上当前显示的组件文档。If component documents of multiple component types are displayed on the display interface in an overlay manner, after receiving the switching instruction, use the component document corresponding to the switching identifier included in the switching instruction to overwrite the component document currently displayed on the display interface.

可选的,上述处理器在接收组件库文档的访问指令之前,还用于:Optionally, before receiving the access instruction of the component library document, the above processor is also used to:

针对任一组件类型,根据与上述任一组件类型相关的配置文件生成与上述任一组件类型对应的子应用;For any component type, generate a sub-application corresponding to any of the above component types according to the configuration file related to any of the above component types;

通过上述子应用中的文档生成器,基于上述任一组件类型的各组件对应的存储路径,获取各上述组件的注释信息;Obtain the comment information of each of the above components based on the storage path corresponding to each component of any of the above component types through the document generator in the above sub-application;

通过上述子应用中的文档生成器,根据各上述组件的上述注释信息生成对应的组件文档,并存储到对应的子应用中。Through the document generator in the above sub-application, the corresponding component document is generated according to the above-mentioned annotation information of each of the above-mentioned components, and stored in the corresponding sub-application.

可选的,上述与上述任一组件类型相关的配置文件包括各组件类型共用的公共配置文件以及与上述任一组件类型对应的私有配置文件;Optionally, the above-mentioned configuration files related to any of the above-mentioned component types include public configuration files shared by each component type and private configuration files corresponding to any of the above-mentioned component types;

上述处理器用于根据与上述任一组件类型相关的配置文件生成与上述任一组件类型对应的子应用,包括:The above-mentioned processor is used to generate a sub-application corresponding to any of the above-mentioned component types according to a configuration file related to any of the above-mentioned component types, including:

根据上述公共配置文件以及与上述任一组件类型对应的私有配置文件,生成与上述任一组件类型对应的子应用。A sub-application corresponding to any of the above component types is generated according to the above public configuration file and the private configuration file corresponding to any of the above component types.

可选的,上述文档生成器通过以下方式生成:Optionally, the above document generator is generated by:

根据上述任一组件类型对应的配置文件中与文档生成器对应的配置项,生成与上述任一组件类型对应的子应用中的文档生成器;According to the configuration item corresponding to the document generator in the configuration file corresponding to any of the above component types, generate the document generator in the sub-application corresponding to any of the above component types;

其中,上述配置项是在配置格式进行调整后利用新配置项覆盖默认配置项的方式生成的。Wherein, the above-mentioned configuration items are generated by using new configuration items to overwrite default configuration items after the configuration format is adjusted.

可选的,上述处理器在根据与上述任一组件类型相关的配置文件生成与上述任一组件类型对应的子应用之前,还用于:Optionally, before generating the sub-application corresponding to any of the above component types according to the configuration file related to any of the above component types, the processor is further used to:

通过主应用的接入入口接收与上述任一组件类型相关的配置文件,并将上述与上述任一组件类型相关的配置文件存储到预设存储区域。The configuration file related to any one of the above component types is received through the access portal of the main application, and the configuration file related to any one of the above component types is stored in a preset storage area.

在一些可能的实施方式中,本申请提供的一种组件库文档访问方法的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在计算机设备上运行时,程序代码用于使计算机设备执行本说明书上述描述的根据本申请各种示例性实施方式的一种组件库文档访问方法中的步骤。In some possible implementations, various aspects of a method for accessing component library documents provided in this application can also be implemented in the form of a program product, which includes program codes. When the program product runs on a computer device, the program code It is used for causing a computer device to execute the steps in a method for accessing a component library document according to various exemplary embodiments of the present application described above in this specification.

程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以是——但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。A program product may take the form of any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: electrical connection with one or more conductors, portable disk, hard disk, random access memory (RAM), read only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

本申请的实施方式的用于监控的程序产品可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在设备上运行。然而,本申请的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。The program product for monitoring according to the embodiment of the present application may adopt a portable compact disc read-only memory (CD-ROM) and include program codes, and may run on the device. However, the program product of the present application is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program, and the program may be used by or in combination with an instruction execution system, device, or device.

可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A readable signal medium may include a data signal carrying readable program code in baseband or as part of a carrier wave. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device.

可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一种或多种程序设计语言的任意组合来编写用于执行本申请操作的程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户设备上部分在远程设备上执行、或者完全在远程设备或服务端上执行。在涉及远程设备的情形中,远程设备可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户设备,或者,可以连接到外部设备(例如利用因特网服务提供商来通过因特网连接)。Program codes for performing the operations of the present application can be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural programming Language - such as "C" or similar programming language. The program code can be executed entirely on the user equipment, partially on the user equipment, as an independent software package, partially on the user equipment and partially on the remote equipment, or entirely on the remote equipment or the server. In cases involving a remote device, the remote device may be connected to the user device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external device (such as through an Internet Service Provider). Internet connection).

应当注意,尽管在上文详细描述中提及了装置的若干单元或子单元,但是这种划分仅仅是示例性的并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多单元的特征和功能可以在一个单元中具体化。反之,上文描述的一个单元的特征和功能可以进一步划分为由多个单元来具体化。It should be noted that although several units or subunits of the apparatus are mentioned in the above detailed description, this division is only exemplary and not mandatory. Actually, according to the embodiment of the present application, the features and functions of two or more units described above may be embodied in one unit. Conversely, the features and functions of one unit described above may be further divided to be embodied by a plurality of units.

此外,尽管在附图中以特定顺序描述了本申请方法的操作,但是,这并非要求或者暗示必须按照该特定顺序来执行这些操作,或是必须执行全部所示的操作才能实现期望的结果。附加地或备选地,可以省略某些步骤,将多个步骤合并为一个步骤执行,和/或将一个步骤分解为多个步骤执行。In addition, while operations of the methods of the present application are depicted in the figures in a particular order, there is no requirement or implication that these operations must be performed in that particular order, or that all illustrated operations must be performed to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和方框图来描述的。应理解可由计算机程序指令实现流程图和方框图中的每一流程和/或方框、以及流程图和方框图中的流程和方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and block diagrams, and combinations of procedures and blocks in the flowchart and block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow diagram flow or flow and block diagram flow or block.

尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While preferred embodiments of the present application have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, the appended claims are intended to be construed to cover the preferred embodiment and all changes and modifications which fall within the scope of the application.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (10)

1.一种组件库文档访问方法,其特征在于,包括:1. A component library document access method, characterized in that, comprising: 接收组件库文档的访问指令,所述访问指令中包括目标组件文档的组件类型以及所述目标组件文档的文档标识;receiving an access instruction of the component library document, wherein the access instruction includes the component type of the target component document and the document identifier of the target component document; 根据所述组件类型,从主应用中检索与所述组件类型对应的目标访问路径,并根据所述目标访问路径进入所述组件类型对应的子应用;Retrieving a target access path corresponding to the component type from the main application according to the component type, and entering a sub-application corresponding to the component type according to the target access path; 基于所述文档标识,从所述子应用中获取所述目标组件文档,并按照预设格式在显示界面上显示。Based on the document identifier, the target component document is obtained from the sub-application, and displayed on a display interface according to a preset format. 2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that the method further comprises: 若所述显示界面上以覆盖方式显示多个组件类型的组件文档,则在接收切换指令后,利用与所述切换指令包含的切换标识对应的组件文档覆盖所述显示界面上当前显示的组件文档。If multiple component types of component documents are displayed on the display interface in an overlay manner, after receiving the switching instruction, use the component document corresponding to the switching identifier included in the switching instruction to overwrite the component document currently displayed on the display interface . 3.根据权利要求1或2所述的方法,其特征在于,接收组件库文档的访问指令之前,还包括:3. The method according to claim 1 or 2, wherein, before receiving the access instruction of the component library document, further comprising: 针对任一组件类型,根据与所述任一组件类型相关的配置文件生成与所述任一组件类型对应的子应用;For any component type, generating a sub-application corresponding to any component type according to a configuration file related to the any component type; 通过所述子应用中的文档生成器,基于所述任一组件类型的各组件对应的存储路径,获取各所述组件的注释信息;Acquiring annotation information of each component based on a storage path corresponding to each component of any component type through the document generator in the sub-application; 通过所述子应用中的文档生成器,根据各所述组件的所述注释信息生成对应的组件文档,并存储到对应的子应用中。Through the document generator in the sub-application, the corresponding component document is generated according to the annotation information of each of the components, and stored in the corresponding sub-application. 4.根据权利要求3所述的方法,其特征在于,所述与所述任一组件类型相关的配置文件包括各组件类型共用的公共配置文件以及与所述任一组件类型对应的私有配置文件;4. The method according to claim 3, wherein the configuration files related to any component type include a public configuration file shared by each component type and a private configuration file corresponding to any component type ; 根据与所述任一组件类型相关的配置文件生成与所述任一组件类型对应的子应用,包括:Generating a sub-application corresponding to any component type according to a configuration file related to any component type, including: 根据所述公共配置文件以及与所述任一组件类型对应的私有配置文件,生成与所述任一组件类型对应的子应用。A sub-application corresponding to any component type is generated according to the public configuration file and the private configuration file corresponding to the any component type. 5.根据权利要求3所述的方法,其特征在于,所述文档生成器通过以下方式生成:5. The method according to claim 3, wherein the document generator is generated in the following manner: 根据所述任一组件类型对应的配置文件中与文档生成器对应的配置项,生成与所述任一组件类型对应的子应用中的文档生成器;generating the document generator in the sub-application corresponding to the any component type according to the configuration item corresponding to the document generator in the configuration file corresponding to the any component type; 其中,所述配置项是在配置格式进行调整后利用新配置项覆盖默认配置项的方式生成的。Wherein, the configuration items are generated by using new configuration items to overwrite default configuration items after the configuration format is adjusted. 6.根据权利要求3所述的方法,其特征在于,根据与所述任一组件类型相关的配置文件生成与所述任一组件类型对应的子应用之前,还包括:6. The method according to claim 3, further comprising: 通过主应用的接入入口接收与所述任一组件类型相关的配置文件,并将所述与所述任一组件类型相关的配置文件存储到预设存储区域。The configuration file related to any component type is received through the access entry of the main application, and the configuration file related to the any component type is stored in a preset storage area. 7.一种组件库文档访问装置,其特征在于,包括:7. A component library document access device, characterized in that it comprises: 接收模块,用于接收组件库文档的访问指令,所述访问指令中包括目标组件文档的组件类型以及所述目标组件文档的文档标识;A receiving module, configured to receive an access instruction of the component library document, wherein the access instruction includes the component type of the target component document and the document identifier of the target component document; 访问模块,用于根据所述组件类型,从主应用中检索与所述组件类型对应的目标访问路径,并根据所述目标访问路径进入所述组件类型对应的子应用;An access module, configured to retrieve a target access path corresponding to the component type from the main application according to the component type, and enter a sub-application corresponding to the component type according to the target access path; 获取模块,用于基于所述文档标识,从所述子应用中获取所述目标组件文档,并按照预设格式在显示界面上显示。An acquisition module, configured to acquire the target component document from the sub-application based on the document identifier, and display it on a display interface in a preset format. 8.一种组件库文档访问设备,其特征在于,所述设备包括:8. A component library document access device, characterized in that the device comprises: 处理器;processor; 用于存储所述处理器可执行指令的存储器;memory for storing said processor-executable instructions; 其中,所述处理器被配置为执行所述指令,以实现如权利要求1至6中任一项所述方法的步骤。Wherein, the processor is configured to execute the instructions, so as to realize the steps of the method according to any one of claims 1-6. 9.一种计算机可读存储介质,其特征在于,包括计算机可读指令,当计算机读取并执行所述计算机可读指令时,使得计算机执行权利要求1至6中任一项所述方法的步骤。9. A computer-readable storage medium, characterized in that it includes computer-readable instructions, and when the computer reads and executes the computer-readable instructions, the computer executes the method according to any one of claims 1 to 6 step. 10.一种计算机程序产品,其特征在于,包括计算机程序,所述计算机程序存储在计算机可读存储介质中;10. A computer program product, characterized in that it comprises a computer program, and the computer program is stored in a computer-readable storage medium; 当组件库文档访问设备的处理器从所述计算机可读存储介质读取所述计算机程序时,所述处理器执行所述计算机程序,使得所述电子设备执行权利要求1至6中任一所述方法的步骤。When the processor of the component library document access device reads the computer program from the computer-readable storage medium, the processor executes the computer program, so that the electronic device executes any one of claims 1 to 6. steps of the method described above.
CN202210909095.3A 2022-07-29 2022-07-29 Component library document access method, device, equipment and medium Pending CN115268897A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210909095.3A CN115268897A (en) 2022-07-29 2022-07-29 Component library document access method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210909095.3A CN115268897A (en) 2022-07-29 2022-07-29 Component library document access method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN115268897A true CN115268897A (en) 2022-11-01

Family

ID=83746934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210909095.3A Pending CN115268897A (en) 2022-07-29 2022-07-29 Component library document access method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN115268897A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7568184B1 (en) * 2004-04-14 2009-07-28 Sun Microsystems, Inc. Software documentation generator
CN113761412A (en) * 2020-09-17 2021-12-07 北京沃东天骏信息技术有限公司 Application page display method and device, electronic equipment, medium and application system
CN113986226A (en) * 2021-12-28 2022-01-28 中国电子科技网络信息安全有限公司 Micro front end architecture based on qiankun and Web Component and construction method thereof
CN114443129A (en) * 2021-12-30 2022-05-06 广东南方新媒体科技有限公司 Project document automatic generation method, device and storage medium
CN114610286A (en) * 2022-03-21 2022-06-10 平安普惠企业管理有限公司 Method, device, computer equipment and storage medium for generating development documents
CN114662022A (en) * 2020-12-23 2022-06-24 京东科技控股股份有限公司 Application isolation method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7568184B1 (en) * 2004-04-14 2009-07-28 Sun Microsystems, Inc. Software documentation generator
CN113761412A (en) * 2020-09-17 2021-12-07 北京沃东天骏信息技术有限公司 Application page display method and device, electronic equipment, medium and application system
CN114662022A (en) * 2020-12-23 2022-06-24 京东科技控股股份有限公司 Application isolation method and device
CN113986226A (en) * 2021-12-28 2022-01-28 中国电子科技网络信息安全有限公司 Micro front end architecture based on qiankun and Web Component and construction method thereof
CN114443129A (en) * 2021-12-30 2022-05-06 广东南方新媒体科技有限公司 Project document automatic generation method, device and storage medium
CN114610286A (en) * 2022-03-21 2022-06-10 平安普惠企业管理有限公司 Method, device, computer equipment and storage medium for generating development documents

Similar Documents

Publication Publication Date Title
US12093668B2 (en) iOS application program construction method and apparatus, electronic device, and storage medium
CN110688142B (en) Method, device and storage medium for publishing application programming interface
US11667033B2 (en) Systems and methods for robotic process automation
CN111740948B (en) Data packet issuing method, dynamic updating method, device, equipment and medium
CN110531962B (en) Development processing method and device for applet and computer readable storage medium
US11182276B2 (en) Development-time awareness of a production dependency injection environment
US8910190B2 (en) Analytics data collection with low integration cost for dynamic message passing systems
US20140289738A1 (en) Systems and Methods for Dynamic Configuration of Client-Side Development Environments Through Use of Application Servers
US11741002B2 (en) Test automation systems and methods using logical identifiers
EP3336689A1 (en) Imposing a common build system for services from disparate sources
CN108037949B (en) Installation package multi-channel packaging method, device, computer equipment and storage medium
US8365154B2 (en) Multi-language software development
US11372627B2 (en) System and method for providing integrated development environment (IDE) for programmable software system
US9135001B2 (en) Dynamically configuring an integrated development environment
US20210271458A1 (en) Managing an app method and system
US12393508B2 (en) Automation testing with remote device infrastructure
CN115268897A (en) Component library document access method, device, equipment and medium
Song et al. Applying MDE tools at runtime: Experiments upon runtime models
US20220365758A1 (en) Tool for Introspection in Object-Oriented Source Code
TWI738216B (en) Developing method and developing device for event processing file
CN110442373B (en) Copyright information adding method, device and medium
CN115080077A (en) Plug-in updating method, device, electronic equipment, system and storage medium
JP5359704B2 (en) PROGRAM GENERATION SYSTEM, PROGRAM GENERATION DEVICE, PROGRAM GENERATION METHOD, PROGRAM, AND RECORDING MEDIUM
CN118132058A (en) Code generation method, device, electronic equipment and storage medium
CN115617361A (en) A unified management big data component deployment system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination