Skip to content

Commit

Permalink
feat(core): 行拖拽到固定列
Browse files Browse the repository at this point in the history
  • Loading branch information
vaynevayne committed Nov 22, 2023
1 parent d18cb8c commit 9ee1dec
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 12 deletions.
6 changes: 3 additions & 3 deletions apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"deploy": "pnpm build && touch ./storybook-static/.nojekyll && gh-pages -d ./storybook-static -t true"
},
"dependencies": {
"@soul/core": "workspace:0.0.26",
"@soul/core": "workspace:0.0.27",
"mockjs": "^1.1.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@soul/tsconfig": "workspace:0.0.25",
"@soul/tsconfig": "workspace:0.0.26",
"@storybook/addon-essentials": "^7.0.12",
"@storybook/addon-interactions": "^7.0.12",
"@storybook/addon-links": "^7.0.12",
Expand All @@ -26,7 +26,7 @@
"@storybook/testing-library": "^0.0.14-next.2",
"@types/react": "^18.2.7",
"@vitejs/plugin-react": "^1.3.2",
"eslint-config-soul": "workspace:0.0.25",
"eslint-config-soul": "workspace:0.0.26",
"eslint-plugin-storybook": "^0.6.12",
"prop-types": "^15.8.1",
"serve": "^13.0.4",
Expand Down
6 changes: 6 additions & 0 deletions packages/eslint-config-soul/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# eslint-config-soul

## 0.0.26

### Patch Changes

- ddddd

## 0.0.25

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-soul/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-soul",
"version": "0.0.25",
"version": "0.0.26",
"main": "index.js",
"license": "MIT",
"dependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/soul-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @soul/core

## 0.0.27

### Patch Changes

- ddddd
- Updated dependencies
- @soul/utils@0.0.27

## 0.0.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/soul-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@soul/core",
"version": "0.0.26",
"version": "0.0.27",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
8 changes: 6 additions & 2 deletions packages/soul-core/src/Table/CheckAllSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,14 @@ const CheckAllSection: FC<any> = ({
draft[colKey] = {
...draft[colKey],
visible: checked,
fixed: col.tab === "维度" ? "left" : false,
fixed: ['"维度"', "其他"].includes(col.tab)
? "left"
: false,
...(checked && {
order:
col.tab === "维度"
col.tab === "其他"
? -1
: col.tab === "维度"
? maxLeftOrder + 1
: maxCenterOrder + 1,
}),
Expand Down
6 changes: 6 additions & 0 deletions packages/soul-tsconfig/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @soul/tsconfig

## 0.0.26

### Patch Changes

- ddddd

## 0.0.25

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/soul-tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@soul/tsconfig",
"version": "0.0.25",
"version": "0.0.26",
"private": true,
"license": "MIT",
"publishConfig": {
Expand Down
6 changes: 6 additions & 0 deletions packages/soul-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @soul/utils

## 0.0.27

### Patch Changes

- ddddd

## 0.0.26

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/soul-utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@soul/utils",
"version": "0.0.26",
"version": "0.0.27",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
Expand Down
6 changes: 3 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9ee1dec

Please sign in to comment.