@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.
|
|
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
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"react
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"@
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
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
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
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,
|