@jiaozhiye/qm-design-react 1.8.1 → 1.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/lib/_utils/util.d.ts +1 -0
  2. package/lib/drawer/src/drawer.d.ts +2 -0
  3. package/lib/drawer/style/index.less +101 -82
  4. package/lib/hooks/useMemo.d.ts +1 -0
  5. package/lib/index.esm.js +1 -1
  6. package/lib/index.full.js +1 -1
  7. package/lib/index.js +1 -1
  8. package/lib/lazy-load/style/index.less +15 -15
  9. package/lib/modal/src/modal.d.ts +2 -0
  10. package/lib/modal/style/index.less +116 -95
  11. package/lib/style/index.css +55 -19
  12. package/lib/style/index.less +40 -40
  13. package/lib/style/index.min.css +1 -1
  14. package/lib/table/src/body/context.d.ts +4 -0
  15. package/lib/table/src/cell/index.d.ts +13 -0
  16. package/lib/table/src/cell/useCellText.d.ts +6 -0
  17. package/lib/table/src/{body → cell}/useValueFormat.d.ts +1 -2
  18. package/lib/table/src/context/index.d.ts +2 -2
  19. package/lib/table/src/edit/index.d.ts +1 -3
  20. package/lib/table/src/hooks/useImperativeMethod.d.ts +1 -2
  21. package/lib/table/src/hooks/useTableRef.d.ts +2 -0
  22. package/lib/table/src/hooks/useTableState.d.ts +3 -0
  23. package/lib/table/src/table/props.d.ts +1 -0
  24. package/lib/table/src/table/types.d.ts +1 -1
  25. package/lib/table/style/alert.less +32 -34
  26. package/lib/table/style/clipboard.less +27 -29
  27. package/lib/table/style/column-filter.less +0 -2
  28. package/lib/table/style/empty.less +17 -19
  29. package/lib/table/style/export.less +24 -26
  30. package/lib/table/style/fast-search.less +108 -110
  31. package/lib/table/style/footer.less +31 -33
  32. package/lib/table/style/full-screen.less +19 -21
  33. package/lib/table/style/group-summary.less +91 -93
  34. package/lib/table/style/header.less +205 -207
  35. package/lib/table/style/import.less +23 -25
  36. package/lib/table/style/pager.less +27 -29
  37. package/lib/table/style/print.less +19 -21
  38. package/lib/table/style/reload.less +19 -21
  39. package/lib/table/style/select-collection.less +19 -21
  40. package/lib/table/style/size.less +86 -88
  41. package/lib/table/style/super-search.less +100 -102
  42. package/lib/table/style/table.less +0 -2
  43. package/lib/table/style/tollbox.less +37 -39
  44. package/lib/table/style/toper.less +29 -31
  45. package/lib/table/style/variable.less +50 -48
  46. package/package.json +139 -139
@@ -1,39 +1,37 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2020-03-18 10:26:46
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-11-26 21:03:04
6
- */
7
- @prefix-table: ~'@{qm-prefix}-table';
8
-
9
- .@{prefix-table}-toolbox {
10
- display: inline-block;
11
- padding: 5px 3px;
12
- line-height: 1;
13
- cursor: pointer;
14
- transition: all 0.3s ease;
15
- .icon {
16
- font-size: 1.05em;
17
- }
18
- &:hover {
19
- color: @v-primary-color;
20
- }
21
- }
22
-
23
- .top-toolbox__popper {
24
- .ant-dropdown-menu {
25
- &-title-content {
26
- display: flex;
27
- & > span {
28
- flex: 1 0;
29
- }
30
- }
31
- }
32
- &[class*='--sm'] {
33
- .ant-dropdown-menu {
34
- &-item {
35
- padding: 2px 8px;
36
- }
37
- }
38
- }
39
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-18 10:26:46
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-11-26 21:03:04
6
+ */
7
+ .@{prefix-table}-toolbox {
8
+ display: inline-block;
9
+ padding: 5px 3px;
10
+ line-height: 1;
11
+ cursor: pointer;
12
+ transition: all 0.3s ease;
13
+ .icon {
14
+ font-size: 1.05em;
15
+ }
16
+ &:hover {
17
+ color: @v-primary-color;
18
+ }
19
+ }
20
+
21
+ .top-toolbox__popper {
22
+ .ant-dropdown-menu {
23
+ &-title-content {
24
+ display: flex;
25
+ & > span {
26
+ flex: 1 0;
27
+ }
28
+ }
29
+ }
30
+ &[class*='--sm'] {
31
+ .ant-dropdown-menu {
32
+ &-item {
33
+ padding: 2px 8px;
34
+ }
35
+ }
36
+ }
37
+ }
@@ -1,31 +1,29 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-10-28 12:20:04
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-02-27 21:52:42
6
- */
7
- @prefix-table: ~'@{qm-prefix}-table';
8
-
9
- .@{prefix-table}-top {
10
- display: flex;
11
- white-space: nowrap;
12
- margin-bottom: @v-module-distance;
13
- &__space {
14
- flex: 1;
15
- display: inherit;
16
- justify-content: space-between;
17
- &-slot {
18
- flex: 1;
19
- align-items: center;
20
- height: 100%;
21
- display: inherit;
22
- .ant-btn {
23
- margin-right: @v-module-distance - 2px;
24
- }
25
- }
26
- }
27
- &__actions {
28
- display: inherit;
29
- align-items: center;
30
- }
31
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-10-28 12:20:04
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-02-27 21:52:42
6
+ */
7
+ .@{prefix-table}-top {
8
+ display: flex;
9
+ white-space: nowrap;
10
+ margin-bottom: @v-module-distance;
11
+ &__space {
12
+ flex: 1;
13
+ display: inherit;
14
+ justify-content: space-between;
15
+ &-slot {
16
+ flex: 1;
17
+ align-items: center;
18
+ height: 100%;
19
+ display: inherit;
20
+ .ant-btn {
21
+ margin-right: @v-module-distance - 2px;
22
+ }
23
+ }
24
+ }
25
+ &__actions {
26
+ display: inherit;
27
+ align-items: center;
28
+ }
29
+ }
@@ -1,48 +1,50 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2020-02-28 21:58:58
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-09-04 16:24:06
6
- */
7
- /* font-size */
8
- @v-font-size: @--font-size-base;
9
- @v-font-size-large: @--font-size-base;
10
- @v-font-size-small: @--font-size-sm;
11
-
12
- @v-font-color: @--text-color;
13
- @v-font-secondary-dark-color: @--text-color-secondary-dark;
14
- @v-font-secondary-color: @--text-color-secondary;
15
- @v-font-disabled-color: @--disabled-color;
16
-
17
- /* primary color */
18
- @v-primary-color: @--primary-color;
19
- @v-danger-color: @--error-color;
20
-
21
- // module distance
22
- @v-module-distance: @--padding-md;
23
-
24
- /* border radius */
25
- @v-border-radius: @--border-radius-base;
26
-
27
- /* icon */
28
- @v-icon-color: #bfbfbf;
29
-
30
- /* table color */
31
- @v-table-header-background-color: #fafafa;
32
- @v-table-border-color: #e8e8e8;
33
- @v-table-resizable-color: #d9d9d9;
34
- @v-table-background-color: #ffffff;
35
- @v-table-footer-background-color: #fafafa;
36
- @v-table-column-sort-hover-color: #f2f2f2;
37
- @v-table-column-sorted-color: #f5f5f5;
38
- @v-table-column-filter-hover-color: #e5e5e5;
39
-
40
- /* table row */
41
- @v-table-row-height: 34px;
42
- @v-table-row-height-large: 42px;
43
- @v-table-row-height-small: 26px;
44
- @v-table-row-line-height: 24px;
45
- @v-table-row-hover-background-color: #f5f5f5;
46
- @v-table-row-selected-background-color: @--primary-2;
47
- @v-table-row-current-background-color: @--primary-4;
48
- @v-table-row-expanded-background-color: #fafafa;
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-02-28 21:58:58
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-09-04 16:24:06
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ /* font-size */
10
+ @v-font-size: @--font-size-base;
11
+ @v-font-size-large: @--font-size-base;
12
+ @v-font-size-small: @--font-size-sm;
13
+
14
+ @v-font-color: @--text-color;
15
+ @v-font-secondary-dark-color: @--text-color-secondary-dark;
16
+ @v-font-secondary-color: @--text-color-secondary;
17
+ @v-font-disabled-color: @--disabled-color;
18
+
19
+ /* primary color */
20
+ @v-primary-color: @--primary-color;
21
+ @v-danger-color: @--error-color;
22
+
23
+ // module distance
24
+ @v-module-distance: @--padding-md;
25
+
26
+ /* border radius */
27
+ @v-border-radius: @--border-radius-base;
28
+
29
+ /* icon */
30
+ @v-icon-color: #bfbfbf;
31
+
32
+ /* table color */
33
+ @v-table-header-background-color: #fafafa;
34
+ @v-table-border-color: #e8e8e8;
35
+ @v-table-resizable-color: #d9d9d9;
36
+ @v-table-background-color: #ffffff;
37
+ @v-table-footer-background-color: #fafafa;
38
+ @v-table-column-sort-hover-color: #f2f2f2;
39
+ @v-table-column-sorted-color: #f5f5f5;
40
+ @v-table-column-filter-hover-color: #e5e5e5;
41
+
42
+ /* table row */
43
+ @v-table-row-height: 34px;
44
+ @v-table-row-height-large: 42px;
45
+ @v-table-row-height-small: 26px;
46
+ @v-table-row-line-height: 24px;
47
+ @v-table-row-hover-background-color: #f5f5f5;
48
+ @v-table-row-selected-background-color: @--primary-2;
49
+ @v-table-row-current-background-color: @--primary-4;
50
+ @v-table-row-expanded-background-color: #fafafa;
package/package.json CHANGED
@@ -1,139 +1,139 @@
1
- {
2
- "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.8.1",
4
- "description": "A Component Library for React",
5
- "keywords": [
6
- "React",
7
- "components",
8
- "typescript"
9
- ],
10
- "author": "jiaozhiye",
11
- "license": "MIT",
12
- "scripts": {
13
- "dev": "cross-env NODE_ENV=development BABEL_ENV=web webpack serve --progress --config build/webpack.src.conf.js",
14
- "build:lib": "yarn clean:lib && yarn build:umd && yarn build:esm && yarn build:type && yarn build:locale && yarn build:theme",
15
- "build:umd": "cross-env NODE_ENV=production BABEL_ENV=lib webpack --config ./build/webpack.build.conf.js",
16
- "build:esm": "cross-env BABEL_ENV=lib rollup --config ./build/build-esm.rollup.js",
17
- "build:type": "gulp build --gulpfile ./build/build-type.gulp.js && cp-cli lib/packages lib && rimraf lib/packages",
18
- "build:locale": "cross-env BABEL_ENV=lib babel packages/locale --extensions .ts --out-dir lib/locale",
19
- "build:theme": "gulp build --gulpfile ./build/build-style.gulp.js",
20
- "clean:lib": "rimraf lib",
21
- "lint": "eslint ./packages --ext .js,.ts,.jsx,.tsx",
22
- "lint-fix": "eslint --fix ./packages --ext .js,.ts,.jsx,.tsx",
23
- "format": "prettier --write \"./packages/**/*.{js,ts,jsx,tsx}\""
24
- },
25
- "husky": {
26
- "hooks": {
27
- "pre-commit": "lint-staged"
28
- }
29
- },
30
- "lint-staged": {
31
- "packages/**/*.{js,ts,jsx,tsx}": [
32
- "npm run lint-fix",
33
- "git add"
34
- ],
35
- "packages/**/*.{less}": "prettier --write"
36
- },
37
- "publishConfig": {
38
- "registry": "https://registry.npmjs.org/"
39
- },
40
- "files": [
41
- "lib"
42
- ],
43
- "main": "lib/index.js",
44
- "module": "lib/index.esm.js",
45
- "unpkg": "lib/index.full.js",
46
- "types": "lib/index.d.ts",
47
- "style": "lib/style/index.css",
48
- "peerDependencies": {
49
- "react": ">=16.14.0",
50
- "react-dom": ">=16.14.0"
51
- },
52
- "dependencies": {
53
- "@rc-component/portal": "^1.1.2",
54
- "@rc-component/trigger": "^1.14.4",
55
- "add-dom-event-listener": "^1.1.0",
56
- "antd": "4.24.14",
57
- "axios": "^0.27.2",
58
- "big.js": "^6.2.1",
59
- "china-area-data": "^5.0.1",
60
- "classnames": "^2.3.2",
61
- "copy-to-clipboard": "^3.3.2",
62
- "cropperjs": "^1.5.12",
63
- "dayjs": "1.x",
64
- "exceljs": "^4.4.0",
65
- "localforage": "^1.10.0",
66
- "lodash-es": "^4.17.21",
67
- "memoize-one": "^6.0.0",
68
- "omit.js": "^2.0.2",
69
- "prop-types": "^15.8.1",
70
- "react-countup": "^6.4.0",
71
- "react-draggable": "^4.4.6",
72
- "react-sortablejs": "^6.1.4",
73
- "resize-observer-polyfill": "^1.5.1",
74
- "scroll-into-view-if-needed": "^2.2.28",
75
- "sortablejs": "^1.15.0"
76
- },
77
- "devDependencies": {
78
- "@babel/cli": "^7.18.6",
79
- "@babel/core": "^7.18.6",
80
- "@babel/plugin-proposal-class-properties": "^7.18.6",
81
- "@babel/plugin-proposal-decorators": "^7.18.6",
82
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
83
- "@babel/plugin-transform-runtime": "^7.18.6",
84
- "@babel/preset-env": "^7.18.6",
85
- "@babel/preset-react": "^7.18.6",
86
- "@babel/preset-typescript": "^7.18.6",
87
- "@rollup/plugin-babel": "^5.3.0",
88
- "@rollup/plugin-commonjs": "^22.0.2",
89
- "@rollup/plugin-json": "^4.1.0",
90
- "@rollup/plugin-node-resolve": "^14.1.0",
91
- "@rollup/plugin-replace": "^4.0.0",
92
- "@rollup/plugin-terser": "^0.4.4",
93
- "@rollup/plugin-typescript": "^8.5.0",
94
- "@types/lodash-es": "^4.17.6",
95
- "@types/react": "^17.0.58",
96
- "@types/react-dom": "^17.0.20",
97
- "@typescript-eslint/eslint-plugin": "^5.30.0",
98
- "@typescript-eslint/parser": "^5.30.0",
99
- "autoprefixer": "^10.4.14",
100
- "babel-loader": "^9.1.0",
101
- "core-js": "^3.32.0",
102
- "cp-cli": "^2.0.0",
103
- "cross-env": "^7.0.3",
104
- "css-loader": "^6.7.3",
105
- "eslint": "^8.40.0",
106
- "eslint-plugin-prettier": "^4.2.0",
107
- "eslint-plugin-react": "^7.32.0",
108
- "eslint-plugin-react-hooks": "^4.6.0",
109
- "eslint-webpack-plugin": "^3.2.0",
110
- "gulp": "^4.0.2",
111
- "gulp-autoprefixer": "^8.0.0",
112
- "gulp-clean-css": "^4.3.0",
113
- "gulp-ignore": "^3.0.0",
114
- "gulp-less": "^5.0.0",
115
- "gulp-rename": "^2.0.0",
116
- "gulp-typescript": "^6.0.0-alpha.1",
117
- "html-webpack-plugin": "^5.5.0",
118
- "husky": "^4.3.8",
119
- "less": "^4.2.0",
120
- "less-loader": "^11.1.2",
121
- "lint-staged": "^10.5.4",
122
- "mockjs": "^1.1.0",
123
- "prettier": "^2.8.8",
124
- "react": "17.0.2",
125
- "react-dom": "17.0.2",
126
- "rimraf": "^3.0.2",
127
- "rollup": "^2.79.1",
128
- "style-loader": "^3.3.2",
129
- "ts-loader": "^9.4.4",
130
- "typescript": "^4.9.5",
131
- "webpack": "^5.88.2",
132
- "webpack-cli": "^5.1.4",
133
- "webpack-dev-server": "^4.15.1",
134
- "webpack-node-externals": "^3.0.0"
135
- },
136
- "engines": {
137
- "node": ">= 14"
138
- }
139
- }
1
+ {
2
+ "name": "@jiaozhiye/qm-design-react",
3
+ "version": "1.8.3",
4
+ "description": "A Component Library for React",
5
+ "keywords": [
6
+ "React",
7
+ "components",
8
+ "typescript"
9
+ ],
10
+ "author": "jiaozhiye",
11
+ "license": "MIT",
12
+ "scripts": {
13
+ "dev": "cross-env NODE_ENV=development BABEL_ENV=web webpack serve --progress --config build/webpack.src.conf.js",
14
+ "build:lib": "yarn clean:lib && yarn build:umd && yarn build:esm && yarn build:type && yarn build:locale && yarn build:theme",
15
+ "build:umd": "cross-env NODE_ENV=production BABEL_ENV=lib webpack --config ./build/webpack.build.conf.js",
16
+ "build:esm": "cross-env BABEL_ENV=lib rollup --config ./build/build-esm.rollup.js",
17
+ "build:type": "gulp build --gulpfile ./build/build-type.gulp.js && cp-cli lib/packages lib && rimraf lib/packages",
18
+ "build:locale": "cross-env BABEL_ENV=lib babel packages/locale --extensions .ts --out-dir lib/locale",
19
+ "build:theme": "gulp build --gulpfile ./build/build-style.gulp.js",
20
+ "clean:lib": "rimraf lib",
21
+ "lint": "eslint ./packages --ext .js,.ts,.jsx,.tsx",
22
+ "lint-fix": "eslint --fix ./packages --ext .js,.ts,.jsx,.tsx",
23
+ "format": "prettier --write \"./packages/**/*.{js,ts,jsx,tsx}\""
24
+ },
25
+ "husky": {
26
+ "hooks": {
27
+ "pre-commit": "lint-staged"
28
+ }
29
+ },
30
+ "lint-staged": {
31
+ "packages/**/*.{js,ts,jsx,tsx}": [
32
+ "npm run lint-fix",
33
+ "git add"
34
+ ],
35
+ "packages/**/*.{less}": "prettier --write"
36
+ },
37
+ "publishConfig": {
38
+ "registry": "https://registry.npmjs.org/"
39
+ },
40
+ "files": [
41
+ "lib"
42
+ ],
43
+ "main": "lib/index.js",
44
+ "module": "lib/index.esm.js",
45
+ "unpkg": "lib/index.full.js",
46
+ "types": "lib/index.d.ts",
47
+ "style": "lib/style/index.css",
48
+ "peerDependencies": {
49
+ "react": ">=16.14.0",
50
+ "react-dom": ">=16.14.0"
51
+ },
52
+ "dependencies": {
53
+ "@rc-component/portal": "^1.1.2",
54
+ "@rc-component/trigger": "^1.17.0",
55
+ "add-dom-event-listener": "^1.1.0",
56
+ "antd": "4.24.14",
57
+ "axios": "^0.27.2",
58
+ "big.js": "^6.2.1",
59
+ "china-area-data": "^5.0.1",
60
+ "classnames": "^2.3.2",
61
+ "copy-to-clipboard": "^3.3.2",
62
+ "cropperjs": "^1.5.12",
63
+ "dayjs": "1.x",
64
+ "exceljs": "^4.4.0",
65
+ "localforage": "^1.10.0",
66
+ "lodash-es": "^4.17.21",
67
+ "memoize-one": "^6.0.0",
68
+ "omit.js": "^2.0.2",
69
+ "prop-types": "^15.8.1",
70
+ "react-countup": "^6.4.0",
71
+ "react-draggable": "^4.4.6",
72
+ "react-sortablejs": "^6.1.4",
73
+ "resize-observer-polyfill": "^1.5.1",
74
+ "scroll-into-view-if-needed": "^2.2.31",
75
+ "sortablejs": "^1.15.0"
76
+ },
77
+ "devDependencies": {
78
+ "@babel/cli": "^7.18.6",
79
+ "@babel/core": "^7.18.6",
80
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
81
+ "@babel/plugin-proposal-decorators": "^7.18.6",
82
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
83
+ "@babel/plugin-transform-runtime": "^7.18.6",
84
+ "@babel/preset-env": "^7.18.6",
85
+ "@babel/preset-react": "^7.18.6",
86
+ "@babel/preset-typescript": "^7.18.6",
87
+ "@rollup/plugin-babel": "^5.3.0",
88
+ "@rollup/plugin-commonjs": "^22.0.2",
89
+ "@rollup/plugin-json": "^4.1.0",
90
+ "@rollup/plugin-node-resolve": "^14.1.0",
91
+ "@rollup/plugin-replace": "^4.0.0",
92
+ "@rollup/plugin-terser": "^0.4.4",
93
+ "@rollup/plugin-typescript": "^8.5.0",
94
+ "@types/lodash-es": "^4.17.6",
95
+ "@types/react": "^17.0.58",
96
+ "@types/react-dom": "^17.0.20",
97
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
98
+ "@typescript-eslint/parser": "^5.30.0",
99
+ "autoprefixer": "^10.4.14",
100
+ "babel-loader": "^9.1.0",
101
+ "core-js": "^3.32.0",
102
+ "cp-cli": "^2.0.0",
103
+ "cross-env": "^7.0.3",
104
+ "css-loader": "^6.7.3",
105
+ "eslint": "^8.40.0",
106
+ "eslint-plugin-prettier": "^4.2.0",
107
+ "eslint-plugin-react": "^7.32.0",
108
+ "eslint-plugin-react-hooks": "^4.6.0",
109
+ "eslint-webpack-plugin": "^3.2.0",
110
+ "gulp": "^4.0.2",
111
+ "gulp-autoprefixer": "^8.0.0",
112
+ "gulp-clean-css": "^4.3.0",
113
+ "gulp-ignore": "^3.0.0",
114
+ "gulp-less": "^5.0.0",
115
+ "gulp-rename": "^2.0.0",
116
+ "gulp-typescript": "^6.0.0-alpha.1",
117
+ "html-webpack-plugin": "^5.6.0",
118
+ "husky": "^4.3.8",
119
+ "less": "^4.2.0",
120
+ "less-loader": "^11.1.4",
121
+ "lint-staged": "^10.5.4",
122
+ "mockjs": "^1.1.0",
123
+ "prettier": "^2.8.8",
124
+ "react": "17.0.2",
125
+ "react-dom": "17.0.2",
126
+ "rimraf": "^3.0.2",
127
+ "rollup": "^2.79.1",
128
+ "style-loader": "^3.3.4",
129
+ "ts-loader": "^9.4.4",
130
+ "typescript": "^4.9.5",
131
+ "webpack": "^5.88.2",
132
+ "webpack-cli": "^5.1.4",
133
+ "webpack-dev-server": "^4.15.1",
134
+ "webpack-node-externals": "^3.0.0"
135
+ },
136
+ "engines": {
137
+ "node": ">= 14"
138
+ }
139
+ }