diff --git a/package.json b/package.json index ed57342..d2525ab 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "build:alipay": "taro build --type alipay", "build:tt": "taro build --type tt", "build:h5": "taro build --type h5", - "build:h5Playedu": "taro build --mode playedu --type h5 ", + "build:h5Playedu": "taro build --mode playedu --type h5", "build:rn": "taro build --type rn", "build:qq": "taro build --type qq", "build:jd": "taro build --type jd", @@ -24,7 +24,7 @@ "dev:alipay": "npm run build:alipay -- --watch", "dev:tt": "npm run build:tt -- --watch", "dev:h5": "npm run build:h5 -- --watch", - "dev:h5Playedu": "npm run build:h5 --mode playedu -- --watch ", + "dev:h5Playedu": "npm run build:h5 --mode playedu -- --watch", "dev:rn": "npm run build:rn -- --watch", "dev:qq": "npm run build:qq -- --watch", "dev:jd": "npm run build:jd -- --watch", diff --git a/src/components/button/MyButton.tsx b/src/components/button/MyButton.tsx index 92013f2..d6f168b 100644 --- a/src/components/button/MyButton.tsx +++ b/src/components/button/MyButton.tsx @@ -20,7 +20,12 @@ const MyButton: FC = (props) => { break case 'warn': style.background = '#c94f4f' + style.color = '#fff' break + case 'primary': + case undefined: + style.background = '#45D4A8' + style.color = '#fff' } if (props.fillet) { @@ -42,6 +47,8 @@ const MyButton: FC = (props) => { return (