Search

CN-121996858-A - Method, device, equipment and storage medium for managing tab

CN121996858ACN 121996858 ACN121996858 ACN 121996858ACN-121996858-A

Abstract

The application discloses a tab management method, a tab management device, tab management equipment and a storage medium, and relates to the technical field of terminals. The method comprises the steps of displaying at least two tabs on a tab bar in a first interface window, responding to dragging operation of a selected target tab in the tab bar, determining the display position of the target tab relative to the first interface window, and displaying target tabs with different display modes based on different display positions of the target tab outside the tab bar. By dragging the target tab out of the tab bar, the target tabs with different display modes are displayed according to different display positions of the target tab outside the tab bar, and the target tabs with different display modes are more convenient for a user to select, so that the tab does not need to search for redundant operation paths, the operation requirement on the user is reduced, and the man-machine interaction efficiency is improved.

Inventors

  • Song Yunchuang
  • LIU BING
  • He Qiuzi

Assignees

  • 华为技术有限公司

Dates

Publication Date
20260508
Application Date
20241104

Claims (14)

  1. 1. A method of tab management, the method comprising: Displaying a first interface window, wherein at least two tabs are displayed on a tab bar in the first interface window; Responding to the dragging operation of the selected target tab in the tab bar, and determining the display position of the target tab relative to the first interface window; and displaying the target tabs with different display styles based on different display positions of the target tabs outside the tab bar.
  2. 2. The method of claim 1, wherein displaying the target tab in the different display styles based on the different display positions of the target tab outside the tab bar comprises: Responsive to the target tab being dragged to a first region of the first interface window, displaying the target tab in the first region or first tab window; responding to the target tab being dragged to a second area of the first interface window, displaying page content corresponding to the target tab in a second interface window, wherein the second interface window is independent of the first interface window; And responding to the target tab being dragged to a third area outside the first interface window, displaying a shortcut link identifier corresponding to the target tab, or displaying the target tab in a second tab window, wherein the shortcut link identifier is used for opening page content corresponding to the target tab, and the first tab window or the second tab window is used for displaying tabs and is associated with the first interface window.
  3. 3. The method of claim 2, wherein the displaying the target tab in the first area in response to the target tab being dragged to the first area of the first interface window comprises: responding to the target tab being dragged to the first area, and respectively suspending and displaying a plurality of tabs in the target tab in the form of independent cards in the range of the first area under the condition that the target tab is an ungrouped tab; In response to the target tab being dragged to the first area, in the case that the target tab is a group tab, displaying a plurality of tabs in the target tab in a suspended manner in a single card form within the range of the first area, or additionally displaying a sidebar in the first area, and displaying the target tab in the sidebar.
  4. 4. A method according to claim 3, characterized in that the method further comprises: In a case where the target tab is displayed in the sidebar, in response to other tabs in the tab bar than the target tab being dragged to the first region, displaying the other tabs in the sidebar; Wherein the display style of the other tabs is different from the display style of the target tab.
  5. 5. The method of any of claims 2 to 4, wherein after the displaying the shortcut link identifier corresponding to the target tab in response to the target tab being dragged to a third area outside the first interface window, the method further comprises: And responding to the triggering operation of the shortcut link identification, displaying the page content corresponding to the target tab in a third interface window, and canceling to display the page content corresponding to the target tab in the first interface window.
  6. 6. The method of any of claims 2 to 5, wherein after the displaying the target tab in the second tab window in response to the target tab being dragged to a third area outside of the first interface window, the method further comprises: and responding to the selection operation of the target tab displayed in the second tab window, and changing and displaying the page content displayed in the first interface window as the page content corresponding to the selected tab in the target tab.
  7. 7. The method according to any one of claims 2 to 6, further comprising: and responding to the closing operation of the second tab window, and restoring the tab bar displayed in the first interface window from the target tab displayed in the second tab window.
  8. 8. The method according to any one of claims 3 to 7, further comprising: Responding to the amplifying operation of the target tab which is displayed in a floating manner in the first area, and switching and displaying the target tab as a tab floating window, wherein page contents corresponding to the target tab are displayed in the tab floating window; And responding to the shrinking operation of the tab floating window, and displaying the tab floating window as the target tab in a switching manner.
  9. 9. The method of claim 8, wherein the displaying the target tab as a tab floating window in response to the zoom-in operation of the target tab being displayed in suspension in the first area comprises: When the target tabs displayed in a floating manner in the first area are grouped tabs, switching the first tabs to be displayed as first tab floating windows in response to the amplifying operation of the first tabs in the target tabs, wherein page contents corresponding to the first tabs are displayed in the first tab floating windows; the responding to the shrinking operation of the tab floating window, the tab floating window is switched to be displayed as the target tab, and the method comprises the following steps: and under the condition that the target tabs displayed in a floating mode in the first area are groups of tabs, responding to the shrinking operation of the first tab floating window, switching and displaying the first tab floating window as the first tab, wherein the first tab is displayed in a floating mode in the first area in an independent card mode.
  10. 10. The method of any one of claims 1 to 9, wherein after the displaying the first interface window, the method further comprises: Under the condition that page contents corresponding to a second tab are displayed on the first interface window, canceling the display of the tab bar in response to a preset operation on the tab bar, and displaying tabs in the tab bar on a third tab window, wherein the third tab window is used for displaying tabs and is associated with the first interface window.
  11. 11. The method according to claim 10, wherein the method further comprises: and responding to the tab switching operation of the tabs in the third tab window, and switching and displaying page contents corresponding to the selected tab in the first interface window.
  12. 12. An electronic device comprising a processor and a memory coupled to the processor, the memory for storing computer program code comprising computer instructions that, when read from the memory by the processor, cause the electronic device to implement the tab management method of any one of claims 1 to 11.
  13. 13. A computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to implement the tab management method of any one of claims 1 to 11.
  14. 14. A computer program product, characterized in that the computer program product, when run on a computer, causes the computer to perform the tab management method of any one of claims 1 to 11.

Description

Method, device, equipment and storage medium for managing tab Technical Field The embodiment of the application relates to the technical field of terminals, in particular to a method, a device, equipment and a storage medium for managing tabs. Background With the development of terminal technology, a user can open a plurality of pages when using an application, and each page corresponds to one tab. A tab is a graphical tab that allows a user to switch between different pages by clicking or touching. For example, a plurality of pages are opened in a browser, and tabs corresponding to the respective pages are arranged and displayed in tab bars above the browser pages. In the case of opening multiple pages, the tabs in the tab bar may become crowded and confusing. In the related art, a grouping folder is constructed to hide part of the tabs, so that the number of the tabs displayed is reduced. However, by hiding the tabs in the grouping folder, the hidden tabs are difficult to find, and in the case that the hidden tabs need to be clicked, the grouping folder needs to be unfolded before the required tabs need to be clicked, so that an operation path is increased, and operability is reduced. Disclosure of Invention In order to solve the technical problems, the application provides a tab management method, a tab management device, tab management equipment and a storage medium. According to the technical scheme provided by the application, the tab is separated from the crowded tab bar, so that the tab does not need to be searched by redundant operation paths, and the operability is improved. In order to achieve the technical purpose, the embodiment of the application provides the following technical scheme: In a first aspect, a tab management method is provided. The method comprises the steps of displaying at least two tabs on a tab bar in a first interface window, responding to dragging operation of a selected target tab in the tab bar, determining the display position of the target tab relative to the first interface window, and displaying target tabs with different display modes based on different display positions of the target tab outside the tab bar. Therefore, the target tab is dragged out of the tab bar, and the target tabs with different display modes are displayed according to different display positions of the target tab outside the tab bar, so that the target tabs with different display modes are more convenient for a user to select, the tab does not need redundant operation paths to search, the operation requirement on the user is reduced, and the man-machine interaction efficiency is improved. One possible implementation, displaying the target tab in different display styles based on different display positions of the target tab outside the tab bar, includes displaying the target tab in the first region or the first tab window in response to the target tab being dragged to the first region of the first interface window. And responding to the target tab being dragged to a second area of the first interface window, and displaying page content corresponding to the target tab in a second interface window independent of the first interface window. And responding to the target tab being dragged to a third area outside the first interface window, displaying a shortcut link identifier corresponding to the target tab, or displaying the target tab in the second tab window. The shortcut link identifier is used for opening page content corresponding to the target tab, and the first tab window or the second tab window is used for displaying the tab and is associated with the first interface window. Therefore, by displaying the tabs in different patterns in different areas outside the tab bar, on one hand, the situation that too many tabs become crowded and disordered in the tab bar and are difficult to search is avoided, and on the other hand, a user can migrate the tabs in the tab bar to the designated positions according to actual needs, so that the tabs can be conveniently searched and selected, the operation is simplified, and the man-machine interaction efficiency is improved. In another possible implementation, the target tab is displayed in the first area in response to the target tab being dragged to the first area of the first interface window, including, in response to the target tab being dragged to the first area, respectively floating and displaying the plurality of tabs in the target tab in the form of independent cards within the range of the first area if the target tab is an ungrouped tab. In the case that the target tab is a group tab, a plurality of tabs in the target tab are displayed in a floating manner in a single card form within the range of the first area, or a sidebar is additionally displayed in the first area, and the target tab is displayed in the sidebar. In this way, different display schemes are provided for the grouped tabs and the ungrouped tabs, on one hand, the recognizability