@jiaozhiye/qm-design-react 2.0.1 → 2.0.2

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.
@@ -1,77 +1,77 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2020-02-28 22:13:54
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2022-06-23 23:49:41
6
- */
7
- .body--column {
8
- .cell--edit {
9
- margin: 0 -1 * (@v-module-distance - 1px);
10
- // placeholder
11
- input::placeholder {
12
- text-align: left;
13
- }
14
- // search
15
- .ant-input-search {
16
- width: calc(100% + 1px);
17
- & > .ant-input-group > .ant-input-group-addon {
18
- line-height: 1;
19
- }
20
- }
21
- // search-helper-multiple
22
- .search-helper-multiple {
23
- .ant-input-group > .ant-select:first-child {
24
- z-index: 1;
25
- .ant-select-selector {
26
- border-top-right-radius: 0;
27
- border-bottom-right-radius: 0;
28
- }
29
- }
30
- .ant-select-multiple {
31
- .ant-select-selection-overflow-item-rest {
32
- pointer-events: none;
33
- }
34
- }
35
- }
36
- // textArea
37
- textarea[class='ant-input'] {
38
- resize: none;
39
- }
40
- &.is-error {
41
- position: relative;
42
- .ant-input-search {
43
- .ant-input,
44
- .ant-input-affix-wrapper {
45
- border-color: @v-danger-color;
46
- box-shadow: none;
47
- z-index: 1;
48
- }
49
- & + .cell-error {
50
- right: 38px;
51
- }
52
- }
53
- .cell-error {
54
- position: absolute;
55
- top: calc(50% - 9px);
56
- font-size: @v-font-size-small;
57
- color: @v-danger-color;
58
- right: 8px;
59
- pointer-events: none;
60
- z-index: 1;
61
- }
62
- }
63
- }
64
- &.col--center {
65
- .cell--edit .ant-input {
66
- text-align: center;
67
- }
68
- }
69
- &.col--right {
70
- .cell--edit .ant-input {
71
- text-align: right;
72
- }
73
- }
74
- &.selected {
75
- background-color: @v-table-row-selected-background-color !important;
76
- }
77
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-02-28 22:13:54
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2023-10-15 12:47:18
6
+ */
7
+ .body--column {
8
+ .cell--edit {
9
+ margin: 0 -1 * (@v-module-distance - 1px);
10
+ // placeholder
11
+ input::placeholder {
12
+ text-align: left;
13
+ }
14
+ // search
15
+ .ant-input-search {
16
+ width: calc(100% + 1px);
17
+ & > .ant-input-group > .ant-input-group-addon {
18
+ line-height: 1;
19
+ }
20
+ }
21
+ // search-helper-multiple
22
+ .search-helper-multiple {
23
+ .ant-input-group > .ant-select:first-child {
24
+ z-index: 1;
25
+ .ant-select-selector {
26
+ border-top-right-radius: 0;
27
+ border-bottom-right-radius: 0;
28
+ }
29
+ }
30
+ .ant-select-multiple {
31
+ .ant-select-selection-overflow-item-rest {
32
+ pointer-events: none;
33
+ }
34
+ }
35
+ }
36
+ // textArea
37
+ textarea[class='ant-input'] {
38
+ resize: none;
39
+ }
40
+ &.is-error {
41
+ position: relative;
42
+ .ant-input,
43
+ .ant-input-affix-wrapper {
44
+ border-color: @v-danger-color;
45
+ box-shadow: none;
46
+ z-index: 1;
47
+ }
48
+ .ant-input-search {
49
+ & + .cell-error {
50
+ right: 38px;
51
+ }
52
+ }
53
+ .cell-error {
54
+ position: absolute;
55
+ top: calc(50% - 9px);
56
+ font-size: @v-font-size-small;
57
+ color: @v-danger-color;
58
+ right: 8px;
59
+ pointer-events: none;
60
+ z-index: 1;
61
+ }
62
+ }
63
+ }
64
+ &.col--center {
65
+ .cell--edit .ant-input {
66
+ text-align: center;
67
+ }
68
+ }
69
+ &.col--right {
70
+ .cell--edit .ant-input {
71
+ text-align: right;
72
+ }
73
+ }
74
+ &.selected {
75
+ background-color: @v-table-row-selected-background-color !important;
76
+ }
77
+ }
@@ -1,12 +1,18 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 19:05:57
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2021-07-31 22:38:07
6
- */
7
- @import '../../style/common';
8
-
9
- @prefix-upload-file: ~'@{qm-prefix}-upload-file';
10
-
11
- .@{prefix-upload-file} {
12
- }
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2023-10-18 09:35:59
6
+ */
7
+ @import '../../style/common';
8
+
9
+ @prefix-upload-file: ~'@{qm-prefix}-upload-file';
10
+
11
+ .@{prefix-upload-file} {
12
+ &.disabled {
13
+ .ant-upload-list-item-name {
14
+ color: @--disabled-color;
15
+ cursor: not-allowed;
16
+ }
17
+ }
18
+ }
@@ -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: 2021-08-28 08:54:46
5
+ * @Last Modified time: 2023-10-15 12:14:45
6
6
  */
7
7
  @import '../../style/common';
8
8
 
@@ -10,6 +10,11 @@
10
10
  @prefix-cropper-preview: ~'@{qm-prefix}-cropper-preview';
11
11
 
12
12
  .@{prefix-upload-img} {
13
+ .ant-upload-list-item-actions {
14
+ .ant-btn {
15
+ margin-left: 15px;
16
+ }
17
+ }
13
18
  }
14
19
 
15
20
  .@{prefix-cropper-preview} {
package/package.json CHANGED
@@ -1,138 +1,138 @@
1
- {
2
- "name": "@jiaozhiye/qm-design-react",
3
- "version": "2.0.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
- },
51
- "dependencies": {
52
- "@rc-component/portal": "^1.1.2",
53
- "@rc-component/trigger": "^1.14.4",
54
- "add-dom-event-listener": "^1.1.0",
55
- "antd": "4.24.14",
56
- "axios": "^0.27.2",
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.3.0",
64
- "localforage": "^1.10.0",
65
- "lodash-es": "^4.17.21",
66
- "memoize-one": "^6.0.0",
67
- "omit.js": "^2.0.2",
68
- "prop-types": "^15.8.1",
69
- "react-countup": "^6.4.0",
70
- "react-draggable": "^4.4.5",
71
- "react-sortablejs": "^6.1.4",
72
- "resize-observer-polyfill": "^1.5.1",
73
- "scroll-into-view-if-needed": "^2.2.28",
74
- "sortablejs": "^1.15.0"
75
- },
76
- "devDependencies": {
77
- "@babel/cli": "^7.18.6",
78
- "@babel/core": "^7.18.6",
79
- "@babel/plugin-proposal-class-properties": "^7.18.6",
80
- "@babel/plugin-proposal-decorators": "^7.18.6",
81
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
82
- "@babel/plugin-transform-runtime": "^7.18.6",
83
- "@babel/preset-env": "^7.18.6",
84
- "@babel/preset-react": "^7.18.6",
85
- "@babel/preset-typescript": "^7.18.6",
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-typescript": "^8.5.0",
92
- "@types/lodash-es": "^4.17.6",
93
- "@types/react": "^17.0.58",
94
- "@types/react-dom": "^17.0.20",
95
- "@typescript-eslint/eslint-plugin": "^5.30.0",
96
- "@typescript-eslint/parser": "^5.30.0",
97
- "autoprefixer": "^10.4.14",
98
- "babel-loader": "^9.1.0",
99
- "core-js": "^3.32.0",
100
- "cp-cli": "^2.0.0",
101
- "cross-env": "^7.0.3",
102
- "css-loader": "^6.7.3",
103
- "eslint": "^8.40.0",
104
- "eslint-plugin-prettier": "^4.2.0",
105
- "eslint-plugin-react": "^7.32.0",
106
- "eslint-plugin-react-hooks": "^4.6.0",
107
- "eslint-webpack-plugin": "^3.2.0",
108
- "gulp": "^4.0.2",
109
- "gulp-autoprefixer": "^8.0.0",
110
- "gulp-clean-css": "^4.3.0",
111
- "gulp-ignore": "^3.0.0",
112
- "gulp-less": "^5.0.0",
113
- "gulp-rename": "^2.0.0",
114
- "gulp-typescript": "^6.0.0-alpha.1",
115
- "html-webpack-plugin": "^5.5.0",
116
- "husky": "^4.3.8",
117
- "less": "^4.2.0",
118
- "less-loader": "^11.1.2",
119
- "lint-staged": "^10.5.4",
120
- "mockjs": "^1.1.0",
121
- "prettier": "^2.8.8",
122
- "react": "17.0.2",
123
- "react-dom": "17.0.2",
124
- "rimraf": "^3.0.2",
125
- "rollup": "^2.79.1",
126
- "rollup-plugin-terser": "^7.0.2",
127
- "style-loader": "^3.3.2",
128
- "ts-loader": "^9.4.4",
129
- "typescript": "^4.9.5",
130
- "webpack": "^5.88.2",
131
- "webpack-cli": "^5.1.4",
132
- "webpack-dev-server": "^4.15.1",
133
- "webpack-node-externals": "^3.0.0"
134
- },
135
- "engines": {
136
- "node": ">= 14"
137
- }
138
- }
1
+ {
2
+ "name": "@jiaozhiye/qm-design-react",
3
+ "version": "2.0.2",
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
+ },
51
+ "dependencies": {
52
+ "@rc-component/portal": "^1.1.2",
53
+ "@rc-component/trigger": "^1.14.4",
54
+ "add-dom-event-listener": "^1.1.0",
55
+ "antd": "4.24.14",
56
+ "axios": "^0.27.2",
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.3.0",
64
+ "localforage": "^1.10.0",
65
+ "lodash-es": "^4.17.21",
66
+ "memoize-one": "^6.0.0",
67
+ "omit.js": "^2.0.2",
68
+ "prop-types": "^15.8.1",
69
+ "react-countup": "^6.4.0",
70
+ "react-draggable": "^4.4.5",
71
+ "react-sortablejs": "^6.1.4",
72
+ "resize-observer-polyfill": "^1.5.1",
73
+ "scroll-into-view-if-needed": "^2.2.28",
74
+ "sortablejs": "^1.15.0"
75
+ },
76
+ "devDependencies": {
77
+ "@babel/cli": "^7.18.6",
78
+ "@babel/core": "^7.18.6",
79
+ "@babel/plugin-proposal-class-properties": "^7.18.6",
80
+ "@babel/plugin-proposal-decorators": "^7.18.6",
81
+ "@babel/plugin-syntax-dynamic-import": "^7.8.3",
82
+ "@babel/plugin-transform-runtime": "^7.18.6",
83
+ "@babel/preset-env": "^7.18.6",
84
+ "@babel/preset-react": "^7.18.6",
85
+ "@babel/preset-typescript": "^7.18.6",
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-typescript": "^8.5.0",
92
+ "@types/lodash-es": "^4.17.6",
93
+ "@types/react": "^17.0.58",
94
+ "@types/react-dom": "^17.0.20",
95
+ "@typescript-eslint/eslint-plugin": "^5.30.0",
96
+ "@typescript-eslint/parser": "^5.30.0",
97
+ "autoprefixer": "^10.4.14",
98
+ "babel-loader": "^9.1.0",
99
+ "core-js": "^3.32.0",
100
+ "cp-cli": "^2.0.0",
101
+ "cross-env": "^7.0.3",
102
+ "css-loader": "^6.7.3",
103
+ "eslint": "^8.40.0",
104
+ "eslint-plugin-prettier": "^4.2.0",
105
+ "eslint-plugin-react": "^7.32.0",
106
+ "eslint-plugin-react-hooks": "^4.6.0",
107
+ "eslint-webpack-plugin": "^3.2.0",
108
+ "gulp": "^4.0.2",
109
+ "gulp-autoprefixer": "^8.0.0",
110
+ "gulp-clean-css": "^4.3.0",
111
+ "gulp-ignore": "^3.0.0",
112
+ "gulp-less": "^5.0.0",
113
+ "gulp-rename": "^2.0.0",
114
+ "gulp-typescript": "^6.0.0-alpha.1",
115
+ "html-webpack-plugin": "^5.5.0",
116
+ "husky": "^4.3.8",
117
+ "less": "^4.2.0",
118
+ "less-loader": "^11.1.2",
119
+ "lint-staged": "^10.5.4",
120
+ "mockjs": "^1.1.0",
121
+ "prettier": "^2.8.8",
122
+ "react": "17.0.2",
123
+ "react-dom": "17.0.2",
124
+ "rimraf": "^3.0.2",
125
+ "rollup": "^2.79.1",
126
+ "rollup-plugin-terser": "^7.0.2",
127
+ "style-loader": "^3.3.2",
128
+ "ts-loader": "^9.4.4",
129
+ "typescript": "^4.9.5",
130
+ "webpack": "^5.88.2",
131
+ "webpack-cli": "^5.1.4",
132
+ "webpack-dev-server": "^4.15.1",
133
+ "webpack-node-externals": "^3.0.0"
134
+ },
135
+ "engines": {
136
+ "node": ">= 14"
137
+ }
138
+ }