-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(pager): [pager] add simplest pager to adaptive x-design #2126
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
export default { | ||
state: { | ||
pageSizeText: '', | ||
align: 'right', | ||
totalFixedLeft: true | ||
align: 'right' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,35 @@ | ||
{ | ||
"name": "@opentiny/vue-base-select", | ||
"type": "module", | ||
"version": "3.18.0", | ||
"description": "", | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"main": "lib/index.js", | ||
"module": "index.ts", | ||
"sideEffects": false, | ||
"type": "module", | ||
"devDependencies": { | ||
"@opentiny-internal/vue-test-utils": "workspace:*", | ||
"vitest": "^0.31.0" | ||
}, | ||
"scripts": { | ||
"build": "pnpm -w build:ui $npm_package_name", | ||
"//postversion": "pnpm build" | ||
}, | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "workspace:~", | ||
"@opentiny/vue-button": "workspace:~", | ||
"@opentiny/vue-checkbox": "workspace:~", | ||
"@opentiny/vue-common": "workspace:~", | ||
"@opentiny/vue-locale": "workspace:~", | ||
"@opentiny/vue-tag": "workspace:~", | ||
"@opentiny/vue-filter-box": "workspace:~", | ||
"@opentiny/vue-icon": "workspace:~", | ||
"@opentiny/vue-input": "workspace:~", | ||
"@opentiny/vue-locale": "workspace:~", | ||
"@opentiny/vue-option": "workspace:~", | ||
"@opentiny/vue-recycle-scroller": "workspace:~", | ||
"@opentiny/vue-renderless": "workspace:~", | ||
"@opentiny/vue-scrollbar": "workspace:~", | ||
"@opentiny/vue-icon": "workspace:~", | ||
"@opentiny/vue-select-dropdown": "workspace:~", | ||
"@opentiny/vue-grid": "workspace:~", | ||
"@opentiny/vue-tree": "workspace:~", | ||
"@opentiny/vue-tooltip": "workspace:~", | ||
"@opentiny/vue-filter-box": "workspace:~", | ||
"@opentiny/vue-checkbox": "workspace:~", | ||
"@opentiny/vue-tag": "workspace:~", | ||
"@opentiny/vue-theme": "workspace:~", | ||
"@opentiny/vue-recycle-scroller": "workspace:~", | ||
"@opentiny/vue-button": "workspace:~" | ||
"@opentiny/vue-tooltip": "workspace:~" | ||
}, | ||
"license": "MIT" | ||
} | ||
"devDependencies": { | ||
"@opentiny-internal/vue-test-utils": "workspace:*", | ||
"vitest": "^0.31.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,28 @@ | ||
{ | ||
"name": "@opentiny/vue-pager", | ||
"type": "module", | ||
"version": "3.18.0", | ||
"description": "", | ||
"license": "MIT", | ||
"sideEffects": false, | ||
"main": "lib/index.js", | ||
"module": "index.ts", | ||
"sideEffects": false, | ||
"type": "module", | ||
"devDependencies": { | ||
"@opentiny-internal/vue-test-utils": "workspace:*", | ||
"vitest": "^0.31.0" | ||
}, | ||
"scripts": { | ||
"build": "pnpm -w build:ui $npm_package_name", | ||
"//postversion": "pnpm build" | ||
}, | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "workspace:~", | ||
"@opentiny/vue-base-select": "workspace:~", | ||
"@opentiny/vue-common": "workspace:~", | ||
"@opentiny/vue-icon": "workspace:~", | ||
"@opentiny/vue-popover": "workspace:~", | ||
"@opentiny/vue-pager-item": "workspace:~", | ||
"@opentiny/vue-loading": "workspace:~", | ||
"@opentiny/vue-theme": "workspace:~", | ||
"@opentiny/vue-common": "workspace:~" | ||
"@opentiny/vue-pager-item": "workspace:~", | ||
"@opentiny/vue-popover": "workspace:~", | ||
"@opentiny/vue-renderless": "workspace:~", | ||
"@opentiny/vue-theme": "workspace:~" | ||
}, | ||
"license": "MIT" | ||
} | ||
"devDependencies": { | ||
"@opentiny-internal/vue-test-utils": "workspace:*", | ||
"vitest": "^0.31.0" | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tip
Codebase Verification
Reconsider the removal of
totalFixedLeft
propertyThe removal of the
totalFixedLeft
property frompackages/design/smb/src/pager/index.ts
may have unintended consequences on other parts of the codebase. Several other files still use this property:packages/vue/src/pager/src/index.ts
: IncludestotalFixedLeft
in type definitions.packages/renderless/types/pager.type.ts
: DefinestotalFixedLeft
as a boolean type.packages/design/saas/src/pager/index.ts
andpackages/design/aurora/src/pager/index.ts
: Still usetotalFixedLeft: true
.packages/renderless/src/pager/vue.ts
: Has a computed property fortotalFixedLeft
that falls back to design config or a default value.Before proceeding with this change, consider the following:
totalFixedLeft
across all pager components in different design packages.totalFixedLeft
might be undefined in some design configs.totalFixedLeft
in its type definitions.A more comprehensive review of the changes across the entire pager component ecosystem is recommended to maintain consistency and prevent potential bugs.
Analysis chain
Verify the removal of
totalFixedLeft
doesn't break anything.The removal of the
totalFixedLeft
property simplifies the state structure, which is a good change.However, ensure that the component doesn't rely on the
totalFixedLeft
property for rendering logic or calculations. Run the following script to verify:Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 154
Script:
Length of output: 1804