@jiangood/springboot-admin-starter 0.0.5 → 0.0.7

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
@@ -16,6 +16,7 @@
16
16
  "axios": "^1.13.2",
17
17
  "bpmn-js": "^18.7.0",
18
18
  "bpmn-js-properties-panel": "^5.43.0",
19
+ "preact": "^10.27.2",
19
20
  "dayjs": "^1.11.13",
20
21
  "jsencrypt": "^3.5.4",
21
22
  "lodash": "^4.17.21",
@@ -31,11 +32,7 @@
31
32
  "config/dist/*"
32
33
  ],
33
34
  "main": "src/index.ts",
34
- "version": "0.0.5",
35
- "dependencies": {
36
- "preact": "^10.27.2",
37
- "preact-hooks": "0.0.0-0.0.0"
38
- },
35
+ "version": "0.0.7",
39
36
  "scripts": {
40
37
  "dev": "umi dev",
41
38
  "build": "tsc --outDir config/dist --skipLibCheck --noEmitOnError false config/index.ts"
@@ -2,7 +2,14 @@
2
2
  import React from "react";
3
3
 
4
4
  declare type PageProps = {
5
+ /**
6
+ * 是否有内边距
7
+ */
5
8
  padding?: boolean;
9
+
10
+ /**
11
+ * 背景色
12
+ */
6
13
  backgroundGray?:boolean;
7
14
  };
8
15
 
@@ -1,5 +1,5 @@
1
1
  import axios, {AxiosRequestConfig, AxiosResponse, Method} from "axios";
2
- import {message as messageUtil, Modal} from "antd";
2
+ import { Modal} from "antd";
3
3
  import qs from 'qs';
4
4
  import {PageUtils} from "./PageUtils";
5
5
  import {MessageUtils} from "../MessageUtils";
@@ -44,14 +44,14 @@ export class HttpUtils {
44
44
  }
45
45
 
46
46
  if (!success) {
47
- messageUtil.error(message || '操作失败');
47
+ MessageUtils.error(message || '操作失败');
48
48
  reject('操作失败');
49
49
  return
50
50
  }
51
51
 
52
52
  // 自动消息提示
53
53
  if (message) {
54
- messageUtil.success(message);
54
+ MessageUtils.success(message);
55
55
  }
56
56
  resolve(transformData ? data : response);
57
57
  }).catch((e: unknown) => {
@@ -83,7 +83,7 @@ export class HttpUtils {
83
83
  msg = e.message;
84
84
  }
85
85
 
86
- messageUtil.error(msg);
86
+ MessageUtils.error(msg);
87
87
 
88
88
  // 将原始错误或处理后的错误信息向外抛出
89
89
  reject(e);
@@ -1,39 +1,18 @@
1
1
  import React from 'react'
2
- import {Button} from "antd";
3
- import {ButtonList, HttpUtils, Page, ProTable} from "../../framework";
2
+ import {Button, Flex} from "antd";
4
3
 
5
4
  export default class extends React.Component {
6
5
 
7
- state = {
8
- status: {}
9
- }
10
6
 
11
7
 
12
8
  render() {
13
- return <Page padding>
14
-
15
- <ProTable
16
- toolBarRender={() => <Button type='primary'
17
- target='_blank'
18
- href={"/ureport/designer"}>打开设计器</Button>}
19
-
20
- request={(params) => HttpUtils.get('admin/ureport/page', params)}
21
- columns={[
22
- {title: "文件名称", dataIndex: 'name'},
23
- {title: "存储器", dataIndex: 'providerName'},
24
- {title: "存储器前缀", dataIndex: 'providerPrefix'},
25
- {title: "更新时间", dataIndex: 'updateDate'},
26
- {title: "-", dataIndex: 'option',
27
- render(_,record){
28
- return <ButtonList >
29
- <Button size='small' perm='ureport:view' href={record.previewUrl} target='_blank'>预览</Button>
30
- <Button size='small' perm='ureport:design' href={record.designerUrl} target='_blank'>设计</Button>
31
- </ButtonList>
32
- }},
33
- ]}></ProTable>
34
-
35
-
36
- </Page>
9
+ return <div style={{display:'flex',alignItems:'center',justifyContent:'center'}}>
10
+
11
+
12
+ <Button type='primary' href='/ureport/designer'>打开设计器</Button>
13
+
14
+
15
+ </div>
37
16
  }
38
17
 
39
18
 
Binary file