WO2019134309A1 - Page display method and device, electronic terminal, and computer storage medium - Google Patents

Page display method and device, electronic terminal, and computer storage medium Download PDF

Info

Publication number
WO2019134309A1
WO2019134309A1 PCT/CN2018/085155 CN2018085155W WO2019134309A1 WO 2019134309 A1 WO2019134309 A1 WO 2019134309A1 CN 2018085155 W CN2018085155 W CN 2018085155W WO 2019134309 A1 WO2019134309 A1 WO 2019134309A1
Authority
WO
WIPO (PCT)
Prior art keywords
panel
information
target
page
size
Prior art date
Application number
PCT/CN2018/085155
Other languages
French (fr)
Chinese (zh)
Inventor
黄诚
陈少杰
张文明
Original Assignee
武汉斗鱼网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Publication of WO2019134309A1 publication Critical patent/WO2019134309A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a page display method, apparatus, electronic terminal, and computer storage medium.
  • the purpose of the present application includes providing a page display method, apparatus, electronic terminal, and computer storage medium to improve at least one of the above problems.
  • the present application provides a page display method, which is applied to an electronic terminal, the electronic terminal includes a React-based grid layout component, and the grid layout component is configured to display a panel page including at least one panel.
  • the methods include:
  • the target location information and the target size information of the target panel after the preset operation is performed are delivered to the grid layout component;
  • the grid layout component calculates target layout information of the panel page according to the target location information and the target size information
  • the grid layout component calculates the target layout information of the grid layout component according to the target location information and the target size information, including:
  • the grid layout component saves the target location information and the target size information into the target layout information
  • the location information and the size information of the panel are saved in the target layout information
  • the position information of the panel is adjusted until there is no overlapping area between the panel and the target panel, and the current position information and size information of the panel are saved in the target layout information.
  • the electronic terminal is in communication with the server, and the method further includes:
  • the grid layout component receives a panel page sent by the server, and traverses each panel in the panel page to determine whether location information and size information are present in the panel;
  • the panel is displayed according to the location information and the size information
  • the panel is displayed according to the default location information and size information.
  • the step of determining whether location information and size information is present in the panel includes:
  • the location information includes coordinate information of the panel in the grid layout component, the size information including a width and a height of the panel.
  • the method further includes:
  • the preset initialization information is passed to the grid layout component, and the grid layout component is initialized to adapt the panel page to the size of the interface where the panel page is located.
  • the grid layout component is a responsive grid layout component.
  • the electronic terminal pre-stores layout information corresponding to the size of the interface where the panel page is located; the method further includes:
  • the method further includes:
  • the preset operation includes a drag operation or a zoom operation.
  • the embodiment of the present application further provides a page display device, which is applied to an electronic terminal, the electronic terminal includes a React-based grid layout component, and the grid layout component is configured to display a panel page including at least one panel, the device include:
  • the operation response module is configured to, in response to the preset operation of the target panel in the panel page, transmit the target location information and the target size information of the target panel after the preset operation is performed to the grid layout component;
  • a layout information calculation module configured to control the grid layout component to calculate target layout information of the panel page according to the target location information and the target size information;
  • a display module configured to update a state of the panel page according to the target layout information, so that the grid layout component re-renders the panel page, so that the target layout information is used in the panel page.
  • Each panel is displayed.
  • the layout information calculation module is configured to:
  • Controlling the grid layout component to save the target location information and the target size information into the target layout information
  • the location information and the size information of the panel are saved in the target layout information
  • the position information of the panel is adjusted until there is no overlapping area between the panel and the target panel, and the current position information and size information of the panel are saved in the target layout information.
  • the electronic terminal is in communication with the server, and the device further includes:
  • a judging module configured to receive the panel page sent by the server, and traverse each panel in the panel page to determine whether location information and size information exist in the panel;
  • a first display module configured to display the panel according to the location information and the size information when location information and size information are present in the panel
  • the second display module is configured to display the panel according to the default location information and the size information when the location information and the size information are not present in the panel.
  • the determining module is configured to: determine whether the panel has a target member
  • the location information includes coordinate information of the panel in the grid layout component, the size information including a width and a height of the panel.
  • the device further includes:
  • an initialization module configured to: pass pre-set initialization information to the grid layout component, and initialize the grid layout component to adapt the panel page to a size of an interface of the panel page.
  • the grid layout component is a responsive grid layout component
  • the preset operation includes a drag operation or a zoom operation.
  • the electronic terminal pre-stores layout information corresponding to the size of the interface where the panel page is located; the device further includes:
  • a size obtaining module configured to acquire a size of the changed interface after detecting that a size of an interface of the panel page is changed
  • the redrawing module is configured to find layout information corresponding to the changed size, and redraw the panel page according to the layout information.
  • the device further includes:
  • the relationship establishing module is configured to pre-establish a correspondence between the size of the interface where the panel page is located and the layout information.
  • the application further provides an electronic terminal, the electronic terminal includes a memory, a processor, a React-based grid layout component, and a page display device provided by the embodiment of the present application; the grid layout component is configured to display at least one panel
  • the page display device is stored in the memory and executed by the processor.
  • the present application also provides a computer readable storage medium having stored thereon a computer program that, when executed, implements the page display method of any of the foregoing.
  • Embodiments of the present application provide a page display method, apparatus, electronic terminal, and computer storage medium.
  • the electronic terminal includes a React-based grid layout component for displaying a panel page including at least one panel.
  • the electronic terminal transmits the target position information and the target size information of the target panel after the preset operation is performed to the grid layout component by responding to the preset operation of the target panel in the panel page.
  • the grid layout component calculates the target layout information of the panel page according to the target location information and the target size information, and updates the state of the panel page according to the target layout information, so that the grid layout component repaints the panel page, thereby following the target layout information. Showcase each panel in the panel page. In this way, the layout of each panel in the panel page can be updated in real time according to the operation of the panel by the user, and the webpage layout adjustment method is more convenient and convenient, thereby effectively improving the user experience.
  • FIG. 1 is a block diagram of an electronic terminal provided by the present application.
  • FIG. 2 is a schematic flowchart of a page display method provided by the present application.
  • FIG. 3 is a flowchart of still another page display method provided by the present application.
  • FIG. 4 is a functional block diagram of a page display device provided by the present application.
  • FIG. 5 is a functional block diagram of still another page display device provided by the present application.
  • Icons 100-electronic terminal; 110-memory; 120-processor-130-display unit; 200-page display device; 210-operation response module; 220-layout information calculation module; 230-display module.
  • FIG. 1 it is a block diagram of an electronic terminal 100 provided by the present application.
  • the electronic terminal 100 can be, but not limited to, a server, a personal computer (PC), a tablet computer, and a personal digital assistant (personal computer). Digital assistant, PDA), mobile Internet device (MID), smart phone, etc.
  • PC personal computer
  • PDA personal digital assistant
  • MID mobile Internet device
  • smart phone etc.
  • the electronic terminal 100 includes a page display device 200, a memory 110, a processor 120, and a display unit 130.
  • the components of the memory 110, the processor 120, and the display unit 130 are electrically connected directly or indirectly to implement data transmission or interaction.
  • the components can be electrically connected to one another via one or more communication buses or signal lines.
  • the page display apparatus 200 includes at least one software function module that can be stored in the memory 110 in an operating system (OS) of the electronic terminal 100 in the form of software or firmware.
  • the processor 120 is configured to execute an executable module stored in the memory 110, such as a software function module or a computer program in the page display device 200.
  • the memory 110 can be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like.
  • RAM random access memory
  • ROM read only memory
  • PROM programmable read-only memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electric Erasable Programmable Read-Only Memory
  • the processor 130 can be an integrated circuit chip with signal processing capabilities.
  • the processor 130 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processor (DSP), an application specific integrated circuit (ASIC) ), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the display unit 130 is configured to establish an interaction interface between the electronic terminal 100 and the user, or to display information to be displayed, such as a panel page in this embodiment.
  • FIG. 1 is merely illustrative, and the electronic terminal 100 may include more or less components than those shown in FIG. 1, or have a different configuration from that shown in FIG. 1.
  • the components shown in Figure 1 can be implemented in hardware, software, or a combination thereof.
  • FIG. 2 it is a schematic flowchart of a page display method provided by the present application, and the page display method is applied to the electronic terminal 100 shown in FIG. 1 .
  • the electronic terminal 100 includes a React-based grid layout component for displaying a panel page including at least one panel. The specific flow and steps of the page display method are described in detail below with reference to FIG. 2 .
  • Step S201 In response to the preset operation of the target panel in the panel page, the target location information and the target size information of the target panel after the preset operation is performed are delivered to the grid layout component.
  • a browser may be installed in the electronic terminal 100, and the electronic terminal 100 accesses the server through the browser, and acquires a page file sent by the server.
  • a panel page sent by a server including at least one panel a panel page refers to a page file including at least one panel.
  • the electronic terminal 100 is displayed by a React-based grid layout component (React-Grid-Layout).
  • React is a JavaScript library that can be used to create a web user interface. Specifically, React makes it easy to create interactive user interfaces that design a simple view of each state in the application. When data changes, React can efficiently update and correctly render components, building a Web that is easy to call and call. Component.
  • Grid Layout has the following main features: (1) can set the alignment of the components in the layout; such as setting the horizontal or vertical arrangement, or setting the alignment of left, right, center or bottom. (2) The number of rows and columns of the customizable grid layout (3) can be directly set to a component in a row (4) settable components span several rows or columns.
  • the electronic terminal 100 can also be in communication with the server.
  • the page display method can further include the following two main steps:
  • Step 1 The grid layout component receives the panel page sent by the server, and traverses each panel in the panel page to determine whether location information and size information exist in the panel.
  • the display of different devices has different resolutions
  • the layout of the panel page is implemented based on the React-Grid-Layout.
  • the necessary parameters need to be passed to the React-Grid-Layout component to initialize the panel page.
  • the size of the interface where the panel page is located matches. That is, before the step of displaying the panel, the page display method may further include: transmitting preset initialization information to the grid layout component, and initializing the grid layout component. In order to adapt the panel page to the size of the interface where the panel page is located.
  • the necessary parameters can be passed to the ResponsiveReactGridLayout class of the React-Grid-Layout component for initialization, thereby implementing a responsive layout.
  • ResponsiveReactGridLayout class of the React-Grid-Layout component for initialization, thereby implementing a responsive layout.
  • col represents the number of columns
  • rowHeight represents the height of the row.
  • the above code initializes a layout with a 12-column grid with a height of 50 pixels and an indefinite number of rows.
  • the above is only an example. In practical applications, the corresponding parameters can be flexibly set according to the number of rows and columns of the grid and the interface size.
  • Breakpoints and cols are pre-set initialization information for redrawing the entire layout when the browser's window size changes due to display device changes, so that the panel page matches the browser's current window.
  • ResponsiveReactGridLayout class is equivalent to a panel container, and each panel is equivalent to a container carrying the content therein.
  • step 1 whether the location information and the size information are present in the panel may be first whether the panel has a target member; if yes, determining location information and size information in the panel; wherein the location information Include coordinate information of the panel in the grid layout component, the size information including the width and height of the panel.
  • the image display method may further include the following steps:
  • the electronic terminal After detecting that the size of the interface where the panel page is located is changed, obtaining the changed size of the interface.
  • the electronic terminal has pre-stored layout information corresponding to the size of the interface where the panel page is located.
  • the size can be characterized by the pixel size.
  • the page display method provided by the present application further includes pre-establishing a correspondence between the size of the interface where the panel page is located and the layout information.
  • the panel page After initializing, the panel page can be displayed.
  • the server first sends the panel page to the browser and sends the panel page to the grid layout component through the program interface to the grid layout component.
  • the array There is a panel array in the panel page, the array has a length property, which can be used to determine the number of panels in the panel page.
  • each panel can be traversed to determine whether the panel has a grid member (that is, the aforementioned target member). If there is a grid member, it indicates that location information and size information exist in the panel, wherein the location information indicates that the panel is in the panel.
  • the coordinate information in the grid layout component the size information refers to the width and height of the panel.
  • the position and size information of the panel will be expressed as ⁇ x, y, w, h ⁇ .
  • (x, y) represents the coordinates of the panel in the grid layout component
  • w represents the width of the panel
  • h represents the height of the panel.
  • Step 2 When the location information and the size information are present in the panel, the panel is displayed according to the location information and the size information; when the location information and the size information are not present in the panel, the panel is displayed according to the default location information and the size information. .
  • all panels will include location information and size information; once location and size information is not present in one of the panels, there is no location information for all panels. And size information. Therefore, when there is location information and size information, the panel page is displayed by traversing all the panels. When there is no location information and size information, according to the default width and height, each panel is loaded in order from (0, 0), and each panel is traversed to realize the display of the panel page.
  • the location information and the size information may be directly copied to the data-grid attribute of the parent container where the panel is located.
  • the location information and the size information may be directly copied to the data-grid attribute of the parent container where the panel is located.
  • React-grid-Layout initializes rowPos and colPos to calculate the position information of the panel.
  • rowPos and colPos are the default number of rows and columns, indicating that the width of each panel defaults to rowPos grids, and the height defaults to colPos grids.
  • the user can drag or zoom any panel on the browser, and the preset operation may include a drag operation or a zoom operation, and the browser can use an existing monitoring method.
  • the preset operation is monitored, and the final position of the operated panel (ie, the target panel), that is, the target position information and the target size information of the target panel after the preset operation is performed, is determined according to the position of the mouse.
  • the position of the mouse can be calculated according to the position of the mouse, thereby calculating the new position information of the panel, that is, the target of the panel.
  • Location information the panel is the target panel.
  • the size of the panel does not change when the zoom operation does not occur.
  • the browser then passes the target location information and target size information to the grid layout component.
  • the browser also sends the identification information of the target panel to the grid layout component to inform the grid layout component which panel is operated.
  • the ResponsiveReactGridLayout After the grid layout component receives the target location information and the target size information, the ResponsiveReactGridLayout generates an event corresponding to the preset operation. For example, if the default action is a drag operation, the ResponsiveReactGridLayout will generate an onDragStop event; if the default action is a zoom operation, the ResponsiveReactGridLayout will generate an onResizeStop event.
  • the target location information and target size information may be included in a response function of the event.
  • Step S202 the grid layout component calculates target layout information of the panel page according to the target location information and the target size information.
  • step S202 can be implemented by a special modification information calculation function, which is calculated according to the parameter handleElementLayoutChange.
  • the electronic terminal 100 extracts the target location information and the target size information from the response function of the event and passes it to the handleElementLayoutChange parameter.
  • the grid layout component can implement step S202 by the following steps, which are specifically described as follows:
  • Step S301 the grid layout component saves the target location information and the target size information into the target layout information.
  • the target panel is directly directed to the target panel according to the target location information and the target size information. Show.
  • Step S302 determining, for each panel other than the target panel in the panel page, whether the panel and the target panel exist according to the location information, the size information, the target location information, and the target size information of the panel. Overlapping area. If no, step S303 is performed; if yes, step S304 is performed.
  • the target position information and the target size information of the target panel are the position information and the size information after the target panel is dragged or zoomed.
  • step S302 it can be determined whether each panel except the target panel in the panel page is There is an overlap area with the target panel that is being dragged or scaled.
  • Step S303 displaying the panel according to the original location information and size information of the panel.
  • Step S304 the position and/or size information of the panel is adjusted such that there is no overlapping area between the panel and the target panel that is dragged or scaled.
  • the panel may be moved according to the position information of the target panel until there is no overlapping area between the panel and the target panel, and if the panel does not exceed the panel page at this time
  • the interface displays the panel according to the current location information and the size information of the panel, and saves the current location information and size information of the panel to the target layout information. If the panel is beyond the interface of the panel page, you need to adjust the size information of the panel so that the panel does not exceed the interface of the panel page.
  • Step S203 Update the state of the panel page according to the target layout information, and cause the grid layout component to re-render the panel page, so as to view each of the panel pages according to the target layout information.
  • the panel is displayed.
  • the electronic terminal 100 maps the target layout information to the state mechanism of React. Specifically, the state of the panel page can be updated by calling the setState() method.
  • React once the state changes, the panel page is redrawn by the render() method, and the target layout information is updated to the layout of the panel page, that is, according to the target layout information, the panel page is Each panel is displayed.
  • the above-mentioned page display method provided by the present application enables the electronic terminal to update the layout of each panel in the panel page in real time according to the operation of the panel by the user, so that the webpage layout adjustment mode is more convenient and convenient, and the user experience is effectively improved.
  • FIG. 4 it is a functional block diagram of a page display device 200 provided by the present application.
  • the page display device 200 should be configured as the electronic terminal 100 shown in FIG. 1 .
  • the page display device 200 includes an operation response module 210, a layout information calculation module 220, and a presentation module 230.
  • the operation response module 210 is configured to, in response to the preset operation of the target panel in the panel page, transmit the target location information and the target size information of the target panel after the preset operation is performed to the grid layout component. .
  • the description about the operation response module 210 can be specifically referred to the detailed description of the step S201 shown in FIG. 2, that is, the step S201 can be performed by the operation response module 210.
  • the layout information calculation module 220 is configured to control the grid layout component to calculate target layout information of the panel page according to the target location information and the target size information.
  • the description about the layout information calculation module 220 can be specifically referred to the detailed description of the step S202 shown in FIG. 2, that is, the step S202 can be performed by the layout information calculation module 220.
  • the layout information calculation module 220 is further configured to:
  • Controlling the grid layout component to save the target location information and the target size information into the target layout information
  • the position information and the size information of the panel are saved in the target layout information; if there is an overlapping area, the position information of the panel is adjusted until the panel and the target panel do not exist. Overlap the area, and then save the current position information and size information of the panel to the target layout information.
  • the display module 230 is configured to update the state of the panel page according to the target layout information, so that the grid layout component re-renders the panel page, so that the target layout information is in the panel page according to the target layout information. Each panel is displayed.
  • the description about the display module 230 can be specifically referred to the detailed description of the step S203 shown in FIG. 2, that is, the step S203 can be performed by the display module 230.
  • the apparatus further includes: an initialization module 310 configured to transmit preset initialization information to the network.
  • an initialization module 310 configured to transmit preset initialization information to the network.
  • a grid layout component that initializes the grid layout component to adapt the panel page to the size of the interface where the panel page is located.
  • the layout information calculation module 220 is configured to:
  • Controlling the grid layout component to save the target location information and the target size information into the target layout information
  • the location information and the size information of the panel are saved in the target layout information
  • the position information of the panel is adjusted until there is no overlapping area between the panel and the target panel, and the current position information and size information of the panel are saved in the target layout information.
  • the electronic terminal is in communication with a server, and the device further includes:
  • a judging module configured to receive the panel page sent by the server, and traverse each panel in the panel page to determine whether location information and size information exist in the panel;
  • a first display module configured to display the panel according to the location information and the size information when location information and size information are present in the panel
  • the second display module is configured to display the panel according to the default location information and the size information when the location information and the size information are not present in the panel.
  • the electronic terminal is in communication connection with a server, and the determining module is configured to: determine whether the panel has a target member; if yes, determine that location information and size information are present in the panel; wherein The location information includes coordinate information of the panel in the grid layout component, the size information including the width and height of the panel.
  • the electronic terminal prestores layout information corresponding to different sizes.
  • the device further includes: a size acquiring module, configured to: after detecting that the size of the interface where the panel page is located is changed, Obtaining the changed size of the interface; the redrawing module is configured to find layout information corresponding to the changed size, and redraw the panel page according to the layout information.
  • the apparatus further includes:
  • the relationship establishing module is configured to pre-establish a correspondence between the size of the interface where the panel page is located and the layout information.
  • the grid layout component in this embodiment is a responsive grid layout component; the preset operation includes a drag operation or a zoom operation.
  • the embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed, the page display method provided by the embodiment of the present application is implemented.
  • the embodiment of the present application provides a page display method and apparatus, and an electronic terminal 100.
  • the electronic terminal 100 includes a React-based grid layout component for displaying a panel page including at least one panel.
  • the electronic terminal 100 transmits the target position information and the target size information of the target panel after the preset operation is performed to the grid layout component by responding to the preset operation of the target panel in the panel page.
  • the grid layout component calculates the target layout information of the panel page according to the target location information and the target size information, and updates the state of the panel page according to the target layout information, so that the grid layout component repaints the panel page, thereby following the target layout information. Showcase each panel in the panel page. In this way, the layout of each panel in the panel page can be updated in real time according to the operation of the panel by the user, and the user experience is better.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • each functional module in each embodiment of the present application may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
  • the functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present application which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like.
  • ROM read-only memory
  • RAM random access memory
  • magnetic disk or an optical disk, and the like.
  • the term “comprises”, “comprising” or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase “comprising a " does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
  • the electronic terminal can update the layout of each panel in the panel page in real time according to the operation of the panel by the user, so that the webpage layout adjustment mode is more convenient and convenient, and the user experience is effectively improved.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present application provides a page display method and device, an electronic terminal, and a computer storage medium. The method and the device are applied to the electronic terminal. The electronic terminal comprises a React-based grid layout component. The grid layout component is used for displaying a panel page comprising at least one panel. The method comprises: in response to a preset operation on a target panel in a panel page, an electronic terminal transmitting, to the grid layout component, target position information and target size information of the target panel after the preset operation has been performed on the same; the grid layout component calculating, according to the target position information and the target size information, to obtain target layout information of the panel page; and updating a status of the panel page according to the target layout information, such that the grid layout component re-renders the panel page, thereby displaying each panel in the panel page according to the target layout information. The present application facilitates easier and more convenient adjustment of a webpage layout, thereby effectively improving the user experience.

Description

页面展示方法、装置、电子终端及计算机存储介质Page display method, device, electronic terminal and computer storage medium
相关申请的交叉引用Cross-reference to related applications
本申请要求于2018年01月02日提交中国专利局的申请号为2018100007583,名称为“页面展示方法、装置及电子终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims the priority of the Chinese Patent Application No. 201 810 0007 583, filed on Jan. 2, 2018, the entire disclosure of which is incorporated herein by reference. .
技术领域Technical field
本申请涉及计算机技术领域,具体而言,涉及一种页面展示方法、装置、电子终端及计算机存储介质。The present application relates to the field of computer technologies, and in particular, to a page display method, apparatus, electronic terminal, and computer storage medium.
背景技术Background technique
目前,编程人员在进行网页开发时,大多需要根据设计人员提供的设计图进行编程才能实现具有多个面板的网页布局效果。这种开发方式的问题在于,一旦需要调整布局则需要基于调整后的布局重新进行编程,较为复杂繁琐,无法根据用户需求随时调整网页中各个面板的布局,用户体验较差。At present, when programmers are developing web pages, most of them need to be programmed according to the design drawings provided by the designers to realize the webpage layout effect with multiple panels. The problem with this development method is that once the layout needs to be adjusted, it needs to be re-programmed based on the adjusted layout, which is complicated and cumbersome, and the layout of each panel in the webpage cannot be adjusted at any time according to the user's needs, and the user experience is poor.
申请内容Application content
有鉴于此,本申请的目的包括,提供一种页面展示方法、装置、电子终端及计算机存储介质,以改善上述问题中的至少一个问题。In view of this, the purpose of the present application includes providing a page display method, apparatus, electronic terminal, and computer storage medium to improve at least one of the above problems.
为了达到上述目的,本申请提供一种页面展示方法,应用于电子终端,所述电子终端包括基于React的网格布局组件,所述网格布局组件用于展示包括至少一个面板的面板页面,所述方法包括:In order to achieve the above object, the present application provides a page display method, which is applied to an electronic terminal, the electronic terminal includes a React-based grid layout component, and the grid layout component is configured to display a panel page including at least one panel. The methods include:
响应对面板页面中目标面板的预设操作,将所述目标面板在所述预设操作被执行后的目标位置信息和目标尺寸信息传递给所述网格布局组件;Responding to the preset operation of the target panel in the panel page, the target location information and the target size information of the target panel after the preset operation is performed are delivered to the grid layout component;
所述网格布局组件根据所述目标位置信息和所述目标尺寸信息计算得到所述面板页面的目标布局信息;The grid layout component calculates target layout information of the panel page according to the target location information and the target size information;
根据所述目标布局信息对所述面板页面的状态进行更新,使所述网格布局组件对所述面板页面进行重新绘制,从而按照所述目标布局信息对所述面板页面中的各个面板进行展示。Updating the state of the panel page according to the target layout information, causing the grid layout component to re-render the panel page, so as to display each panel in the panel page according to the target layout information. .
可选地,所述网格布局组件根据所述目标位置信息和所述目标尺寸信息计算得到所述网格布局组件的目标布局信息,包括:Optionally, the grid layout component calculates the target layout information of the grid layout component according to the target location information and the target size information, including:
所述网格布局组件将所述目标位置信息和所述目标尺寸信息保存到所述目标布局信息中;The grid layout component saves the target location information and the target size information into the target layout information;
针对所述面板页面中除所述目标面板之外的每个面板,根据该面板的位置信息、尺寸信息及所述目标位置信息和目标尺寸信息,判断该面板和所述目标面板是否存在重叠区域;Determining whether there is an overlapping area between the panel and the target panel according to location information, size information, and the target location information and the target size information of the panel in the panel page except the target panel. ;
若不存在重叠区域,则将该面板的位置信息和尺寸信息保存到所述目标布局信息中;If there is no overlapping area, the location information and the size information of the panel are saved in the target layout information;
若存在重叠区域,则对该面板的位置信息进行调整,直至该面板与所述目标面板不存在重叠区域,再将该面板当前的位置信息和尺寸信息保存到所述目标布局信息中。If there is an overlapping area, the position information of the panel is adjusted until there is no overlapping area between the panel and the target panel, and the current position information and size information of the panel are saved in the target layout information.
可选地,所述电子终端与服务器通信连接,所述方法还包括:Optionally, the electronic terminal is in communication with the server, and the method further includes:
所述网格布局组件接收服务器发送的面板页面,并遍历所述面板页面中的每个面板,判断该面板中是否存在位置信息和尺寸信息;The grid layout component receives a panel page sent by the server, and traverses each panel in the panel page to determine whether location information and size information are present in the panel;
当该面板中存在位置信息和尺寸信息时,根据该位置信息和尺寸信息展示该面板;When the location information and the size information are present in the panel, the panel is displayed according to the location information and the size information;
当该面板中不存在位置信息和尺寸信息时,按照默认的位置信息和尺寸信息展示该面板。When there is no location information and size information in the panel, the panel is displayed according to the default location information and size information.
可选地,所述判断该面板中是否存在位置信息和尺寸信息的步骤,包括:Optionally, the step of determining whether location information and size information is present in the panel includes:
判断该面板是否具有目标成员;Determine if the panel has a target member;
如果是,确定该面板中存在位置信息和尺寸信息;其中,所述位置信息包括该面板在所述网格布局组件中的坐标信息,所述尺寸信息包括该面板的宽度和高度。If so, determining that there is location information and size information in the panel; wherein the location information includes coordinate information of the panel in the grid layout component, the size information including a width and a height of the panel.
可选地,所述网格布局组件在展示该面板的步骤之前,所述方法还包括:Optionally, before the step of displaying the panel, the method further includes:
将预先设置的初始化信息传递给所述网格布局组件,对所述网格布局组件进行初始化,以使所述面板页面与所述面板页面所在界面的尺寸相适应。The preset initialization information is passed to the grid layout component, and the grid layout component is initialized to adapt the panel page to the size of the interface where the panel page is located.
可选地,所述网格布局组件为响应式网格布局组件。Optionally, the grid layout component is a responsive grid layout component.
可选地,所述电子终端中预存有与面板页面所在界面的尺寸大小对应的布局信息;所述方法还包括:Optionally, the electronic terminal pre-stores layout information corresponding to the size of the interface where the panel page is located; the method further includes:
在检测到所述面板页面所在界面的尺寸发生改变后,获取所述界面改变后的尺寸;After detecting that the size of the interface where the panel page is located is changed, obtaining the changed size of the interface;
查找与所述改变后的尺寸对应的布局信息,并根据该布局信息重新绘制所述面板页面。Finding layout information corresponding to the changed size, and redrawing the panel page according to the layout information.
可选地,所述方法还包括:Optionally, the method further includes:
预先建立所述面板页面所在界面的尺寸与布局信息的对应关系。Corresponding relationship between the size of the interface where the panel page is located and the layout information is established in advance.
可选地,所述预设操作包括拖曳操作或缩放操作。Optionally, the preset operation includes a drag operation or a zoom operation.
本申请实施例还提供一种页面展示装置,应用于电子终端,所述电子终端包括基于React的网格布局组件,所述网格布局组件配置成展示包括至少一个面板的面板页面,所述装置包括:The embodiment of the present application further provides a page display device, which is applied to an electronic terminal, the electronic terminal includes a React-based grid layout component, and the grid layout component is configured to display a panel page including at least one panel, the device include:
操作响应模块,配置成响应对面板页面中目标面板的预设操作,将所述目标面板在所述预设操作被执行后的目标位置信息和目标尺寸信息传递给所述网格布局组件;The operation response module is configured to, in response to the preset operation of the target panel in the panel page, transmit the target location information and the target size information of the target panel after the preset operation is performed to the grid layout component;
布局信息计算模块,配置成控制所述网格布局组件根据所述目标位置信息和所述目标尺寸信息计算得到所述面板页面的目标布局信息;a layout information calculation module, configured to control the grid layout component to calculate target layout information of the panel page according to the target location information and the target size information;
展示模块,配置成根据所述目标布局信息对所述面板页面的状态进行更新,使所述网格布局组件对所述面板页面进行重新绘制,从而按照所述目标布局信息对所述面板页面中的各个面板进行展示。a display module, configured to update a state of the panel page according to the target layout information, so that the grid layout component re-renders the panel page, so that the target layout information is used in the panel page. Each panel is displayed.
可选地,所述布局信息计算模块配置成:Optionally, the layout information calculation module is configured to:
控制所述网格布局组件将所述目标位置信息和所述目标尺寸信息保存到所述目标布局信息中;Controlling the grid layout component to save the target location information and the target size information into the target layout information;
针对所述面板页面中除所述目标面板之外的每个面板,根据该面板的位置信息、尺寸信息及所述目标位置信息和目标尺寸信息,判断该面板和所述目标面板是否存在重叠区域;Determining whether there is an overlapping area between the panel and the target panel according to location information, size information, and the target location information and the target size information of the panel in the panel page except the target panel. ;
若不存在重叠区域,则将该面板的位置信息和尺寸信息保存到所述目标布局信息中;If there is no overlapping area, the location information and the size information of the panel are saved in the target layout information;
若存在重叠区域,则对该面板的位置信息进行调整,直至该面板与所述目标面板不存在重叠区域,再将该面板当前的位置信息和尺寸信息保存到所述目标布局信息中。If there is an overlapping area, the position information of the panel is adjusted until there is no overlapping area between the panel and the target panel, and the current position information and size information of the panel are saved in the target layout information.
可选地,所述电子终端与服务器通信连接,所述装置还包括:Optionally, the electronic terminal is in communication with the server, and the device further includes:
判断模块,配置成所述网格布局组件接收所述服务器发送的面板页面,并遍历所述面板页面中的每个面板,判断该面板中是否存在位置信息和尺寸信息;a judging module configured to receive the panel page sent by the server, and traverse each panel in the panel page to determine whether location information and size information exist in the panel;
第一展示模块,配置成当该面板中存在位置信息和尺寸信息时,根据该位置信息和尺寸信息展示该面板;a first display module configured to display the panel according to the location information and the size information when location information and size information are present in the panel;
第二展示模块,配置成当该面板中不存在位置信息和尺寸信息时,按照默认的位置信息和尺寸信息展示该面板。The second display module is configured to display the panel according to the default location information and the size information when the location information and the size information are not present in the panel.
可选地,所述判断模块配置成:判断该面板是否具有目标成员;Optionally, the determining module is configured to: determine whether the panel has a target member;
如果是,确定该面板中存在位置信息和尺寸信息;其中,所述位置信息包括该面板在所述网格布局组件中的坐标信息,所述尺寸信息包括该面板的宽度和高度。If so, determining that there is location information and size information in the panel; wherein the location information includes coordinate information of the panel in the grid layout component, the size information including a width and a height of the panel.
可选地,所述装置还包括:Optionally, the device further includes:
初始化模块,配置成将预先设置的初始化信息传递给所述网格布局组件,对所述网格布局组件进行初始化,以使所述面板页面与所述面板页面所在界面的尺寸相适应。And an initialization module configured to: pass pre-set initialization information to the grid layout component, and initialize the grid layout component to adapt the panel page to a size of an interface of the panel page.
可选地,所述网格布局组件为响应式网格布局组件;Optionally, the grid layout component is a responsive grid layout component;
所述预设操作包括拖曳操作或缩放操作。The preset operation includes a drag operation or a zoom operation.
可选地,所述电子终端中预存有与面板页面所在界面的尺寸对应的布局信息;所述装置还包括:Optionally, the electronic terminal pre-stores layout information corresponding to the size of the interface where the panel page is located; the device further includes:
尺寸获取模块,配置成在检测到所述面板页面所在界面的尺寸发生改变后,获取所述界面改变后的尺寸;a size obtaining module configured to acquire a size of the changed interface after detecting that a size of an interface of the panel page is changed;
重绘模块,配置成查找与所述改变后的尺寸对应的布局信息,并根据该布局信息重新绘制所述面板页面。The redrawing module is configured to find layout information corresponding to the changed size, and redraw the panel page according to the layout information.
可选地,所述装置还包括:Optionally, the device further includes:
关系建立模块,配置成预先建立所述面板页面所在界面的尺寸与布局信息的对应关系。The relationship establishing module is configured to pre-establish a correspondence between the size of the interface where the panel page is located and the layout information.
本申请还提供一种电子终端,所述电子终端包括存储器、处理器、基于React的网格布局组件及本申请实施例提供的页面展示装置;所述网格布局组件用于展示包括至少一个面板的面板页面,所述页面展示装置存储在所述存储器中,并被所述处理器控制执行。The application further provides an electronic terminal, the electronic terminal includes a memory, a processor, a React-based grid layout component, and a page display device provided by the embodiment of the present application; the grid layout component is configured to display at least one panel The page display device is stored in the memory and executed by the processor.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被执行时实现前述任意一项所述的页面展示方法。The present application also provides a computer readable storage medium having stored thereon a computer program that, when executed, implements the page display method of any of the foregoing.
相较于现有技术,本申请具有以下有益效果:Compared with the prior art, the present application has the following beneficial effects:
本申请实施例提供一种页面展示方法、装置、电子终端及计算机存储介质,电子终端包括基于React的网格布局组件,该网格布局组件用于展示包括至少一个面板的面板页面。电子终端通过响应对面板页面中目标面板的预设操作,将目标面板在预设操作被执行后的目标位置信息和目标尺寸信息传递给网格布局组件。网格布局组件根据目标位置信息和目标尺寸信息计算得到面板页面的目标布局信息,根据目标布局信息对面板页面的状态进行更新,使网格布局组件对面板页面进行重新绘制,从而按照目标布局信息对面板页面中的各个面板进行展示。如此,可以根据用户对面板的操作,实时地更新面板页面中各个面板的布局,网页布局调整方式更加简易便捷,有效提升了用户体验。Embodiments of the present application provide a page display method, apparatus, electronic terminal, and computer storage medium. The electronic terminal includes a React-based grid layout component for displaying a panel page including at least one panel. The electronic terminal transmits the target position information and the target size information of the target panel after the preset operation is performed to the grid layout component by responding to the preset operation of the target panel in the panel page. The grid layout component calculates the target layout information of the panel page according to the target location information and the target size information, and updates the state of the panel page according to the target layout information, so that the grid layout component repaints the panel page, thereby following the target layout information. Showcase each panel in the panel page. In this way, the layout of each panel in the panel page can be updated in real time according to the operation of the panel by the user, and the webpage layout adjustment method is more convenient and convenient, thereby effectively improving the user experience.
附图说明DRAWINGS
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本申请的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the present application, the drawings to be used in the embodiments will be briefly described below. It should be understood that the following drawings show only certain embodiments of the present application and therefore should not be It is considered to be a limitation on the scope, and other related drawings may be obtained according to the drawings without any creative work for those skilled in the art.
图1为本申请提供的一种电子终端的方框示意图;1 is a block diagram of an electronic terminal provided by the present application;
图2为本申请提供的一种页面展示方法的流程示意图;2 is a schematic flowchart of a page display method provided by the present application;
图3为本申请提供的又一种页面展示方法的流程图;3 is a flowchart of still another page display method provided by the present application;
图4为本申请提供的一种页面展示装置的功能模块框图;4 is a functional block diagram of a page display device provided by the present application;
图5为本申请提供的又一种页面展示装置的功能模块框图。FIG. 5 is a functional block diagram of still another page display device provided by the present application.
图标:100-电子终端;110-存储器;120-处理器-130-显示单元;200-页面展示装置;210-操作响应模块;220-布局信息计算模块;230-展示模块。Icons: 100-electronic terminal; 110-memory; 120-processor-130-display unit; 200-page display device; 210-operation response module; 220-layout information calculation module; 230-display module.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请的组件可以以各种不同的配置来布置和设计。The technical solutions in the present application will be clearly and completely described in the following with reference to the accompanying drawings in the present application. It is obvious that the described embodiments are a part of the embodiments of the present application. Instead of all the embodiments. The components of the present application, which are generally described and illustrated in the figures herein, can be arranged and designed in various different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请的选定实施例。基于本申请中的实施例,本领域普通技 术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The detailed description of the embodiments of the present application, which is set forth in the claims All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。It should be noted that similar reference numerals and letters indicate similar items in the following figures, and therefore, once an item is defined in a drawing, it is not necessary to further define and explain it in the subsequent drawings.
如图1所示,是本申请提供的一种电子终端100的方框示意图,电子终端100可以是,但不限于,服务器、个人电脑(personal computer,PC)、平板电脑、个人数字助理(personal digital assistant,PDA)、移动上网设备(mobile Internet device,MID)、智能手机等。As shown in FIG. 1 , it is a block diagram of an electronic terminal 100 provided by the present application. The electronic terminal 100 can be, but not limited to, a server, a personal computer (PC), a tablet computer, and a personal digital assistant (personal computer). Digital assistant, PDA), mobile Internet device (MID), smart phone, etc.
电子终端100包括页面展示装置200、存储器110、处理器120及显示单元130。The electronic terminal 100 includes a page display device 200, a memory 110, a processor 120, and a display unit 130.
存储器110、处理器120及显示单元130各元件之间直接或间接地电性连接,以实现数据传输或交互。例如,这些元件相互之间可通过一条或多条通讯总线或信号线实现电性连接。页面展示装置200包括至少一个可以以软件或固件(Firmware)的形式存储在存储器110中固化在电子终端100的操作系统(Operating System,OS)中的软件功能模块。处理器120用于执行存储在存储器110中的可执行模块,例如所述页面展示装置200中的软件功能模块或计算机程序。The components of the memory 110, the processor 120, and the display unit 130 are electrically connected directly or indirectly to implement data transmission or interaction. For example, the components can be electrically connected to one another via one or more communication buses or signal lines. The page display apparatus 200 includes at least one software function module that can be stored in the memory 110 in an operating system (OS) of the electronic terminal 100 in the form of software or firmware. The processor 120 is configured to execute an executable module stored in the memory 110, such as a software function module or a computer program in the page display device 200.
其中,存储器110可以是,但不限于,随机存取存储器(Random Access Memory,RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。The memory 110 can be, but not limited to, a random access memory (RAM), a read only memory (ROM), and a programmable read-only memory (PROM). Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), and the like.
处理器120可以是一种集成电路芯片,具有信号处理能力。所述处理器130可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。 Processor 120 can be an integrated circuit chip with signal processing capabilities. The processor 130 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; or may be a digital signal processor (DSP), an application specific integrated circuit (ASIC) ), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
显示单元130用于建立电子终端100与用户之间的交互界面,或是用于显示待显示信息,例如本实施例中的面板页面。The display unit 130 is configured to establish an interaction interface between the electronic terminal 100 and the user, or to display information to be displayed, such as a panel page in this embodiment.
应当理解,图1所示的结构仅为示意,电子终端100可以包括比图1所示更多或者更少的组件,或者具有与图1所示不同的配置。图1中所示的各组件可以采用硬件、软件或其组合实现。It should be understood that the structure shown in FIG. 1 is merely illustrative, and the electronic terminal 100 may include more or less components than those shown in FIG. 1, or have a different configuration from that shown in FIG. 1. The components shown in Figure 1 can be implemented in hardware, software, or a combination thereof.
如图2所示,是本申请提供的一种页面展示方法的流程示意图,所述页面展示方法应用于图1所示的电子终端100。该电子终端100包括基于React的网格布局组件,该网格布局组件用于展示包括至少一个面板的面板页面,下面结合图2对所述页面展示方法的具体流程及步骤做详细阐述。As shown in FIG. 2 , it is a schematic flowchart of a page display method provided by the present application, and the page display method is applied to the electronic terminal 100 shown in FIG. 1 . The electronic terminal 100 includes a React-based grid layout component for displaying a panel page including at least one panel. The specific flow and steps of the page display method are described in detail below with reference to FIG. 2 .
步骤S201,响应对面板页面中目标面板的预设操作,将所述目标面板在所述预设操作被执行后的目标位置信息和目标尺寸信息传递给所述网格布局组件。Step S201: In response to the preset operation of the target panel in the panel page, the target location information and the target size information of the target panel after the preset operation is performed are delivered to the grid layout component.
在本实施例中,电子终端100中可以安装有浏览器,电子终端100通过该浏览器访问服务器,并获取服务器发送的页面文件。对于服务器发送的包括至少一个面板的面板页面,面板页面是指包括至少一个面板的页面文件。电子终端100通过基于React的网格布局组件(React-Grid-Layout)进行展示。In this embodiment, a browser may be installed in the electronic terminal 100, and the electronic terminal 100 accesses the server through the browser, and acquires a page file sent by the server. For a panel page sent by a server including at least one panel, a panel page refers to a page file including at least one panel. The electronic terminal 100 is displayed by a React-based grid layout component (React-Grid-Layout).
其中,React是一种JavaScript库,可用于创建Web用户交互界面。具体的,React可便捷地创建交互式用户界面,为应用程序中的每个状态设计简单视图,当数据更改时,React可高效地更新和正确的渲染组件,具体可构建易于可重复调用的Web组件。Among them, React is a JavaScript library that can be used to create a web user interface. Specifically, React makes it easy to create interactive user interfaces that design a simple view of each state in the application. When data changes, React can efficiently update and correctly render components, building a Web that is easy to call and call. Component.
Grid Layout(网格布局)具有如下主要特点:(1)可设置布局中组件的排列对齐方式;诸如设置水平排列或垂直排列方式,也可设置左对齐、右对齐、中心对齐或底部对齐等对齐方式;(2)可自定义网格布局的行数和列数(3)可直接设置组件位于某行某列(4)可设置组件横跨几行或者几列。Grid Layout has the following main features: (1) can set the alignment of the components in the layout; such as setting the horizontal or vertical arrangement, or setting the alignment of left, right, center or bottom. (2) The number of rows and columns of the customizable grid layout (3) can be directly set to a component in a row (4) settable components span several rows or columns.
在本实施例中,电子终端100还可以与服务器通信连接,对应地,所述页面展示方法还可以包括以下两个主要步骤:In this embodiment, the electronic terminal 100 can also be in communication with the server. Correspondingly, the page display method can further include the following two main steps:
步骤一,网格布局组件接收服务器发送的面板页面,并遍历所述面板页面中的每个面板,判断该面板中是否存在位置信息和尺寸信息。Step 1: The grid layout component receives the panel page sent by the server, and traverses each panel in the panel page to determine whether location information and size information exist in the panel.
考虑到不同设备的显示屏具有不同的分辨率,为了适应不同设备的显示屏,可以通过响应式网格布局组件实现。具体的,要基于React-Grid-Layout(网格布局组件)实现面板页面的布局,在展示该面板页面时,需要传递必要的参数给React-Grid-Layout组件进行初始化,以使得面板页面与所述面板页面所在界面的尺寸匹配。也即,所述网格布局组件在展示该面板的步骤之前,所述页面展示方法还可以包括:将预先设置的初始化信息传递给所述网格布局组件,对所述网格布局组件进行初始化,以使所述面板页面与所述面板页面所在界面的尺寸相适应。Considering that the display of different devices has different resolutions, in order to adapt to the display of different devices, it can be realized by the responsive grid layout component. Specifically, the layout of the panel page is implemented based on the React-Grid-Layout. When the panel page is displayed, the necessary parameters need to be passed to the React-Grid-Layout component to initialize the panel page. The size of the interface where the panel page is located matches. That is, before the step of displaying the panel, the page display method may further include: transmitting preset initialization information to the grid layout component, and initializing the grid layout component. In order to adapt the panel page to the size of the interface where the panel page is located.
详细地,可以将所述必要的参数传递给React-Grid-Layout组件的ResponsiveReactGridLayout类进行初始化,从而实现响应式布局。为便于理解,以下给出一种初始化过程的应用示例,具体可以通过如下代码实现初始化:In detail, the necessary parameters can be passed to the ResponsiveReactGridLayout class of the React-Grid-Layout component for initialization, thereby implementing a responsive layout. For ease of understanding, an application example of an initialization process is given below, which can be initialized by the following code:
Figure PCTCN2018085155-appb-000001
Figure PCTCN2018085155-appb-000001
在上述代码可实现的初始化示例中,col表示列的数量,rowHeight表示行的高度。上述代码初始化了一个具有12列网格,行的高度为50像素且行的数量不定的布局。以上仅为示例,在实际应用中,可以根据网格的行列数量以及界面尺寸等灵活设置相应参数。In the initialization example that the above code can implement, col represents the number of columns, and rowHeight represents the height of the row. The above code initializes a layout with a 12-column grid with a height of 50 pixels and an indefinite number of rows. The above is only an example. In practical applications, the corresponding parameters can be flexibly set according to the number of rows and columns of the grid and the interface size.
breakpoints和cols是预先设置的初始化信息,用于在因显示设备变化而导致浏览器的窗口尺寸变化时,重新绘制整个布局,以使面板页面与浏览器当前的窗口相适应。Breakpoints and cols are pre-set initialization information for redrawing the entire layout when the browser's window size changes due to display device changes, so that the panel page matches the browser's current window.
应当理解,在本实施例中,上述ResponsiveReactGridLayout类相当于一个面板容器,每一个面板又相当于承载其中内容的容器。It should be understood that in the present embodiment, the above ResponsiveReactGridLayout class is equivalent to a panel container, and each panel is equivalent to a container carrying the content therein.
具体应用时,步骤一中判断该面板中是否存在位置信息和尺寸信息的方式,可以首先该面板是否具有目标成员;如果是,确定该面板中存在位置信息和尺寸信息;其中,所述位置信息包括该面板在所述网格布局组件中的坐标信息,所述尺寸信息包括该面板的宽度和高度。In a specific application, in step 1, whether the location information and the size information are present in the panel may be first whether the panel has a target member; if yes, determining location information and size information in the panel; wherein the location information Include coordinate information of the panel in the grid layout component, the size information including the width and height of the panel.
基于上述描述,所述图像显示方法还可以包括如下步骤:Based on the above description, the image display method may further include the following steps:
(1)在检测到所述面板页面所在界面的尺寸发生改变后,获取所述界面改变后的尺寸。具体的,电子终端中预存有与面板页面所在界面的尺寸对应的布局信息。其中,尺寸可以用像素大小表征。本申请提供的页面展示方法中,还包括预先建立所述面板页面所在界面 的尺寸与布局信息的对应关系。(1) After detecting that the size of the interface where the panel page is located is changed, obtaining the changed size of the interface. Specifically, the electronic terminal has pre-stored layout information corresponding to the size of the interface where the panel page is located. Among them, the size can be characterized by the pixel size. The page display method provided by the present application further includes pre-establishing a correspondence between the size of the interface where the panel page is located and the layout information.
(2)查找与所述改变后的尺寸对应的布局信息,并根据该布局信息重新绘制所述面板页面。(2) Finding layout information corresponding to the changed size, and redrawing the panel page according to the layout information.
下面给出上述图像显示步骤的一个具体示例,例如,当浏览器的窗口尺寸小于1200像素但大于996像素的时候,整个布局将会重新绘制成只有10列。由于面板页面中的面板的位置信息和尺寸信息均是以单个网格为单位,因此很容易确定每个面板在新的布局中的位置,实现适配不同浏览器的结果,从而在不同尺寸的显示器和设备上都能达到很好的显示效果。A specific example of the above image display step is given below. For example, when the window size of the browser is less than 1200 pixels but greater than 996 pixels, the entire layout will be redrawn to only 10 columns. Since the position information and size information of the panel in the panel page are in a single grid, it is easy to determine the position of each panel in the new layout, and to achieve the results of adapting to different browsers, thus being in different sizes. Good display on both the monitor and the device.
在进行初始化之后,即可对面板页面进行展示。实施时,服务器会先将面板页面发送给浏览器,并通过与网格布局组件的程序接口将面板页面发送给网格布局组件。在面板页面中存在panels数组,该数组具备一个length属性,通过该属性可以确定所述面板页面中的面板的数量。然后,可以遍历每个面板,判断该面板是否具备grid成员(也即,前述目标成员),若存在grid成员,则表示该面板里存在位置信息和尺寸信息,其中,位置信息是指该面板在所述网格布局组件中的坐标信息,尺寸信息是指该面板的宽度和高度。After initializing, the panel page can be displayed. When implemented, the server first sends the panel page to the browser and sends the panel page to the grid layout component through the program interface to the grid layout component. There is a panel array in the panel page, the array has a length property, which can be used to determine the number of panels in the panel page. Then, each panel can be traversed to determine whether the panel has a grid member (that is, the aforementioned target member). If there is a grid member, it indicates that location information and size information exist in the panel, wherein the location information indicates that the panel is in the panel. The coordinate information in the grid layout component, the size information refers to the width and height of the panel.
通常,面板的位置信息和尺寸信息会表示成{x,y,w,h}。其中,(x,y)表示该面板在网格布局组件中的坐标,w表示该面板的宽度,h表示该面板的高度。应当理解,上述所述信息的单位均是单个网格。Usually, the position and size information of the panel will be expressed as {x, y, w, h}. Where (x, y) represents the coordinates of the panel in the grid layout component, w represents the width of the panel, and h represents the height of the panel. It should be understood that the units of information described above are all a single grid.
步骤二,当该面板中存在位置信息和尺寸信息时,根据该位置信息和尺寸信息展示该面板;当该面板中不存在位置信息和尺寸信息时,按照默认的位置信息和尺寸信息展示该面板。Step 2: When the location information and the size information are present in the panel, the panel is displayed according to the location information and the size information; when the location information and the size information are not present in the panel, the panel is displayed according to the default location information and the size information. .
在实际应用中,一旦其中一个面板中包括位置信息和尺寸信息,则所有的面板都会包括位置信息和尺寸信息;一旦其中一个面板不存在位置信息和尺寸信息,则所有的面板都不存在位置信息和尺寸信息。因此,当存在位置信息和尺寸信息时,遍历完所有面板,即可完成面板页面的展示。当不存在位置信息和尺寸信息时,按照默认的宽度和高度,从(0,0)开始依次加载每个面板,遍历完每个面板,即可实现面板页面的展示。In practical applications, once location information and size information is included in one of the panels, all panels will include location information and size information; once location and size information is not present in one of the panels, there is no location information for all panels. And size information. Therefore, when there is location information and size information, the panel page is displayed by traversing all the panels. When there is no location information and size information, according to the default width and height, each panel is loaded in order from (0, 0), and each panel is traversed to realize the display of the panel page.
在一种实施方式中,若面板中存在位置信息和尺寸信息,则可以直接将所述位置信息和尺寸信息复制给该面板所在父容器的data-grid属性。具体可以通过如下代码实现:In an embodiment, if location information and size information are present in the panel, the location information and the size information may be directly copied to the data-grid attribute of the parent container where the panel is located. Specifically, it can be realized by the following code:
Data-grid={{x:panel.grid.x,y:panel.grid.y,w:panel.grid.w,h:panel.grid.h}}Data-grid={{x:panel.grid.x,y:panel.grid.y,w:panel.grid.w,h:panel.grid.h}}
若面板中不存在位置信息和尺寸信息,React-grid-Layout会初始化rowPos和colPos来计算该面板的位置信息。If there is no location information and size information in the panel, React-grid-Layout initializes rowPos and colPos to calculate the position information of the panel.
其中,rowPos和colPos是默认的行数量和列数量,表示每个面板的宽度默认为rowPos个网格,高度默认为colPos个网格。Among them, rowPos and colPos are the default number of rows and columns, indicating that the width of each panel defaults to rowPos grids, and the height defaults to colPos grids.
在所述面板页面被展示完成后,用户可以在浏览器上对任意一个面板进行拖动或缩放,所述预设操作可以包括拖动操作或缩放操作等,浏览器通过现有的监测方法可以监测到该预设操作,并根据鼠标的位置确定被操作的面板(即,目标面板)最终的位置,即目标面板在所述预设操作被执行后的目标位置信息和目标尺寸信息。After the panel page is displayed, the user can drag or zoom any panel on the browser, and the preset operation may include a drag operation or a zoom operation, and the browser can use an existing monitoring method. The preset operation is monitored, and the final position of the operated panel (ie, the target panel), that is, the target position information and the target size information of the target panel after the preset operation is performed, is determined according to the position of the mouse.
以拖动操作为例,当用户拖动某个面板后,根据鼠标的位置可以计算出该面板最终被拖动到哪一个位置,从而计算出该面板的新的位置信息,即该面板的目标位置信息,该面板即为目标面板。在未发生缩放操作时,该面板的尺寸不变。Taking the drag operation as an example, when the user drags a panel, the position of the mouse can be calculated according to the position of the mouse, thereby calculating the new position information of the panel, that is, the target of the panel. Location information, the panel is the target panel. The size of the panel does not change when the zoom operation does not occur.
然后,浏览器会将所述目标位置信息和目标尺寸信息传递给所述网格布局组件。可选地,浏览器还会将目标面板的标识信息发送给网格布局组件,以告知网格布局组件被操作的是哪一个面板。当网格布局组件接收到所述目标位置信息和目标尺寸信息后,所述ResponsiveReactGridLayout会产生与所述预设操作对应的事件。例如,若预设操作为拖动操作,则ResponsiveReactGridLayout会产生onDragStop事件;若预设操作为缩放操作,则ResponsiveReactGridLayout会产生onResizeStop事件。在所述事件的响应函数中会包括所述目标位置信息和目标尺寸信息。The browser then passes the target location information and target size information to the grid layout component. Optionally, the browser also sends the identification information of the target panel to the grid layout component to inform the grid layout component which panel is operated. After the grid layout component receives the target location information and the target size information, the ResponsiveReactGridLayout generates an event corresponding to the preset operation. For example, if the default action is a drag operation, the ResponsiveReactGridLayout will generate an onDragStop event; if the default action is a zoom operation, the ResponsiveReactGridLayout will generate an onResizeStop event. The target location information and target size information may be included in a response function of the event.
步骤S202,所述网格布局组件根据所述目标位置信息和所述目标尺寸信息计算得到所述面板页面的目标布局信息。Step S202, the grid layout component calculates target layout information of the panel page according to the target location information and the target size information.
在本实施例中,步骤S202可以通过专门的修改信息计算函数实现,该修改信息计算函数根据参数handleElementLayoutChange进行计算。实施时,电子终端100会从所述事件的响应函数提取出所述目标位置信息和目标尺寸信息,并传递给handleElementLayoutChange参数。通过将拖动事件和缩放事件同一抽象成对于布局修改的函数,可以使整个代码更加紧凑和高效。In this embodiment, step S202 can be implemented by a special modification information calculation function, which is calculated according to the parameter handleElementLayoutChange. In implementation, the electronic terminal 100 extracts the target location information and the target size information from the response function of the event and passes it to the handleElementLayoutChange parameter. By abstracting the drag event and the zoom event into a function that is modified for the layout, the entire code can be made more compact and efficient.
如图3所示,网格布局组件可以通过如下步骤实现步骤S202,具体描述如下:As shown in FIG. 3, the grid layout component can implement step S202 by the following steps, which are specifically described as follows:
步骤S301,所述网格布局组件将所述目标位置信息和所述目标尺寸信息保存到所述目标布局信息中。Step S301, the grid layout component saves the target location information and the target size information into the target layout information.
鉴于所述目标位置信息和所述目标尺寸信息已经是所述目标面板在所述预设操作后的位置信息,因而针对目标面板,直接按照所述目标位置信息和所述目标尺寸信息对其进行展示。In view of the fact that the target location information and the target size information are already the location information of the target panel after the preset operation, the target panel is directly directed to the target panel according to the target location information and the target size information. Show.
步骤S302,针对所述面板页面中所述目标面板之外的每个面板,根据该面板的位置信息、尺寸信息及所述目标位置信息和目标尺寸信息,判断该面板和所述目标面板是否存在重叠区域。若否,则执行步骤S303;若是,则执行步骤S304。Step S302, determining, for each panel other than the target panel in the panel page, whether the panel and the target panel exist according to the location information, the size information, the target location information, and the target size information of the panel. Overlapping area. If no, step S303 is performed; if yes, step S304 is performed.
其中,目标面板的目标位置信息和目标尺寸信息,是目标面板被拖动后或被缩放后的位置信息和尺寸信息,通过步骤S302,可以判断面板页面中除目标面板之外的每个面板是否与被拖动或被缩放后的目标面板存在重叠区域。The target position information and the target size information of the target panel are the position information and the size information after the target panel is dragged or zoomed. In step S302, it can be determined whether each panel except the target panel in the panel page is There is an overlap area with the target panel that is being dragged or scaled.
步骤S303,按照该面板原始的位置信息和尺寸信息对该面板进行展示。Step S303, displaying the panel according to the original location information and size information of the panel.
步骤S304,对该面板的位置和/或尺寸信息进行调整,使得该面板与被拖动或被缩放后的目标面板不存在重叠区域。Step S304, the position and/or size information of the panel is adjusted such that there is no overlapping area between the panel and the target panel that is dragged or scaled.
详细地,针对面板页面中除目标面板之外的任意一个面板,可以根据目标面板的位置信息,挪动该面板,直至该面板与目标面板不存在重叠区域,若此时该面板未超出面板页面所在界面,则根据该面板当前的位置信息和尺寸信息对该面板进行展示,亦即将该面板当前的位置信息和尺寸信息保存到所述目标布局信息中。若此时该面板超出面板页面所在界面,则需要对该面板的尺寸信息进行调整,以使该面板不超出面板页面所在界面。In detail, for any panel other than the target panel in the panel page, the panel may be moved according to the position information of the target panel until there is no overlapping area between the panel and the target panel, and if the panel does not exceed the panel page at this time The interface displays the panel according to the current location information and the size information of the panel, and saves the current location information and size information of the panel to the target layout information. If the panel is beyond the interface of the panel page, you need to adjust the size information of the panel so that the panel does not exceed the interface of the panel page.
步骤S203,根据所述目标布局信息对所述面板页面的状态进行更新,使所述网格布局组件对所述面板页面进行重新绘制,从而按照所述目标布局信息对所述面板页面中的各个面板进行展示。Step S203: Update the state of the panel page according to the target layout information, and cause the grid layout component to re-render the panel page, so as to view each of the panel pages according to the target layout information. The panel is displayed.
在得到所述目标布局信息后,电子终端100将所述目标布局信息映射给React的state机制。具体地,可以调用setState()方法,对面板页面的状态(state)进行更新。在React中,一旦state发生改变,就会通过render()方法对面板页面进行重新绘制,将所述目标布局信息更新到面板页面的布局中,即按照所述目标布局信息对所述面板页面中的各个面板进行展示。After obtaining the target layout information, the electronic terminal 100 maps the target layout information to the state mechanism of React. Specifically, the state of the panel page can be updated by calling the setState() method. In React, once the state changes, the panel page is redrawn by the render() method, and the target layout information is updated to the layout of the panel page, that is, according to the target layout information, the panel page is Each panel is displayed.
通过本申请提供的上述页面展示方法,能够使电子终端根据用户对面板的操作,实时地更新面板页面中各个面板的布局,使网页布局调整方式更加简易便捷,有效提升了用户体验。The above-mentioned page display method provided by the present application enables the electronic terminal to update the layout of each panel in the panel page in real time according to the operation of the panel by the user, so that the webpage layout adjustment mode is more convenient and convenient, and the user experience is effectively improved.
如图4所示,是本申请提供的一种页面展示装置200的功能模块框图,所述页面展示装置200应配置成图1所示的电子终端100。所述页面展示装置200包括操作响应模块210、布局信息计算模块220及展示模块230。As shown in FIG. 4 , it is a functional block diagram of a page display device 200 provided by the present application. The page display device 200 should be configured as the electronic terminal 100 shown in FIG. 1 . The page display device 200 includes an operation response module 210, a layout information calculation module 220, and a presentation module 230.
其中,操作响应模块210配置成响应对面板页面中目标面板的预设操作,将所述目标面板在所述预设操作被执行后的目标位置信息和目标尺寸信息传递给所述网格布局组件。The operation response module 210 is configured to, in response to the preset operation of the target panel in the panel page, transmit the target location information and the target size information of the target panel after the preset operation is performed to the grid layout component. .
在本实施例中,关于操作响应模块210的描述具体可参考对图2所示步骤S201的详细描述,亦即步骤S201可以由操作响应模块210执行。In the present embodiment, the description about the operation response module 210 can be specifically referred to the detailed description of the step S201 shown in FIG. 2, that is, the step S201 can be performed by the operation response module 210.
布局信息计算模块220配置成控制所述网格布局组件根据所述目标位置信息和所述目标尺寸信息计算得到所述面板页面的目标布局信息。The layout information calculation module 220 is configured to control the grid layout component to calculate target layout information of the panel page according to the target location information and the target size information.
在本实施例中,关于布局信息计算模块220的描述具体可参考对图2所示步骤S202的详细阐述,亦即步骤S202可以由布局信息计算模块220执行。In the present embodiment, the description about the layout information calculation module 220 can be specifically referred to the detailed description of the step S202 shown in FIG. 2, that is, the step S202 can be performed by the layout information calculation module 220.
可选地,在本实施例中,布局信息计算模块220进一步配置成:Optionally, in this embodiment, the layout information calculation module 220 is further configured to:
控制所述网格布局组件将所述目标位置信息和所述目标尺寸信息保存到所述目标布局信息中;Controlling the grid layout component to save the target location information and the target size information into the target layout information;
针对所述面板页面中除所述目标面板之外的每个面板,根据该面板的位置信息、尺寸信息及所述目标位置信息和目标尺寸信息,判断该面板和所述目标面板是否存在重叠区域;Determining whether there is an overlapping area between the panel and the target panel according to location information, size information, and the target location information and the target size information of the panel in the panel page except the target panel. ;
若不存在重叠区域,则将该面板的位置信息和尺寸信息保存到所述目标布局信息中;若存在重叠区域,则对该面板的位置信息进行调整,直至该面板与所述目标面板不存在重叠区域,再将该面板当前的位置信息和尺寸信息保存到所述目标布局信息中。If there is no overlapping area, the position information and the size information of the panel are saved in the target layout information; if there is an overlapping area, the position information of the panel is adjusted until the panel and the target panel do not exist. Overlap the area, and then save the current position information and size information of the panel to the target layout information.
展示模块230配置成根据所述目标布局信息对所述面板页面的状态进行更新,使所述网格布局组件对所述面板页面进行重新绘制,从而按照所述目标布局信息对所述面板页面中的各个面板进行展示。The display module 230 is configured to update the state of the panel page according to the target layout information, so that the grid layout component re-renders the panel page, so that the target layout information is in the panel page according to the target layout information. Each panel is displayed.
在本实施例中,关于展示模块230的描述具体可参考对图2所示步骤S203的详细描述,即步骤S203可以由展示模块230执行。In the present embodiment, the description about the display module 230 can be specifically referred to the detailed description of the step S203 shown in FIG. 2, that is, the step S203 can be performed by the display module 230.
参见图5所示的另一种页面展示装置200的功能模块框图,图5在图4的基础上,所述装置还包括:初始化模块310,配置成将预先设置的初始化信息传递给所述网格布局组件,对所述网格布局组件进行初始化,以使所述面板页面与所述面板页面所在界面的尺寸 相适应。Referring to the functional block diagram of another page display apparatus 200 shown in FIG. 5, FIG. 5 is based on FIG. 4, the apparatus further includes: an initialization module 310 configured to transmit preset initialization information to the network. a grid layout component that initializes the grid layout component to adapt the panel page to the size of the interface where the panel page is located.
在本申请的一种实施方式中,所述布局信息计算模块220配置成:In an implementation manner of the application, the layout information calculation module 220 is configured to:
控制所述网格布局组件将所述目标位置信息和所述目标尺寸信息保存到所述目标布局信息中;Controlling the grid layout component to save the target location information and the target size information into the target layout information;
针对所述面板页面中除所述目标面板之外的每个面板,根据该面板的位置信息、尺寸信息及所述目标位置信息和目标尺寸信息,判断该面板和所述目标面板是否存在重叠区域;Determining whether there is an overlapping area between the panel and the target panel according to location information, size information, and the target location information and the target size information of the panel in the panel page except the target panel. ;
若不存在重叠区域,则将该面板的位置信息和尺寸信息保存到所述目标布局信息中;If there is no overlapping area, the location information and the size information of the panel are saved in the target layout information;
若存在重叠区域,则对该面板的位置信息进行调整,直至该面板与所述目标面板不存在重叠区域,再将该面板当前的位置信息和尺寸信息保存到所述目标布局信息中。If there is an overlapping area, the position information of the panel is adjusted until there is no overlapping area between the panel and the target panel, and the current position information and size information of the panel are saved in the target layout information.
在另一种实施方式中,所述电子终端与服务器通信连接,所述装置还包括:In another embodiment, the electronic terminal is in communication with a server, and the device further includes:
判断模块,配置成所述网格布局组件接收所述服务器发送的面板页面,并遍历所述面板页面中的每个面板,判断该面板中是否存在位置信息和尺寸信息;a judging module configured to receive the panel page sent by the server, and traverse each panel in the panel page to determine whether location information and size information exist in the panel;
第一展示模块,配置成当该面板中存在位置信息和尺寸信息时,根据该位置信息和尺寸信息展示该面板;a first display module configured to display the panel according to the location information and the size information when location information and size information are present in the panel;
第二展示模块,配置成当该面板中不存在位置信息和尺寸信息时,按照默认的位置信息和尺寸信息展示该面板。The second display module is configured to display the panel according to the default location information and the size information when the location information and the size information are not present in the panel.
在另一种实施方式中,所述电子终端与服务器通信连接,所述判断模块配置成:判断该面板是否具有目标成员;如果是,确定该面板中存在位置信息和尺寸信息;其中,所述位置信息包括该面板在所述网格布局组件中的坐标信息,所述尺寸信息包括该面板的宽度和高度。In another embodiment, the electronic terminal is in communication connection with a server, and the determining module is configured to: determine whether the panel has a target member; if yes, determine that location information and size information are present in the panel; wherein The location information includes coordinate information of the panel in the grid layout component, the size information including the width and height of the panel.
在另一种实施方式中,所述电子终端中预存有与不同尺寸对应的布局信息;所述装置还包括:尺寸获取模块,配置成在检测到所述面板页面所在界面的尺寸发生改变后,获取所述界面改变后的尺寸;重绘模块,配置成查找与所述改变后的尺寸对应的布局信息,并根据该布局信息重新绘制所述面板页面。In another embodiment, the electronic terminal prestores layout information corresponding to different sizes. The device further includes: a size acquiring module, configured to: after detecting that the size of the interface where the panel page is located is changed, Obtaining the changed size of the interface; the redrawing module is configured to find layout information corresponding to the changed size, and redraw the panel page according to the layout information.
在另一种实施方式中,所述装置还包括:In another embodiment, the apparatus further includes:
关系建立模块,配置成预先建立所述面板页面所在界面的尺寸与布局信息的对应关系。The relationship establishing module is configured to pre-establish a correspondence between the size of the interface where the panel page is located and the layout information.
具体实施时,本实施例中的所述网格布局组件为响应式网格布局组件;所述预设操作包括拖曳操作或缩放操作。In a specific implementation, the grid layout component in this embodiment is a responsive grid layout component; the preset operation includes a drag operation or a zoom operation.
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被执行时实现本申请实施例提供的页面展示方法。The embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed, the page display method provided by the embodiment of the present application is implemented.
综上所述,本申请实施例提供一种页面展示方法、装置及电子终端100,电子终端100包括基于React的网格布局组件,该网格布局组件用于展示包括至少一个面板的面板页面。电子终端100通过响应对面板页面中目标面板的预设操作,将目标面板在预设操作被执行后的目标位置信息和目标尺寸信息传递给网格布局组件。网格布局组件根据目标位置信息和目标尺寸信息计算得到面板页面的目标布局信息,根据目标布局信息对面板页面的状态进行更新,使网格布局组件对面板页面进行重新绘制,从而按照目标布局信息对面板页面中的各个面板进行展示。如此,可以根据用户对面板的操作,实时地更新面板页面中各个面板的布局,用户体验更好。In summary, the embodiment of the present application provides a page display method and apparatus, and an electronic terminal 100. The electronic terminal 100 includes a React-based grid layout component for displaying a panel page including at least one panel. The electronic terminal 100 transmits the target position information and the target size information of the target panel after the preset operation is performed to the grid layout component by responding to the preset operation of the target panel in the panel page. The grid layout component calculates the target layout information of the panel page according to the target location information and the target size information, and updates the state of the panel page according to the target layout information, so that the grid layout component repaints the panel page, thereby following the target layout information. Showcase each panel in the panel page. In this way, the layout of each panel in the panel page can be updated in real time according to the operation of the panel by the user, and the user experience is better.
在本申请实施例所提供的几个实施例中,应该理解到,所揭露的装置和方法,也可以通过其它的方式实现。以上所描述的装置和方法实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的多个实施例的装置、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。In the several embodiments provided by the embodiments of the present application, it should be understood that the disclosed apparatus and method may also be implemented in other manners. The above described apparatus and method embodiments are merely illustrative, for example, the flowcharts and block diagrams in the figures illustrate an architecture of possible implementations of apparatus, methods, and computer program products according to various embodiments of the present application, Features and operations. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the Executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may also occur in a different order than those illustrated in the drawings. For example, two consecutive blocks may be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or function. Or it can be implemented by a combination of dedicated hardware and computer instructions.
另外,在本申请各个实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, each functional module in each embodiment of the present application may be integrated to form a separate part, or each module may exist separately, or two or more modules may be integrated to form a separate part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计 算机,电子设备,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。The functions, if implemented in the form of software functional modules and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. . It is to be understood that the term "comprises", "comprising" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a It also includes other elements that are not explicitly listed, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应所述以权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application. It should be covered by the scope of protection of this application. Therefore, the scope of protection of the present application should be determined by the scope of the claims.
工业实用性:Industrial applicability:
通过应用本申请的技术方案,电子终端可以根据用户对面板的操作,实时地更新面板页面中各个面板的布局,使网页布局调整方式更加简易便捷,有效提升了用户体验。By applying the technical solution of the present application, the electronic terminal can update the layout of each panel in the panel page in real time according to the operation of the panel by the user, so that the webpage layout adjustment mode is more convenient and convenient, and the user experience is effectively improved.

Claims (19)

  1. 一种页面展示方法,其特征在于,应用于电子终端,所述电子终端包括基于React的网格布局组件,所述网格布局组件配置成展示包括至少一个面板的面板页面,所述方法包括:A page display method, characterized in that it is applied to an electronic terminal, the electronic terminal includes a React-based grid layout component, and the grid layout component is configured to display a panel page including at least one panel, the method comprising:
    响应对面板页面中目标面板的预设操作,将所述目标面板在所述预设操作被执行后的目标位置信息和目标尺寸信息传递给所述网格布局组件;Responding to the preset operation of the target panel in the panel page, the target location information and the target size information of the target panel after the preset operation is performed are delivered to the grid layout component;
    所述网格布局组件根据所述目标位置信息和所述目标尺寸信息计算得到所述面板页面的目标布局信息;The grid layout component calculates target layout information of the panel page according to the target location information and the target size information;
    根据所述目标布局信息对所述面板页面的状态进行更新,使所述网格布局组件对所述面板页面进行重新绘制,从而按照所述目标布局信息对所述面板页面中的各个面板进行展示。Updating the state of the panel page according to the target layout information, causing the grid layout component to re-render the panel page, so as to display each panel in the panel page according to the target layout information. .
  2. 根据权利要求1所述的方法,其特征在于,所述网格布局组件根据所述目标位置信息和所述目标尺寸信息计算得到所述网格布局组件的目标布局信息,包括:The method according to claim 1, wherein the grid layout component calculates the target layout information of the grid layout component according to the target location information and the target size information, including:
    所述网格布局组件将所述目标位置信息和所述目标尺寸信息保存到所述目标布局信息中;The grid layout component saves the target location information and the target size information into the target layout information;
    针对所述面板页面中除所述目标面板之外的每个面板,根据该面板的位置信息、尺寸信息及所述目标位置信息和目标尺寸信息,判断该面板和所述目标面板是否存在重叠区域;Determining whether there is an overlapping area between the panel and the target panel according to location information, size information, and the target location information and the target size information of the panel in the panel page except the target panel. ;
    若不存在重叠区域,则将该面板的位置信息和尺寸信息保存到所述目标布局信息中;If there is no overlapping area, the location information and the size information of the panel are saved in the target layout information;
    若存在重叠区域,则对该面板的位置信息和/或尺寸信息进行调整,直至该面板与所述目标面板不存在重叠区域,再将该面板当前的位置信息和尺寸信息保存到所述目标布局信息中。If there is an overlapping area, the position information and/or the size information of the panel is adjusted until there is no overlapping area between the panel and the target panel, and the current position information and size information of the panel are saved to the target layout. Information.
  3. 根据权利要求1或2所述的方法,其特征在于,所述电子终端与服务器通信连接,所述方法还包括:The method of claim 1 or 2, wherein the electronic terminal is in communication with the server, the method further comprising:
    所述网格布局组件接收所述服务器发送的面板页面,并遍历所述面板页面中的每个面板,判断该面板中是否存在位置信息和尺寸信息;The grid layout component receives the panel page sent by the server, and traverses each panel in the panel page to determine whether location information and size information are present in the panel;
    当该面板中存在位置信息和尺寸信息时,根据该位置信息和尺寸信息展示该面板;When the location information and the size information are present in the panel, the panel is displayed according to the location information and the size information;
    当该面板中不存在位置信息和尺寸信息时,按照默认的位置信息和尺寸信息展示该面板。When there is no location information and size information in the panel, the panel is displayed according to the default location information and size information.
  4. 根据权利要求3所述的方法,其特征在于,所述判断该面板中是否存在位置信息和尺寸信息的步骤,包括:The method according to claim 3, wherein the step of determining whether location information and size information are present in the panel comprises:
    判断该面板是否具有目标成员;Determine if the panel has a target member;
    如果是,确定该面板中存在位置信息和尺寸信息;其中,所述位置信息包括该面板在所述网格布局组件中的坐标信息,所述尺寸信息包括该面板的宽度和高度。If so, determining that there is location information and size information in the panel; wherein the location information includes coordinate information of the panel in the grid layout component, the size information including a width and a height of the panel.
  5. 根据权利要求3所述的方法,其特征在于,所述网格布局组件在展示该面板的步骤之前,所述方法还包括:The method of claim 3, wherein before the step of displaying the panel, the method further comprises:
    将预先设置的初始化信息传递给所述网格布局组件,对所述网格布局组件进行初始化,以使所述面板页面与所述面板页面所在界面的尺寸相适应。The preset initialization information is passed to the grid layout component, and the grid layout component is initialized to adapt the panel page to the size of the interface where the panel page is located.
  6. 根据权利要求1或2所述的方法,其特征在于,所述网格布局组件为响应式网格布局组件。The method of claim 1 or 2 wherein the grid layout component is a responsive grid layout component.
  7. 根据权利要求6所述的方法,其特征在于,所述电子终端中预存有与面板页面所在界面的尺寸对应的布局信息;所述方法还包括:The method according to claim 6, wherein the electronic terminal prestores layout information corresponding to the size of the interface where the panel page is located; the method further includes:
    在检测到所述面板页面所在界面的尺寸发生改变后,获取所述界面改变后的尺寸;After detecting that the size of the interface where the panel page is located is changed, obtaining the changed size of the interface;
    查找与所述改变后的尺寸对应的布局信息,并根据该布局信息重新绘制所述面板页面。Finding layout information corresponding to the changed size, and redrawing the panel page according to the layout information.
  8. 根据权利要求7所述的方法,其特征在于,所述方法还包括:The method of claim 7, wherein the method further comprises:
    预先建立所述面板页面所在界面的尺寸与布局信息的对应关系。Corresponding relationship between the size of the interface where the panel page is located and the layout information is established in advance.
  9. 根据权利要求1或2所述的方法,其特征在于,所述预设操作包括拖曳操作或缩放操作。The method according to claim 1 or 2, wherein the preset operation comprises a drag operation or a zoom operation.
  10. 一种页面展示装置,其特征在于,应用于电子终端,所述电子终端包括基于React的网格布局组件,所述网格布局组件用于展示包括至少一个面板的面板页面,所述装置包括:A page display device, characterized by being applied to an electronic terminal, the electronic terminal comprising a React-based grid layout component, the grid layout component for displaying a panel page including at least one panel, the device comprising:
    操作响应模块,配置成响应对面板页面中目标面板的预设操作,将所述目标面板在所述预设操作被执行后的目标位置信息和目标尺寸信息传递给所述网格布局组件;The operation response module is configured to, in response to the preset operation of the target panel in the panel page, transmit the target location information and the target size information of the target panel after the preset operation is performed to the grid layout component;
    布局信息计算模块,配置成控制所述网格布局组件根据所述目标位置信息和所述目标尺寸信息计算得到所述面板页面的目标布局信息;a layout information calculation module, configured to control the grid layout component to calculate target layout information of the panel page according to the target location information and the target size information;
    展示模块,配置成根据所述目标布局信息对所述面板页面的状态进行更新,使所述网格布局组件对所述面板页面进行重新绘制,从而按照所述目标布局信息对所述面板页面中的各个面板进行展示。a display module, configured to update a state of the panel page according to the target layout information, so that the grid layout component re-renders the panel page, so that the target layout information is used in the panel page. Each panel is displayed.
  11. 根据权利要求10所述的装置,其特征在于,所述布局信息计算模块配置成:The device according to claim 10, wherein the layout information calculation module is configured to:
    控制所述网格布局组件将所述目标位置信息和所述目标尺寸信息保存到所述目标布局信息中;Controlling the grid layout component to save the target location information and the target size information into the target layout information;
    针对所述面板页面中除所述目标面板之外的每个面板,根据该面板的位置信息、尺寸信息及所述目标位置信息和目标尺寸信息,判断该面板和所述目标面板是否存在重叠区域;Determining whether there is an overlapping area between the panel and the target panel according to location information, size information, and the target location information and the target size information of the panel in the panel page except the target panel. ;
    若不存在重叠区域,则将该面板的位置信息和尺寸信息保存到所述目标布局信息中;If there is no overlapping area, the location information and the size information of the panel are saved in the target layout information;
    若存在重叠区域,则对该面板的位置信息进行调整,直至该面板与所述目标面板不存在重叠区域,再将该面板当前的位置信息和尺寸信息保存到所述目标布局信息中。If there is an overlapping area, the position information of the panel is adjusted until there is no overlapping area between the panel and the target panel, and the current position information and size information of the panel are saved in the target layout information.
  12. 根据权利要求10或11所述的装置,其特征在于,所述电子终端与服务器通信连接,所述装置还包括:The device according to claim 10 or 11, wherein the electronic terminal is in communication connection with a server, the device further comprising:
    判断模块,配置成所述网格布局组件接收所述服务器发送的面板页面,并遍历所述面板页面中的每个面板,判断该面板中是否存在位置信息和尺寸信息;a judging module configured to receive the panel page sent by the server, and traverse each panel in the panel page to determine whether location information and size information exist in the panel;
    第一展示模块,配置成当该面板中存在位置信息和尺寸信息时,根据该位置信息和尺寸信息展示该面板;a first display module configured to display the panel according to the location information and the size information when location information and size information are present in the panel;
    第二展示模块,配置成当该面板中不存在位置信息和尺寸信息时,按照默认的位置信息和尺寸信息展示该面板。The second display module is configured to display the panel according to the default location information and the size information when the location information and the size information are not present in the panel.
  13. 根据权利要求12所述的装置,其特征在于,所述判断模块配置成:判断该面板是否具有目标成员;The device according to claim 12, wherein the determining module is configured to: determine whether the panel has a target member;
    如果是,确定该面板中存在位置信息和尺寸信息;其中,所述位置信息包括该面板在所述网格布局组件中的坐标信息,所述尺寸信息包括该面板的宽度和高度。If so, determining that there is location information and size information in the panel; wherein the location information includes coordinate information of the panel in the grid layout component, the size information including a width and a height of the panel.
  14. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device of claim 12, wherein the device further comprises:
    初始化模块,配置成将预先设置的初始化信息传递给所述网格布局组件,对所述网格布局组件进行初始化,以使所述面板页面与所述面板页面所在界面的尺寸相适应。And an initialization module configured to: pass pre-set initialization information to the grid layout component, and initialize the grid layout component to adapt the panel page to a size of an interface of the panel page.
  15. 根据权利要求10或11所述的装置,其特征在于,所述网格布局组件为响应式网格布局组件;The apparatus according to claim 10 or 11, wherein the grid layout component is a responsive grid layout component;
    所述预设操作包括拖曳操作或缩放操作。The preset operation includes a drag operation or a zoom operation.
  16. 根据权利要求15所述的装置,其特征在于,所述电子终端中预存有与面板页面所在界面的尺寸对应的布局信息;所述装置还包括:The device according to claim 15, wherein the electronic terminal prestores layout information corresponding to the size of the interface where the panel page is located; the device further includes:
    尺寸获取模块,配置成在检测到所述面板页面所在界面的尺寸发生改变后,获取所述界面改变后的尺寸;a size obtaining module configured to acquire a size of the changed interface after detecting that a size of an interface of the panel page is changed;
    重绘模块,配置成查找与所述改变后的尺寸对应的布局信息,并根据该布局信息重新绘制所述面板页面。The redrawing module is configured to find layout information corresponding to the changed size, and redraw the panel page according to the layout information.
  17. 根据权利要求16所述的装置,其特征在于,所述装置还包括:The device according to claim 16, wherein the device further comprises:
    关系建立模块,配置成预先建立所述面板页面所在界面的尺寸与布局信息的对应关系。The relationship establishing module is configured to pre-establish a correspondence between the size of the interface where the panel page is located and the layout information.
  18. 一种电子终端,其特征在于,所述电子终端包括存储器、处理器、基于React的网格布局组件及权利要求10或17所述的页面展示装置;所述网格布局组件用于展示包括至少一个面板的面板页面,所述页面展示装置存储在所述存储器中,并被所述处理器控制执行。An electronic terminal, comprising: a memory, a processor, a React-based grid layout component, and the page display apparatus according to claim 10 or 17, wherein the grid layout component is configured to include at least A panel page of a panel, the page display device being stored in the memory and executed by the processor.
  19. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被执行时实现权利要求1-9任意一项所述的方法。A computer readable storage medium having stored thereon a computer program, wherein the computer program is executed to implement the method of any of claims 1-9.
PCT/CN2018/085155 2018-01-02 2018-04-28 Page display method and device, electronic terminal, and computer storage medium WO2019134309A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810000758.3 2018-01-02
CN201810000758.3A CN108073438B (en) 2018-01-02 2018-01-02 Page display method and device and electronic terminal

Publications (1)

Publication Number Publication Date
WO2019134309A1 true WO2019134309A1 (en) 2019-07-11

Family

ID=62156344

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/085155 WO2019134309A1 (en) 2018-01-02 2018-04-28 Page display method and device, electronic terminal, and computer storage medium

Country Status (2)

Country Link
CN (1) CN108073438B (en)
WO (1) WO2019134309A1 (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111125466B (en) * 2018-11-01 2023-11-17 百度在线网络技术(北京)有限公司 Instrument panel layout method and device
CN109408191A (en) * 2018-11-06 2019-03-01 深圳乐信软件技术有限公司 Method for updating pages, device, equipment and storage medium
CN109408764B (en) * 2018-11-28 2021-03-02 南京赛克蓝德网络科技有限公司 Page area dividing method, device, computing equipment and medium
CN112445555A (en) * 2019-08-29 2021-03-05 北京国双科技有限公司 Grid layout adjusting method and device
CN110704087A (en) * 2019-09-30 2020-01-17 浙江大搜车软件技术有限公司 Page generation method and device, computer equipment and storage medium
CN111179862B (en) * 2019-12-30 2021-05-28 掌阅科技股份有限公司 Refreshing method of display page, reader and computer storage medium
CN111190681A (en) * 2019-12-31 2020-05-22 华为技术有限公司 Display interface adaptation method, display interface adaptation design method and electronic equipment
CN111399823B (en) * 2020-02-28 2023-11-24 浪潮软件科技有限公司 Page component layout method, system and foreground terminal
CN111464697B (en) * 2020-03-31 2021-09-14 联想(北京)有限公司 Control method and device and electronic equipment
CN112199132A (en) * 2020-09-01 2021-01-08 北京声智科技有限公司 Page layout method and device
CN112347403B (en) * 2020-10-26 2022-11-15 长沙市到家悠享网络科技有限公司 Page checking method, device, equipment and storage medium
CN112711457A (en) * 2021-01-05 2021-04-27 北京字跳网络技术有限公司 Method and device for field drawing and electronic equipment
CN113569176A (en) * 2021-07-15 2021-10-29 深圳云之家网络有限公司 Portal layout method and device, computer equipment and storage medium
CN114217725A (en) * 2021-12-15 2022-03-22 深圳市海浦蒙特科技有限公司 Drawing method, device, equipment and medium based on Qt graphic view frame
CN114217782B (en) * 2022-02-22 2022-05-27 深圳市明源云科技有限公司 Method, device, equipment and medium for automatically generating interactive page
CN116126298A (en) * 2023-04-19 2023-05-16 北京尽微致广信息技术有限公司 Object layout processing method, device and computer readable medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110086A (en) * 2009-12-28 2011-06-29 北大方正集团有限公司 Method and system enabling layout object to be automatically adjusted along with layout
CN103164197A (en) * 2011-12-14 2013-06-19 中兴通讯股份有限公司 User interface (UI) distribution self-adaption method, mobile device and distribution generating device
US20150007044A1 (en) * 2013-06-27 2015-01-01 Samsung Electronics Co., Ltd. Display mode of electronic device
CN105608084A (en) * 2014-11-14 2016-05-25 北大方正集团有限公司 Regulation method and device of webpage page layout
CN105824900A (en) * 2016-03-14 2016-08-03 传线网络科技(上海)有限公司 Page display system based on react-native

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103941963B (en) * 2014-04-29 2018-03-09 福建星网视易信息系统有限公司 A kind of method and its device of adjust automatically page layout

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102110086A (en) * 2009-12-28 2011-06-29 北大方正集团有限公司 Method and system enabling layout object to be automatically adjusted along with layout
CN103164197A (en) * 2011-12-14 2013-06-19 中兴通讯股份有限公司 User interface (UI) distribution self-adaption method, mobile device and distribution generating device
US20150007044A1 (en) * 2013-06-27 2015-01-01 Samsung Electronics Co., Ltd. Display mode of electronic device
CN105608084A (en) * 2014-11-14 2016-05-25 北大方正集团有限公司 Regulation method and device of webpage page layout
CN105824900A (en) * 2016-03-14 2016-08-03 传线网络科技(上海)有限公司 Page display system based on react-native

Also Published As

Publication number Publication date
CN108073438B (en) 2020-05-12
CN108073438A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
WO2019134309A1 (en) Page display method and device, electronic terminal, and computer storage medium
WO2020155785A1 (en) Screen adaptive display method, electronic device and computer storage medium
US20180232135A1 (en) Method for window displaying on a mobile terminal and mobile terminal
US20180189083A1 (en) Method and device for operating target application on corresponding equipment
US20140351689A1 (en) Methods and systems for displaying webpage content
US20110234820A1 (en) Electronic device and method for controlling cameras using the same
US11487424B2 (en) Method for displaying content, terminal, and storage medium
CN111161385A (en) Image rendering method and device, electronic equipment and storage medium
US20160196034A1 (en) Touchscreen Control Method and Terminal Device
US8887059B2 (en) Method and apparatus of locally controlling display content of a remote system
CN113282262B (en) Control method and device for projection display picture, mobile terminal and storage medium
US20160216885A1 (en) Method and device for processing touch operation of electronic apparatus
KR20190047142A (en) Method and apparatus for setting background of ui control, and terminal
CN109240591B (en) Interface display method and device
JP5563703B2 (en) Content distribution apparatus, content distribution method, content distribution program, and terminal program
US20240281111A1 (en) Virtual interface operation method, head-mounted display device, and computer-readable medium
CN108399058B (en) Signal display control method and device
US20160357395A1 (en) Information processing device, non-transitory computer-readable recording medium storing an information processing program, and information processing method
JP7006081B2 (en) Graph drawing system, calculation server, graph drawing system control method, and program for calculation server
JP6339550B2 (en) Terminal program, terminal device, and terminal control method
CN109766530B (en) Method and device for generating chart frame, storage medium and electronic equipment
CN110737417A (en) demonstration equipment and display control method and device of marking line thereof
US20160170945A1 (en) Information processing device, information processing method, and computer program product
CN116360896A (en) Display control method, device, equipment and readable storage medium
CN108845776B (en) Control method and device and storage medium

Legal Events

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

Ref document number: 18898926

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18898926

Country of ref document: EP

Kind code of ref document: A1