WO2023000867A1 - Page configuration method and apparatus - Google Patents

Page configuration method and apparatus Download PDF

Info

Publication number
WO2023000867A1
WO2023000867A1 PCT/CN2022/098598 CN2022098598W WO2023000867A1 WO 2023000867 A1 WO2023000867 A1 WO 2023000867A1 CN 2022098598 W CN2022098598 W CN 2022098598W WO 2023000867 A1 WO2023000867 A1 WO 2023000867A1
Authority
WO
WIPO (PCT)
Prior art keywords
canvas
partition
canvas partition
data structure
component
Prior art date
Application number
PCT/CN2022/098598
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 WO2023000867A1 publication Critical patent/WO2023000867A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04812Interaction techniques based on cursor appearance or behaviour, e.g. being affected by the presence of displayed objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus

Definitions

  • the present disclosure relates to the field of computer technology, in particular to a page configuration method and device.
  • Page visualization construction refers to dragging and dropping page components into the page canvas to build a complete page.
  • Existing page visualization building methods usually nest page components in the page canvas to build different pages.
  • the disclosure provides a page configuration method, device, electronic equipment and computer-readable storage medium.
  • a page configuration method including: in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition, adding the data structure of the first canvas partition to to the data structure of the second canvas partition; acquire the location information of the first canvas partition indicated by the trigger instruction; and display the first canvas partition at the page position indicated by the location information.
  • adding the data structure of the first canvas partition to the data structure of the second canvas partition includes: Responsive to detecting a trigger instruction for indicating that the first canvas partition is added to the second canvas partition, judging whether there is a preset field in the data structure of the second canvas partition; A preset field, adding the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition.
  • the page configuration method includes: in response to determining that a preset field exists in the data structure of the second canvas partition, presenting information for characterizing that the second canvas partition has a nesting function.
  • the page configuration method includes: adding component information of the preset component to the data structure of the target canvas partition in response to detecting an add instruction indicating to add the preset component to the target canvas partition, wherein , the target canvas partition includes: the first canvas partition or the second canvas partition.
  • the page configuration method includes: acquiring positional relationship information between the preset component indicated by the adding instruction and existing components in the target canvas partition; presenting the preset component in the target canvas partition according to the positional relationship information .
  • the component information includes a component attribute field of a preset component; the page configuration method includes: determining an attribute value of the component attribute field according to user input information.
  • a page configuration device including: a detection unit configured to, in response to detecting a trigger instruction indicating to add a first canvas partition to a second canvas partition, add the first The data structure of the canvas partition is added to the data structure of the second canvas partition; the first acquisition unit is configured to obtain the position information of the first canvas partition indicated by the trigger instruction; the display unit is configured to display the first canvas partition at the page location indicated by the location information.
  • the detection unit includes: a judging module configured to, in response to detecting a trigger instruction indicating adding the first canvas partition to the second canvas partition, judge whether the data structure of the second canvas partition is There is a preset field; an adding module configured to add the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition in response to determining that the preset field exists in the data structure of the second canvas partition .
  • the page configuration apparatus includes: a first presenting unit configured to, in response to determining that a preset field exists in the data structure of the second canvas partition, present information for representing that the second canvas partition has a nesting function.
  • the page configuration includes: a loading unit configured to add component information of the preset component to the target canvas partition in response to detecting an adding instruction indicating that the preset component is added to the target canvas partition.
  • the target canvas partition includes: the first canvas partition or the second canvas partition.
  • the page configuration device further includes: a second acquisition unit configured to acquire positional relationship information between the preset component indicated by the adding instruction and the existing component in the target canvas partition; the second presentation unit, It is configured to present preset components in the target canvas partition according to the positional relationship information.
  • the component information includes a component attribute field of a preset component
  • the page configuration device includes: a determining unit configured to determine an attribute value of the component attribute field according to user input information.
  • an embodiment of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores information executable by the at least one processor.
  • An instruction the instruction is executed by at least one processor, so that the at least one processor can implement the page configuration method provided in the first aspect when executed.
  • an embodiment of the present disclosure provides a computer-readable storage medium on which computer instructions are stored, wherein the computer instructions are used to enable the computer to implement the page provided in the first aspect configuration method.
  • an embodiment of the present disclosure provides a computer program product including a computer program, and when the computer program is executed by a processor, the page configuration method as provided in the first aspect can be implemented.
  • FIG. 1 is an exemplary system architecture diagram to which embodiments of the present disclosure can be applied;
  • FIG. 2 is a flowchart of an embodiment of a page configuration method according to the present disclosure
  • FIG. 3 is a flowchart of another embodiment of a page configuration method according to the present disclosure.
  • FIG. 4 is a flowchart of another embodiment of a page configuration method according to the present disclosure.
  • FIG. 5 is a schematic diagram of an application scenario of the page configuration method according to the present disclosure.
  • Fig. 6 is a schematic structural diagram of an embodiment of a page configuration device according to the present disclosure.
  • FIG. 7 is a block diagram of an electronic device for implementing the page configuration method of the embodiment of the present disclosure.
  • FIG. 1 shows an exemplary system architecture 100 to which embodiments of the service processing method or service processing device of the present disclosure can be applied.
  • a system architecture 100 may include terminal devices 101 , 102 , 103 , a network 104 and a server 105 .
  • the network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the server 105 .
  • Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.
  • terminal devices 101 , 102 , 103 Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages and the like.
  • the terminal devices 101, 102, and 103 may be user terminal devices, on which various client applications may be installed, such as image acquisition applications, video acquisition applications, image recognition applications, video recognition applications, playback applications, search applications, financial applications, etc.
  • Terminal devices 101, 102, 103 may be various electronic devices with display screens and support for receiving server messages, including but not limited to smartphones, tablet computers, e-book readers, electronic players, laptop computers and desktop computers etc.
  • the terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices, and when the terminal devices 101, 102, 103 are software, they may be installed in the electronic devices listed above. It may be implemented as multiple software or software modules (for example, multiple software modules for providing distributed services), or as a single software or software module. No specific limitation is made here.
  • the server 105 After the server 105 detects the trigger instruction indicating to add the first canvas partition to the second canvas partition, it adds the data structure of the first canvas partition to the data structure of the second canvas partition, and obtains the data structure indicated by the trigger instruction. position information of the first canvas partition, and display the first canvas partition at the page position indicated by the position information.
  • the service processing methods provided by the embodiments of the present disclosure can be executed by the terminal devices 101, 102, 103, or by the server 105, and correspondingly, the service processing apparatus can be set on the terminal devices 101, 102, 103 In, can also be set in the server 105.
  • terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
  • the page configuration method and device provided by the present disclosure include: adding the data structure of the first canvas partition to the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition
  • the location information of the first canvas partition indicated by the trigger instruction is obtained; and the first canvas partition is displayed at the page position indicated by the location information, which can improve the efficiency of configuring the page.
  • a process 200 according to an embodiment of the page configuration method of the present disclosure is shown, including the following steps:
  • Step 201 adding the data structure of the first canvas partition to the data structure of the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition.
  • the first canvas partition may be added to the second canvas partition.
  • the partition data structure is added to the data structure of the second canvas partition.
  • the trigger instruction for instructing to add the first canvas partition to the second canvas partition may be an instruction for the user to drag and drop the first canvas partition on the page displaying the canvas partition to the second canvas partition through the mouse, It may also be an instruction to add the first canvas partition to the second canvas partition, etc., input by the user through voice or text input.
  • the data structure of the canvas partition can be an array, a record form, etc., and the data structure contains the component information of each component contained in the canvas partition, such as component identification, component style, component data source, component properties and other information related to the component.
  • Step 202 acquiring position information of the first canvas partition indicated by the trigger instruction.
  • the position information of the first canvas partition indicated by the trigger instruction is obtained.
  • the position information may be when the user drags the first canvas partition on the page displaying the canvas partition to the second canvas partition by using the mouse.
  • Step 203 displaying the first canvas partition at the page position indicated by the position information.
  • the first canvas partition may be displayed at the page position indicated by the location information.
  • the data structure of the first canvas partition is added to the data structure of the second canvas partition ;
  • FIG. 3 shows a process 300 according to another embodiment of the page configuration method of the present disclosure, including the following steps:
  • Step 301 in response to detecting a trigger instruction for instructing to add the first canvas partition to the second canvas partition, determine whether there is a preset field in the data structure of the second canvas partition.
  • the execution subject of the page configuration method detects a trigger instruction for instructing to add the first canvas partition to the second canvas partition, determine the second canvas partition Whether there is a preset field in the data structure of the canvas partition, and the preset field is a field reserved in the data structure of the canvas partition to which other canvas partition data structures can be added.
  • Step 302 in response to determining that there is a preset field in the data structure of the second canvas partition, adding the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition.
  • the data structure of the first canvas partition is added to the preset field of the data structure of the second canvas partition, so as to achieve The first canvas section is nested within the canvas section.
  • Step 303 acquiring position information of the first canvas partition indicated by the trigger instruction.
  • Step 304 displaying the first canvas partition on the page position indicated by the position information.
  • steps 303 and 304 in this embodiment are consistent with the descriptions of steps 202 and 203, and will not be repeated here.
  • the page configuration method provided in this embodiment adds the method of judging whether there is a preset field in the data structure of the second canvas partition, and determines whether there is a preset field in the data structure of the second canvas partition. field, adding the data structure of the first canvas partition to the preset field of the data structure of the second canvas partition can improve the efficiency and convenience of nesting the first canvas partition in the second canvas partition.
  • the page configuration method includes: in response to determining that a preset field exists in the data structure of the second canvas partition, presenting information for indicating that the second canvas partition has a nesting function.
  • information indicating that the second canvas partition has a nesting function may be displayed in the display area of the second canvas partition, so that During the process of adding the first canvas partition to the second canvas partition, it indicates that the current second canvas partition can nest other canvas partitions. For example, when the user drags the first canvas partition in the displayed page to the area of the second canvas partition with the mouse, a display for representing the second canvas can be displayed in the area of the second canvas partition or any area in the displayed page. Canvas partitions can nest information of other canvas partitions to prompt users to drag the first canvas partition to the current canvas partition.
  • FIG. 4 shows a process 400 according to another embodiment of the page configuration method of the present disclosure, including the following steps:
  • Step 401 in response to detecting an adding instruction indicating to add a preset component to a target canvas partition, add component information of the preset component to the data structure of the target canvas partition, wherein the target canvas partition includes: a first Canvas partition or second canvas partition.
  • the component information of the preset component Add to the data structure of the target canvas partition for example, add information such as the component ID, component style, component data source, and component properties of the preset component to the component structure of the target canvas partition.
  • the target canvas partition can be the first canvas partition or the second canvas partition.
  • the adding instruction used to indicate to add the preset component to the target canvas partition can be an instruction that the user drags and drops the preset component in the component collection to the target canvas partition through the mouse, or it can be input by the user through voice or text Instructions to add the preset components in the component collection to the target canvas partition entered in the same way.
  • Step 402 Add the data structure of the first canvas partition to the data structure of the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition.
  • Step 403 acquiring position information of the first canvas partition indicated by the trigger instruction.
  • Step 404 displaying the first canvas partition on the page position indicated by the position information.
  • Step 402, Step 403, and Step 404 in this embodiment are consistent with the descriptions of Step 201, Step 202, and Step 203, and will not be repeated here.
  • the page configuration method provided in this embodiment can add components to the first canvas partition or the second canvas partition, and add the component information to the data structure of the target canvas partition, so that the data structure of the target canvas partition can record the canvas partition Information about the components in .
  • the page configuration method further includes: acquiring positional relationship information between the preset component indicated by the adding instruction and existing components in the target canvas partition; presenting the preset component in the target canvas partition according to the positional relationship information.
  • the positional relationship information between the preset component indicated by the add instruction and the existing components in the target canvas partition can be obtained, and the preset component can be presented in the target canvas partition according to the positional relationship information .
  • the position relationship information can be the first coordinates of the position where the mouse finally stays on the page where the target canvas partition is located when the user drags the preset component to the target canvas partition through the mouse, and the existing components in the target canvas partition.
  • the relationship between the second coordinates of the positions on the page (for example, the first coordinate is on the left side of the second coordinate, the difference between the first coordinate and the second coordinate on the horizontal axis and the vertical axis, etc.), or it can be determined by the user through
  • the preset component is added to the target canvas partition input by means of voice or text input, the positional relationship between the preset component and the existing components in the target canvas partition.
  • the component information includes a component property field of a preset component
  • the page configuration method includes: determining the property value of the component property field according to user input information.
  • the component information of the preset component includes the component attribute field of the preset component.
  • the property field may include the prohibition or permission of the specified function for representing the preset component, for example, the property field may include a click field, or Drag field, by configuring the attribute value in the click field, you can configure whether the default component allows click events, or by configuring the attribute value in the drag field, you can configure whether the preset component allows drag events.
  • configure the attribute value in the component attribute field of the preset component configure the attribute value in the component attribute field of the preset component.
  • the attributes of the components in the canvas partitions can be updated to improve the versatility and flexibility of the canvas partitions.
  • the data structure of canvas partition A remains unchanged , add the data structure of canvas partition A to the preset field of the data structure of canvas partition B, and delete the original canvas partition of canvas partition A so that it is only displayed in canvas partition B. If the data structure of canvas partition A also contains preset fields, you can continue to embed new partitions into partition A.
  • the data structure of the canvas partition may be a structure as shown in FIG. 5( b ).
  • the user can continue to drag the canvas partition C to the canvas partition B through the mouse, and the coordinates of the mouse on the current page when dragging the canvas partition C and the coordinates of the canvas partition A
  • the positional relationship between Canvas Partition C and Canvas Partition A is displayed to remind the user of the page layout status in the current page being configured.
  • Each canvas partition can contain page components. Page components are divided into three types: local static components, local dynamic components, and network components. Each component can also nest other components, and event tags can be set for each component (including : Click event, drag event: such as dragstart, dragend, dragover, drop, mousedown and other events in the progressive framework Vue used to build the user interface), after the nesting of the component or the nesting of the canvas partition to which the component belongs, The functions that the component can implement can be modified based on the component's event label to improve the versatility of nesting, component combination or canvas partition.
  • the positional relationship between the component and the components existing in the canvas partition can be determined based on the coordinates of the dragged mouse, and the layout of the components in the canvas can be dynamically updated.
  • the present disclosure provides an embodiment of a page configuration device, which is similar to the method embodiments shown in FIG. 2 , FIG. 3 and FIG. 4 Correspondingly, the device can be specifically applied to various electronic devices.
  • the page configuration device of this embodiment includes: a detection unit 601 , a first acquisition unit 602 , and a display unit 603 .
  • the detection unit is configured to add the data structure of the first canvas partition to the data structure of the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition;
  • the first obtaining unit is configured to obtain the position information of the first canvas partition indicated by the trigger instruction;
  • the display unit is configured to display the first canvas partition at the page position indicated by the position information.
  • the detection unit includes: a judging module configured to, in response to detecting a trigger instruction indicating adding the first canvas partition to the second canvas partition, judge whether the data structure of the second canvas partition is There is a preset field; an adding module configured to add the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition in response to determining that the preset field exists in the data structure of the second canvas partition .
  • the page configuration apparatus includes: a first presenting unit configured to, in response to determining that a preset field exists in the data structure of the second canvas partition, present information for representing that the second canvas partition has a nesting function.
  • the page configuration includes: a loading unit configured to add component information of the preset component to the target canvas partition in response to detecting an adding instruction indicating that the preset component is added to the target canvas partition.
  • the target canvas partition includes: the first canvas partition or the second canvas partition.
  • the page configuration device further includes: a second acquisition unit configured to acquire positional relationship information between the preset component indicated by the adding instruction and the existing component in the target canvas partition; the second presentation unit, It is configured to present preset components in the target canvas partition according to the positional relationship information.
  • the component information includes a component attribute field of a preset component; the device includes: a determining unit configured to determine an attribute value of the component attribute field according to user input information.
  • Each unit in the above device 600 corresponds to the steps in the method described with reference to FIG. 2 , FIG. 3 and FIG. 4 . Therefore, the operations, features, and attainable technical effects described above for the method for generating information are also applicable to the device 600 and the units contained therein, and will not be repeated here.
  • the present disclosure also provides an electronic device and a readable storage medium.
  • FIG. 7 it is a block diagram of an electronic device 700 according to the page configuration method of the embodiment of the present disclosure.
  • Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers.
  • Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices.
  • the components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
  • the electronic device includes: one or more processors 701, a memory 702, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces.
  • the various components are interconnected using different buses and can be mounted on a common motherboard or otherwise as desired.
  • the processor may process instructions executed within the electronic device, including instructions stored in or on the memory, to display graphical information of a GUI on an external input/output device such as a display device coupled to an interface.
  • multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired.
  • multiple electronic devices may be connected, with each device providing some of the necessary operations (eg, as a server array, a set of blade servers, or a multi-processor system).
  • a processor 701 is taken as an example.
  • the memory 702 is a non-transitory computer-readable storage medium provided in the present disclosure.
  • the memory stores instructions executable by at least one processor, so that the at least one processor executes the page configuration method provided in the present disclosure.
  • the non-transitory computer-readable storage medium of the present disclosure stores computer instructions, and the computer instructions are used to cause a computer to execute the page configuration method provided in the present disclosure.
  • the memory 702 as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions/modules corresponding to the page configuration method in the embodiments of the present disclosure (for example, attached The detection unit 601, the first acquisition unit 602, and the display unit 603 shown in FIG. 6).
  • the processor 701 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 702, that is, implements the page configuration method in the above method embodiments.
  • the memory 702 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; data etc.
  • the memory 702 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices.
  • the storage 702 may optionally include storages that are remotely located relative to the processor 701, and these remote storages may be connected to electronic devices for extracting video clips through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the electronic device of the page configuration method may further include: an input device 703 , an output device 704 and a bus 705 .
  • the processor 701, the memory 702, the input device 703, and the output device 704 may be connected through a bus 705 or in other ways, and the connection through the bus 705 is taken as an example in FIG. 7 .
  • the input device 703 can receive input numbers or character information, and generate key signal inputs related to user settings and function control of electronic equipment for extracting video clips, such as touch screens, keypads, mice, trackpads, touchpads, pointers, etc. input devices such as sticks, one or more mouse buttons, trackballs, joysticks, etc.
  • the output device 704 may include a display device, an auxiliary lighting device (eg, LED), a tactile feedback device (eg, a vibration motor), and the like.
  • the display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
  • Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
  • machine-readable medium and “computer-readable medium” refer to any computer program product, apparatus, and/or means for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals.
  • machine-readable signal refers to any signal used to provide machine instructions and/or data to a programmable processor.
  • the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer.
  • a display device e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor
  • a keyboard and pointing device eg, a mouse or a trackball
  • Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
  • the systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system.
  • the components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
  • a computer system may include clients and servers.
  • Clients and servers are generally remote from each other and typically interact through a communication network.
  • the relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.

Landscapes

  • Engineering & Computer Science (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 disclosure discloses a page configuration method and apparatus, which relate to the technical field of computers. The method comprises: in response to detecting a trigger instruction for instructing to add a first canvas partition to a second canvas partition, and adding a data structure of the first canvas partition to a data structure of the second canvas partition; acquiring location information of the first canvas partition indicated by the trigger instruction; and displaying the first canvas partition at the page location indicated by the location information.

Description

页面配置方法和装置Page configuration method and device
相关申请的交叉引用Cross References to Related Applications
本专利申请要求于2021年07月21日提交的、申请号为202110840927.6、发明名称为“页面配置方法和装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。This patent application claims the priority of the Chinese patent application with the application number 202110840927.6 and the title of the invention "page configuration method and device" filed on July 21, 2021, the entire content of which is incorporated by reference in this application .
技术领域technical field
本公开涉及计算机技术领域,具体涉及页面配置方法和装置。The present disclosure relates to the field of computer technology, in particular to a page configuration method and device.
背景技术Background technique
页面可视化搭建是指将页面组件拖拽至页面画布中,以构建出完整的页面。现有的页面可视化搭建方法通常会在页面画布中进行页面组件之间的嵌套,并构建出不同的页面。Page visualization construction refers to dragging and dropping page components into the page canvas to build a complete page. Existing page visualization building methods usually nest page components in the page canvas to build different pages.
现有的对页面组件之间进行嵌套以构建出不同页面的方法,存在页面配置效率低的问题。The existing method of nesting page components to construct different pages has the problem of low page configuration efficiency.
发明内容Contents of the invention
本公开提供了一种页面配置方法、装置、电子设备以及计算机可读存储介质。The disclosure provides a page configuration method, device, electronic equipment and computer-readable storage medium.
根据本公开的第一方面,提供了一种页面配置方法,包括:响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将第一画布分区的数据结构添加至第二画布分区的数据结构中;获取触发指令所指示的第一画布分区的位置信息;将第一画布分区显示于位置信息所指示的页面位置。According to the first aspect of the present disclosure, there is provided a page configuration method, including: in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition, adding the data structure of the first canvas partition to to the data structure of the second canvas partition; acquire the location information of the first canvas partition indicated by the trigger instruction; and display the first canvas partition at the page position indicated by the location information.
在一些实施例中,响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将第一画布分区的数据结构添加至第二画布分区的数据结构中,包括:响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,判断第二画布分区的数据结构中是否存在预设字段;响应于确定第二画布分区的数据结构中存在预设字段,将第一画布分区的数据结构添加至第二画布分区的数据结构中的预设字段中。In some embodiments, in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition, adding the data structure of the first canvas partition to the data structure of the second canvas partition includes: Responsive to detecting a trigger instruction for indicating that the first canvas partition is added to the second canvas partition, judging whether there is a preset field in the data structure of the second canvas partition; A preset field, adding the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition.
在一些实施例中,页面配置方法包括:响应于确定第二画布分区的数据结构中存在预设字段,呈现用于表征第二画布分区具有嵌套功能的信息。In some embodiments, the page configuration method includes: in response to determining that a preset field exists in the data structure of the second canvas partition, presenting information for characterizing that the second canvas partition has a nesting function.
在一些实施例中,页面配置方法包括:响应于检测到用于指示将预设组件添加至目标画布分区中的添加指令,将预设组件的组件信息添加至目标画布分区的数据结构中,其中,目标画布分区包括:第一画布分区或第二画布分区。In some embodiments, the page configuration method includes: adding component information of the preset component to the data structure of the target canvas partition in response to detecting an add instruction indicating to add the preset component to the target canvas partition, wherein , the target canvas partition includes: the first canvas partition or the second canvas partition.
在一些实施例中,页面配置方法包括:获取添加指令所指示的预设组件与目标画布分区中的、已存在的组件的位置关系信息;根据位置关系信息,在目标画布分区中呈现预设组件。In some embodiments, the page configuration method includes: acquiring positional relationship information between the preset component indicated by the adding instruction and existing components in the target canvas partition; presenting the preset component in the target canvas partition according to the positional relationship information .
在一些实施例中,组件信息中包括预设组件的组件属性字段;页面配置方法包括:根据用户输入信息,确定组件属性字段的属性值。In some embodiments, the component information includes a component attribute field of a preset component; the page configuration method includes: determining an attribute value of the component attribute field according to user input information.
根据本公开的第二方面,提供了一种页面配置装置,包括:检测单元,被配置为响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将第一画布分区的数据结构添加至第二画布分区的数据结构中;第一获取单元,被配置为获取触发指令所指示的第一画布分区的位置信息;显示单元,被配置为将第一画布分区显示于位置信息所指示的页面位置。According to a second aspect of the present disclosure, there is provided a page configuration device, including: a detection unit configured to, in response to detecting a trigger instruction indicating to add a first canvas partition to a second canvas partition, add the first The data structure of the canvas partition is added to the data structure of the second canvas partition; the first acquisition unit is configured to obtain the position information of the first canvas partition indicated by the trigger instruction; the display unit is configured to display the first canvas partition at the page location indicated by the location information.
在一些实施例中,检测单元,包括:判断模块,被配置为响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,判断第二画布分区的数据结构中是否存在预设字段;添加模块,被配置为响应于确定第二画布分区的数据结构中存在预设字段,将第一画布分区的数据结构添加至第二画布分区的数据结构中的预设字段中。In some embodiments, the detection unit includes: a judging module configured to, in response to detecting a trigger instruction indicating adding the first canvas partition to the second canvas partition, judge whether the data structure of the second canvas partition is There is a preset field; an adding module configured to add the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition in response to determining that the preset field exists in the data structure of the second canvas partition .
在一些实施例中,页面配置装置包括:第一呈现单元,被配置为响应于确定第二画布分区的数据结构中存在预设字段,呈现用于表征第二画布分区具有嵌套功能的信息。In some embodiments, the page configuration apparatus includes: a first presenting unit configured to, in response to determining that a preset field exists in the data structure of the second canvas partition, present information for representing that the second canvas partition has a nesting function.
在一些实施例中,页面配置包括:加载单元,被配置为响应于检测到用于指示将预设组件添加至目标画布分区中的添加指令,将预设组件的组件信息添加至目标画布分区的数据结构中,其中,目标画布分区包括:第一画布分区或第二画布分区。In some embodiments, the page configuration includes: a loading unit configured to add component information of the preset component to the target canvas partition in response to detecting an adding instruction indicating that the preset component is added to the target canvas partition. In the data structure, the target canvas partition includes: the first canvas partition or the second canvas partition.
在一些实施例中,页面配置装置还包括:第二获取单元,被配置为获取添加指令所指示的预设组件与目标画布分区中的、已存在的组件的位置关系信息;第二呈现单元,被配置为根据位置关系信息,在目标画布分区中呈现预设组件。In some embodiments, the page configuration device further includes: a second acquisition unit configured to acquire positional relationship information between the preset component indicated by the adding instruction and the existing component in the target canvas partition; the second presentation unit, It is configured to present preset components in the target canvas partition according to the positional relationship information.
在一些实施例中,组件信息中包括预设组件的组件属性字段;页面配置装置包括:确定单元,被配置为根据用户输入信息,确定组件属性字段的属性值。In some embodiments, the component information includes a component attribute field of a preset component; the page configuration device includes: a determining unit configured to determine an attribute value of the component attribute field according to user input information.
根据本公开的第三方面,本公开的实施例提供了一种电子设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中,存储器存储有可被至少一个处理器执行的指令,该指令被至少一个处理器执行,以使至少一个处理器执行时能够实现如第一方面提供的页面配置方法。According to a third aspect of the present disclosure, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores information executable by the at least one processor. An instruction, the instruction is executed by at least one processor, so that the at least one processor can implement the page configuration method provided in the first aspect when executed.
根据本公开的第四方面,本公开的实施例提供了一种计算机可读存储介质,其上存储有计算机指令,其中,所述计算机指令用于使所述计算机实现如第一方面提供的页面配置方法。According to a fourth aspect of the present disclosure, an embodiment of the present disclosure provides a computer-readable storage medium on which computer instructions are stored, wherein the computer instructions are used to enable the computer to implement the page provided in the first aspect configuration method.
根据本公开的第五方面,本公开的实施例提供了一种包括计算机程序的计算机程序产品,该计算机程序在被处理器执行时能够实现如第一方面提供的页面配置方法。According to a fifth aspect of the present disclosure, an embodiment of the present disclosure provides a computer program product including a computer program, and when the computer program is executed by a processor, the page configuration method as provided in the first aspect can be implemented.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will be readily understood through the following description.
附图说明Description of drawings
附图用于更好地理解本方案,不构成对本公开的限定。其中:The accompanying drawings are used to better understand the present solution, and do not constitute a limitation to the present disclosure. in:
图1是本公开的实施例可以应用于其中的示例性系统架构图;FIG. 1 is an exemplary system architecture diagram to which embodiments of the present disclosure can be applied;
图2是根据本公开的页面配置方法的一个实施例的流程图;FIG. 2 is a flowchart of an embodiment of a page configuration method according to the present disclosure;
图3是根据本公开的页面配置方法的另一个实施例的流程图;FIG. 3 is a flowchart of another embodiment of a page configuration method according to the present disclosure;
图4是根据本公开的页面配置方法的又一个实施例的流程图;FIG. 4 is a flowchart of another embodiment of a page configuration method according to the present disclosure;
图5是根据本公开的页面配置方法的一个应用场景的示意图;FIG. 5 is a schematic diagram of an application scenario of the page configuration method according to the present disclosure;
图6是根据本公开的页面配置装置的一个实施例的结构示意图;Fig. 6 is a schematic structural diagram of an embodiment of a page configuration device according to the present disclosure;
图7是用来实现本公开实施例的页面配置方法的电子设备的框图。FIG. 7 is a block diagram of an electronic device for implementing the page configuration method of the embodiment of the present disclosure.
具体实施方式detailed description
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围和精神。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
图1示出了可以应用本公开的业务处理方法或业务处理装置的实施例的示例性系统架构100。FIG. 1 shows an exemplary system architecture 100 to which embodiments of the service processing method or service processing device of the present disclosure can be applied.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1 , a system architecture 100 may include terminal devices 101 , 102 , 103 , a network 104 and a server 105 . The network 104 is used as a medium for providing communication links between the terminal devices 101 , 102 , 103 and the server 105 . Network 104 may include various connection types, such as wires, wireless communication links, or fiber optic cables, among others.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103可以是用户终端设备,其上可以安装有各种客户端应用,例如图像获取类应用、视频获取类应用、图像识别类应用、视频识别类应用、播放类应用、搜索类应用、金融类应用等。Users can use terminal devices 101 , 102 , 103 to interact with server 105 via network 104 to receive or send messages and the like. The terminal devices 101, 102, and 103 may be user terminal devices, on which various client applications may be installed, such as image acquisition applications, video acquisition applications, image recognition applications, video recognition applications, playback applications, search applications, financial applications, etc.
终端设备101、102、103可以是具有显示屏并且支持接收服务器消息的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、电子播放器、膝上型便携计算机和台式计算机等等。 Terminal devices 101, 102, 103 may be various electronic devices with display screens and support for receiving server messages, including but not limited to smartphones, tablet computers, e-book readers, electronic players, laptop computers and desktop computers etc.
终端设备101、102、103可以是硬件,也可以是软件。当终端设备101、102、103为硬件时,可以是各种电子设备,当终端设备101、102、103为软件时,可以安装在上述所列举的电子设备中。其可以实现成多个软件或软件模块(例如用来提供分布式服务的多个软件模块),也可以实现成单个软件或软件模块。在此不做具体限定。The terminal devices 101, 102, and 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices, and when the terminal devices 101, 102, 103 are software, they may be installed in the electronic devices listed above. It may be implemented as multiple software or software modules (for example, multiple software modules for providing distributed services), or as a single software or software module. No specific limitation is made here.
当服务器105检测到用于指示将第一画布分区添加至第二画布分区中的触发指令后,将第一画布分区的数据结构添加至第二画布分区的数据结构中,获取触发指令所指示的第一画布分区的位置信息,并将第一画布分 区显示于该位置信息所指示的页面位置。After the server 105 detects the trigger instruction indicating to add the first canvas partition to the second canvas partition, it adds the data structure of the first canvas partition to the data structure of the second canvas partition, and obtains the data structure indicated by the trigger instruction. position information of the first canvas partition, and display the first canvas partition at the page position indicated by the position information.
需要说明的是,本公开的实施例所提供的业务处理方法可以由终端设备101、102、103执行、也可以由服务器105执行,相应地,业务处理装置可以设置于终端设备101、102、103中、也可以设置于服务器105中。It should be noted that the service processing methods provided by the embodiments of the present disclosure can be executed by the terminal devices 101, 102, 103, or by the server 105, and correspondingly, the service processing apparatus can be set on the terminal devices 101, 102, 103 In, can also be set in the server 105.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
本公开提供的页面配置方法、装置,包括:响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将第一画布分区的数据结构添加至第二画布分区的数据结构中;获取触发指令所指示的第一画布分区的位置信息;将第一画布分区显示于位置信息所指示的页面位置,可以提高配置页面的效率。The page configuration method and device provided by the present disclosure include: adding the data structure of the first canvas partition to the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition In the data structure, the location information of the first canvas partition indicated by the trigger instruction is obtained; and the first canvas partition is displayed at the page position indicated by the location information, which can improve the efficiency of configuring the page.
继续参考图2,示出了根据本公开的页面配置方法的一个实施例的流程200,包括以下步骤:Continuing to refer to FIG. 2 , a process 200 according to an embodiment of the page configuration method of the present disclosure is shown, including the following steps:
步骤201,响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将第一画布分区的数据结构添加至第二画布分区的数据结构中。 Step 201 , adding the data structure of the first canvas partition to the data structure of the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition.
在本实施例中,当页面配置方法的执行主体(例如图1所示的服务器105)检测到用于指示将第一画布分区添加至第二画布分区中的触发指令后,可以将第一画布分区的数据结构添加至第二画布分区的数据结构中。其中,用于指示将第一画布分区添加至第二画布分区中的触发指令,可以是用户通过鼠标,将显示画布分区的页面中的第一画布分区拖拽至第二画布分区中的指令,也可以是用户通过语音或者文字输入等方式输入的将第一画布分区添加到第二画布分区中的指令等。画布分区的数据结构可以是数组、记录表单等,数据结构中包含该画布分区所包含的各个组件的组件信息,如,组件标识、组件样式、组件数据源、组件属性等与组件相关的信息。In this embodiment, after the execution subject of the page configuration method (for example, the server 105 shown in FIG. 1 ) detects a trigger instruction for instructing to add the first canvas partition to the second canvas partition, the first canvas partition may be added to the second canvas partition. The partition data structure is added to the data structure of the second canvas partition. Wherein, the trigger instruction for instructing to add the first canvas partition to the second canvas partition may be an instruction for the user to drag and drop the first canvas partition on the page displaying the canvas partition to the second canvas partition through the mouse, It may also be an instruction to add the first canvas partition to the second canvas partition, etc., input by the user through voice or text input. The data structure of the canvas partition can be an array, a record form, etc., and the data structure contains the component information of each component contained in the canvas partition, such as component identification, component style, component data source, component properties and other information related to the component.
步骤202,获取触发指令所指示的第一画布分区的位置信息。 Step 202, acquiring position information of the first canvas partition indicated by the trigger instruction.
在本实施例中,获取触发指令所指示的第一画布分区的位置信息,该位置信息可以是用户通过鼠标,将显示画布分区的页面中的第一画布分区拖拽至第二画布分区时,鼠标最终停留在页面中的位置的坐标信息,或者 可以是用户通过语音或者文字输入等方式输入的将第一画布分区添加至第二画布分区中的位置信息,如,将第一画布分区添加至第二画布分区中的左半边区域,或者中部区域等。In this embodiment, the position information of the first canvas partition indicated by the trigger instruction is obtained. The position information may be when the user drags the first canvas partition on the page displaying the canvas partition to the second canvas partition by using the mouse. The coordinate information of the position where the mouse finally stays on the page, or the position information of adding the first canvas partition to the second canvas partition input by the user through voice or text input, for example, adding the first canvas partition to the The left half area in the second canvas partition, or the middle area, etc.
步骤203,将第一画布分区显示于位置信息所指示的页面位置。 Step 203, displaying the first canvas partition at the page position indicated by the position information.
在本实施例中,将第一画布分区添加至第二画布分区后,可以在位置信息所指示的页面位置处显示第一画布分区。In this embodiment, after the first canvas partition is added to the second canvas partition, the first canvas partition may be displayed at the page position indicated by the location information.
本实施例提供的页面配置方法,响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将第一画布分区的数据结构添加至第二画布分区的数据结构中;获取触发指令所指示的第一画布分区的位置信息;将第一画布分区显示于位置信息所指示的页面位置,可以在页面可视化搭建过程中,从画布分区的粒度进行元素(即,画布分区、或者画布分区中的各个组件)的添加,并且基于构建画布分区的底层数据(即,画布分区的数据结构)实现元素的添加以完成页面配置,可以避免基于显示层级添加元素造成的需要额外调试以及组装的页面配置效率低的问题。In the page configuration method provided in this embodiment, in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition, the data structure of the first canvas partition is added to the data structure of the second canvas partition ; Obtain the position information of the first canvas partition indicated by the trigger command; display the first canvas partition at the page position indicated by the position information, and perform elements from the granularity of the canvas partition during the page visualization building process (that is, the canvas partition , or each component in the canvas partition), and add elements based on the underlying data of the construction of the canvas partition (that is, the data structure of the canvas partition) to complete the page configuration, which can avoid the need for additional debugging caused by adding elements based on the display level And the problem of low efficiency of assembled page configuration.
继续参考图3,示出了根据本公开的页面配置方法的另一个实施例的流程300,包括以下步骤:Continue to refer to FIG. 3 , which shows a process 300 according to another embodiment of the page configuration method of the present disclosure, including the following steps:
步骤301,响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,判断第二画布分区的数据结构中是否存在预设字段。 Step 301 , in response to detecting a trigger instruction for instructing to add the first canvas partition to the second canvas partition, determine whether there is a preset field in the data structure of the second canvas partition.
在本实施例中,当页面配置方法的执行主体(例如图1所示的服务器105)检测到用于指示将第一画布分区添加至第二画布分区中的触发指令后,判断第二画布分区的数据结构中是否存在预设字段,该预设字段是画布分区的数据结构中预留的可以添加其他画布分区的数据结构的字段。In this embodiment, when the execution subject of the page configuration method (for example, the server 105 shown in FIG. 1 ) detects a trigger instruction for instructing to add the first canvas partition to the second canvas partition, determine the second canvas partition Whether there is a preset field in the data structure of the canvas partition, and the preset field is a field reserved in the data structure of the canvas partition to which other canvas partition data structures can be added.
步骤302,响应于确定第二画布分区的数据结构中存在预设字段,将第一画布分区的数据结构添加至第二画布分区的数据结构中的预设字段中。 Step 302, in response to determining that there is a preset field in the data structure of the second canvas partition, adding the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition.
在本实施例中,当确定第二画布分区的数据结构中存在预设字段,则将第一画布分区的数据结构添加至第二画布分区的数据结构的预设字段中,以实现在第二画布分区中嵌套第一画布分区。In this embodiment, when it is determined that there is a preset field in the data structure of the second canvas partition, the data structure of the first canvas partition is added to the preset field of the data structure of the second canvas partition, so as to achieve The first canvas section is nested within the canvas section.
步骤303,获取触发指令所指示的第一画布分区的位置信息。 Step 303, acquiring position information of the first canvas partition indicated by the trigger instruction.
步骤304,将第一画布分区显示于位置信息所指示的页面位置。 Step 304, displaying the first canvas partition on the page position indicated by the position information.
本实施例中对步骤303、步骤304的描述与步骤202、步骤203的描述一致,此处不再赘述。The descriptions of steps 303 and 304 in this embodiment are consistent with the descriptions of steps 202 and 203, and will not be repeated here.
本实施例提供的页面配置方法,相比于图2描述的实施例,增加了判断第二画布分区的数据结构中是否存在预设字段,并在确定第二画布分区的数据结构中存在预设字段后,将第一画布分区的数据结构添加至第二画布分区的数据结构的预设字段中,可以提高在第二画布分区中嵌套第一画布分区的效率以及便捷度。Compared with the embodiment described in FIG. 2, the page configuration method provided in this embodiment adds the method of judging whether there is a preset field in the data structure of the second canvas partition, and determines whether there is a preset field in the data structure of the second canvas partition. field, adding the data structure of the first canvas partition to the preset field of the data structure of the second canvas partition can improve the efficiency and convenience of nesting the first canvas partition in the second canvas partition.
可选地,页面配置方法包括:响应于确定第二画布分区的数据结构中存在预设字段,呈现用于表征第二画布分区具有嵌套功能的信息。Optionally, the page configuration method includes: in response to determining that a preset field exists in the data structure of the second canvas partition, presenting information for indicating that the second canvas partition has a nesting function.
在本实施例中,当确定第二画布分区的数据结构中存在预设字段后,可以在第二画布分区的显示区域显示用于表征该第二画布分区具有嵌套功能的信息,以在将第一画布分区添加至第二画布分区的过程中,指示当前第二画布分区可以嵌套其他画布分区。例如,在用户通过鼠标将显示页面中的第一画布分区拖拽至第二画布分区的区域中时,可以在第二画布分区的区域或者显示页面中的任何区域,显示用于表征该第二画布分区可以嵌套其他画布分区的信息,以提示用户可以将第一画布分区拖拽至当前画布分区。In this embodiment, after it is determined that there is a preset field in the data structure of the second canvas partition, information indicating that the second canvas partition has a nesting function may be displayed in the display area of the second canvas partition, so that During the process of adding the first canvas partition to the second canvas partition, it indicates that the current second canvas partition can nest other canvas partitions. For example, when the user drags the first canvas partition in the displayed page to the area of the second canvas partition with the mouse, a display for representing the second canvas can be displayed in the area of the second canvas partition or any area in the displayed page. Canvas partitions can nest information of other canvas partitions to prompt users to drag the first canvas partition to the current canvas partition.
继续参考图4,示出了根据本公开的页面配置方法的又一个实施例的流程400,包括以下步骤:Continue to refer to FIG. 4 , which shows a process 400 according to another embodiment of the page configuration method of the present disclosure, including the following steps:
步骤401,响应于检测到用于指示将预设组件添加至目标画布分区中的添加指令,将预设组件的组件信息添加至目标画布分区的数据结构中,其中,目标画布分区包括:第一画布分区或第二画布分区。 Step 401, in response to detecting an adding instruction indicating to add a preset component to a target canvas partition, add component information of the preset component to the data structure of the target canvas partition, wherein the target canvas partition includes: a first Canvas partition or second canvas partition.
在本实施例中,当页面配置方法的执行主体(例如图1所示的服务器105)检测到用于指示将预设组件添加至目标画布分区中的添加指令后,将预设组件的组件信息添加至目标画布分区的数据结构中,例如将预设组件的组件标识、组件样式、组件数据来源、组件属性等信息添加至该目标画布分区的组件结构中。目标画布分区可以是第一画布分区也可以是第二画布分区。用于指示将预设组件添加至目标画布分区中的添加指令,可以是用户通过鼠标,将组件集合中的预设组件拖拽至目标画布分区中的指令,也可以是用户通过语音或者文字输入等方式输入的将组件集合中的预 设组件添加到目标画布分区中的指令等。In this embodiment, after the execution subject of the page configuration method (for example, the server 105 shown in FIG. 1 ) detects an add instruction for instructing to add the preset component to the target canvas partition, the component information of the preset component Add to the data structure of the target canvas partition, for example, add information such as the component ID, component style, component data source, and component properties of the preset component to the component structure of the target canvas partition. The target canvas partition can be the first canvas partition or the second canvas partition. The adding instruction used to indicate to add the preset component to the target canvas partition can be an instruction that the user drags and drops the preset component in the component collection to the target canvas partition through the mouse, or it can be input by the user through voice or text Instructions to add the preset components in the component collection to the target canvas partition entered in the same way.
步骤402,响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将第一画布分区的数据结构添加至第二画布分区的数据结构中。Step 402: Add the data structure of the first canvas partition to the data structure of the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition.
步骤403,获取触发指令所指示的第一画布分区的位置信息。 Step 403, acquiring position information of the first canvas partition indicated by the trigger instruction.
步骤404,将第一画布分区显示于位置信息所指示的页面位置。 Step 404, displaying the first canvas partition on the page position indicated by the position information.
本实施例中对步骤402、步骤403、步骤404的描述与步骤201、步骤202、步骤203的描述一致,此处不再赘述。The descriptions of Step 402, Step 403, and Step 404 in this embodiment are consistent with the descriptions of Step 201, Step 202, and Step 203, and will not be repeated here.
本实施例提供的页面配置方法,可以在第一画布分区或者第二画布分区中添加组件,并将组件的信息添加至目标画布分区的数据结构中,可以使目标画布分区的数据结构记录画布分区中的组件的信息。The page configuration method provided in this embodiment can add components to the first canvas partition or the second canvas partition, and add the component information to the data structure of the target canvas partition, so that the data structure of the target canvas partition can record the canvas partition Information about the components in .
可选地,页面配置方法还包括:获取添加指令所指示的预设组件与目标画布分区中的、已存在的组件的位置关系信息;根据位置关系信息,在目标画布分区中呈现预设组件。Optionally, the page configuration method further includes: acquiring positional relationship information between the preset component indicated by the adding instruction and existing components in the target canvas partition; presenting the preset component in the target canvas partition according to the positional relationship information.
在本实施例中,可以获取添加指令所指示的预设组件与目标画布分区中的、已存在的组件之间的位置关系信息,并根据位置关系信息,在目标画布分区中呈现出预设组件。该位置关系信息可以是用户通过鼠标,将预设组件拖拽至目标画布分区时,鼠标最终停留在目标画布分区所在页面中的位置的第一坐标、与目标画布分区中已存在的组件在该页面中的位置的第二坐标之间的关系(如,第一坐标在第二坐标的左侧、第一坐标与第二坐标横轴以及纵轴坐标值之差等),或者可以是用户通过语音或者文字输入等方式输入的将预设组件添加至目标画布分区后,预设组件与目标画布分区中已存在的组件之间的位置关系。In this embodiment, the positional relationship information between the preset component indicated by the add instruction and the existing components in the target canvas partition can be obtained, and the preset component can be presented in the target canvas partition according to the positional relationship information . The position relationship information can be the first coordinates of the position where the mouse finally stays on the page where the target canvas partition is located when the user drags the preset component to the target canvas partition through the mouse, and the existing components in the target canvas partition. The relationship between the second coordinates of the positions on the page (for example, the first coordinate is on the left side of the second coordinate, the difference between the first coordinate and the second coordinate on the horizontal axis and the vertical axis, etc.), or it can be determined by the user through After the preset component is added to the target canvas partition input by means of voice or text input, the positional relationship between the preset component and the existing components in the target canvas partition.
可选地,组件信息中包括预设组件的组件属性字段;页面配置方法方法包括:根据用户输入信息,确定组件属性字段的属性值。Optionally, the component information includes a component property field of a preset component; the page configuration method includes: determining the property value of the component property field according to user input information.
在本实施例中,预设组件的组件信息中包括预设组件的组件属性字段,在将预设组件添加至目标画布分区之前、或者将预设组件添加至目标画布分区之后,可以根据用户需求或者用户的输入信息,配置预设组件的组件属性字段中的属性值,其中,属性字段可以包括用于表征预设组件对指定功能的禁止或者允许,例如,属性字段中可以包括点击字段、或者拖 拽字段,通过配置点击字段中的属性值可以配置预设组件是否允许点击事件,或者通过配置拖拽字段中的属性值可以配置预设组件是否允许拖拽事件。根据用户需求或者用户的输入信息,配置预设组件的组件属性字段中的属性值。以使预设组件具有通用性(即,可以不需要修改实现组件的底层程序即实现预设组件基于用户需求的灵活配置),以及使目标画布分区在添加至其他画布分区,或者其他画布分区添加至该目标画布分区后,可以基于用户对更新后的(即,画布分区嵌套后的)画布分区的展示或者使用需求,更新画布分区中组件的属性,提高画布分区的通用性以及灵活性。In this embodiment, the component information of the preset component includes the component attribute field of the preset component. Before adding the preset component to the target canvas partition, or after adding the preset component to the target canvas partition, you can Or the user's input information, configure the property value in the component property field of the preset component, wherein the property field may include the prohibition or permission of the specified function for representing the preset component, for example, the property field may include a click field, or Drag field, by configuring the attribute value in the click field, you can configure whether the default component allows click events, or by configuring the attribute value in the drag field, you can configure whether the preset component allows drag events. According to the user's requirement or the user's input information, configure the attribute value in the component attribute field of the preset component. To make the preset component universal (that is, to realize the flexible configuration of the preset component based on user needs without modifying the underlying program that implements the component), and to make the target canvas partition be added to other canvas partitions, or other canvas partitions to be added After reaching the target canvas partition, based on the user's display or use requirements for the updated (ie, nested canvas partitions) canvas partitions, the attributes of the components in the canvas partitions can be updated to improve the versatility and flexibility of the canvas partitions.
在一些应用场景中,如图5(a)所示,在进行页面配置时,当检测到用户通过鼠标将页面中的画布分区A拖拽至分区B时,画布分区A的数据结构保持不变,将画布分区A的数据结构添加至画布分区B的数据结构的预设字段中,并且将画布分区A原有的画布分区消除,使其仅显示在画布分区B中。如果画布分区A的数据结构中也包含预设字段,则可以继续向分区A中嵌入新的分区。其中,画布分区的数据结构可以是如图5(b)所示的结构。In some application scenarios, as shown in Figure 5(a), during page configuration, when it is detected that the user drags canvas partition A in the page to partition B through the mouse, the data structure of canvas partition A remains unchanged , add the data structure of canvas partition A to the preset field of the data structure of canvas partition B, and delete the original canvas partition of canvas partition A so that it is only displayed in canvas partition B. If the data structure of canvas partition A also contains preset fields, you can continue to embed new partitions into partition A. Wherein, the data structure of the canvas partition may be a structure as shown in FIG. 5( b ).
画布分区A在被鼠标拖拽过程中,基于检测到的鼠标的坐标位置,计算当前画布分区A被拖拽至的位置,若当前拖拽位置进入画布分区B的分区位置,则(由于检测到画布分区B中有预设字段)显示画布分区B中可以嵌套其他画布分区的标识,以提示用户可以将画布分区布局在当前位置。When canvas partition A is being dragged by the mouse, based on the detected coordinate position of the mouse, calculate the position to which the current canvas partition A is dragged. If the current drag position enters the partition position of canvas partition B, then (due to the detected There is a preset field in canvas partition B) to display the logo of other canvas partitions that can be nested in canvas partition B, to remind the user that the canvas partition can be laid out at the current position.
画布分区A被拖拽/嵌套完成后,用户可以通过鼠标继续向画布分区B中拖拽画布分区C,并且可以根据拖拽画布分区C时鼠标在当前页面中的坐标与画布分区A的坐标之间的位置关系,显示画布分区C与画布分区A之间的位置设置关系,以提示用户正在配置的当前页面中的页面布局状态。After the canvas partition A is dragged/nested, the user can continue to drag the canvas partition C to the canvas partition B through the mouse, and the coordinates of the mouse on the current page when dragging the canvas partition C and the coordinates of the canvas partition A The positional relationship between Canvas Partition C and Canvas Partition A is displayed to remind the user of the page layout status in the current page being configured.
每一个画布分区中可以包含页面组件,页面组件分为三种:本地静态组件、本地动态组件、网络组件,每个组件中也可以嵌套其他组件,可以为每一个组件设置事件标签(可以包括:点击事件,拖拽事件:如用于构建用户界面的渐进式框架Vue中的dragstart、dragend、dragover、drop、mousedown等事件),在组件嵌套后、或者组件所属的画布分区嵌套后, 可以基于组件的事件标签修改组件能够实现的功能,提高嵌套后、组件组合或者画布分区的通用性。Each canvas partition can contain page components. Page components are divided into three types: local static components, local dynamic components, and network components. Each component can also nest other components, and event tags can be set for each component (including : Click event, drag event: such as dragstart, dragend, dragover, drop, mousedown and other events in the progressive framework Vue used to build the user interface), after the nesting of the component or the nesting of the canvas partition to which the component belongs, The functions that the component can implement can be modified based on the component's event label to improve the versatility of nesting, component combination or canvas partition.
在将组件拖拽至某个画布分区的过程中,可以基于拖拽鼠标的坐标确定该组件与已存在于画布分区中的组件之间的位置关系,并动态更新该画布中组件的布局。During the process of dragging a component to a certain canvas partition, the positional relationship between the component and the components existing in the canvas partition can be determined based on the coordinates of the dragged mouse, and the layout of the components in the canvas can be dynamically updated.
进一步参考图6,作为对上述各图所示方法的实现,本公开提供了一种页面配置装置的一个实施例,该装置实施例与图2、图3和图4所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。Further referring to FIG. 6 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a page configuration device, which is similar to the method embodiments shown in FIG. 2 , FIG. 3 and FIG. 4 Correspondingly, the device can be specifically applied to various electronic devices.
如图6所示,本实施例的页面配置装置,包括:检测单元601、第一获取单元602、显示单元603。其中,检测单元,被配置为响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将第一画布分区的数据结构添加至第二画布分区的数据结构中;第一获取单元,被配置为获取触发指令所指示的第一画布分区的位置信息;显示单元,被配置为将第一画布分区显示于位置信息所指示的页面位置。As shown in FIG. 6 , the page configuration device of this embodiment includes: a detection unit 601 , a first acquisition unit 602 , and a display unit 603 . Wherein, the detection unit is configured to add the data structure of the first canvas partition to the data structure of the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition; The first obtaining unit is configured to obtain the position information of the first canvas partition indicated by the trigger instruction; the display unit is configured to display the first canvas partition at the page position indicated by the position information.
在一些实施例中,检测单元,包括:判断模块,被配置为响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,判断第二画布分区的数据结构中是否存在预设字段;添加模块,被配置为响应于确定第二画布分区的数据结构中存在预设字段,将第一画布分区的数据结构添加至第二画布分区的数据结构中的预设字段中。In some embodiments, the detection unit includes: a judging module configured to, in response to detecting a trigger instruction indicating adding the first canvas partition to the second canvas partition, judge whether the data structure of the second canvas partition is There is a preset field; an adding module configured to add the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition in response to determining that the preset field exists in the data structure of the second canvas partition .
在一些实施例中,页面配置装置包括:第一呈现单元,被配置为响应于确定第二画布分区的数据结构中存在预设字段,呈现用于表征第二画布分区具有嵌套功能的信息。In some embodiments, the page configuration apparatus includes: a first presenting unit configured to, in response to determining that a preset field exists in the data structure of the second canvas partition, present information for representing that the second canvas partition has a nesting function.
在一些实施例中,页面配置包括:加载单元,被配置为响应于检测到用于指示将预设组件添加至目标画布分区中的添加指令,将预设组件的组件信息添加至目标画布分区的数据结构中,其中,目标画布分区包括:第一画布分区或第二画布分区。In some embodiments, the page configuration includes: a loading unit configured to add component information of the preset component to the target canvas partition in response to detecting an adding instruction indicating that the preset component is added to the target canvas partition. In the data structure, the target canvas partition includes: the first canvas partition or the second canvas partition.
在一些实施例中,页面配置装置还包括:第二获取单元,被配置为获取添加指令所指示的预设组件与目标画布分区中的、已存在的组件的位置关系信息;第二呈现单元,被配置为根据位置关系信息,在目标画布分区中呈现预设组件。In some embodiments, the page configuration device further includes: a second acquisition unit configured to acquire positional relationship information between the preset component indicated by the adding instruction and the existing component in the target canvas partition; the second presentation unit, It is configured to present preset components in the target canvas partition according to the positional relationship information.
在一些实施例中,组件信息中包括预设组件的组件属性字段;装置包括:确定单元,被配置为根据用户输入信息,确定组件属性字段的属性值。In some embodiments, the component information includes a component attribute field of a preset component; the device includes: a determining unit configured to determine an attribute value of the component attribute field according to user input information.
上述装置600中的各单元与参考图2、图3和图4描述的方法中的步骤相对应。由此上文针对用于生成信息的方法描述的操作、特征及所能达到的技术效果同样适用于装置600及其中包含的单元,在此不再赘述。Each unit in the above device 600 corresponds to the steps in the method described with reference to FIG. 2 , FIG. 3 and FIG. 4 . Therefore, the operations, features, and attainable technical effects described above for the method for generating information are also applicable to the device 600 and the units contained therein, and will not be repeated here.
根据本公开的实施例,本公开还提供了一种电子设备和一种可读存储介质。According to the embodiments of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium.
如图7所示,是根据本公开实施例的页面配置方法的电子设备700的框图。电子设备旨在表示各种形式的数字计算机,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。As shown in FIG. 7 , it is a block diagram of an electronic device 700 according to the page configuration method of the embodiment of the present disclosure. Electronic device is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. Electronic devices may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are by way of example only, and are not intended to limit implementations of the disclosure described and/or claimed herein.
如图7所示,该电子设备包括:一个或多个处理器701、存储器702,以及用于连接各部件的接口,包括高速接口和低速接口。各个部件利用不同的总线互相连接,并且可以被安装在公共主板上或者根据需要以其它方式安装。处理器可以对在电子设备内执行的指令进行处理,包括存储在存储器中或者存储器上以在外部输入/输出装置(诸如,耦合至接口的显示设备)上显示GUI的图形信息的指令。在其它实施方式中,若需要,可以将多个处理器和/或多条总线与多个存储器和多个存储器一起使用。同样,可以连接多个电子设备,各个设备提供部分必要的操作(例如,作为服务器阵列、一组刀片式服务器、或者多处理器系统)。图7中以一个处理器701为例。As shown in FIG. 7, the electronic device includes: one or more processors 701, a memory 702, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and can be mounted on a common motherboard or otherwise as desired. The processor may process instructions executed within the electronic device, including instructions stored in or on the memory, to display graphical information of a GUI on an external input/output device such as a display device coupled to an interface. In other implementations, multiple processors and/or multiple buses may be used with multiple memories and multiple memories, if desired. Likewise, multiple electronic devices may be connected, with each device providing some of the necessary operations (eg, as a server array, a set of blade servers, or a multi-processor system). In FIG. 7, a processor 701 is taken as an example.
存储器702即为本公开所提供的非瞬时计算机可读存储介质。其中,该存储器存储有可由至少一个处理器执行的指令,以使该至少一个处理器执行本公开所提供的页面配置方法。本公开的非瞬时计算机可读存储介质存储计算机指令,该计算机指令用于使计算机执行本公开所提供的页面配置方法。The memory 702 is a non-transitory computer-readable storage medium provided in the present disclosure. Wherein, the memory stores instructions executable by at least one processor, so that the at least one processor executes the page configuration method provided in the present disclosure. The non-transitory computer-readable storage medium of the present disclosure stores computer instructions, and the computer instructions are used to cause a computer to execute the page configuration method provided in the present disclosure.
存储器702作为一种非瞬时计算机可读存储介质,可用于存储非瞬时 软件程序、非瞬时计算机可执行程序以及模块,如本公开实施例中的页面配置方法对应的程序指令/模块(例如,附图6所示的检测单元601、第一获取单元602、显示单元603)。处理器701通过运行存储在存储器702中的非瞬时软件程序、指令以及模块,从而执行服务器的各种功能应用以及数据处理,即实现上述方法实施例中的页面配置方法。The memory 702, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs and modules, such as program instructions/modules corresponding to the page configuration method in the embodiments of the present disclosure (for example, attached The detection unit 601, the first acquisition unit 602, and the display unit 603 shown in FIG. 6). The processor 701 executes various functional applications and data processing of the server by running the non-transitory software programs, instructions and modules stored in the memory 702, that is, implements the page configuration method in the above method embodiments.
存储器702可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据用于提取视频片段的电子设备的使用所创建的数据等。此外,存储器702可以包括高速随机存取存储器,还可以包括非瞬时存储器,例如至少一个磁盘存储器件、闪存器件、或其他非瞬时固态存储器件。在一些实施例中,存储器702可选包括相对于处理器701远程设置的存储器,这些远程存储器可以通过网络连接至用于提取视频片段的电子设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 702 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application program required by at least one function; data etc. In addition, the memory 702 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the storage 702 may optionally include storages that are remotely located relative to the processor 701, and these remote storages may be connected to electronic devices for extracting video clips through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
页面配置方法的电子设备还可以包括:输入装置703、输出装置704以及总线705。处理器701、存储器702、输入装置703和输出装置704可以通过总线705或者其他方式连接,图7中以通过总线705连接为例。The electronic device of the page configuration method may further include: an input device 703 , an output device 704 and a bus 705 . The processor 701, the memory 702, the input device 703, and the output device 704 may be connected through a bus 705 or in other ways, and the connection through the bus 705 is taken as an example in FIG. 7 .
输入装置703可接收输入的数字或字符信息,以及产生与用于提取视频片段的电子设备的用户设置以及功能控制有关的键信号输入,例如触摸屏、小键盘、鼠标、轨迹板、触摸板、指示杆、一个或者多个鼠标按钮、轨迹球、操纵杆等输入装置。输出装置704可以包括显示设备、辅助照明装置(例如,LED)和触觉反馈装置(例如,振动电机)等。该显示设备可以包括但不限于,液晶显示器(LCD)、发光二极管(LED)显示器和等离子体显示器。在一些实施方式中,显示设备可以是触摸屏。The input device 703 can receive input numbers or character information, and generate key signal inputs related to user settings and function control of electronic equipment for extracting video clips, such as touch screens, keypads, mice, trackpads, touchpads, pointers, etc. input devices such as sticks, one or more mouse buttons, trackballs, joysticks, etc. The output device 704 may include a display device, an auxiliary lighting device (eg, LED), a tactile feedback device (eg, a vibration motor), and the like. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
此处描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、专用ASIC(专用集成电路)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输 入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein can be implemented in digital electronic circuitry, integrated circuit systems, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpreted on a programmable system including at least one programmable processor, the programmable processor Can be special-purpose or general-purpose programmable processor, can receive data and instruction from storage system, at least one input device, and at least one output device, and transmit data and instruction to this storage system, this at least one input device, and this at least one output device an output device.
这些计算程序(也称作程序、软件、软件应用、或者代码)包括可编程处理器的机器指令,并且可以利用高级过程和/或面向对象的编程语言、和/或汇编/机器语言来实施这些计算程序。如本文使用的,术语“机器可读介质”和“计算机可读介质”指的是用于将机器指令和/或数据提供给可编程处理器的任何计算机程序产品、设备、和/或装置(例如,磁盘、光盘、存储器、可编程逻辑装置(PLD)),包括,接收作为机器可读信号的机器指令的机器可读介质。术语“机器可读信号”指的是用于将机器指令和/或数据提供给可编程处理器的任何信号。These computing programs (also referred to as programs, software, software applications, or codes) include machine instructions for a programmable processor and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine language calculation program. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or means for providing machine instructions and/or data to a programmable processor ( For example, magnetic disks, optical disks, memories, programmable logic devices (PLDs), including machine-readable media that receive machine instructions as machine-readable signals. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide for interaction with the user, the systems and techniques described herein can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user. ); and a keyboard and pointing device (eg, a mouse or a trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and can be in any form (including Acoustic input, speech input or, tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., as a a user computer having a graphical user interface or web browser through which a user can interact with embodiments of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system can be interconnected by any form or medium of digital data communication, eg, a communication network. Examples of communication networks include: Local Area Network (LAN), Wide Area Network (WAN) and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。A computer system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行也可以顺序地执 行也可以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, each step described in the present disclosure can be executed in parallel, sequentially, or in a different order, as long as the desired result of the technical solution disclosed in the present disclosure can be achieved, no limitation is imposed herein.
上述具体实施方式,并不构成对本公开保护范围的限制。本领域技术人员应该明白的是,根据设计要求和其他因素,可以进行各种修改、组合、子组合和替代。任何在本公开的精神和原则之内所作的修改、等同替换和改进等,均应包含在本公开保护范围之内。The specific implementation manners described above do not limit the protection scope of the present disclosure. It should be apparent to those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made depending on design requirements and other factors. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present disclosure shall be included within the protection scope of the present disclosure.

Claims (15)

  1. 一种页面配置方法,包括:A page configuration method, comprising:
    响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将所述第一画布分区的数据结构添加至所述第二画布分区的数据结构中;adding the data structure of the first canvas partition to the data structure of the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition;
    获取所述触发指令所指示的所述第一画布分区的位置信息;Acquiring position information of the first canvas partition indicated by the trigger instruction;
    将所述第一画布分区显示于所述位置信息所指示的页面位置。Displaying the first canvas partition at the page position indicated by the position information.
  2. 根据权利要求1所述的方法,其中,所述响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将所述第一画布分区的数据结构添加至所述第二画布分区的数据结构中,包括:The method of claim 1 , wherein, in response to detecting a trigger indicating that a first canvas partition is added to a second canvas partition, adding the data structure of the first canvas partition to the The data structure of the second canvas partition includes:
    响应于检测到用于指示将所述第一画布分区添加至所述第二画布分区中的触发指令,判断所述第二画布分区的数据结构中是否存在预设字段;In response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition, determine whether there is a preset field in the data structure of the second canvas partition;
    响应于确定所述第二画布分区的数据结构中存在所述预设字段,将所述第一画布分区的数据结构添加至所述第二画布分区的数据结构中的预设字段中。In response to determining that the preset field exists in the data structure of the second canvas partition, adding the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition.
  3. 根据权利要求2所述的方法,其中,所述方法包括:The method according to claim 2, wherein said method comprises:
    响应于确定所述第二画布分区的数据结构中存在所述预设字段,呈现用于表征所述第二画布分区具有嵌套功能的信息。Responsive to determining that the preset field exists in the data structure of the second canvas partition, presenting information for characterizing that the second canvas partition has a nesting function.
  4. 根据权利要求1所述的方法,其中,所述方法包括:The method according to claim 1, wherein said method comprises:
    响应于检测到用于指示将预设组件添加至目标画布分区中的添加指令,将所述预设组件的组件信息添加至所述目标画布分区的数据结构中,其中,所述目标画布分区包括:所述第一画布分区或所述第二画布分区。Adding component information of the preset component to the data structure of the target canvas partition in response to detecting an adding instruction indicating to add the preset component to the target canvas partition, wherein the target canvas partition includes : the first canvas partition or the second canvas partition.
  5. 根据权利要求4所述的方法,其中,所述方法还包括:The method according to claim 4, wherein the method further comprises:
    获取所述添加指令所指示的所述预设组件与所述目标画布分区中的、 已存在的组件的位置关系信息;Obtaining positional relationship information between the preset component indicated by the adding instruction and an existing component in the target canvas partition;
    根据所述位置关系信息,在所述目标画布分区中呈现所述预设组件。According to the positional relationship information, the preset component is presented in the target canvas partition.
  6. 根据权利要求4所述的方法,其中,所述组件信息中包括所述预设组件的组件属性字段;所述方法包括:The method according to claim 4, wherein the component information includes a component attribute field of the preset component; the method comprises:
    根据用户输入信息,确定所述组件属性字段的属性值。Determine the attribute value of the component attribute field according to the information input by the user.
  7. 一种页面配置装置,包括:A page configuration device, comprising:
    检测单元,被配置为响应于检测到用于指示将第一画布分区添加至第二画布分区中的触发指令,将所述第一画布分区的数据结构添加至所述第二画布分区的数据结构中;A detection unit configured to add the data structure of the first canvas partition to the data structure of the second canvas partition in response to detecting a trigger instruction indicating to add the first canvas partition to the second canvas partition middle;
    第一获取单元,被配置为获取所述触发指令所指示的所述第一画布分区的位置信息;a first acquiring unit configured to acquire the position information of the first canvas partition indicated by the trigger instruction;
    显示单元,被配置为将所述第一画布分区显示于所述位置信息所指示的页面位置。The display unit is configured to display the first canvas partition at the page position indicated by the position information.
  8. 根据权利要求7所述的装置,其中,所述检测单元,包括:The device according to claim 7, wherein the detection unit comprises:
    判断模块,被配置为响应于检测到用于指示将所述第一画布分区添加至所述第二画布分区中的触发指令,判断所述第二画布分区的数据结构中是否存在预设字段;A judging module configured to, in response to detecting a trigger instruction indicating adding the first canvas partition to the second canvas partition, judge whether there is a preset field in the data structure of the second canvas partition;
    添加模块,被配置为响应于确定所述第二画布分区的数据结构中存在所述预设字段,将所述第一画布分区的数据结构添加至所述第二画布分区的数据结构中的预设字段中。An adding module configured to add the data structure of the first canvas partition to the preset field in the data structure of the second canvas partition in response to determining that the preset field exists in the data structure of the second canvas partition set field.
  9. 根据权利要求8所述的装置,其中,所述装置包括:The apparatus of claim 8, wherein the apparatus comprises:
    第一呈现单元,被配置为响应于确定所述第二画布分区的数据结构中存在所述预设字段,呈现用于表征所述第二画布分区具有嵌套功能的信息。The first presenting unit is configured to, in response to determining that the preset field exists in the data structure of the second canvas partition, present information for indicating that the second canvas partition has a nesting function.
  10. 根据权利要求7所述的装置,其中,所述装置包括:The apparatus according to claim 7, wherein said apparatus comprises:
    加载单元,被配置为响应于检测到用于指示将预设组件添加至目标画布分区中的添加指令,将所述预设组件的组件信息添加至所述目标画布分区的数据结构中,其中,所述目标画布分区包括:所述第一画布分区或所述第二画布分区。The loading unit is configured to add component information of the preset component to the data structure of the target canvas partition in response to detecting an adding instruction indicating to add the preset component to the target canvas partition, wherein, The target canvas partition includes: the first canvas partition or the second canvas partition.
  11. 根据权利要求10所述的装置,其中,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    第二获取单元,被配置为获取所述添加指令所指示的所述预设组件与所述目标画布分区中的、已存在的组件的位置关系信息;A second acquiring unit configured to acquire positional relationship information between the preset component indicated by the adding instruction and existing components in the target canvas partition;
    第二呈现单元,被配置为根据所述位置关系信息,在所述目标画布分区中呈现所述预设组件。The second presentation unit is configured to present the preset component in the target canvas partition according to the position relationship information.
  12. 根据权利要求10所述的装置,其中,所述组件信息中包括所述预设组件的组件属性字段;所述装置包括:The device according to claim 10, wherein the component information includes a component attribute field of the preset component; the device comprises:
    确定单元,被配置为根据用户输入信息,确定所述组件属性字段的属性值。The determining unit is configured to determine the attribute value of the component attribute field according to user input information.
  13. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及at least one processor; and
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-6中任一项所述的方法。The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform any one of claims 1-6. Methods.
  14. 一种存储有计算机指令的非瞬时计算机可读存储介质,其中,所述计算机指令用于使所述计算机执行权利要求1-6中任一项所述的方法。A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.
  15. 一种计算机程序产品,包括计算机程序,所述计算机程序在被处理器执行时实现权利要求1-6中任一项所述的方法。A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-6.
PCT/CN2022/098598 2021-07-21 2022-06-14 Page configuration method and apparatus WO2023000867A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110840927.6A CN115686293A (en) 2021-07-21 2021-07-21 Page configuration method and device
CN202110840927.6 2021-07-21

Publications (1)

Publication Number Publication Date
WO2023000867A1 true WO2023000867A1 (en) 2023-01-26

Family

ID=84979794

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/098598 WO2023000867A1 (en) 2021-07-21 2022-06-14 Page configuration method and apparatus

Country Status (2)

Country Link
CN (1) CN115686293A (en)
WO (1) WO2023000867A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103955366A (en) * 2014-04-18 2014-07-30 南威软件股份有限公司 Producing method of visualized website template
US20140258836A1 (en) * 2013-03-11 2014-09-11 Oracle International Corporation Method and system for implementing nested drop zones
US20150012818A1 (en) * 2013-07-07 2015-01-08 Ana Rink System and method for semantics-concise interactive visual website design
CN106445520A (en) * 2016-09-23 2017-02-22 北京赢点科技有限公司 Method and device for making visualized themed page
CN106909385A (en) * 2017-02-27 2017-06-30 百度在线网络技术(北京)有限公司 The operating method of visual page editing machine and visual page editing machine
CN109213409A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Assembly positioning method, storage medium, electronic equipment and system are pulled in webpage

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258836A1 (en) * 2013-03-11 2014-09-11 Oracle International Corporation Method and system for implementing nested drop zones
US20150012818A1 (en) * 2013-07-07 2015-01-08 Ana Rink System and method for semantics-concise interactive visual website design
CN103955366A (en) * 2014-04-18 2014-07-30 南威软件股份有限公司 Producing method of visualized website template
CN106445520A (en) * 2016-09-23 2017-02-22 北京赢点科技有限公司 Method and device for making visualized themed page
CN106909385A (en) * 2017-02-27 2017-06-30 百度在线网络技术(北京)有限公司 The operating method of visual page editing machine and visual page editing machine
CN109213409A (en) * 2017-07-01 2019-01-15 武汉斗鱼网络科技有限公司 Assembly positioning method, storage medium, electronic equipment and system are pulled in webpage

Also Published As

Publication number Publication date
CN115686293A (en) 2023-02-03

Similar Documents

Publication Publication Date Title
US10394437B2 (en) Custom widgets based on graphical user interfaces of applications
US10528589B2 (en) Cross visualization interaction between data visualizations
US8810576B2 (en) Manipulation and management of links and nodes in large graphs
CN105988860B (en) Method for executing application program and mobile device
KR102393739B1 (en) Partitioned application presentation across devices
US20100180230A1 (en) Assembly and output of user-defined groupings
JP2016527578A (en) Application scenario identification method, power consumption management method, apparatus, and terminal device
US11175823B2 (en) Method and apparatus for controlling terminal device using gesture control function, and non-transitory computer-readable storage medium
US9678632B2 (en) Data processing method and apparatus
EP3822815A1 (en) Method and apparatus for mining entity relationship, electronic device, storage medium, and computer program product
US11169652B2 (en) GUI configuration
US9830056B1 (en) Indicating relationships between windows on a computing device
US11243679B2 (en) Remote data input framework
US9965134B2 (en) Method and apparatus for providing a user interface for a file system
CN109739856A (en) Method and system for the relationship established between tables of data
WO2023000867A1 (en) Page configuration method and apparatus
US10019969B2 (en) Presenting digital images with render-tiles
US20180136789A1 (en) Sender-initiated control of information display within multiple-partition user interface
KR102371098B1 (en) Full screen pop-out of objects in editable form
US9710235B2 (en) Generating software code
CN111753330A (en) Method, device and equipment for determining data leakage subject and readable storage medium
CN112269517B (en) Generation method and device of interactive interface
US20230214093A1 (en) Paging content for user interface display
CN113487704B (en) Dovetail arrow mark drawing method and device, storage medium and terminal equipment
JP2018128850A (en) Information processing program, information processing method, and information processing device

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: 22845034

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE