-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0ba179
commit 011d9f9
Showing
23 changed files
with
171 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
export GIT_TERMINAL_PROMPT=0 | ||
. "$(dirname -- "$0")/common.sh" | ||
|
||
yarn lint | ||
yarn lint --fix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/* eslint-disable */ | ||
export declare var useGlobalIconFont: () => { iconfont: string }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
/* eslint-disable */ | ||
const useGlobalIconFont = () => { | ||
return { | ||
iconfont: `common/components/iconfont/${process.env.TARO_ENV}/${process.env.TARO_ENV}`, | ||
}; | ||
}; | ||
|
||
// es modules is unavaiable. | ||
module.exports.useGlobalIconFont = useGlobalIconFont; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/* eslint-disable */ | ||
import React, { FunctionComponent } from 'react'; | ||
|
||
interface Props { | ||
name: 'guanfangbanben' | 'tiwen' | 'comment' | 'like' | 'wechat' | 'yanjing' | 'yanjing1' | 'xiaxue'; | ||
size?: number; | ||
color?: string | string[]; | ||
style?: React.CSSProperties; | ||
} | ||
|
||
declare const IconFont: FunctionComponent<Props>; | ||
|
||
export default IconFont; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/* eslint-disable */ | ||
|
||
const IconFont = () => { | ||
return null; | ||
}; | ||
|
||
export default IconFont; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-disable */ | ||
|
||
import React from 'react'; | ||
|
||
|
||
const IconFont = (props) => { | ||
const { name, size, color, style } = props; | ||
|
||
return <iconfont name={name} size={size} color={color} style={style} />; | ||
}; | ||
|
||
IconFont.defaultProps = { | ||
size: 18, | ||
}; | ||
|
||
export default IconFont; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* eslint-disable */ | ||
|
||
import React from 'react'; | ||
|
||
|
||
const IconFont = (props) => { | ||
const { name, size, color, style } = props; | ||
|
||
return <iconfont name={name} size={size} color={color} style={style} />; | ||
}; | ||
|
||
IconFont.defaultProps = { | ||
size: 18, | ||
}; | ||
|
||
export default IconFont; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Component({ | ||
properties: { | ||
// guanfangbanben | tiwen | comment | like | wechat | yanjing | yanjing1 | xiaxue | ||
name: { | ||
type: String, | ||
}, | ||
// string | string[] | ||
color: { | ||
type: null, | ||
observer: function(color) { | ||
this.setData({ | ||
isStr: typeof color === 'string', | ||
}); | ||
} | ||
}, | ||
size: { | ||
type: Number, | ||
value: 18, | ||
observer: function(size) { | ||
this.setData({ | ||
svgSize: size, | ||
}); | ||
}, | ||
}, | ||
}, | ||
data: { | ||
svgSize: 18, | ||
quot: '"', | ||
isStr: true, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"component": true, | ||
"usingComponents": {} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.icon { | ||
background-repeat: no-repeat; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.