소스 검색

Merge pull request #2278 from visuddhinanda/development

onChange(value: string, option)
visuddhinanda 11 달 전
부모
커밋
2974f73074
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      dashboard-v4/dashboard/src/components/channel/ChannelSelectWithToken.tsx

+ 3 - 2
dashboard-v4/dashboard/src/components/channel/ChannelSelectWithToken.tsx

@@ -23,8 +23,9 @@ const ChannelSelectWithToken = ({ channelsId, type, onChange }: IWidget) => {
         label={false}
         placeholder={"选择一个channel"}
         fieldProps={{
-          onChange(value, option) {
+          onChange(value: string, option) {
             console.debug(value);
+
             setChannel(value);
             let output = value;
             if (value) {
@@ -73,7 +74,7 @@ const ChannelSelectWithToken = ({ channelsId, type, onChange }: IWidget) => {
         label={false}
         placeholder={"选择访问权限"}
         fieldProps={{
-          onChange(value, option) {
+          onChange(value: string, option) {
             console.debug(value);
             setPower(value);
             let output = channel;