Tuya MiniApp Tools 版本:
v0.6.6
Code: Select all
"@ray-js/ray": "^1.4.45",
"@ray-js/panel-sdk": "^1.10.0",
相关代码:
Code: Select all
import React from 'react';
import { View, ScrollView, CheckboxGroup, Label, Checkbox } from '@ray-js/ray';
import styles from './index.module.less';
export function Home() {
const changeA = e => {
console.log('changeA', e.detail.value);
};
const changeB = e => {
console.log('changeB', e.detail.value);
};
return (
<ScrollView className={styles.view} refresherTriggered={false} style={{ paddingTop: '100px' }}>
<View style={{ padding: '48px 12px' }}>
<CheckboxGroup onChange={changeA}>
<Label>
<Checkbox value="A1" />
A1
</Label>
<Label>
<Checkbox value="A2" />
A2
</Label>
</CheckboxGroup>
<CheckboxGroup onChange={changeB}>
<Label>
<Checkbox value="B1" />
B1
</Label>
<Label>
<Checkbox value="B2" />
B2
</Label>
</CheckboxGroup>
</View>
</ScrollView>
);
}
export default Home;
日志信息:
详见后续回复
问题描述(复现步骤):
不同的CheckboxGroup的onChang事件中的e.detail.value互相干扰
复现步骤详见后续回复
预期结果:
互不干扰
实际结果:
互相干扰