File tree Expand file tree Collapse file tree 3 files changed +12
-11
lines changed
Expand file tree Collapse file tree 3 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 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
66interface Props extends Omit < ImageProps , "src" > {
7- width ?: string ;
8- height ?: string ;
7+ width ?: string
8+ height ?: string
99}
1010
1111const 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
Original file line number Diff line number Diff line change 11{
22 "name" : " @yocdev/tarocodegen" ,
3- "version" : " 1.1.3 " ,
3+ "version" : " 1.1.4 " ,
4455 "license" : " MIT" ,
66 "bin" : {
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments