@jiaozhiye/qm-design-react 1.10.12 → 1.10.14

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.
@@ -130,3 +130,6 @@ table {
130
130
  -webkit-font-smoothing: antialiased;
131
131
  -moz-osx-font-smoothing: grayscale;
132
132
  }
133
+ body {
134
+ font-family: @--font-family;
135
+ }
@@ -2,7 +2,7 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 18:25:34
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2023-03-28 11:42:59
5
+ * @Last Modified time: 2024-10-29 14:59:55
6
6
  */
7
7
  // The prefix to use on all css classes.
8
8
  @qm-prefix: qm;
@@ -43,21 +43,21 @@
43
43
 
44
44
  // Background-color
45
45
  @--background-color: #f2f2f2;
46
- @--background-color-cecondary: #f5f5f5;
46
+ @--background-color-light: #f5f5f5;
47
47
 
48
48
  // Font-family
49
- @--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji',
50
- 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
49
+ @--font-family: LarkHackSafariFont, LarkEmojiFont, LarkChineseQuote, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Tahoma, 'PingFang SC',
50
+ 'Microsoft Yahei', Arial, 'Hiragino Sans GB', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
51
51
  @--font-path: './fonts';
52
52
 
53
53
  // Text color
54
54
  @--text-color: fade(@--black, 85%);
55
- @--text-color-secondary-dark: fade(@--black, 65%);
56
- @--text-color-secondary: fade(@--black, 45%);
55
+ @--text-color-secondary: fade(@--black, 65%);
56
+ @--text-color-placeholder: fade(@--black, 45%);
57
57
  @--header-color: fade(@--black, 85%);
58
58
 
59
59
  // Iconfont
60
- @--icon-color: @--text-color-secondary-dark;
60
+ @--icon-color: @--text-color-secondary;
61
61
 
62
62
  // Disabled color
63
63
  @--disabled-color: fade(@--black, 25%);
@@ -77,6 +77,7 @@
77
77
  @--border-width-base: 1px;
78
78
  @--border-style-base: solid;
79
79
  @--border-radius-base: 2px;
80
+ @--border-radius-lg: @--border-radius-base + 2px;
80
81
  @--border-radius-sm: @--border-radius-base;
81
82
 
82
83
  // Outline
@@ -99,7 +100,7 @@
99
100
  @--height-md: 32px;
100
101
  @--height-sm: 24px;
101
102
 
102
- // LINK
103
+ // Link
103
104
  @--link-color: @--primary-color;
104
105
  @--link-hover-color: @--primary-5;
105
106
  @--link-active-color: @--primary-7;
@@ -114,4 +115,5 @@
114
115
 
115
116
  // antd
116
117
  @blue-base: @--primary-color;
117
- @input-disabled-color: @--text-color-secondary-dark;
118
+ @input-disabled-color: @--text-color-secondary;
119
+ @border-radius-base: @--border-radius-base;
@@ -21,7 +21,7 @@
21
21
  padding-left: 20px;
22
22
  margin-bottom: 6px;
23
23
  font-size: @v-font-size-small;
24
- color: @v-font-secondary-dark-color;
24
+ color: @v-font-color-secondary;
25
25
  }
26
26
  }
27
27
  }
@@ -50,7 +50,7 @@
50
50
  .text-overflow-cut();
51
51
  .handle {
52
52
  padding: 2px;
53
- color: @v-font-secondary-color;
53
+ color: @v-font-color-placeholder;
54
54
  cursor: s-resize;
55
55
  transform: scale(0.9);
56
56
  }
@@ -12,11 +12,11 @@
12
12
  margin-right: 5px;
13
13
  width: 17px;
14
14
  height: 17px;
15
- color: @v-font-secondary-color;
15
+ color: @v-font-color-placeholder;
16
16
  vertical-align: -4px;
17
17
  background: #fff;
18
18
  border: 1px solid rgba(0, 0, 0, 0.085);
19
- border-radius: @v-border-radius;
19
+ border-radius: 2px;
20
20
  transform: scale(0.94117647);
21
21
  outline: none;
22
22
  user-select: none;
@@ -56,7 +56,7 @@
56
56
  &.disabled {
57
57
  cursor: not-allowed;
58
58
  color: rgba(0, 0, 0, 0.1);
59
- background: @--background-color-cecondary;
59
+ background: @--background-color-light;
60
60
  &:hover {
61
61
  border-color: currentColor;
62
62
  }
@@ -96,7 +96,7 @@
96
96
  flex-shrink: 0;
97
97
  margin-left: 4px;
98
98
  font-size: @v-font-size - 1px;
99
- color: @v-font-secondary-color;
99
+ color: @v-font-color-placeholder;
100
100
  }
101
101
  }
102
102
 
@@ -142,7 +142,7 @@
142
142
  }
143
143
  &:hover,
144
144
  &.selected {
145
- color: @v-font-secondary-color;
145
+ color: @v-font-color-placeholder;
146
146
  background-color: @v-table-column-filter-hover-color;
147
147
  }
148
148
  &.actived {
@@ -33,7 +33,7 @@
33
33
  background-color: #2b3a42;
34
34
  padding: 6px 10px;
35
35
  color: #62b1d8;
36
- border-radius: @v-border-radius;
36
+ border-radius: 2px;
37
37
  text-shadow: 0 1px 0 rgba(23, 31, 35, 0.5);
38
38
  }
39
39
  }
@@ -200,7 +200,7 @@
200
200
  }
201
201
  .icon {
202
202
  margin-right: -2px;
203
- color: @v-font-secondary-color;
203
+ color: @v-font-color-placeholder;
204
204
  cursor: pointer;
205
205
  }
206
206
  }
@@ -12,8 +12,8 @@
12
12
  @v-font-size-small: @--font-size-sm;
13
13
 
14
14
  @v-font-color: @--text-color;
15
- @v-font-secondary-dark-color: @--text-color-secondary-dark;
16
- @v-font-secondary-color: @--text-color-secondary;
15
+ @v-font-color-secondary: @--text-color-secondary;
16
+ @v-font-color-placeholder: @--text-color-placeholder;
17
17
  @v-font-disabled-color: @--disabled-color;
18
18
 
19
19
  /* primary color */
@@ -63,7 +63,7 @@
63
63
  position: absolute;
64
64
  top: 10px;
65
65
  inset-inline-end: 10px;
66
- color: @--text-color-secondary;
66
+ color: @--text-color-placeholder;
67
67
  width: 22px;
68
68
  height: 22px;
69
69
  display: flex;
@@ -2,7 +2,7 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 19:05:57
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2023-10-18 09:35:59
5
+ * @Last Modified time: 2024-10-29 13:22:33
6
6
  */
7
7
  @import '../../style/common';
8
8
 
@@ -27,6 +27,11 @@
27
27
  display: block;
28
28
  }
29
29
  }
30
+ &-card-actions {
31
+ .anticon-delete {
32
+ color: @--error-color;
33
+ }
34
+ }
30
35
  &.handle {
31
36
  .ant-upload-list-item-name {
32
37
  cursor: move;
@@ -2,7 +2,7 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 19:05:57
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2023-10-15 12:14:45
5
+ * @Last Modified time: 2024-10-29 11:22:51
6
6
  */
7
7
  @import '../../style/common';
8
8
 
@@ -66,7 +66,7 @@
66
66
  top: 2px;
67
67
  right: 2px;
68
68
  padding: 1px;
69
- border-radius: @--border-radius-base;
69
+ border-radius: 2px;
70
70
  font-size: @--font-size-sm;
71
71
  color: #fff;
72
72
  background-color: rgba(0, 0, 0, 0.4);
@@ -74,6 +74,12 @@
74
74
  cursor: pointer;
75
75
  display: none;
76
76
  }
77
+ .ant-upload-list-item {
78
+ padding: 6px;
79
+ &-info {
80
+ border-radius: @--border-radius-base;
81
+ }
82
+ }
77
83
  }
78
84
  }
79
85
 
package/package.json CHANGED
@@ -1,139 +1,139 @@
1
- {
2
- "name": "@jiaozhiye/qm-design-react",
3
- "version": "1.10.12",
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": "^2.2.0",
55
- "add-dom-event-listener": "^1.1.0",
56
- "antd": "4.24.16",
57
- "big.js": "^6.2.1",
58
- "china-area-data": "^5.0.1",
59
- "classnames": "^2.3.2",
60
- "copy-to-clipboard": "^3.3.2",
61
- "cropperjs": "^1.5.12",
62
- "dayjs": "1.x",
63
- "exceljs": "^4.4.0",
64
- "html2canvas": "^1.4.1",
65
- "localforage": "^1.10.0",
66
- "lodash-es": "^4.17.21",
67
- "memoize-one": "^6.0.0",
68
- "prop-types": "^15.8.1",
69
- "react-countup": "^6.4.0",
70
- "react-draggable": "^4.4.6",
71
- "react-sortablejs": "^6.1.4",
72
- "resize-observer-polyfill": "^1.5.1",
73
- "scroll-into-view-if-needed": "^2.2.31",
74
- "sortablejs": "^1.15.2"
75
- },
76
- "devDependencies": {
77
- "@babel/cli": "^7.24.7",
78
- "@babel/core": "^7.24.7",
79
- "@babel/plugin-proposal-decorators": "^7.24.7",
80
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
81
- "@babel/plugin-transform-class-properties": "^7.24.7",
82
- "@babel/plugin-transform-runtime": "^7.24.7",
83
- "@babel/preset-env": "^7.24.7",
84
- "@babel/preset-react": "^7.24.7",
85
- "@babel/preset-typescript": "^7.24.7",
86
- "@rollup/plugin-babel": "^5.3.0",
87
- "@rollup/plugin-commonjs": "^22.0.2",
88
- "@rollup/plugin-json": "^4.1.0",
89
- "@rollup/plugin-node-resolve": "^14.1.0",
90
- "@rollup/plugin-replace": "^4.0.0",
91
- "@rollup/plugin-terser": "^0.4.4",
92
- "@rollup/plugin-typescript": "^8.5.0",
93
- "@types/lodash-es": "^4.17.6",
94
- "@types/react": "^18.3.0",
95
- "@types/react-dom": "^18.3.0",
96
- "@typescript-eslint/eslint-plugin": "^5.30.0",
97
- "@typescript-eslint/parser": "^5.30.0",
98
- "autoprefixer": "^10.4.14",
99
- "axios": "^0.27.2",
100
- "babel-loader": "^9.1.3",
101
- "core-js": "^3.32.0",
102
- "cp-cli": "^2.0.0",
103
- "cross-env": "^7.0.3",
104
- "css-loader": "^6.11.0",
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.94.0",
132
- "webpack-cli": "^5.1.4",
133
- "webpack-dev-server": "^4.15.2",
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.10.14",
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": "^2.2.0",
55
+ "add-dom-event-listener": "^1.1.0",
56
+ "antd": "4.24.16",
57
+ "big.js": "^6.2.1",
58
+ "china-area-data": "^5.0.1",
59
+ "classnames": "^2.3.2",
60
+ "copy-to-clipboard": "^3.3.2",
61
+ "cropperjs": "^1.5.12",
62
+ "dayjs": "1.x",
63
+ "exceljs": "^4.4.0",
64
+ "html2canvas": "^1.4.1",
65
+ "localforage": "^1.10.0",
66
+ "lodash-es": "^4.17.21",
67
+ "memoize-one": "^6.0.0",
68
+ "prop-types": "^15.8.1",
69
+ "react-countup": "^6.4.0",
70
+ "react-draggable": "^4.4.6",
71
+ "react-sortablejs": "^6.1.4",
72
+ "resize-observer-polyfill": "^1.5.1",
73
+ "scroll-into-view-if-needed": "^2.2.31",
74
+ "sortablejs": "^1.15.2"
75
+ },
76
+ "devDependencies": {
77
+ "@babel/cli": "^7.24.7",
78
+ "@babel/core": "^7.24.7",
79
+ "@babel/plugin-proposal-decorators": "^7.24.7",
80
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
81
+ "@babel/plugin-transform-class-properties": "^7.24.7",
82
+ "@babel/plugin-transform-runtime": "^7.24.7",
83
+ "@babel/preset-env": "^7.24.7",
84
+ "@babel/preset-react": "^7.24.7",
85
+ "@babel/preset-typescript": "^7.24.7",
86
+ "@rollup/plugin-babel": "^5.3.0",
87
+ "@rollup/plugin-commonjs": "^22.0.2",
88
+ "@rollup/plugin-json": "^4.1.0",
89
+ "@rollup/plugin-node-resolve": "^14.1.0",
90
+ "@rollup/plugin-replace": "^4.0.0",
91
+ "@rollup/plugin-terser": "^0.4.4",
92
+ "@rollup/plugin-typescript": "^8.5.0",
93
+ "@types/lodash-es": "^4.17.6",
94
+ "@types/react": "^18.3.0",
95
+ "@types/react-dom": "^18.3.0",
96
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
97
+ "@typescript-eslint/parser": "^5.30.0",
98
+ "autoprefixer": "^10.4.14",
99
+ "axios": "^0.27.2",
100
+ "babel-loader": "^9.1.3",
101
+ "core-js": "^3.32.0",
102
+ "cp-cli": "^2.0.0",
103
+ "cross-env": "^7.0.3",
104
+ "css-loader": "^6.11.0",
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.94.0",
132
+ "webpack-cli": "^5.1.4",
133
+ "webpack-dev-server": "^4.15.2",
134
+ "webpack-node-externals": "^3.0.0"
135
+ },
136
+ "engines": {
137
+ "node": ">= 14"
138
+ }
139
+ }