CN118689465A - Application page processing method, device, electronic device and storage medium - Google Patents
Application page processing method, device, electronic device and storage medium Download PDFInfo
- Publication number
- CN118689465A CN118689465A CN202310289565.5A CN202310289565A CN118689465A CN 118689465 A CN118689465 A CN 118689465A CN 202310289565 A CN202310289565 A CN 202310289565A CN 118689465 A CN118689465 A CN 118689465A
- Authority
- CN
- China
- Prior art keywords
- component
- page
- attribute
- configuration
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
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)
- Human Computer Interaction (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
本申请涉及计算机技术领域,尤其涉及一种应用页面处理方法、装置、电子设备及存储介质,所述方法包括:响应于应用页面编辑指令,展示应用编辑页面;所述应用编辑页面包括候选功能组件展示区域以及页面编辑区域;响应于基于任一组件标识触发的功能组件选择指令,在所述页面编辑区域展示被选中的目标功能组件,以及所述目标功能组件对应的至少一个属性配置组件;响应于基于任一属性配置组件触发的属性配置指令,基于属性表达式对所述任一属性配置组件进行配置,得到已配置的属性配置组件;基于所述目标功能组件以及所述已配置的属性配置组件,生成应用页面的页面信息。本申请能够提高页面开发效率。
The present application relates to the field of computer technology, and in particular to an application page processing method, device, electronic device and storage medium, the method comprising: in response to an application page editing instruction, displaying an application editing page; the application editing page includes a candidate function component display area and a page editing area; in response to a function component selection instruction triggered based on any component identifier, displaying a selected target function component in the page editing area, and at least one attribute configuration component corresponding to the target function component; in response to an attribute configuration instruction triggered based on any attribute configuration component, configuring any attribute configuration component based on an attribute expression to obtain a configured attribute configuration component; generating page information of an application page based on the target function component and the configured attribute configuration component. The present application can improve page development efficiency.
Description
技术领域Technical Field
本申请涉及计算机技术领域,尤其涉及一种应用页面处理方法、装置、电子设备及存储介质。The present application relates to the field of computer technology, and in particular to an application page processing method, device, electronic device and storage medium.
背景技术Background Art
现有的应用页面开发过程中,需要开发人员根据业务需求手动编写相应的业务代码;例如为了在应用页面中显示所需要的页面数据,开发人员需要在代码中写出数据来源以及数据展示字段等,从而导致应用页面开发效率低,且操作繁琐。In the existing application page development process, developers are required to manually write corresponding business codes according to business needs; for example, in order to display the required page data in the application page, developers need to write the data source and data display fields in the code, which leads to low efficiency of application page development and cumbersome operations.
发明内容Summary of the invention
本申请所要解决的技术问题在于,提供一种应用页面处理方法、装置、电子设备及存储介质,能够提高页面开发效率。The technical problem to be solved by the present application is to provide an application page processing method, device, electronic device and storage medium, which can improve the efficiency of page development.
为了解决上述技术问题,一方面,本申请实施例提供了一种应用页面处理方法,包括:In order to solve the above technical problems, on the one hand, an embodiment of the present application provides an application page processing method, including:
响应于应用页面编辑指令,展示应用编辑页面;所述应用编辑页面包括候选功能组件展示区域以及页面编辑区域,所述候选功能组件展示区域包括至少一个候选功能组件的组件标识;In response to the application page editing instruction, displaying the application editing page; the application editing page includes a candidate functional component display area and a page editing area, and the candidate functional component display area includes a component identifier of at least one candidate functional component;
响应于基于任一组件标识触发的功能组件选择指令,在所述页面编辑区域展示被选中的目标功能组件,以及所述目标功能组件对应的至少一个属性配置组件;In response to a function component selection instruction triggered based on any component identifier, displaying a selected target function component and at least one property configuration component corresponding to the target function component in the page editing area;
响应于基于任一属性配置组件触发的属性配置指令,基于属性表达式对所述任一属性配置组件进行配置,得到已配置的属性配置组件;每个属性表达式对应多个目标功能组件的属性配置组件;In response to an attribute configuration instruction triggered based on any attribute configuration component, any attribute configuration component is configured based on an attribute expression to obtain a configured attribute configuration component; each attribute expression corresponds to attribute configuration components of multiple target functional components;
基于所述目标功能组件以及所述已配置的属性配置组件,生成应用页面的页面信息。Based on the target function component and the configured property configuration component, page information of the application page is generated.
另一方面,本申请实施例提供了一种应用页面处理装置,包括:On the other hand, an embodiment of the present application provides an application page processing device, including:
第一响应模块,用于响应于应用页面编辑指令,展示应用编辑页面;所述应用编辑页面包括候选功能组件展示区域以及页面编辑区域,所述候选功能组件展示区域包括至少一个候选功能组件的组件标识;A first response module, configured to display an application editing page in response to an application page editing instruction; the application editing page includes a candidate functional component display area and a page editing area, the candidate functional component display area includes a component identifier of at least one candidate functional component;
第二响应模块,用于响应于基于任一组件标识触发的功能组件选择指令,在所述页面编辑区域展示被选中的目标功能组件,以及所述目标功能组件对应的至少一个属性配置组件;A second response module, configured to respond to a function component selection instruction triggered based on any component identifier, and display the selected target function component and at least one property configuration component corresponding to the target function component in the page editing area;
第三响应模块,用于响应于基于任一属性配置组件触发的属性配置指令,基于属性表达式对所述任一属性配置组件进行配置,得到已配置的属性配置组件;每个属性表达式对应多个目标功能组件的属性配置组件;A third response module, configured to respond to an attribute configuration instruction triggered based on any attribute configuration component, configure any attribute configuration component based on an attribute expression, and obtain a configured attribute configuration component; each attribute expression corresponds to attribute configuration components of multiple target functional components;
页面信息生成模块,用于基于所述目标功能组件以及所述已配置的属性配置组件,生成应用页面的页面信息。The page information generation module is used to generate page information of the application page based on the target function component and the configured attribute configuration component.
另一方面,本申请提供了一种电子设备,所述设备包括处理器和存储器,所述存储器中存储有至少一条指令或至少一段程序,所述至少一条指令或所述至少一段程序由所述处理器加载并执行以实现如上述的应用页面处理方法。On the other hand, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded and executed by the processor to implement the application page processing method as described above.
另一方面,本申请提供了一种计算机存储介质,所述存储介质中存储有至少一条指令或至少一段程序,所述至少一条指令或所述至少一段程序由处理器加载并执行如上述的应用页面处理方法。On the other hand, the present application provides a computer storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded by a processor and executed as the above-mentioned application page processing method.
实施本申请实施例,具有如下有益效果:Implementing the embodiments of the present application has the following beneficial effects:
本申请在进行应用页面编辑时,可基于功能组件选择指令确定被选中的目标功能组件,进而在页面编辑区域中展示目标功能组件,以及目标功能组件对应的至少一个属性配置组件,属性配置组件是用于对目标功能组件进行属性配置的;在需要对目标功能组件的任一属性进行配置时,可通过触发该属性对应的属性配置组件,基于属性表达式对属性配置组件进行配置,进而基于已配置的属性配置组件以及目标功能组件即可生成应用页面的页面信息;从而通过对功能组件进行可视化选择,以及对属性配置组件进行可视化配置实现页面开发,避免需要通过编写代码进行页面开发,提高页面开发的效率以及页面展示的效率;进一步地,其中每个属性表达式可对应多个目标功能组件的属性配置组件,从而对于需要配置相同属性的不同属性配置组件,可基于同一属性表达式进行属性配置,即每个属性表达式是可复用的,避免在对多个功能进行相同属性配置时需要多次重复操作的问题,提高了对功能组件属性的配置效率,进一步提高了页面开发以及页面展示效率。When editing an application page, the present application can determine the selected target function component based on the function component selection instruction, and then display the target function component and at least one property configuration component corresponding to the target function component in the page editing area, and the property configuration component is used to configure the properties of the target function component; when it is necessary to configure any property of the target function component, the property configuration component corresponding to the property can be triggered, and the property configuration component can be configured based on the property expression, and then the page information of the application page can be generated based on the configured property configuration component and the target function component; thereby, page development is achieved by visually selecting the function component and visually configuring the property configuration component, avoiding the need to develop the page by writing code, and improving the efficiency of page development and page display; further, each property expression can correspond to the property configuration components of multiple target function components, so that for different property configuration components that need to configure the same property, the property configuration can be performed based on the same property expression, that is, each property expression is reusable, avoiding the problem of repeated operations when configuring the same property for multiple functions, improving the configuration efficiency of the function component properties, and further improving the efficiency of page development and page display.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案和优点,下面将对实施例或现有技术描述中所需要使用的附图作简单的介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它附图。In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
图1是本申请实施例提供的实施环境示意图;FIG1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
图2是本申请实施例提供的一种应用页面处理方法流程图;FIG2 is a flow chart of an application page processing method provided in an embodiment of the present application;
图3是本申请实施例提供的应用编辑页面示意图;FIG3 is a schematic diagram of an application editing page provided in an embodiment of the present application;
图4是本申请实施例提供的页面区域为与候选功能组件展示区域示意图;FIG4 is a schematic diagram of a page area provided in an embodiment of the present application and a display area for candidate functional components;
图5是本申请实施例提供的一种属性配置组件的配置方法流程图;FIG5 is a flow chart of a configuration method of a property configuration component provided in an embodiment of the present application;
图6是本申请实施例提供的属性配置窗口示意图;FIG6 is a schematic diagram of a property configuration window provided in an embodiment of the present application;
图7是本申请实施例提供的表格组件以及图表组件示意图;FIG. 7 is a schematic diagram of a table component and a chart component provided in an embodiment of the present application;
图8是本申请实施例提供的多种接口信息展示示意图;FIG8 is a schematic diagram showing various interface information provided in an embodiment of the present application;
图9是本申请实施例提供的配置指令触发控件展示示意图;FIG9 is a schematic diagram showing a configuration instruction triggering control provided in an embodiment of the present application;
图10是本申请实施例提供的一种应用页面的页面信息生成方法流程图;10 is a flow chart of a method for generating page information of an application page provided in an embodiment of the present application;
图11是本申请实施例提供的功能组件的属性与属性配置组件之间的对应关系示意图;11 is a schematic diagram of the corresponding relationship between the attributes of the functional components and the attribute configuration components provided in an embodiment of the present application;
图12是本申请实施例提供的属性配置组件配置信息流向图;12 is a flow diagram of configuration information of a property configuration component provided in an embodiment of the present application;
图13是本申请实施例提供的功能组件开发属性配置协议代码;FIG13 is a functional component development attribute configuration protocol code provided in an embodiment of the present application;
图14是本申请实施例提供的属性配置组件定义协议代码;FIG14 is a property configuration component definition protocol code provided in an embodiment of the present application;
图15是本申请实施例提供的一种应用页面处理装置示意图;FIG15 is a schematic diagram of an application page processing device provided in an embodiment of the present application;
图16是本申请实施例提供的一种电子设备结构示意图;FIG16 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
图17是本申请实施例提供的另一种电子设备结构示意图。FIG. 17 is a schematic diagram of the structure of another electronic device provided in an embodiment of the present application.
具体实施方式DETAILED DESCRIPTION
为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都属于本申请保护的范围。To make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或服务器不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
首先对本说明书实施例中涉及的相关名词做以下解释:First, the following explanations are given for the relevant terms involved in the embodiments of this specification:
组件:包含界面,交互,数据的一个独立单元,其具有高度的内聚特性。Component: An independent unit that includes interface, interaction, and data, and has a high degree of cohesion.
功能模块:大粒度的组件,其由组件和源码组成。Functional module: A large-grained component consisting of components and source code.
属性配置组件:即把功能组件能够开放的动态属性,抽象为一个个表单项组件,并打上标识,平台就是通过标识来识别该属性小组件,并使用该属性小组件来渲染效果。Property configuration component: abstracts the dynamic properties that can be opened by the functional component into form item components and marks them. The platform identifies the property widget through the label and uses the property widget to render the effect.
属性表单:由N项属性小组件渲染组成的表单,这个表单提交的数据就是功能组件的入参。Attribute form: A form composed of N attribute widgets. The data submitted by this form is the input parameter of the functional component.
数据源:即静态页面需要展示的数据来源,目前数据来源可以是:变量,模型,接口等。Data source: the source of data that the static page needs to display. Currently, the data source can be: variables, models, interfaces, etc.
模型:由一张表结构和围绕这个表结构而产生的增,删,修,查接口,功能组件的数据源属性设置为模型,则意味着默认调用查询的接口。Model: It consists of a table structure and the add, delete, modify, and query interfaces generated around this table structure. If the data source property of the functional component is set to model, it means that the query interface is called by default.
运行态:指页面设计器设计好页面后,点预览生产出最终运行代码,运行代码执行的效果,运行态可响应页面上的交互,体验到完整的应用展示给客户的效果,及声明的变量被赋值,被执行的效果。Running state: refers to the effect of executing the code after the page designer designs the page. The running state can respond to the interaction on the page, experience the effect of the complete application being displayed to the customer, and the effect of the declared variables being assigned and executed.
设计态:指页面设计器在产品经理或运营人员设计时的状态,即想要把当前这个页面设计成长什么样,点某个按钮有什么交互行为,声明哪些变量来保存数据,页面又要渲染哪个变量等。Design state: refers to the state of the page designer when the product manager or operation staff is designing, that is, how they want the current page to be designed, what the interactive behavior will be when clicking a button, which variables to declare to save data, which variable to render on the page, etc.
Pagelets:指在编辑区页面上通过拖拉方式组成的页面所生成的JSON文件,这个JSON文件就是用于描述整个页面的,描述他上面的事件,样式,展示,动作。Pagelets: refers to the JSON file generated by dragging and dropping pages on the editing area. This JSON file is used to describe the entire page, describing its events, styles, displays, and actions.
Renderer:渲染引擎,即根据Pagelets这个JSON文件,把其还原为一个可展示的页面。Renderer: Rendering engine, which converts the Pagelets JSON file into a displayable page.
Designer:编辑器设计态的总处理对象。Designer: The overall processing object of the editor design state.
请参阅图1,其示出了本申请实施例提供的实施环境示意图,该实施环境可包括:页面开发端110、应用服务器120以及用户终端130;其中,页面开发端110可与应用服务器120通过网络进行数据通信;用户终端130可与应用服务器120通过网络进行数据通信。Please refer to Figure 1, which shows a schematic diagram of the implementation environment provided by an embodiment of the present application. The implementation environment may include: a page development end 110, an application server 120 and a user terminal 130; wherein the page development end 110 can communicate data with the application server 120 through a network; the user terminal 130 can communicate data with the application server 120 through a network.
具体地,页面开发端110可基于业务需求通过可视化的方式进行应用页面开发,生成应用页面的页面信息;将应用页面的页面信息发送给应用服务器120。Specifically, the page development end 110 can develop application pages in a visual manner based on business requirements, generate page information of the application pages, and send the page information of the application pages to the application server 120 .
用户终端130在使用目标应用时,可查看目标应用的相关应用页面,在需要进行应用页面查看时,可向应用服务器120发送针对该应用页面的页面查看请求,应用服务器120可基于页面查看请求向用户终端130返回相应的页面信息;用户终端130可基于页面信息进行渲染,展示应用页面。When using the target application, the user terminal 130 can view the relevant application pages of the target application. When the application page needs to be viewed, a page view request for the application page can be sent to the application server 120. The application server 120 can return corresponding page information to the user terminal 130 based on the page view request; the user terminal 130 can render based on the page information to display the application page.
页面开发端110可以基于浏览器/服务器模式(Browser/Server,B/S)或客户端/服务器模式(Client/Server,C/S)与应用服务器120进行通信。页面开发端110可以包括:智能手机、平板电脑、笔记本电脑、数字助理、智能可穿戴设备、车载终端、服务器等类型的实体设备。本申请实施例中的页面开发端110上运行的操作系统可以包括但不限于安卓系统、IOS系统、linux、windows等。The page development end 110 can communicate with the application server 120 based on the browser/server mode (B/S) or the client/server mode (C/S). The page development end 110 may include: physical devices such as smart phones, tablet computers, laptops, digital assistants, smart wearable devices, vehicle terminals, servers, etc. The operating system running on the page development end 110 in the embodiment of the present application may include but is not limited to Android system, IOS system, Linux, Windows, etc.
用户终端130可以基于浏览器/服务器模式(Browser/Server,B/S)或客户端/服务器模式(Client/Server,C/S)与应用服务器120进行通信。用户终端130可以包括:智能手机、平板电脑、笔记本电脑、数字助理、智能可穿戴设备、车载终端、服务器等类型的实体设备。本申请实施例中的用户终端130上运行的操作系统可以包括但不限于安卓系统、IOS系统、linux、windows等。The user terminal 130 can communicate with the application server 120 based on the browser/server mode (B/S) or the client/server mode (C/S). The user terminal 130 may include: a smart phone, a tablet computer, a laptop computer, a digital assistant, a smart wearable device, a vehicle terminal, a server and other types of physical devices. The operating system running on the user terminal 130 in the embodiment of the present application may include but is not limited to Android system, IOS system, Linux, Windows and the like.
应用服务器120与页面开发端110可以通过有线或者无线建立通信连接,应用服务器120与用户终端130可以通过有线或者无线建立通信连接,应用服务器120可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统,还可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、CDN、以及大数据和人工智能平台等基础云计算服务的云服务器。The application server 120 can establish a communication connection with the page development end 110 via wired or wireless communication, and the application server 120 can establish a communication connection with the user terminal 130 via wired or wireless communication. The application server 120 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, as well as big data and artificial intelligence platforms.
为了解决现有技术中页面应用页面开发效率低,且操作繁琐的问题,本申请实施例提供了一种应用页面处理方法,该方法的执行主体可以为上述的页面开发端,请参阅图2,该方法具体可包括:In order to solve the problem of low efficiency and cumbersome operation of page application page development in the prior art, the embodiment of the present application provides an application page processing method, the execution subject of the method can be the above-mentioned page development end, please refer to Figure 2, the method may specifically include:
S210.响应于应用页面编辑指令,展示应用编辑页面;所述应用编辑页面包括候选功能组件展示区域以及页面编辑区域,所述候选功能组件展示区域包括至少一个候选功能组件的组件标识。S210. In response to the application page editing instruction, display an application editing page; the application editing page includes a candidate functional component display area and a page editing area, and the candidate functional component display area includes a component identifier of at least one candidate functional component.
每个应用中均可包括多个应用页面,每个应用页面中可展示有相应的页面数据,从而在进行应用创建时,其中可包括应用页面的创建;具体地,在需要进行应用创建的情况下,可展示应用创建页面,应用创建页面可以为用于对待创建应用进行各项创建操作的页面,对待创建应用的各项创建操作包括应用页面创建、应用图像创建、应用名称创建等。应用创建页面中可包括应用页面创建控件,应用页面创建控件可通过文字名称进行标识,例如,应用页面创建控件上可展示文字“应用页面创建”;应用页面创建控件也可通过图像进行标识,例如应用页面创建控件的图像可以为表征页面标识的图像。通过触控应用页面创建控件,可触发相应的应用页面编辑指令。Each application may include multiple application pages, and each application page may display corresponding page data, so that when creating an application, it may include the creation of an application page; specifically, when it is necessary to create an application, an application creation page may be displayed, and the application creation page may be a page for performing various creation operations on the application to be created, and the various creation operations on the application to be created include application page creation, application image creation, application name creation, etc. The application creation page may include an application page creation control, and the application page creation control may be identified by a text name, for example, the text "application page creation" may be displayed on the application page creation control; the application page creation control may also be identified by an image, for example, the image of the application page creation control may be an image representing the page identification. By touching the application page creation control, the corresponding application page editing instruction may be triggered.
在一个示例中在每次需要创建应用页面的情况下,均可通过触发应用创建页面中的页面创建控件触发相应的应用页面编辑指令,即一个应用页面可对应一个应用页面编辑指令。In one example, each time an application page needs to be created, the corresponding application page editing instruction can be triggered by triggering a page creation control in the application creation page, that is, one application page can correspond to one application page editing instruction.
在另一个示例中,若已完成当前应用页面的创建,需要继续进行下一应用页面的创建,可基于当前应用页面中的应用页面创建控件触发应用页面编辑指令,以进入下一应用页面的创建过程。In another example, if the creation of the current application page has been completed and it is necessary to continue to create the next application page, an application page editing instruction can be triggered based on the application page creation control in the current application page to enter the creation process of the next application page.
在页面开发端响应应用页面编辑指令的情况下,可展示应用编辑页面,应用编辑页面是用于对应用页面进行各项创建操作的页面;对应用页面的各项创建操作可包括页面名称创建、页面控件创建、页面样式创建等。在响应应用页面编辑指令时,展示的应用编辑页面可包括候选功能组件展示区域和页面编辑区域,此时的候选功能组件展示区域可展示有候选功能组件的组件标识,组件标识具体可以为文字标识,也可以为图像标识,在此不作限定;此时的页面编辑区域可以为空白区域,即为没有展示具体页面信息的区域。请参阅图3,候选功能组件展示区域展示有功能组件1、功能组件2、功能组件3、功能组件4等,页面区域为与候选功能组件展示区域相邻的区域。When the page development end responds to the application page editing instruction, the application editing page can be displayed. The application editing page is a page used to perform various creation operations on the application page; the various creation operations on the application page may include page name creation, page control creation, page style creation, etc. When responding to the application page editing instruction, the displayed application editing page may include a candidate functional component display area and a page editing area. At this time, the candidate functional component display area may display the component logo of the candidate functional component. The component logo can be a text logo or an image logo, which is not limited here; at this time, the page editing area can be a blank area, that is, an area where no specific page information is displayed. Please refer to Figure 3. The candidate functional component display area displays functional component 1, functional component 2, functional component 3, functional component 4, etc., and the page area is an area adjacent to the candidate functional component display area.
S220.响应于基于任一组件标识触发的功能组件选择指令,在所述页面编辑区域展示被选中的目标功能组件,以及所述目标功能组件对应的至少一个属性配置组件。S220. In response to a function component selection instruction triggered based on any component identifier, display a selected target function component and at least one property configuration component corresponding to the target function component in the page editing area.
本实施例中,基于任一组件标识触发的功能组件选择指令可以通过对任一组件标识的选择操作所触发,对任一组件标识的选择操作可包括拖拽、单击、双击、长按等操作,以拖拽操作为例进行说明,当需要选择目标功能组件时,可对目标功能组件的组件标识执行拖拽操作,且拖拽方向可指向页面编辑区域,以实现将该功能组件拖拽到页面编辑区域中,并自动触发在页面编辑区域中展示被选中的目标功能组件,以及目标功能组件对应的至少属性配置组件。In this embodiment, the function component selection instruction triggered based on any component identifier can be triggered by a selection operation on any component identifier. The selection operation on any component identifier may include dragging, single-clicking, double-clicking, long pressing and other operations. Taking the drag operation as an example, when it is necessary to select the target function component, the component identifier of the target function component can be dragged, and the dragging direction can point to the page editing area to realize dragging the function component to the page editing area, and automatically trigger the display of the selected target function component in the page editing area, as well as at least the attribute configuration component corresponding to the target function component.
本实施例中,一次功能组件选择指令可以是针对一个或多个组件标识所触发的,即每次可对组件标识进行单选或者多选,从而实现对一个多个多个功能组件的选择。在需要同时选择多个功能组件的情况下,可首先选中多个功能组件的组件标识,然后基于多个功能组件的组件标识触发功能组件选择指令。In this embodiment, a functional component selection instruction may be triggered for one or more component identifiers, that is, a single or multiple component identifiers may be selected each time, thereby realizing the selection of one or more functional components. In the case where multiple functional components need to be selected at the same time, the component identifiers of the multiple functional components may be selected first, and then the functional component selection instruction may be triggered based on the component identifiers of the multiple functional components.
页面编辑区域中可展示目标功能组件的展示形态,相应的属性配置组件可与目标功能组件所对应的多个可动态配置的属性相对应,所谓可动态配置的属性可以是指基于具体业务需求(例如不同情况下显示不同结构的数据等)对属性进行动态配置,以实现页面展示数据与业务需求相适配。本实施例中,在对每个功能组件进行开发时,可预先设置待开发功能组件的可动态配置的属性,对于每个可动态配置的属性,可相应生成属性配置组件,从而在基于已开发完成的功能组件进行页面开发时,可基于功能组件对应的属性配置组件对功能组件进行属性动态配置。The display form of the target functional component can be displayed in the page editing area, and the corresponding attribute configuration component can correspond to multiple dynamically configurable attributes corresponding to the target functional component. The so-called dynamically configurable attributes can refer to the dynamic configuration of attributes based on specific business needs (for example, displaying data of different structures in different situations, etc.) to achieve the adaptation of page display data to business needs. In this embodiment, when developing each functional component, the dynamically configurable attributes of the functional component to be developed can be pre-set, and for each dynamically configurable attribute, an attribute configuration component can be generated accordingly, so that when developing a page based on the developed functional component, the attributes of the functional component can be dynamically configured based on the attribute configuration component corresponding to the functional component.
具体地,在页面编辑区域展示被选中的目标功能组件,以及目标功能组件对应的至少一个属性配置组件即可包括:Specifically, displaying the selected target function component and at least one property configuration component corresponding to the target function component in the page editing area may include:
响应于基于所述任一组件标识触发的功能组件选择指令,在所述页面编辑区域展示页面区域以及组件属性编辑区域;In response to a function component selection instruction triggered based on any one of the component identifiers, displaying a page area and a component attribute editing area in the page editing area;
在所述页面区域展示所述目标功能组件;Display the target functional component in the page area;
在所述组件属性编辑区域展示所述至少一个属性配置组件。The at least one property configuration component is displayed in the component property editing area.
根据上述内容可知,在响应应用页面编辑指令时,展示的应用编辑页面可包括候选功能组件展示区域和页面编辑区域,此时的候选功能组件展示区域可展示有候选功能组件的组件标识;此时的页面编辑区域可以为空白区域,即为没有展示具体页面信息的区域。在此基础上,请参阅图4,在响应于功能组件选择指令时,页面编辑区域中可动态展示页面编辑区域以及组件属性编辑区域,并且页面编辑区域中展示了目标功能组件,组件属性编辑区域中展示了目标功能组件对应的至少一个属性配置组件。According to the above content, when responding to the application page editing instruction, the displayed application editing page may include a candidate functional component display area and a page editing area. At this time, the candidate functional component display area may display the component identification of the candidate functional component; at this time, the page editing area may be a blank area, that is, an area where no specific page information is displayed. On this basis, please refer to Figure 4. When responding to the functional component selection instruction, the page editing area may dynamically display the page editing area and the component attribute editing area, and the target functional component is displayed in the page editing area, and at least one attribute configuration component corresponding to the target functional component is displayed in the component attribute editing area.
从而通过响应功能组件选择指令,触发在页面编辑区域中动态展示页面编辑区域以及组件属性编辑区域,从而能够实现页面编辑区域以及组件属性编辑区域的按需展示,并且通过在不同展示区域展示目标功能组件与属性配置组件,避免功能组件与属性配置组件的交叉展示,便于对属性配置组件进行统一管理,进而提高对功能组件属性的配置效率。Thus, by responding to the function component selection instruction, the page editing area and the component property editing area are dynamically displayed in the page editing area, so that on-demand display of the page editing area and the component property editing area can be achieved, and by displaying the target function components and property configuration components in different display areas, cross-display of function components and property configuration components can be avoided, which facilitates unified management of property configuration components, thereby improving the configuration efficiency of function component properties.
S230.响应于基于任一属性配置组件触发的属性配置指令,基于属性表达式对所述任一属性配置组件进行配置,得到已配置的属性配置组件;每个属性表达式对应多个目标功能组件的属性配置组件。S230. In response to the attribute configuration instruction triggered by any attribute configuration component, configure any attribute configuration component based on the attribute expression to obtain a configured attribute configuration component; each attribute expression corresponds to the attribute configuration components of multiple target functional components.
同一属性配置组件可具有一种或者多种属性配置方式,对于支持以属性表达式进行属性配置的属性配置组件,即可采用属性表达式的方式进行配置;本实施例中的属性表达式可以为常量、变量、或者基于变量组合所形成的变量表达式等,本实施例不做具体限定。属性表达式具体可以是能够表征属性配置信息的表达式,属性表达式在页面设计态不能表征具体展示效果,在页面运行态会展示相应的效果。The same property configuration component may have one or more property configuration methods. For property configuration components that support property configuration using property expressions, property expressions can be used for configuration; the property expressions in this embodiment may be constants, variables, or variable expressions formed based on variable combinations, etc., which are not specifically limited in this embodiment. The property expression may specifically be an expression that can represent the property configuration information. The property expression cannot represent the specific display effect in the page design state, but will display the corresponding effect in the page running state.
每个属性表达式对应多个目标功能组件可以指多个目标功能组件可复用相同的属性表达式,以实现多个目标功能组件被配置了相同的属性。例如,对于目标功能组件A和目标功能组件B,均可支持以属性表达式进行属性配置,目标功能组件A和目标功能组件B均需获取相同的数据源,从而所配置的数据源属性是相同的,从而可将目标功能组件A和目标功能组件B的数据源属性设置为相同的属性表达式,从而实现属性表达式的复用。Each attribute expression corresponds to multiple target functional components, which means that multiple target functional components can reuse the same attribute expression to achieve that multiple target functional components are configured with the same attribute. For example, for target functional component A and target functional component B, both can support attribute configuration using attribute expressions. Both target functional component A and target functional component B need to obtain the same data source, so that the configured data source attributes are the same, so that the data source attributes of target functional component A and target functional component B can be set to the same attribute expression, thereby achieving the reuse of attribute expressions.
进一步地,每个属性表达式对应的多个目标功能组件可以为处于同一应用页面中的功能组件,也可以为处于不同应用页面但属于同一应用的功能组件。Furthermore, the multiple target functional components corresponding to each attribute expression may be functional components in the same application page, or may be functional components in different application pages but belonging to the same application.
S240.基于所述目标功能组件以及所述已配置的属性配置组件,生成应用页面的页面信息。S240. Generate page information of an application page based on the target function component and the configured property configuration component.
已配置的属性配置组件可以为通过对目标功能组件对应的至少一个属性配置组件进行配置所得到的,也就意味着实现了对目标功能组件的至少一项属性进行了配置,从而已配置的属性配置组件可表征目标功能组件中展示数据的获取方式、对目标功能组件中展示数据的访问权限、目标功能组件的展示样式等功能组件描述信息,从而基于目标功能组件以及目标功能组件对应的已配置的属性配置组件,可生成应用页面的页面信息,即应用页面的页面信息中可包括对该应用页面中的目标功能组件的描述信息。The configured property configuration component may be obtained by configuring at least one property configuration component corresponding to the target functional component, which means that at least one property of the target functional component has been configured, so that the configured property configuration component can characterize functional component description information such as a method for obtaining display data in the target functional component, access rights to display data in the target functional component, and a display style of the target functional component, thereby generating page information of an application page based on the target functional component and the configured property configuration component corresponding to the target functional component, that is, the page information of the application page may include description information of the target functional component in the application page.
基于应用页面的页面信息生成的应用页面中可展示有目标功能组件,且各目标功能组件的具体展示形态是基于对目标功能组件的属性配置组件进行的配置所确定的。The target function components may be displayed in the application page generated based on the page information of the application page, and the specific display form of each target function component is determined based on the configuration of the attribute configuration component of the target function component.
本申请在进行应用页面编辑时,可基于功能组件选择指令确定被选中的目标功能组件,进而在页面编辑区域中展示目标功能组件,以及目标功能组件对应的至少一个属性配置组件,属性配置组件是用于对目标功能组件进行属性配置的;在需要对目标功能组件的任一属性进行配置时,可通过触发该属性对应的属性配置组件,基于属性表达式对属性配置组件进行配置,进而基于已配置的属性配置组件以及目标功能组件即可生成应用页面的页面信息;从而通过对功能组件进行可视化选择,以及对属性配置组件进行可视化配置实现页面开发,避免需要通过编写代码进行页面开发,提高页面开发的效率以及页面展示的效率;进一步地,其中每个属性表达式可对应多个目标功能组件的属性配置组件,从而对于需要配置相同属性的不同属性配置组件,可基于同一属性表达式进行属性配置,即每个属性表达式是可复用的,避免在对多个功能进行相同属性配置时需要多次重复操作的问题,提高了对功能组件属性的配置效率,进一步提高了页面开发以及页面展示效率。When editing an application page, the present application can determine the selected target function component based on the function component selection instruction, and then display the target function component and at least one property configuration component corresponding to the target function component in the page editing area, and the property configuration component is used to configure the properties of the target function component; when it is necessary to configure any property of the target function component, the property configuration component corresponding to the property can be triggered, and the property configuration component can be configured based on the property expression, and then the page information of the application page can be generated based on the configured property configuration component and the target function component; thereby, page development is achieved by visually selecting the function component and visually configuring the property configuration component, avoiding the need to develop the page by writing code, and improving the efficiency of page development and page display; further, each property expression can correspond to the property configuration components of multiple target function components, so that for different property configuration components that need to configure the same property, the property configuration can be performed based on the same property expression, that is, each property expression is reusable, avoiding the problem of repeated operations when configuring the same property for multiple functions, improving the configuration efficiency of the function component properties, and further improving the efficiency of page development and page display.
根据上述内容可知,对于属性表达式,虽然其没有表征具体的展示结果,但其可表征目标配置信息,在运行态即可基于这个目标配置信息去进行相应的配置,从而展示相应的效果;相应地,响应于基于任一属性配置组件触发的属性配置指令,基于属性表达式对所述任一属性配置组件进行配置,得到已配置的属性配置组件之前,所述方法还包括:According to the above content, although the attribute expression does not represent a specific display result, it can represent the target configuration information, and the corresponding configuration can be performed based on the target configuration information in the running state, so as to display the corresponding effect; accordingly, in response to the attribute configuration instruction triggered based on any attribute configuration component, any attribute configuration component is configured based on the attribute expression, and before obtaining the configured attribute configuration component, the method further includes:
将目标配置信息赋值给预定义的属性表达式,得到已赋值的目标属性表达式。Assign the target configuration information to the predefined attribute expression to obtain the assigned target attribute expression.
即在使用属性表达式对属性配置组件进行配置的情况下,可首先进行属性表达式的预定义,然后将目标配置信息赋值给预定义的属性表达式,从而得到已赋值的目标属性表达式。相同的属性表达式表征相同的目标配置信息,不同的属性表达式表征不同的目标配置信息。That is, when using attribute expressions to configure attribute configuration components, you can first predefine the attribute expressions, and then assign the target configuration information to the predefined attribute expressions, thereby obtaining the assigned target attribute expressions. The same attribute expressions represent the same target configuration information, and different attribute expressions represent different target configuration information.
进一步地,所述响应于基于任一属性配置组件触发的属性配置指令,基于属性表达式对所述任一属性配置组件进行配置,得到已配置的属性配置组件,包括:Further, in response to the attribute configuration instruction triggered based on any attribute configuration component, configuring any attribute configuration component based on the attribute expression to obtain the configured attribute configuration component includes:
在需要将所述任一属性配置组件的属性配置为所述目标配置信息的情况下,响应于基于所述任一属性配置组件触发的所述属性配置指令,基于所述目标属性表达式对所述任一属性配置组件进行配置,得到所述已配置的属性配置组件。In the case where the property of any one of the property configuration components needs to be configured as the target configuration information, in response to the property configuration instruction triggered based on any one of the property configuration components, any one of the property configuration components is configured based on the target property expression to obtain the configured property configuration component.
即目标属性表达式即可表征目标配置信息,需要基于目标配置信息进行属性配置的属性配置组件,均可使用目标属性表达式进行配置。That is, the target attribute expression can represent the target configuration information, and the attribute configuration components that need to perform attribute configuration based on the target configuration information can all be configured using the target attribute expression.
从而在需要使用属性表达式对属性配置组件进行配置的情况下,可进行属性表达式的预定义,并基于目标配置信息对预定义的属性表达式进行赋值,从而对于需要使用目标配置信息进行配置的任一属性组件,均可使用已赋值的属性表达式,从而实现了属性表达式的复用,以及避免对多个属性配置组件配置相同信息所进行的重复操作,提高属性配置效率。Therefore, when it is necessary to use attribute expressions to configure attribute configuration components, attribute expressions can be predefined and assigned based on target configuration information. Thus, for any attribute component that needs to be configured using target configuration information, the assigned attribute expression can be used, thereby achieving the reuse of attribute expressions and avoiding repeated operations for configuring the same information for multiple attribute configuration components, thereby improving attribute configuration efficiency.
具体地,请参阅图5,其示出了一种属性配置组件的配置方法,该方法可包括:Specifically, please refer to FIG5 , which shows a configuration method of a property configuration component. The method may include:
S510.响应于所述属性配置指令,展示属性配置窗口;所述属性配置窗口包括表达式展示区域以及候选表达式列表;所述候选表达式列表包括至少一个已赋值的属性表达式。S510. In response to the attribute configuration instruction, display an attribute configuration window; the attribute configuration window includes an expression display area and a candidate expression list; the candidate expression list includes at least one assigned attribute expression.
可基于需要配置的属性配置组件触发属性配置指令,例如可通过对属性配置组件进行触发,或者对该属性配置组件对应的配置指令触发控件进行触发。请参阅图6,在响应属性配置指令的情况下,可展示属性配置窗口,属性配置窗口可以为独立于应用编辑页面的窗口;属性配置窗口包括表达式展示区域以及候选表达式列表,其中表达式展示区域可用于展示属性配置组件对应的已确定的属性表达式,在没有确定或者没有配置的情况下,表达式展示区域的展示内容为空。候选表达式列表中可包括至少一个已赋值的属性表达式,对于属性表达式的赋值方法可参阅本实施例上述内容,在此不再赘述。The property configuration instruction can be triggered based on the property configuration component that needs to be configured, for example, by triggering the property configuration component, or by triggering the configuration instruction trigger control corresponding to the property configuration component. Please refer to Figure 6. In response to the property configuration instruction, the property configuration window can be displayed. The property configuration window can be a window independent of the application editing page; the property configuration window includes an expression display area and a candidate expression list, wherein the expression display area can be used to display the determined property expression corresponding to the property configuration component. When it is not determined or configured, the display content of the expression display area is empty. The candidate expression list may include at least one assigned property expression. For the method of assigning the property expression, please refer to the above content of this embodiment, which will not be repeated here.
进一步地,对于属性配置组件对应的属性表达式,其可以是从候选表达式列表中选择的已赋值的属性表达式,也可以为一个直接确定的常量,常量可以为true,false,或者0,1等。Furthermore, for the property expression corresponding to the property configuration component, it can be an assigned property expression selected from a candidate expression list, or it can be a directly determined constant, and the constant can be true, false, or 0, 1, etc.
S520.响应于针对所述候选表达式列表中的所述目标属性表达式的选择指令,在所述表达式展示区域展示所述目标属性表达式。S520. In response to a selection instruction for the target attribute expression in the candidate expression list, display the target attribute expression in the expression display area.
本实施例中,可从候选表达式列表中选择相应的目标属性表达式,从而该目标属性表达式即可在表达式展示区域中进行展示。In this embodiment, a corresponding target attribute expression may be selected from the candidate expression list, so that the target attribute expression may be displayed in the expression display area.
在目标属性表达式展示在表达式展示区域后,还可进一步基于业务逻辑,通过可视化的方式对目标属性表达式进行调整或者修改,以得到与业务逻辑相适配的目标属性表达式。After the target attribute expression is displayed in the expression display area, the target attribute expression can be further adjusted or modified in a visual manner based on the business logic to obtain a target attribute expression that matches the business logic.
S530.基于所述目标属性表达式对所述任一属性配置组件进行配置,得到所述已配置的属性配置组件。S530. Configure any one of the attribute configuration components based on the target attribute expression to obtain the configured attribute configuration component.
在确定了目标属性表达式的情况下,即可基于目标属性表达式对任一属性配置组件进行配置,具体地,属性配置窗口中还可包括确认配置控件,在触控了确认配置控件的情况下,即可将目标属性表达式配置给相应的属性配置组件,进而得到已配置的属性配置组件。Once the target attribute expression is determined, any attribute configuration component can be configured based on the target attribute expression. Specifically, the attribute configuration window may also include a confirmation configuration control. When the confirmation configuration control is touched, the target attribute expression can be configured to the corresponding attribute configuration component, thereby obtaining the configured attribute configuration component.
本实施例中,可通过属性配置窗口进行属性表达式的配置,并且属性配置窗口中展示有候选表达式列表,从而便于在进行属性表达式配置时从已赋值的属性表达式中进行表达式选择,提高表达式配置效率;并且属性配置窗口中还可通过表达式展示区域展示相应的属性表达式,便于基于业务实现逻辑进行属性表达式的修改以及调整,从而提高了表达式配置的灵活性以及适配性。In this embodiment, the attribute expression can be configured through the attribute configuration window, and a list of candidate expressions is displayed in the attribute configuration window, which facilitates the selection of expressions from the assigned attribute expressions when configuring the attribute expression, thereby improving the efficiency of expression configuration; and the corresponding attribute expression can also be displayed in the expression display area in the attribute configuration window, which facilitates the modification and adjustment of the attribute expression based on the business implementation logic, thereby improving the flexibility and adaptability of the expression configuration.
通过上述对属性配置组件的各项配置,实现了对目标功能组件各项属性的属性配置,相应可得到应用页面的页面信息;在对属性配置组件进行配置的过程中,若对多个目标功能组件进行属性配置时,使用了相同的目标属性表达式,则相应的应用页面的页面信息即可表征多个目标功能组件的属性配置组件是基于相同的目标属性表达式进行配置的;基于此,本实施例提供了一种页面数据渲染方法,该方法可包括:Through the above configurations of the attribute configuration components, the attribute configurations of the attributes of the target functional components are realized, and the page information of the application page can be obtained accordingly; in the process of configuring the attribute configuration components, if the same target attribute expression is used when configuring the attributes of multiple target functional components, the page information of the corresponding application page can represent that the attribute configuration components of the multiple target functional components are configured based on the same target attribute expression; based on this, this embodiment provides a page data rendering method, which may include:
响应于应用页面展示指令,在所述应用页面的页面信息表征多个目标功能组件的属性配置组件是基于所述目标属性表达式进行配置的情况下,基于所述目标属性表达式对应的所述目标配置信息,获取目标页面数据;In response to the application page display instruction, when the page information of the application page represents that the attribute configuration components of multiple target functional components are configured based on the target attribute expression, acquiring target page data based on the target configuration information corresponding to the target attribute expression;
在所述多个目标功能组件处分别渲染所述目标页面数据。The target page data are rendered respectively at the multiple target functional components.
这里的页面展示指令可以是开发人员在进行页面预览时所触发的,也可以是用户在使用应用时进行页面查看时所触发的。在应用页面的页面信息表征多个目标功能组件的属性配置组件是基于所述目标属性表达式进行配置的情况下,可基于目标属性表达式对应的目标配置信息,获取目标页面数据,这里对于相同目标配置信息的所对应的目标属性表达式,只需获取一次目标页面数据,而可多处使用。The page display instruction here can be triggered by the developer when previewing the page, or it can be triggered by the user when viewing the page when using the application. In the case where the page information of the application page represents that the attribute configuration components of multiple target functional components are configured based on the target attribute expression, the target page data can be obtained based on the target configuration information corresponding to the target attribute expression. Here, for the target attribute expression corresponding to the same target configuration information, the target page data only needs to be obtained once, and can be used in multiple places.
在应用页面的页面信息表征多个目标功能组件处于同一应用页面,且多个目标功能组件的属性配置组件是基于所述目标属性表达式进行配置的情况下,可在展示该应用页面时,在该应用页面的多个目标功能组件处分别渲染目标页面数据。When the page information of an application page indicates that multiple target functional components are on the same application page, and the attribute configuration components of the multiple target functional components are configured based on the target attribute expressions, the target page data can be rendered separately at the multiple target functional components of the application page when displaying the application page.
在应用页面的页面信息表征多个目标功能组件处于不同的应用页面,且多个目标功能组件的属性配置组件是基于所述目标属性表达式进行配置的情况下,可在展示相应应用页面,且该应用页面中包含至少一个目标功能组件的情况下,在至少一个目标功能组件处渲染目标页面数据。即展示哪一个应用页面,相应即可在该应用页面的目标功能组件处渲染目标页面数据。When the page information of the application page indicates that multiple target function components are located in different application pages, and the attribute configuration components of the multiple target function components are configured based on the target attribute expression, when the corresponding application page is displayed and the application page contains at least one target function component, the target page data can be rendered at the at least one target function component. That is, whichever application page is displayed, the target page data can be rendered at the target function component of the application page accordingly.
以多个目标功能组件处于同一应用页面为例,请参阅图7,目标应用页面具体可包括表格组件以及图表组件,且表格组件以及图表组件需要对相同的数据进行展示,从而可分别在表格组件和图表组件中渲染相同的目标页面数据。Taking multiple target functional components in the same application page as an example, please refer to Figure 7. The target application page may specifically include a table component and a chart component, and the table component and the chart component need to display the same data, so that the same target page data can be rendered in the table component and the chart component respectively.
本实施例中在进行页面数据渲染时,对于具有相同目标属性表达式的多个目标功能组件,其所对应的目标页面数据相同,从而只需获取一次页面数据而多处使用,从而能够避免多次获取页面数据导致的资源浪费,提高数据获取效率;一次获取多处使用还能够进一步提高页面数据渲染效率。In this embodiment, when rendering page data, for multiple target function components with the same target attribute expression, the corresponding target page data is the same, so the page data only needs to be obtained once and used in multiple places, thereby avoiding the waste of resources caused by obtaining page data multiple times and improving data acquisition efficiency; obtaining it once and using it in multiple places can further improve the efficiency of page data rendering.
具体地,目标配置信息可表征页面数据获取路径,页面数据获取路径可通过目标功能组件的数据源属性进行表征,数据源属性可通过数据源属性配置组件进行配置,数据源属性配置组件可支持模型、接口、属性表达式等方式进行配置,在不需要进行目标配置信息复用的情况下,可直接基于选择模型选项或者接口选项进行相应的数据源属性配置,以接口选项为例进行说明,请参阅图8,在选择接口选项之后,还可进一步展示接口选择列表,接口选择列表中可展示多种接口信息,不同接口信息对应不同的数据结构。在需要进行目标配置信息复用的情况下,可通过上述属性表达式的方式对相应的属性配置组件进行配置,在此不再赘述。Specifically, the target configuration information can characterize the page data acquisition path, which can be characterized by the data source attributes of the target functional component, and the data source attributes can be configured by the data source attribute configuration component. The data source attribute configuration component can support configuration in the form of models, interfaces, attribute expressions, etc. When the target configuration information does not need to be reused, the corresponding data source attribute configuration can be directly based on the selected model option or interface option. The interface option is used as an example for explanation, please refer to Figure 8. After selecting the interface option, the interface selection list can be further displayed. A variety of interface information can be displayed in the interface selection list, and different interface information corresponds to different data structures. When the target configuration information needs to be reused, the corresponding attribute configuration component can be configured in the form of the above-mentioned attribute expression, which will not be repeated here.
在目标配置信息表征页面数据获取路径的情况下,应用页面的页面信息可包括与页面数据获取路径对应的第一数据获取函数,对于不同的数据源,可能对应不同的数据获取方式以及不同的数据结构,从而不同的页面数据获取路径具有相应的第一数据获取函数,通过第一数据获取函数可获取具有相应数据结构的目标页面数据;从而基于所述目标属性表达式对应的所述目标配置信息,获取目标页面数据包括:In the case where the target configuration information represents a page data acquisition path, the page information of the application page may include a first data acquisition function corresponding to the page data acquisition path. Different data sources may correspond to different data acquisition methods and different data structures, so that different page data acquisition paths have corresponding first data acquisition functions, and target page data with corresponding data structures may be acquired through the first data acquisition function; thus, based on the target configuration information corresponding to the target attribute expression, acquiring the target page data includes:
基于所述第一数据获取函数,获取所述目标页面数据。Based on the first data acquisition function, the target page data is acquired.
例如目标配置信息为将数据源属性配置为接口1,接口1对应的页面数据获取路径可包括数据获取函数1,通过数据获取函数1可获取数据结构1的目标页面数据。For example, the target configuration information is to configure the data source attribute as interface 1, and the page data acquisition path corresponding to interface 1 may include data acquisition function 1, and the target page data of data structure 1 can be acquired through data acquisition function 1.
从而在目标配置信息表征页面数据获取路径的情况下,可基于页面数据获取路径对应的第一数据获取函数,获取目标页面数据;在基于目标配置信息对属性表达式进行赋值,从而实现了属性表达式复用在对表征数据获取路径的属性进行配置的场景下的应用,提高了对表征数据获取路径的属性的配置效率。Therefore, when the target configuration information represents the page data acquisition path, the target page data can be acquired based on the first data acquisition function corresponding to the page data acquisition path; the attribute expression is assigned based on the target configuration information, thereby realizing the reuse of attribute expressions in the scenario of configuring the attributes representing the data acquisition path, thereby improving the configuration efficiency of the attributes representing the data acquisition path.
进一步地,目标配置信息还可表征页面数据访问权限,对于不同的请求对象,其对数据的访问权限不同,例如对于管理员,其可查看全部用户的数据,对于独立用户,其仅可查看自己的用户数据。在不需要对目标配置信息进行复用的情况下,可直接对表征页面数据访问权限的属性配置组件进行配置;在需要对目标配置信息进行复用的情况下,可通过上述属性表达式的方式对相应的属性配置组件进行配置,在此不再赘述。Furthermore, the target configuration information can also represent the page data access rights. Different request objects have different access rights to data. For example, an administrator can view the data of all users, while an independent user can only view his or her own user data. If the target configuration information does not need to be reused, the attribute configuration component representing the page data access rights can be directly configured; if the target configuration information needs to be reused, the corresponding attribute configuration component can be configured by means of the above attribute expression, which will not be repeated here.
在目标配置信息表征页面数据访问权限的情况下,应用页面的页面信息中可包括与页面数据访问权限对应的第二数据获取函数;相应地,所述基于所述目标属性表达式对应的所述目标配置信息,获取目标页面数据包括:In the case where the target configuration information represents the page data access permission, the page information of the application page may include a second data acquisition function corresponding to the page data access permission; accordingly, acquiring the target page data based on the target configuration information corresponding to the target attribute expression includes:
基于请求对象的对象标识以及所述第二数据获取函数,获取所述目标页面数据。The target page data is acquired based on the object identifier of the request object and the second data acquisition function.
由于对于不同的请求对象,需要返回不同的目标页面数据,从而第二数据获取函数具备根据不同请求对象获取不同页面数据的能力,第二数据获取函数具体能够接收请求对象的对象标识,并基于请求对象的对象标识,获取与请求对象对应的目标页面数据。Since different target page data needs to be returned for different request objects, the second data acquisition function has the ability to obtain different page data according to different request objects. The second data acquisition function can specifically receive the object identifier of the request object and obtain the target page data corresponding to the request object based on the object identifier of the request object.
例如,在对用户的订单数据进行展示时,可展示请求用户对应的订单数据;相应可通过表格组件以及图表组件分别对订单数据进行展示,从而即实现了通过第二数据获取函数获取订单数据,并在表格组件以及图表组件处分别渲染订单数据。For example, when displaying the user's order data, the order data corresponding to the requesting user can be displayed; the order data can be displayed through the table component and the chart component respectively, thereby obtaining the order data through the second data acquisition function and rendering the order data in the table component and the chart component respectively.
从而在目标配置信息表征页面数据访问权限的情况下,可基于页面数据访问权限对应的第二数据获取函数,获取目标页面数据;在基于目标配置信息对属性表达式进行赋值,从而实现了属性表达式复用在对表征页面数据访问权限的属性进行配置的场景下的应用,提高了对表征页面数据访问权限的属性的配置效率。Therefore, when the target configuration information represents the access rights to page data, the target page data can be obtained based on the second data acquisition function corresponding to the page data access rights; the attribute expression is assigned based on the target configuration information, thereby realizing the reuse of attribute expressions in the scenario of configuring attributes representing the access rights to page data, thereby improving the configuration efficiency of the attributes representing the access rights to page data.
属性配置指令可基于配置指令触发控件进行触发,每个属性配置组件均具有相应的配置指令触发控件,一般情况下,可对属性配置组件的配置指令触发控件进行隐藏,在需要进行属性配置时进行展示;从而本实施例提供了一种属性配置指令生成方法,该方法可包括:The property configuration instruction can be triggered based on the configuration instruction trigger control. Each property configuration component has a corresponding configuration instruction trigger control. Generally, the configuration instruction trigger control of the property configuration component can be hidden and displayed when property configuration is required. Therefore, this embodiment provides a method for generating a property configuration instruction, which may include:
在检测到针对所述任一属性配置组件的触发操作的情况下,在所述任一属性配置组件对应的展示区域中展示配置指令触发控件;In the case where a trigger operation for any of the attribute configuration components is detected, displaying a configuration instruction trigger control in a display area corresponding to any of the attribute configuration components;
响应于基于所述配置指令触发控件的触控操作,生成对所述任一属性配置组件对应的所述属性配置指令。In response to a touch operation of a control triggered by the configuration instruction, the property configuration instruction corresponding to any one of the property configuration components is generated.
针对所述任一属性配置组件的触发操作可包括鼠标指针位于任一属性配置组件所属的组件区域且停留时长大于预设时长,或选中了任一属性配置组件等操作,则确定存在对该属性配置组件的配置意图,从而可展示该属性配置组件对应的配置指令触发控件;在响应基于配置指令触发控件的触控操作的情况下,即可生成针对该属性配置组件的属性配置指令。The trigger operation for any of the property configuration components may include the mouse pointer being located in the component area to which any of the property configuration components belongs and staying there for longer than a preset time, or any of the property configuration components being selected, etc., then it is determined that there is a configuration intention for the property configuration component, so that the configuration instruction trigger control corresponding to the property configuration component can be displayed; in response to a touch operation based on the configuration instruction trigger control, a property configuration instruction for the property configuration component can be generated.
请参阅图9,其中图9(a)展示的是属性配置组件没有被触发时的示意图,其中隐藏了配置指令触发控件;图9(b)展示的是属性配置组件被触发时的示意图,其中展示了在属性配置组件对应的展示区域中展示配置指令触发控件。Please refer to Figure 9, wherein Figure 9(a) shows a schematic diagram when the property configuration component is not triggered, in which the configuration instruction trigger control is hidden; Figure 9(b) shows a schematic diagram when the property configuration component is triggered, in which the configuration instruction trigger control is displayed in the display area corresponding to the property configuration component.
从而在存在对属性配置组件的配置意图的情况下,对该属性配置组件的配置指令触发控件进行展示,从而避免了对配置指令触发控件的误触发,提高对属性配置组件的配置效率以及配置准确性。Therefore, when there is a configuration intention for a property configuration component, the configuration instruction trigger control of the property configuration component is displayed, thereby avoiding false triggering of the configuration instruction trigger control and improving the configuration efficiency and configuration accuracy of the property configuration component.
在对目标功能组件的属性配置组件进行配置之后,可相应生成应用页面的页面信息;具体请参阅图10,其示出了一种应用页面的页面信息生成方法,该方法可包括:After configuring the property configuration component of the target functional component, the page information of the application page may be generated accordingly; please refer to FIG. 10 for details, which shows a method for generating the page information of the application page, and the method may include:
S1010.基于所述已配置的属性配置组件,生成配置组件列表。S1010. Generate a configuration component list based on the configured attribute configuration components.
已配置的属性配置组件也即属性配置信息有更新的组件,基于已配置的属性组件生成配置组件列表,即将零散的已配置的属性配置组件组合在一起,便于后续进行统一处理。The configured attribute configuration components are components whose attribute configuration information has been updated. A configuration component list is generated based on the configured attribute components, that is, scattered configured attribute configuration components are combined together to facilitate subsequent unified processing.
在对每个功能组件进行开发时,可预先设置待开发功能组件的可动态配置的属性,对于每个可动态配置的属性,可相应生成属性配置组件,从而在基于已开发完成的功能组件进行页面开发时,可基于功能组件对应的属性配置组件对功能组件进行属性动态配置。When developing each functional component, the dynamically configurable properties of the functional component to be developed can be set in advance. For each dynamically configurable property, a property configuration component can be generated accordingly. Therefore, when developing a page based on the developed functional component, the properties of the functional component can be dynamically configured based on the property configuration component corresponding to the functional component.
请参阅图11,其示出了功能组件的属性与属性配置组件之间的对应关系示意图,不同开放属性可使用相同的属性小组件渲染;功能组件要能够实现数据动态展示,就需要开放出若干属性,而这些属性都由属性配置组件来渲染,最终会形成一个配置组件列表,这个配置组件列表就是功能组件的入参,而属性配置组件值,就可以设置为属性表达式。Please refer to Figure 11, which shows a schematic diagram of the correspondence between the attributes of the functional component and the attribute configuration component. Different open attributes can be rendered using the same attribute widget; for the functional component to be able to realize dynamic data display, it is necessary to open up several attributes, and these attributes are rendered by the attribute configuration component, and finally a configuration component list will be formed. This configuration component list is the input parameter of the functional component, and the attribute configuration component value can be set as the attribute expression.
S1020.基于所述配置组件列表作对所述目标功能组件进行更新,得到更新后的目标功能组件。S1020. Update the target functional component based on the configuration component list to obtain an updated target functional component.
属性配置组件的属性修改会同步到功能组件中,即属性配置组件的属性修改后,会通过this.$emit(“change”,data)发送出去,而功能组件检测到属性变化时,会进行功能组件更新。在没有对目标功能组件进行更新之前,目标功能组件可能对应一些模板数据或者默认数据,从而在检测到有配置数据的情况下,可基于配置数据进行相应的更新。The property modification of the property configuration component will be synchronized to the function component, that is, after the property of the property configuration component is modified, it will be sent out through this.$emit("change", data), and when the function component detects the property change, it will update the function component. Before the target function component is updated, the target function component may correspond to some template data or default data, so when the configuration data is detected, it can be updated accordingly based on the configuration data.
目前是单向数据通信,即属性配置组件的属性修改会传导到功能组件,作为功能组件的参数传入,然后功能组件接收到了这些变化数据后,会调用公共处理方法对属性进行处理和转化,其具体的流向图如图12所示。Currently, data communication is one-way, that is, the property modification of the property configuration component will be transmitted to the functional component and passed in as the parameter of the functional component. Then, after the functional component receives these change data, it will call the public processing method to process and transform the properties. The specific flow diagram is shown in Figure 12.
S1030.基于所述更新后的目标功能组件对页面描述信息进行更新,得到所述应用页面的页面信息。S1030. Update the page description information based on the updated target functional component to obtain page information of the application page.
在目标功能组件更新之后,相应的页面描述信息也会进行相应的更新,得到更新后的页面数据。After the target functional component is updated, the corresponding page description information will also be updated accordingly to obtain updated page data.
从而在对功能组件的属性进行配置之后,及时将配置的属性信息发送给目标功能组件,以便于目标功能组件进行相应的更新,进而实现对应用页面的页面信息的更新;从而提高页面信息更新的及时性。Therefore, after configuring the attributes of the functional component, the configured attribute information is sent to the target functional component in a timely manner, so that the target functional component can be updated accordingly, thereby realizing the update of the page information of the application page; thereby improving the timeliness of the page information update.
下面以应用编排为例说明本实施例的具体实施流程,应用编排有两个状态:设计态和运行态,设计态可以理解为可视化的模拟传统的编码,即让产品经理或运营人员在设计态下通过可视化的方式编写一个页面。比如通过拖拉一个功能模块完成页面静态的展示,然后通过配置这个功能模块开放的属性达到动态渲染数据的目的。The following uses application orchestration as an example to illustrate the specific implementation process of this embodiment. Application orchestration has two states: design state and running state. The design state can be understood as a visual simulation of traditional coding, that is, allowing product managers or operators to write a page in a visual way in the design state. For example, by dragging a function module to complete the static display of the page, and then by configuring the open properties of this function module to achieve the purpose of dynamic rendering of data.
具体实施流程可包括:The specific implementation process may include:
1.在创建平台上创建应用,展示应用创建页面,填写应用名称等应用相关信息。1. Create an application on the creation platform, display the application creation page, and fill in application-related information such as the application name.
2.触发应用创建页面中的应用页面创建控件,展示应用编辑页面。如图3所示,应用编辑页面包括候选功能组件展示区域以及页面编辑区域,所述候选功能组件展示区域包括至少一个候选功能组件的组件标识。2. Trigger the application page creation control in the application creation page to display the application editing page. As shown in FIG3 , the application editing page includes a candidate functional component display area and a page editing area, and the candidate functional component display area includes a component identifier of at least one candidate functional component.
3.从候选功能组件展示区域中拖拽表格组件,在页面编辑区域展示表格组件,以及表格组件对应的属性配置组件。3. Drag the table component from the candidate functional component display area, and display the table component and the corresponding property configuration component of the table component in the page editing area.
4.对表格组件的数据源属性进行配置,具体可选择一个接口作为数据源,并将该接口赋值给属性表达式,基于已赋值的属性表达式配置数据源属性配置组件。4. Configure the data source properties of the table component. Specifically, you can select an interface as the data source and assign the interface to the attribute expression. Configure the data source property configuration component based on the assigned attribute expression.
先是拖入一个表格组件作为静态展示,然后通过这个表格组件开放出来的属性,设置它相应的动态数据,比如这里设置数据源属性为一个接口,则这个数据源属性最终会把接口返回的数据结构及调用函数传入到功能组件,功能组件根据数据结构展示表头,通过调用函数获取数据渲染表格行数据,解决列表动态数据来源问题。数据源属性也可设置为一个模型,模型其实最终就是调用一个后台接口,在数据源配置为模型时,可以设置当前表格组件为是否带单行或是多选菜单,这类似于传统开发在代码里写出当前表格的形态。First, drag in a table component as a static display, and then set its corresponding dynamic data through the properties exposed by this table component. For example, if the data source property is set as an interface, the data source property will eventually pass the data structure and call function returned by the interface to the functional component. The functional component displays the table header according to the data structure, and obtains data by calling the function to render the table row data, solving the problem of the source of dynamic data in the list. The data source property can also be set to a model. In fact, the model ultimately calls a background interface. When the data source is configured as a model, you can set the current table component to have a single-row or multi-select menu, which is similar to the traditional development of writing the current table form in the code.
5.从候选功能组件展示区域中拖拽图表组件,在页面编辑区域展示图表组件,以及图表组件对应的属性配置组件。5. Drag the chart component from the candidate functional component display area, and display the chart component and the property configuration component corresponding to the chart component in the page editing area.
6.对图表组件的数据源属性进行配置,基于已赋值的属性表达式配置数据源属性配置组件。6. Configure the data source properties of the chart component and configure the data source property configuration component based on the assigned property expression.
7.在运行态,在应用页面中展示表格组件、图表组件处渲染基于接口获取的数据。7. In the running state, the table component and chart component are displayed in the application page and the data obtained based on the interface is rendered.
所有的功能组件在由开发者开发的时候自行决定需要开放出什么属性出来,这些属性是否支持动态设置,对于功能组件开发者而言就是增加一个配置项,而这些配置项抽象为了属性配置组件,一个功能组件可以开放出多个属性,即配置多个属性配置组件来渲染,然后供产品经理或运营人员在组装页面时可视化的配置这些属性,通过对这些属性配置变量/表达式的方式,从而实现这个功能组件动态展示数据的能力。When developing all functional components, developers decide for themselves what attributes to expose and whether these attributes support dynamic settings. For functional component developers, this is to add a configuration item, and these configuration items are abstracted into attribute configuration components. A functional component can expose multiple attributes, that is, configure multiple attribute configuration components for rendering, and then allow product managers or operations personnel to visually configure these attributes when assembling pages. By configuring variables/expressions for these attributes, the functional component can dynamically display data.
目前支持的属性小组件配置有:Currently supported property widget configurations are:
属性小组件标识:add-act(动作添加弹窗);add-button(按钮添加);bind-label-value(字段绑定);button-actLists(按钮列表);button-ico(按钮ico);color-column(列颜色);data-source(数据源);menu-setting(导航设置);tree-listid(树字段绑定);tab-list(页卡列表)。Property widget identifier: add-act (action add pop-up window); add-button (button add); bind-label-value (field binding); button-actLists (button list); button-ico (button ico); color-column (column color); data-source (data source); menu-setting (navigation setting); tree-listid (tree field binding); tab-list (page card list).
对于功能组件开发属性配置协议的实施步骤可包括:The implementation steps for the property configuration protocol for functional component development may include:
1.在指定文件夹创建一个配置文件;1. Create a configuration file in the specified folder;
2.设置好配置标识及中文名;2. Set the configuration logo and Chinese name;
3.设置好需要开放的属性propsSchema;3. Set the propsSchema properties that need to be opened;
4.设置好这个功能组件的图标ICON地址;4. Set the icon address of this functional component;
5.保存;5. Save;
6.然后编写功能组件/模块主体文件,在主体文件里导入配置;6. Then write the main file of the functional component/module and import the configuration in the main file;
7.编写这个功能组件/模块维护的具体代码逻辑。7. Write the specific code logic maintained by this functional component/module.
其具体代码实现可参阅图13。The specific code implementation can be found in Figure 13.
对于属性配置组件定义协议的实施步骤可包括:The implementation steps for defining the protocol for the property configuration component may include:
1.在指定文件夹创建meta.js配置文件;1. Create a meta.js configuration file in the specified folder;
2.配置属性配置组件的标识;2. Configuration properties configure the component's identification;
3.配置这个属性配置组件相应可输入的属性propsSchema;3. Configure the corresponding input property propsSchema of this property configuration component;
4.保存完成配置;4. Save and complete the configuration;
5.开始实现属性配置组件的主体代码;5. Start to implement the main code of the property configuration component;
6.导入meta.js文件。6. Import the meta.js file.
其具体实现代码可参阅图14。The specific implementation code can be found in Figure 14.
本申请将功能模块/组件上展示的数据可通过属性配置组件进行可视化配置,便于让产品经理或是运营人员操作和理解,降低使用门槛,让非专业人员也可以配置出动态数据的页面;把功能模块/组件需要开放出来的属性抽象成属性配置组件,提升功能模块/组件开发者的开发效率,统一了页面设计器这个产品的操作交互和展示形态。This application allows the data displayed on the functional modules/components to be visually configured through the attribute configuration component, which is convenient for product managers or operation personnel to operate and understand, lowers the usage threshold, and allows non-professionals to configure pages with dynamic data; the attributes that need to be opened by the functional modules/components are abstracted into attribute configuration components, which improves the development efficiency of functional module/component developers and unifies the operational interaction and display form of the page designer product.
本实施例还提供了一种应用页面处理装置,请参阅图15,该装置可包括:This embodiment also provides an application page processing device, see FIG. 15 , the device may include:
第一响应模块1510,用于响应于应用页面编辑指令,展示应用编辑页面;所述应用编辑页面包括候选功能组件展示区域以及页面编辑区域,所述候选功能组件展示区域包括至少一个候选功能组件的组件标识;The first response module 1510 is used to display an application editing page in response to an application page editing instruction; the application editing page includes a candidate functional component display area and a page editing area, and the candidate functional component display area includes a component identifier of at least one candidate functional component;
第二响应模块1520,用于响应于基于任一组件标识触发的功能组件选择指令,在所述页面编辑区域展示被选中的目标功能组件,以及所述目标功能组件对应的至少一个属性配置组件;The second response module 1520 is used to display the selected target function component and at least one property configuration component corresponding to the target function component in the page editing area in response to the function component selection instruction triggered based on any component identifier;
第三响应模块1530,用于响应于基于任一属性配置组件触发的属性配置指令,基于属性表达式对所述任一属性配置组件进行配置,得到已配置的属性配置组件;每个属性表达式对应多个目标功能组件的属性配置组件;The third response module 1530 is used to respond to the attribute configuration instruction triggered by any attribute configuration component, configure any attribute configuration component based on the attribute expression, and obtain the configured attribute configuration component; each attribute expression corresponds to the attribute configuration components of multiple target functional components;
页面信息生成模块1540,用于基于所述目标功能组件以及所述已配置的属性配置组件,生成应用页面的页面信息。The page information generating module 1540 is used to generate page information of an application page based on the target function component and the configured property configuration component.
进一步地,所述第二响应模块1520包括:Further, the second response module 1520 includes:
第一展示模块,用于响应于基于所述任一组件标识触发的功能组件选择指令,在所述页面编辑区域展示页面区域以及组件属性编辑区域;A first display module, configured to display a page area and a component attribute editing area in the page editing area in response to a function component selection instruction triggered based on any one of the component identifiers;
第二展示模块,用于在所述页面区域展示所述目标功能组件;A second display module, used to display the target functional component in the page area;
第三展示模块,用于在所述组件属性编辑区域展示所述至少一个属性配置组件。The third display module is used to display the at least one property configuration component in the component property editing area.
进一步地,所述装置还包括:Furthermore, the device also includes:
赋值模块,用于将目标配置信息赋值给预定义的属性表达式,得到已赋值的目标属性表达式;An assignment module, used to assign target configuration information to a predefined attribute expression to obtain an assigned target attribute expression;
所述第三响应模块1530包括:The third response module 1530 includes:
第一配置模块,用于在需要将所述任一属性配置组件的属性配置为所述目标配置信息的情况下,响应于基于所述任一属性配置组件触发的所述属性配置指令,基于所述目标属性表达式对所述任一属性配置组件进行配置,得到所述已配置的属性配置组件。The first configuration module is used to configure any attribute configuration component based on the target attribute expression in response to the attribute configuration instruction triggered based on any attribute configuration component when it is necessary to configure the attribute of any attribute configuration component as the target configuration information, so as to obtain the configured attribute configuration component.
进一步地,第一配置模块包括:Furthermore, the first configuration module includes:
第四展示模块,用于响应于所述属性配置指令,展示属性配置窗口;所述属性配置窗口包括表达式展示区域以及候选表达式列表;所述候选表达式列表包括至少一个已赋值的属性表达式;A fourth display module, for displaying an attribute configuration window in response to the attribute configuration instruction; the attribute configuration window includes an expression display area and a candidate expression list; the candidate expression list includes at least one attribute expression that has been assigned a value;
第五展示模块,用于响应于针对所述候选表达式列表中的所述目标属性表达式的选择指令,在所述表达式展示区域展示所述目标属性表达式;A fifth display module, configured to display the target attribute expression in the expression display area in response to a selection instruction for the target attribute expression in the candidate expression list;
第二配置模块,用于基于所述目标属性表达式对所述任一属性配置组件进行配置,得到所述已配置的属性配置组件。The second configuration module is used to configure any of the attribute configuration components based on the target attribute expression to obtain the configured attribute configuration component.
进一步地,所述装置还包括:Furthermore, the device also includes:
第一获取模块,用于响应于应用页面展示指令,在所述应用页面的页面信息表征多个目标功能组件的属性配置组件是基于所述目标属性表达式进行配置的情况下,基于所述目标属性表达式对应的所述目标配置信息,获取目标页面数据;A first acquisition module is used for, in response to an application page display instruction, acquiring target page data based on the target configuration information corresponding to the target attribute expression when the attribute configuration components of the multiple target function components represented in the page information of the application page are configured based on the target attribute expression;
渲染模块,用于在所述多个目标功能组件处分别渲染所述目标页面数据。A rendering module is used to render the target page data respectively at the multiple target functional components.
进一步地,所述目标配置信息表征页面数据获取路径;所述应用页面的页面信息包括与所述页面数据获取路径对应的第一数据获取函数;Further, the target configuration information represents a page data acquisition path; the page information of the application page includes a first data acquisition function corresponding to the page data acquisition path;
所述第一获取模块,用于基于所述第一数据获取函数,获取所述目标页面数据。The first acquisition module is used to acquire the target page data based on the first data acquisition function.
进一步地,所述目标配置信息表征页面数据访问权限;所述应用页面的页面信息包括与所述页面数据访问权限对应的第二数据获取函数;Further, the target configuration information represents the page data access permission; the page information of the application page includes a second data acquisition function corresponding to the page data access permission;
所述第一获取模块,用于基于请求对象的对象标识以及所述第二数据获取函数,获取所述目标页面数据。The first acquisition module is used to acquire the target page data based on the object identifier of the request object and the second data acquisition function.
进一步地,所述装置还包括:Furthermore, the device also includes:
第六展示模块,用于在检测到针对所述任一属性配置组件的触发操作的情况下,在所述任一属性配置组件对应的展示区域中展示配置指令触发控件;A sixth display module, configured to display a configuration instruction trigger control in a display area corresponding to any of the attribute configuration components when a trigger operation for the any of the attribute configuration components is detected;
指令生成模块,用于响应于基于所述配置指令触发控件的触控操作,生成对所述任一属性配置组件对应的所述属性配置指令。The instruction generation module is used to generate the property configuration instruction corresponding to any property configuration component in response to the touch operation of the control triggered by the configuration instruction.
进一步地,页面信息生成模块1440包括:Furthermore, the page information generating module 1440 includes:
列表生成模块,用于基于所述已配置的属性配置组件,生成配置组件列表;A list generation module, used to generate a configuration component list based on the configured attribute configuration components;
第一更新模块,用于基于所述配置组件列表作对所述目标功能组件进行更新,得到更新后的目标功能组件;A first updating module, configured to update the target functional component based on the configuration component list to obtain an updated target functional component;
第二更新模块,用于基于所述更新后的目标功能组件对页面描述信息进行更新,得到所述应用页面的页面信息。The second updating module is used to update the page description information based on the updated target functional component to obtain the page information of the application page.
上述实施例中提供的装置可执行本申请任意实施例所提供方法,具备执行该方法相应的功能模块和有益效果。未在上述实施例中详尽描述的技术细节,可参见本申请任意实施例所提供的方法。The device provided in the above embodiment can execute the method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiment, please refer to the method provided in any embodiment of the present application.
本实施例还提供了一种计算机可读存储介质,所述存储介质中存储有至少一条指令或至少一段程序,所述至少一条指令或所述至少一段程序由处理器加载并执行如本实施例上述任一方法。This embodiment further provides a computer-readable storage medium, in which at least one instruction or at least one program is stored. The at least one instruction or at least one program is loaded by a processor and executed as any of the above methods of this embodiment.
根据本申请的一个方面,提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述任一方法。According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs any of the above methods.
图16是根据一示例性实施例示出的一种用于应用页面处理的电子设备的框图,该电子设备可以是终端,其内部结构图可以如图16所示。该电子设备包括通过系统总线连接的处理器、存储器、网络接口、显示屏和输入装置。其中,该电子设备的处理器用于提供计算和控制能力。该电子设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该电子设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种应用页面处理方法。该电子设备的显示屏可以是液晶显示屏或者电子墨水显示屏,该电子设备的输入装置可以是显示屏上覆盖的触摸层,也可以是电子设备外壳上设置的按键、轨迹球或触控板,还可以是外接的键盘、触控板或鼠标等。FIG16 is a block diagram of an electronic device for application page processing according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be shown in FIG16. The electronic device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an application page processing method is implemented. The display screen of the electronic device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
图17是根据一示例性实施例示出的一种用于应用页面处理的电子设备的框图,该电子设备可以是服务器,其内部结构图可以如图17所示。该电子设备包括通过系统总线连接的处理器、存储器和网络接口。其中,该电子设备的处理器用于提供计算和控制能力。该电子设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统和计算机程序。该内存储器为非易失性存储介质中的操作系统和计算机程序的运行提供环境。该电子设备的网络接口用于与外部的终端通过网络连接通信。该计算机程序被处理器执行时以实现一种应用页面处理方法。Figure 17 is a block diagram of an electronic device for application page processing according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as shown in Figure 17. The electronic device includes a processor, a memory, and a network interface connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an application page processing method is implemented.
本领域技术人员可以理解,图16和图17中示出的结构,仅仅是与本公开方案相关的部分结构的框图,并不构成对本公开方案所应用于其上的电子设备的限定,具体的电子设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art will understand that the structures shown in FIGS. 16 and 17 are merely block diagrams of partial structures related to the scheme of the present disclosure, and do not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than shown in the figures, or combine certain components, or have a different arrangement of components.
本说明书提供了如实施例或流程图所述的方法操作步骤,但基于常规或者无创造性的劳动可以包括更多或者更少的操作步骤。实施例中列举的步骤和顺序仅仅为众多步骤执行顺序中的一种方式,不代表唯一的执行顺序。在实际中的系统或中断产品执行时,可以按照实施例或者附图所示的方法顺序执行或者并行执行(例如并行处理器或者多线程处理的环境)。This specification provides method operation steps as described in the embodiments or flow charts, but more or fewer operation steps may be included based on conventional or non-creative labor. The steps and sequence listed in the embodiments are only one way of executing the sequence of many steps and do not represent the only execution sequence. When the actual system or interrupt product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiments or the drawings (for example, in a parallel processor or multi-threaded processing environment).
本实施例中所示出的结构,仅仅是与本申请方案相关的部分结构,并不构成对本申请方案所应用于其上的设备的限定,具体的设备可以包括比示出的更多或更少的部件,或者组合某些部件,或者具有不同的部件的布置。应当理解到,本实施例中所揭露的方法、装置等,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分仅仅为一种逻辑功能的划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元模块的间接耦合或通信连接。The structure shown in this embodiment is only a partial structure related to the scheme of the present application, and does not constitute a limitation on the device to which the scheme of the present application is applied. The specific device may include more or fewer components than shown, or combine certain components, or have different arrangements of components. It should be understood that the method, device, etc. disclosed in this embodiment can be implemented in other ways. For example, the device embodiment described above is only schematic. For example, the division of the modules is only a division of a logical function. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or unit modules.
基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,RandomAccessMemory)、磁碟或者光盘等各种可以存储程序代码的介质。Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., various media that can store program codes.
本领域技术人员还可以进一步意识到,结合本说明书所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但这种实现不应认为超出本申请的范围。Those skilled in the art may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in this specification can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims (12)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310289565.5A CN118689465A (en) | 2023-03-23 | 2023-03-23 | Application page processing method, device, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310289565.5A CN118689465A (en) | 2023-03-23 | 2023-03-23 | Application page processing method, device, electronic device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118689465A true CN118689465A (en) | 2024-09-24 |
Family
ID=92763321
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310289565.5A Pending CN118689465A (en) | 2023-03-23 | 2023-03-23 | Application page processing method, device, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118689465A (en) |
-
2023
- 2023-03-23 CN CN202310289565.5A patent/CN118689465A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI808393B (en) | Page processing method, device, apparatus and storage medium | |
US11044949B2 (en) | Systems and methods for dynamic delivery of web content | |
CN111078315B (en) | Microservice arranging and executing method and system, architecture, equipment and storage medium | |
TW202113586A (en) | Method and device for generating applet | |
CN109471626B (en) | Page logic structure, page generation method, page data processing method and device | |
US20080320025A1 (en) | Gathering and using awareness information | |
CN114064024B (en) | Method, apparatus, device, storage medium and program product for developing micro-application | |
CN105955888A (en) | Page debugging and previewing method and system | |
WO2021217661A1 (en) | Method and platform for implementing graphical code-free software development, computer device and storage medium | |
CN115712413A (en) | Low code development method, device, equipment and storage medium | |
JP2020004280A (en) | Display control apparatus, display control method and display control program | |
CN113407284A (en) | Navigation interface generation method and device, storage medium and electronic equipment | |
WO2019052115A1 (en) | Application control style customization method and apparatus, and computer-readable storage medium | |
WO2024165011A1 (en) | Plug-in adding method and apparatus, electronic device, and storage medium | |
CN113918194B (en) | A method, device, electronic device and storage medium for displaying page components | |
WO2023108974A1 (en) | Display method and apparatus, electronic device, storage medium, and computer program product | |
WO2025044582A1 (en) | Page management method and apparatus for virtual game, electronic device, and storage medium | |
CN109766093B (en) | Method and device for collaborative real-time editing, electronic equipment and storage medium | |
CN114675921B (en) | A method, device, electronic device and storage medium for customizing interface | |
CN118689465A (en) | Application page processing method, device, electronic device and storage medium | |
US20150277723A1 (en) | Exporting a component of a currently displayed user interface to a development system | |
CN115617441A (en) | Method and device for binding model and primitive, storage medium and computer equipment | |
CN115618136A (en) | Method and device for realizing step bar, electronic equipment and storage medium | |
CN112988139A (en) | Method and device for developing event processing file | |
CN110688108A (en) | Model generation method and device and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |