Skip to content

Conversation

@discreted66
Copy link
Collaborator

@discreted66 discreted66 commented Apr 8, 2025

优化表格搜索功能

效果如下:

image

Summary by CodeRabbit

Summary by CodeRabbit

  • New Features

    • Integrated a new search functionality, replacing the complex filter form with a streamlined search bar, breadcrumb navigation, and an import button.
    • Added localized placeholder text for search inputs in both English and Chinese, improving user guidance.
    • Introduced a new dependency for enhanced search box features.
  • Style

    • Updated the layout and styling to support the simplified search interface, ensuring a cleaner, more responsive experience.

@coderabbitai
Copy link

coderabbitai bot commented Apr 8, 2025

Walkthrough

This pull request introduces a new dependency, @opentiny/vue-search-box, which adds a search component along with its associated CSS. Several localization files have been updated to include new placeholder strings for the search functionality in both English and Chinese. The search table component has been significantly refactored, replacing a complex form with a simplified layout that includes a breadcrumb, a search box, and an import button. Additionally, the CSS for the search table has been streamlined, and the reactive variables and grid reload function have been updated accordingly.

Changes

Files Change Summary
template/tinyvue/package.json
template/tinyvue/src/main.ts
Added new dependency "@opentiny/vue-search-box": "^0.0.1" and imported its CSS for styling.
template/nestJs/locales.json
template/tinyvue/src/locales.json
Introduced new locale entries for search placeholders in both English and Chinese.
template/tinyvue/src/views/list/search-table/index.vue
template/tinyvue/src/views/list/search-table/search-table.less
Refactored the search table component by removing the complex form and collapsible filters; added a breadcrumb, search box, import button, updated reactive variables, modified the reloadGrid method, and simplified CSS styles.
template/tinyvue/src/locale/en-US.ts
template/tinyvue/src/locale/zh-CN.ts
template/tinyvue/src/views/list/search-table/locale/en-US.ts
template/tinyvue/src/views/list/search-table/locale/zh-CN.ts
Removed outdated localization strings related to the previous search table layout.

Sequence Diagram(s)

sequenceDiagram
    participant U as User
    participant SB as TinySearchBox Component
    participant ST as SearchTable Component
    participant UI as Grid UI

    U->>SB: Enter search keywords
    SB->>ST: Emit search filter event
    ST->>ST: Call reloadGrid(filters)
    ST->>UI: Update grid with filtered results
Loading

Poem

Oh, I’m a rabbit, quick on my feet,
Hopping through code with a rhythmic beat.
A new search box now leads the way,
Guiding the users throughout the day.
With crumbs of code and a joyful hop,
I celebrate improvements that never stop!
🐰💻


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between bb20fae and 30eebe3.

📒 Files selected for processing (63)
  • template/nestJs/locales.json (2 hunks)
  • template/tinyvue/config/vite.config.base.ts (2 hunks)
  • template/tinyvue/config/vite.config.preview.base.ts (2 hunks)
  • template/tinyvue/package.json (1 hunks)
  • template/tinyvue/src/layout/default-layout.vue (1 hunks)
  • template/tinyvue/src/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/locale/en-US/httpError.ts (0 hunks)
  • template/tinyvue/src/locale/en-US/settings.ts (0 hunks)
  • template/tinyvue/src/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/locale/zh-CN/httpError.ts (0 hunks)
  • template/tinyvue/src/locale/zh-CN/settings.ts (0 hunks)
  • template/tinyvue/src/locales.json (2 hunks)
  • template/tinyvue/src/main.ts (1 hunks)
  • template/tinyvue/src/views/board/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/board/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/cloud/contracts/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/cloud/contracts/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/cloud/hello/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/cloud/hello/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/exception/403/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/exception/403/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/exception/404/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/exception/404/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/exception/500/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/exception/500/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/form/base/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/form/base/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/form/step/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/form/step/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/list/search-table/index.vue (6 hunks)
  • template/tinyvue/src/views/list/search-table/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/list/search-table/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/list/search-table/search-table.less (3 hunks)
  • template/tinyvue/src/views/locale/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/locale/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/login/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/login/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/menu/demo/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/menu/demo/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/menu/info/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/menu/info/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/not-found/404/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/not-found/404/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/permission/info/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/permission/info/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/profile/detail/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/profile/detail/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/result/error/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/result/error/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/result/success/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/result/success/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/role/info/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/role/info/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/user/info/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/user/info/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/user/setting/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/user/setting/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/userManager/info/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/userManager/info/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/userManager/setting/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/userManager/setting/locale/zh-CN.ts (0 hunks)
  • template/tinyvue/src/views/userManager/useradd/locale/en-US.ts (0 hunks)
  • template/tinyvue/src/views/userManager/useradd/locale/zh-CN.ts (0 hunks)
💤 Files with no reviewable changes (54)
  • template/tinyvue/src/views/board/locale/zh-CN.ts
  • template/tinyvue/src/views/menu/info/locale/en-US.ts
  • template/tinyvue/src/views/menu/demo/locale/en-US.ts
  • template/tinyvue/src/views/role/info/locale/en-US.ts
  • template/tinyvue/src/views/form/base/locale/zh-CN.ts
  • template/tinyvue/src/locale/en-US/httpError.ts
  • template/tinyvue/src/locale/zh-CN/settings.ts
  • template/tinyvue/src/views/exception/404/locale/en-US.ts
  • template/tinyvue/src/views/cloud/contracts/locale/zh-CN.ts
  • template/tinyvue/src/views/login/locale/zh-CN.ts
  • template/tinyvue/src/views/userManager/info/locale/en-US.ts
  • template/tinyvue/src/views/form/step/locale/zh-CN.ts
  • template/tinyvue/src/views/cloud/hello/locale/en-US.ts
  • template/tinyvue/src/views/role/info/locale/zh-CN.ts
  • template/tinyvue/src/views/result/success/locale/zh-CN.ts
  • template/tinyvue/src/views/cloud/contracts/locale/en-US.ts
  • template/tinyvue/src/views/result/error/locale/en-US.ts
  • template/tinyvue/src/views/locale/locale/zh-CN.ts
  • template/tinyvue/src/views/user/setting/locale/zh-CN.ts
  • template/tinyvue/src/views/user/setting/locale/en-US.ts
  • template/tinyvue/src/views/exception/403/locale/zh-CN.ts
  • template/tinyvue/src/views/exception/403/locale/en-US.ts
  • template/tinyvue/src/views/menu/demo/locale/zh-CN.ts
  • template/tinyvue/src/locale/en-US/settings.ts
  • template/tinyvue/src/views/permission/info/locale/zh-CN.ts
  • template/tinyvue/src/views/list/search-table/locale/zh-CN.ts
  • template/tinyvue/src/views/profile/detail/locale/zh-CN.ts
  • template/tinyvue/src/views/not-found/404/locale/zh-CN.ts
  • template/tinyvue/src/views/permission/info/locale/en-US.ts
  • template/tinyvue/src/views/cloud/hello/locale/zh-CN.ts
  • template/tinyvue/src/locale/zh-CN.ts
  • template/tinyvue/src/views/form/step/locale/en-US.ts
  • template/tinyvue/src/views/userManager/useradd/locale/en-US.ts
  • template/tinyvue/src/views/menu/info/locale/zh-CN.ts
  • template/tinyvue/src/views/result/success/locale/en-US.ts
  • template/tinyvue/src/views/user/info/locale/zh-CN.ts
  • template/tinyvue/src/views/userManager/info/locale/zh-CN.ts
  • template/tinyvue/src/views/exception/500/locale/en-US.ts
  • template/tinyvue/src/views/result/error/locale/zh-CN.ts
  • template/tinyvue/src/views/exception/404/locale/zh-CN.ts
  • template/tinyvue/src/views/userManager/useradd/locale/zh-CN.ts
  • template/tinyvue/src/views/user/info/locale/en-US.ts
  • template/tinyvue/src/views/board/locale/en-US.ts
  • template/tinyvue/src/locale/en-US.ts
  • template/tinyvue/src/views/list/search-table/locale/en-US.ts
  • template/tinyvue/src/views/exception/500/locale/zh-CN.ts
  • template/tinyvue/src/views/not-found/404/locale/en-US.ts
  • template/tinyvue/src/views/form/base/locale/en-US.ts
  • template/tinyvue/src/views/locale/locale/en-US.ts
  • template/tinyvue/src/views/userManager/setting/locale/en-US.ts
  • template/tinyvue/src/views/login/locale/en-US.ts
  • template/tinyvue/src/locale/zh-CN/httpError.ts
  • template/tinyvue/src/views/profile/detail/locale/en-US.ts
  • template/tinyvue/src/views/userManager/setting/locale/zh-CN.ts
✅ Files skipped from review due to trivial changes (1)
  • template/tinyvue/src/layout/default-layout.vue
🚧 Files skipped from review as they are similar to previous changes (4)
  • template/tinyvue/src/main.ts
  • template/tinyvue/package.json
  • template/nestJs/locales.json
  • template/tinyvue/src/locales.json
🔇 Additional comments (19)
template/tinyvue/config/vite.config.preview.base.ts (3)

6-6: Added ESLint integration to improve code quality

The addition of the ESLint plugin will help enforce coding standards and catch potential issues early in the development process.


13-13: ESLint configuration with cache disabled

Setting cache: false ensures that all files are linted on each build. While this might slightly impact build performance, it ensures more consistent linting results.


50-51: Fixed comma in path string

Added a missing comma after the path string, which improves syntax consistency.

template/tinyvue/config/vite.config.base.ts (5)

6-6: Added ESLint integration to improve code quality

The addition of the ESLint plugin matches the changes made in the preview config, ensuring consistent linting across different build modes.


13-13: ESLint configuration with cache disabled

Setting cache: false ensures thorough linting on each build, which helps maintain code quality.


44-44: Improved quotation consistency in define section

The quotation marks are now more consistent, with the key properly quoted as a string literal.


51-51: Fixed comma in path string

Added a missing comma after the path string, improving syntax consistency.


58-58: Added missing semicolon

Added a semicolon at the end of the config object definition, improving code consistency.

template/tinyvue/src/views/list/search-table/index.vue (6)

2-5: Improved component structure with better naming and breadcrumb navigation

The component's top-level structure has been improved by using more descriptive class names and adding a breadcrumb for better navigation.


15-48: Enhanced search UI with a modern search box component

The previous complex filtering form has been replaced with a clean, intuitive search interface featuring:

  • Import button for data export
  • SearchBox component for flexible field-based searching
  • Screen toggle for fullscreen mode

This significantly improves usability and provides a more streamlined experience.


58-58: Added selection column to grid

Added a selection column to allow users to select multiple rows, enhancing data manipulation capabilities.


169-169: Added import for TinySearchBox component

The import statement for the new search box component aligns with the UI changes.


191-192: Added reactive tags reference

The reactive tags reference properly tracks selected search tags for the search box component.


339-341: Simplified grid reload function

The reloadGrid function has been streamlined to directly accept filters, simplifying the integration with the search box component.

template/tinyvue/src/views/list/search-table/search-table.less (5)

1-7: Improved container class naming

The container class has been renamed to better reflect its purpose, providing better CSS organization.


9-12: Simplified table container styles

The table container styles have been simplified while maintaining the necessary spacing and layout properties.


14-25: Added styles for new search box component

Added proper styling for the search box container and its inner input field to ensure consistent appearance and behavior across the application.


59-60: Enhanced button container styling

Added padding and background color to the button container, improving visual separation and usability.


104-117: Improved fullscreen mode container styling

The fullscreen container styles have been updated to:

  • Properly calculate height based on viewport
  • Ensure proper overflow handling
  • Maintain consistent styling across normal and fullscreen modes

This creates a more polished user experience when toggling between view modes.

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🔭 Outside diff range comments (1)
template/tinyvue/src/views/list/search-table/index.vue (1)

329-329: 🛠️ Refactor suggestion

Hardcoded message should be internationalized

The success message "已删除" is hardcoded in Chinese. It should be internationalized for better localization support.

  Modal.message({
-   message: '已删除',
+   message: t('searchTable.operation.delete.success'),
    status: 'success',
  });

You'll also need to add this new key to your locale files.

🧹 Nitpick comments (1)
template/tinyvue/src/locale/zh-CN.ts (1)

8-9: Correct integration of localization modules.

The imported localization objects are properly spread into the main export object, making their translations available throughout the application.

Consider maintaining consistent naming convention for localization imports. Other imports use the pattern locale<ModuleName> (like localeLogin), while list18 doesn't follow this pattern.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 53c8644 and 1178d0b.

📒 Files selected for processing (8)
  • template/tinyvue/package.json (1 hunks)
  • template/tinyvue/src/locale/en-US.ts (1 hunks)
  • template/tinyvue/src/locale/zh-CN.ts (1 hunks)
  • template/tinyvue/src/main.ts (1 hunks)
  • template/tinyvue/src/views/list/search-table/index.vue (6 hunks)
  • template/tinyvue/src/views/list/search-table/locale/en-US.ts (1 hunks)
  • template/tinyvue/src/views/list/search-table/locale/zh-CN.ts (1 hunks)
  • template/tinyvue/src/views/list/search-table/search-table.less (3 hunks)
🔇 Additional comments (13)
template/tinyvue/src/main.ts (1)

14-14: Appropriate CSS import for the new search box component.

This import correctly includes the required CSS styles for the newly added search box functionality from the @opentiny/vue-search-box package.

template/tinyvue/package.json (1)

45-45:

Details

❓ Verification inconclusive

Verify stability of very early package version.

The @opentiny/vue-search-box package is being used at version ^0.0.1, which indicates this is a very early release that may not be stable for production use.


🏁 Script executed:

#!/bin/bash
# Check if there are newer versions of the package available
npm view @opentiny/vue-search-box versions --json

# Check if the package is being actively maintained
npm view @opentiny/vue-search-box time --json | jq 'to_entries | sort_by(.value) | .[-5:] | from_entries'

# Check for any package dependencies that might cause issues
npm view @opentiny/vue-search-box dependencies --json

Length of output: 1146


Action Required: Reassess Dependency Version for Stability

  • The dependency declaration in template/tinyvue/package.json currently specifies "@opentiny/vue-search-box": "^0.0.1".
  • Our verification shows that two versions have been published—0.0.1 and 0.0.2—with the latest update on 2025-03-25.
  • Since the package is still in the pre-1.0.0 stage, even a patch-level increment (0.0.1 → 0.0.2) might introduce breaking changes under semver’s rules for 0.x releases. Moreover, using ^0.0.1 restricts the update range to versions <0.0.2, which may prevent automatically receiving any stability fixes available in 0.0.2.

Recommendation:

  • Evaluate whether the current version 0.0.1 meets production stability requirements.
  • If improvements have been confirmed in 0.0.2 that address stability issues, consider updating the dependency (and its version range) accordingly.
  • If you decide to retain 0.0.1, please ensure that its experimental status is acceptable for your production context.
template/tinyvue/src/views/list/search-table/locale/zh-CN.ts (1)

4-4: Well-formed localization entry for search placeholder.

This localization entry correctly provides a Chinese placeholder text for the new search functionality, instructing users to select attributes or enter keywords.

template/tinyvue/src/locale/zh-CN.ts (1)

2-3: Import of additional localization modules.

These imports appropriately bring in the localization files needed for the enhanced search functionality and other features.

template/tinyvue/src/locale/en-US.ts (1)

3-3: Appropriate integration of locale strings

The addition of localization strings from the search-table component follows the existing pattern in this file. This change will make the search placeholder text available throughout the application.

Also applies to: 9-9

template/tinyvue/src/views/list/search-table/locale/en-US.ts (1)

4-5: Good addition of search placeholder text

The new placeholder text provides clear guidance to users on how to interact with the search functionality.

template/tinyvue/src/views/list/search-table/search-table.less (2)

14-25: Well-structured CSS for the search component

The new search-div class and the deep selector for tiny-input are properly implemented to style the new search box component.


59-60: Improved button styling

The updated styling for the btn class with proper padding and background color improves the visual appearance of the action buttons.

template/tinyvue/src/views/list/search-table/index.vue (5)

3-3: Good use of Breadcrumb component

The addition of the Breadcrumb component improves navigation and context for the users.


15-48: Improved search interface with TinySearchBox

The new search interface is cleaner and more user-friendly compared to the previous complex form implementation.


58-58: Enhanced grid with selection capability

Adding a selection column allows users to perform batch operations on the table data.


169-169: Proper implementation of the search box component

The TinySearchBox component is properly imported and integrated with reactive state management.

Also applies to: 191-191


339-342: Correct implementation of reloadGrid function

The reloadGrid function now accepts filters and correctly assigns them to filterOptions before reloading the grid.

@GaoNeng-wWw
Copy link
Collaborator

感谢贡献,请将国际化词条文件存放在 template/nestJs/locales.json

@kagol kagol added the enhancement New feature or request label Apr 8, 2025
@kagol
Copy link
Member

kagol commented Apr 8, 2025

@discreted66 麻烦在PR描述里贴个效果图

@@ -1,10 +1,12 @@
import localeLogin from '@/views/login/locale/en-US';
import localeI18 from '@/views/locale/locale/en-US';
import list18 from '@/views/list/search-table/locale/en-US';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

命名建议优化成:list18 -> localeSearchTable

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已删除无用词条

{{ $t('searchTable.operation.import') }}
</tiny-button>
<div class="search-div">
<TinySearchBox
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

命令风格需要保持统一

Suggested change
<TinySearchBox
<tiny-search-box

},
) {
const { ...rest } = filterOptions.value;
let obj = {};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

变量名应该用有意义的名字,能够一眼看出这个变量的用途

Suggested change
let obj = {};
let searchInfo = {};

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已修改

'Please select attributes or enter keywords to search',
'searchTable.form.number.placeholder': 'Please enter Set Number',
'searchTable.form.name': 'Set Name',
'searchTable.form.name.placeholder': 'Please enter Set Name',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

search-table/locale/ 这个文件夹里的内容是不是没用了?国际化词条都在后台数据库保存,通过 nestJs/locales.json 进行初始化。如果确认没用了,可以整体清理一波,删除无用的文件。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

已全部清理

<tiny-button @click="toCsvEvent">
{{ $t('searchTable.operation.import') }}
</tiny-button>
<div class="search-div">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<div class="search-div">
<div class="search-box-container">

@discreted66 discreted66 changed the title feat:The table search function is optimized. feat: optimize table search function Apr 8, 2025
@discreted66 discreted66 force-pushed the dev branch 2 times, most recently from 8378620 to 30eebe3 Compare April 8, 2025 09:05
@kagol kagol merged commit f6d9ecd into opentiny:dev Apr 8, 2025
1 of 2 checks passed
@kagol
Copy link
Member

kagol commented Apr 28, 2025

@all-contributors please add @discreted66 for code.

@allcontributors
Copy link
Contributor

@kagol

I've put up a pull request to add @discreted66! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request nestjs web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants