beer-assembly-biz 1.1.1-alpha.8 → 1.1.1-alpha.9

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.
@@ -8,7 +8,16 @@ declare type AuthStyleProps = {
8
8
  /**
9
9
  * Logo 图片.
10
10
  */
11
- logo: string;
11
+ logo: {
12
+ /**
13
+ * 路径
14
+ */
15
+ path: string;
16
+ /**
17
+ * 高度
18
+ */
19
+ height: number;
20
+ };
12
21
  /**
13
22
  * 侧边栏图片
14
23
  */
@@ -66,10 +66,10 @@ const App = (props) => {
66
66
  padding: 30px 40px 0 40px;
67
67
  ` },
68
68
  React.createElement("img", { className: css `
69
- height: 42px;
69
+ height: ${props?.logo?.height || 42}px;
70
70
  margin: 0 auto 0 auto;
71
71
  display: block;
72
- `, src: props?.logo, alt: "" }),
72
+ `, src: props?.logo?.path, alt: "" }),
73
73
  React.createElement("p", { className: css `
74
74
  font-size: 13px;
75
75
  margin: 6px auto 10px auto;
@@ -8,7 +8,16 @@ declare type AuthStyleProps = {
8
8
  /**
9
9
  * Logo 图片.
10
10
  */
11
- logo: string;
11
+ logo: {
12
+ /**
13
+ * 路径
14
+ */
15
+ path: string;
16
+ /**
17
+ * 高度
18
+ */
19
+ height: number;
20
+ };
12
21
  /**
13
22
  * 描述.
14
23
  */
@@ -59,10 +59,10 @@ const App = (props) => {
59
59
  padding: 30px 40px 0 40px;
60
60
  ` },
61
61
  React.createElement("img", { className: css `
62
- height: 42px;
62
+ height: ${props?.logo?.height || 42}px;
63
63
  margin: 0 auto 0 auto;
64
64
  display: block;
65
- `, src: props.logo, alt: "" }),
65
+ `, src: props?.logo?.path, alt: "" }),
66
66
  React.createElement("p", { className: css `
67
67
  font-size: 13px;
68
68
  margin: 6px auto 10px auto;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "beer-assembly-biz",
3
3
  "private": false,
4
- "version": "1.1.1-alpha.8",
4
+ "version": "1.1.1-alpha.9",
5
5
  "scripts": {
6
6
  "pub-w": "tsc && copy package.json .\\dist\\package.json && npm publish ./dist",
7
7
  "pub-m": "tsc && cp -a src/icon ./dist && cp -a src/fonts ./dist && cp -a src/images ./dist && cp package.json ./dist/package.json && npm publish ./dist"