CN112230906B - Method, device and equipment for creating list control and readable storage medium - Google Patents

Method, device and equipment for creating list control and readable storage medium Download PDF

Info

Publication number
CN112230906B
CN112230906B CN201910635572.XA CN201910635572A CN112230906B CN 112230906 B CN112230906 B CN 112230906B CN 201910635572 A CN201910635572 A CN 201910635572A CN 112230906 B CN112230906 B CN 112230906B
Authority
CN
China
Prior art keywords
program
interface
file
target
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910635572.XA
Other languages
Chinese (zh)
Other versions
CN112230906A (en
Inventor
刘历
宿海成
蔡雨利
郭沛然
朱仕达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910635572.XA priority Critical patent/CN112230906B/en
Publication of CN112230906A publication Critical patent/CN112230906A/en
Application granted granted Critical
Publication of CN112230906B publication Critical patent/CN112230906B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

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

Abstract

The application discloses a method, a device and equipment for creating list control and a readable storage medium, and relates to the field of programming. The method comprises the following steps: displaying a manufacturing interface for manufacturing the applet in the visual manufacturing program, wherein the manufacturing interface comprises an editing area; displaying an electronic form display interface, wherein the target form file comprises at least one form element; receiving a table importing operation, and importing a target table file into a visual production program; and displaying a list control corresponding to the target table file in the editing area according to the table importing operation. The target table file is imported to the production interface of the applet in the visual production program in an importing mode, so that a corresponding list control is automatically generated in an editing area according to the target table file, table contents in the target table file are not required to be edited one by one in a code mode, and the generation efficiency of the list control is improved.

Description

Method, device and equipment for creating list control and readable storage medium
Technical Field
The embodiment of the application relates to the field of programming, in particular to a method, a device, equipment and a readable storage medium for creating list controls.
Background
The applet is an application program which can be applied without downloading and installing, optionally, after the applet is selected according to the running of the host program, the application interface of the applet is directly displayed in the interface of the host program without installing the applet, and the applet is pushed to the applet publishing server for publishing after being developed by a developer through a development tool.
In the related art, when a development applet is required, a developer needs to download a developer tool and a development document from a program platform of a host program. The developer refers to various requirements specified on the development document, and uses the developer tool for code writing, compiling and debugging. When adding a list control, a developer needs to import the content in the list control (that is, add list items in the list control) through code writing, where the list control is used to represent a control that displays the list items in a manner of orderly arranging from top to bottom.
However, when the list control is added in the above manner, since the number of list items in the list control is generally large and the content composition complexity is high, the code writing process corresponding to the list control is complicated, the workload is large, and the creating process of the list control is complicated.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a readable storage medium for creating list controls, which can solve the problems that the process of converting a data table into a code form is complicated, the workload is large, and the creation process of list contents is complicated. The technical scheme is as follows:
in one aspect, a method for creating a list control is provided, the method comprising:
displaying a production interface for producing the applet in the visual production program, wherein the production interface comprises an editing area, the editing area is used for previewing a program interface of the applet in the production process, and the applet is a program running depending on a host program;
displaying an electronic form display interface, wherein a target form file is displayed in the electronic form display interface, and the target form file comprises at least one form element;
receiving a table importing operation, wherein the table importing operation is used for importing the target table file into the visual production program;
and displaying a list control corresponding to the target table file in the editing area according to the table importing operation, wherein a corresponding relation exists between a list item in the list control and a table element in the target table file.
In another aspect, there is provided an apparatus for creating a list control, the apparatus including:
the display module is used for displaying a production interface for producing the applet in the visual production program, wherein the production interface comprises an editing area, the editing area is used for previewing a program interface of the applet in the production process, and the applet is a program running depending on a host program;
the display module is further used for displaying an electronic form display interface, wherein a target form file is displayed in the electronic form display interface, and the target form file comprises at least one form element;
the receiving module is used for receiving a table importing operation, and the table importing operation is used for importing the target table file into the visualization manufacturing program;
the display module is further configured to display a list control corresponding to the target table file in the editing area according to the table importing operation, where a corresponding relationship exists between a list item in the list control and a table element in the target table file.
In another aspect, a computer device is provided, the computer device including a processor and a memory, where the memory stores at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement a method of creating a list control as provided in an embodiment of the application described above.
In another aspect, a computer readable storage medium is provided, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored, where the at least one instruction, the at least one program, the set of codes, or the set of instructions are loaded and executed by the processor to implement a method for creating a list control as provided in an embodiment of the present application.
In another aspect, a computer program product is provided that, when run on a computer, causes the computer to perform a method of creating a list control as provided in embodiments of the application described above.
The beneficial effects that technical scheme that this application embodiment provided include at least:
the method has the advantages that the target table file is imported into the production interface of the applet in the visual production program in an importing mode, so that the corresponding list control is automatically generated in the editing area according to the target table file, the list control is automatically generated through importing the target table file, the table contents in the target table file are not required to be edited one by one in a code mode, the generation efficiency of the list control is improved, and the production efficiency of the applet is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a development interface of a visualization preparation program provided in an exemplary embodiment of the present application when the program development is performed;
FIG. 2 is a flowchart of a method of creating a list control provided by an exemplary embodiment of the present application;
FIG. 3 is a flowchart of a method of creating a list control provided by another exemplary embodiment of the present application;
FIG. 4 is a schematic diagram of a multi-tasking mode triggering procedure provided based on the embodiment illustrated in FIG. 3;
FIG. 5 is a schematic diagram of an import process of a target table file provided based on the embodiment shown in FIG. 3;
FIG. 6 is a schematic diagram of a process for selecting a visualization preparation program and importing a target table file by displaying a list of candidate applications provided based on the embodiment shown in FIG. 3;
FIG. 7 is a flowchart of a method of creating a list control provided by another exemplary embodiment of the present application;
FIG. 8 is a schematic diagram of a list control corresponding to a target table file provided based on the embodiment shown in FIG. 7;
FIG. 9 is a schematic diagram of a process for adjusting a list control provided based on the embodiment shown in FIG. 7;
FIG. 10 is a schematic diagram of a process for previewing applets provided based on the embodiment shown in FIG. 7;
FIG. 11 is a flowchart of a method of creating a list control provided by another exemplary embodiment of the present application;
FIG. 12 is a block diagram of a means for creating list controls provided by one exemplary embodiment of the present application;
FIG. 13 is a block diagram of a list control creation device provided in another exemplary embodiment of the present application;
fig. 14 is a block diagram of a terminal according to an exemplary embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Visual preparation procedure: the present invention relates to a program for displaying a program making process in a visual preview manner to assist making, alternatively, the visual making program may be a program for making a code and generating preview content in an editing area according to code input, or may be a program for directly making an interface content in the editing area and automatically generating code data after editing the interface content.
Alternatively, the visualization preparation program may be a program for preparing an applet, or may be a program for preparing a general program.
Optionally, in the visual production program provided in the embodiment of the present application, a display panel area is added at a peripheral side of an editing area, and a basic UI element is displayed in the panel area, so that a developer selects the basic UI element in the panel area during development of the applet, typesets and edits the basic UI element, and then obtains a display element in the program Interface of the applet.
Fig. 1 is a schematic diagram of a development interface of a visualization preparation program according to an exemplary embodiment of the present application during program development, as shown in fig. 1, where the development interface 100 includes an editing area 110 and a panel area 120, where the editing area 110 is used for previewing an interface of the development program, and the panel area 120 includes a basic control element 121, a basic text element 122, a basic picture element 123, a basic input box 124, a basic option box 125, a basic status switch 126, and a basic table 127, and a developer adds a basic UI element to the editing area 110 by selecting the basic UI element in the panel, and typesets and edits content to the basic UI element, thereby implementing development of the development program.
Schematically, the application scenario referred to in the present application at least includes the following scenario:
the terminal is provided with a visualization preparation program, and the visualization preparation program is provided with a function of developing the applet in a visualization preparation manner. Alternatively, the visualization production program may be a program for producing an applet, or a program for producing a general application program. Optionally, in the development process of the applet, the creation interface of the visual creation program includes an editing area, and the editing area is used for previewing the program interface of the applet. The developer imports the target table file into the visualization production program, thereby displaying a list control corresponding to the target table file in the edit area. Optionally, the developer can import the target table file into the visualization preparation program in any one of the following ways, so as to add a list control corresponding to the display target table file in the editing area:
the method comprises the steps that a first terminal is also provided with a table application program, the table application program comprises the target table file, a developer triggers the terminal to switch to a multitasking mode through triggering operation, a manufacturing interface of a visual manufacturing program and an electronic table display interface of the table application program are displayed in parallel in a terminal interface in the multitasking mode, the target table file is displayed in the electronic table display interface, and drag operation on the target table file is received, so that the target table file is imported from the table application program to the visual manufacturing program;
The method comprises the steps that a table program A is installed in a terminal, the table program A comprises a table file b, after a developer triggers a terminal display mode to be switched to a multi-task mode in the process of manufacturing a small program in a visual manufacturing program, the terminal reduces a manufacturing interface of the visual manufacturing program in a preset proportion, the manufacturing interface and a spreadsheet display interface of the table program A are displayed in parallel in the terminal interface, the table file b is displayed in the spreadsheet display interface, the developer starts dragging operation from the table file b, and after dragging is stopped at any position in the manufacturing interface, the table file b is imported into the visual manufacturing program.
And secondly, the terminal receives the form files sent by other terminals through a short-distance wireless communication technology (such as Bluetooth, zigbee technology, airdrop technology and the like), and displays candidate application programs for applying the form files after receiving the form files, wherein the candidate application programs comprise the visual production program, and after a developer selects the visual production program, the form files are imported into the visual production program.
It should be noted that the above application scenario is merely an illustrative example, and in actual operation, the application scenario in which the table file is imported into the visualization preparation program to create the list control corresponding to the table file may use the method for creating the list control provided in the embodiment of the present application, which is not limited in this embodiment of the present application.
In combination with the application scenario and the introduction of the visualization preparation program, fig. 2 is a flowchart of a method for creating a list control according to an exemplary embodiment of the present application, and the method is applied to a terminal for illustration, as shown in fig. 2, and the method includes:
step 201, a creation interface for creating an applet in a visual creation program is displayed.
Optionally, the production interface includes an editing area, and the editing area is used for previewing the program interface of the applet in the production process.
Alternatively, the applet is a program that is run in dependence on the host program, i.e. the applet is run on the basis of the running of the host program after the execution of the applet is required before the execution of the applet. Optionally, at least one applet is provided in the host program, when a user needs to apply any one of the target applets, after running the host program, the target applet is directly started after searching the applet in the applet set provided by the host program. Optionally, when the terminal runs the target applet, the application of the target applet can be realized by directly acquiring the program package of the target applet from the server and running the program content in the program package without installing the target applet. Optionally, the host program includes at least one of an instant messaging program, a multimedia program, a financial management program, a game program, a takeaway program, a shopping program, and a taxi taking program, and the program type of the host program is not limited in the embodiment of the present application.
Optionally, the visual production program is used for displaying the production process in a visual preview manner to assist in producing the applet, wherein the editing area is a visual area of the production process, and the program interface of the applet is previewed in the editing area, and content in the program interface is added, deleted or modified in the process of previewing, so that the program interface of the applet is intuitively edited.
Optionally, the production interface further comprises a panel area, wherein the panel area comprises a basic UI element for designing the program interface, and the UI element in the program interface is obtained after the basic UI element is added into the editing area (e.g. dragging the basic UI element into the editing area) and typesetting and editing the content.
Optionally, the interface currently displayed in the editing area is one of the program interfaces in the applet, and the program interface is an interface of the list control to be added.
Step 202, displaying a spreadsheet display interface in which a target table file is displayed.
Optionally, the target table file includes at least one table element therein. Optionally, each table element corresponds to at least one data item. Optionally, each table element corresponds to a row or a column in the target table file, where the row may be a single row or a row obtained by combining multiple rows; one column may be a single column or a column obtained by combining a plurality of columns.
Illustratively, taking the target table file as a student archive file for example, the student archive file includes data corresponding to 4 students, then the 4 students correspond to 4 table elements, each student corresponds to three data items of age, grade and class, then each table element corresponds to three data items of age, grade and class, and the student archive file is shown in the following table one:
list one
Student's study Age of Grade of grade Class grade
1 8 2 2
2 9 3 5
3 8 2 7
4 10 4 1
As shown in the table above, student 1 corresponds to a first table element, and the first table element sequentially includes data 8, 2, and 2 for indicating that student 1 is 8 years old and is 2 classes and 2 shifts in 2 grades; the student 2 corresponds to a second table element, and the second table element sequentially comprises data 9, 3 and 5 for indicating that the student 2 is 9 years old and is 5 classes in 3 years; the student 3 corresponds to a third table element, and the third table element sequentially comprises data 8, 2 and 7 for indicating that the student 3 is 8 years old and 7 classes in 2 years; the fourth table element includes data 10, 4, and 1 in order to indicate that the student 4 is 10 years old and is 1 class at 4 years old.
It should be noted that, in the above table one, a row of data is taken as a table element corresponding to a student as an example, and in actual operation, a column of data may also be taken as a table element in the target table file.
Optionally, the target electronic form may be an Excel format form file, a Comma-Separated Values (CSV) format file, or other form format files, which is not limited in the embodiment of the present application.
Optionally, the display mode of the electronic form interface includes at least one of the following modes:
firstly, after a display mode of a terminal is switched to a multi-task mode, a spreadsheet display interface and a manufacturing interface of a form application program are displayed in parallel in the terminal interface in the multi-task mode;
secondly, calling a table application program in the visual production program, so that the electronic table display interface is displayed on the production interface in a superposition mode;
thirdly, after receiving the target form file transmitted by other terminals through the short-distance wireless communication technology, the terminal displays an electronic file display interface corresponding to the target form file.
Step 203, a table import operation is received.
Optionally, the table importing operation is used for importing the target table file into the visualization preparation program.
Alternatively, the table importing operation may be implemented as a drag operation for dragging the target table file to the production interface of the visualization production program, or may be implemented as a selection operation for selecting the target table file, which is not limited in the embodiment of the present application.
And 204, displaying a list control corresponding to the target table file in the editing area according to the table importing operation.
Optionally, a correspondence exists between a list item in the list control and a table element in the target table file. Illustratively, the ith table element in the target table file corresponds to the ith list item in the list control, i is a positive integer, optionally, the ith table element in the target table file may also correspond to other list items in the list control, and in this embodiment of the present application, the correspondence between the table element and the list item is not limited.
Optionally, when the ith table element corresponds to the ith row in the target table file, the contents of m cells in the ith row correspond to m display elements at different positions in the ith list item; when the ith table element corresponds to the ith column in the target table file, the contents of m cells in the ith column correspond to m display elements at different positions in the ith list item, and m is a positive integer.
Optionally, the list control is in a form of displaying the contents in the target table file in a list form, wherein the ith list item in the list control is used for displaying the ith table element in the target table file. Optionally, since each table element in the target table file corresponds to at least one data item, when the table element correspondingly includes at least two data items, the data items in the table element are typeset and displayed in the ith list item in the list control in a preset typesetting mode according to the data type.
Optionally, adding code logic corresponding to the list control in the program package of the applet according to the display mode of the list control in the editing area, thereby obtaining the applet added with the list control.
In summary, in the method for creating a list control provided in this embodiment, the target table file is imported into the production interface of the applet in the manner of importing in the visual production program, so that the corresponding list control is automatically generated according to the target table file in the editing area, and the process of generating the list control is automatically performed by importing the target table file, without editing the table contents in the target table file in the form of codes, thereby improving the efficiency of generating the list control and improving the efficiency of producing the applet.
In an optional embodiment, the display manner of the electronic form display interface includes: 1. displaying in a multitasking mode; 2. calling and displaying through a program; 3. displaying the target table file through receiving; for different display modes, the mode of importing the target table file may also be different, and fig. 3 is a flowchart of another exemplary implementation of the method for creating the list control provided in the present application, where the method is applied to a terminal and illustrated by way of example, and as shown in fig. 3, the method includes:
Step 301, displaying a production interface for producing the applet in the visual production program.
Optionally, the production interface includes an editing area, and the editing area is used for previewing the program interface of the applet in the production process.
Optionally, the visual production program is used for displaying the production process in a visual preview manner to assist in producing the applet, wherein the editing area is a visual area of the production process, and the program interface of the applet is previewed in the editing area, and content in the program interface is added, deleted or modified in the process of previewing, so that the program interface of the applet is intuitively edited.
Step 302, a multi-tasking trigger operation is received.
Optionally, the multitasking operation is used to switch the display mode of the terminal to a multitasking mode, where the multitasking mode refers to a display mode in which display interfaces of at least two applications are displayed in parallel in the terminal interface.
Optionally, the triggering manner of the multitasking operation may be different for different terminals, and illustratively, the multitasking operation may be implemented as at least one of the following manners:
Firstly, a Home key (Home key) is included in the terminal, and double pressing is carried out on the Home key to serve as the multitasking triggering operation;
secondly, sliding upwards from the lower side of the terminal display screen, and sliding to a preset screen range to serve as the multitasking triggering operation;
thirdly, long-pressing the Home key of the terminal is used as the multi-task triggering operation.
The triggering manner of the above-mentioned multi-task triggering operation is merely an illustrative example in the embodiment of the present application, and in actual operation, the multi-task triggering operation may also be implemented in other manners, which is not limited in the embodiment of the present application.
And 303, parallelly displaying the manufacturing interface and the electronic form display interface in the terminal interface according to the multitasking operation.
Optionally, the electronic form display interface is an interface corresponding to a form application program.
Optionally, when the display mode of the terminal is the multitasking mode, the terminal displays the interfaces of the applications that have been started in the foreground and the background in the terminal interface in a parallel manner, or the terminal displays the interfaces of the applications that are running in the foreground and the preset applications in the terminal interface in a parallel manner, for example: and after triggering the multi-role mode, parallelly displaying a manufacturing interface of the visual manufacturing program and an electronic table display interface of the table application program in the terminal interface.
Optionally, when the display mode of the terminal is switched to the multitasking mode, the interface of the selected application program (or the preset application program) may be displayed in a superimposed manner on the interface of the application program running in the current foreground, for example: and when the current application program running in the foreground of the terminal is a visual production program and the preset application program is a form application program, after a multitasking mode is triggered, the electronic form display interface of the form application program is displayed on the production interface of the visual production program in a superimposed mode. Optionally, when the electronic form display interface is displayed on the production interface in a superimposed manner, the electronic form display interface is displayed in a preset area on the production interface in a superimposed manner, wherein the preset area is an area which does not intersect with the editing area, or the preset area is an area which is connected with the editing area.
Fig. 4 is a schematic diagram illustrating a multitasking mode triggering process according to an exemplary embodiment of the present application, as shown in fig. 4, a production interface 400 of a visual production program is displayed in a current terminal display interface, where the production interface 400 includes an editing area 410, and a preset program is a table application program, and when a user triggers the multitasking mode to a display mode through a multitasking operation on the terminal, a spreadsheet display interface 420 is displayed on top of the production interface 400, a table file list 430 is displayed in the spreadsheet display interface 420, and the table file list 430 includes a target table file 431.
Step 304, a program call operation is received.
Optionally, the program call operation is used for calling a table application program in the visualization fabrication program, wherein the table application program stores a target table file.
Alternatively, the table application may be a program for performing editing, modification, deletion, or the like of a table, and the target table file is stored after the table application performs editing, modification, or the like, so that the visualization fabrication program may apply to the target table file in the table application through a call to the table application.
Alternatively, the target table file may be received by other applications installed in the terminal and stored in the table application.
Optionally, the visualization preparation program includes a call control, and the form application program is directly called by triggering the call control, or a program list is displayed by triggering the call control, where the program list includes the form application program, and when receiving a selection operation of the form application program in the program list, the form application program is called.
Step 305, superposing and displaying the electronic form display interface on the production interface according to the program calling operation.
Optionally, the electronic form display interface is an interface corresponding to a form application program.
Optionally, when the electronic form display interface is displayed on the production interface in a superimposed manner, the electronic form display interface is displayed in a preset area on the production interface in a superimposed manner, wherein the preset area is an area which does not intersect with the editing area, or the preset area is an area which is connected with the editing area.
It should be noted that the table application program described above may also be implemented as other application programs that can apply to the table, such as: instant messaging applications, mailbox applications, collection applications, and the like.
Step 306, receiving the drag operation on the target table file as a table import operation.
Optionally, the start point of the drag operation is located at any point on the target table file in the electronic table display interface, and the end point of the drag operation is located within a preset area in the production interface.
Optionally, the electronic form display interface includes a form file list, where each item in the form file list corresponds to a form file, and the target form file corresponds to a target item in the form file list, where a file identifier of the target form file is displayed in the target item, for example: file name, file path, etc., the starting point of the drag operation is located at any point on the target item.
Optionally, the termination point of the drag operation is located within an area range corresponding to the editing area in the production interface, or the termination point of the drag operation is located at any point in the production interface.
Illustratively, as shown in fig. 5, a spreadsheet display interface 520 is displayed on the manufacturing interface 510 in a superimposed manner, the manufacturing interface 510 further includes an editing area 511, a target item 521 corresponding to a target table file is displayed in the spreadsheet display interface 520, a drag operation on the target item 521 is received, and an ending point of the drag operation is located at any point in the editing area 511, and a list control 530 corresponding to the target table file is displayed in the editing area 511 according to the drag operation.
In step 307, a target table file is received, where the target table file is a file received through a short-range wireless communication technology.
Optionally, the short-range wireless communication technology includes: bluetooth technology, zigBee technology, airdrop technology, etc. Optionally, the table file is a file sent to the current terminal by a sending terminal in a communication range of a short-range wireless communication technology with the current terminal.
Step 308, displaying candidate application programs for applying to the target table file, wherein the candidate application programs comprise a visualization preparation program.
Optionally, the candidate application program includes a program capable of applying to the target table, and illustratively, the candidate application program includes at least one of the following application programs: 1. the instant messaging application program is used for sharing the target form file; 2. the form application program is used for editing the target form file; 3. the mailbox application program is used for sending the target report file; 4. the collection type application program is used for collecting the target table file; 5. and the visual production program is used for importing the target table file into a production interface of the applet.
Alternatively, when displaying the candidate application, the candidate application list may be displayed by overlaying the interface of the precursor running application on top of the interface of the darkening process after the interface darkening process.
Step 309, a first selection operation of the visualization fabrication program is received.
Optionally, the first selecting operation is used for indicating that the target table file is applied through the visualization fabrication program.
Alternatively, the first selection operation may be implemented as at least one of a single click operation, a double click operation, a long press operation, and a slide operation.
Step 310, displaying a spreadsheet display interface according to the first selection operation.
Optionally, the electronic form display interface displays a target form file, and the electronic form display interface is used for determining an application mode of the visual production program to the target form file.
Step 311, a second selection operation on the import control is received, and a table import operation for importing the electronic form file into the visualization preparation program is determined.
Optionally, the electronic form display interface further comprises an import control, and the electronic form file is imported into the visualization preparation program by receiving a second selection operation on the import control.
For illustration, please refer to fig. 6, taking the short-range wireless communication technology as an example of the airtrip technology as described above, after the current terminal receives the target table file sent by the sending terminal through airtrip, it displays a candidate application program list 610, where the candidate application program list 610 includes a visualization preparation program 611, after receiving the first selection operation on the visualization preparation program 611, it displays a spreadsheet display interface 620, where the spreadsheet display interface 620 includes an import control 621 and a cancel import control 622, and when receiving the second selection operation on the import control 621, it imports the target table file to the visualization preparation program 611, and displays a list control 640 corresponding to the target table file in an editing area 631 of the preparation interface 630.
And step 312, displaying a list control corresponding to the target table file in the editing area according to the table importing operation.
Optionally, a correspondence exists between a list item in the list control and a table element in the target table file. Illustratively, the ith table element in the target table file corresponds to the ith list item in the list control, i is a positive integer, optionally, the ith table element in the target table file may also correspond to other list items in the list control, and in this embodiment of the present application, the correspondence between the table element and the list item is not limited.
Optionally, when the list control is displayed according to the table import operation, the list control may be directly displayed in the editing area according to the table import operation, or a preset area may be set in the manufacturing interface to display the table file list into which the visualization preparation program is imported, and when a selection operation for a target file is received (e.g., a target table file in the table file list is dragged into the editing area), the list control corresponding to the target table file is displayed in the editing area.
Optionally, adding code logic corresponding to the list control in the program package of the applet according to the display mode of the list control in the editing area, thereby obtaining the applet added with the list control.
In summary, in the method for creating a list control provided in this embodiment, the target table file is imported into the production interface of the applet in the manner of importing in the visual production program, so that the corresponding list control is automatically generated according to the target table file in the editing area, and the process of generating the list control is automatically performed by importing the target table file, without editing the table contents in the target table file in the form of codes, thereby improving the efficiency of generating the list control and improving the efficiency of producing the applet.
According to the method provided by the embodiment, the terminal is switched to the multi-task mode for display, and the target table file displayed in the table application program is imported into the parallel-display visualization production program in the multi-task mode, so that the target table file is imported with high efficiency, and the complicated step of editing the table contents in the target table file one by one in a code mode is avoided.
According to the method provided by the embodiment, the target table file in the table application program is imported into the visual production program by calling the table application program in the visual production program, so that the target table file is imported efficiently, and the complicated step of editing the table contents in the target table file piece by piece in a code mode is avoided.
According to the method provided by the embodiment, after the target table file sent by the sending terminal is received through the short-distance wireless communication technology, the visual production program is selected according to the candidate application program displayed after the receiving, so that the efficient importing of the target table file is realized, and the complicated step of editing the table contents in the target table file one by one in a code mode is avoided.
In an alternative embodiment, after the list control is generated, the unified adjustment on the whole list control may be further implemented through an adjustment operation on a single list item, and fig. 7 is a flowchart of a method for creating a list control according to another exemplary embodiment of the present application, where the method is applied to a terminal and illustrated by way of example, and as shown in fig. 7, the method includes:
step 701, displaying a production interface for producing the applet in the visual production program.
Optionally, the production interface includes an editing area, and the editing area is used for previewing the program interface of the applet in the production process.
Optionally, the visual production program is used for displaying the production process in a visual preview manner to assist in producing the applet, wherein the editing area is a visual area of the production process, and the program interface of the applet is previewed in the editing area, and content in the program interface is added, deleted or modified in the process of previewing, so that the program interface of the applet is intuitively edited.
Step 702, a spreadsheet display interface is displayed with a target spreadsheet file displayed therein.
Optionally, the target table file includes at least one table element therein. Optionally, each table element corresponds to at least one data item.
Alternatively, the one table element may be a table element divided by a row in the target table file, or may be a table element divided by a column.
Optionally, the target electronic form may be a form file in excel format, a file in Comma-Separated Values (CSV) format, or a file in other form format, which is not limited in the embodiment of the present application.
Optionally, the display mode of the electronic form interface includes at least one of the following modes:
firstly, after a display mode of a terminal is switched to a multi-task mode, a spreadsheet display interface and a manufacturing interface of a form application program are displayed in parallel in the terminal interface in the multi-task mode;
secondly, calling a table application program in the visual production program, so that the electronic table display interface is displayed on the production interface in a superposition mode;
thirdly, after receiving the target form file transmitted by other terminals through the short-distance wireless communication technology, the terminal displays an electronic file display interface corresponding to the target form file.
In step 703, a table import operation is received.
Optionally, the table importing operation is used for importing the target table file into the visualization preparation program.
Alternatively, the table importing operation may be implemented as a drag operation for dragging the target table file to the production interface of the visualization production program, or may be implemented as a selection operation for selecting the target table file, which is not limited in the embodiment of the present application.
Step 704, obtaining n table elements in the target table file according to the table importing operation, where n is a positive integer.
Alternatively, the table element may be divided according to a row of the target table file, or may be divided according to a column of the target table file.
Optionally, each table element in the n table elements corresponds to at least one data item, when the table elements of the target table file are divided into rows, each data item corresponds to a column, and each column corresponds to a data type, which is schematically shown in reference to table elements corresponding to 4 students in table one, and each table element of each student corresponds to 3 data items, including a data item age, a data item grade, and a data item grade. Similarly, when the table elements of the target table file are partitioned by columns, then each data item corresponds to a row, and each row corresponds to a data type.
Step 705, typesetting and displaying the data items in the ith table element in the ith list item in a preset typesetting mode according to the data type, wherein i is a positive integer, and i is less than or equal to n.
Optionally, the data items are typeset according to the data type and the data format, such as: the data in the image format is displayed in front of the data of the list control, and the data of the list control are sequentially arranged according to the arrangement sequence of the data types corresponding to the text contents in the target table file aiming at the text contents.
Referring to fig. 8, an editing area 810 is included in the manufacturing interface 800, a list control 820 is displayed in the editing area 810, and the list control 820 includes 3 list items, each of which is displayed in a typesetting manner of head portrait, name and title.
Optionally, the user may also adjust the data in the list control and the area corresponding to each list item, where the adjustment may be performed on the single-selected data or may be performed on all the data uniformly, and in this embodiment, the adjustment process is described by taking an example that the adjustment process is performed on all the data uniformly.
It should be noted that, in this embodiment, the description is given taking the example that the ith table element corresponds to the ith list item, and in actual operation, the ith table element may also correspond to other list items, where the correspondence between the table element and the list item is not limited in this embodiment.
In step 706, an adjustment operation for the ith list item is received.
Optionally, after the list control is displayed in the editing area, when the user triggers an adjustment operation for adjusting the list control, the editable format of the ith list item is reserved in the editing area, and other list items are set to be in non-clickable formats.
Optionally, the adjusting operation includes at least one of:
firstly, adjusting the size of the region where the ith list item is located;
optionally, the size of the region where the ith list item is located is adjusted by dragging the edge of the region where the ith list item is located, for example: and dragging the lower side edge of the region where the ith list item is positioned upwards, so that the width of the region where the ith list item is positioned is adjusted.
Referring to fig. 9, an editing area 910 is shown in the manufacturing interface 900, where an editing area 910 has a list control 920 displayed in the editing area 910, and the list control 920 includes 3 list items, where a first list item 921 is in an adjustable editable format, and a second list item 922 and a third list item 923 are in a gray non-clickable format. The width of the first list item 921 is adjusted by adjusting the lower side 930 of the first list item upward through a sliding operation.
Secondly, adjusting the image size of the image in the ith list item;
optionally, the size of the image in the ith list item is adjusted by dragging any one corner of the image in the ith list item.
Thirdly, adjusting the word size of the text in the ith list item;
optionally, the adjustment of the font size is performed uniformly for one or a group of data types, and after the font size adjustment is performed on the text of the data type in the ith list item, the synchronous adjustment is performed on the text of the data type in other data.
Fourth, the fonts of the texts in the ith list item are adjusted;
optionally, the font adjustment is performed uniformly for one or a group of data types, and after the font adjustment is performed on the text of the data type in the ith list item, the synchronous adjustment is performed on the text of the data type in other data.
Fifthly, adjusting the text effect in the ith list item;
optionally, the text effect includes at least one of bolded, underlined, italics, subscript, superscript, strikethrough.
Optionally, the adjustment of the text effect is performed uniformly for one or a group of data types, and after the text effect adjustment is performed on the text of the data type in the ith list item, the synchronous adjustment is performed on the text of the data type in other data.
Sixth, the text content in the ith list item is adjusted.
Step 707, according to the adjustment operation for the ith list item, uniformly adjusting each list item in the list control.
Optionally, other data in the list control is kept uniform with the data format of the ith list item.
Optionally, the visualization preparation program generates a data packet corresponding to the display content in the editing area at intervals of a preset time period, and uploads the data packet to the server. Optionally, the applet uses the instant messaging program as the applet of the host program, and the visualization preparation program is bound with the target account in the instant messaging program. The visualization production program can also preview the produced portion of the applet through an instant messaging application program. The preview process includes:
1. receiving a preview operation in the visualization preparation program, wherein the preview operation is used for triggering the small program to preview in the instant messaging program;
optionally, the visualization preparation program includes a preview control, and clicking the preview control triggers previewing the applet in the instant messaging program.
2. Transmitting a program preview signal to a server according to the program preview operation;
Optionally, the program preview signal includes a program identifier of the applet. Optionally, a package of the applet is stored in the server, where the package corresponds to a program identifier of the applet.
3. And the server sends an applet preview message to the terminal corresponding to the instant messaging program registered with the target account according to the program preview signal.
Optionally, the applet preview message is a program connection corresponding to the applet, and by clicking on the program connection, the applet package can be directly obtained from the server for program preview.
4. The terminal receives an applet preview message through an instant messaging program logged in a target account, wherein the applet preview message is fed back by a server according to a program preview signal;
5. receiving a third selection operation on the applet preview message;
alternatively, the third selection operation may be implemented as at least one of a click operation, a double click operation, a long press operation, a drag operation, a slide operation;
6. and displaying a program preview interface of the applet according to the third selection operation.
For illustration, referring to fig. 10, a preview control 1011 is displayed in a production interface 1010 of a visual production program, after receiving a click operation on the preview control 1011, the terminal 1000 sends a program preview signal to the server 2000, the server 2000 sends an applet preview message to a terminal 3000 (which may also be implemented as the terminal 1000) logged in a target account according to the program preview signal, the applet preview message 1021 is included in an instant communication interface 1020 of an instant communication program of the terminal 3000, and when a click on the applet preview message 1021 is received, the terminal 3000 acquires a package of the applet from the server 2000 and displays a program preview interface 1030 of the applet.
In summary, in the method for creating a list control provided in this embodiment, the target table file is imported into the production interface of the applet in the manner of importing in the visual production program, so that the corresponding list control is automatically generated according to the target table file in the editing area, and the process of generating the list control is automatically performed by importing the target table file, without editing the table contents in the target table file in the form of codes, thereby improving the efficiency of generating the list control and improving the efficiency of producing the applet.
According to the method provided by the embodiment, the region corresponding to the ith list item is adjusted, so that the region corresponding to the data in the list control is uniformly adjusted, the adjustment efficiency of the list control is improved, and the problems of complicated adjustment steps and low adjustment efficiency caused by single adjustment of the region of each data are avoided.
Schematically, fig. 11 is an overall flowchart of another exemplary list control creation method of the present application, as shown in fig. 11, including:
step 1101, the multitasking mode drags/receives the target form file via airprop.
Optionally, the contents of the table file imported by the multitasking mode and the dragging mode are described in detail in the above steps 302 to 306, which will not be repeated here.
Optionally, the contents of the transmission of the target table file by the short-range wireless communication technology such as airrop are described in detail in the above steps 307 to 310, which are not repeated here.
Step 1102, the target table file is analyzed and the data format is verified.
Optionally, when analyzing the target table file, determining whether the file format of the target table file accords with a preset format, for example: the preset format includes an Excel format and a CSV format, and then whether the format of the target table file accords with any one of the two formats is analyzed.
Next, when verifying the data format, it is determined whether each data item in the table element corresponds to data, and whether the corresponding data format is an identifiable format.
In step 1103, a visual interface presentation list control is created.
Optionally, displaying the data class table corresponding to the target table file in the editing area of the manufacturing interface.
Step 1104, converting the visualized element into a front-end file corresponding to the applet, and automatically generating js script of the binding data.
Optionally, the front-end file is used to represent the front-end representation of the list control. Optionally, the list control may further correspond to at least one of functions including adding, deleting, modifying, searching, and the like, generate js script, and add the above functions to the operation logic of the js script, so as to implement at least one of functions of adding, deleting, and modifying.
Step 1105, the package is sent to the server and pushed to the instant messaging program for previewing.
In summary, in the method for creating a list control provided in this embodiment, the target table file is imported into the production interface of the applet in the manner of importing in the visual production program, so that the corresponding list control is automatically generated according to the target table file in the editing area, and the process of generating the list control is automatically performed by importing the target table file, without editing the table contents in the target table file in the form of codes, thereby improving the efficiency of generating the list control and improving the efficiency of producing the applet.
Fig. 12 is a block diagram of a configuration of an apparatus for creating a list control according to an exemplary embodiment of the present application, and the apparatus is applied to a terminal, for example, as shown in fig. 12, and includes: a display module 1210 and a receiving module 1220;
The display module 1210 is configured to display a production interface for producing an applet in a visual production program, where the production interface includes an editing area, and the editing area is used to preview a program interface of the applet in the production process, and the applet is a program running depending on a host program;
the display module 1210 is further configured to display a spreadsheet display interface, where a target table file is displayed in the spreadsheet display interface, and the target table file includes at least one table element;
a receiving module 1220, configured to receive a table import operation, where the table import operation is used to import the target table file into the visualization production program;
the display module 1210 is further configured to display a list control corresponding to the target table file in the editing area according to the table import operation, where a corresponding relationship exists between a list item in the list control and a table element in the target table file.
In an optional embodiment, the receiving module 1220 is further configured to receive a multitasking operation, where the multitasking operation is used to switch the display mode of the terminal to a multitasking mode, where the multitasking mode is a display mode in which display interfaces of at least two applications are displayed in parallel in the terminal interface;
The display module 1210 is further configured to display the manufacturing interface and the electronic form display interface in the terminal interface in parallel according to the multitasking operation, where the electronic form display interface is an interface corresponding to a form application program.
In an optional embodiment, the receiving module 1220 is further configured to receive a program call operation, where the program call operation is used to call a table application in the visualization preparation program, and the table application stores the target table file;
the display module 1210 is further configured to superimpose and display the electronic form display interface on the production interface according to the program calling operation, where the electronic form display interface is an interface corresponding to the form application program.
In an optional embodiment, the receiving module 1220 is further configured to receive a drag operation on the target table file as a table importing operation, where a start point of the drag operation is located at any point on the target table file in the electronic table display interface, and an end point of the drag operation is located in a preset area range in the production interface.
In an alternative embodiment, the receiving module 1220 is further configured to receive a target table file, where the target table file is a file received through a short-range wireless communication technology;
the display module 1210 is further configured to display candidate application programs for applying to the target table file, where the candidate application programs include the visualization preparation program;
the receiving module 1220 is further configured to receive a first selection operation of the visualization preparation program;
the display module 1210 is further configured to display the electronic form display interface according to the first selection operation.
In an alternative embodiment, the electronic form display interface further comprises an import control;
the receiving module 1220 is further configured to receive a second selection operation on the import control, and determine the form import operation for importing the electronic form file into the visualization preparation program.
In an alternative embodiment, as shown in fig. 13, the apparatus further comprises:
an obtaining module 1230, configured to obtain n table elements in the target table file according to the table import operation, where n is a positive integer;
the display module 1210 is further configured to typeset and display the data items in the ith table element in the ith list element in a preset typesetting manner according to the data type, where i is a positive integer, and i is less than or equal to n.
In an optional embodiment, when the ith table element corresponds to the ith row in the target table file, the contents of m cells in the ith row correspond to m display elements in m different positions in the ith list item, and m is a positive integer;
when the ith table element corresponds to the ith column in the target table file, the contents of m cells in the ith column correspond to m display elements in different positions in the ith list item.
In an alternative embodiment, the receiving module 1220 is further configured to receive an adjustment operation for the ith list item;
the apparatus further comprises:
and an adjustment module 1240, configured to perform unified adjustment on each list item in the list control according to the adjustment operation on the ith list item.
In an alternative embodiment, the apparatus further comprises:
a generating module 1250, configured to generate a data packet corresponding to the display content in the editing area at intervals of a preset duration;
a sending module 1260, configured to upload the data packet to a server.
In an optional embodiment, the applet is an applet using an instant messaging program as a host program, and the visualization preparation program is bound with a target account in the instant messaging program;
The receiving module 1220 is further configured to receive a program preview operation, where the program preview operation is used to trigger previewing the applet in the instant messaging program;
the sending module 1260 is further configured to send a program preview signal to the server according to the program preview operation, where the program preview signal includes a program identifier of the applet;
the receiving module 1220 is further configured to receive an applet preview message through the instant messaging program logged in the target account, where the applet preview message is fed back by the server according to the program preview signal; receiving a third selection operation on the applet preview message;
the display module 1210 is further configured to display a program preview interface of the applet according to the third selection operation.
In summary, in the creation device of the list control provided in this embodiment, the target table file is imported into the creation interface of the applet in the manner of importing in the visual creation program, so that the corresponding list control is automatically generated according to the target table file in the editing area, and the generation process of the list control is automatically performed by importing the target table file, without editing the table contents in the target table file in the form of codes, so that the generation efficiency of the list control is improved, and the creation efficiency of the applet is improved.
It should be noted that: the creation device of the list control provided in the above embodiment is only exemplified by the division of the above functional modules, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for creating the list control provided in the above embodiment belongs to the same concept as the method embodiment for creating the list control, and the specific implementation process of the device is detailed in the method embodiment, which is not described herein again.
Fig. 14 shows a block diagram of a terminal 1400 provided by an exemplary embodiment of the present invention. The terminal 1400 may be: a smart phone, a tablet computer, an MP3 player (Moving Picture Experts Group Audio Layer III, motion picture expert compression standard audio plane 3), an MP4 (Moving Picture Experts Group Audio Layer IV, motion picture expert compression standard audio plane 4) player, a notebook computer, or a desktop computer. Terminal 1400 may also be referred to as a user device, a portable terminal, a laptop terminal, a desktop terminal, and the like.
In general, terminal 1400 includes: a processor 1401 and a memory 1402.
Processor 1401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 1401 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 1401 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 1401 may be integrated with a GPU (Graphics Processing Unit, image processor) for rendering and rendering of content required to be displayed by the display screen. In some embodiments, the processor 1401 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 1402 may include one or more computer-readable storage media, which may be non-transitory. Memory 1402 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 1402 is used to store at least one instruction for execution by processor 1401 to implement a method of creating a list control provided by a method embodiment in the present application.
In some embodiments, terminal 1400 may optionally further include: a peripheral interface 1403 and at least one peripheral. The processor 1401, memory 1402, and peripheral interface 1403 may be connected by a bus or signal lines. The individual peripheral devices may be connected to the peripheral device interface 1403 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 1404, a touch display screen 1405, a camera 1406, audio circuitry 1407, a positioning component 1408, and a power source 1409.
Peripheral interface 1403 may be used to connect at least one Input/Output (I/O) related peripheral to processor 1401 and memory 1402. In some embodiments, processor 1401, memory 1402, and peripheral interface 1403 are integrated on the same chip or circuit board; in some other embodiments, either or both of processor 1401, memory 1402, and peripheral interface 1403 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 1404 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 1404 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 1404 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 1404 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuit 1404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuit 1404 may also include NFC (Near Field Communication, short range wireless communication) related circuits, which are not limited in this application.
The display screen 1405 is used to display UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 1405 is a touch display screen, the display screen 1405 also has the ability to collect touch signals at or above the surface of the display screen 1405. The touch signal may be input to the processor 1401 as a control signal for processing. At this time, the display 1405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 1405 may be one, providing a front panel of the terminal 1400; in other embodiments, the display 1405 may be at least two, respectively disposed on different surfaces of the terminal 1400 or in a folded design; in still other embodiments, the display 1405 may be a flexible display disposed on a curved surface or a folded surface of the terminal 1400. Even more, the display 1405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The display 1405 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera component 1406 is used to capture images or video. Optionally, camera assembly 1406 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 1406 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuitry 1407 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 1401 for processing, or inputting the electric signals to the radio frequency circuit 1404 for voice communication. For purposes of stereo acquisition or noise reduction, a plurality of microphones may be provided at different portions of the terminal 1400, respectively. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 1401 or the radio frequency circuit 1404 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, audio circuitry 1407 may also include a headphone jack.
The locating component 1408 is used to locate the current geographic location of the terminal 1400 to enable navigation or LBS (Location Based Service, location-based services). The positioning component 1408 may be a positioning component based on the united states GPS (Global Positioning System ), the chinese beidou system, or the russian galileo system.
A power supply 1409 is used to power the various components in terminal 1400. The power supply 1409 may be an alternating current, a direct current, a disposable battery, or a rechargeable battery. When the power supply 1409 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, terminal 1400 also includes one or more sensors 1410. The one or more sensors 1410 include, but are not limited to: acceleration sensor 1411, gyroscope sensor 1412, pressure sensor 1413, fingerprint sensor 1414, optical sensor 1415, and proximity sensor 1416.
The acceleration sensor 1411 may detect the magnitudes of accelerations on three coordinate axes of a coordinate system established with the terminal 1400. For example, the acceleration sensor 1411 may be used to detect components of gravitational acceleration in three coordinate axes. The processor 1401 may control the touch display 1405 to display a user interface in a landscape view or a portrait view according to the gravitational acceleration signal acquired by the acceleration sensor 1411. The acceleration sensor 1411 may also be used for the acquisition of motion data of a game or a user.
The gyro sensor 1412 may detect a body direction and a rotation angle of the terminal 1400, and the gyro sensor 1412 may collect a 3D motion of the user to the terminal 1400 in cooperation with the acceleration sensor 1411. The processor 1401 may implement the following functions based on the data collected by the gyro sensor 1412: motion sensing (e.g., changing UI according to a tilting operation by a user), image stabilization at shooting, game control, and inertial navigation.
Pressure sensor 1413 may be disposed on a side frame of terminal 1400 and/or on an underlying layer of touch screen 1405. When the pressure sensor 1413 is provided at a side frame of the terminal 1400, a grip signal of the terminal 1400 by a user can be detected, and the processor 1401 performs right-and-left hand recognition or quick operation according to the grip signal collected by the pressure sensor 1413. When the pressure sensor 1413 is disposed at the lower layer of the touch screen 1405, the processor 1401 realizes control of the operability control on the UI interface according to the pressure operation of the user on the touch screen 1405. The operability controls include at least one of a button control, a scroll bar control, an icon control, and a menu control.
The fingerprint sensor 1414 is used to collect a fingerprint of a user, and the processor 1401 identifies the identity of the user based on the fingerprint collected by the fingerprint sensor 1414, or the fingerprint sensor 1414 identifies the identity of the user based on the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, the user is authorized by the processor 1401 to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying for and changing settings, etc. The fingerprint sensor 1414 may be provided on the front, back, or side of the terminal 1400. When a physical key or vendor Logo is provided on terminal 1400, fingerprint sensor 1414 may be integrated with the physical key or vendor Logo.
The optical sensor 1415 is used to collect the ambient light intensity. In one embodiment, the processor 1401 may control the display brightness of the touch screen 1405 based on the intensity of ambient light collected by the optical sensor 1415. Specifically, when the intensity of the ambient light is high, the display brightness of the touch display screen 1405 is turned up; when the ambient light intensity is low, the display brightness of the touch display screen 1405 is turned down. In another embodiment, the processor 1401 may also dynamically adjust the shooting parameters of the camera assembly 1406 based on the ambient light intensity collected by the optical sensor 1415.
A proximity sensor 1416, also referred to as a distance sensor, is typically provided on the front panel of terminal 1400. The proximity sensor 1416 is used to collect the distance between the user and the front of the terminal 1400. In one embodiment, when the proximity sensor 1416 detects that the distance between the user and the front surface of the terminal 1400 gradually decreases, the processor 1401 controls the touch display 1405 to switch from the bright screen state to the off screen state; when the proximity sensor 1416 detects that the distance between the user and the front surface of the terminal 1400 gradually increases, the touch display 1405 is controlled by the processor 1401 to switch from the off-screen state to the on-screen state.
Those skilled in the art will appreciate that the structure shown in fig. 14 is not limiting and that terminal 1400 may include more or less components than those illustrated, or may combine certain components, or employ a different arrangement of components.
The embodiment of the application also provides a computer device, which comprises a memory and a processor, wherein at least one instruction, at least one section of program, code set or instruction set is stored in the memory, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded by the processor and realizes the method for creating the list control.
The embodiment of the application also provides a computer readable storage medium, wherein at least one instruction, at least one section of program, a code set or an instruction set is stored in the readable storage medium, and the at least one instruction, the at least one section of program, the code set or the instruction set is loaded and executed by the processor to realize the method for creating the list control.
The present application also provides a computer program product, which when run on a computer, causes the computer to perform the method for creating a list control provided by the above-mentioned method embodiments.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program for instructing related hardware, and the program may be stored in a computer readable storage medium, which may be a computer readable storage medium included in the memory of the above embodiments; or may be a computer-readable storage medium, alone, that is not incorporated into the terminal. The computer readable storage medium stores at least one instruction, at least one program, a code set, or an instruction set, where the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the method for creating a list control.
Alternatively, the computer-readable storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), solid state disk (SSD, solid State Drives), or optical disk, etc. The random access memory may include resistive random access memory (ReRAM, resistance Random Access Memory) and dynamic random access memory (DRAM, dynamic Random Access Memory), among others. The foregoing embodiment numbers of the present application are merely for describing, and do not represent advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the present application is not intended to limit the invention to the particular embodiments of the present application, but to limit the scope of the invention to the particular embodiments of the present application.

Claims (11)

1. A method for creating a list control, the method comprising:
displaying a production interface for producing the applet in the visual production program, wherein the production interface comprises an editing area, the editing area is used for previewing a program interface of the applet in the production process, and the applet is a program running depending on a host program;
receiving a multi-task triggering operation, wherein the multi-task triggering operation is used for switching a display mode of a terminal into a multi-task mode, the multi-task mode is a display mode of parallelly displaying display interfaces of at least two application programs in a terminal interface, and the manufacturing interface and the electronic form display interface are parallelly displayed in the terminal interface according to the multi-task triggering operation; or receiving a program calling operation, wherein the program calling operation is used for calling a table application program in the visual production program, a target table file is stored in the table application program, and a spreadsheet display interface is displayed on the production interface in a superposition mode according to the program calling operation; or receiving a target table file, wherein the target table file is a file received through a short-distance wireless communication technology, displaying candidate application programs for applying the target table file, wherein the candidate application programs comprise the visual production program, receiving a first selection operation of the visual production program, and displaying an electronic table display interface according to the first selection operation; the electronic form display interface is an interface corresponding to a form application program, a target form file is displayed in the electronic form display interface, and the target form file comprises at least one form element;
Receiving a table importing operation, wherein the table importing operation is used for importing the target table file into the visual production program;
and displaying a list control corresponding to the target table file in the editing area according to the table importing operation, wherein a corresponding relation exists between a list item in the list control and a table element in the target table file.
2. The method of claim 1, wherein the receiving form import operation comprises:
and receiving a drag operation on the target table file as the table importing operation, wherein the starting point of the drag operation is positioned at any point on the target table file in the electronic table display interface, and the ending point of the drag operation is positioned in a preset area range in the manufacturing interface.
3. The method of claim 1, further comprising an import control in the spreadsheet display interface;
the receiving table importing operation includes:
and receiving a second selection operation on the importing control, and determining the table importing operation for importing the target table file into the visualization preparation program.
4. A method according to any one of claims 1 to 3, wherein displaying a list control corresponding to the target table file in the editing area according to the table import operation includes:
acquiring n table elements in the target table file according to the table importing operation, wherein n is a positive integer;
typesetting and displaying the data items in the ith table element in the ith list item in a preset typesetting mode according to the data type, wherein i is a positive integer, and i is less than or equal to n.
5. The method of claim 4, wherein the step of determining the position of the first electrode is performed,
when the ith table element corresponds to the ith row in the target table file, the contents of m cells in the ith row correspond to m display elements at different positions in the ith list item, and m is a positive integer;
when the ith table element corresponds to the ith column in the target table file, the contents of m cells in the ith column correspond to m display elements in different positions in the ith list item.
6. A method according to any one of claims 1 to 3, wherein after displaying the list control corresponding to the target table file in the editing area according to the table import operation, the method further includes:
Receiving an adjustment operation for an ith list item;
and uniformly adjusting each list item in the list control according to the adjustment operation of the ith list item.
7. A method according to any one of claims 1 to 3, wherein the method further comprises:
generating a program package corresponding to the display content in the editing area at intervals of preset time;
and uploading the program package to a server for archiving.
8. The method of claim 7, wherein the applet is an applet hosting an instant messenger program, and the visualization preparation program is bound to a target account in the instant messenger program;
the method further comprises the steps of:
receiving a program preview operation, wherein the program preview operation is used for triggering the small program to preview in the instant messaging program;
transmitting a program preview signal to the server according to the program preview operation, wherein the program preview signal comprises a program identifier of the applet;
receiving an applet preview message through the instant messaging program logged in the target account, wherein the applet preview message is fed back by the server according to the program preview signal;
Receiving a third selection operation on the applet preview message;
and displaying a program preview interface of the small program according to the third selection operation.
9. A device for creating a list control, the device comprising:
the display module is used for displaying a production interface for producing the applet in the visual production program, wherein the production interface comprises an editing area, the editing area is used for previewing a program interface of the applet in the production process, and the applet is a program running depending on a host program;
the receiving module is used for receiving a multi-task triggering operation, wherein the multi-task triggering operation is used for switching a display mode of the terminal into a multi-task mode, the multi-task mode is a display mode for displaying display interfaces of at least two application programs in a terminal interface in parallel, and the display module is also used for displaying the manufacturing interface and the electronic table display interface in the terminal interface in parallel according to the multi-task triggering operation; or the receiving module is used for receiving a program calling operation, the program calling operation is used for calling a table application program in the visual production program, a target table file is stored in the table application program, and the display module is also used for superposing and displaying an electronic table display interface on the production interface according to the program calling operation; or the receiving module is used for receiving a target table file, the target table file is a file received through a short-distance wireless communication technology, the display module is used for displaying candidate application programs for applying the target table file, the candidate application programs comprise the visual production program, a first selection operation of the visual production program is received, and an electronic table display interface is displayed according to the first selection operation; the electronic form display interface is an interface corresponding to a form application program, a target form file is displayed in the electronic form display interface, and the target form file comprises at least one form element;
The receiving module is used for receiving a table importing operation, and the table importing operation is used for importing the target table file into the visualization manufacturing program;
the display module is further configured to display a list control corresponding to the target table file in the editing area according to the table importing operation, where a corresponding relationship exists between a list item in the list control and a table element in the target table file.
10. A computer device comprising a processor and a memory, wherein the memory has stored therein at least one program that is loaded and executed by the processor to implement the method of creating a list control as claimed in any one of claims 1 to 8.
11. A computer readable storage medium having stored therein at least one program loaded and executed by a processor to implement the method of creating a list control of any of claims 1 to 8.
CN201910635572.XA 2019-07-15 2019-07-15 Method, device and equipment for creating list control and readable storage medium Active CN112230906B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910635572.XA CN112230906B (en) 2019-07-15 2019-07-15 Method, device and equipment for creating list control and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910635572.XA CN112230906B (en) 2019-07-15 2019-07-15 Method, device and equipment for creating list control and readable storage medium

Publications (2)

Publication Number Publication Date
CN112230906A CN112230906A (en) 2021-01-15
CN112230906B true CN112230906B (en) 2023-05-23

Family

ID=74111105

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910635572.XA Active CN112230906B (en) 2019-07-15 2019-07-15 Method, device and equipment for creating list control and readable storage medium

Country Status (1)

Country Link
CN (1) CN112230906B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2101864A1 (en) * 1992-08-27 1994-02-28 Claudia Carpenter Customizable program control interface for a computer system
DE29807612U1 (en) * 1998-04-27 1998-09-24 Tps Teleprocessing Systeme Gmb Graphical user interface
JP2004295442A (en) * 2003-03-27 2004-10-21 Clarion Co Ltd Merged display control method of tree control and list control in application software and program for application software used for the same
WO2005022337A2 (en) * 2003-08-29 2005-03-10 Yahoo! Inc. Extensible user interface
CN102770840A (en) * 2010-02-19 2012-11-07 微软公司 Data structure mapping and navigation
CN105159688A (en) * 2015-10-14 2015-12-16 浙江大学 Programmable information visualization interaction type design method
WO2016099575A1 (en) * 2014-12-19 2016-06-23 Facebook, Inc. Systems and methods for creating, selecting, presenting, and executing calls to action
JP2017102875A (en) * 2015-12-04 2017-06-08 株式会社ユニフィニティー Software development program and software development method
CN107680640A (en) * 2017-09-26 2018-02-09 上海联影医疗科技有限公司 Electronic report management method, device and storage medium for medical image system
CN108399064A (en) * 2017-02-07 2018-08-14 南京南瑞继保电气有限公司 Multilingual entry generation method based on Qt exploitations
WO2019047184A1 (en) * 2017-09-08 2019-03-14 广东欧珀移动通信有限公司 Information display method, apparatus, and terminal
CN109657206A (en) * 2018-11-22 2019-04-19 天津字节跳动科技有限公司 Display methods, device and the electronic equipment of table
CN109783566A (en) * 2019-03-27 2019-05-21 北京计算机技术及应用研究所 A kind of product inspection data acquisition device
CN109783565A (en) * 2019-02-18 2019-05-21 广州恒峰智能信息科技有限公司 A kind of method and system that excel data quickly introduce
CN109828802A (en) * 2017-11-23 2019-05-31 腾讯科技(武汉)有限公司 List View display methods, device and readable medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10078499B2 (en) * 2015-03-10 2018-09-18 Anthony Martello System and method for manipulating and displaying data
MX357098B (en) * 2014-06-16 2018-06-26 Braeburn Systems Llc Graphical highlight for programming a control.
US9696967B2 (en) * 2015-11-09 2017-07-04 Microsoft Technology Licensing, Llc Generation of an application from data

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2101864A1 (en) * 1992-08-27 1994-02-28 Claudia Carpenter Customizable program control interface for a computer system
DE29807612U1 (en) * 1998-04-27 1998-09-24 Tps Teleprocessing Systeme Gmb Graphical user interface
JP2004295442A (en) * 2003-03-27 2004-10-21 Clarion Co Ltd Merged display control method of tree control and list control in application software and program for application software used for the same
WO2005022337A2 (en) * 2003-08-29 2005-03-10 Yahoo! Inc. Extensible user interface
CN102770840A (en) * 2010-02-19 2012-11-07 微软公司 Data structure mapping and navigation
WO2016099575A1 (en) * 2014-12-19 2016-06-23 Facebook, Inc. Systems and methods for creating, selecting, presenting, and executing calls to action
CN105159688A (en) * 2015-10-14 2015-12-16 浙江大学 Programmable information visualization interaction type design method
JP2017102875A (en) * 2015-12-04 2017-06-08 株式会社ユニフィニティー Software development program and software development method
CN108399064A (en) * 2017-02-07 2018-08-14 南京南瑞继保电气有限公司 Multilingual entry generation method based on Qt exploitations
WO2019047184A1 (en) * 2017-09-08 2019-03-14 广东欧珀移动通信有限公司 Information display method, apparatus, and terminal
CN107680640A (en) * 2017-09-26 2018-02-09 上海联影医疗科技有限公司 Electronic report management method, device and storage medium for medical image system
CN109828802A (en) * 2017-11-23 2019-05-31 腾讯科技(武汉)有限公司 List View display methods, device and readable medium
CN109657206A (en) * 2018-11-22 2019-04-19 天津字节跳动科技有限公司 Display methods, device and the electronic equipment of table
CN109783565A (en) * 2019-02-18 2019-05-21 广州恒峰智能信息科技有限公司 A kind of method and system that excel data quickly introduce
CN109783566A (en) * 2019-03-27 2019-05-21 北京计算机技术及应用研究所 A kind of product inspection data acquisition device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
excel-boot;魔心;《https://gitee.com/programmeres/easy-poi》;全文 *
别人的微信小程序开发花了一个月敲代码制作,而我只用了三分钟;固码跑稳了;《https://www.sohu.com/a/237654005_100151340》;全文 *
在Web界面中实现Excel数据大量导入的处理方式;wuhuacong;《https://www.cnblogs.com/wuhuacong/p/9566946.html》;全文 *
微信小程序开发者工具更新日志;微信开发平台;《https://developers.weixin.qq.com/miniprogram/dev/devtools/uplog.html》;全文 *

Also Published As

Publication number Publication date
CN112230906A (en) 2021-01-15

Similar Documents

Publication Publication Date Title
CN107885533B (en) Method and device for managing component codes
US11853730B2 (en) Mini program data binding method and apparatus, device, and storage medium
CN112230914B (en) Method, device, terminal and storage medium for producing small program
CN109327608B (en) Song sharing method, terminal, server and system
CN113204298B (en) Method and device for displaying release progress, electronic equipment and storage medium
CN113127130B (en) Page jump method, device and storage medium
WO2022152024A1 (en) Widget display method and electronic device
CN112181576A (en) Form processing method, device, terminal and storage medium
CN112363660B (en) Method and device for determining cover image, electronic equipment and storage medium
CN111191176B (en) Website content updating method, device, terminal and storage medium
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN112416485A (en) Information guiding method, device, terminal and storage medium
CN112749362A (en) Control creating method, device, equipment and storage medium
CN112257006A (en) Page information configuration method, device, equipment and computer readable storage medium
CN113467663B (en) Interface configuration method, device, computer equipment and medium
CN113204302B (en) Virtual robot-based operation method, device, equipment and storage medium
CN112822544B (en) Video material file generation method, video synthesis method, device and medium
CN112230910B (en) Page generation method, device and equipment of embedded program and storage medium
CN112416486A (en) Information guiding method, device, terminal and storage medium
CN111898353A (en) Table display method, device and medium
CN110889060A (en) Webpage display method and device, computer equipment and storage medium
CN113485596B (en) Virtual model processing method and device, electronic equipment and storage medium
CN112230906B (en) Method, device and equipment for creating list control and readable storage medium
CN115379113A (en) Shooting processing method, device, equipment and storage medium
CN114911478A (en) Page creating method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40037421

Country of ref document: HK

SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant