@bit-sun/business-component 2.0.28 → 2.0.29

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.
package/package.json CHANGED
@@ -1,61 +1,62 @@
1
- {
2
- "name": "@bit-sun/business-component",
3
- "version": "2.0.28",
4
- "scripts": {
5
- "start": "dumi dev",
6
- "docs:build": "dumi build",
7
- "docs:deploy": "gh-pages -d docs-dist",
8
- "build": "father-build",
9
- "deploy": "npm run docs:build && npm run docs:deploy",
10
- "release": "npm run build && npm publish",
11
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
12
- "test": "umi-test",
13
- "test:coverage": "umi-test --coverage"
14
- },
15
- "main": "dist/index.js",
16
- "module": "dist/index.esm.js",
17
- "typings": "dist/index.d.ts",
18
- "gitHooks": {
19
- "pre-commit": "lint-staged"
20
- },
21
- "lint-staged": {
22
- "*.{js,jsx,less,md,json}": [
23
- "prettier --write"
24
- ],
25
- "*.ts?(x)": [
26
- "prettier --parser=typescript --write"
27
- ]
28
- },
29
- "dependencies": {
30
- "@ant-design/icons": "^4.7.0",
31
- "@types/react-resizable": "^1.7.4",
32
- "@umijs/plugin-antd": "latest",
33
- "ahooks": "^3.1.2",
34
- "antd": "4.17.2",
35
- "array-move": "^4.0.0",
36
- "axios": "^0.24.0",
37
- "bssula": "^2.0.0",
38
- "classnames": "^2.3.1",
39
- "lodash": "^4.17.21",
40
- "querystring": "^0.2.1",
41
- "react": "^16.12.0",
42
- "react-beautiful-dnd": "10.0.0",
43
- "react-resizable": "^3.0.4",
44
- "react-sortable-hoc": "^2.0.0",
45
- "umi-plugin-bssula": "1.0.13",
46
- "warning": "^4.0.3"
47
- },
48
- "devDependencies": {
49
- "@types/lodash": "^4.14.185",
50
- "@types/react-resizable": "^3.0.3",
51
- "@umijs/test": "^3.0.5",
52
- "dumi": "^1.0.14",
53
- "father-build": "^1.17.2",
54
- "gh-pages": "^3.0.0",
55
- "lint-staged": "^10.0.7",
56
- "prettier": "^2.2.1"
57
- },
58
- "publishConfig": {
59
- "access": "public"
60
- }
61
- }
1
+ {
2
+ "name": "@bit-sun/business-component",
3
+ "version": "2.0.29",
4
+ "scripts": {
5
+ "start": "dumi dev",
6
+ "docs:build": "dumi build",
7
+ "docs:deploy": "gh-pages -d docs-dist",
8
+ "build": "father-build",
9
+ "deploy": "npm run docs:build && npm run docs:deploy",
10
+ "release": "npm run build && npm publish",
11
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
12
+ "test": "umi-test",
13
+ "test:coverage": "umi-test --coverage"
14
+ },
15
+ "main": "dist/index.js",
16
+ "module": "dist/index.esm.js",
17
+ "typings": "dist/index.d.ts",
18
+ "gitHooks": {
19
+ "pre-commit": "lint-staged"
20
+ },
21
+ "lint-staged": {
22
+ "*.{js,jsx,less,md,json}": [
23
+ "prettier --write"
24
+ ],
25
+ "*.ts?(x)": [
26
+ "prettier --parser=typescript --write"
27
+ ]
28
+ },
29
+ "peerDependencies": {
30
+ "bssula": "^2.0.0",
31
+ "umi-plugin-bssula": "1.0.13"
32
+ },
33
+ "dependencies": {
34
+ "@ant-design/icons": "^4.7.0",
35
+ "@types/react-resizable": "^1.7.4",
36
+ "@umijs/plugin-antd": "latest",
37
+ "ahooks": "^3.1.2",
38
+ "antd": "4.17.2",
39
+ "array-move": "^4.0.0",
40
+ "axios": "^0.24.0",
41
+ "classnames": "^2.3.1",
42
+ "lodash": "^4.17.21",
43
+ "querystring": "^0.2.1",
44
+ "react": "^16.12.0",
45
+ "react-beautiful-dnd": "10.0.0",
46
+ "react-resizable": "^3.0.4",
47
+ "react-sortable-hoc": "^2.0.0",
48
+ "warning": "^4.0.3"
49
+ },
50
+ "devDependencies": {
51
+ "@types/lodash": "^4.14.185",
52
+ "@umijs/test": "^3.0.5",
53
+ "dumi": "^1.0.14",
54
+ "father-build": "^1.17.2",
55
+ "gh-pages": "^3.0.0",
56
+ "lint-staged": "^10.0.7",
57
+ "prettier": "^2.2.1"
58
+ },
59
+ "publishConfig": {
60
+ "access": "public"
61
+ }
62
+ }
@@ -280,16 +280,16 @@ export default () => {
280
280
  x: '100%',
281
281
  },
282
282
  rowKey: 'id',
283
- initialDataSource: [{}, {}],
284
- // remoteDataSource: {
285
- // url: 'xxxxxx',
286
- // converter: ({ data }: any) => {
287
- // return {
288
- // list: [{},{}],
289
- // total: 2
290
- // };
291
- // },
292
- // },
283
+ // initialDataSource: [{}, {}],
284
+ remoteDataSource: {
285
+ url: 'xxxxxx',
286
+ converter: ({ data }: any) => {
287
+ return {
288
+ list: [{},{}],
289
+ total: 2
290
+ };
291
+ },
292
+ },
293
293
  pagination: {
294
294
  showTotal: (total: any) => `共 ${total} 条`,
295
295
  showQuickJumper: true,