Skip to content

Commit 9bc7b8a

Browse files
author
xiazhigang
committed
修改 修改图标组件代码样式
1 parent 114b557 commit 9bc7b8a

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

example/icons/IconArt.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import React from "react";
2-
import { Image } from "@tarojs/components";
3-
import { ImageProps } from "@tarojs/components/types/Image";
4-
import Art from "./source/art.png";
1+
import React from "react"
2+
import { Image } from "@tarojs/components"
3+
import { ImageProps } from "@tarojs/components/types/Image"
4+
import Art from "./source/art.png"
55

66
interface Props extends Omit<ImageProps, "src"> {
7-
width?: string;
8-
height?: string;
7+
width?: string
8+
height?: string
99
}
1010

1111
const IconArt = React.memo((props: Props) => {
12-
const { width = "40px", height = "40px" } = props;
12+
const { width = "40px", height = "40px" } = props
1313

14-
return <Image src={Art} {...props} style={{ width, height }}></Image>;
15-
});
14+
return <Image src={Art} {...props} style={{ width, height }}></Image>
15+
})
1616

17-
export default IconArt;
17+
export default IconArt

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@yocdev/tarocodegen",
3-
"version": "1.1.3",
3+
"version": "1.1.4",
44
"author": "[email protected]",
55
"license": "MIT",
66
"bin": {

src/icons/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ const prettierFormat = (content: string) => {
9898
printWidth: 120,
9999
tabWidth: 2,
100100
trailingComma: "all",
101+
semi: false,
101102
parser: "typescript",
102103
};
103104
return prettier.format(content, options);

0 commit comments

Comments
 (0)