WO2023165397A1 - Component updating method and apparatus, electronic device, and computer readable storage medium - Google Patents

Component updating method and apparatus, electronic device, and computer readable storage medium Download PDF

Info

Publication number
WO2023165397A1
WO2023165397A1 PCT/CN2023/077708 CN2023077708W WO2023165397A1 WO 2023165397 A1 WO2023165397 A1 WO 2023165397A1 CN 2023077708 W CN2023077708 W CN 2023077708W WO 2023165397 A1 WO2023165397 A1 WO 2023165397A1
Authority
WO
WIPO (PCT)
Prior art keywords
page
component
module
update
program editor
Prior art date
Application number
PCT/CN2023/077708
Other languages
French (fr)
Chinese (zh)
Inventor
吴智明
林顺
Original Assignee
厦门雅基软件有限公司
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 厦门雅基软件有限公司 filed Critical 厦门雅基软件有限公司
Publication of WO2023165397A1 publication Critical patent/WO2023165397A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Definitions

  • the present application relates to the field of computer technology, and in particular, the present application relates to a component updating method, device, electronic equipment, and computer-readable storage medium.
  • a third-party component is a related component developed by an organization or individual other than the software developer, for example, based on engine development tools such as Unity, Laya, and cocos2d, to address the shortcomings or defects in the application functions of a certain software.
  • third-party components can only be developed by developers with certain programming skills, and it is difficult for non-developers to develop third-party components, or adjust some display content and related functions of third-party components.
  • the display content and related functions of third-party components made by developers are relatively fixed, and it is difficult for users who are not developers to adjust themselves, so it is difficult to meet the actual needs of different users.
  • the embodiments of the present application aim to solve at least one aspect of the foregoing technical problems to a certain extent.
  • a component updating method comprising:
  • an edit control of the page is displayed in an update interface of the program editor, wherein the page includes at least one user-editable marking module, and the marking module is based on a fixed module that cannot be edited by the user. obtained by marking;
  • the markup module in the page is updated to generate the target component after the edit operation on the initial component.
  • a device for updating components which includes:
  • the display module is used to display the edit control of the page in the update interface of the program editor in response to the update instruction for the page in the initial component, wherein the page includes at least one user-editable marking module, and the marking module is based on the user-inaccessible Edited fixed modules are marked;
  • the generating module is configured to update the marking module in the page in response to the editing operation on the editing control, and generate the target component after the editing operation of the initial component.
  • the component updating device further includes:
  • the first loading module is configured to load each page of the initial component and display an update interface of the program editor in response to an update mode selection instruction for the program editor.
  • the generating module is specifically used for:
  • At least one of text data, picture data, audio data, and video data in the markup module corresponding to the page is updated according to the editing operation.
  • the component updating device further includes:
  • the second loading module is used to load each page of the initial component and display the development interface of the program editor in response to the development mode selection instruction for the program editor.
  • the component updating device further includes:
  • the marking module is used to determine at least one fixed module in the page on the development interface of the program editor, and mark the fixed module through the decorator function, so that an editing operation control relationship is established between the marking module obtained by marking and the editing control of the page .
  • each page of the initial component is created based on a component template
  • the component updating device further includes:
  • the assembly module is used to assemble component templates on the development interface of the program editor and generate corresponding initial components.
  • an electronic device includes a memory, a processor, and a computer program stored on the memory, and the processor executes the computer program to implement the steps of the above component updating method.
  • a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above component updating method are implemented.
  • FIG. 1 is one of the schematic flow charts of a component updating method according to an embodiment of the present application
  • FIG. 2 is an interface display diagram of a component updating method according to an embodiment of the present application
  • FIG. 3 is a second schematic flow diagram of a component updating method according to an embodiment of the present application.
  • FIG. 4 is a third schematic flow diagram of a component updating method according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a component updating device according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device for updating components according to an embodiment of the present application.
  • connection may include wireless connection or wireless coupling.
  • the term “and/or” used herein indicates at least one of the items defined by the term, for example, “A and/or B” can be implemented as “A”, or as “B”, or as “A and B ".
  • the embodiment of the present application provides a component updating method, as shown in FIG. 1 , including steps S101 to S102.
  • Step S101 in response to the update instruction for the page in the initial component, display the edit control of the page in the update interface of the program editor, wherein the page includes at least one user-editable marking module, and the marking module is based on the user-uneditable Obtained by marking the fixed module.
  • the initial component is a third-party component to be updated, consisting of some resources and codes.
  • Program editors are applications that update original components.
  • the initial component can be pre-stored in the program editor, or can be imported into the program editor by the user.
  • the initial component can be applied to various scenarios such as meetings, speeches, and teaching.
  • the initial component includes at least one interactive page, and each page can display multimedia content such as text, images, and videos.
  • the initial component can be understood as an interactive multimedia courseware.
  • Each page of the initial component is displayed in the update interface of the program editor, and the user can select one of the pages to open and perform an update operation.
  • FIG. 2 is an interface display diagram of a component updating method according to an embodiment of the present application.
  • the update interface of the program editor displays the first page, the second page, ..., the Nth page of the initial component.
  • the user opens any page or a specified page in the initial component, selects the content that needs to be updated in the page, and then triggers an update command for the current page of the initial component.
  • the user selects the text content of the current page to trigger an update command.
  • the program editor displays the edit control of the page in the update interface in response to the update instruction.
  • the page includes at least one user-editable marking module, and the marking module is obtained by marking the fixed module.
  • the page may also include at least one fixed module that is not user editable, the fixed module is not marked.
  • the marking module may include text, animation, size, special effect, script, video, prefab, game, etc.
  • the fixed module may include special effect, script, etc.
  • the current page of the initial component is displayed as a multiple-choice question, so the text content of the question stem and options belong to the marked module, while the underlying logical structure belongs to the fixed module.
  • Users that is, non-developers, can edit the text content of the question stem and options in the multiple-choice questions, but cannot edit the underlying logical structure.
  • the underlying logical structure is defined by the developer.
  • the marking module may be obtained by marking the fixed module through a decorator function, so that an editing operation control relationship is established between the marked marking module and the editing control of the page.
  • Step S102 in response to the edit operation on the edit control, update the markup module in the page, and generate the target component after the edit operation of the initial component.
  • the marking module of the initial component is updated to generate an updated target component.
  • the original option answer in the page is updated to the new option answer re-determined by the user in the edit control; the original background image in the current page is updated to the new background image re-inserted by the user in the edit control, etc.
  • Applying the component update method provided by the embodiment of the present application in response to an update instruction for the page in the initial component, displaying the edit control of the page in the update interface of the program editor; wherein, the page includes at least one user-editable markup module;
  • the marking module is obtained based on marking a fixed module that cannot be edited by the user; then, in response to the editing operation on the edit control, the marking module in the page is updated to generate the target component after the editing operation of the initial component.
  • the embodiment of this application realizes the distinction between the marking module and the fixed module, so that non-developers can edit the marking module in the initial component in the visual update panel, so as to update the initial component to meet their own customization needs, and update
  • the operation is simple and convenient, without writing any code.
  • the embodiment of the present application provides a component updating method, as shown in FIG. 3 , including steps S301 to S303.
  • Step S301 in response to an update mode selection instruction for the program editor, load each page of the initial component, and display an update interface of the program editor.
  • the initial component is a third-party component to be updated, consisting of some resources and codes.
  • Program editors are applications that update original components.
  • the initial component can be pre-stored in the program editor, or can be imported into the program editor by the user.
  • the update mode selection command can be used It can be triggered actively when the user clicks the mode selection control, or it can be triggered by default when the initial component is imported or opened, and there is no limitation on this.
  • each page of the initial component is loaded, and an update interface of the program editor is displayed, and each page of the initial component is displayed in the update interface.
  • the initial component in the embodiment of this application can be applied to various scenarios such as meetings, speeches, and teaching.
  • the initial component includes at least one interactive page, and each page can display multimedia content such as text, images, and videos. .
  • the initial component can be understood as an interactive multimedia courseware.
  • Each page of the initial component is displayed in the update interface of the program editor, and the user can select one of the pages to open and perform an update operation.
  • Step S302 in response to the update instruction for the page in the initial component, display the edit control of the page in the update interface of the program editor, wherein the page includes at least one user-editable marking module, and the marking module is based on the user-uneditable Obtained by marking the fixed module.
  • the update interface of the program editor displays the first page, the second page, ..., the Nth page of the initial component.
  • the user opens any page or a specified page in the initial component, selects the content that needs to be updated in the page, and then triggers an update command for the current page of the initial component.
  • the user selects the text content of the current page to trigger an update command.
  • the program editor displays the edit control of the page in the update interface in response to the update instruction.
  • Template A, template B, ..., template N in the component templates are displayed on the update interface of the program editor.
  • Each page of the initial component is created based on component templates, such as picture templates, text templates, audio templates, video templates, combination templates (templates composed of pictures, text, audio, video, etc.), etc.
  • component templates may include multiple-choice templates, true-false templates, and blank-filling templates, and the multiple-choice templates, true-false templates, and blank-filling templates are combined templates.
  • the first page of the initial component can be a template for multiple choice questions
  • the second page can be a template for true or false questions
  • the third page can be a template for filling in the blanks.
  • Each page is created based on the component template.
  • the initial component's Each page can also include picture content, playable video content, and interactive mini-games, etc., all of which can be realized through preset component templates, so we won't go into details one by one.
  • the page includes at least one user-editable marking module, and the marking module is obtained by marking the fixed module.
  • the page may also include at least one fixed module that is not user editable, the fixed module is not marked.
  • the marking module may include text, animation, size, special effect, script, video, prefab, game, etc.
  • the fixed module may include special effect, script, etc.
  • the text content of the question stem and options belong to the mark module, while the underlying logical structure belongs to the fixed module.
  • Users that is, non-developers, can edit the text content of the question stem and options in the multiple-choice template, but cannot edit the underlying logical structure.
  • the underlying logical structure is defined by the developer.
  • the stem of the multiple-choice question template is: Which of the following options are fruits?
  • the options are: Apple, Pepper, Cucumber, Spinach.
  • the multiple-choice questions that users need are: Which of the following are mammals?
  • the required options are: Carp, Duck, Cat, Snake.
  • the user can replace the text content of the question stem and the text content of the options, and mark the cat as the correct answer, so that it can become a multiple-choice template that meets their needs.
  • Step S303 in response to the edit operation on the edit control, update the markup module in the page, and generate the target component after the edit operation of the initial component.
  • the marking module of the initial component is updated to generate an updated target component.
  • step S303 includes:
  • At least one of text data, picture data, and video data in the marking module corresponding to the page is updated according to the editing operation.
  • the user can edit the edit control.
  • the user can also edit the text and image content in the combination template used by the initial component. Edit with audio and video content, so that the program editor updates the corresponding text data, picture data, audio data and video data, and generates the target component.
  • the user can use the edit control to insert or delete text content, picture content and video content, and can also edit the size, position, size, rotation angle, etc. of the text content, picture content and video content.
  • the content is pre-defined by the developer as a tag module
  • non-developers can edit it in the edit control that has an edit operation control relationship with the tag module.
  • the developer provides the implementation of functions and the interface of the editable markup module for non-developers, so that non-developers only need to focus on the parts they can edit to realize their own customization requirements for components.
  • the component updating method further includes steps S401 and S402.
  • Step S401 in response to a development mode selection instruction for the program editor, load each page of the initial component, and display the development interface of the program editor.
  • the user or developer can click the development mode selection button to trigger the development mode selection instruction.
  • the program editor loads each page of the initial component in response to the development mode selection instruction, and displays the development interface of the program editor.
  • Different access rights can be set for the development interface of the program editor and the update interface of the program editor respectively.
  • the development mode selection has permission, and only developers or users who have set the development permission can enter the development interface according to the development mode selection instruction. Users with normal permissions can only access the update interface of the program editor. In this way, the permission separation control of the underlying logic and the upper application is realized.
  • an update interface of a program editor is an editing interface provided to non-developers
  • a development interface of a program editor is an editing interface provided to developers.
  • non-developers have certain development capabilities and can write code by themselves.
  • development functions are provided for these non-developers, and at the same time, a visual development interface that can view development effects in real time is provided for developers.
  • Step S402 on the development interface of the program editor, determine at least one fixed module in the component template, and mark the fixed module through the decorator function, so that an edit operation control relationship is established between the marked module obtained by marking and the edit control of the page.
  • the decorator function is provided by TypeScript.
  • some commonly used decorators are predefined, such as the @eduProperty decorator, and some modules for filtering are also predefined, such as @eduProperty( ⁇ visible:true,uiModeNumber :'time' ⁇ ).
  • the @eduProperty() decorator is used to mark the module. If a module is not pre-marked with the @eduProperty() decorator, then this module will not be visible in the update interface of the program editor.
  • a module is marked with @eduProperty( ⁇ visible:true ⁇ ), it means that this module is visible in the development interface of the program editor, where visible is used to control whether the module is visible. visible can also be false, when visible is false, it is used to indicate that although this module is visible in the development interface of the program editor, this module is artificially hidden by the developer in the update interface.
  • uiModeNumber is used to control the type of numeric display. For example, use uiModeNumber to mark the module, @eduProperty( ⁇ visible:true,uiModeNumber:'time' ⁇ ) indicates that this module is marked as a time selector.
  • a time selection box will pop up on the update interface of the program editor, which is the corresponding edit control, allowing the user to directly select the time. In this way, it is displayed as a time selector in the update interface of the program editor.
  • the marking module in the page is obtained by pre-marking the fixed module based on the decorator function.
  • the step of marking the fixed module with the decorator function is implemented in the development interface of the program editor.
  • At least one fixed module in the page is determined, and the fixed module is marked by a decorator function, so that an edit operation control relationship is established between the marked module obtained by marking and the edit control of the page.
  • the component updating method further includes:
  • step S401 the user can assemble component templates on the development interface of the program editor to generate corresponding initial components.
  • Some implemented basic component templates are predefined in the program editor for developers, thus simplifying the steps for developers to develop components.
  • the basic component templates include EduText text component templates, EduMovie video component templates, EduImage image component templates, and EduAudio audio component templates. script grouping.
  • Grouping is achieved by inheriting the built-in base class EduElementAbstract. Each script is divided into one group by default. Multiple scripts inherited from EduElementAbstract are divided into multiple groups by default. Grouping requires two conditions: inheriting from EduElementAbstract and the script is mounted in the initial on the component.
  • Assemble basic component templates which can quickly generate initial components, reduce the workload of developers, and improve the efficiency of component generation and update.
  • the marking module and the fixed module of the initial component are distributed to different panels of the program editor.
  • distribute the marking module to the program editor The update interface of the editor distributes the fixed modules to the development interface of the program editor, so that the marked module and the fixed module are displayed in different interfaces. Therefore, the user or developer needs to edit the marking module of the initial component in the update interface of the program editor, and edit the fixed module of the initial component only in the development interface of the program editor. In this way, the editing operations of the marking module and the fixed module are separated, and different users or developers complete the editing operations of different modules to jointly realize the update operation of the initial component.
  • the program editor includes a map function.
  • the program editor can use the texture function, which is implemented based on the texture type of VideoTexture.
  • the texture function can embed the video content in the page of the initial component and use it as a picture.
  • the program editor uses this function on the above platform to switch the video content as a texture in the built-in Sprite component of Creator, so as to realize the video play.
  • the interaction of video content includes playing, pausing, jumping time and so on.
  • Interaction is possible as long as the hierarchy of other content is displayed above the hierarchy of the video content in the same page as the originating component.
  • the video content can be placed at the bottom of the video player to ensure that the level of other content is displayed above the level of the video content, so as to realize the display and interaction of other content.
  • the edit control of the page in response to the update instruction for the page in the initial component, is displayed in the update interface of the program editor; wherein, the page includes at least one user-editable mark module; mark The module is obtained based on marking a fixed module that cannot be edited by the user; then, in response to the editing operation on the edit control, the marking module in the page is updated to generate the target component after the editing operation of the initial component.
  • the embodiment of the present application realizes the distinction between the markup module and the fixed module in the component template that generates the initial component, thereby isolating the editing operations of developers and non-developers.
  • Non-developers can edit the markup module in the original component in the visual update panel to implement Now update the initial components to meet your own custom needs, and the update operation is simple and convenient without writing any code.
  • An embodiment of the present application provides a component update device, as shown in Figure 5, including:
  • the display module 501 is configured to display the edit control of the page in the update interface of the program editor in response to an update instruction for the page in the initial component, wherein the page includes at least one user-editable marking module, and the marking module is based on the user's non-editable fixed blocks are marked;
  • the generating module 502 is configured to update the marking module in the page in response to the editing operation on the editing control, and generate the target component after the editing operation of the initial component.
  • the component updating device further includes:
  • the first loading module is configured to load each page of the initial component and display an update interface of the program editor in response to an update mode selection instruction for the program editor.
  • the generating module 502 is specifically configured to:
  • At least one of text data, picture data, audio data, and video data in the markup module corresponding to the page is updated according to the editing operation.
  • the component updating device further includes:
  • the second loading module is used to load each page of the initial component and display the development interface of the program editor in response to the development mode selection instruction for the program editor.
  • the component updating device further includes:
  • the marking module is used to determine at least one fixed module in the page on the development interface of the program editor, and mark the fixed module through the decorator function, so that an editing operation control relationship is established between the marking module obtained by marking and the editing control of the page .
  • each page of the initial component is created based on a component template
  • the component updating device further includes:
  • the assembly module is used to assemble component templates on the development interface of the program editor and generate corresponding initial components.
  • the edit control of the page in response to the update instruction for the page in the initial component, is displayed in the update interface of the program editor; wherein, the page includes at least one user-editable mark module; mark The module is obtained based on marking a fixed module that cannot be edited by the user; then, in response to the editing operation on the edit control, the marking module in the page is updated to generate the target component after the editing operation of the initial component.
  • the embodiment of the present application realizes the distinction between the markup module and the fixed module in the component template that generates the initial component, thereby isolating the editing operations of developers and non-developers.
  • Non-developers can edit the marker module in the initial component in the visual update panel, so as to update the initial component to meet their own customization needs, and the update operation is simple and convenient without writing any code.
  • An electronic device (computer device/equipment/system) is provided in an embodiment of the present application, including a memory, a processor, and a computer program stored on the memory.
  • the processor executes the computer program to implement the above-mentioned embodiments according to the present application.
  • the component update method is provided in an embodiment of the present application, including a memory, a processor, and a computer program stored on the memory.
  • the processor executes the computer program to implement the above-mentioned embodiments according to the present application.
  • the component update method The component update method.
  • the marking module and the fixed module in the component template generating the initial component are distinguished, thereby isolating the editing operations of developers and non-developers.
  • Non-developers can edit the marker module in the initial component in the visual update panel, so as to update the initial component to meet their own customization needs, and the update operation is simple and convenient without writing any code.
  • the electronic device 6000 includes: a processor 6001 and a memory 6003 .
  • the processor 6001 is connected to the memory 6003, such as through connected via the bus 6002.
  • the memory 6003 may store a computer program executable by the processor 6001.
  • the processor 6001 executes the computer program to implement the following operations: in response to an update instruction for the page in the initial component, in the program editor updating the edit control displayed on the page in the interface, wherein the page includes at least one user-editable marking module, and the marking module is obtained based on marking a fixed module that cannot be edited by the user; in response to the The editing operation of the editing control updates the marking module in the page, and generates the target component after the editing operation of the initial component.
  • the electronic device 6000 may further include a transceiver 6004, and the transceiver 6004 may be used for data interaction between the electronic device and other electronic devices, such as sending data and/or receiving data.
  • the transceiver 6004 is not limited to one, and the structure of the electronic device 6000 does not limit the embodiment of the present application.
  • Processor 6001 can be CPU (Central Processing Unit, central processing unit), general processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit, application specific integrated circuit), FPGA (Field Programmable Gate Array , Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor 6001 may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and the like.
  • Bus 6002 may include a path for carrying information between the components described above.
  • the bus 6002 may be a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus or an EISA (Extended Industry Standard Architecture, Extended Industry Standard Architecture) bus, etc.
  • the bus 6002 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 6 , but it does not mean that there is only one bus or one type of bus.
  • Memory 6003 can be ROM (Read Only Memory, read-only memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory, random access memory) or other types of static storage devices that can store information and instructions Dynamic storage device, also can be EEPROM (Electrically Erasable Programmable Read Only Memory, Electrically Erasable Programmable Read-Only Memory), CD-ROM (Compact Disc Read Only Memory, CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc. ), disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store a computer program and that can be read by a computer, without limitation.
  • ROM Read Only Memory, read-only memory
  • RAM Random Access Memory, random access memory
  • Dynamic storage device also can be EEPROM (Electrically Erasable Programmable Read Only Memory, Electrically Erasable Programmable Read-Only Memory), CD-ROM
  • the memory 6003 is used to store the computer programs for executing the embodiments of the present application, and the execution is controlled by the processor 6001 .
  • the processor 6001 is configured to execute the computer program stored in the memory 6003 to implement the steps shown in the foregoing method embodiments.
  • An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored.
  • the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiments can be realized.
  • the computer readable storage medium includes a non-transitory computer readable storage medium.
  • the embodiment of the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps and corresponding contents of the foregoing method embodiments can be realized.
  • arrows indicate various operation steps in the flow chart of the embodiment of the present application
  • the execution order of these steps is not limited to the order indicated by the arrows.
  • the implementation steps in each flowchart may be performed in other orders as required.
  • part or all of the steps in each flow chart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each of these sub-steps or stages may also be executed at different times. In scenarios where execution times are different, the execution order of these sub-steps or stages can be flexibly configured according to requirements, which is not limited in this embodiment of the present application.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

Provided are a component updating method and apparatus, an electronic device, and a computer readable storage medium. The component updating method comprises: in response to an updating instruction for a page in an initial component, displaying an editing control of the page in an updating interface of a program editor, wherein the page comprises at least one marking module which can be edited by a user, and the marking module is obtained by marking a fixing module which cannot be edited by the user; and then in response to an editing operation for the editing control, updating the marking module in the page to generate a target component after the initial component is edited.

Description

组件更新方法、装置、电子设备及计算机可读存储介质Component update method, device, electronic device, and computer-readable storage medium
相关申请的交叉引用Cross References to Related Applications
本申请要求2022年3月2日提交的申请号为202210200170.9的中国国家专利申请的优先权,其全部内容通过参考并入本文。This application claims priority to Chinese National Patent Application No. 202210200170.9 filed on March 2, 2022, the entire contents of which are incorporated herein by reference.
技术领域technical field
本申请涉及计算机技术领域,具体而言,本申请涉及一种组件更新方法、装置、电子设备及计算机可读存储介质。The present application relates to the field of computer technology, and in particular, the present application relates to a component updating method, device, electronic equipment, and computer-readable storage medium.
背景技术Background technique
第三方组件是针对某种软件在应用功能上的不足或缺陷,而由软件编制方以外的其他组织或个人开发的相关组件,例如,基于诸如Unity、Laya、cocos2d等引擎开发工具开发得到。A third-party component is a related component developed by an organization or individual other than the software developer, for example, based on engine development tools such as Unity, Laya, and cocos2d, to address the shortcomings or defects in the application functions of a certain software.
目前,第三方组件只有具备一定编程能力的开发人员才能够开发,非开发人员难以开发第三方组件,或者对第三方组件的部分显示内容和相关功能进行调整。开发人员制作的第三方组件的显示内容和相关功能相对较为固定,而作为非开发人员的用户难以自行调整,从而很难满足不同用户的实际需求。At present, third-party components can only be developed by developers with certain programming skills, and it is difficult for non-developers to develop third-party components, or adjust some display content and related functions of third-party components. The display content and related functions of third-party components made by developers are relatively fixed, and it is difficult for users who are not developers to adjust themselves, so it is difficult to meet the actual needs of different users.
发明内容Contents of the invention
本申请实施例旨在一定程度上解决上述技术问题的至少一个方面。The embodiments of the present application aim to solve at least one aspect of the foregoing technical problems to a certain extent.
根据本申请实施例的一个方面,提供了一种组件更新方法,该方法包括: According to an aspect of an embodiment of the present application, a component updating method is provided, the method comprising:
响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示页面的编辑控件,其中,页面包括至少一个用户可编辑的标记模块,标记模块是基于对用户不可编辑的固定模块进行标记而得到;In response to an update instruction for a page in the initial component, an edit control of the page is displayed in an update interface of the program editor, wherein the page includes at least one user-editable marking module, and the marking module is based on a fixed module that cannot be edited by the user. obtained by marking;
响应于针对编辑控件的编辑操作,对页面中的标记模块进行更新,生成初始组件经编辑操作后的目标组件。In response to the edit operation on the edit control, the markup module in the page is updated to generate the target component after the edit operation on the initial component.
根据本申请实施例的另一个方面,提供了一种组件更新装置,该装置包括:According to another aspect of the embodiments of the present application, there is provided a device for updating components, which includes:
显示模块,用于响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示页面的编辑控件,其中,页面包括至少一个用户可编辑的标记模块,标记模块是基于对用户不可编辑的固定模块进行标记而得到的;The display module is used to display the edit control of the page in the update interface of the program editor in response to the update instruction for the page in the initial component, wherein the page includes at least one user-editable marking module, and the marking module is based on the user-inaccessible Edited fixed modules are marked;
生成模块,用于响应于针对编辑控件的编辑操作,对页面中的标记模块进行更新,生成初始组件经编辑操作后的目标组件。The generating module is configured to update the marking module in the page in response to the editing operation on the editing control, and generate the target component after the editing operation of the initial component.
根据本公开的实施例,组件更新装置还包括:According to an embodiment of the present disclosure, the component updating device further includes:
第一加载模块,用于响应于针对程序编辑器的更新模式选择指令,加载初始组件的各个页面,并显示程序编辑器的更新界面。The first loading module is configured to load each page of the initial component and display an update interface of the program editor in response to an update mode selection instruction for the program editor.
根据本公开的实施例,生成模块具体用于:According to an embodiment of the present disclosure, the generating module is specifically used for:
响应于针对编辑控件的编辑操作,根据编辑操作更新页面对应的标记模块中的文字数据、图片数据、音频数据和视频数据中的至少一种。In response to an editing operation on the editing control, at least one of text data, picture data, audio data, and video data in the markup module corresponding to the page is updated according to the editing operation.
根据本公开的实施例,组件更新装置还包括:According to an embodiment of the present disclosure, the component updating device further includes:
第二加载模块,用于响应于针对程序编辑器的开发模式选择指令,加载初始组件的各个页面,并显示程序编辑器的开发界面。The second loading module is used to load each page of the initial component and display the development interface of the program editor in response to the development mode selection instruction for the program editor.
根据本公开的实施例,组件更新装置还包括:According to an embodiment of the present disclosure, the component updating device further includes:
标记模块,用于在程序编辑器的开发界面,确定页面中的至少一个固定模块,通过装饰器功能对固定模块进行标记,使得标记得到的标记模块与页面的编辑控件之间建立编辑操作控制关系。 The marking module is used to determine at least one fixed module in the page on the development interface of the program editor, and mark the fixed module through the decorator function, so that an editing operation control relationship is established between the marking module obtained by marking and the editing control of the page .
根据本公开的实施例,初始组件的各个页面为基于组件模板创建的,组件更新装置还包括:According to an embodiment of the present disclosure, each page of the initial component is created based on a component template, and the component updating device further includes:
拼装模块,用于在程序编辑器的开发界面,拼装组件模板,生成对应的初始组件。The assembly module is used to assemble component templates on the development interface of the program editor and generate corresponding initial components.
根据本申请实施例的另一个方面,提供了一种电子设备,该电子设备包括存储器、处理器及存储在存储器上的计算机程序,处理器执行计算机程序以实现上述组件更新方法的步骤。According to another aspect of the embodiments of the present application, an electronic device is provided, the electronic device includes a memory, a processor, and a computer program stored on the memory, and the processor executes the computer program to implement the steps of the above component updating method.
根据本申请实施例的再一个方面,提供了一种计算机可读存储介质,其上存储有计算机程序,计算机程序被处理器执行时实现上述组件更新方法的步骤。According to still another aspect of the embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above component updating method are implemented.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例描述中所需要使用的附图作简单地介绍。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings that need to be used in the description of the embodiments of the present application.
图1为根据本申请实施例的组件更新方法的流程示意图之一;FIG. 1 is one of the schematic flow charts of a component updating method according to an embodiment of the present application;
图2为根据本申请实施例的组件更新方法的界面展示图;FIG. 2 is an interface display diagram of a component updating method according to an embodiment of the present application;
图3为根据本申请实施例的组件更新方法的流程示意图之二;FIG. 3 is a second schematic flow diagram of a component updating method according to an embodiment of the present application;
图4为根据本申请实施例的组件更新方法的流程示意图之三;FIG. 4 is a third schematic flow diagram of a component updating method according to an embodiment of the present application;
图5为根据本申请实施例的组件更新装置的结构示意图;FIG. 5 is a schematic structural diagram of a component updating device according to an embodiment of the present application;
图6为根据本申请实施例的组件更新的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device for updating components according to an embodiment of the present application.
具体实施方式Detailed ways
下面结合本申请中的附图描述本申请的实施例。应理解,下面结合附图所阐述的实施方式,是用于解释本申请实施例的技术方案的示例性描述,对本申请实施例的技术方案不构成限制。 Embodiments of the present application are described below with reference to the drawings in the present application. It should be understood that the implementation manner described below in conjunction with the accompanying drawings is an exemplary description for explaining the technical solutions of the embodiments of the present application, and does not limit the technical solutions of the embodiments of the present application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请实施例中所使用的术语“包括”以及“包含”是指相应特征可以实现为所呈现的特征、信息、数据、步骤、操作、元件和/或组件,但不排除实现为本技术领域所支持其他特征、信息、数据、步骤、操作、元件、组件和/或它们的组合等。应该理解,当我们称一个元件被“连接”或“耦接”到另一元件时,该一个元件可以直接连接或耦接到另一元件,也可以指该一个元件和另一元件通过中间元件建立连接关系。此外,这里使用的“连接”或“耦接”可以包括无线连接或无线耦接。这里使用的术语“和/或”指示该术语所限定的项目中的至少一个,例如“A和/或B”可以实现为“A”,或者实现为“B”,或者实现为“A和B”。Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the terms "comprising" and "comprising" used in the embodiments of the present application mean that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and/or components, but not Other features, information, data, steps, operations, elements, components and/or combinations thereof etc. supported by the technical field are excluded. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can mean that the one element and another element pass through intermediate elements. Establish a connection relationship. Additionally, "connected" or "coupled" as used herein may include wireless connection or wireless coupling. The term "and/or" used herein indicates at least one of the items defined by the term, for example, "A and/or B" can be implemented as "A", or as "B", or as "A and B ".
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.
下面通过对几个示例性实施方式的描述,对本申请实施例的技术方案以及本申请的技术方案产生的技术效果进行说明。需要指出的是,下述实施方式之间可以相互参考、借鉴或结合,对于不同实施方式中相同的术语、相似的特征以及相似的实施步骤等,不再重复描述。The following describes the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application by describing several exemplary implementations. It should be pointed out that the following embodiments may refer to, learn from or combine with each other, and the same terms, similar features, and similar implementation steps in different embodiments will not be described repeatedly.
本申请实施例中提供了一种组件更新方法,如图1所示,包括步骤S101至S102。The embodiment of the present application provides a component updating method, as shown in FIG. 1 , including steps S101 to S102.
步骤S101,响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示页面的编辑控件,其中,页面包括至少一个用户可编辑的标记模块,标记模块是基于对用户不可编辑的固定模块进行标记而得到。Step S101, in response to the update instruction for the page in the initial component, display the edit control of the page in the update interface of the program editor, wherein the page includes at least one user-editable marking module, and the marking module is based on the user-uneditable Obtained by marking the fixed module.
初始组件为待更新的第三方组件,由部分资源和代码构成。程序编辑器为对初始组件进行更新的应用程序。其中,初始组件可以预先存储在程序编辑器中,也可以由用户导入至程序编辑器中。The initial component is a third-party component to be updated, consisting of some resources and codes. Program editors are applications that update original components. Wherein, the initial component can be pre-stored in the program editor, or can be imported into the program editor by the user.
初始组件可以应用于会议、演讲、教学等多种场景,初始组件包括至少一页可交互的页面,每一页均可展示文字、图像和视频等多媒体内容。 The initial component can be applied to various scenarios such as meetings, speeches, and teaching. The initial component includes at least one interactive page, and each page can display multimedia content such as text, images, and videos.
以教学场景为例,初始组件可以理解为一种可交互的多媒体课件,在程序编辑器的更新界面中显示初始组件的各个页面,用户可以选择其中一页打开并进行更新操作。Taking the teaching scene as an example, the initial component can be understood as an interactive multimedia courseware. Each page of the initial component is displayed in the update interface of the program editor, and the user can select one of the pages to open and perform an update operation.
图2为根据本申请实施例的组件更新方法的界面展示图。参见图2,在程序编辑器的更新界面显示初始组件的第一页、第二页,…,第N页。用户打开初始组件中的任一页面或者指定的页面,选择该页面中自己需要进行更新的内容,即可触发针对初始组件的当前页面的更新指令。例如,用户选择当前页面的文字内容,触发更新指令。相应地,程序编辑器响应于更新指令,在更新界面中显示该页面的编辑控件。FIG. 2 is an interface display diagram of a component updating method according to an embodiment of the present application. Referring to Fig. 2, the update interface of the program editor displays the first page, the second page, ..., the Nth page of the initial component. The user opens any page or a specified page in the initial component, selects the content that needs to be updated in the page, and then triggers an update command for the current page of the initial component. For example, the user selects the text content of the current page to trigger an update command. Correspondingly, the program editor displays the edit control of the page in the update interface in response to the update instruction.
页面包括至少一个用户可编辑的标记模块,标记模块为对固定模块进行标记得到的。标记模块与编辑控件之间存在编辑操作控制关系,换言之,用户对编辑控件进行编辑,实质上是对初始组件中的标记模块进行编辑。页面还可以包括至少一个用户不可编辑的固定模块,该固定模块未被标记。The page includes at least one user-editable marking module, and the marking module is obtained by marking the fixed module. There is an editing operation control relationship between the marking module and the editing control. In other words, when the user edits the editing control, he edits the marking module in the initial component in essence. The page may also include at least one fixed module that is not user editable, the fixed module is not marked.
其中,标记模块可以包括文字、动画、尺寸、特效、脚本、视频、预制体、游戏等,固定模块可以包括特效、脚本等。以教学场景为例,初始组件的当前页面显示为一道选择题,那么题干和选项的文字内容属于标记模块,而底层的逻辑结构属于固定模块。用户,也就是非开发人员,可以对选择题中的题干和选项的文字内容进行编辑,不能对底层的逻辑结构进行编辑。具体而言,底层的逻辑结构是由开发人员定义的。Among them, the marking module may include text, animation, size, special effect, script, video, prefab, game, etc., and the fixed module may include special effect, script, etc. Taking the teaching scene as an example, the current page of the initial component is displayed as a multiple-choice question, so the text content of the question stem and options belong to the marked module, while the underlying logical structure belongs to the fixed module. Users, that is, non-developers, can edit the text content of the question stem and options in the multiple-choice questions, but cannot edit the underlying logical structure. Specifically, the underlying logical structure is defined by the developer.
通过将初始组件的页面区分为用户可编辑的标记模块和用户不可编辑的固定模块,对开发人员和非开发人员进行隔离区分,降低非开发人员更新组件的门槛,更新操作简单便捷,无需编写代码。By dividing the page of the initial component into a user-editable markup module and a user-uneditable fixed module, developers and non-developers are isolated and distinguished, and the threshold for non-developers to update components is lowered. The update operation is simple and convenient, without writing code .
需要说明的是,标记模块和固定模块之间存在互相转化的关系,开发人员可以通过对固定模块进行标记,使之转化为用户可编辑的标记模块,也可以对标记模块取消标记,使之转化为用户不可编辑的固定模块。It should be noted that there is a mutual conversion relationship between the marked module and the fixed module. Developers can mark the fixed module to convert it into a user-editable marked module, or unmark the marked module to convert it A fixed block that is not editable by the user.
标记模块可以是通过装饰器(Decorator)功能对固定模块进行标记而得到,使得标记得到的标记模块与页面的编辑控件之间建立编辑操作控制关系。 The marking module may be obtained by marking the fixed module through a decorator function, so that an editing operation control relationship is established between the marked marking module and the editing control of the page.
步骤S102,响应于针对编辑控件的编辑操作,对页面中的标记模块进行更新,生成初始组件经编辑操作后的目标组件。Step S102 , in response to the edit operation on the edit control, update the markup module in the page, and generate the target component after the edit operation of the initial component.
响应于用户针对编辑控件的编辑操作,对初始组件的标记模块进行更新,生成更新后的目标组件。In response to the user's editing operation on the edit control, the marking module of the initial component is updated to generate an updated target component.
例如,将当前页面中原有的题干文字,更新为用户在编辑控件输入的新的题干文字;将当前页面中原有的选项文字,更新为用户在编辑控件输入的新的选项文字;将当前页面中原有的选项答案,更新为用户在编辑控件重新确定的新的选项答案;将当前页面中原有的背景图片,更新为用户在编辑控件重新插入的新的背景图片等。For example, update the original title text in the current page to the new title text entered by the user in the edit control; update the original option text in the current page to the new option text entered by the user in the edit control; The original option answer in the page is updated to the new option answer re-determined by the user in the edit control; the original background image in the current page is updated to the new background image re-inserted by the user in the edit control, etc.
应用本申请实施例所提供的组件更新方法,响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示页面的编辑控件;其中,页面包括至少一个用户可编辑的标记模块;标记模块基于对用户不可编辑的固定模块进行标记得到;然后响应于针对编辑控件的编辑操作,对页面中的标记模块进行更新,生成初始组件经编辑操作后的目标组件。Applying the component update method provided by the embodiment of the present application, in response to an update instruction for the page in the initial component, displaying the edit control of the page in the update interface of the program editor; wherein, the page includes at least one user-editable markup module; The marking module is obtained based on marking a fixed module that cannot be edited by the user; then, in response to the editing operation on the edit control, the marking module in the page is updated to generate the target component after the editing operation of the initial component.
本申请实施例实现了对标记模块和固定模块进行区分,使得非开发人员可以在可视化更新面板对初始组件中的标记模块进行编辑,从而对初始组件进行更新,满足自身的自定义需求,并且更新操作简单便捷,无需编写任何代码。The embodiment of this application realizes the distinction between the marking module and the fixed module, so that non-developers can edit the marking module in the initial component in the visual update panel, so as to update the initial component to meet their own customization needs, and update The operation is simple and convenient, without writing any code.
本申请实施例中提供了一种组件更新方法,如图3所示,包括步骤S301至步骤S303。The embodiment of the present application provides a component updating method, as shown in FIG. 3 , including steps S301 to S303.
步骤S301,响应于针对程序编辑器的更新模式选择指令,加载初始组件的各个页面,并显示程序编辑器的更新界面。Step S301, in response to an update mode selection instruction for the program editor, load each page of the initial component, and display an update interface of the program editor.
初始组件为待更新的第三方组件,由部分资源和代码构成。程序编辑器为对初始组件进行更新的应用程序。其中,初始组件可以预先存储在程序编辑器中,也可以由用户导入至程序编辑器中。The initial component is a third-party component to be updated, consisting of some resources and codes. Program editors are applications that update original components. Wherein, the initial component can be pre-stored in the program editor, or can be imported into the program editor by the user.
用户在需要对初始组件进行更新时,使用程序编辑器打开初始组件,并发出更新模式选择指令。本申请实施例中,更新模式选择指令可以是用 户点击模式选择控件主动触发的,也可以是导入或者打开初始组件时默认触发的,对此不做限制。When the user needs to update the initial component, he uses the program editor to open the initial component, and issues an update mode selection instruction. In the embodiment of this application, the update mode selection command can be used It can be triggered actively when the user clicks the mode selection control, or it can be triggered by default when the initial component is imported or opened, and there is no limitation on this.
响应于针对程序编辑器的更新模式选择指令,加载初始组件的各个页面,并显示程序编辑器的更新界面,在更新界面中显示初始组件的各个页面。In response to an update mode selection instruction for the program editor, each page of the initial component is loaded, and an update interface of the program editor is displayed, and each page of the initial component is displayed in the update interface.
具体而言,本申请实施例中的初始组件可以应用于会议、演讲、教学等多种场景,初始组件包括至少一页可交互的页面,每一页均可展示文字、图像和视频等多媒体内容。Specifically, the initial component in the embodiment of this application can be applied to various scenarios such as meetings, speeches, and teaching. The initial component includes at least one interactive page, and each page can display multimedia content such as text, images, and videos. .
以教学场景为例,初始组件可以理解为一种可交互的多媒体课件,在程序编辑器的更新界面中显示初始组件的各个页面,用户可以选择其中一页打开并进行更新操作。Taking the teaching scene as an example, the initial component can be understood as an interactive multimedia courseware. Each page of the initial component is displayed in the update interface of the program editor, and the user can select one of the pages to open and perform an update operation.
步骤S302,响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示页面的编辑控件,其中,页面包括至少一个用户可编辑的标记模块,标记模块是基于对用户不可编辑的固定模块进行标记而得到的。Step S302, in response to the update instruction for the page in the initial component, display the edit control of the page in the update interface of the program editor, wherein the page includes at least one user-editable marking module, and the marking module is based on the user-uneditable Obtained by marking the fixed module.
参见图2,在程序编辑器的更新界面显示初始组件的第一页、第二页,…,第N页。用户打开初始组件中的任一页面或者指定的页面,选择该页面中自己需要进行更新的内容,即可触发针对初始组件的当前页面的更新指令。例如,用户选择当前页面的文字内容,触发更新指令。相应的,程序编辑器响应于更新指令,在更新界面中显示该页面的编辑控件。Referring to Fig. 2, the update interface of the program editor displays the first page, the second page, ..., the Nth page of the initial component. The user opens any page or a specified page in the initial component, selects the content that needs to be updated in the page, and then triggers an update command for the current page of the initial component. For example, the user selects the text content of the current page to trigger an update command. Correspondingly, the program editor displays the edit control of the page in the update interface in response to the update instruction.
在程序编辑器的更新界面显示组件模板中的模板A,模板B,…,模板N。初始组件的各个页面为基于组件模板创建的,例如图片模板、文字模板、音频模板、视频模板、组合模板(由图片、文字、音频、视频等组合而成的模板)等。Template A, template B, ..., template N in the component templates are displayed on the update interface of the program editor. Each page of the initial component is created based on component templates, such as picture templates, text templates, audio templates, video templates, combination templates (templates composed of pictures, text, audio, video, etc.), etc.
例如,在教学场景下,组件模板可以包括选择题模板、判断题模板和填空题模板等类型,选择题模板、判断题模板和填空题模板即为组合模板。初始组件的第一页可以为选择题模板,第二页可以为判断题模板,第三页可以为填空题模板,各个页面为基于组件模板创建的。此外,初始组件的 各个页面还可以包括图片内容、可播放的视频内容以及可交互的小游戏等内容,这些均可以通过预设的组件模板来实现,不再一一赘述。For example, in a teaching scenario, component templates may include multiple-choice templates, true-false templates, and blank-filling templates, and the multiple-choice templates, true-false templates, and blank-filling templates are combined templates. The first page of the initial component can be a template for multiple choice questions, the second page can be a template for true or false questions, and the third page can be a template for filling in the blanks. Each page is created based on the component template. Additionally, the initial component's Each page can also include picture content, playable video content, and interactive mini-games, etc., all of which can be realized through preset component templates, so we won't go into details one by one.
页面包括至少一个用户可编辑的标记模块,标记模块为对固定模块进行标记得到的。标记模块与编辑控件之间存在编辑操作控制关系。换言之,用户对编辑控件进行编辑,实质上是对基于组件模板创建的初始组件中的标记模块进行编辑。页面还可以包括至少一个用户不可编辑的固定模块,该固定模块未被标记。The page includes at least one user-editable marking module, and the marking module is obtained by marking the fixed module. There is an editing operation control relationship between the marking module and the editing control. In other words, when the user edits the edit control, he actually edits the markup module in the initial component created based on the component template. The page may also include at least one fixed module that is not user editable, the fixed module is not marked.
其中,标记模块可以包括文字、动画、尺寸、特效、脚本、视频、预制体、游戏等,固定模块可以包括特效、脚本等。例如,在选择题模板组成的页面中,题干和选项的文字内容属于标记模块,而底层的逻辑结构属于固定模块。用户,也就是非开发人员,可以对选择题模板中的题干和选项的文字内容进行编辑,不能对底层的逻辑结构进行编辑。具体而言,底层的逻辑结构是由开发人员定义的。Among them, the marking module may include text, animation, size, special effect, script, video, prefab, game, etc., and the fixed module may include special effect, script, etc. For example, in a page composed of multiple-choice templates, the text content of the question stem and options belong to the mark module, while the underlying logical structure belongs to the fixed module. Users, that is, non-developers, can edit the text content of the question stem and options in the multiple-choice template, but cannot edit the underlying logical structure. Specifically, the underlying logical structure is defined by the developer.
例如,选择题模板题干为:下列哪些选项属于水果?选项为:苹果、辣椒、黄瓜、菠菜。但是用户需要的选择题题干为:下列哪些属于哺乳动物?需要的选项为:鲤鱼、鸭子,猫、蛇。此时用户可以替换题干的文字内容和选项的文字内容,并标记猫为正确答案,这样就可以变成一个符合自己需求的选择题模板。For example, the stem of the multiple-choice question template is: Which of the following options are fruits? The options are: Apple, Pepper, Cucumber, Spinach. But the multiple-choice questions that users need are: Which of the following are mammals? The required options are: Carp, Duck, Cat, Snake. At this point, the user can replace the text content of the question stem and the text content of the options, and mark the cat as the correct answer, so that it can become a multiple-choice template that meets their needs.
通过将初始组件的页面区分为用户可编辑的标记模块和用户不可编辑的固定模块,对开发人员和非开发人员进行隔离区分,降低非开发人员更新组件的门槛,更新操作简单便捷,无需编写代码。By dividing the page of the initial component into a user-editable markup module and a user-uneditable fixed module, developers and non-developers are isolated and distinguished, and the threshold for non-developers to update components is lowered. The update operation is simple and convenient, without writing code .
需要说明的是,标记模块和固定模块之间存在互相转化的关系,开发人员可以通过对固定模块进行标记,使之转化为用户可编辑的标记模块,也可以对标记模块取消标记,使之转化为用户不可编辑的固定模块。It should be noted that there is a mutual conversion relationship between the marked module and the fixed module. Developers can mark the fixed module to convert it into a user-editable marked module, or unmark the marked module to convert it A fixed block that is not editable by the user.
步骤S303,响应于针对编辑控件的编辑操作,对页面中的标记模块进行更新,生成初始组件经编辑操作后的目标组件。Step S303, in response to the edit operation on the edit control, update the markup module in the page, and generate the target component after the edit operation of the initial component.
响应于用户针对编辑控件的编辑操作,对初始组件的标记模块进行更新,生成更新后的目标组件。 In response to the user's editing operation on the edit control, the marking module of the initial component is updated to generate an updated target component.
本申请一个实施例中,步骤S303包括:In one embodiment of the present application, step S303 includes:
响应于针对编辑控件的编辑操作,根据编辑操作更新页面对应的标记模块中的文字数据、图片数据和视频数据中的至少一种。In response to an editing operation on the editing control, at least one of text data, picture data, and video data in the marking module corresponding to the page is updated according to the editing operation.
用户对编辑控件进行编辑操作,除了可以对图片模板、文字模板、音频模板、视频模板编辑文字、图片、音频、视频内容之外,还可以对初始组件所使用的组合模板中的文字、图片内容和音频、视频内容进行编辑,使得程序编辑器更新对应的文字数据、图片数据、音频数据和视频数据,生成目标组件。The user can edit the edit control. In addition to editing the text, pictures, audio, and video content of the image template, text template, audio template, and video template, the user can also edit the text and image content in the combination template used by the initial component. Edit with audio and video content, so that the program editor updates the corresponding text data, picture data, audio data and video data, and generates the target component.
例如,用户可以使用编辑控件,插入或删除文字内容、图片内容和视频内容,也可以对文字内容、图片内容和视频内容的尺寸、位置、大小、旋转角度等进行编辑。只要是开发人员预先定义为标记模块的内容,非开发人员就能在与标记模块存在编辑操作控制关系的编辑控件进行编辑。本申请实施例中,由开发人员提供功能的实现和给非开发人员的可编辑的标记模块的接口,这样,非开发人员只用关注自己能够编辑的部分,实现自己对组件的自定义需求。For example, the user can use the edit control to insert or delete text content, picture content and video content, and can also edit the size, position, size, rotation angle, etc. of the text content, picture content and video content. As long as the content is pre-defined by the developer as a tag module, non-developers can edit it in the edit control that has an edit operation control relationship with the tag module. In the embodiment of this application, the developer provides the implementation of functions and the interface of the editable markup module for non-developers, so that non-developers only need to focus on the parts they can edit to realize their own customization requirements for components.
本申请的一个实施例中,如图4所示,组件更新方法还包括步骤S401和S402。In an embodiment of the present application, as shown in FIG. 4 , the component updating method further includes steps S401 and S402.
步骤S401,响应于针对所述程序编辑器的开发模式选择指令,加载初始组件的各个页面,并显示程序编辑器的开发界面。Step S401, in response to a development mode selection instruction for the program editor, load each page of the initial component, and display the development interface of the program editor.
用户或开发人员在程序编辑器的更新界面中,可以点击开发模式选择按键,从而触发开发模式选择指令。相应的,程序编辑器响应于开发模式选择指令,加载初始组件的各个页面,并显示程序编辑器的开发界面。可以为程序编辑器的开发界面和程序编辑器的更新界面分别对应设置不同的访问权限。例如,开发模式选择设有权限,只有开发人员或者设置了开发权限的用户才可能进行根据开发模式选择指令进入开发界面。而普通权限的用户仅可以访问程序编辑器的更新界面。从而实现底层逻辑和上层应用的权限分离管制。 In the update interface of the program editor, the user or developer can click the development mode selection button to trigger the development mode selection instruction. Correspondingly, the program editor loads each page of the initial component in response to the development mode selection instruction, and displays the development interface of the program editor. Different access rights can be set for the development interface of the program editor and the update interface of the program editor respectively. For example, the development mode selection has permission, and only developers or users who have set the development permission can enter the development interface according to the development mode selection instruction. Users with normal permissions can only access the update interface of the program editor. In this way, the permission separation control of the underlying logic and the upper application is realized.
通过在程序编辑器的开发界面中预制一个变量,作为开发模式和更新模式的记录,然后通过改变这个变量的值,进行模式的判断,来确定是进入开发界面还是更新界面。Prefabricate a variable in the development interface of the program editor as a record of the development mode and update mode, and then change the value of this variable to judge the mode to determine whether to enter the development interface or the update interface.
例如,一般而言,程序编辑器的更新界面为提供给非开发人员的编辑界面,而程序编辑器的开发界面为提供给开发人员的编辑界面。在一些特殊的应用场景下,非开发人员具备一定的开发能力,能够自行编写代码。本申请实施例中为这部分非开发人员提供了开发功能,同时,为开发人员提供了可以实时查看开发效果的可视化开发界面。For example, generally speaking, an update interface of a program editor is an editing interface provided to non-developers, while a development interface of a program editor is an editing interface provided to developers. In some special application scenarios, non-developers have certain development capabilities and can write code by themselves. In the embodiment of the present application, development functions are provided for these non-developers, and at the same time, a visual development interface that can view development effects in real time is provided for developers.
步骤S402,在程序编辑器的开发界面,确定组件模板中的至少一个固定模块,通过装饰器功能对固定模块进行标记,使得标记得到的标记模块与页面的编辑控件之间建立编辑操作控制关系。Step S402, on the development interface of the program editor, determine at least one fixed module in the component template, and mark the fixed module through the decorator function, so that an edit operation control relationship is established between the marked module obtained by marking and the edit control of the page.
装饰器功能为TypeScript提供的,本申请实施例中预定义了一些比较常用的装饰器,例如@eduProperty装饰器,还预定义了一些用于过滤的模块,例如@eduProperty({visible:true,uiModeNumber:‘time’})。其中,@eduProperty()装饰器用于对模块进行标记,如果一个模块未使用@eduProperty()装饰器预先标记,那么这个模块在程序编辑器的更新界面中是不可见的。The decorator function is provided by TypeScript. In the embodiment of this application, some commonly used decorators are predefined, such as the @eduProperty decorator, and some modules for filtering are also predefined, such as @eduProperty({visible:true,uiModeNumber :'time'}). Among them, the @eduProperty() decorator is used to mark the module. If a module is not pre-marked with the @eduProperty() decorator, then this module will not be visible in the update interface of the program editor.
如果一个模块使用@eduProperty({visible:true})进行标记,那么表示这个模块在程序编辑器的开发界面中是可见的,其中,visible用于控制模块是否可见。visible也可以为false,当visible为false时,用于表示这个模块虽然在程序编辑器的开发界面中是可见的,但是这个模块在更新界面被开发人员人为隐藏了。If a module is marked with @eduProperty({visible:true}), it means that this module is visible in the development interface of the program editor, where visible is used to control whether the module is visible. visible can also be false, when visible is false, it is used to indicate that although this module is visible in the development interface of the program editor, this module is artificially hidden by the developer in the update interface.
uiModeNumber用于控制数值显示的类型。例如,使用uiModeNumber对模块进行标记,@eduProperty({visible:true,uiModeNumber:‘time’})表示这个模块被标记为时间选择器。当用户触发更新指令时,在程序编辑器的更新界面就会弹出一个时间选择的框体,即对应的编辑控件,让用户直接选时间。这样,在程序编辑器的更新界面中显示为一个时间选择器。 uiModeNumber is used to control the type of numeric display. For example, use uiModeNumber to mark the module, @eduProperty({visible:true,uiModeNumber:'time'}) indicates that this module is marked as a time selector. When the user triggers the update command, a time selection box will pop up on the update interface of the program editor, which is the corresponding edit control, allowing the user to directly select the time. In this way, it is displayed as a time selector in the update interface of the program editor.
可见,页面中的标记模块为基于装饰器功能预先对固定模块进行标记得到的。使用装饰器功能对固定模块进行标记的步骤,在程序编辑器的开发界面中实现。确定页面中的至少一个固定模块,通过装饰器功能对固定模块进行标记,使得标记得到的标记模块与页面的编辑控件之间建立编辑操作控制关系。It can be seen that the marking module in the page is obtained by pre-marking the fixed module based on the decorator function. The step of marking the fixed module with the decorator function is implemented in the development interface of the program editor. At least one fixed module in the page is determined, and the fixed module is marked by a decorator function, so that an edit operation control relationship is established between the marked module obtained by marking and the edit control of the page.
本申请一个实施例中,组件更新方法还包括:In one embodiment of the present application, the component updating method further includes:
在程序编辑器的开发界面,拼装组件模板,生成对应的初始组件。In the development interface of the program editor, assemble component templates and generate corresponding initial components.
在步骤S401之前,用户可以在程序编辑器的开发界面,拼装组件模板,生成对应的初始组件。Before step S401, the user can assemble component templates on the development interface of the program editor to generate corresponding initial components.
程序编辑器内预定义了一些已经实现的基础组件模板提供给开发人员,从而简化开发人员开发组件的步骤。其中,基础组件模板包括EduText文字组件模板、EduMovie视频组件模板、EduImage图片组件模板以及EduAudio音频组件模板等,这些基础组件模板已经通过装饰器功能预定义了固定模块和标记模块,预设了模块对应的脚本分组。Some implemented basic component templates are predefined in the program editor for developers, thus simplifying the steps for developers to develop components. Among them, the basic component templates include EduText text component templates, EduMovie video component templates, EduImage image component templates, and EduAudio audio component templates. script grouping.
分组通过继承内置的基类EduElementAbstract来实现,每个脚本默认分为一个组,多个继承自EduElementAbstract的脚本默认分多个组,分组需要两个条件:继承自EduElementAbstract且这个脚本被挂载在初始组件上。Grouping is achieved by inheriting the built-in base class EduElementAbstract. Each script is divided into one group by default. Multiple scripts inherited from EduElementAbstract are divided into multiple groups by default. Grouping requires two conditions: inheriting from EduElementAbstract and the script is mounted in the initial on the component.
拼装基础组件模板,能够快速生成初始组件,减少了开发人员的工作量,提升了组件的生成和更新效率。Assemble basic component templates, which can quickly generate initial components, reduce the workload of developers, and improve the efficiency of component generation and update.
在程序编辑器内将不同的装饰器,以及相对应的固定模块和标记模块分发至不同的编辑器面板中,即更新界面和开发界面中,从而达到区分非开发人员和开发人员的工作范围的目的。从而使得非开发人员可以对标记模块进行编辑从而更新组件,更新操作简单便捷,能够满足非开发人员对组件的自定义需求;同时,开发人员可以对组件的固定模块和标记模块进行调整,提升非开发人员的使用体验。In the program editor, distribute different decorators, and corresponding fixed modules and marker modules to different editor panels, that is, the update interface and the development interface, so as to distinguish the working scope of non-developers and developers Purpose. In this way, non-developers can edit the marking module to update the component. The update operation is simple and convenient, and can meet the custom requirements of non-developers for components; at the same time, developers can adjust the fixed module and marking module of the component to improve non-developing Developer experience.
本申请实施例中,加载初始组件时,将初始组件的标记模块与固定模块分发至程序编辑器的不同面板中。换言之,将标记模块分发至程序编辑 器的更新界面,将固定模块分发至程序编辑器的开发界面,使得标记模块与固定模块在不同的界面中进行展示。因此,用户或者开发人员需要在程序编辑器的更新界面中才能对初始组件的标记模块进行编辑,在程序编辑器的开发界面中才能对初始组件的固定模块进行编辑。这样,实现了将标记模块和固定模块的编辑操作隔离开来,不同的用户或者开发人员完成不同模块的编辑操作,共同实现初始组件的更新操作。In the embodiment of the present application, when the initial component is loaded, the marking module and the fixed module of the initial component are distributed to different panels of the program editor. In other words, distribute the marking module to the program editor The update interface of the editor distributes the fixed modules to the development interface of the program editor, so that the marked module and the fixed module are displayed in different interfaces. Therefore, the user or developer needs to edit the marking module of the initial component in the update interface of the program editor, and edit the fixed module of the initial component only in the development interface of the program editor. In this way, the editing operations of the marking module and the fixed module are separated, and different users or developers complete the editing operations of different modules to jointly realize the update operation of the initial component.
本申请一个实施例中,程序编辑器包括贴图功能。In one embodiment of the present application, the program editor includes a map function.
在PC Web端、iOS原生端、Android原生端,程序编辑器均可以使用贴图功能,该贴图功能基于VideoTexture的贴图类型来实现。贴图功能可以将视频内容嵌入在初始组件的页面中作为一张图片进行使用,程序编辑器在上述平台使用该功能,将视频内容作为贴图在Creator内置的Sprite组件中进行贴图的切换,从而实现视频播放。视频内容的交互包括播放、暂停、跳转时间等方式。On the PC web side, iOS native side, and Android native side, the program editor can use the texture function, which is implemented based on the texture type of VideoTexture. The texture function can embed the video content in the page of the initial component and use it as a picture. The program editor uses this function on the above platform to switch the video content as a texture in the built-in Sprite component of Creator, so as to realize the video play. The interaction of video content includes playing, pausing, jumping time and so on.
在初始组件的同一页面中,只要其他内容的层级显示在视频内容的层级之上就可以进行交互。Interaction is possible as long as the hierarchy of other content is displayed above the hierarchy of the video content in the same page as the originating component.
在手机的Web端,视频内容可以采用视频播放器置底的方式,保证其他内容的层级显示在视频内容的层级之上,从而实现其他内容的显示和交互。On the web side of the mobile phone, the video content can be placed at the bottom of the video player to ensure that the level of other content is displayed above the level of the video content, so as to realize the display and interaction of other content.
应用本申请实施例提供的组件更新方法,响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示页面的编辑控件;其中,页面包括至少一个用户可编辑的标记模块;标记模块基于对用户不可编辑的固定模块进行标记得到;然后响应于针对编辑控件的编辑操作,对页面中的标记模块进行更新,生成初始组件经编辑操作后的目标组件。Applying the component update method provided by the embodiment of the present application, in response to the update instruction for the page in the initial component, the edit control of the page is displayed in the update interface of the program editor; wherein, the page includes at least one user-editable mark module; mark The module is obtained based on marking a fixed module that cannot be edited by the user; then, in response to the editing operation on the edit control, the marking module in the page is updated to generate the target component after the editing operation of the initial component.
本申请实施例实现了对生成初始组件的组件模板中的标记模块和固定模块进行区分,从而隔离开发人员和非开发人员的编辑操作。为开发人员提供预先定义组件模板中的标记模块和固定模块的可视化开发面板,使得开发人员可以为非开发人员设计初始组件和更新初始组件的接口。非开发人员可以在可视化更新面板对初始组件中的标记模块进行编辑,从而实 现对初始组件进行更新,满足自身的自定义需求,并且更新操作简单便捷,无需编写任何代码。The embodiment of the present application realizes the distinction between the markup module and the fixed module in the component template that generates the initial component, thereby isolating the editing operations of developers and non-developers. Provide developers with a visual development panel that pre-defines mark modules and fixed modules in component templates, so that developers can design initial components and update the interfaces of initial components for non-developers. Non-developers can edit the markup module in the original component in the visual update panel to implement Now update the initial components to meet your own custom needs, and the update operation is simple and convenient without writing any code.
本申请实施例中提供了一种组件更新装置,如图5所示,包括:An embodiment of the present application provides a component update device, as shown in Figure 5, including:
显示模块501,用于响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示页面的编辑控件,其中,页面包括至少一个用户可编辑的标记模块,标记模块是基于对用户不可编辑的固定模块进行标记而得到的;The display module 501 is configured to display the edit control of the page in the update interface of the program editor in response to an update instruction for the page in the initial component, wherein the page includes at least one user-editable marking module, and the marking module is based on the user's non-editable fixed blocks are marked;
生成模块502,用于响应于针对编辑控件的编辑操作,对页面中的标记模块进行更新,生成初始组件经编辑操作后的目标组件。The generating module 502 is configured to update the marking module in the page in response to the editing operation on the editing control, and generate the target component after the editing operation of the initial component.
可选地,组件更新装置还包括:Optionally, the component updating device further includes:
第一加载模块,用于响应于针对程序编辑器的更新模式选择指令,加载初始组件的各个页面,并显示程序编辑器的更新界面。The first loading module is configured to load each page of the initial component and display an update interface of the program editor in response to an update mode selection instruction for the program editor.
可选地,生成模块502具体用于:Optionally, the generating module 502 is specifically configured to:
响应于针对编辑控件的编辑操作,根据编辑操作更新页面对应的标记模块中的文字数据、图片数据、音频数据和视频数据中的至少一种。In response to an editing operation on the editing control, at least one of text data, picture data, audio data, and video data in the markup module corresponding to the page is updated according to the editing operation.
可选地,组件更新装置还包括:Optionally, the component updating device further includes:
第二加载模块,用于响应于针对程序编辑器的开发模式选择指令,加载初始组件的各个页面,并显示程序编辑器的开发界面。The second loading module is used to load each page of the initial component and display the development interface of the program editor in response to the development mode selection instruction for the program editor.
可选地,组件更新装置还包括:Optionally, the component updating device further includes:
标记模块,用于在程序编辑器的开发界面,确定页面中的至少一个固定模块,通过装饰器功能对固定模块进行标记,使得标记得到的标记模块与页面的编辑控件之间建立编辑操作控制关系。The marking module is used to determine at least one fixed module in the page on the development interface of the program editor, and mark the fixed module through the decorator function, so that an editing operation control relationship is established between the marking module obtained by marking and the editing control of the page .
可选地,初始组件的各个页面为基于组件模板创建的,组件更新装置还包括:Optionally, each page of the initial component is created based on a component template, and the component updating device further includes:
拼装模块,用于在程序编辑器的开发界面,拼装组件模板,生成对应的初始组件。 The assembly module is used to assemble component templates on the development interface of the program editor and generate corresponding initial components.
应用本申请实施例提供的组件更新装置,响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示页面的编辑控件;其中,页面包括至少一个用户可编辑的标记模块;标记模块基于对用户不可编辑的固定模块进行标记得到;然后响应于针对编辑控件的编辑操作,对页面中的标记模块进行更新,生成初始组件经编辑操作后的目标组件。Applying the component update device provided by the embodiment of the present application, in response to the update instruction for the page in the initial component, the edit control of the page is displayed in the update interface of the program editor; wherein, the page includes at least one user-editable mark module; mark The module is obtained based on marking a fixed module that cannot be edited by the user; then, in response to the editing operation on the edit control, the marking module in the page is updated to generate the target component after the editing operation of the initial component.
本申请实施例实现了对生成初始组件的组件模板中的标记模块和固定模块进行区分,从而隔离开发人员和非开发人员的编辑操作。为开发人员提供预先定义组件模板中的标记模块和固定模块的可视化开发面板,使得开发人员可以为非开发人员设计初始组件和更新初始组件的接口。非开发人员可以在可视化更新面板对初始组件中的标记模块进行编辑,从而实现对初始组件进行更新,满足自身的自定义需求,并且更新操作简单便捷,无需编写任何代码。The embodiment of the present application realizes the distinction between the markup module and the fixed module in the component template that generates the initial component, thereby isolating the editing operations of developers and non-developers. Provide developers with a visual development panel that pre-defines mark modules and fixed modules in component templates, so that developers can design initial components and update the interfaces of initial components for non-developers. Non-developers can edit the marker module in the initial component in the visual update panel, so as to update the initial component to meet their own customization needs, and the update operation is simple and convenient without writing any code.
本申请实施例中提供了一种电子设备(计算机装置/设备/系统),包括存储器、处理器及存储在存储器上的计算机程序,该处理器执行上述计算机程序以实现根据本申请上述各实施例的组件更新方法。其中,上述各实施例的组件更新方法的具体实现方式可以参见前述结合附图对于各个方法实施例的描述,在此不再赘述。An electronic device (computer device/equipment/system) is provided in an embodiment of the present application, including a memory, a processor, and a computer program stored on the memory. The processor executes the computer program to implement the above-mentioned embodiments according to the present application. The component update method. Wherein, for the specific implementation manners of the component updating methods of the above embodiments, reference may be made to the foregoing descriptions of the method embodiments in conjunction with the accompanying drawings, and details are not repeated here.
与相关技术相比可实现:对生成初始组件的组件模板中的标记模块和固定模块进行区分,从而隔离开发人员和非开发人员的编辑操作。为开发人员提供预先定义组件模板中的标记模块和固定模块的可视化开发面板,使得开发人员可以为非开发人员设计初始组件和更新初始组件的接口。非开发人员可以在可视化更新面板对初始组件中的标记模块进行编辑,从而实现对初始组件进行更新,满足自身的自定义需求,并且更新操作简单便捷,无需编写任何代码。Compared with the related technology, it can be realized that the marking module and the fixed module in the component template generating the initial component are distinguished, thereby isolating the editing operations of developers and non-developers. Provide developers with a visual development panel that pre-defines mark modules and fixed modules in component templates, so that developers can design initial components and update the interfaces of initial components for non-developers. Non-developers can edit the marker module in the initial component in the visual update panel, so as to update the initial component to meet their own customization needs, and the update operation is simple and convenient without writing any code.
在一个in a
实施例中提供了一种电子设备,参见图6,电子设备6000包括:处理器6001和存储器6003。其中,处理器6001和存储器6003相连,如通 过总线6002相连。存储器6003可存储有处理器6001可执行的计算机程序,当电子设备6000运行时,使得处理器6001执行计算机程序时实现下述操作:响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示所述页面的编辑控件,其中,所述页面包括至少一个用户可编辑的标记模块,所述标记模块是基于对用户不可编辑的固定模块进行标记而得到的;响应于针对所述编辑控件的编辑操作,对所述页面中的标记模块进行更新,生成所述初始组件经所述编辑操作后的目标组件。An electronic device is provided in an embodiment. Referring to FIG. 6 , the electronic device 6000 includes: a processor 6001 and a memory 6003 . Wherein, the processor 6001 is connected to the memory 6003, such as through connected via the bus 6002. The memory 6003 may store a computer program executable by the processor 6001. When the electronic device 6000 is running, the processor 6001 executes the computer program to implement the following operations: in response to an update instruction for the page in the initial component, in the program editor updating the edit control displayed on the page in the interface, wherein the page includes at least one user-editable marking module, and the marking module is obtained based on marking a fixed module that cannot be edited by the user; in response to the The editing operation of the editing control updates the marking module in the page, and generates the target component after the editing operation of the initial component.
可选地,电子设备6000还可以包括收发器6004,收发器6004可以用于该电子设备与其他电子设备之间的数据交互,如数据的发送和/或数据的接收等。需要说明的是,实际应用中收发器6004不限于一个,该电子设备6000的结构并不构成对本申请实施例的限定。Optionally, the electronic device 6000 may further include a transceiver 6004, and the transceiver 6004 may be used for data interaction between the electronic device and other electronic devices, such as sending data and/or receiving data. It should be noted that in practical applications, the transceiver 6004 is not limited to one, and the structure of the electronic device 6000 does not limit the embodiment of the present application.
处理器6001可以是CPU(Central Processing Unit,中央处理器),通用处理器,DSP(Digital Signal Processor,数据信号处理器),ASIC(Application Specific Integrated Circuit,专用集成电路),FPGA(Field Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器6001也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等。Processor 6001 can be CPU (Central Processing Unit, central processing unit), general processor, DSP (Digital Signal Processor, data signal processor), ASIC (Application Specific Integrated Circuit, application specific integrated circuit), FPGA (Field Programmable Gate Array , Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor 6001 may also be a combination that implements computing functions, for example, a combination of one or more microprocessors, a combination of DSP and a microprocessor, and the like.
总线6002可包括一通路,在上述组件之间传送信息。总线6002可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。总线6002可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Bus 6002 may include a path for carrying information between the components described above. The bus 6002 may be a PCI (Peripheral Component Interconnect, Peripheral Component Interconnect Standard) bus or an EISA (Extended Industry Standard Architecture, Extended Industry Standard Architecture) bus, etc. The bus 6002 can be divided into address bus, data bus, control bus and so on. For ease of representation, only one thick line is used in FIG. 6 , but it does not mean that there is only one bus or one type of bus.
存储器6003可以是ROM(Read Only Memory,只读存储器)或可存储静态信息和指令的其他类型的静态存储设备,RAM(Random Access Memory,随机存取存储器)或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM(Electrically Erasable Programmable Read Only  Memory,电可擦可编程只读存储器)、CD-ROM(Compact Disc Read Only Memory,只读光盘)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质、其他磁存储设备、或者能够用于携带或存储计算机程序并能够由计算机读取的任何其他介质,在此不做限定。Memory 6003 can be ROM (Read Only Memory, read-only memory) or other types of static storage devices that can store static information and instructions, RAM (Random Access Memory, random access memory) or other types of static storage devices that can store information and instructions Dynamic storage device, also can be EEPROM (Electrically Erasable Programmable Read Only Memory, Electrically Erasable Programmable Read-Only Memory), CD-ROM (Compact Disc Read Only Memory, CD-ROM) or other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc. ), disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store a computer program and that can be read by a computer, without limitation.
存储器6003用于存储执行本申请实施例的计算机程序,并由处理器6001来控制执行。处理器6001用于执行存储器6003中存储的计算机程序,以实现前述方法实施例所示的步骤。The memory 6003 is used to store the computer programs for executing the embodiments of the present application, and the execution is controlled by the processor 6001 . The processor 6001 is configured to execute the computer program stored in the memory 6003 to implement the steps shown in the foregoing method embodiments.
本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时可实现前述方法实施例的步骤及相应内容。在一些实施例中,所述计算机可读存储介质包括非临时性计算机可读存储介质。An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiments can be realized. In some embodiments, the computer readable storage medium includes a non-transitory computer readable storage medium.
本申请的实施例还提供了一种计算机程序产品,包括计算机程序,计算机程序被处理器执行时可实现前述方法实施例的步骤及相应内容。The embodiment of the present application also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps and corresponding contents of the foregoing method embodiments can be realized.
应该理解的是,虽然本申请实施例的流程图中通过箭头指示各个操作步骤,但是这些步骤的实施顺序并不受限于箭头所指示的顺序。除非本文中有明确的说明,否则在本申请实施例的一些实施场景中,各流程图中的实施步骤可以按照需求以其他的顺序执行。此外,各流程图中的部分或全部步骤基于实际的实施场景,可以包括多个子步骤或者多个阶段。这些子步骤或者阶段中的部分或全部可以在同一时刻被执行,这些子步骤或者阶段中的每个子步骤或者阶段也可以分别在不同的时刻被执行。在执行时刻不同的场景下,这些子步骤或者阶段的执行顺序可以根据需求灵活配置,本申请实施例对此不限制。It should be understood that although arrows indicate various operation steps in the flow chart of the embodiment of the present application, the execution order of these steps is not limited to the order indicated by the arrows. Unless otherwise specified herein, in some implementation scenarios of the embodiments of the present application, the implementation steps in each flowchart may be performed in other orders as required. In addition, part or all of the steps in each flow chart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each of these sub-steps or stages may also be executed at different times. In scenarios where execution times are different, the execution order of these sub-steps or stages can be flexibly configured according to requirements, which is not limited in this embodiment of the present application.
以上所述仅是本申请部分实施场景的可选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请的方案技术构思的前提下,采用基于本申请技术思想的其他类似实施手段,同样属于本申请实施例的保护范畴。 The above is only an optional implementation of some implementation scenarios of this application. It should be pointed out that for those of ordinary skill in the art, on the premise of not departing from the technical concept of the solution of this application, adopt the Other similar implementation means also belong to the protection category of the embodiment of the present application.

Claims (20)

  1. 一种组件更新方法,包括:A component update method comprising:
    响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示所述页面的编辑控件,其中,所述页面包括至少一个用户可编辑的标记模块,所述标记模块是基于对用户不可编辑的固定模块进行标记而得到的;In response to an update instruction for a page in the initial component, an edit control of the page is displayed in an update interface of the program editor, wherein the page includes at least one user-editable marking module, and the marking module is based on user non-editable fixed blocks are marked;
    响应于针对所述编辑控件的编辑操作,对所述页面中的标记模块进行更新,生成所述初始组件经所述编辑操作后的目标组件。In response to the editing operation on the editing control, the markup module in the page is updated to generate the target component after the editing operation on the initial component.
  2. 根据权利要求1所述的组件更新方法,其中,所述响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示所述页面的编辑控件之前,所述方法还包括:The component update method according to claim 1, wherein, in response to the update instruction for the page in the initial component, before displaying the edit control of the page in the update interface of the program editor, the method further comprises:
    响应于针对所述程序编辑器的更新模式选择指令,加载所述初始组件的各个页面,并显示所述程序编辑器的更新界面。In response to an update mode selection instruction for the program editor, each page of the initial component is loaded, and an update interface of the program editor is displayed.
  3. 根据权利要求1所述的组件更新方法,其中,所述响应于针对所述编辑控件的编辑操作,对所述页面中的标记模块进行更新,生成所述初始组件经所述编辑操作后的目标组件,包括:The component updating method according to claim 1, wherein, in response to the editing operation on the editing control, updating the marking module in the page to generate the target of the initial component after the editing operation components, including:
    响应于针对所述编辑控件的编辑操作,根据所述编辑操作更新所述页面对应的标记模块中的文字数据、图片数据、音频数据和视频数据中的至少一种。In response to an editing operation on the editing control, at least one of text data, picture data, audio data, and video data in the marking module corresponding to the page is updated according to the editing operation.
  4. 根据权利要求1所述的组件更新方法,其中,所述标记模块是通过装饰器功能对所述固定模块进行标记而得到的,使得所述标记模块与所述页面的编辑控件之间建立编辑操作控制关系。The component update method according to claim 1, wherein the marking module is obtained by marking the fixed module through a decorator function, so that an editing operation is established between the marking module and the editing control of the page control relationship.
  5. 根据权利要求1所述的组件更新方法,其中,所述方法还包括:The component updating method according to claim 1, wherein said method further comprises:
    响应于针对所述程序编辑器的开发模式选择指令,加载所述初始组件的各个页面,并显示所述程序编辑器的开发界面。 In response to a development mode selection instruction for the program editor, each page of the initial component is loaded, and a development interface of the program editor is displayed.
  6. 根据权利要求5所述的组件更新方法,其中,所述响应于针对所述程序编辑器的开发模式选择指令,加载所述初始组件的各个页面,并显示所述程序编辑器的开发界面之后,所述方法还包括:The component updating method according to claim 5, wherein, after loading each page of the initial component and displaying the development interface of the program editor in response to the development mode selection instruction for the program editor, The method also includes:
    在所述程序编辑器的开发界面,确定所述页面中的至少一个固定模块,通过装饰器功能对所述固定模块进行标记得到标记模块,使得所述标记模块与所述页面的编辑控件之间建立编辑操作控制关系。In the development interface of the program editor, at least one fixed module in the page is determined, and the fixed module is marked by a decorator function to obtain a marked module, so that the relationship between the marked module and the edit control of the page Establish edit operation control relationship.
  7. 根据权利要求5所述的组件更新方法,其中,所述初始组件的各个页面为基于组件模板创建的,所述响应于针对所述程序编辑器的开发模式选择指令,加载所述初始组件的各个页面,并显示所述程序编辑器的开发界面之前,所述方法还包括:The component updating method according to claim 5, wherein each page of the initial component is created based on a component template, and each page of the initial component is loaded in response to a development mode selection instruction for the program editor page, and before displaying the development interface of the program editor, the method also includes:
    在所述程序编辑器的开发界面,拼装所述组件模板,生成对应的初始组件。On the development interface of the program editor, assemble the component templates to generate corresponding initial components.
  8. 根据权利要求5所述的组件更新方法,其中,所述程序编辑器的开发界面和程序编辑器的更新界面分别对应不同的访问权限。The component update method according to claim 5, wherein the development interface of the program editor and the update interface of the program editor respectively correspond to different access rights.
  9. 根据权利要求1所述的组件更新方法,其中,所述标记模块包括以下至少一项:文字、动画、尺寸、特效、脚本、视频、预制体、游戏。The component updating method according to claim 1, wherein the marking module includes at least one of the following: text, animation, size, special effect, script, video, prefab, game.
  10. 一种组件更新装置,包括:A component updating device, comprising:
    显示模块,用于响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示所述页面的编辑控件,其中,所述页面包括至少一个用户可编辑的标记模块,所述标记模块是基于对用户不可编辑的固定模块进行标记而得到;A display module, configured to display an edit control of the page in the update interface of the program editor in response to an update instruction for the page in the initial component, wherein the page includes at least one user-editable mark module, and the mark Modules are based on marking fixed modules that are not user-editable;
    生成模块,用于响应于针对所述编辑控件的编辑操作,对所述页面中的标记模块进行更新,生成所述初始组件经所述编辑操作后的目标组件。The generating module is configured to update the marking module in the page in response to the editing operation on the editing control, and generate the target component after the editing operation on the initial component.
  11. 一种电子设备,所述电子设备包括:An electronic device comprising:
    处理器;processor;
    存储器;memory;
    所述存储器存储有所述处理器可执行的计算机程序,所述处理器用于在执行所述计算机程序时实现: The memory stores a computer program executable by the processor, and the processor is configured to, when executing the computer program:
    响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示所述页面的编辑控件,其中,所述页面包括至少一个用户可编辑的标记模块,所述标记模块是基于对用户不可编辑的固定模块进行标记而得到的;In response to an update instruction for a page in the initial component, an edit control of the page is displayed in an update interface of the program editor, wherein the page includes at least one user-editable marking module, and the marking module is based on user non-editable fixed blocks are marked;
    响应于针对所述编辑控件的编辑操作,对所述页面中的标记模块进行更新,生成所述初始组件经所述编辑操作后的目标组件。In response to the editing operation on the editing control, the markup module in the page is updated to generate the target component after the editing operation on the initial component.
  12. 根据权利要求11所述的电子设备,其中,所述处理器还用于在执行所述计算机程序时实现:The electronic device according to claim 11, wherein the processor is further configured to implement when executing the computer program:
    在所述响应于针对初始组件中页面的更新指令,在程序编辑器的更新界面中显示所述页面的编辑控件之前,执行以下操作:Before the editing control of the page is displayed in the update interface of the program editor in response to the update instruction for the page in the initial component, the following operations are performed:
    响应于针对所述程序编辑器的更新模式选择指令,加载所述初始组件的各个页面,并显示所述程序编辑器的更新界面。In response to an update mode selection instruction for the program editor, each page of the initial component is loaded, and an update interface of the program editor is displayed.
  13. 根据权利要求11所述的电子设备,其中,所述处理器还用于:The electronic device according to claim 11, wherein the processor is further configured to:
    响应于针对所述编辑控件的编辑操作,根据所述编辑操作更新所述页面对应的标记模块中的文字数据、图片数据、音频数据和视频数据中的至少一种。In response to an editing operation on the editing control, at least one of text data, picture data, audio data, and video data in the marking module corresponding to the page is updated according to the editing operation.
  14. 根据权利要求11所述的电子设备,其中,所述标记模块是通过装饰器功能对所述固定模块进行标记而得到的,使得所述标记模块与所述页面的编辑控件之间建立编辑操作控制关系。The electronic device according to claim 11, wherein the marking module is obtained by marking the fixed module through a decorator function, so that an editing operation control is established between the marking module and the editing control of the page relation.
  15. 根据权利要求11所述的电子设备,其中,所述处理器还用于在执行所述计算机程序时实现:The electronic device according to claim 11, wherein the processor is further configured to implement when executing the computer program:
    响应于针对所述程序编辑器的开发模式选择指令,加载所述初始组件的各个页面,并显示所述程序编辑器的开发界面。In response to a development mode selection instruction for the program editor, each page of the initial component is loaded, and a development interface of the program editor is displayed.
  16. 根据权利要求15所述的电子设备,其中,所述处理器还用于在执行所述计算机程序时实现:The electronic device according to claim 15, wherein the processor is further configured to implement when executing the computer program:
    在所述响应于针对所述程序编辑器的开发模式选择指令,加载所述初始组件的各个页面,并显示所述程序编辑器的开发界面之后,执行以下操作: After responding to the development mode selection instruction for the program editor, loading each page of the initial component, and displaying the development interface of the program editor, the following operations are performed:
    在所述程序编辑器的开发界面,确定所述页面中的至少一个固定模块,通过装饰器功能对所述固定模块进行标记,使得标记得到的所述标记模块与所述页面的编辑控件之间建立编辑操作控制关系。On the development interface of the program editor, at least one fixed module in the page is determined, and the fixed module is marked through a decorator function, so that the marking module obtained by marking is connected to the edit control of the page Establish edit operation control relationship.
  17. 根据权利要求15所述的电子设备,其中,所述初始组件的各个页面为基于组件模板创建的,所述处理器还用于在执行所述计算机程序时实现:The electronic device according to claim 15, wherein each page of the initial component is created based on a component template, and the processor is further configured to implement when executing the computer program:
    所述响应于针对所述程序编辑器的开发模式选择指令,加载所述初始组件的各个页面,并显示所述程序编辑器的开发界面之前,执行以下操作:Before the responding to the development mode selection instruction for the program editor, loading each page of the initial component, and displaying the development interface of the program editor, perform the following operations:
    在所述程序编辑器的开发界面,拼装所述组件模板,生成对应的初始组件。On the development interface of the program editor, assemble the component templates to generate corresponding initial components.
  18. 根据权利要求15所述的电子设备,其中,所述程序编辑器的开发界面和程序编辑器的更新界面分别对应不同的访问权限。The electronic device according to claim 15, wherein the development interface of the program editor and the update interface of the program editor respectively correspond to different access rights.
  19. 根据权利要求15所述的电子设备,其中,所述标记模块包括以下至少一项:文字、动画、尺寸、特效、脚本、视频、预制体、游戏。The electronic device according to claim 15, wherein the marking module includes at least one of the following: text, animation, size, special effect, script, video, prefab, game.
  20. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至9中任一项所述的组件更新方法。 A computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the component updating method according to any one of claims 1 to 9 is implemented.
PCT/CN2023/077708 2022-03-02 2023-02-22 Component updating method and apparatus, electronic device, and computer readable storage medium WO2023165397A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210200170.9 2022-03-02
CN202210200170.9A CN116737190A (en) 2022-03-02 2022-03-02 Component updating method, device, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2023165397A1 true WO2023165397A1 (en) 2023-09-07

Family

ID=87882919

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/077708 WO2023165397A1 (en) 2022-03-02 2023-02-22 Component updating method and apparatus, electronic device, and computer readable storage medium

Country Status (2)

Country Link
CN (1) CN116737190A (en)
WO (1) WO2023165397A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050229101A1 (en) * 2003-01-24 2005-10-13 Matveyenko Wade A Remote web site editing in a web browser without external client software
CN106066849A (en) * 2016-05-30 2016-11-02 车智互联(北京)科技有限公司 A kind of template page editing system and method
CN112559935A (en) * 2020-12-15 2021-03-26 北京三快在线科技有限公司 Method and device for creating page
CN112632437A (en) * 2020-11-27 2021-04-09 中国银联股份有限公司 Webpage generating method and device and computer readable storage medium
CN113268226A (en) * 2021-06-24 2021-08-17 中国平安人寿保险股份有限公司 Page data generation method and device, storage medium and equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050229101A1 (en) * 2003-01-24 2005-10-13 Matveyenko Wade A Remote web site editing in a web browser without external client software
CN106066849A (en) * 2016-05-30 2016-11-02 车智互联(北京)科技有限公司 A kind of template page editing system and method
CN112632437A (en) * 2020-11-27 2021-04-09 中国银联股份有限公司 Webpage generating method and device and computer readable storage medium
CN112559935A (en) * 2020-12-15 2021-03-26 北京三快在线科技有限公司 Method and device for creating page
CN113268226A (en) * 2021-06-24 2021-08-17 中国平安人寿保险股份有限公司 Page data generation method and device, storage medium and equipment

Also Published As

Publication number Publication date
CN116737190A (en) 2023-09-12

Similar Documents

Publication Publication Date Title
Garrand Writing for multimedia and the Web: a practical guide to content development for interactive media
TWI463400B (en) System and method for editing interactive three dimension multimedia, and computer-readable storage medium thereof
Burd et al. Educating for mobile computing: addressing the new challenges
Kidd et al. Immersive experiences in museums, galleries and heritage sites: a review of research findings and issues
Barianos et al. Content manager for serious games: Theoretical framework and digital platform
Gerantabee et al. Adobe flash professional cs6 digital classroom
TW201303723A (en) System and method for online editing and exchanging interactive three dimension multimedia, and computer-readable storage medium thereof
Boroni et al. Tying it all together: Creating self-contained, animated, interactive, web-based resources for computer science education
Berking Choosing authoring tools
WO2023165397A1 (en) Component updating method and apparatus, electronic device, and computer readable storage medium
JP6686578B2 (en) Information processing apparatus and information processing program
Gong et al. The Design of Multimedia English Teaching System Based on Virtual Technology
Heins et al. Creating learning objects with Macromedia Flash MX
JP4682323B2 (en) Education system
Franklin et al. Macromedia Flash MX 2004 ActionScript
Fernandes Moodle 1.9 Multimedia
Chen et al. Teaching Practice for Digital Media Design in the Context of Media Integration
Coggan Unity Game Audio Implementation: A Practical Guide for Beginners
Karagöz et al. A design model proposal for digital learning platform based on interactive e-books
Nicoll et al. Grain: Default settings, design principles, and the aura of videogame production
Siegel et al. Articulate Storyline 3 & 360: Beyond the Essentials
CN115713578B (en) Animation interactive courseware manufacturing method, platform and electronic equipment
Dockery et al. Learn Adobe After Effects CC for Visual Effects and Motion Graphics
Bassov Development of an Interactive English Learning Mobile Game for Russian Speaking Users
D'Souza et al. Lyraquist: Language Learning via Music App

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23762797

Country of ref document: EP

Kind code of ref document: A1