This commit is contained in:
AliciaRussel 2023-10-26 17:36:46 +08:00
commit 43187f7f0b
4 changed files with 20 additions and 19 deletions

View File

@ -140,9 +140,10 @@ class BasicGenerator extends Generator {
if (fs.lstatSync(fullpath).isDirectory()) { if (fs.lstatSync(fullpath).isDirectory()) {
this.traverseDirBubble(fullpath, dirCallback, fileCallback); this.traverseDirBubble(fullpath, dirCallback, fileCallback);
dirCallback(fullpath); dirCallback(fullpath);
continue;
} }
fileCallback(fullpath); else{
fileCallback(fullpath);
}
} }
} }

View File

@ -17,25 +17,25 @@ export function Checkbox({ value }) {
return ( return (
<div <div
style={{ style={{
border: "1px solid black", border: '1px solid black',
borderRadius: "2px", borderRadius: '2px',
width: "0.75rem", width: '0.75rem',
height: "0.75rem", height: '0.75rem',
padding: "1px", padding: '1px',
backgroundColor: "white", backgroundColor: 'white',
display: "inline-block", display: 'inline-block',
position: "relative", position: 'relative',
cursor: "pointer", cursor: 'pointer',
verticalAlign: "sub", verticalAlign: 'sub',
marginBottom: "0.1rem" marginBottom: '0.1rem'
}} }}
> >
<div <div
style={{ style={{
width: "100%", width: '100%',
height: "100%", height: '100%',
backgroundColor: value? "black" : "white", backgroundColor: value? 'black' : 'white',
position: "relative" position: 'relative'
}} }}
></div> ></div>
</div> </div>

View File

@ -32,7 +32,7 @@ const App = () => {
const message = locale === 'zh' ? zh : en const message = locale === 'zh' ? zh : en
return ( return (
<IntlProvider locale={locale} messages={locale === 'zh' ? zh : en}> <IntlProvider locale={locale} messages={locale === 'zh' ? zh : en}>
<header>Inula-Intl API Test Demo</header> <header>Inula-Intl API Test Demo</header>

View File

@ -17,7 +17,7 @@
* IE浏览器没有Object.is * IE浏览器没有Object.is
*/ */
export function isSame(x: any, y: any) { export function isSame(x: any, y: any) {
if (!(typeof Object.is === 'function')) { if (typeof Object.is !== 'function') {
if (x === y) { if (x === y) {
// +0 != -0 // +0 != -0
return x !== 0 || 1 / x === 1 / y; return x !== 0 || 1 / x === 1 / y;